/* APS Vault UI — design tokens + components. No framework, no build step.
   Theme: `data-theme` on <html> = dark | light; without it the system preference applies.
   Everything is driven by the variables below, so a new theme is a block of variables. */

:root {
  --font: -apple-system, BlinkMacSystemFont, "Inter", "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  --radius: 10px; --radius-sm: 6px; --radius-lg: 14px;
  --shadow: 0 1px 2px rgba(0,0,0,.25), 0 8px 24px -12px rgba(0,0,0,.45);
  --sidebar-w: 264px; --list-w: 380px;
  --dur: 140ms;

  /* dark (default) */
  --bg: #0b0f1a; --bg-1: #10151f; --bg-2: #161c29; --bg-3: #1c2333;
  --line: #222a3a; --line-2: #2c3547;
  --fg: #e6eaf2; --fg-1: #aeb6c6; --fg-2: #7a8498; --fg-3: #556079;
  --accent: #4f8cff; --accent-2: #3b74e6; --accent-fg: #ffffff; --accent-soft: rgba(79,140,255,.14);
  --ok: #34c38f; --ok-soft: rgba(52,195,143,.14);
  --warn: #f2b53b; --warn-soft: rgba(242,181,59,.14);
  --danger: #f06a6a; --danger-soft: rgba(240,106,106,.14);
  --overlay: rgba(4,7,14,.72);
  --ring: 0 0 0 3px rgba(79,140,255,.28);
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #f5f6f9; --bg-1: #ffffff; --bg-2: #f0f2f6; --bg-3: #e6e9f0;
    --line: #e2e6ee; --line-2: #cfd5e1;
    --fg: #121826; --fg-1: #3b4354; --fg-2: #6b7486; --fg-3: #98a1b3;
    --accent: #2f6fe8; --accent-2: #255dc6; --accent-soft: rgba(47,111,232,.12);
    --ok: #1f9d6b; --ok-soft: rgba(31,157,107,.12);
    --warn: #c4860b; --warn-soft: rgba(196,134,11,.14);
    --danger: #d64545; --danger-soft: rgba(214,69,69,.12);
    --overlay: rgba(20,26,40,.45);
    --shadow: 0 1px 2px rgba(16,24,40,.06), 0 10px 30px -14px rgba(16,24,40,.25);
    color-scheme: light;
  }
}
:root[data-theme="light"] {
  --bg: #f5f6f9; --bg-1: #ffffff; --bg-2: #f0f2f6; --bg-3: #e6e9f0;
  --line: #e2e6ee; --line-2: #cfd5e1;
  --fg: #121826; --fg-1: #3b4354; --fg-2: #6b7486; --fg-3: #98a1b3;
  --accent: #2f6fe8; --accent-2: #255dc6; --accent-soft: rgba(47,111,232,.12);
  --ok: #1f9d6b; --ok-soft: rgba(31,157,107,.12);
  --warn: #c4860b; --warn-soft: rgba(196,134,11,.14);
  --danger: #d64545; --danger-soft: rgba(214,69,69,.12);
  --overlay: rgba(20,26,40,.45);
  --shadow: 0 1px 2px rgba(16,24,40,.06), 0 10px 30px -14px rgba(16,24,40,.25);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 14px/1.45 var(--font); -webkit-font-smoothing: antialiased; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
button:disabled { opacity: .5; cursor: default; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
code, .mono { font-family: var(--mono); }
::selection { background: var(--accent-soft); }
*:focus-visible { outline: none; box-shadow: var(--ring); border-radius: var(--radius-sm); }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 4px; }
::-webkit-scrollbar-track { background: transparent; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.hidden { display: none !important; }

/* ── primitives ─────────────────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: var(--radius-sm);
  border: 1px solid var(--line); background: var(--bg-2); color: var(--fg-1); font-weight: 500; white-space: nowrap;
  transition: background var(--dur), border-color var(--dur), color var(--dur); }
.btn:hover { background: var(--bg-3); color: var(--fg); border-color: var(--line-2); text-decoration: none; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-fg); }
.btn.primary:hover { background: var(--accent-2); border-color: var(--accent-2); }
.btn.danger { background: var(--danger-soft); border-color: transparent; color: var(--danger); }
.btn.danger:hover { background: var(--danger); color: #fff; }
.btn.ghost { background: transparent; border-color: transparent; color: var(--fg-2); }
.btn.ghost:hover { background: var(--bg-2); color: var(--fg); }
.btn.sm { padding: 4px 8px; font-size: 12.5px; }
.btn.icon { padding: 6px; }
.btn.icon.sm { padding: 4px; }
.btn.wide { width: 100%; justify-content: center; }

.input, .textarea { width: 100%; padding: 8px 10px; border-radius: var(--radius-sm); border: 1px solid var(--line);
  background: var(--bg-1); color: var(--fg); transition: border-color var(--dur), box-shadow var(--dur); }
.input::placeholder, .textarea::placeholder { color: var(--fg-3); }
.input:focus, .textarea:focus { border-color: var(--accent); box-shadow: var(--ring); outline: none; }
.textarea { resize: vertical; min-height: 64px; }
.input.mono, .textarea.mono { font-family: var(--mono); font-size: 13px; }
.field { display: flex; flex-direction: column; gap: 5px; }
.field > label, .label { font-size: 12px; color: var(--fg-2); font-weight: 500; letter-spacing: .01em; }
.field-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.row { display: flex; align-items: center; gap: 8px; }
.row.between { justify-content: space-between; }
.row.wrap { flex-wrap: wrap; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.muted { color: var(--fg-2); } .faint { color: var(--fg-3); } .small { font-size: 12px; } .xs { font-size: 11px; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card { background: var(--bg-1); border: 1px solid var(--line); border-radius: var(--radius); }
.card.pad { padding: 16px; }
.divider { height: 1px; background: var(--line); margin: 4px 0; }

.badge { display: inline-flex; align-items: center; gap: 4px; padding: 1px 7px; border-radius: 999px; font-size: 11px;
  font-weight: 600; letter-spacing: .02em; background: var(--bg-3); color: var(--fg-2); border: 1px solid var(--line); }
.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.danger { background: var(--danger-soft); color: var(--danger); border-color: transparent; }
.badge.accent { background: var(--accent-soft); color: var(--accent); border-color: transparent; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; font-size: 12.5px;
  border: 1px solid var(--line); background: var(--bg-1); color: var(--fg-1); transition: all var(--dur); }
.chip:hover { border-color: var(--line-2); background: var(--bg-2); }
.chip.active { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.seg { display: inline-flex; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 2px; }
.seg button { padding: 4px 10px; border-radius: 4px; color: var(--fg-2); font-size: 12.5px; font-weight: 500; }
.seg button.active { background: var(--bg-1); color: var(--fg); box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.toggle { position: relative; width: 36px; height: 20px; border-radius: 999px; background: var(--line-2); transition: background var(--dur); flex-shrink: 0; }
.toggle::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform var(--dur); }
.toggle.on { background: var(--accent); } .toggle.on::after { transform: translateX(16px); }
.kbd { font-family: var(--mono); font-size: 11px; padding: 1px 5px; border-radius: 4px; border: 1px solid var(--line-2); background: var(--bg-2); color: var(--fg-2); }
.avatar { width: 34px; height: 34px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 13px; color: #fff; flex-shrink: 0; letter-spacing: .02em; }
.meter { height: 4px; border-radius: 2px; background: var(--bg-3); overflow: hidden; }
.meter > div { height: 100%; transition: width var(--dur), background var(--dur); }
.spin { animation: spin 1s linear infinite; } @keyframes spin { to { transform: rotate(360deg); } }
.fade-in { animation: fade var(--dur) ease-out; } @keyframes fade { from { opacity: 0; transform: translateY(2px); } }
.icon { display: inline-block; vertical-align: -2px; flex-shrink: 0; }
.secret-blur { filter: blur(6px); user-select: none; transition: filter var(--dur); }

/* ── shell ──────────────────────────────────────────────────────────────── */
.shell { height: 100vh; display: grid; grid-template-rows: 52px 1fr; }
.topbar { display: flex; align-items: center; gap: 12px; padding: 0 14px; border-bottom: 1px solid var(--line); background: var(--bg-1); }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 15px; letter-spacing: -.01em; }
.brand .logo { width: 28px; height: 28px; border-radius: 8px; background: linear-gradient(135deg, var(--accent), #8b5cf6); display: inline-flex; align-items: center; justify-content: center; color: #fff; }
.search { flex: 1; max-width: 560px; margin: 0 auto; position: relative; }
.search .input { padding-left: 34px; padding-right: 64px; background: var(--bg-2); }
.search .icon-l { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--fg-3); }
.search .kbd { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); }
.topbar .actions { display: flex; align-items: center; gap: 6px; margin-left: auto; }

.body { display: grid; grid-template-columns: var(--sidebar-w) 1fr; min-height: 0; }
.sidebar { border-right: 1px solid var(--line); background: var(--bg-1); overflow-y: auto; padding: 10px 8px; display: flex; flex-direction: column; gap: 14px; }
.nav-title { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--fg-3); padding: 0 10px; margin-bottom: 4px; display: flex; align-items: center; justify-content: space-between; }
.nav-title .btn { color: var(--fg-3); }
.nav-item { display: flex; align-items: center; gap: 8px; width: 100%; padding: 6px 10px; border-radius: var(--radius-sm); color: var(--fg-1); text-align: left; transition: background var(--dur); }
.nav-item:hover { background: var(--bg-2); color: var(--fg); }
.nav-item.active { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.nav-item .count { margin-left: auto; font-size: 11.5px; color: var(--fg-3); font-variant-numeric: tabular-nums; }
.nav-item.active .count { color: var(--accent); }
.nav-item .chev { color: var(--fg-3); width: 14px; }
.nav-item.leaf { padding-left: 32px; font-size: 13px; color: var(--fg-2); }
.sidebar .chips { padding: 0 8px; }

.content { display: grid; grid-template-columns: var(--list-w) 1fr; min-height: 0; }
.content.single { grid-template-columns: 1fr; }
.list-pane { border-right: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; }
.list-head { padding: 10px 12px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 8px; }
.list-head h2 { margin: 0; font-size: 14px; font-weight: 600; flex: 1; }
.list { overflow-y: auto; padding: 6px; }
.item { display: grid; grid-template-columns: 34px 1fr auto; gap: 10px; align-items: center; padding: 8px 10px; border-radius: var(--radius-sm);
  cursor: pointer; position: relative; border: 1px solid transparent; }
.item:hover { background: var(--bg-2); }
.item.active { background: var(--accent-soft); border-color: transparent; }
.item.focused { border-color: var(--accent); }
.item .name { font-weight: 600; display: flex; align-items: center; gap: 6px; min-width: 0; }
.item .name span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item .sub { font-size: 12px; color: var(--fg-2); margin-top: 1px; display: flex; gap: 6px; align-items: center; min-width: 0; }
.item .sub .truncate { max-width: 180px; }
.item .meta { font-size: 11.5px; color: var(--fg-3); text-align: right; white-space: nowrap; }
.item .quick { display: none; gap: 2px; position: absolute; right: 8px; top: 50%; transform: translateY(-50%); background: var(--bg-2); padding: 2px; border-radius: 6px; border: 1px solid var(--line); }
.item:hover .quick, .item.focused .quick { display: inline-flex; }
.item:hover .meta, .item.focused .meta { visibility: hidden; }
.item .star { color: var(--warn); }

.detail-pane { overflow-y: auto; min-height: 0; }
.detail { max-width: 860px; margin: 0 auto; padding: 24px 28px 48px; display: flex; flex-direction: column; gap: 18px; }
.detail-head { display: flex; align-items: flex-start; gap: 14px; }
.detail-head h1 { margin: 0; font-size: 20px; font-weight: 700; letter-spacing: -.01em; word-break: break-word; }
.detail-head .crumbs { font-size: 12.5px; color: var(--fg-2); display: flex; align-items: center; gap: 6px; margin-top: 2px; }
.detail-head .actions { margin-left: auto; display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.frow { display: grid; grid-template-columns: 140px 1fr auto; gap: 12px; align-items: start; padding: 12px 14px; border-top: 1px solid var(--line); }
.frow:first-child { border-top: 0; }
.frow .k { font-size: 12.5px; color: var(--fg-2); padding-top: 3px; }
.frow .v { min-width: 0; word-break: break-all; font-family: var(--mono); font-size: 13.5px; line-height: 1.5; }
.frow .v.text { font-family: var(--font); word-break: break-word; white-space: pre-wrap; }
.frow .ops { display: flex; gap: 2px; }
.totp { display: flex; align-items: center; gap: 14px; }
.totp .code { font-family: var(--mono); font-size: 26px; font-weight: 600; letter-spacing: .12em; color: var(--ok); }
.ring { width: 28px; height: 28px; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 3; }
.ring .bg { stroke: var(--bg-3); } .ring .fg { stroke: var(--ok); transition: stroke-dashoffset 1s linear; }
.ring.low .fg { stroke: var(--warn); }
.empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: var(--fg-3); padding: 60px 20px; text-align: center; }
.empty .icon { color: var(--fg-3); opacity: .7; }
.empty h3 { margin: 0; color: var(--fg-2); font-size: 15px; font-weight: 600; }

/* ── pages (tokens, audit, settings…) ──────────────────────────────────── */
.page { max-width: 1040px; margin: 0 auto; padding: 24px 28px 48px; display: flex; flex-direction: column; gap: 18px; }
.page h1 { margin: 0; font-size: 20px; font-weight: 700; letter-spacing: -.01em; display: flex; align-items: center; gap: 10px; }
.page .lead { color: var(--fg-2); margin: -8px 0 0; max-width: 70ch; }
.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--fg-3); font-weight: 600; padding: 8px 12px; border-bottom: 1px solid var(--line); }
.table td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table tr:last-child td { border-bottom: 0; }
.table tr:hover td { background: var(--bg-2); }
.stat { padding: 14px 16px; }
.stat .n { font-size: 26px; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; }
.stat .l { font-size: 12px; color: var(--fg-2); margin-top: 4px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.setting { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center; padding: 14px 16px; border-top: 1px solid var(--line); }
.setting:first-child { border-top: 0; }
.setting .t { font-weight: 600; } .setting .d { font-size: 12.5px; color: var(--fg-2); margin-top: 2px; max-width: 60ch; }

/* ── overlays ───────────────────────────────────────────────────────────── */
.overlay { position: fixed; inset: 0; background: var(--overlay); display: flex; align-items: center; justify-content: center; padding: 24px; z-index: 50; animation: fade var(--dur); }
.overlay.top { align-items: flex-start; padding-top: 10vh; }
.modal { background: var(--bg-1); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); width: 100%; max-width: 640px; max-height: calc(100vh - 48px); overflow-y: auto; padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.modal.narrow { max-width: 460px; } .modal.wide { max-width: 820px; }
.modal h2 { margin: 0; font-size: 17px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.modal .foot { display: flex; gap: 8px; justify-content: flex-end; padding-top: 6px; border-top: 1px solid var(--line); margin-top: 4px; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(560px, 100vw); background: var(--bg-1); border-left: 1px solid var(--line); box-shadow: var(--shadow); z-index: 50; display: flex; flex-direction: column; animation: slide var(--dur) ease-out; }
@keyframes slide { from { transform: translateX(24px); opacity: 0; } }
.drawer .head { padding: 16px 20px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 10px; }
.drawer .head h2 { margin: 0; font-size: 16px; font-weight: 700; flex: 1; }
.drawer .bodyx { padding: 18px 20px; overflow-y: auto; flex: 1; display: flex; flex-direction: column; gap: 14px; }
.drawer .foot { padding: 14px 20px; border-top: 1px solid var(--line); display: flex; gap: 8px; }
.palette { width: 100%; max-width: 620px; background: var(--bg-1); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; }
.palette .input { border: 0; border-radius: 0; padding: 14px 16px; font-size: 15px; background: transparent; box-shadow: none; }
.palette .results { max-height: 50vh; overflow-y: auto; border-top: 1px solid var(--line); padding: 6px; }
.palette .res { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: var(--radius-sm); cursor: pointer; }
.palette .res.active, .palette .res:hover { background: var(--accent-soft); }
.palette .hint { padding: 8px 14px; font-size: 11.5px; color: var(--fg-3); border-top: 1px solid var(--line); display: flex; gap: 14px; }
.toasts { position: fixed; right: 16px; bottom: 16px; display: flex; flex-direction: column; gap: 8px; z-index: 60; pointer-events: none; }
.toast { background: var(--bg-1); border: 1px solid var(--line); border-left: 3px solid var(--fg-2); border-radius: var(--radius-sm); padding: 10px 14px; box-shadow: var(--shadow); max-width: 380px; font-size: 13px; animation: fade var(--dur); display: flex; gap: 8px; align-items: center; }
.toast.ok { border-left-color: var(--ok); } .toast.error { border-left-color: var(--danger); } .toast.warn { border-left-color: var(--warn); }
.auth { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; background:
  radial-gradient(1200px 600px at 20% -10%, var(--accent-soft), transparent 60%), var(--bg); }
.auth .card { width: 100%; max-width: 420px; padding: 32px 30px; display: flex; flex-direction: column; gap: 16px; box-shadow: var(--shadow); }
.auth .brand { justify-content: center; flex-direction: column; gap: 10px; }
.auth .brand .logo { width: 48px; height: 48px; border-radius: 14px; }
.auth h1 { margin: 0; font-size: 20px; }
.auth p.lead { margin: 0; color: var(--fg-2); text-align: center; }
.callout { display: flex; gap: 10px; padding: 12px 14px; border-radius: var(--radius-sm); font-size: 13px; }
.callout.warn { background: var(--warn-soft); color: var(--warn); }
.callout.info { background: var(--accent-soft); color: var(--accent); }
.callout.ok { background: var(--ok-soft); color: var(--ok); }
.callout.danger { background: var(--danger-soft); color: var(--danger); }
.callout .icon { margin-top: 1px; }
.codebox { font-family: var(--mono); font-size: 15px; letter-spacing: .08em; text-align: center; padding: 14px; border-radius: var(--radius-sm); background: var(--bg-2); border: 1px dashed var(--line-2); word-break: break-all; user-select: all; }
.dropzone { position: fixed; inset: 0; z-index: 70; display: flex; align-items: center; justify-content: center; background: var(--accent-soft); border: 3px dashed var(--accent); pointer-events: none; }
.help-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 24px; font-size: 13px; }
.help-grid div { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; border-bottom: 1px dashed var(--line); }
.sel-list { max-height: 260px; overflow-y: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.sel-list button { display: flex; width: 100%; align-items: center; gap: 8px; padding: 8px 10px; text-align: left; color: var(--fg-1); }
.sel-list button:hover, .sel-list button.active { background: var(--accent-soft); color: var(--accent); }

/* ── responsive ─────────────────────────────────────────────────────────── */
.menu-btn { display: none; }
@media (max-width: 1100px) { :root { --list-w: 320px; } .frow { grid-template-columns: 110px 1fr auto; } }
@media (max-width: 900px) {
  .menu-btn { display: inline-flex; }
  .body { grid-template-columns: 1fr; }
  .sidebar { position: fixed; top: 52px; bottom: 0; left: 0; width: 280px; z-index: 40; transform: translateX(-100%); transition: transform var(--dur); box-shadow: var(--shadow); }
  .sidebar.open { transform: none; }
  .content { grid-template-columns: 1fr; }
  .content.has-detail .list-pane { display: none; }
  .content:not(.has-detail) .detail-pane { display: none; }
  .search { max-width: none; } .search .kbd { display: none; }
  .topbar { gap: 8px; padding: 0 10px; } .brand span:not(.logo), .brand { font-size: 0; } .brand .logo { font-size: 14px; }
  .topbar .actions .label-text { display: none; } .topbar .actions { gap: 2px; }
  .item .quick { display: none !important; } .item .meta { visibility: visible !important; } .item .sub .truncate { max-width: 120px; }
  .detail, .page { padding: 16px; }
  .detail-head { flex-wrap: wrap; } .detail-head .actions { width: 100%; justify-content: flex-start; margin-left: 0; }
  .detail-head h1 { font-size: 18px; }
  .grid-2, .help-grid { grid-template-columns: 1fr; }
  .frow { grid-template-columns: 1fr; gap: 6px; }
  .frow .ops { justify-content: flex-end; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* 0.24: target tiles — every option visible with its description, one click to choose (no dropdowns) */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 8px; }
.tile { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; text-align: left; padding: 10px 12px; border-radius: var(--radius-sm);
  border: 1px solid var(--line); background: var(--bg-1); color: var(--fg-1); transition: all var(--dur); }
.tile:hover { border-color: var(--line-2); background: var(--bg-2); }
.tile.active { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.tile.active .muted { color: var(--accent); opacity: .8; }

/* 0.26: a sidebar item with open token-watch alerts */
.nav-item.alerting .count { background: var(--danger); color: #fff; }

/* 0.38: release notes (Settings → Updates) */
.md-box { background: var(--bg-2); border-radius: var(--radius-sm); padding: 12px 14px; margin-top: 10px; max-height: 320px; overflow-y: auto; font-size: 13px; line-height: 1.5; }
.md p { margin: 0 0 8px; }
.md ul { margin: 0 0 8px; padding-left: 18px; }
.md li { margin: 2px 0; }
.md code { font-family: var(--mono); font-size: .92em; background: var(--bg-3); padding: 0 4px; border-radius: 4px; }
.md > :last-child { margin-bottom: 0; }
details.setting > summary::-webkit-details-marker { display: none; }
