:root {
  color-scheme: light;
  --ink: #102033;
  --muted: #617086;
  --line: #dbe4ee;
  --soft: #f4f7fa;
  --paper: #ffffff;
  --navy: #0b1828;
  --navy-2: #112a43;
  --blue: #156fa6;
  --blue-strong: #0b5d91;
  --cyan: #1da7c7;
  --green: #18755b;
  --green-soft: #e8f6f0;
  --amber: #98600a;
  --amber-soft: #fff4dc;
  --red: #9d3636;
  --red-soft: #fff0ef;
  --shadow: 0 20px 60px rgba(23, 44, 68, .10);
  --radius: 20px;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --ink: #e8f0f8;
  --muted: #9cacc0;
  --line: #2a3b4e;
  --soft: #111c28;
  --paper: #101a27;
  --blue: #69b9e8;
  --blue-strong: #187daf;
  --cyan: #37bfd8;
  --green: #79d0af;
  --green-soft: #14342a;
  --amber: #efc36d;
  --amber-soft: #342916;
  --red: #ef9999;
  --red-soft: #351d22;
  --shadow: 0 20px 60px rgba(0, 0, 0, .30);
}

[hidden] { display: none !important; }

* { box-sizing: border-box; }

html {
  min-height: 100%;
  background: #eef3f7;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 0%, rgba(29, 167, 199, .13), transparent 28rem),
    linear-gradient(180deg, #f8fafc 0, #eef3f7 28rem, #f7f9fb 100%);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

button, input, select { font: inherit; }
a { color: inherit; }

.prototype-ribbon {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 7px 18px;
  color: #d9ebf8;
  background: #071321;
  font-size: 12px;
  letter-spacing: .04em;
  text-align: center;
}

.prototype-ribbon strong { color: #6edcf1; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  min-height: 70px;
  display: grid;
  grid-template-columns: minmax(170px, 1fr) auto minmax(170px, 1fr);
  align-items: center;
  gap: 22px;
  padding: 0 clamp(18px, 4vw, 56px);
  color: #f5f9fd;
  background: rgba(11, 24, 40, .94);
  border-bottom: 1px solid rgba(255,255,255,.1);
  backdrop-filter: blur(18px);
}

.header-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 10px;
}

.account-theme-control {
  width: 132px;
  height: 34px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 3px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 8px;
  background: rgba(255,255,255,.05);
}

.account-theme-choice {
  min-width: 0;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: rgba(239,247,253,.66);
  cursor: pointer;
  font-size: 11px;
  line-height: 1;
  padding: 0 4px;
}
.account-theme-choice:hover,
.account-theme-choice:focus-visible { color: #fff; outline: 0; }
.account-theme-choice.active { background: rgba(255,255,255,.13); color: #fff; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  width: fit-content;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(109, 220, 241, .52);
  border-radius: 11px;
  background: linear-gradient(145deg, rgba(29,167,199,.28), rgba(255,255,255,.05));
  color: #fff;
  font-weight: 800;
}

.brand-copy { display: grid; line-height: 1.1; }
.brand-copy strong { font-size: 15px; letter-spacing: .16em; }
.brand-copy span { margin-top: 4px; color: rgba(226,239,250,.58); font-size: 10px; letter-spacing: .16em; }

.site-nav { display: flex; align-items: center; gap: 8px; }
.site-nav a {
  padding: 10px 13px;
  border-radius: 10px;
  color: rgba(239,247,253,.76);
  font-size: 14px;
  text-decoration: none;
}
.site-nav a:hover, .site-nav a:focus-visible, .site-nav a[aria-current="page"] {
  color: #fff;
  background: rgba(255,255,255,.09);
  outline: 0;
}

.header-status {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 11px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px;
  color: rgba(239,247,253,.82);
  font-size: 12px;
  text-decoration: none;
}
.header-status-dot { width: 7px; height: 7px; border-radius: 50%; background: #f2bd53; box-shadow: 0 0 0 4px rgba(242,189,83,.12); }
.header-status.verified .header-status-dot { background: #5dd3a7; box-shadow: 0 0 0 4px rgba(93,211,167,.12); }

.page-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0 74px;
}

.page-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 30px;
  align-items: end;
  margin-bottom: 28px;
}

.eyebrow {
  margin: 0 0 9px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: .16em;
  text-transform: uppercase;
}

h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 10px; font-size: clamp(30px, 5vw, 48px); line-height: 1.18; letter-spacing: -.04em; }
h2 { margin-bottom: 13px; font-size: clamp(20px, 3vw, 28px); line-height: 1.3; letter-spacing: -.02em; }
h3 { margin-bottom: 8px; font-size: 17px; line-height: 1.4; }
.lede { max-width: 760px; margin-bottom: 0; color: var(--muted); font-size: 16px; }

.button-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.button, button.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: var(--blue-strong);
  color: #fff;
  cursor: pointer;
  font-weight: 700;
  text-decoration: none;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}
.button:hover:not(:disabled), .button:focus-visible:not(:disabled) { transform: translateY(-1px); box-shadow: 0 10px 25px rgba(11,93,145,.2); outline: 0; }
.button.secondary { border-color: var(--line); background: #fff; color: var(--ink); }
.button.ghost { border-color: rgba(21,111,166,.22); background: rgba(21,111,166,.06); color: var(--blue-strong); }
.button.danger { border-color: #efc5c2; background: #fff; color: var(--red); }
.button.small { min-height: 36px; padding: 7px 11px; border-radius: 9px; font-size: 13px; }
.button:disabled { cursor: not-allowed; opacity: .48; }

.scope-banner, .notice {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  padding: 18px 20px;
  border: 1px solid #edd9af;
  border-radius: 16px;
  background: var(--amber-soft);
}
.scope-banner.verified { border-color: #bfe2d5; background: var(--green-soft); }
.scope-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; background: rgba(255,255,255,.72); font-weight: 850; }
.scope-copy strong { display: block; margin-bottom: 2px; }
.scope-copy span { display: block; color: #6d5d3f; font-size: 13px; }
.scope-banner.verified .scope-copy span { color: #3b6657; }

.panel {
  padding: clamp(20px, 3vw, 30px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,.92);
  box-shadow: var(--shadow);
}
.panel + .panel { margin-top: 22px; }
.panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 20px; }
.panel-head p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }

.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; margin-bottom: 24px; }
.stat-card { padding: 17px; border: 1px solid var(--line); border-radius: 15px; background: rgba(255,255,255,.76); }
.stat-card span { display: block; color: var(--muted); font-size: 12px; }
.stat-card strong { display: block; margin-top: 5px; font-size: 26px; line-height: 1.1; }

.filter-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.filter-button { padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--muted); cursor: pointer; font-size: 13px; }
.filter-button.active { border-color: var(--blue); background: #eaf4fa; color: var(--blue-strong); font-weight: 700; }

.result-list { display: grid; gap: 13px; }
.result-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 17px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}
.result-source { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 13px; color: #fff; font-size: 12px; font-weight: 850; letter-spacing: .06em; }
.result-source.standard { background: linear-gradient(145deg, #256ba3, #174e7b); }
.result-source.professional { background: linear-gradient(145deg, #177b72, #12544f); }
.result-card-main { min-width: 0; }
.result-card-title { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 4px; }
.result-card-title strong { font-size: 19px; }
.result-meta { color: var(--muted); font-size: 13px; }
.result-card-actions { display: flex; align-items: center; gap: 8px; }

.chip { display: inline-flex; align-items: center; gap: 5px; padding: 4px 8px; border-radius: 999px; background: #edf2f6; color: #526277; font-size: 11px; font-weight: 700; }
.chip.device { background: var(--amber-soft); color: var(--amber); }
.chip.wechat { background: var(--green-soft); color: var(--green); }
.chip.standard { background: #eaf3fb; color: #165c8c; }
.chip.professional { background: #e9f6f3; color: #176c64; }
.chip.blocked { background: var(--red-soft); color: var(--red); }

.empty-state { padding: 42px 20px; border: 1px dashed #c6d3df; border-radius: 16px; background: #f8fafc; text-align: center; }
.empty-state strong { display: block; margin-bottom: 7px; font-size: 18px; }
.empty-state p { max-width: 520px; margin: 0 auto 18px; color: var(--muted); }

.comparison-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.compare-card { padding: 19px; border: 1px solid var(--line); border-radius: 16px; background: #f9fbfc; }
.compare-type { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 12px 0; }
.compare-type strong { font-size: 28px; letter-spacing: .04em; }
.letter-row { display: flex; flex-wrap: wrap; gap: 6px; }
.letter-cell { width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 9px; background: #fff; font-weight: 800; }
.letter-cell.same { border-color: #a9d9c8; background: var(--green-soft); color: var(--green); }
.letter-cell.changed { border-color: #eccb8c; background: var(--amber-soft); color: var(--amber); }

.timeline { position: relative; display: grid; gap: 13px; padding-left: 25px; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 9px; bottom: 9px; width: 2px; background: #d8e3ec; }
.timeline-item { position: relative; padding: 13px 16px; border: 1px solid var(--line); border-radius: 13px; background: #fff; }
.timeline-item::before { content: ""; position: absolute; left: -24px; top: 19px; width: 11px; height: 11px; border: 3px solid #f8fafc; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 1px #bfd0dd; }
.timeline-item.professional::before { background: var(--green); }
.timeline-title { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }
.timeline-title span { color: var(--muted); font-size: 12px; }

.stepper { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 24px 0; }
.step { padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: #f8fafc; color: var(--muted); font-size: 13px; }
.step strong { display: block; margin-bottom: 4px; color: var(--ink); }
.step.active { border-color: rgba(21,111,166,.4); background: #edf6fb; }

.wechat-stage { max-width: 720px; margin: 0 auto; text-align: center; }
.wechat-mark { width: 86px; height: 86px; display: grid; place-items: center; margin: 0 auto 20px; border-radius: 24px; background: #09b83e; color: #fff; font-size: 34px; font-weight: 900; box-shadow: 0 16px 35px rgba(9,184,62,.2); }
.wechat-stage p { color: var(--muted); }
.simulation-box { margin: 24px auto 0; padding: 18px; border: 1px dashed #e0ba6a; border-radius: 14px; background: #fff8e8; color: #74531f; font-size: 13px; text-align: left; }
.verify-nickname { max-width: 420px; margin: 20px auto 0; text-align: left; }
.qr-auth-layout { display: grid; grid-template-columns: 264px minmax(0, 1fr); align-items: center; gap: 28px; max-width: 610px; margin: 24px auto 0; text-align: left; }
.qr-frame { width: 264px; height: 264px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.qr-frame img { width: 240px; height: 240px; display: block; object-fit: contain; }
.qr-auth-copy { display: grid; gap: 10px; align-content: center; min-height: 180px; }
.qr-auth-copy > strong { font-size: 20px; }
.qr-auth-copy > span { min-height: 40px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.scan-page-shell { max-width: 560px; }
.scan-confirm-panel { max-width: 520px; }
.compact-header { grid-template-columns: 1fr; }
.segmented-control { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; max-width: 320px; margin: 22px auto 0; }
.segmented-control label { position: relative; }
.segmented-control input { position: absolute; opacity: 0; }
.segmented-control span { min-height: 44px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--muted); font-weight: 750; cursor: pointer; }
.segmented-control input:checked + span { border-color: #69b98a; background: #edf9f2; color: #16693a; }
.segmented-control input:focus-visible + span { outline: 3px solid rgba(21,111,166,.22); }

.merge-list { display: grid; gap: 11px; }
.merge-option { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 13px; padding: 15px; border: 1px solid var(--line); border-radius: 14px; cursor: pointer; }
.merge-option:has(input:checked) { border-color: #8bc8b3; background: #f0faf6; }
.merge-option input { width: 20px; height: 20px; accent-color: var(--green); }
.merge-option .result-source { width: 38px; height: 38px; border-radius: 11px; }

.setting-list { display: grid; gap: 12px; }
.setting-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px; align-items: center; padding: 17px 0; border-bottom: 1px solid var(--line); }
.setting-row:last-child { border-bottom: 0; }
.setting-copy strong { display: block; }
.setting-copy span { display: block; margin-top: 3px; color: var(--muted); font-size: 13px; }
.switch { position: relative; width: 50px; height: 28px; }
.switch input { position: absolute; opacity: 0; }
.switch span { position: absolute; inset: 0; border-radius: 999px; background: #cbd5df; cursor: pointer; transition: .2s; }
.switch span::after { content: ""; position: absolute; top: 4px; left: 4px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 2px 7px rgba(0,0,0,.18); transition: .2s; }
.switch input:checked + span { background: var(--green); }
.switch input:checked + span::after { transform: translateX(22px); }
.switch input:focus-visible + span { outline: 3px solid rgba(21,111,166,.22); }

.relation-flow { display: grid; grid-template-columns: minmax(0, 1fr) 42px minmax(0, 1fr) 42px minmax(0, 1fr); align-items: stretch; gap: 8px; }
.relation-node { min-height: 150px; display: flex; flex-direction: column; justify-content: space-between; padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.relation-node.standard { border-top: 4px solid #256ba3; }
.relation-node.professional { border-top: 4px solid #177b72; }
.relation-node.account { border-top: 4px solid #7b5ab6; }
.relation-node strong { display: block; margin-bottom: 5px; }
.relation-node p { margin: 0; color: var(--muted); font-size: 13px; }
.relation-arrow { display: grid; place-items: center; color: #8393a5; font-size: 25px; }
.relation-stack { display: grid; gap: 14px; }

.status-list { display: grid; gap: 10px; }
.status-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 20px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.status-row:last-child { border-bottom: 0; }
.status-row p { margin: 2px 0 0; color: var(--muted); font-size: 12px; }

.admin-toolbar { display: flex; flex-wrap: wrap; align-items: end; gap: 13px; margin-bottom: 20px; }
.field { display: grid; gap: 5px; }
.field label { color: var(--muted); font-size: 12px; font-weight: 700; }
.field select, .field input[type="text"] { min-height: 42px; padding: 8px 11px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); }
.audit-reason { flex: 1; min-width: 240px; }
.nickname-editor { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: end; }
.nickname-editor .field { min-width: 0; }
.nickname-editor input { width: 100%; }
.locked-panel { padding: 34px 20px; border: 1px dashed #e1b9b6; border-radius: 15px; background: var(--red-soft); text-align: center; }
.locked-panel strong { display: block; margin-bottom: 6px; color: var(--red); }

.data-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; }
.data-table { width: 100%; border-collapse: collapse; min-width: 690px; background: #fff; font-size: 13px; }
.data-table th, .data-table td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; }
.data-table th { color: var(--muted); background: #f5f8fa; font-size: 11px; letter-spacing: .04em; text-transform: uppercase; }
.data-table tr:last-child td { border-bottom: 0; }

.result-detail-code { margin: 14px 0; font-size: clamp(44px, 9vw, 80px); font-weight: 850; letter-spacing: -.03em; line-height: 1; }
.score-bars { display: grid; gap: 9px; margin-top: 18px; }
.score-row { display: grid; grid-template-columns: 38px minmax(0, 1fr) 52px; align-items: center; gap: 10px; font-size: 12px; }
.score-track { height: 8px; overflow: hidden; border-radius: 999px; background: #e6edf2; }
.score-fill { height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--blue), var(--cyan)); }

.fine-print { color: var(--muted); font-size: 12px; }
.divider { height: 1px; margin: 22px 0; background: var(--line); }
.hidden { display: none !important; }

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 50;
  max-width: min(380px, calc(100vw - 40px));
  padding: 13px 16px;
  border: 1px solid #b8dcca;
  border-radius: 12px;
  background: #eefaf5;
  color: #245b49;
  box-shadow: 0 18px 45px rgba(20, 53, 42, .18);
  font-size: 13px;
}

.site-footer { padding: 26px 18px 38px; color: #718095; font-size: 12px; text-align: center; }
.site-footer a { color: var(--blue); }

html[data-theme="dark"],
html[data-theme="dark"] body {
  background: #08111b;
}
html[data-theme="dark"] body {
  background:
    radial-gradient(circle at 8% 0%, rgba(36, 139, 184, .16), transparent 28rem),
    linear-gradient(180deg, #0b1420 0, #08111b 28rem, #0c1621 100%);
}
html[data-theme="dark"] .panel { background: rgba(14, 25, 37, .94); }
html[data-theme="dark"] .stat-card { background: rgba(19, 32, 46, .88); }
html[data-theme="dark"] .button.secondary,
html[data-theme="dark"] .button.danger,
html[data-theme="dark"] .filter-button,
html[data-theme="dark"] .result-card,
html[data-theme="dark"] .letter-cell,
html[data-theme="dark"] .timeline-item,
html[data-theme="dark"] .qr-frame,
html[data-theme="dark"] .segmented-control span,
html[data-theme="dark"] .relation-node,
html[data-theme="dark"] .field select,
html[data-theme="dark"] .field input[type="text"],
html[data-theme="dark"] .data-table {
  background: #111d2a;
}
html[data-theme="dark"] .empty-state,
html[data-theme="dark"] .compare-card,
html[data-theme="dark"] .step { background: #0d1824; }
html[data-theme="dark"] .filter-button.active,
html[data-theme="dark"] .step.active { background: #122b3b; }
html[data-theme="dark"] .chip { background: #1b2a39; color: #b6c5d4; }
html[data-theme="dark"] .chip.standard { background: #142c40; color: #8dcef2; }
html[data-theme="dark"] .chip.professional { background: #15352f; color: #8ed9c5; }
html[data-theme="dark"] .scope-icon { background: rgba(255,255,255,.08); }
html[data-theme="dark"] .scope-copy span,
html[data-theme="dark"] .scope-banner.verified .scope-copy span { color: var(--muted); }
html[data-theme="dark"] .simulation-box { border-color: #775f2d; background: #2c2415; color: #e7ca8c; }
html[data-theme="dark"] .segmented-control input:checked + span,
html[data-theme="dark"] .merge-option:has(input:checked) { background: #153127; color: #9ae0bf; }
html[data-theme="dark"] .data-table th { background: #0d1722; }
html[data-theme="dark"] .score-track { background: #263645; }
html[data-theme="dark"] .timeline::before { background: #314354; }
html[data-theme="dark"] .timeline-item::before { border-color: #0d1824; }
html[data-theme="dark"] .locked-panel { background: var(--red-soft); }
html[data-theme="dark"] .toast { border-color: #346955; background: #153128; color: #b8e6d3; }
html[data-theme="dark"] .site-footer { color: #8fa0b3; }

@media (max-width: 880px) {
  .site-header { grid-template-columns: 1fr auto; min-height: 64px; gap: 7px 12px; padding-top: 9px; }
  .site-nav { position: static; grid-column: 1 / -1; grid-row: 2; width: 100%; justify-content: space-around; padding: 6px 0 8px; border: 0; border-top: 1px solid rgba(255,255,255,.08); border-radius: 0; background: transparent; box-shadow: none; }
  .site-nav a { padding: 9px 10px; font-size: 12px; }
  .header-actions { grid-column: 2; grid-row: 1; }
  .page-shell { padding-bottom: 74px; }
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .relation-flow { grid-template-columns: 1fr; }
  .relation-arrow { min-height: 24px; transform: rotate(90deg); }
}

@media (max-width: 620px) {
  .prototype-ribbon { font-size: 11px; }
  .site-header { padding: 0 14px; }
  .brand-copy span { display: none; }
  .header-status span:last-child { display: none; }
  .header-actions { gap: 7px; }
  .account-theme-control { width: 112px; }
  .account-theme-choice { font-size: 10px; }
  .page-shell { width: min(calc(100% - 20px), 1120px); padding-top: 30px; }
  .page-hero { grid-template-columns: 1fr; gap: 18px; align-items: start; }
  .page-hero .button-row { width: 100%; }
  .page-hero .button { flex: 1; }
  .scope-banner, .notice { grid-template-columns: auto minmax(0, 1fr); }
  .scope-banner > .button, .notice > .button { grid-column: 1 / -1; }
  .panel { padding: 18px 15px; border-radius: 17px; }
  .panel-head { display: grid; }
  .stat-grid { gap: 8px; }
  .stat-card { padding: 13px; }
  .result-card { grid-template-columns: auto minmax(0, 1fr); padding: 14px; }
  .result-card-actions { grid-column: 1 / -1; }
  .result-card-actions .button { width: 100%; }
  .comparison-grid, .stepper { grid-template-columns: 1fr; }
  .qr-auth-layout { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .qr-auth-copy { min-height: 0; justify-items: center; }
  .merge-option { grid-template-columns: auto minmax(0, 1fr); }
  .merge-option > .chip { grid-column: 2; justify-self: start; }
  .setting-row { grid-template-columns: minmax(0, 1fr) auto; }
  .nickname-editor { grid-template-columns: 1fr; }
  .nickname-editor .button { width: 100%; }
  .site-nav .local-only-nav { display: none; }
}
