/* Qorlith app design system (explorer, wallet, markets, developers, docs).
   Matches the landing page: Geist / Geist Mono / Unbounded, deep-void surfaces, one mint accent.
   Shape rule: controls are pills (999px), cards 16px, inputs 12px, chips pills.
   Indigo is reserved for finality / checkpoints and data series, never for UI chrome. */
:root {
  --bg: #05070d;
  --bg2: #0a0f1a;
  --card: #0c1220;
  --card2: #121a2b;
  --hover: #151e31;
  --line: rgba(160, 180, 220, .12);
  --line2: rgba(160, 180, 220, .22);
  --text: #e9eef8;
  --muted: #9aa6bf;
  --dim: #7a86a2;   /* ≥ 4.5:1 on every surface (WCAG AA) */
  --mint: #5cf2c8;
  --mint-ink: #04201a;
  --mint-soft: rgba(92, 242, 200, .1);
  --blue: #7a8cff;
  --amber: #ffc46b;
  --red: #ff7a8c;
  --ok: #4ade9a;
  --grad: linear-gradient(120deg, var(--mint), #8ee9ff);
  --r: 16px;
  --r-in: 12px;
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --sans: Geist, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --display: Unbounded, var(--sans);
  --shadow: 0 1px 0 rgba(255, 255, 255, .04) inset, 0 20px 40px -24px rgba(0, 0, 0, .6);
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 15px/1.55 var(--sans); -webkit-font-smoothing: antialiased;
  background-image: radial-gradient(1100px 520px at 80% -220px, rgba(92, 242, 200, .07), transparent 70%), radial-gradient(800px 420px at -10% -120px, rgba(122, 140, 255, .06), transparent 70%);
  background-repeat: no-repeat;
  min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column;
}
a { color: var(--mint); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--mint); outline-offset: 2px; border-radius: 6px; }
::selection { background: rgba(92, 242, 200, .3); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--mint); color: var(--mint-ink); padding: 8px 14px; border-radius: 999px; z-index: 80; font-weight: 600; }
.skip:focus { left: 8px; }
.wrap { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.small { font-size: 13px; }
.mono { font-family: var(--mono); font-size: 13px; }
.num, .amt, .tnum { font-variant-numeric: tabular-nums; }
h1, h2, h3 { line-height: 1.2; margin: 0; font-weight: 500; letter-spacing: -.02em; text-wrap: balance; }
h1 { font-size: 28px; letter-spacing: -.03em; }
h2 { font-size: 18px; }
h3 { font-size: 16px; }
p { text-wrap: pretty; }

/* ============================================================ app bar (rendered by assets/shell.js) */
.top, .appbar { position: sticky; top: 0; z-index: 30; }
.appbar::before, .top::before { content: ""; position: absolute; inset: 0; background: rgba(5, 7, 13, .78); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); border-bottom: 1px solid var(--line); z-index: -1; }
.top-row { display: flex; align-items: center; gap: 14px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font: 600 16px/1 var(--display); letter-spacing: -.01em; white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand em { font: 500 15px/1 var(--sans); color: var(--muted); font-style: normal; letter-spacing: 0; padding-left: 10px; margin-left: 2px; border-left: 1px solid var(--line2); }
.nav { margin-left: auto; display: flex; align-items: center; gap: 2px; }
.nav a, .nav button.linkish { color: var(--muted); padding: 7px 12px; border-radius: 999px; font-size: 14px; white-space: nowrap; background: none; border: 0; font-family: inherit; cursor: pointer; transition: color .15s ease, background-color .15s ease; }
.nav a:hover, .nav button.linkish:hover { color: var(--text); background: rgba(255, 255, 255, .05); text-decoration: none; }
.nav a.on, .nav a[aria-current="page"] { color: var(--text); background: rgba(255, 255, 255, .07); }
.nav .sep { width: 1px; height: 20px; background: var(--line2); margin: 0 6px; }
.nav a.nav-cta { color: var(--mint-ink); background: var(--mint); font-weight: 600; margin-left: 6px; }
.nav a.nav-cta:hover { background: #7af6d4; color: var(--mint-ink); }
.net-pill { display: inline-flex; align-items: center; gap: 7px; font: 500 12px/1 var(--mono); padding: 6px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); white-space: nowrap; background: rgba(10, 15, 26, .6); }
.net-pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--amber); }
.net-pill.live i { background: var(--ok); box-shadow: 0 0 0 3px rgba(74, 222, 154, .15); }
.net-pill.down { color: var(--red); } .net-pill.down i { background: var(--red); }
@media (prefers-reduced-motion: no-preference) { .net-pill.live i { animation: pulse 2.4s ease-in-out infinite; } }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px rgba(74, 222, 154, 0); } }
.acct-btn { display: inline-flex; align-items: center; gap: 8px; }
.acct-dot { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--mint-soft); color: var(--mint); font: 600 11px/1 var(--sans); text-transform: uppercase; }
.menu-btn { display: none; margin-left: auto; background: none; border: 1px solid var(--line2); border-radius: 999px; width: 42px; height: 42px; padding: 0; cursor: pointer; place-content: center; gap: 5px; }
.menu-btn span { display: block; width: 16px; height: 1.5px; background: var(--text); margin: 0 auto; border-radius: 2px; transition: transform .2s var(--ease-out), opacity .2s; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.search { display: flex; align-items: center; margin: 2px 0 14px; background: var(--card); border: 1px solid var(--line2); border-radius: 999px; overflow: hidden; transition: border-color .15s ease, box-shadow .15s ease; }
.search:focus-within { border-color: rgba(92, 242, 200, .6); box-shadow: 0 0 0 4px rgba(92, 242, 200, .08); }
.search input { flex: 1; min-width: 0; background: none; border: 0; color: var(--text); font: 14px var(--sans); padding: 12px 18px; outline: none; }
.search input::placeholder { color: var(--dim); }
.search button { background: none; border: 0; color: var(--muted); padding: 0 18px; cursor: pointer; align-self: stretch; }
.search button:hover { color: var(--mint); }
.search kbd { font: 11px var(--mono); color: var(--dim); border: 1px solid var(--line2); border-radius: 6px; padding: 2px 6px; margin-right: 12px; }

main.wrap { flex: 1; padding-top: 24px; padding-bottom: 64px; outline: none; }
.loading, .empty { color: var(--muted); padding: 48px 0; text-align: center; }
.empty-state { display: grid; justify-items: center; gap: 10px; text-align: center; padding: 48px 20px; color: var(--muted); }
.empty-state h3 { color: var(--text); }
.empty-state p { margin: 0; max-width: 46ch; }

/* skeletons */
.sk { display: block; border-radius: 8px; background: linear-gradient(90deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .09), rgba(255, 255, 255, .04)); background-size: 200% 100%; min-height: 1em; }
@media (prefers-reduced-motion: no-preference) { .sk { animation: shimmer 1.4s linear infinite; } }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ============================================================ cards & grids */
.grid { display: grid; gap: 14px; }
.stats { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 18px; }
.stats.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stats.five { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.split { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); min-width: 0; box-shadow: var(--shadow); }
.card.flat { box-shadow: none; }
.card-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); min-height: 56px; }
.card-h h2 { font-size: 15px; font-weight: 500; letter-spacing: -.01em; }
.card-h .sub { color: var(--dim); font-size: 13px; }
.card-b { padding: 18px; }
.stat { padding: 16px 18px; }
.stat .k { color: var(--muted); font-size: 13px; }
.stat .v { font: 500 22px/1.25 var(--mono); letter-spacing: -.03em; margin-top: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.stat .s { color: var(--dim); font-size: 12.5px; margin-top: 4px; }
.hero { display: grid; grid-template-columns: 1.4fr 1fr; gap: 14px; margin-bottom: 18px; }
.hero-txt { padding: 24px; }
.hero-txt h1 { font-size: 30px; }
.hero-txt h1 span { color: var(--mint); }
.hero-txt p { color: var(--muted); margin: 10px 0 16px; max-width: 58ch; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font-size: 12.5px; padding: 5px 11px; border: 1px solid var(--line2); border-radius: 999px; color: var(--muted); background: rgba(255, 255, 255, .02); white-space: nowrap; }
.chip b { color: var(--text); font-weight: 500; }
.spark { padding: 16px 18px; display: flex; flex-direction: column; gap: 8px; }
.spark svg { width: 100%; height: 100%; min-height: 96px; flex: 1; display: block; }
.spark .legend { display: flex; gap: 16px; font-size: 12.5px; color: var(--muted); }
.spark .legend i { display: inline-block; width: 10px; height: 3px; border-radius: 2px; margin-right: 6px; vertical-align: middle; }

/* segmented control / tabs */
.seg { display: inline-flex; padding: 3px; gap: 2px; background: var(--bg2); border: 1px solid var(--line); border-radius: 999px; }
.seg button, .seg a { background: none; border: 0; color: var(--muted); font: 500 13px var(--sans); padding: 6px 12px; border-radius: 999px; cursor: pointer; white-space: nowrap; }
.seg button:hover, .seg a:hover { color: var(--text); text-decoration: none; }
.seg [aria-selected="true"], .seg [aria-pressed="true"], .seg .on { background: var(--card2); color: var(--text); box-shadow: inset 0 0 0 1px var(--line2); }

/* ============================================================ lists */
.list { list-style: none; margin: 0; padding: 0; }
.list li { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 18px; border-bottom: 1px solid var(--line); transition: background-color .15s ease; }
.list li:last-child { border-bottom: 0; }
@media (hover: hover) { .list li:hover { background: rgba(255, 255, 255, .015); } }
.ico { width: 40px; height: 40px; border-radius: 12px; background: var(--bg2); border: 1px solid var(--line); display: grid; place-items: center; color: var(--muted); font: 500 11px var(--mono); }
.ico.tx { color: var(--blue); }
.ico.bk { color: var(--mint); }
.ico.tk { color: var(--amber); }
.row-main { min-width: 0; }
.row-main > div { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-side { text-align: right; font-size: 13px; white-space: nowrap; }
.tok-ico { width: 28px; height: 28px; border-radius: 50%; flex: none; display: inline-grid; place-items: center; font: 600 11px/1 var(--sans); color: var(--mint-ink); vertical-align: middle; }

/* ============================================================ tables */
.tbl-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { color: var(--dim); font-weight: 500; font-size: 12.5px; background: rgba(255, 255, 255, .015); }
tr:last-child td { border-bottom: 0; }
@media (hover: hover) { tbody tr:hover td { background: rgba(255, 255, 255, .015); } }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
td .mono, td.mono { font-size: 13px; }
.up { color: var(--ok); } .down { color: var(--red); }

/* key / value */
.kv { display: grid; grid-template-columns: 220px minmax(0, 1fr); }
.kv > div { padding: 12px 18px; border-bottom: 1px solid var(--line); min-width: 0; }
.kv > div:nth-last-child(-n+2) { border-bottom: 0; }
.kv .k { color: var(--muted); font-size: 14px; }
.kv .v { word-break: break-all; }
.page-h { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.page-h h1 { font-size: 26px; }
.page-h .sub { color: var(--muted); font-family: var(--mono); font-size: 13px; word-break: break-all; }
.crumbs { font-size: 13px; color: var(--dim); margin-bottom: 8px; }
.crumbs a { color: var(--muted); }

/* badges */
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; padding: 3px 10px; border-radius: 999px; border: 1px solid; white-space: nowrap; font-weight: 500; line-height: 1.5; }
.b-ok { color: var(--ok); border-color: rgba(74, 222, 154, .3); background: rgba(74, 222, 154, .07); }
.b-fail { color: var(--red); border-color: rgba(255, 122, 140, .3); background: rgba(255, 122, 140, .07); }
.b-pq { color: var(--mint); border-color: rgba(92, 242, 200, .3); background: rgba(92, 242, 200, .06); }
.b-fin { color: var(--blue); border-color: rgba(122, 140, 255, .35); background: rgba(122, 140, 255, .08); }
.b-wait { color: var(--amber); border-color: rgba(255, 196, 107, .3); background: rgba(255, 196, 107, .06); }
.b-burn { color: #ff9a5c; border-color: rgba(255, 154, 92, .35); background: rgba(255, 154, 92, .07); }
.b-dim { color: var(--muted); border-color: var(--line2); background: transparent; }

.copy { background: none; border: 0; color: var(--dim); cursor: pointer; padding: 2px 4px; vertical-align: middle; border-radius: 6px; transition: color .15s ease; }
.copy:hover { color: var(--mint); }
.code, pre.code { font-family: var(--mono); font-size: 12.5px; line-height: 1.6; background: #070b14; border: 1px solid var(--line); border-radius: var(--r-in); padding: 14px 16px; max-height: 260px; overflow: auto; word-break: break-all; white-space: pre-wrap; color: #c3cde3; margin: 0; }
.pager { display: flex; gap: 8px; justify-content: flex-end; align-items: center; padding: 12px 18px; border-top: 1px solid var(--line); }

/* ============================================================ buttons & forms */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; white-space: nowrap;
  background: rgba(255, 255, 255, .04); border: 1px solid var(--line2); color: var(--text);
  height: 40px; padding: 0 18px; border-radius: 999px; font: 500 14px var(--sans); cursor: pointer;
  transition: transform .16s var(--ease-out), background-color .2s ease, border-color .2s ease;
}
.btn:hover { border-color: rgba(200, 215, 245, .38); background: rgba(255, 255, 255, .07); text-decoration: none; }
.btn:active { transform: scale(.97); }
.btn.primary { background: var(--mint); color: var(--mint-ink); border-color: transparent; font-weight: 600; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4); }
.btn.primary:hover { background: #7af6d4; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .5; cursor: default; transform: none; }
.btn.lg { height: 48px; padding: 0 24px; font-size: 15px; }
.btn.sm { height: 32px; padding: 0 13px; font-size: 13px; }
.btn.ghost { background: transparent; }
.btn.danger { border-color: rgba(255, 122, 140, .4); color: var(--red); background: rgba(255, 122, 140, .06); }
.btn.icon { width: 40px; padding: 0; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }
.field { display: flex; gap: 10px; flex-wrap: wrap; }
.field input { flex: 1 1 320px; min-width: 0; background: var(--bg2); border: 1px solid var(--line2); color: var(--text); border-radius: var(--r-in); padding: 11px 14px; font: 14px var(--mono); }
.field input:focus { border-color: rgba(92, 242, 200, .6); outline: none; }
.note { border: 1px solid var(--line); border-left: 3px solid var(--mint); background: rgba(10, 15, 26, .7); border-radius: var(--r-in); padding: 12px 14px; color: var(--muted); font-size: 14px; }
.note.warn { border-left-color: var(--amber); }
.note.err { border-left-color: var(--red); color: var(--text); }
.prose p, .prose li { color: var(--muted); }
.prose h2 { margin: 20px 0 8px; }
.prose h2:first-child { margin-top: 0; }
.bar { height: 8px; background: var(--bg2); border-radius: 999px; overflow: hidden; display: flex; }
.bar span { display: block; height: 100%; }
.legend-list { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 8px; }
.legend-list li { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; }
.legend-list i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 8px; vertical-align: -1px; }
.mt { margin-top: 18px; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(16px); background: var(--card2); border: 1px solid var(--line2); color: var(--text); padding: 10px 18px; border-radius: 999px; font-size: 14px; opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .25s var(--ease-out); z-index: 90; max-width: calc(100% - 32px); box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .6); }
.toast.show { opacity: 1; transform: translateX(-50%); }
.err { color: var(--red); }

.form { display: grid; gap: 16px; }
.form label { display: grid; gap: 7px; font-size: 14px; color: var(--muted); }
.form input, .form textarea, .form select { background: var(--bg2); border: 1px solid var(--line2); color: var(--text); border-radius: var(--r-in); padding: 11px 14px; font: 15px var(--sans); width: 100%; min-width: 0; transition: border-color .15s ease, box-shadow .15s ease; }
.form input::placeholder, .form textarea::placeholder { color: var(--dim); }
.form input.mono, .form textarea { font-family: var(--mono); font-size: 13px; }
.form textarea { min-height: 90px; resize: vertical; }
.form input:focus, .form textarea:focus, .form select:focus { border-color: rgba(92, 242, 200, .6); outline: none; box-shadow: 0 0 0 4px rgba(92, 242, 200, .08); }
.form input[aria-invalid="true"] { border-color: rgba(255, 122, 140, .6); }
.form .hint { font-size: 12.5px; color: var(--dim); }
.form .field-err { font-size: 13px; color: var(--red); }
.form h2 { font-size: 16px; }
.inline { display: flex; gap: 8px; align-items: center; }
.inline > input { flex: 1; min-width: 0; }
.inline > select { width: auto; flex: 0 1 46%; min-width: 0; }
.check { display: flex !important; align-items: flex-start; gap: 10px; color: var(--text) !important; }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--mint); flex: none; }
.meter { height: 6px; border-radius: 999px; background: var(--bg2); overflow: hidden; }
.meter span { display: block; height: 100%; width: 0; transition: width .2s ease, background-color .2s ease; }
.spinner { width: 16px; height: 16px; border: 2px solid rgba(255, 255, 255, .22); border-top-color: currentColor; border-radius: 50%; animation: spin .7s linear infinite; display: inline-block; vertical-align: -3px; }
@keyframes spin { to { transform: rotate(360deg); } }

dialog { background: var(--card); color: var(--text); border: 1px solid var(--line2); border-radius: 20px; padding: 0; width: min(500px, calc(100% - 32px)); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .7); }
dialog::backdrop { background: rgba(3, 5, 10, .7); backdrop-filter: blur(4px); }
@media (prefers-reduced-motion: no-preference) {
  dialog[open] { animation: pop .22s var(--ease-out); }
  @keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.98); } }
}
dialog .d-b { padding: 24px; }
dialog h2 { margin-bottom: 12px; font-size: 19px; }
.sum { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; font-size: 14px; margin: 14px 0 18px; }
.sum dt { color: var(--muted); }
.sum dd { margin: 0; text-align: right; word-break: break-all; }
.qr { background: #fff; padding: 12px; border-radius: 14px; width: 196px; height: 196px; margin: 0 auto; }
.qr svg { width: 100%; height: 100%; display: block; }

/* ============================================================ wallet (shared pieces) */
.w-shell { max-width: 1000px; margin: 0 auto; }
.w-center { max-width: 560px; margin: 32px auto; }
.w-card { padding: 28px; }
.w-card h1 { font-size: 26px; margin-bottom: 8px; }
.w-card > p { color: var(--muted); margin: 0 0 18px; }
.choice { display: grid; gap: 10px; margin-top: 18px; }
.choice button, .choice label.choice-item { text-align: left; display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: center; width: 100%; padding: 16px; background: var(--bg2); border: 1px solid var(--line); border-radius: var(--r); color: var(--text); font: inherit; cursor: pointer; transition: border-color .15s ease, background-color .15s ease, transform .16s var(--ease-out); }
.choice button:hover, .choice label.choice-item:hover { border-color: rgba(92, 242, 200, .5); background: var(--hover); }
.choice button:active { transform: scale(.99); }
.choice .fi { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--mint-soft); color: var(--mint); }
.choice b { display: block; font-weight: 500; }
.choice small { color: var(--muted); }
.w-top { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 24px; }
.acct-name { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.acct-addr { font-family: var(--mono); font-size: 14px; word-break: break-all; margin-top: 4px; color: var(--muted); }
.bal { font: 500 clamp(32px, 5vw, 46px)/1.1 var(--mono); letter-spacing: -.04em; font-variant-numeric: tabular-nums; margin-top: 14px; }
.bal small { font: 500 .42em var(--sans); color: var(--muted); margin-left: 8px; letter-spacing: 0; }
.w-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); padding: 0 12px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { background: none; border: 0; border-radius: 0; color: var(--muted); font: 500 14px var(--sans); padding: 15px 12px 13px; cursor: pointer; border-bottom: 2px solid transparent; white-space: nowrap; transition: color .15s ease; }
.tabs button:hover { color: var(--text); }
.tabs button[aria-selected="true"] { color: var(--text); border-bottom-color: var(--mint); }
.tab-body { padding: 22px; }
.acct-list { list-style: none; margin: 0; padding: 0; }
.acct-list li { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.acct-list li:last-child { border-bottom: 0; }
.avatar { width: 36px; height: 36px; border-radius: 50%; flex: none; }
.secret { font-family: var(--mono); font-size: 13px; background: var(--bg2); border: 1px dashed rgba(255, 196, 107, .6); border-radius: var(--r-in); padding: 14px; word-break: break-all; color: var(--amber); }
.preset-row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.preset { text-align: left; background: var(--bg2); border: 1px solid var(--line); border-radius: var(--r-in); padding: 12px; color: var(--text); font: inherit; cursor: pointer; display: grid; gap: 4px; align-content: start; transition: border-color .15s ease, background-color .15s ease; }
.preset:hover { border-color: rgba(92, 242, 200, .5); }
.preset[aria-pressed="true"] { border-color: var(--mint); background: rgba(92, 242, 200, .06); }
.preset small { color: var(--muted); font-size: 12px; line-height: 1.4; }

/* ============================================================ footer (rendered by assets/shell.js) */
.foot { border-top: 1px solid var(--line); padding: 28px 0 32px; font-size: 14px; color: var(--muted); }
.foot-row { display: flex; justify-content: space-between; gap: 24px; align-items: flex-start; }
.foot strong { color: var(--text); font: 500 14px var(--display); }
.foot p { margin: 8px 0 0; color: var(--dim); max-width: 60ch; }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 18px; justify-content: flex-end; }
.foot nav a { color: var(--muted); }
.foot nav a:hover { color: var(--text); }

/* ============================================================ responsive */
@media (max-width: 1060px) {
  .stats, .stats.five { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero, .split { grid-template-columns: 1fr; }
  .menu-btn { display: grid; }
  .nav { position: fixed; inset: 60px 0 auto; flex-direction: column; align-items: stretch; gap: 0; padding: 10px 16px 18px; background: rgba(7, 10, 18, .97); border-bottom: 1px solid var(--line);
    opacity: 0; transform: translateY(-6px); visibility: hidden; pointer-events: none; transition: opacity .18s var(--ease-out), transform .18s var(--ease-out), visibility 0s .18s; max-height: calc(100dvh - 60px); overflow: auto; }
  .nav.open { opacity: 1; transform: none; visibility: visible; pointer-events: auto; transition: opacity .18s var(--ease-out), transform .18s var(--ease-out); }
  .nav a, .nav button.linkish { padding: 13px 10px; font-size: 16px; border-radius: 12px; text-align: left; }
  .nav .sep { width: auto; height: 1px; margin: 8px 0; }
  .nav a.nav-cta { margin: 10px 0 0; text-align: center; }
  .preset-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .two, .stats.three { grid-template-columns: 1fr; }
  .kv { grid-template-columns: 1fr; }
  .kv .k { padding-bottom: 0; border-bottom: 0 !important; font-size: 12.5px; color: var(--dim); }
  .kv .v { padding-top: 4px; }
  .foot-row { flex-direction: column; }
  .foot nav { justify-content: flex-start; }
  .hero-txt h1 { font-size: 24px; }
  .stat .v { font-size: 19px; }
  .list li { grid-template-columns: 36px minmax(0, 1fr) auto; padding: 11px 14px; gap: 10px; }
  .ico { width: 36px; height: 36px; }
  .net-pill span { display: none; }
  .brand em { display: none; }
  .w-top { grid-template-columns: 1fr; }
  .w-card { padding: 20px; }
  .tab-body { padding: 16px; }
  .card-h { flex-wrap: wrap; }
}
@media (max-width: 420px) { .stats { gap: 10px; } .stat { padding: 13px 14px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
@media (prefers-reduced-transparency: reduce) { .appbar::before, .top::before { background: var(--bg); backdrop-filter: none; } }
