/* Hierologic: landing + command center. Tokens first; dark mode for the app is selected, not flipped. */
:root {
  --ink: #0e1726; --ink-2: #16223a; --ink-3: #22304d;
  --ivory: #f7f4ee; --paper: #ffffff; --sand: #efe9df; --line: #e6dfd3; --line-2: #d9d0c1;
  --text: #121a2b; --muted: #5d6676; --faint: #8a91a0;
  --gold: #c9a45c; --gold-ink: #8f6a26; --gold-soft: #f3ead8;
  --good: #1f7a4d; --good-bg: #e3f3ea; --bad: #b4372f; --bad-bg: #fbe8e6; --warn: #9a6a00; --warn-bg: #fbf0d6;
  --s1: #2c5c94; --s2: #c9a45c; /* chart series: page views, visitors */
  --radius: 16px; --shadow: 0 1px 2px rgba(14,23,38,.05), 0 8px 24px rgba(14,23,38,.06);
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font: 15px/1.55 var(--sans); color: var(--text); background: var(--ivory); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; letter-spacing: -.01em; line-height: 1.12; margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* brand */
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-word { font-family: var(--serif); font-weight: 600; font-size: 21px; letter-spacing: .01em; }
.brand-light .brand-word { color: #f4efe6; }
.mark { flex: none; border-radius: 10px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; border-radius: 999px; border: 1px solid transparent; font-weight: 600; font-size: 14.5px; text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s, transform .15s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn-gold { background: var(--gold); color: #1a1406; }
.btn-gold:hover { background: #d6b36d; }
.btn-ink { background: var(--ink); color: #f4efe6; }
.btn-ink:hover { background: var(--ink-3); }
.btn-ghost { border-color: rgba(244,239,230,.28); color: #f4efe6; background: rgba(255,255,255,.04); }
.btn-ghost:hover { border-color: rgba(244,239,230,.6); }
.btn-line { border-color: var(--line-2); background: var(--paper); color: var(--text); }
.btn-line:hover { border-color: var(--ink); }
.btn-sm { min-height: 36px; padding: 0 14px; font-size: 13.5px; }
.btn-danger { background: var(--bad-bg); color: var(--bad); border-color: #f0c9c4; }

/* ---------------- landing ---------------- */
.l-nav { position: absolute; inset: 0 0 auto; z-index: 5; }
.l-nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 16px; }
.l-links { display: flex; align-items: center; gap: 28px; }
.l-links a:not(.btn) { color: rgba(244,239,230,.78); text-decoration: none; font-size: 14.5px; }
.l-links a:not(.btn):hover { color: #fff; }
@media (max-width: 760px) { .l-links a:not(.btn) { display: none; } .l-nav .btn { min-height: 38px; padding: 0 14px; font-size: 13.5px; } }

.hero { position: relative; overflow: hidden; background: var(--ink); color: #f4efe6; padding: 150px 0 96px; isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: -20% -10% auto auto; width: 820px; height: 820px; background: radial-gradient(closest-side, rgba(201,164,92,.22), rgba(201,164,92,0) 70%); z-index: -1; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -2; opacity: .5;
  background-image: linear-gradient(rgba(244,239,230,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(244,239,230,.045) 1px, transparent 1px);
  background-size: 64px 64px; mask-image: linear-gradient(to bottom, #000 30%, transparent 95%); -webkit-mask-image: linear-gradient(to bottom, #000 30%, transparent 95%); }
.kicker { display: inline-flex; align-items: center; gap: 10px; font-size: 12.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); font-weight: 600; }
.kicker::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.hero h1 { font-size: clamp(40px, 7.4vw, 84px); font-weight: 400; margin: 22px 0 22px; max-width: 15ch; }
.hero h1 em { font-style: italic; color: var(--gold); font-weight: 400; }
.hero p.lede { font-size: clamp(16.5px, 2vw, 19px); color: rgba(244,239,230,.74); max-width: 58ch; margin: 0 0 34px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 72px; border-top: 1px solid rgba(244,239,230,.12); }
.hero-stats div { padding: 22px 20px 0 0; }
.hero-stats b { display: block; font-family: var(--serif); font-weight: 400; font-size: clamp(28px, 4vw, 40px); color: #fff; }
.hero-stats span { font-size: 13px; color: rgba(244,239,230,.6); }
@media (max-width: 760px) { .hero { padding: 118px 0 64px; } .hero-stats { grid-template-columns: repeat(2, 1fr); row-gap: 8px; margin-top: 48px; } }

.section { padding: 104px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 44px; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(32px, 4.6vw, 50px); max-width: 18ch; }
.section-head p { color: var(--muted); max-width: 46ch; margin: 0; }
.kicker.dark { color: var(--gold-ink); }
@media (max-width: 760px) { .section { padding: 72px 0; } }

.vertical { margin-top: 56px; }
.vertical:first-of-type { margin-top: 0; }
.vertical-head { display: flex; align-items: baseline; gap: 14px; padding-bottom: 16px; margin-bottom: 22px; border-bottom: 1px solid var(--line); }
.vertical-head h3 { font-size: 24px; }
.vertical-head span { color: var(--faint); font-size: 13.5px; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 980px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid { grid-template-columns: 1fr; gap: 12px; } }
.card { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 22px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; transition: border-color .2s, box-shadow .2s, transform .2s; }
.card:hover { border-color: var(--line-2); box-shadow: var(--shadow); transform: translateY(-2px); }
.card-top { display: flex; align-items: center; gap: 14px; }
.card-logo { width: 52px; height: 52px; border-radius: 13px; object-fit: cover; background: var(--sand); border: 1px solid var(--line); flex: none; }
.card h4 { margin: 0; font-family: var(--serif); font-weight: 500; font-size: 19px; line-height: 1.2; }
.card .domain { font-size: 13px; color: var(--faint); }
.card p { margin: 0; color: var(--muted); font-size: 14.5px; flex: 1; }
.card-foot { display: flex; align-items: center; justify-content: space-between; font-size: 13px; color: var(--muted); }
.card-foot .go { font-weight: 600; color: var(--text); }
.card:hover .go { color: var(--gold-ink); }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 600; letter-spacing: .03em; background: var(--sand); color: var(--muted); }
.badge-live::before, .badge-soon::before, .badge-launch::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-live { background: var(--good-bg); color: var(--good); }
.badge-soon { background: var(--gold-soft); color: var(--gold-ink); }
.badge-launch { background: #e8eef7; color: #2c5c94; }

.about { background: var(--paper); border-block: 1px solid var(--line); }
.about-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: start; }
.about-grid h2 { font-size: clamp(32px, 4.4vw, 48px); margin: 18px 0 20px; }
.about-grid p { color: var(--muted); font-size: 16.5px; }
.pillars { display: grid; gap: 14px; }
.pillar { display: grid; grid-template-columns: 44px 1fr; gap: 16px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--ivory); }
.pillar .n { font-family: var(--serif); font-size: 26px; color: var(--gold-ink); line-height: 1; }
.pillar h4 { margin: 0 0 6px; font-size: 16.5px; }
.pillar p { margin: 0; font-size: 14.5px; }
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; gap: 36px; } }

.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 64px; }
.contact-grid h2 { font-size: clamp(32px, 4.4vw, 48px); margin: 18px 0 18px; }
.contact-grid > div > p { color: var(--muted); font-size: 16.5px; }
.contact-list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; color: var(--muted); }
.contact-list li { display: flex; gap: 12px; align-items: baseline; }
.contact-list b { color: var(--text); font-weight: 600; min-width: 92px; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; gap: 32px; } }

.form { display: grid; gap: 14px; padding: 28px; background: var(--paper); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 600px) { .form { padding: 20px; } .form .row { grid-template-columns: 1fr; } }
label { display: grid; gap: 6px; font-size: 13.5px; font-weight: 600; color: var(--text); }
label small { font-weight: 400; color: var(--faint); }
input[type=text], input[type=email], input[type=password], input[type=search], input:not([type]), select, textarea {
  width: 100%; min-height: 46px; padding: 11px 14px; border: 1px solid var(--line-2); border-radius: 12px; background: #fff; font-size: 16px; font-weight: 400; transition: border-color .15s, box-shadow .15s; }
textarea { min-height: 130px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(201,164,92,.28); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notice { padding: 12px 14px; border-radius: 12px; font-size: 14px; }
.notice-ok { background: var(--good-bg); color: var(--good); }
.notice-err { background: var(--bad-bg); color: var(--bad); }
.notice-info { background: var(--gold-soft); color: var(--gold-ink); }

.l-foot { background: var(--ink); color: rgba(244,239,230,.6); padding: 48px 0; font-size: 13.5px; }
.l-foot .wrap { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.l-foot a { color: rgba(244,239,230,.8); text-decoration: none; }
.l-foot nav { display: flex; gap: 20px; flex-wrap: wrap; }

/* ---------------- auth pages ---------------- */
.auth { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 32px 16px; background: var(--ink); background-image: radial-gradient(900px 500px at 85% -10%, rgba(201,164,92,.18), transparent 60%); }
.auth-card { width: min(420px, 100%); background: var(--paper); border-radius: 22px; padding: 32px 28px; box-shadow: 0 30px 80px rgba(0,0,0,.35); }
.auth-card .brand { margin-bottom: 22px; }
.auth-card h1 { font-size: 28px; margin-bottom: 6px; }
.auth-card > p { color: var(--muted); margin: 0 0 20px; font-size: 14.5px; }
.auth-card form { display: grid; gap: 14px; }
.auth-card .btn { width: 100%; }
.auth-foot { margin-top: 18px; text-align: center; font-size: 13px; color: var(--faint); }
.auth-foot a { color: var(--muted); }

/* ---------------- app ---------------- */
.app { background: var(--ivory); min-height: 100vh; }
.topbar { position: sticky; top: 0; z-index: 20; background: var(--ink); color: #f4efe6; }
.topbar .wrap { display: flex; align-items: center; gap: 18px; height: 60px; width: min(1400px, 100% - 32px); }
.topbar .brand-word { font-size: 18px; }
.topbar nav { display: flex; gap: 4px; margin-left: 8px; overflow-x: auto; scrollbar-width: none; }
.topbar nav a { color: rgba(244,239,230,.7); text-decoration: none; padding: 7px 12px; border-radius: 9px; font-size: 14px; font-weight: 500; white-space: nowrap; }
.topbar nav a:hover { color: #fff; background: rgba(255,255,255,.06); }
.topbar nav a.on { color: #fff; background: rgba(255,255,255,.1); }
.topbar .me { margin-left: auto; display: flex; align-items: center; gap: 10px; font-size: 13px; color: rgba(244,239,230,.65); }
.topbar .me form { margin: 0; }
.topbar .me button { background: none; border: 1px solid rgba(244,239,230,.22); color: #f4efe6; border-radius: 8px; padding: 5px 10px; font-size: 12.5px; cursor: pointer; }
@media (max-width: 760px) { .topbar .brand-word, .topbar .me .who { display: none; } .topbar .wrap { gap: 8px; } .topbar nav { margin-left: 0; } .topbar nav a { padding: 7px 9px; font-size: 13.5px; } }
.main { width: min(1400px, 100% - 32px); margin: 0 auto; padding: 26px 0 64px; }
.main-narrow { width: min(920px, 100% - 32px); }
.ph { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.ph h1 { font-size: clamp(26px, 3.6vw, 34px); }
.ph .sub { color: var(--muted); font-size: 13.5px; margin-top: 4px; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.fresh { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--muted); background: var(--paper); border: 1px solid var(--line); padding: 4px 10px; border-radius: 999px; }
.fresh i { width: 7px; height: 7px; border-radius: 50%; background: var(--good); }
.fresh.stale i { background: var(--warn); }
.fresh.dead i { background: var(--bad); }

.seg { display: inline-flex; background: var(--paper); border: 1px solid var(--line); border-radius: 11px; padding: 3px; }
.seg a { padding: 6px 13px; border-radius: 8px; font-size: 13.5px; font-weight: 600; text-decoration: none; color: var(--muted); }
.seg a.on { background: var(--ink); color: #f4efe6; }
.controls { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

.kpis { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin-bottom: 18px; }
@media (max-width: 1100px) { .kpis { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .kpis { grid-template-columns: repeat(2, 1fr); gap: 8px; } }
.kpi { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; min-width: 0; }
.kpi .k { font-size: 12px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.kpi .v { font-family: var(--serif); font-size: 28px; line-height: 1.15; margin-top: 4px; font-variant-numeric: tabular-nums; }
.kpi .d { font-size: 12.5px; margin-top: 2px; }
@media (max-width: 560px) { .kpi { padding: 12px; } .kpi .v { font-size: 23px; } }

.up { color: var(--good); } .down { color: var(--bad); } .flat { color: var(--faint); }
.delta { font-size: 11.5px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }

.panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 18px; overflow: hidden; }
.panel-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.panel-h h2 { font-family: var(--sans); font-size: 15px; font-weight: 700; letter-spacing: 0; }
.panel-h .note { font-size: 12.5px; color: var(--faint); }
.panel-b { padding: 16px 18px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 1000px) { .two, .three { grid-template-columns: 1fr; gap: 0; } }

.filters { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--paper); font-size: 13px; font-weight: 600; color: var(--muted); cursor: pointer; text-decoration: none; }
.chip.on { background: var(--ink); color: #f4efe6; border-color: var(--ink); }

/* quick view table */
.qv-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.qv { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13.5px; font-variant-numeric: tabular-nums; }
.qv th, .qv td { padding: 9px 10px; text-align: right; white-space: nowrap; border-bottom: 1px solid var(--line); }
.qv th { position: sticky; top: 0; background: #fbf9f5; font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; cursor: pointer; user-select: none; z-index: 1; }
.qv th[data-dir="desc"]::after { content: " ↓"; } .qv th[data-dir="asc"]::after { content: " ↑"; }
.qv th:first-child, .qv td:first-child { text-align: left; position: sticky; left: 0; background: var(--paper); z-index: 2; box-shadow: 1px 0 0 var(--line); }
.qv th:first-child { background: #fbf9f5; z-index: 3; }
.qv tbody tr:hover td { background: #fcfaf6; }
.qv tr.total td { font-weight: 700; background: #fbf9f5; }
.qv td .v { display: block; font-weight: 600; }
.qv td .delta { display: block; }
.qv .site { display: flex; align-items: center; gap: 10px; text-decoration: none; min-width: 170px; }
.qv .site img { width: 28px; height: 28px; border-radius: 8px; border: 1px solid var(--line); }
.qv .site b { font-weight: 600; display: block; }
.qv .site small { color: var(--faint); font-size: 11.5px; display: flex; gap: 6px; align-items: center; }
.qv td.na { color: var(--line-2); }
.dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; background: var(--faint); flex: none; }
.dot.ok { background: var(--good); } .dot.bad { background: var(--bad); } .dot.warn { background: #d49b1f; }
.trac { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 22px; border-radius: 7px; font-size: 12px; font-weight: 700; }
.trac.up { background: var(--good-bg); } .trac.down { background: var(--bad-bg); } .trac.flat { background: var(--sand); }
.spark { display: block; }
@media (max-width: 760px) { .qv th, .qv td { padding: 8px 7px; } .qv .site { min-width: 128px; } .qv .site small { display: none; } .qv .site img { width: 24px; height: 24px; } }

/* detail */
.site-head { display: flex; align-items: center; gap: 16px; }
.site-head img { width: 56px; height: 56px; border-radius: 14px; border: 1px solid var(--line); }
.pills { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 18px; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }
.pill b { color: var(--text); font-weight: 600; }
.pill.good { background: var(--good-bg); border-color: #c7e6d4; color: var(--good); }
.pill.bad { background: var(--bad-bg); border-color: #f0c9c4; color: var(--bad); }
.pill.warn { background: var(--warn-bg); border-color: #efd9a2; color: var(--warn); }
.pill a { color: inherit; }
.chart { width: 100%; height: auto; display: block; }
.chart .grid line { stroke: var(--line); }
.chart text { fill: var(--faint); font-size: 10.5px; font-family: var(--sans); }
.legend { display: flex; gap: 16px; font-size: 12.5px; color: var(--muted); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.tip { position: fixed; pointer-events: none; z-index: 50; background: var(--ink); color: #f4efe6; padding: 7px 10px; border-radius: 9px; font-size: 12.5px; box-shadow: var(--shadow); white-space: nowrap; display: none; }

.funnel { display: grid; gap: 10px; }
.fstep { display: grid; grid-template-columns: 150px 1fr 120px; gap: 12px; align-items: center; font-size: 13.5px; }
.fstep .lbl { font-weight: 600; }
.fstep .bar { height: 26px; background: var(--sand); border-radius: 7px; overflow: hidden; }
.fstep .bar i { display: block; height: 100%; background: var(--s1); border-radius: 7px; min-width: 2px; }
.fstep .num { text-align: right; font-variant-numeric: tabular-nums; }
.fstep .num small { display: block; color: var(--faint); font-size: 11.5px; }
@media (max-width: 560px) { .fstep { grid-template-columns: 96px 1fr 84px; gap: 8px; font-size: 12.5px; } }
.rates { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 16px; }
@media (max-width: 760px) { .rates { grid-template-columns: repeat(2, 1fr); } }
.rate { background: var(--ivory); border-radius: 12px; padding: 12px 14px; }
.rate .k { font-size: 12px; color: var(--muted); }
.rate .v { font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; }

table.list { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.list td, .list th { padding: 8px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.list th { font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.list td.n, .list th.n { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; padding-left: 12px; }
.list tr:last-child td { border-bottom: 0; }
.list .path { word-break: break-all; }
.empty { color: var(--faint); font-size: 13.5px; padding: 6px 0; }
dl.facts { display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; margin: 0; font-size: 13.5px; }
dl.facts dt { color: var(--muted); }
dl.facts dd { margin: 0; font-weight: 500; word-break: break-word; }

/* admin */
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th, .tbl td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.tbl th { font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); background: #fbf9f5; }
.tbl-wrap { overflow-x: auto; }
.inline { display: inline; margin: 0; }
.actions { display: flex; gap: 6px; flex-wrap: wrap; }
.sitepick { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 6px 14px; }
.sitepick label { display: flex; align-items: center; gap: 8px; font-weight: 500; font-size: 13.5px; }
.sitepick input { width: 18px; height: 18px; accent-color: var(--ink); }
.copy { display: flex; gap: 8px; }
.copy input { font-family: ui-monospace, Menlo, monospace; font-size: 13px; }
.stack { display: grid; gap: 14px; }
.muted { color: var(--muted); }
.qr { width: 180px; height: 180px; background: #fff; padding: 8px; border: 1px solid var(--line); border-radius: 12px; }
.qr svg { width: 100%; height: 100%; }
code { font-family: ui-monospace, Menlo, monospace; font-size: .92em; background: var(--sand); padding: 1px 6px; border-radius: 6px; word-break: break-all; }

/* app dark mode (selected values) */
@media (prefers-color-scheme: dark) {
  body.app {
    --ivory: #0b111d; --paper: #121a2a; --sand: #1b2538; --line: #232e44; --line-2: #33405a;
    --text: #e9e6df; --muted: #a2a9b8; --faint: #6f788b; --gold-ink: #d8b874; --gold-soft: #2a2414;
    --good: #4cc38a; --good-bg: #12301f; --bad: #f0786d; --bad-bg: #3a1714; --warn: #e3b341; --warn-bg: #33270b;
    --s1: #6d9fe0; --s2: #d8b874; color-scheme: dark;
  }
  body.app .qv th, body.app .qv th:first-child, body.app .qv tr.total td, body.app .tbl th { background: #151e30; }
  body.app .qv tbody tr:hover td { background: #172034; }
  body.app input, body.app select, body.app textarea { background: #0e1524; }
  body.app .seg a.on, body.app .chip.on { background: #e9e6df; color: #0e1726; border-color: #e9e6df; }
  body.app .btn-ink { background: #e9e6df; color: #0e1726; }
  body.app .btn-line { background: var(--paper); }
}
