/* Trustferry — deep-sea teal brand, dark navigation rail, light or dark content. */
:root {
  color-scheme: light dark;
  --bg: #f3f5f8; --panel: #ffffff; --panel-2: #f8fafc; --ink: #0f172a; --muted: #526077; --line: #e2e8f0;
  --brand: #0f766e; --brand-strong: #115e59; --brand-soft: #e3f6f3; --brand-ink: #ffffff;
  --accent: #f59e0b; --accent-soft: #fef3c7;
  --danger: #b91c1c; --danger-soft: #fee2e2; --ok: #047857; --ok-soft: #d1fae5; --warn: #92400e; --warn-soft: #fef3c7;
  --side-bg: #0b1220; --side-ink: #a5b4c8; --side-ink-strong: #f1f5f9; --side-line: #1c2738; --side-active: rgba(45, 212, 191, .12); --side-active-ink: #5eead4;
  --radius: 12px; --shadow: 0 1px 2px rgba(15, 23, 42, .05), 0 6px 20px rgba(15, 23, 42, .05);
  --font: "Inter", "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  --mono: "JetBrains Mono", "Cascadia Code", ui-monospace, Menlo, Consolas, monospace;
  font-family: var(--font); color: var(--ink); background: var(--bg); font-size: 14px; line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #0a0f1a; --panel: #111827; --panel-2: #0f1623; --ink: #e5e9f0; --muted: #94a3b8; --line: #1f2a3a;
    --brand: #2dd4bf; --brand-strong: #14b8a6; --brand-soft: rgba(45, 212, 191, .12); --brand-ink: #042f2e;
    --accent-soft: rgba(245, 158, 11, .14); --danger: #f87171; --danger-soft: rgba(248, 113, 113, .13);
    --ok: #34d399; --ok-soft: rgba(52, 211, 153, .13); --warn: #fbbf24; --warn-soft: rgba(251, 191, 36, .13);
    --side-bg: #070b13; --side-line: #151e2c; --shadow: 0 1px 2px rgba(0, 0, 0, .4); }
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; }
a { color: var(--brand-strong); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-size: 22px; margin: 0 0 2px; letter-spacing: -.02em; font-weight: 700; }
h2 { font-size: 15px; margin: 0 0 12px; letter-spacing: -.01em; }
h3 { font-size: 13px; margin: 22px 0 8px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
p { margin: 0 0 10px; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.mono { font-family: var(--mono); font-size: 12.5px; }
.boot { padding: 40px; color: var(--muted); }
.hidden { display: none !important; }
svg.i { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
svg.i.sm { width: 15px; height: 15px; }
svg.i.lg { width: 22px; height: 22px; }

/* Shell */
.shell { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; }
.side { background: var(--side-bg); color: var(--side-ink); padding: 18px 12px 12px; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.brand { display: flex; align-items: center; gap: 11px; padding: 2px 8px 20px; }
.brand img { width: 34px; height: 34px; }
.brand .wm { font-weight: 750; font-size: 17px; letter-spacing: -.02em; color: var(--side-ink-strong); }
.brand .wm span { color: #2dd4bf; }
.brand .org { display: block; font-size: 12px; color: var(--side-ink); font-weight: 500; }
.nav a { display: flex; align-items: center; gap: 11px; padding: 8px 10px; border-radius: 9px; color: var(--side-ink); font-weight: 500; margin-bottom: 1px; }
.nav a:hover { background: rgba(255, 255, 255, .05); color: var(--side-ink-strong); text-decoration: none; }
.nav a.active { background: var(--side-active); color: var(--side-active-ink); }
.nav a .count { margin-left: auto; font-size: 11px; background: rgba(255,255,255,.08); padding: 1px 7px; border-radius: 99px; }
.nav .sep { margin: 18px 10px 6px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .09em; color: #8696ad; }
.side .foot { margin-top: auto; padding: 12px 10px 4px; border-top: 1px solid var(--side-line); display: flex; align-items: center; gap: 10px; }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(135deg, #2dd4bf, #0f766e); color: #fff; font-weight: 700; font-size: 13px; display: flex; align-items: center; justify-content: center; flex: none; }
.side .foot .who { min-width: 0; flex: 1; }
.side .foot .who b { display: block; color: var(--side-ink-strong); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side .foot .who span { font-size: 11.5px; }
.side .foot button { background: transparent; border: 0; color: var(--side-ink); padding: 6px; }
.side .foot button:hover { color: #fff; background: rgba(255,255,255,.06); }
.main { padding: 26px 32px 64px; min-width: 0; }
.head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.crumb { font-size: 12px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .07em; margin-bottom: 4px; }

/* Controls */
button, .btn { font: inherit; font-weight: 550; border: 1px solid var(--line); background: var(--panel); color: var(--ink); padding: 8px 14px; border-radius: 9px; cursor: pointer; display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; transition: background .12s, border-color .12s; }
button:hover, .btn:hover { background: var(--panel-2); border-color: #cbd5e1; text-decoration: none; }
button.primary, .btn.primary { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
button.primary:hover, .btn.primary:hover { background: var(--brand-strong); border-color: var(--brand-strong); }
button.danger { color: var(--danger); border-color: transparent; background: var(--danger-soft); }
button.ghost { border-color: transparent; background: transparent; }
button.sm, .btn.sm { padding: 5px 10px; font-size: 13px; }
button.icon { padding: 7px; }
button:disabled { opacity: .55; cursor: not-allowed; }
input, select, textarea { font: inherit; color: var(--ink); background: var(--panel); border: 1px solid var(--line); border-radius: 9px; padding: 9px 11px; width: 100%; transition: border-color .12s, box-shadow .12s; }
input::placeholder, textarea::placeholder { color: #94a3b8; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
button:focus-visible, a:focus-visible, .drop:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
input.bad { border-color: var(--danger); box-shadow: 0 0 0 3px var(--danger-soft); }
textarea { min-height: 120px; resize: vertical; }
input[type=checkbox], input[type=radio] { width: auto; accent-color: var(--brand); }
label.field { display: block; margin-bottom: 14px; }
label.field > span { display: block; font-weight: 600; margin-bottom: 5px; font-size: 13px; }
label.field .hint { display: block; font-weight: 400; color: var(--muted); font-size: 12px; margin-top: 4px; }
label.field .err { display: block; font-weight: 500; color: var(--danger); font-size: 12px; margin-top: 4px; }
.check { display: flex; align-items: flex-start; gap: 10px; margin: 10px 0 12px; }
.check input { margin-top: 3px; }
.check small { display: block; color: var(--muted); font-size: 12px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.inputgroup { display: flex; gap: 6px; }
.inputgroup input { flex: 1; }
.seg { display: inline-flex; background: var(--panel-2); border: 1px solid var(--line); border-radius: 9px; padding: 2px; }
.seg button { border: 0; background: transparent; padding: 5px 9px; border-radius: 7px; color: var(--muted); }
.seg button.on { background: var(--panel); color: var(--ink); box-shadow: var(--shadow); }

/* Cards, tables */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); margin-bottom: 16px; }
.card h2 { display: flex; align-items: center; gap: 9px; }
.card h2 svg { color: var(--brand); }
.card .sub { color: var(--muted); margin: -6px 0 14px; }
.toolbar { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; align-items: center; }
.toolbar .search { position: relative; flex: 1 1 220px; }
.toolbar .search svg { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.toolbar .search input { padding-left: 36px; }
.toolbar select { width: auto; min-width: 0; max-width: 170px; }
.toolbar input[type=date] { width: 140px; }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-size: 11.5px; color: var(--muted); font-weight: 650; padding: 10px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; text-transform: uppercase; letter-spacing: .05em; background: var(--panel-2); }
td { padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
tr.click { cursor: pointer; }
tr.click:hover td { background: var(--panel-2); }
.tablewrap { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: auto; box-shadow: var(--shadow); }
.empty { padding: 48px 20px; text-align: center; color: var(--muted); }
.empty svg { width: 40px; height: 40px; color: #94a3b8; margin-bottom: 8px; }
.name { display: flex; align-items: center; gap: 11px; font-weight: 600; }
.name .meta { font-weight: 400; color: var(--muted); font-size: 12px; }
.name > div { min-width: 0; }
td.namecell { max-width: 420px; }
td.namecell .nm { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.name, .drawer .dh h2, .kv dd, .pick label span, .tile .cap b, .modal h2 { overflow-wrap: anywhere; }
.pick label > span:last-child { min-width: 0; }
.tablewrap:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.kind { width: 34px; height: 34px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.kind svg { width: 17px; height: 17px; }
.kind.note { background: #fef3c7; color: #b45309; } .kind.secret { background: #ede9fe; color: #6d28d9; }
.kind.apikey { background: #e0e7ff; color: #4338ca; } .kind.file { background: #e0f2fe; color: #0369a1; } .kind.image { background: #dcfce7; color: #15803d; }
@media (prefers-color-scheme: dark) {
  .kind.note { background: rgba(251,191,36,.14); color: #fbbf24; } .kind.secret { background: rgba(167,139,250,.15); color: #c4b5fd; }
  .kind.apikey { background: rgba(129,140,248,.15); color: #a5b4fc; } .kind.file { background: rgba(56,189,248,.14); color: #7dd3fc; } .kind.image { background: rgba(74,222,128,.13); color: #86efac; }
}
.badge { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 600; padding: 2px 8px; border-radius: 99px; background: var(--panel-2); color: var(--muted); border: 1px solid var(--line); margin: 1px 3px 1px 0; white-space: nowrap; }
.badge svg { width: 12px; height: 12px; }
.badge.ok { background: var(--ok-soft); color: var(--ok); border-color: transparent; }
.badge.warn { background: var(--warn-soft); color: var(--warn); border-color: transparent; }
.badge.bad { background: var(--danger-soft); color: var(--danger); border-color: transparent; }
.badge.brand { background: var(--brand-soft); color: var(--brand-strong); border-color: transparent; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px; }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.stat b { display: block; font-size: 22px; letter-spacing: -.02em; }
.stat span { color: var(--muted); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }

/* Choice cards (storage provider, scan mode) */
.choices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 18px; }
.choice { border: 1.5px solid var(--line); border-radius: 12px; padding: 14px; cursor: pointer; background: var(--panel); display: flex; gap: 12px; align-items: flex-start; }
.choice:hover { border-color: #94a3b8; }
.choice.on { border-color: var(--brand); background: var(--brand-soft); }
.choice .ic { width: 38px; height: 38px; border-radius: 10px; display: flex; align-items: center; justify-content: center; background: var(--panel-2); color: var(--brand-strong); flex: none; }
.choice b { display: block; }
.choice small { color: var(--muted); font-size: 12px; }
.progress { height: 8px; background: var(--panel-2); border-radius: 99px; overflow: hidden; border: 1px solid var(--line); }
.progress i { display: block; height: 100%; background: linear-gradient(90deg, #2dd4bf, #0d9488); width: 0; transition: width .3s; }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.tile { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; cursor: pointer; box-shadow: var(--shadow); transition: transform .12s, box-shadow .12s; }
.tile:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(15, 23, 42, .1); }
.tile .ph { aspect-ratio: 4 / 3; background: var(--panel-2); display: flex; align-items: center; justify-content: center; color: var(--muted); }
.tile .ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tile .cap { padding: 10px 12px; }
.tile .cap b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.lightbox { position: fixed; inset: 0; background: rgba(3, 7, 18, .92); z-index: 80; display: flex; flex-direction: column; }
.lightbox .lb-top { display: flex; align-items: center; gap: 10px; padding: 12px 18px; color: #e2e8f0; }
.lightbox .lb-top b { flex: 1; }
.lightbox .lb-top button, .lightbox .nav-btn { background: rgba(255,255,255,.08); border: 0; color: #fff; }
.lightbox .stage { flex: 1; display: flex; align-items: center; justify-content: center; padding: 10px 70px 30px; position: relative; min-height: 0; }
.lightbox .stage img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; }
.lightbox .nav-btn { position: absolute; top: 50%; transform: translateY(-50%); padding: 12px; border-radius: 50%; }
.lightbox .nav-btn.prev { left: 14px; } .lightbox .nav-btn.next { right: 14px; }

/* Menus, modals, drawer */
.menu { position: relative; }
.menu .pop { position: absolute; right: 0; top: calc(100% + 6px); background: var(--panel); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 32px rgba(15,23,42,.14); min-width: 240px; padding: 6px; z-index: 20; }
.menu .pop button { width: 100%; border: 0; justify-content: flex-start; background: transparent; padding: 9px 10px; gap: 10px; }
.menu .pop button:hover { background: var(--panel-2); }
.menu .pop button > span:last-child { text-align: left; }
.menu .pop button small { display: block; color: var(--muted); font-weight: 400; font-size: 12px; }
.menu .pop .kind { width: 30px; height: 30px; }
.overlay { position: fixed; inset: 0; background: rgba(2, 6, 23, .5); backdrop-filter: blur(2px); display: flex; align-items: flex-start; justify-content: center; padding: 6vh 16px; z-index: 50; overflow: auto; }
.modal { background: var(--panel); border-radius: 16px; width: 100%; max-width: 560px; padding: 24px; box-shadow: 0 24px 64px rgba(0,0,0,.28); border: 1px solid var(--line); }
.modal.wide { max-width: 780px; }
.modal h2 { font-size: 17px; }
.modal .actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(580px, 100vw); background: var(--panel); border-left: 1px solid var(--line); box-shadow: -16px 0 48px rgba(15,23,42,.14); z-index: 40; display: flex; flex-direction: column; }
.drawer .dh { padding: 18px 20px; border-bottom: 1px solid var(--line); display: flex; gap: 10px; align-items: flex-start; justify-content: space-between; }
.drawer .dh h2 { margin: 0; }
.drawer .db { padding: 18px 20px; overflow: auto; flex: 1; }
.drawer .df { padding: 14px 20px; border-top: 1px solid var(--line); display: flex; gap: 8px; flex-wrap: wrap; background: var(--panel-2); }
.kv { display: grid; grid-template-columns: 130px 1fr; gap: 9px 14px; margin-bottom: 16px; }
.kv dt { color: var(--muted); font-size: 13px; }
.kv dd { margin: 0; word-break: break-word; }
.secret-field { display: flex; gap: 6px; align-items: center; background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; padding: 7px 7px 7px 12px; margin-bottom: 10px; }
.secret-field .v { flex: 1; font-family: var(--mono); font-size: 12.5px; word-break: break-all; white-space: pre-wrap; }
.secret-field .lbl { display: block; font-size: 11px; color: var(--muted); font-family: var(--font); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.preview { max-width: 100%; max-height: 380px; border-radius: 10px; border: 1px solid var(--line); display: block; margin: 0 0 14px; cursor: zoom-in; }
.note-body { white-space: pre-wrap; background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; padding: 14px; }
.scanbox { display: flex; gap: 12px; align-items: flex-start; border-radius: 10px; padding: 12px 14px; margin-bottom: 14px; background: var(--panel-2); border: 1px solid var(--line); }
.scanbox.ok { background: var(--ok-soft); border-color: transparent; color: var(--ok); }
.scanbox.bad { background: var(--danger-soft); border-color: transparent; color: var(--danger); }
.scanbox.warn { background: var(--warn-soft); border-color: transparent; color: var(--warn); }
.scanbox div { color: var(--ink); }
.scanbox b { display: block; }

/* Upload */
.drop { border: 2px dashed var(--line); border-radius: 14px; padding: 28px; text-align: center; color: var(--muted); cursor: pointer; background: var(--panel-2); transition: all .12s; }
.drop svg { width: 30px; height: 30px; color: var(--brand); margin-bottom: 6px; }
.drop b { color: var(--ink); display: block; }
.drop.over { border-color: var(--brand); background: var(--brand-soft); }
.up { margin-top: 12px; }
.up .bar { height: 6px; background: var(--panel-2); border-radius: 99px; overflow: hidden; margin-top: 5px; border: 1px solid var(--line); }
.up .bar i { display: block; height: 100%; background: var(--brand); width: 0; transition: width .2s; }
.up.done .bar i { background: var(--ok); }
.up.err .bar i { background: var(--danger); }
.pick { max-height: 280px; overflow: auto; border: 1px solid var(--line); border-radius: 10px; }
.pick label { display: flex; gap: 10px; align-items: center; padding: 8px 12px; border-bottom: 1px solid var(--line); cursor: pointer; }
.pick label:last-child { border-bottom: 0; }
.pick .kind { width: 28px; height: 28px; }

/* Auth */
.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(380px, 1fr) minmax(420px, 560px); }
.auth .hero { background: radial-gradient(1200px 600px at -10% -20%, #134e4a 0%, transparent 60%), linear-gradient(160deg, #0b1220 0%, #0d2a2b 55%, #0f766e 120%); color: #e2f5f2; padding: 48px 56px; display: flex; flex-direction: column; position: relative; overflow: hidden; }
.auth .hero .logo { display: flex; align-items: center; gap: 12px; font-weight: 750; font-size: 20px; letter-spacing: -.02em; }
.auth .hero .logo img { width: 42px; height: 42px; }
.auth .hero .logo span { color: #5eead4; }
.auth .hero h2 { font-size: 34px; line-height: 1.15; letter-spacing: -.03em; margin: auto 0 14px; max-width: 460px; color: #fff; }
.auth .hero p { color: #9fc9c3; max-width: 440px; font-size: 15px; }
.auth .hero ul { list-style: none; padding: 0; margin: 22px 0 auto; display: grid; gap: 12px; }
.auth .hero li { display: flex; gap: 12px; align-items: center; color: #cfe9e5; }
.auth .hero li svg { color: #5eead4; }
.auth .hero .waves { position: absolute; left: 0; right: 0; bottom: 0; opacity: .5; }
.auth .formside { display: flex; align-items: center; justify-content: center; padding: 32px; background: var(--panel); }
.auth .formbox { width: 100%; max-width: 400px; }
.auth .formbox h1 { font-size: 26px; }
.auth .formbox > p.muted { margin-bottom: 22px; }
.divider { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 12px; margin: 16px 0; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.full { width: 100%; justify-content: center; padding: 10px 14px; }
.ext { max-width: 900px; margin: 0 auto; padding: 32px 20px 64px; }
.ext .top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.ext .top .brand { padding: 0; }
.ext .top .brand .wm { color: var(--ink); }
.ext .top .brand .wm span { color: var(--brand); }
.ext .top .brand .org { color: var(--muted); }
.callout { border-radius: 10px; padding: 11px 14px; margin-bottom: 14px; background: var(--brand-soft); display: flex; gap: 10px; align-items: flex-start; }
.callout.warn { background: var(--warn-soft); }
.callout.ok { background: var(--ok-soft); }
.callout.bad { background: var(--danger-soft); }
.linkbox { display: flex; gap: 6px; }
.linkbox input { font-family: var(--mono); font-size: 12px; }

#toasts { position: fixed; bottom: 18px; left: 272px; align-items: flex-start; max-width: calc(100vw - 292px); display: flex; flex-direction: column; gap: 8px; z-index: 100; }
.toast { background: #0f172a; color: #f1f5f9; padding: 11px 15px; border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,.2); max-width: 400px; display: flex; gap: 9px; align-items: center; }
.toast svg { color: #5eead4; }
.toast.err { background: var(--danger); color: #fff; }
.toast.err svg { color: #fff; }

@media (max-width: 960px) {
  .auth { grid-template-columns: 1fr; }
  .auth .hero { display: none; }
  .choices, .grid3 { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  #toasts { left: 12px; right: 12px; max-width: none; }
  .shell { grid-template-columns: 1fr; }
  .side { position: static; height: auto; flex-direction: row; flex-wrap: wrap; gap: 4px; }
  .side .foot, .nav .sep { display: none; }
  .nav { display: flex; flex-wrap: wrap; }
  .stats { grid-template-columns: 1fr 1fr; }
  .grid2 { grid-template-columns: 1fr; }
  .main { padding: 16px; }
}
.dnsrec{border:1px solid var(--line);border-radius:8px;padding:12px;margin:10px 0;background:var(--panel-2)}
.dnsrec textarea{width:100%;font-size:12px;word-break:break-all}
.phrase{display:flex;align-items:center;gap:6px;border:1px solid #99d5cf;background:#ecfdf9;color:#134e4a;border-radius:6px;padding:6px 10px;margin-top:10px}
.phrase b{margin:0 2px}
@media (prefers-color-scheme: dark){.phrase{background:#0b2e2b;color:#a7f3d0;border-color:#115e59}}
/* Partner page on phones: each shared item becomes a card, so long names get the full width. */
.ext .top { flex-wrap: wrap; gap: 12px; }
@media (max-width: 600px) {
  .xt, .xt tbody { display: block; }
  .xt tr { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 6px 12px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
  .xt td { display: block; padding: 0; border: 0; }
  .xt td:nth-child(1) { grid-column: 1 / -1; overflow-wrap: anywhere; }
  .xt td:nth-child(4) { display: none; }
}
.phrase b { white-space: nowrap; }
/* Powered by */
.powered { font-size: 12px; color: var(--muted); letter-spacing: .02em; }
.powered b { font-weight: 700; letter-spacing: .06em; color: var(--ink); }
.formside .powered { margin-top: 28px; text-align: center; }
.side-powered { padding: 10px 14px; color: var(--side-ink); border-top: 1px solid var(--side-line); font-size: 11px; }
.side-powered b { color: var(--side-ink-strong); }
.ext-powered { margin-top: 18px; text-align: center; }
/* Teams and visibility */
.badge.team { background: #eef2ff; color: #3730a3; }
@media (prefers-color-scheme: dark) { .badge.team { background: rgba(129,140,248,.16); color: #c7d2fe; } }
.kind.team { background: #eef2ff; color: #4338ca; }
.teampick { margin: -6px 0 14px; max-height: 200px; }
.tabs { margin: 0 0 16px; }
.tabs button { padding: 7px 16px; font-weight: 600; }
.avatar.sm { width: 26px; height: 26px; font-size: 11px; flex: none; }
/* Share dialog in "selected items" mode */
.picked { display: flex; gap: 10px; align-items: center; padding: 8px 12px; border-bottom: 1px solid var(--line); }
.picked:last-child { border-bottom: 0; }
.picked > span:nth-child(2) { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.picked .kind { width: 28px; height: 28px; }
/* Import */
.card.import h3 { margin: 18px 0 10px; }
.card.import h3:first-child { margin-top: 0; }
.card.import .stats { margin: 6px 0 14px; }
.card + .card { margin-top: 16px; }

/* licence features list */
.ticks { list-style: none; padding: 0; margin: 12px 0; }
.ticks li { display: flex; gap: 8px; align-items: center; margin: 6px 0; }
.ticks li.no { color: var(--muted, #667); }
.ticks li.yes .i { color: var(--ok, #0f7b4f); }
.card details { margin-top: 14px; }
.card details summary { cursor: pointer; font-weight: 600; }
p.error { color: var(--danger, #b42318); background: var(--danger-soft); padding: 9px 12px; border-radius: 8px; }
[hidden] { display: none !important; }
.card p a, .sub a, .callout a { text-decoration: underline; text-underline-offset: 2px; }

/* Phones: the menu folds behind a button so the page content comes first. */
.menubtn { display: none; }
@media (max-width: 900px) {
  .side .brand { width: 100%; }
  .menubtn { display: inline-flex; margin-left: auto; align-self: center; padding: 7px 14px; border-radius: 8px; border: 1px solid var(--side-line); background: transparent; color: var(--side-ink-strong); font-weight: 600; }
  .side .nav, .side .side-powered { display: none; }
  .side.open .nav { display: flex; }
}
@media (max-width: 900px) {
  .side.open .foot { display: flex; width: 100%; }
}
.side .menubtn, .side .menubtn:hover, .side .menubtn:focus, .side .menubtn:active { background: transparent; color: var(--side-ink-strong); border-color: var(--side-line); }
.side.open .menubtn { background: rgba(255,255,255,.08); }
.side .menubtn:focus-visible { outline: 2px solid #2dd4bf; outline-offset: 2px; }

/* 0.8 UI fixes */
.auth .formside { flex-direction: column; }
.auth .formbox { margin: auto 0; }
.formside .powered { margin: 24px 0 0; padding-top: 16px; text-align: center; width: 100%; max-width: 400px; border-top: 1px solid var(--line); }
thead th { background: var(--th-bg, #eef2f6); color: var(--ink); border-bottom: 2px solid var(--line-strong, #cbd5e1); font-weight: 700; }
@media (prefers-color-scheme: dark) { thead th { --th-bg: #1a2436; --line-strong: #2c3a50; color: #e5e9f0; } }
th.selcol, table.items td:first-child { width: 44px; }
.nowrap { white-space: nowrap; }
td.datecell { white-space: nowrap; }
td.datecell span { display: block; line-height: 1.35; }
.badge { margin: 2px 6px 2px 0; }
td .badge + .badge { margin-left: 0; }
.check { align-items: flex-start; }
.check input[type=checkbox] { width: 16px; height: 16px; margin: 2px 0 0; flex: none; }
.check > span { line-height: 1.45; }
.foldercard { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.foldercard .grow { flex: 1 1 320px; min-width: 0; }
.foldercard .kind { flex: none; }
.toolbar select { max-width: 145px; text-overflow: ellipsis; }
select option { padding: 6px 10px; }
.toolbar input[type=date] { width: 136px; padding-left: 9px; padding-right: 6px; }
.toolbar .search { flex: 1 1 160px; }
