/* ---------- design tokens: one role per colour ---------- */
:root {
  --bg: #f3f2ee; --surface: #ffffff; --surface-2: #faf9f6; --surface-3: #efede6;
  --line: #e3dfd5; --line-2: #cdc8ba;
  --text: #1b1a17; --text-2: #4f4b44; --muted: #78736a;
  --accent: #e09000; --accent-hover: #cc8200; --on-accent: #241603; --accent-tint: #fdf1d9;
  --info: #1f5fcf; --info-tint: #e9f0fd; --info-line: #bfd3f6;
  --success: #177a38; --success-tint: #e5f5ea; --success-line: #b5e0c2;
  --warn: #9a5a00; --warn-tint: #fff3d9; --warn-line: #f0d49a;
  --danger: #b3261e; --danger-tint: #fdeceb; --danger-line: #f2b9b4;
  --fal: #6540d0; --fal-tint: #efeafc; --runway: #0c7a7e; --runway-tint: #e2f4f4;
  --focus: #1f5fcf; --r: 10px; --r-sm: 7px;
  --shadow: 0 1px 2px rgba(30, 25, 10, .06), 0 4px 14px rgba(30, 25, 10, .05);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #11100f; --surface: #1b1a18; --surface-2: #161513; --surface-3: #25231f;
    --line: #32302b; --line-2: #4a4740; --text: #efebe2; --text-2: #c4beb1; --muted: #968f82;
    --accent-tint: #3a2d10;
    --info: #7fa9ff; --info-tint: #17223a; --info-line: #2c4068;
    --success: #6fd08c; --success-tint: #13271a; --success-line: #25472f;
    --warn: #f0b64a; --warn-tint: #31260d; --warn-line: #5c4616;
    --danger: #ff8f86; --danger-tint: #381a18; --danger-line: #6a2f2b;
    --fal: #ac9fff; --fal-tint: #251f42; --runway: #62d3d6; --runway-tint: #11302f;
    --focus: #7fa9ff; --shadow: none;
  }
}
:root[data-theme="dark"] {
  --bg: #11100f; --surface: #1b1a18; --surface-2: #161513; --surface-3: #25231f;
  --line: #32302b; --line-2: #4a4740; --text: #efebe2; --text-2: #c4beb1; --muted: #968f82; --accent-tint: #3a2d10;
  --info: #7fa9ff; --info-tint: #17223a; --info-line: #2c4068; --success: #6fd08c; --success-tint: #13271a; --success-line: #25472f;
  --warn: #f0b64a; --warn-tint: #31260d; --warn-line: #5c4616; --danger: #ff8f86; --danger-tint: #381a18; --danger-line: #6a2f2b;
  --fal: #ac9fff; --fal-tint: #251f42; --runway: #62d3d6; --runway-tint: #11302f; --focus: #7fa9ff; --shadow: none;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.hidden { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
svg.i { width: 1.1em; height: 1.1em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.18em; }

/* ---------- topbar ---------- */
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 16px; padding: 10px 24px; background: var(--surface); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; letter-spacing: .01em; }
.logo { width: 26px; height: 26px; border-radius: 8px; background: var(--accent); position: relative; }
.logo::after { content: ""; position: absolute; left: 10px; top: 7px; border-left: 9px solid var(--on-accent); border-top: 6px solid transparent; border-bottom: 6px solid transparent; }
.spacer { flex: 1; }
.balances { display: grid; gap: 2px; padding: 6px 12px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface-2); font-size: 13px; min-width: 250px; }
.bal { display: grid; grid-template-columns: 8px 64px 1fr auto; align-items: center; gap: 8px; line-height: 1.35; }
.bal .dotp { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.bal.fal .dotp { background: var(--fal); } .bal.runway .dotp { background: var(--runway); }
.bal .name { font-weight: 600; } .bal .amt { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; } .bal .eur { color: var(--muted); font-variant-numeric: tabular-nums; min-width: 78px; text-align: right; }
.bal.low .amt { color: var(--danger); } .bal .tag { font-size: 11px; color: var(--warn); }
.balances .none { color: var(--muted); }
.avatar { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: var(--on-accent); font-weight: 700; font-size: 12px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 14px; border-radius: var(--r-sm); border: 1px solid transparent; cursor: pointer; text-decoration: none; font-weight: 600; line-height: 1.2; background: none; }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-primary:disabled { opacity: .45; cursor: not-allowed; }
.btn-secondary { background: var(--surface); border-color: var(--line-2); color: var(--text); }
.btn-secondary:hover { border-color: var(--text-2); background: var(--surface-2); }
.btn-ghost { color: var(--text-2); } .btn-ghost:hover { background: var(--surface-3); }
.btn-danger { background: var(--danger-tint); border-color: var(--danger-line); color: var(--danger); }
.btn-sm { padding: 6px 10px; font-size: 13px; } .btn-lg { padding: 13px 18px; font-size: 16px; width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

/* ---------- layout ---------- */
.layout { display: grid; grid-template-columns: 480px minmax(0, 1fr); gap: 24px; padding: 24px; max-width: 1760px; margin: 0 auto; align-items: start; }
@media (max-width: 1000px) { .layout { grid-template-columns: 1fr; padding: 16px; } .topbar { padding: 10px 16px; flex-wrap: wrap; } .balances { min-width: 0; order: 5; width: 100%; } .spacer { display: none; } #btn-account { margin-left: auto; } }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); }
.panel-title { font-size: 20px; font-weight: 700; letter-spacing: -.005em; }
.create { padding: 22px; display: grid; gap: 0; position: sticky; top: 72px; max-height: calc(100dvh - 92px); overflow: auto; align-content: start; }
@media (max-width: 1000px) { .create { position: static; max-height: none; overflow: visible; } }
.create > .panel-title { margin-bottom: 6px; }

/* steps */
.step { padding: 18px 0; border-top: 1px solid var(--line); display: grid; gap: 12px; }
.create > .panel-title + .step { border-top: 0; padding-top: 12px; }
.step-h { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 700; }
.step-h label { font-weight: 700; }
.num { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--surface-3); border: 1px solid var(--line-2); font-size: 12.5px; font-weight: 700; color: var(--text-2); }
.help { color: var(--muted); font-size: 13px; }
.row-actions { display: flex; gap: 8px; }

/* choice controls */
.seg { display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--surface-2); padding: 3px; gap: 3px; width: 100%; }
.seg button { border: 0; background: transparent; padding: 8px 10px; border-radius: 5px; cursor: pointer; font-weight: 600; color: var(--text-2); display: inline-flex; gap: 8px; align-items: center; justify-content: center; }
.seg button:hover { background: var(--surface-3); }
.seg button[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); }
.seg-sm { width: auto; } .seg-sm button { padding: 6px 14px; font-size: 14px; }
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opt { padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); cursor: pointer; font-size: 14px; color: var(--text); display: inline-flex; align-items: center; gap: 6px; }
.opt:hover { border-color: var(--text-2); }
.opt[aria-checked="true"] { background: var(--accent-tint); border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); font-weight: 600; }
.opt .sub { color: var(--muted); font-size: 12px; font-weight: 400; }
.param-group { display: grid; gap: 6px; } .param-group .lbl { font-size: 13px; font-weight: 600; color: var(--text-2); }
.params { display: grid; gap: 14px; }

/* fields */
textarea, input[type=text], input[type=search], input[type=password], input[type=email], select { width: 100%; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--surface-2); }
textarea { min-height: 124px; resize: vertical; }
.field { display: grid; gap: 6px; } .field > label, .field > .lbl { font-size: 13px; font-weight: 600; color: var(--text-2); }

/* badges and markers */
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 1px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; border: 1px solid transparent; white-space: nowrap; }
.badge.rec { background: var(--accent-tint); color: var(--text); border-color: var(--accent); }
.badge.neutral { background: var(--surface-3); color: var(--text-2); border-color: var(--line-2); }
.badge.fal { background: var(--fal-tint); color: var(--fal); } .badge.runway { background: var(--runway-tint); color: var(--runway); }
.badge.ok { background: var(--success-tint); color: var(--success); border-color: var(--success-line); }
.badge.warn { background: var(--warn-tint); color: var(--warn); border-color: var(--warn-line); }
.badge.bad { background: var(--danger-tint); color: var(--danger); border-color: var(--danger-line); }
.best-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 3px var(--success-tint); flex: none; }

/* callouts: information is blue, success green, caution amber, error red */
.callout { display: flex; gap: 10px; padding: 10px 12px; border-radius: var(--r-sm); border: 1px solid; font-size: 13.5px; line-height: 1.45; }
.callout > svg { margin-top: 2px; }
.callout.info { background: var(--info-tint); border-color: var(--info-line); } .callout.info > svg { color: var(--info); }
.callout.ok { background: var(--success-tint); border-color: var(--success-line); } .callout.ok > svg { color: var(--success); }
.callout.warn { background: var(--warn-tint); border-color: var(--warn-line); } .callout.warn > svg { color: var(--warn); }
.callout.err { background: var(--danger-tint); border-color: var(--danger-line); } .callout.err > svg { color: var(--danger); }
.callout code { word-break: break-all; font-size: 13px; }

/* model card */
.mcard { border: 1px solid var(--line-2); border-radius: var(--r); background: var(--surface-2); padding: 14px; display: grid; gap: 10px; }
.mcard-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.mcard-name { font-size: 17px; font-weight: 700; }
.mcard-brand { color: var(--muted); font-size: 13px; }
.mcard-sum { color: var(--text-2); font-size: 14px; }
.mcard ul.facts { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.mcard ul.facts li { font-size: 12.5px; padding: 2px 9px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--text-2); }
.prices { display: grid; gap: 4px; margin: 0; padding: 10px 12px; list-style: none; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); }
.prices li { display: grid; grid-template-columns: 14px 1fr auto auto; align-items: center; gap: 10px; font-size: 14px; }
.prices .amount { font-weight: 700; font-variant-numeric: tabular-nums; }
.prices .best-note { font-size: 12px; color: var(--success); font-weight: 600; }
.prices .spacer-dot { width: 10px; }
.mcard-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.quick { display: grid; gap: 6px; } .quick .lbl { font-size: 13px; font-weight: 600; color: var(--text-2); }

/* upload */
.drop { border: 2px dashed var(--line-2); border-radius: var(--r); padding: 18px; text-align: center; color: var(--text-2); cursor: pointer; background: var(--surface-2); display: grid; gap: 4px; justify-items: center; }
.drop:hover, .drop.over { border-color: var(--accent); background: var(--accent-tint); color: var(--text); }
.drop.disabled { opacity: .55; cursor: not-allowed; } .drop.need { border-color: var(--info); background: var(--info-tint); }
.refs { display: flex; flex-wrap: wrap; gap: 8px; }
.ref { position: relative; width: 72px; height: 72px; border-radius: var(--r-sm); overflow: hidden; border: 1px solid var(--line-2); }
.ref img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ref button { position: absolute; top: 3px; right: 3px; width: 22px; height: 22px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .7); color: #fff; cursor: pointer; display: grid; place-items: center; padding: 0; }

/* start bar */
.startbar { position: sticky; bottom: 0; margin: 0 -22px -22px; padding: 14px 22px 22px; display: grid; gap: 12px; background: linear-gradient(to bottom, transparent, var(--surface) 14px); border-radius: 0 0 14px 14px; }
.est { display: grid; gap: 6px; padding: 12px 14px; border-radius: var(--r); background: var(--success-tint); border: 1px solid var(--success-line); }
.est .big { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.est .big b { font-size: 22px; font-variant-numeric: tabular-nums; } .est .via { color: var(--text-2); font-size: 14px; }
.est .cmp-line { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; color: var(--text-2); }
.est .cmp-line span { display: inline-flex; align-items: center; gap: 6px; }
.est .note { font-size: 12.5px; color: var(--text-2); }
.est.idle { background: var(--surface-2); border-color: var(--line); }

/* ---------- library ---------- */
.library { display: grid; gap: 16px; min-width: 0; }
.lib-head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.lib-head .panel-title { margin-right: auto; } .lib-head input[type=search] { width: 240px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.card { position: relative; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--surface); cursor: pointer; padding: 0; text-align: left; display: block; box-shadow: var(--shadow); }
.card:hover { border-color: var(--line-2); }
.card .thumb { aspect-ratio: 1 / 1; width: 100%; object-fit: cover; display: block; background: var(--surface-3); }
.card .meta { padding: 9px 11px; display: grid; gap: 3px; font-size: 12.5px; color: var(--text-2); }
.card .meta b { color: var(--text); font-size: 13px; }
.card .pv { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.card .stars { color: var(--accent); letter-spacing: 1px; }
.card .vbadge { position: absolute; top: 8px; left: 8px; background: rgba(0, 0, 0, .72); color: #fff; font-size: 12px; padding: 2px 8px; border-radius: 999px; display: inline-flex; gap: 5px; align-items: center; }
.card.pending { cursor: default; }
.pend { aspect-ratio: 1 / 1; display: grid; place-items: center; text-align: center; padding: 14px; color: var(--text-2); font-size: 13px; background: var(--surface-2); }
.spin { width: 28px; height: 28px; border: 3px solid var(--line-2); border-top-color: var(--accent); border-radius: 50%; animation: s 1s linear infinite; margin: 0 auto 10px; }
@keyframes s { to { transform: rotate(360deg); } }
.empty { padding: 56px 16px; text-align: center; color: var(--muted); border: 2px dashed var(--line); border-radius: 14px; }
.empty strong { display: block; color: var(--text-2); font-size: 16px; margin-bottom: 4px; }

/* ---------- dialogs ---------- */
dialog { border: 1px solid var(--line); background: var(--surface); color: var(--text); padding: 0; }
dialog::backdrop { background: rgba(10, 8, 4, .55); }
.modal { width: min(760px, 94vw); max-height: 92vh; border-radius: 14px; box-shadow: 0 20px 60px rgba(0, 0, 0, .35); }
.modal-wide { width: min(1120px, 96vw); }
.modal-in { padding: 22px; display: grid; gap: 16px; overflow: auto; max-height: 92vh; }
.modal-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.modal-h h2 { font-size: 20px; }
.sect { display: grid; gap: 12px; padding-top: 16px; border-top: 1px solid var(--line); } .sect > h3 { font-size: 15px; }
.formrow { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; } .formrow > .field { flex: 1 1 200px; }
.check { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; } .check input { width: auto; }
.utable { width: 100%; border-collapse: collapse; font-size: 14px; }
.utable th { text-align: left; font-size: 12.5px; color: var(--muted); font-weight: 600; padding: 6px 8px; border-bottom: 1px solid var(--line-2); }
.utable td { padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.utable .who b { display: block; } .utable .who span { color: var(--muted); font-size: 12.5px; }
.utable .acts { display: flex; flex-wrap: wrap; gap: 6px; }
.utable tr.off .who { opacity: .6; }
.detail { display: grid; grid-template-columns: minmax(0, 1fr) 340px; }
@media (max-width: 860px) { .detail { grid-template-columns: 1fr; } }
.detail .media { background: #0b0a09; display: grid; place-items: center; min-height: 260px; }
.detail .media img, .detail .media video { max-width: 100%; max-height: 88vh; display: block; }
.detail .side { padding: 20px; display: grid; gap: 14px; align-content: start; overflow: auto; max-height: 88vh; }
.detail .prompt { white-space: pre-wrap; font-size: 13.5px; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 10px 12px; }
.stars-in { display: flex; gap: 2px; } .stars-in button { background: none; border: 0; font-size: 28px; cursor: pointer; color: var(--line-2); padding: 0 2px; } .stars-in button.on { color: var(--accent); }
.kv { font-size: 13.5px; color: var(--text-2); } .kv b { color: var(--text); }
.actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- compare drawer (fly-in) ---------- */
dialog.drawer { position: fixed; inset: 0 0 0 auto; margin: 0; width: min(1120px, 100vw); max-width: 100vw; height: 100dvh; max-height: 100dvh; border: 0; border-left: 1px solid var(--line-2); background: var(--bg);
  transform: translateX(100%); transition: transform .26s ease, overlay .26s allow-discrete, display .26s allow-discrete; }
dialog.drawer[open] { transform: none; display: flex; flex-direction: column; }
@starting-style { dialog.drawer[open] { transform: translateX(100%); } }
dialog.drawer::backdrop { background: rgba(10, 8, 4, .5); opacity: 0; transition: opacity .26s ease, overlay .26s allow-discrete, display .26s allow-discrete; }
dialog.drawer[open]::backdrop { opacity: 1; }
@starting-style { dialog.drawer[open]::backdrop { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { dialog.drawer, dialog.drawer::backdrop { transition: none; } }
.dr-head { padding: 18px 24px 0; background: var(--surface); border-bottom: 1px solid var(--line); display: grid; gap: 14px; }
.dr-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; } .dr-title h2 { font-size: 21px; } .dr-title p { color: var(--muted); font-size: 14px; margin-top: 2px; }
.tabs { display: flex; gap: 4px; overflow-x: auto; }
.tabs button { padding: 10px 16px; border: 0; background: none; cursor: pointer; font-weight: 600; color: var(--text-2); border-bottom: 3px solid transparent; white-space: nowrap; display: inline-flex; gap: 8px; align-items: center; }
.tabs button:hover { color: var(--text); }
.tabs button[aria-selected="true"] { color: var(--text); border-bottom-color: var(--accent); }
.tabs .count { font-size: 12px; font-weight: 600; background: var(--surface-3); border-radius: 999px; padding: 0 7px; color: var(--text-2); }
.dr-tools { padding: 12px 24px; display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.dr-tools input[type=search] { width: 260px; max-width: 100%; } .dr-tools select { width: auto; }
.dr-tools .legend { margin-left: auto; font-size: 13px; color: var(--text-2); display: inline-flex; gap: 8px; align-items: center; }
.dr-body { flex: 1; overflow: auto; padding: 0 24px 24px; background: var(--bg); }
table.cmp { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); margin-top: 16px; }
table.cmp thead th { position: sticky; top: 0; z-index: 2; background: var(--surface-3); text-align: left; font-size: 12.5px; font-weight: 700; color: var(--text-2); padding: 10px 12px; border-bottom: 1px solid var(--line-2); white-space: nowrap; }
table.cmp thead th:first-child { border-top-left-radius: var(--r); } table.cmp thead th:last-child { border-top-right-radius: var(--r); }
table.cmp td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.cmp tr:last-child td { border-bottom: 0; }
table.cmp tr.sel td { background: var(--accent-tint); } table.cmp tr.sel td:first-child { box-shadow: inset 4px 0 0 var(--accent); }
table.cmp tbody tr:hover td { background: var(--surface-2); } table.cmp tr.sel:hover td { background: var(--accent-tint); }
.cm-name { display: grid; gap: 2px; min-width: 220px; } .cm-name .n { font-weight: 700; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.cm-name .b { color: var(--muted); font-size: 12.5px; } .cm-name .d { color: var(--text-2); font-size: 13px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; max-width: 380px; }
.pcell { display: inline-flex; align-items: center; gap: 8px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pcell.best { font-weight: 700; color: var(--success); } .pcell.none { color: var(--muted); } .pcell .tag { font-size: 11.5px; font-weight: 600; }
.pcell.pad::before { content: ""; width: 10px; display: inline-block; }
.props { display: flex; flex-wrap: wrap; gap: 5px; max-width: 280px; } .props span { font-size: 12px; padding: 1px 8px; border-radius: 999px; background: var(--surface-3); color: var(--text-2); white-space: nowrap; }
.dr-more { display: grid; place-items: center; padding: 18px; }
.dr-empty { padding: 48px 16px; text-align: center; color: var(--muted); }
@media (max-width: 860px) {
  table.cmp thead { display: none; } table.cmp, table.cmp tbody, table.cmp tr, table.cmp td { display: block; }
  table.cmp tr { padding: 12px; border-bottom: 1px solid var(--line); } table.cmp td { padding: 4px 0; border: 0; }
  table.cmp td[data-l]::before { content: attr(data-l) ": "; color: var(--muted); font-size: 12.5px; }
}

/* ---------- auth ---------- */
#auth { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.auth-card { width: min(440px, 100%); background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: 28px; display: grid; gap: 16px; }
.auth-card h1 { font-size: 22px; } .auth-card .brand { margin-bottom: 4px; } .auth-card .lead { color: var(--text-2); font-size: 14.5px; }
.auth-card .links { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--info); cursor: pointer; text-decoration: underline; font-size: inherit; }

.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: var(--text); color: var(--bg); padding: 11px 16px; border-radius: var(--r-sm); z-index: 100; max-width: 92vw; font-size: 14px; box-shadow: 0 8px 30px rgba(0, 0, 0, .3); }
.drop.disabled { padding: 10px 12px; border-style: solid; border-width: 1px; background: var(--surface-2); color: var(--muted); cursor: default; display: flex; gap: 8px; justify-content: flex-start; align-items: center; text-align: left; }
.drop.disabled:hover { border-color: var(--line-2); background: var(--surface-2); color: var(--muted); }
