/* Platform V2 styles — accounts, toasts, mod form + progress ring, thumbs, comments, search, admin,
   the "You" menu. Built on the existing tokens (chrome/tokens.css). Kept in its own file so the core
   app.css cache version doesn't churn. All selectors are namespaced `.dl-*`. */

/* ── Overlays & sheets ─────────────────────────────────────────────────────── */
.dl-overlay { position: fixed; inset: 0; z-index: 80; display: flex; align-items: flex-end; justify-content: center;
  opacity: 0; transition: opacity .24s var(--ease-out, ease); }
.dl-overlay.in { opacity: 1; }
.dl-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.55); backdrop-filter: blur(3px); }
.dl-sheet { position: relative; z-index: 1; width: 100%; max-width: 440px; max-height: 88vh; overflow-y: auto;
  background: var(--surface-2); border: 1px solid var(--border-strong); border-radius: var(--r-xl) var(--r-xl) 0 0;
  box-shadow: var(--shadow-3); padding: var(--s-5) var(--s-5) calc(var(--s-6) + env(safe-area-inset-bottom));
  transform: translateY(12px); transition: transform .26s var(--ease-out, ease); }
.dl-overlay.in .dl-sheet { transform: translateY(0); }
@media (min-width: 560px) { .dl-overlay { align-items: center; } .dl-sheet { border-radius: var(--r-xl); } }
.dl-x { position: absolute; top: var(--s-3); right: var(--s-3); width: 32px; height: 32px; border-radius: var(--r-pill);
  border: none; background: var(--surface-3); color: var(--ink-2); cursor: pointer; font-size: 14px; }
.dl-x:hover { color: var(--ink-1); }
.dl-sheet-title { margin: 0 0 var(--s-2); font-size: var(--fs-xl, 1.25rem); color: var(--ink-1); }
.dl-sheet-sub { margin: 0 0 var(--s-4); color: var(--ink-2); font-size: var(--fs-sm); line-height: var(--lh-snug, 1.4); }
.dl-fineprint { margin: var(--s-3) 0 0; font-size: var(--fs-xs); color: var(--ink-3); }
.dl-fineprint a, .dl-sheet a { color: var(--brand); }

/* ── Buttons & inputs ──────────────────────────────────────────────────────── */
.dl-btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  width: 100%; padding: var(--s-3) var(--s-4); border-radius: var(--r-md, 8px); border: 1px solid var(--border-strong);
  background: var(--surface-1); color: var(--ink-1); font: inherit; font-weight: var(--fw-semibold, 600); cursor: pointer;
  transition: transform .12s ease, border-color .12s ease, background .12s ease; }
.dl-btn:hover { transform: translateY(-1px); border-color: var(--border-brand); }
.dl-btn:disabled { opacity: .6; cursor: default; transform: none; }
.dl-btn-primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.dl-btn-primary:hover { background: var(--brand-hover, var(--brand)); }
.dl-btn-ghost { background: transparent; }
.dl-btn-danger { background: transparent; color: var(--hot); border-color: var(--hot); }
.dl-btn-danger:hover { background: var(--hot); border-color: var(--hot); color: #fff; }
/* Recurring-support disclosure + affirmative consent (auto-renewal law) */
.dl-fund-recur-terms { margin: 0 0 var(--s-3); padding: var(--s-3); border-radius: var(--r-md, 8px);
  background: var(--surface-1); border: 1px solid var(--border-subtle); color: var(--ink-2); font-size: var(--fs-sm); line-height: var(--lh-snug, 1.4); }
.dl-fund-recur-consent { display: flex; gap: var(--s-2); align-items: flex-start; font-size: var(--fs-sm); color: var(--ink-2); cursor: pointer; }
.dl-fund-recur-consent input { margin-top: 3px; flex: none; }
.dl-fund-recur-consent.err { color: var(--hot); }
.dl-fund-recur-consent.err input { outline: 2px solid var(--hot); }
/* Neutral age screen (COPPA) */
.dl-agegate-form { display: flex; flex-direction: column; gap: var(--s-3); margin-top: var(--s-2); }
.dl-agegate-msg { margin: var(--s-3) 0 0; color: var(--ink-2); font-size: var(--fs-sm); line-height: var(--lh-snug, 1.4); }
.dl-btn-google { background: #fff; color: #1f1f1f; border-color: #dadce0; }
.dl-btn-google:hover { background: #f7f8fa; }
.dl-input { width: 100%; padding: var(--s-3); border-radius: var(--r-md, 8px); border: 1px solid var(--border-strong);
  background: var(--surface-1); color: var(--ink-1); font: inherit; }
.dl-input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-ring, rgba(124,92,255,.35)); }
textarea.dl-input { resize: vertical; }
.dl-field { display: block; margin-bottom: var(--s-3); }
.dl-field > span { display: block; margin-bottom: 6px; font-size: var(--fs-sm); color: var(--ink-2); }
.dl-field em { color: var(--ink-3); font-style: normal; }
.dl-or { display: flex; align-items: center; gap: var(--s-3); margin: var(--s-3) 0; color: var(--ink-3); font-size: var(--fs-xs); }
.dl-or::before, .dl-or::after { content: ""; flex: 1; height: 1px; background: var(--border-subtle); }
.dl-chip { display: inline-block; margin: 3px; padding: 5px 10px; border-radius: var(--r-pill);
  border: 1px solid var(--border-strong); background: var(--surface-1); color: var(--ink-2); cursor: pointer; font: inherit; font-size: var(--fs-sm); }
.dl-chip:hover { color: var(--ink-1); border-color: var(--border-brand); }
.dl-chip.on { background: var(--brand); border-color: var(--brand); color: #fff; }

/* ── Toasts ────────────────────────────────────────────────────────────────── */
#dl-toasts { position: fixed; left: 50%; bottom: calc(76px + env(safe-area-inset-bottom)); transform: translateX(-50%);
  z-index: 95; display: flex; flex-direction: column; gap: var(--s-2); align-items: center; pointer-events: none; width: max-content; max-width: 92vw; }
.dl-toast { pointer-events: auto; display: flex; align-items: center; gap: var(--s-2);
  padding: var(--s-3) var(--s-4); border-radius: var(--r-pill); background: var(--surface-glass-strong, var(--surface-3));
  border: 1px solid var(--border-strong); color: var(--ink-1); box-shadow: var(--shadow-2); font-size: var(--fs-sm);
  opacity: 0; transform: translateY(8px); transition: opacity .22s ease, transform .22s ease; backdrop-filter: blur(8px); }
.dl-toast.in { opacity: 1; transform: translateY(0); }
.dl-toast.success { border-color: var(--good); }
.dl-toast.error { border-color: var(--hot); }
.dl-toast-ic { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px;
  border-radius: var(--r-pill); font-size: 11px; font-weight: 700; }
.dl-toast.success .dl-toast-ic { background: var(--good); color: #04231a; }
.dl-toast.error .dl-toast-ic { background: var(--hot); color: #2a0608; }
.dl-toast-act { margin-left: var(--s-2); background: none; border: none; color: var(--brand); font: inherit; font-weight: 600; cursor: pointer; }

/* ── Progress ring (mod review) ────────────────────────────────────────────── */
.dl-mod-progress { display: flex; justify-content: center; padding: var(--s-5) 0; }
.dl-ring-wrap { display: flex; flex-direction: column; align-items: center; gap: var(--s-3); }
.dl-ring { transform: rotate(-90deg); }
.dl-ring-bg { fill: none; stroke: var(--surface-3); stroke-width: 6; }
.dl-ring-fg { fill: none; stroke: var(--brand); stroke-width: 6; stroke-linecap: round; transition: stroke-dashoffset .6s var(--ease-out, ease); }
.dl-ring-label { font-size: var(--fs-sm); color: var(--ink-1); text-align: center; }

/* ── Thumbs feedback ───────────────────────────────────────────────────────── */
.dl-feedback { display: inline-flex; gap: var(--s-2); }
.dl-thumb { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: var(--r-pill);
  border: 1px solid var(--border-strong); background: var(--surface-1); color: var(--ink-2); cursor: pointer; font: inherit; }
.dl-thumb:hover { color: var(--ink-1); }
.dl-thumb.up.on { color: var(--good); border-color: var(--good); }
.dl-thumb.down.on { color: var(--hot); border-color: var(--hot); }

/* ── Comments ──────────────────────────────────────────────────────────────── */
.dl-comments { margin-top: var(--s-3); position: relative; }
.dl-cm-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--s-3); }
.dl-cm-head-right { display: flex; align-items: center; gap: var(--s-2); }
.dl-cm-count { color: var(--ink-2); font-size: var(--fs-sm); }
.dl-cm-sort button { background: none; border: none; color: var(--ink-3); cursor: pointer; font: inherit; padding: 2px 8px; border-radius: var(--r-pill); }
.dl-cm-sort button.on { color: var(--ink-1); background: var(--surface-2); }
.dl-cm-composer { display: flex; flex-direction: column; gap: var(--s-2); margin-bottom: var(--s-4); }
.dl-cm-composer .dl-btn { width: auto; align-self: flex-end; }
.dl-cm-empty { color: var(--ink-3); font-size: var(--fs-sm); padding: var(--s-4) 0; }
.dl-cm { margin-left: calc(var(--depth) * 14px); border-left: 2px solid var(--border-subtle); padding-left: var(--s-3); margin-top: var(--s-3); position: relative; }
.dl-cm[style*="--depth:0"] { border-left: none; padding-left: 0; margin-left: 0; }
.dl-cm-rail { position: absolute; left: -2px; top: 0; bottom: 0; width: 8px; cursor: pointer; }
.dl-cm.collapsed > .dl-cm-main > .dl-cm-kids,
.dl-cm.collapsed > .dl-cm-main > .dl-cm-body,
.dl-cm.collapsed > .dl-cm-main > .dl-cm-replybox { display: none; }
.dl-cm-meta { font-size: var(--fs-xs); color: var(--ink-3); }
.dl-cm-meta b { color: var(--ink-2); }
.dl-cm-body { font-size: var(--fs-sm); color: var(--ink-1); margin: 3px 0; line-height: var(--lh-snug, 1.4); white-space: pre-wrap; }
.dl-cm-actions { display: flex; align-items: center; gap: var(--s-2); font-size: var(--fs-xs); }
.dl-cm-vote { background: none; border: none; color: var(--ink-3); cursor: pointer; font-size: 12px; padding: 2px; }
.dl-cm-vote.up.on { color: var(--good); }
.dl-cm-vote.down.on { color: var(--hot); }
.dl-cm-score { color: var(--ink-2); min-width: 16px; text-align: center; }
.dl-cm-reply, .dl-cm-del { background: none; border: none; color: var(--ink-3); cursor: pointer; font: inherit; font-size: var(--fs-xs); }
.dl-cm-reply:hover, .dl-cm-del:hover { color: var(--ink-1); }
.dl-cm-replybox { display: flex; flex-direction: column; gap: var(--s-2); margin-top: var(--s-2); }
.dl-cm-replybox .dl-btn { width: auto; }

/* ── Dunce AI tutor (@dunce mentions, in-thread replies, the direct chat) ─────── */
/* "Ask Dunce" button in the comments header */
.dl-cm-askai { display: inline-flex; align-items: center; gap: 4px; background: var(--brand-soft); border: 1px solid transparent;
  color: var(--brand); cursor: pointer; font: inherit; font-size: var(--fs-xs); font-weight: var(--fw-semibold, 600);
  padding: 4px 10px; border-radius: var(--r-pill); }
.dl-cm-askai:hover { border-color: var(--border-brand, var(--brand)); }

/* @dunce mention highlight inside comment bodies */
.dl-mention { color: var(--brand); font-weight: var(--fw-semibold, 600); }

/* AI-authored comments stand apart from human ones */
.dl-cm.is-ai > .dl-cm-main { background: var(--brand-soft); border: 1px solid var(--brand-ring); border-radius: var(--r-md, 8px);
  padding: var(--s-2) var(--s-3); }
.dl-cm-ai-name { color: var(--brand) !important; }
.dl-cm-ai-badge { font-size: var(--fs-xs); color: var(--brand); background: var(--brand-soft);
  padding: 0 6px; border-radius: var(--r-pill); }
.dl-cm-chat { background: none; border: none; color: var(--brand); cursor: pointer; font: inherit; font-size: var(--fs-xs); }
.dl-cm-chat:hover { text-decoration: underline; }

/* @dunce mention autocomplete menu */
.dl-mention-menu { position: absolute; z-index: 5; min-width: 200px; background: var(--surface-2);
  border: 1px solid var(--border-strong); border-radius: var(--r-md, 8px); box-shadow: var(--shadow-3); overflow: hidden; }
.dl-mention-opt { display: flex; flex-direction: column; gap: 1px; width: 100%; text-align: left; padding: var(--s-2) var(--s-3);
  background: none; border: none; color: var(--ink-1); cursor: pointer; font: inherit; }
.dl-mention-opt:hover { background: var(--brand-soft); }
.dl-mention-opt b { color: var(--brand); }
.dl-mention-opt span { font-size: var(--fs-xs); color: var(--ink-3); }

/* ── Direct chat panel (assistant-chat.mjs) ──────────────────────────────────── */
.dl-chat { display: flex; flex-direction: column; max-height: 88vh; }
.dl-chat-head { display: flex; align-items: center; gap: var(--s-3); margin-bottom: var(--s-3); padding-right: 36px; }
.dl-chat-avatar { display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--r-pill);
  background: var(--brand-soft); font-size: 20px; }
.dl-chat-tag { font-size: var(--fs-xs); color: var(--ink-3); }
.dl-chat-log { flex: 1; min-height: 200px; overflow-y: auto; display: flex; flex-direction: column; gap: var(--s-2);
  padding: var(--s-2) 0; }
.dl-chat-msg { max-width: 85%; padding: var(--s-2) var(--s-3); border-radius: var(--r-lg, 12px); font-size: var(--fs-sm);
  line-height: var(--lh-snug, 1.45); white-space: pre-wrap; word-wrap: break-word; }
.dl-chat-msg.user { align-self: flex-end; background: var(--brand); color: #fff; border-bottom-right-radius: 4px; }
.dl-chat-msg.ai { align-self: flex-start; background: var(--surface-3); color: var(--ink-1); border-bottom-left-radius: 4px; }
.dl-chat-composer { display: flex; gap: var(--s-2); align-items: flex-end; margin-top: var(--s-3); }
.dl-chat-input { flex: 1; resize: none; max-height: 140px; }
.dl-chat-composer .dl-btn { width: auto; }
.dl-chat-dots { display: inline-flex; gap: 4px; }
.dl-chat-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-3); animation: dl-chat-bounce 1.2s infinite ease-in-out; }
.dl-chat-dots i:nth-child(2) { animation-delay: .15s; }
.dl-chat-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes dl-chat-bounce { 0%, 80%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }

/* ── Search ────────────────────────────────────────────────────────────────── */
.dl-search-head { padding: calc(var(--s-5) + env(safe-area-inset-top)) var(--s-5) var(--s-3); }
.dl-search-back { display: inline-flex; align-items: center; gap: 4px; margin-bottom: var(--s-3);
  padding: 4px 0; background: none; border: 0; cursor: pointer; color: var(--brand);
  font: inherit; font-size: var(--fs-sm); transition: color var(--dur-fast) var(--ease-out); }
.dl-search-back:hover { color: var(--brand-hover); }
.dl-search-head h1 { margin: 0 0 4px; color: var(--ink-1); }
.dl-search-head p { margin: 0 0 var(--s-4); color: var(--ink-2); font-size: var(--fs-sm); }
.dl-search-bar { display: flex; align-items: center; gap: var(--s-2); padding: var(--s-3) var(--s-4);
  background: var(--surface-2); border: 1px solid var(--border-strong); border-radius: var(--r-pill); color: var(--ink-3); }
.dl-search-bar:focus-within { border-color: var(--brand); }
.dl-search-input { flex: 1; background: none; border: none; color: var(--ink-1); font: inherit; outline: none; }
.dl-search-results { padding: 0 var(--s-5) var(--s-7); }
.dl-search-hint, .dl-search-empty { color: var(--ink-3); font-size: var(--fs-sm); padding: var(--s-3) 0; }
.dl-sr-label { margin: var(--s-4) 0 var(--s-2); font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .04em; color: var(--ink-3); }
.dl-sr-group { display: flex; flex-direction: column; gap: var(--s-2); }
.dl-sr { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); text-align: left;
  padding: var(--s-3) var(--s-4); border-radius: var(--r-md, 8px); border: 1px solid var(--border-subtle); background: var(--surface-1); color: var(--ink-1); cursor: pointer; font: inherit; }
.dl-sr:hover:not(:disabled) { border-color: var(--border-brand); }
.dl-sr.soon { opacity: .6; cursor: default; }
.dl-sr-name { font-weight: var(--fw-semibold, 600); }
.dl-sr-blurb { font-size: var(--fs-xs); color: var(--ink-3); }
.dl-sr-tag { font-size: var(--fs-micro, .68rem); padding: 2px 8px; border-radius: var(--r-pill); }
.dl-sr-tag.live { background: var(--brand-soft); color: var(--brand); }
.dl-sr-tag.soon { background: var(--surface-3); color: var(--ink-3); }

/* ── Admin ─────────────────────────────────────────────────────────────────── */
.dl-admin-tabs { display: flex; gap: var(--s-2); margin-bottom: var(--s-4); }
.dl-admin-tabs button { flex: 1; padding: var(--s-2); border-radius: var(--r-md, 8px); border: 1px solid var(--border-subtle);
  background: var(--surface-1); color: var(--ink-2); cursor: pointer; font: inherit; }
.dl-admin-tabs button.on { border-color: var(--brand); color: var(--ink-1); background: var(--brand-soft); }
.dl-admin-empty, .dl-admin-loading { color: var(--ink-3); padding: var(--s-4) 0; text-align: center; }
.dl-q, .dl-ver { padding: var(--s-3); border: 1px solid var(--border-subtle); border-radius: var(--r-md, 8px); margin-bottom: var(--s-3); }
.dl-q-top { display: flex; justify-content: space-between; color: var(--ink-1); }
.dl-q-conf { color: var(--ink-3); font-size: var(--fs-xs); }
.dl-q-summary { color: var(--ink-1); font-size: var(--fs-sm); margin: 4px 0; }
.dl-q-rat, .dl-q-fields { color: var(--ink-2); font-size: var(--fs-xs); margin-top: 4px; }
.dl-q-gate { color: var(--amp); font-size: var(--fs-xs); margin-top: 4px; }
.dl-q-actions { display: flex; gap: var(--s-2); margin-top: var(--s-3); }
.dl-q-actions .dl-btn { width: auto; }
.dl-ver { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); }
.dl-ver-note { color: var(--ink-3); font-size: var(--fs-xs); }
.dl-ver-cur { color: var(--good); font-size: var(--fs-xs); }
.dl-ver-rb { width: auto; }

/* ── Profile avatar / "You" menu — a tool on the Explore map's top-right stack (sits above the
   search + random tools). Explore-only: hidden on every other view, shown when the map is active. ── */
.dl-you { position: absolute; top: calc(env(safe-area-inset-top) + var(--s-4)); right: var(--s-4); z-index: 60; display: none; }
.dl-you.on-map { display: block; }
.dl-you-btn { width: 44px; height: 44px; border-radius: var(--r-pill); border: 1px solid var(--border-strong);
  background: var(--surface-glass-strong); -webkit-backdrop-filter: blur(var(--blur-md)); backdrop-filter: blur(var(--blur-md));
  color: var(--ink-1); cursor: pointer; overflow: hidden; display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; box-shadow: var(--shadow-1); transition: border-color var(--dur-fast) var(--ease-out); }
.dl-you-btn:hover { border-color: var(--border-brand); }
.dl-you-btn img { width: 100%; height: 100%; object-fit: cover; }
.dl-you-menu { position: absolute; top: calc(100% + var(--s-2)); right: 0; min-width: 200px; background: var(--surface-3);
  border: 1px solid var(--border-strong); border-radius: var(--r-md, 8px); box-shadow: var(--shadow-3); padding: 6px; }
.dl-you-menu[hidden] { display: none; }
.dl-you-menu button { display: block; width: 100%; text-align: left; padding: var(--s-2) var(--s-3); border: none; background: none;
  color: var(--ink-1); cursor: pointer; font: inherit; border-radius: 6px; }
.dl-you-menu button:hover { background: var(--surface-2); }
.dl-you-name { padding: var(--s-2) var(--s-3); color: var(--ink-3); font-size: var(--fs-xs); border-bottom: 1px solid var(--border-subtle); margin-bottom: 4px; }

/* Desktop (≥900px): the profile avatar stays on the Explore map's top-right (same as mobile);
   it no longer folds into the sidebar foot. Toasts re-centre over the main pane. */
@media (min-width: 900px) {
  #dl-toasts { left: calc(50% + var(--sidebar-w) / 2); bottom: calc(var(--s-6) + env(safe-area-inset-bottom)); }
}

/* ── Constellation camera (pan / pinch-zoom) ───────────────────────────────── */
.sm-sky { touch-action: none; cursor: grab; }
.sm-sky:active { cursor: grabbing; }
.sm-universe { position: absolute; inset: 0; transform-origin: 0 0; will-change: transform; }
.sm-zoom { position: absolute; right: 10px; bottom: 10px; display: flex; flex-direction: column; gap: 6px; z-index: 6; }
.sm-zbtn { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--border-strong);
  background: var(--surface-glass-strong, var(--surface-3)); color: var(--ink-1); cursor: pointer; font-size: 18px;
  display: flex; align-items: center; justify-content: center; line-height: 1; }
.sm-zbtn:hover { border-color: var(--border-brand); }
.sm-hint { color: var(--ink-3); font-size: var(--fs-xs); }
.sm-teaser { z-index: 6; }

/* ── "Something not right?" link + community surface ───────────────────────── */
.dl-snr { background: none; border: none; color: var(--ink-3); cursor: pointer; font: inherit; font-size: var(--fs-sm); text-decoration: underline; padding: var(--s-2) 0; }
.dl-snr:hover { color: var(--amp); }
.dl-community-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); margin-bottom: var(--s-3); flex-wrap: wrap; }

/* ── Support / donation options (donation modal) ───────────────────────────── */
/* Note: `.dl-sheet a { color: var(--brand) }` above tints sheet links purple; we set explicit
   colors on every text child here so the labels stay readable (the old buttons rendered
   purple-on-purple / low-contrast — that's the bug this redesign fixes). */
.dl-support-opt { display: flex; align-items: center; gap: var(--s-3); width: 100%;
  padding: var(--s-3) var(--s-4); margin-top: var(--s-3); border-radius: var(--r-lg, 12px);
  border: 1px solid var(--border-strong); background: var(--surface-1); text-decoration: none;
  transition: transform .12s ease, border-color .12s ease, background .12s ease; }
.dl-support-opt:hover { transform: translateY(-1px); border-color: var(--border-brand); }
.dl-support-ic { flex: none; width: 38px; height: 38px; display: grid; place-items: center;
  border-radius: var(--r-pill); background: var(--surface-3); font-size: 18px; color: var(--ink-1); }
.dl-support-txt { display: flex; flex-direction: column; gap: 1px; flex: 1; min-width: 0; }
.dl-support-txt b { color: var(--ink-1); font-weight: var(--fw-semibold, 600); }
.dl-support-txt span { color: var(--ink-2); font-size: var(--fs-xs); }
.dl-support-go { flex: none; color: var(--ink-3); font-size: 18px; }
/* Primary (monthly) — filled brand with readable white text. */
.dl-support-opt.primary { background: var(--brand); border-color: var(--brand); }
.dl-support-opt.primary:hover { background: var(--brand-hover, var(--brand)); }
.dl-support-opt.primary .dl-support-ic { background: rgba(255,255,255,.22); color: #fff; }
.dl-support-opt.primary .dl-support-txt b { color: #fff; }
.dl-support-opt.primary .dl-support-txt span { color: rgba(255,255,255,.85); }
.dl-support-opt.primary .dl-support-go { color: rgba(255,255,255,.85); }

/* ── Supporter "heart" sticker (comments, You menu, profile) ───────────────── */
.dl-heart { display: inline-block; margin-left: 4px; color: var(--hot); font-size: .92em; line-height: 1; vertical-align: baseline; }
.dl-heart.red { color: var(--hot); }
.dl-heart.gold { color: var(--amp); text-shadow: 0 0 6px rgba(255, 194, 77, .55); }
.dl-heart.muted { color: var(--ink-3); margin: 0; opacity: .7; }

/* ── Thank-you (post-donation) ─────────────────────────────────────────────── */
.dl-thanks { text-align: center; }
.dl-thanks-heart { line-height: 1; margin: var(--s-2) 0 var(--s-3); }
.dl-thanks-heart .dl-heart { margin: 0; font-size: 46px; }
.dl-thanks .dl-btn { margin-top: var(--s-4); }

/* ── Profile / Settings page (the nav tab that replaced Feed) ───────────────── */
.dl-settings { height: 100%; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.dl-set-wrap { max-width: 560px; margin: 0 auto;
  padding: calc(var(--s-5) + env(safe-area-inset-top)) var(--s-4) calc(96px + env(safe-area-inset-bottom)); }
.dl-set-head h1 { margin: 0 0 var(--s-4); color: var(--ink-1); }
.dl-set-card { background: var(--surface-1); border: 1px solid var(--border-subtle);
  border-radius: var(--r-lg, 12px); padding: var(--s-4); margin-bottom: var(--s-3); }
.dl-set-card h3 { margin: 0 0 4px; color: var(--ink-1); font-size: var(--fs-md, 1rem); }
.dl-set-sub { margin: 0; color: var(--ink-2); font-size: var(--fs-sm); line-height: var(--lh-snug, 1.4); }
.dl-set-note { margin: var(--s-2) 0 0; color: var(--ink-3); font-size: var(--fs-xs); }
.dl-set-actions { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-3); }
.dl-set-actions .dl-btn { width: auto; flex: 0 0 auto; }
.dl-set-chips { margin-top: var(--s-2); }
.dl-set-id { display: flex; align-items: center; gap: var(--s-3); }
.dl-set-avatar { width: 48px; height: 48px; border-radius: var(--r-pill); overflow: hidden; flex: none;
  display: grid; place-items: center; background: var(--surface-3); color: var(--ink-1); font-weight: 700; font-size: 18px; }
.dl-set-avatar img { width: 100%; height: 100%; object-fit: cover; }
.dl-set-name { color: var(--ink-1); font-weight: var(--fw-semibold, 600); }
.dl-set-email { color: var(--ink-3); font-size: var(--fs-xs); }
.dl-set-card.supporter { text-align: center; }
.dl-set-card.supporter .dl-set-actions { justify-content: center; }
.dl-set-heart { line-height: 1; margin-bottom: var(--s-2); }
.dl-set-heart .dl-heart { margin: 0; font-size: 40px; }
.dl-set-card.supporter.gold { border-color: rgba(255, 194, 77, .4);
  background: linear-gradient(180deg, rgba(255, 194, 77, .10), var(--surface-1)); }
.dl-set-card.supporter.red { border-color: rgba(255, 90, 106, .35); }
.dl-gold-word { color: var(--amp); font-weight: 600; }
.dl-set-stub { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); opacity: .8; }
.dl-set-soon { flex: none; font-size: var(--fs-xs); color: var(--ink-3); border: 1px solid var(--border-subtle);
  border-radius: var(--r-pill); padding: 2px 10px; }

/* ── Funding pool — the public, GoFundMe-style "Support" surface (chrome/funding.mjs) ─────────── */
.dl-fund { height: 100%; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.dl-fund-wrap { max-width: 640px; margin: 0 auto;
  padding: var(--s-6) var(--s-4) calc(var(--s-8) + env(safe-area-inset-bottom, 0px));
  display: flex; flex-direction: column; gap: var(--s-4); }
.dl-fund-hero { text-align: center; padding: var(--s-2) 0 var(--s-1); }
.dl-fund-buddy { width: 50px; height: 62px; flex: 0 0 auto; align-self: center; }
.dl-fund-kicker { display: inline-block; font-size: var(--fs-xs); letter-spacing: var(--ls-caps);
  text-transform: uppercase; color: var(--brand); font-weight: var(--fw-semibold); margin-bottom: var(--s-2); }
.dl-fund-hero h1 { font-size: var(--fs-2xl); line-height: var(--lh-tight); color: var(--ink-1); margin: 0 0 var(--s-2); }
.dl-fund-sub { color: var(--ink-2); font-size: var(--fs-md); line-height: var(--lh-snug); margin: 0; }

.dl-fund-card { background: var(--surface-1); border: 1px solid var(--border-subtle);
  border-radius: var(--r-lg); padding: var(--s-5); }
.dl-fund-pitch { text-align: center; display: flex; flex-direction: column; gap: var(--s-4);
  align-items: center; color: var(--ink-2); }

/* Goal card */
.dl-fund-goal { border-color: var(--border-brand); background: linear-gradient(180deg, var(--brand-soft), var(--surface-1)); }
.dl-fund-goal.met { border-color: rgba(51, 214, 159, .4);
  background: linear-gradient(180deg, rgba(51, 214, 159, .12), var(--surface-1)); }
.dl-fund-goal-top { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s-3); margin-bottom: var(--s-3); }
.dl-fund-raised b { display: block; font-size: var(--fs-2xl); font-weight: var(--fw-bold); color: var(--good); line-height: 1.1; }
.dl-fund-raised span { font-size: var(--fs-sm); color: var(--ink-3); }
.dl-fund-daysleft { flex: none; font-size: var(--fs-xs); color: var(--amp); border: 1px solid rgba(255, 194, 77, .3);
  background: rgba(255, 194, 77, .08); border-radius: var(--r-pill); padding: 4px 10px; white-space: nowrap; }
.dl-fund-track { height: 14px; border-radius: var(--r-pill); background: var(--surface-3); overflow: visible; position: relative; }
.dl-fund-fill { height: 100%; border-radius: var(--r-pill); position: relative; overflow: hidden; min-width: 10px;
  background: linear-gradient(90deg, var(--brand), var(--good));
  transition: width 1s cubic-bezier(.22, .61, .36, 1);
  box-shadow: 0 0 16px rgba(var(--brand-rgb), .55), 0 0 6px rgba(51, 214, 159, .5);
  animation: dl-fund-glow 2.8s ease-in-out infinite; }
@keyframes dl-fund-glow {
  0%, 100% { box-shadow: 0 0 12px rgba(var(--brand-rgb), .4), 0 0 5px rgba(51, 214, 159, .35); }
  50%      { box-shadow: 0 0 22px rgba(var(--brand-rgb), .8), 0 0 11px rgba(51, 214, 159, .65); } }
/* the soft "laser" sweep gliding along the filled bar (clipped to the fill) */
.dl-fund-fill::after { content: ""; position: absolute; inset: 0; width: 45%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .95), transparent);
  filter: blur(2px); transform: translateX(-140%);
  animation: dl-fund-laser 2.6s cubic-bezier(.45, 0, .25, 1) infinite; }
@keyframes dl-fund-laser {
  0% { transform: translateX(-140%); opacity: .15; }
  20% { opacity: 1; }
  75%, 100% { transform: translateX(280%); opacity: 0; } }
.dl-fund-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-2); margin: var(--s-4) 0; text-align: center; }
.dl-fund-stats .st b { display: block; font-size: var(--fs-lg); font-weight: var(--fw-bold); color: var(--ink-1); }
.dl-fund-stats .st span { font-size: var(--fs-xs); color: var(--ink-3); }
.dl-fund-cta { width: 100%; }
.dl-fund-fine { font-size: var(--fs-xs); color: var(--ink-3); text-align: center; margin: var(--s-3) 0 0; line-height: var(--lh-snug); }
.dl-fund-overflow { font-size: var(--fs-sm); color: var(--good); text-align: center; margin-bottom: var(--s-3); }

/* Cost visual — donations vs running costs, aggregate dollars only (no percentages shown) */
.dl-fund-flow-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-2); margin-bottom: var(--s-3); }
.dl-fund-flow-head h3 { margin: 0; font-size: var(--fs-md); color: var(--ink-1); }
.dl-fund-flow-note { font-size: var(--fs-xs); color: var(--ink-3); }
.dl-fund-flowbar { display: flex; height: 16px; border-radius: var(--r-pill); overflow: hidden; background: var(--surface-3); }
.dl-fund-flowbar .seg { height: 100%; transition: width .9s cubic-bezier(.2, .8, .2, 1); }
.dl-fund-flowbar .seg.work { background: linear-gradient(90deg, var(--brand), var(--good)); }
.dl-fund-flowbar .seg.cost { background: var(--amp); opacity: .85; }
.dl-fund-flow-legend { display: flex; flex-wrap: wrap; gap: var(--s-4); margin-top: var(--s-3); }
.dl-fund-flow-legend .lg { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-sm); color: var(--ink-2); }
.dl-fund-flow-legend .lg b { color: var(--ink-1); }
.dl-fund-flow-legend .dot { width: 10px; height: 10px; border-radius: var(--r-pill); flex: none; }
.dl-fund-flow-legend .dot.work { background: var(--good); }
.dl-fund-flow-legend .dot.cost { background: var(--amp); }

/* Backer wall (crediting) */
.dl-fund-wall h3 { margin: 0 0 var(--s-3); font-size: var(--fs-md); color: var(--ink-1); }
.dl-fund-backers { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.dl-fund-backer { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-2) 0;
  border-bottom: 1px solid var(--border-subtle); font-size: var(--fs-sm); }
.dl-fund-backer:last-child { border-bottom: none; }
/* stagger the whole wall in on first paint only (.intro is set once by funding.mjs) */
.dl-fund-backers.intro .dl-fund-backer { animation: dl-fund-slidein .5s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes dl-fund-slidein { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
/* a fresh backer drops in from the top with a brief brand-tint highlight */
.dl-fund-backer.is-new { animation: dl-fund-newbacker .8s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes dl-fund-newbacker {
  0% { opacity: 0; transform: translateY(-16px); background: var(--brand-soft); }
  60% { opacity: 1; transform: none; background: var(--brand-soft); }
  100% { background: transparent; }
}
@keyframes dl-fund-newbacker-rm { 0% { background: var(--brand-soft); } 100% { background: transparent; } }
.dl-fund-backer-spark { color: var(--hot); flex: none; }
.dl-fund-backer-name { color: var(--ink-1); flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dl-fund-backer-amt { color: var(--good); font-weight: var(--fw-semibold); flex: none; }
.dl-fund-backer-ago { color: var(--ink-3); font-size: var(--fs-xs); flex: none; min-width: 56px; text-align: right; }
.dl-fund-empty { color: var(--ink-3); font-size: var(--fs-sm); padding: var(--s-2) 0; }

/* FAQ — the only place "15% maintenance & operations" appears */
.dl-fund-faq summary { cursor: pointer; font-size: var(--fs-md); color: var(--ink-1); font-weight: var(--fw-medium); }
.dl-fund-faq p { color: var(--ink-2); font-size: var(--fs-sm); line-height: var(--lh-normal); margin: var(--s-3) 0 0; }
.dl-fund-faq-fine { color: var(--ink-3) !important; font-size: var(--fs-xs) !important; }

/* Contribute sheet */
.dl-fund-amounts { display: flex; flex-wrap: wrap; gap: var(--s-2); margin: var(--s-3) 0; }
.dl-fund-amounts .dl-chip { flex: 1 1 22%; }
.dl-fund-custom { display: inline-flex; align-items: center; gap: 2px; border: 1px solid var(--border-strong);
  border-radius: var(--r-md); padding: 0 var(--s-2); flex: 1 1 22%; color: var(--ink-3); }
.dl-fund-custom input { width: 100%; background: none; border: none; color: var(--ink-1); font-size: var(--fs-md); padding: 8px 0; outline: none; }
.dl-fund-custom input.err { color: var(--hot); }
.dl-fund-credit { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); font-size: var(--fs-sm); color: var(--ink-2); margin: var(--s-2) 0; }
.dl-fund-asname b { color: var(--ink-1); }
.dl-fund-anon { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; white-space: nowrap; }
.dl-fund-signin-note { font-size: var(--fs-sm); color: var(--ink-3); margin: var(--s-2) 0; }
.dl-linklike { background: none; border: none; color: var(--brand); cursor: pointer; font: inherit; padding: 0; text-decoration: underline; }
.dl-fund-name { width: 100%; box-sizing: border-box; background: var(--surface-2); border: 1px solid var(--border-strong);
  border-radius: var(--r-md); color: var(--ink-1); padding: 10px 12px; margin-bottom: var(--s-2); font-size: var(--fs-md); }
.dl-fund-give-go { width: 100%; margin-top: var(--s-2); }
.dl-fund-freq { display: flex; gap: 4px; background: var(--surface-3); border-radius: var(--r-pill); padding: 4px; margin: var(--s-2) 0 var(--s-3); }
.dl-fund-freq button { flex: 1; border: none; background: none; color: var(--ink-3); font-size: var(--fs-sm);
  font-weight: var(--fw-medium); font-family: var(--font-sans); padding: 8px; border-radius: var(--r-pill); cursor: pointer;
  transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out); }
.dl-fund-freq button.on { background: var(--brand); color: #fff; }

/* Celebration on milestone rollover */
.dl-fund-celebrate .dl-sheet { text-align: center; position: relative; overflow: hidden; }
.dl-fund-celebrate-mark { font-size: 56px; line-height: 1; margin-bottom: var(--s-2); }
.dl-fund-confetti { position: absolute; inset: 0; pointer-events: none; }
.dl-fund-confetti i { position: absolute; top: -12px; left: calc(var(--i) * 4.2%); width: 8px; height: 12px;
  background: var(--brand); opacity: .9; border-radius: 2px; animation: dl-fund-fall 1.8s linear infinite; animation-delay: calc(var(--i) * 60ms); }
.dl-fund-confetti i:nth-child(3n) { background: var(--good); }
.dl-fund-confetti i:nth-child(3n+1) { background: var(--amp); }
.dl-fund-confetti i:nth-child(3n+2) { background: var(--hot); }
@keyframes dl-fund-fall { 0% { transform: translateY(-12px) rotate(0); opacity: 1; } 100% { transform: translateY(360px) rotate(420deg); opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  .dl-fund-fill, .dl-fund-fill::after, .dl-fund-confetti i, .dl-fund-backers.intro .dl-fund-backer, .dl-fund-live i { animation: none; }
  /* a new backer still gets a non-moving tint highlight so the arrival stays noticeable */
  .dl-fund-backer.is-new { animation: dl-fund-newbacker-rm 1.2s ease both; }
}

/* Funding: platform impact line, suggest card, contact sheet, profile "Your impact" card */
.dl-fund-impact { color: var(--good); font-size: var(--fs-sm); margin: var(--s-2) 0 0; }
.dl-fund-impact b { color: var(--ink-1); }
.dl-fund-suggest { text-align: center; }
.dl-fund-suggest h3 { margin: 0 0 var(--s-1); font-size: var(--fs-md); color: var(--ink-1); }
.dl-fund-suggest p { color: var(--ink-2); font-size: var(--fs-sm); margin: 0 0 var(--s-3); }

.dl-contact textarea, .dl-contact input { width: 100%; box-sizing: border-box; background: var(--surface-2);
  border: 1px solid var(--border-strong); border-radius: var(--r-md); color: var(--ink-1);
  padding: 10px 12px; margin-bottom: var(--s-2); font-size: var(--fs-md); font-family: var(--font-sans); }
.dl-contact textarea { resize: vertical; min-height: 92px; }
.dl-contact textarea.err { border-color: var(--hot); }
.dl-contact .dl-contact-go { width: 100%; margin-top: var(--s-1); }

.dl-set-impact { border-color: var(--border-brand); background: linear-gradient(180deg, var(--brand-soft), var(--surface-1)); }
.dl-set-impact h3 { margin: 0 0 var(--s-3); font-size: var(--fs-md); color: var(--ink-1); }
.dl-impact-row { display: flex; gap: var(--s-6); margin-bottom: var(--s-3); }
.dl-impact-stat b { display: block; font-size: var(--fs-2xl); font-weight: var(--fw-bold); color: var(--good); line-height: 1.1; }
.dl-impact-stat span { font-size: var(--fs-xs); color: var(--ink-3); }
.dl-impact-next { margin-bottom: var(--s-2); }
.dl-impact-track { height: 8px; border-radius: var(--r-pill); background: var(--surface-3); overflow: hidden; margin-bottom: 4px; }
.dl-impact-track > div { height: 100%; border-radius: var(--r-pill);
  background: linear-gradient(90deg, var(--brand), var(--good)); transition: width .6s ease; }
.dl-impact-next span { font-size: var(--fs-xs); color: var(--ink-3); }
.dl-impact-note { margin-top: var(--s-2) !important; }

/* Recent backers "live" indicator + the "where your support goes" statement card */
.dl-fund-wall-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--s-3); }
.dl-fund-wall-head h3 { margin: 0; }
.dl-fund-live { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-xs);
  letter-spacing: var(--ls-caps); text-transform: uppercase; color: var(--good); }
.dl-fund-live i { width: 7px; height: 7px; border-radius: 50%; background: var(--good);
  box-shadow: 0 0 0 0 rgba(51, 214, 159, .55); animation: dl-fund-livedot 1.6s ease-out infinite; }
@keyframes dl-fund-livedot {
  0% { box-shadow: 0 0 0 0 rgba(51, 214, 159, .55); }
  70% { box-shadow: 0 0 0 7px rgba(51, 214, 159, 0); }
  100% { box-shadow: 0 0 0 0 rgba(51, 214, 159, 0); } }
.dl-fund-where h3 { margin: 0 0 var(--s-2); font-size: var(--fs-md); color: var(--ink-1); }
.dl-fund-where p { margin: 0; color: var(--ink-2); font-size: var(--fs-sm); line-height: var(--lh-normal); }
.dl-fund-where-link { display: inline-block; margin-top: var(--s-2); color: var(--brand); font-size: var(--fs-sm); font-weight: var(--fw-medium); text-decoration: none; }
.dl-fund-where-link:hover { text-decoration: underline; }

/* ── The generator strip on the funding hero (docs/GENERATION-QUEUE.md): the visible dollar→
   generator loop — building / queued / shipped. Hidden unless the dispatcher is live. ── */
.dl-fund-genstrip {
    margin-top: 10px; padding: 7px 14px; display: inline-block;
    font-size: var(--fs-sm); color: var(--ink-2); border-radius: var(--r-pill);
    border: 1px solid var(--border-brand); background: var(--brand-soft);
}
.dl-fund-genstrip b { color: var(--brand); }
.dl-fund-genstrip[hidden] { display: none; }

/* ── The founder admin panel (chrome/admin.mjs) — 5-tab console. Builds on the .dl-admin-* base
   above and the .dl-fund-stats .st tile pattern. Admin-only; ?admindemo=1 renders it from mocks. ── */
.dl-admin-full { max-width: 720px; width: min(720px, calc(100vw - 24px)); max-height: 88vh; overflow-y: auto; }
.dl-admin-demo {
    font-size: var(--fs-micro); font-weight: var(--fw-semibold); text-transform: uppercase;
    letter-spacing: var(--ls-caps); color: var(--warn, #ff7b5c);
    border: 1px solid currentColor; border-radius: var(--r-pill); padding: 2px 8px; vertical-align: middle;
}
.dl-admin-controls {
    display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
    padding: 10px 14px; margin-bottom: 12px;
    border: 1px solid var(--border-subtle); border-radius: var(--r-md); background: var(--surface-1);
}
.dl-admin-spacer { flex: 1 1 auto; }
.dl-admin-dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; flex: 0 0 auto; }
.dl-admin-dot.ok { background: var(--good, #3fb950); box-shadow: 0 0 6px var(--good, #3fb950); }
.dl-admin-dot.warn { background: var(--warn, #ff7b5c); box-shadow: 0 0 6px var(--warn, #ff7b5c); }
.dl-admin-sub { font-size: var(--fs-xs); color: var(--ink-3); }
.dl-admin-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.dl-admin-tiles .st {
    padding: 10px 12px; border: 1px solid var(--border-subtle); border-radius: var(--r-md);
    background: var(--surface-1); display: flex; flex-direction: column; gap: 2px;
}
.dl-admin-tiles .st b { font-size: var(--fs-lg); color: var(--ink-1); }
.dl-admin-tiles .st span { font-size: var(--fs-micro); text-transform: uppercase; letter-spacing: var(--ls-caps); color: var(--ink-3); }
.dl-admin-tiles .st.bad b { color: var(--warn, #ff7b5c); }
.dl-admin-now {
    padding: 8px 12px; margin-bottom: 10px; font-size: var(--fs-sm); color: var(--ink-2);
    border: 1px solid var(--border-brand); border-radius: var(--r-md); background: var(--brand-soft);
}
.dl-admin-now a, .dl-admin-links a { color: var(--brand); }
.dl-admin-sys { font-size: var(--fs-xs); color: var(--ink-3); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.dl-admin-warn-text { color: var(--warn, #ff7b5c); }
.dl-admin-body .dl-label {
    margin: 14px 0 6px; font-size: var(--fs-xs); font-weight: var(--fw-semibold);
    text-transform: uppercase; letter-spacing: var(--ls-caps); color: var(--ink-3);
}
.dl-admin-chip {
    font-size: var(--fs-micro); font-weight: var(--fw-semibold); text-transform: uppercase;
    letter-spacing: var(--ls-caps); padding: 2px 8px; border-radius: var(--r-pill);
    background: var(--surface-2); color: var(--ink-2); flex: 0 0 auto;
}
.dl-admin-chip.s-generating { background: var(--brand-soft); color: var(--brand); }
.dl-admin-chip.s-published, .dl-admin-chip.s-built, .dl-admin-chip.s-confirmed { background: rgba(63,185,80,.16); color: var(--good, #3fb950); }
.dl-admin-chip.s-failed, .dl-admin-chip.s-refunded { background: rgba(255,123,92,.16); color: var(--warn, #ff7b5c); }
.dl-admin-chip.s-queued_priority { background: rgba(255,196,77,.16); color: #d99a1f; }
.dl-admin-row {
    display: flex; align-items: center; gap: 10px; padding: 9px 12px; margin-bottom: 6px;
    border: 1px solid var(--border-subtle); border-radius: var(--r-md); background: var(--surface-1);
}
.dl-admin-row-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.dl-admin-row-main > b { font-size: var(--fs-sm); }
.dl-admin-row-actions { display: flex; gap: 6px; flex: 0 0 auto; align-items: center; }
.dl-admin-err { font-size: var(--fs-xs); color: var(--warn, #ff7b5c); }
.dl-admin-links { font-size: var(--fs-xs); }
.dl-admin-enqueue, .dl-admin-usearch { display: flex; gap: 8px; margin-bottom: 8px; flex-wrap: wrap; }
.dl-admin-enqueue .dl-input, .dl-admin-usearch .dl-input { flex: 1 1 180px; }
.dl-admin-internal {
    font-size: var(--fs-xs); color: var(--ink-3); margin: 0 0 10px;
    padding: 6px 10px; border-left: 3px solid var(--border-brand); background: var(--surface-1);
}
.dl-admin-subtabs { margin-top: 4px; }
.dl-admin-roleselect { width: auto; padding: 4px 8px; }
@media (max-width: 560px) { .dl-admin-tiles { grid-template-columns: repeat(2, 1fr); } }
