/* Tab Atlas website. One stylesheet for the marketing pages and the account pages. */

:root {
  color-scheme: light;
  --bg: #ffffff;
  --bg-soft: #f6f7f9;
  --surface: #ffffff;
  --surface-2: #f9fafb;
  --text: #111827;
  --text-2: #374151;
  --muted: #6b7280;
  --border: #e5e7eb;
  --border-2: #d1d5db;
  --ink: #1f2937;
  --ink-hover: #111827;
  --on-ink: #ffffff;
  --focus: #2563eb;
  --link: #1a5fd0;
  --ok: #137333;
  --ok-bg: #e6f4ea;
  --warn: #8a4b00;
  --warn-bg: #fef7e0;
  --bad: #b3261e;
  --bad-bg: #fce8e6;
  --info-bg: #eef3fd;
  /* Chrome's tab group colors */
  --g-blue: #1a73e8;
  --g-green: #1e8e3e;
  --g-yellow: #e8a500;
  --g-red: #d93025;
  --g-purple: #9334e6;
  --g-cyan: #007b83;
  --g-grey: #5f6368;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.05), 0 10px 30px rgba(16, 24, 40, 0.07);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --wrap: 1080px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0f1218;
    --bg-soft: #141821;
    --surface: #171b24;
    --surface-2: #1c212c;
    --text: #e8eaed;
    --text-2: #c9ccd1;
    --muted: #9aa0a6;
    --border: #2a303c;
    --border-2: #3a4150;
    --ink: #e8eaed;
    --ink-hover: #ffffff;
    --on-ink: #111827;
    --focus: #8ab4f8;
    --link: #8ab4f8;
    --ok: #81c995;
    --ok-bg: rgba(129, 201, 149, 0.12);
    --warn: #fdd663;
    --warn-bg: rgba(253, 214, 99, 0.12);
    --bad: #f28b82;
    --bad-bg: rgba(242, 139, 130, 0.12);
    --info-bg: rgba(138, 180, 248, 0.12);
    --g-blue: #8ab4f8;
    --g-green: #81c995;
    --g-yellow: #fdd663;
    --g-red: #f28b82;
    --g-purple: #c58af9;
    --g-cyan: #78d9ec;
    --g-grey: #dadce0;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 10px 30px rgba(0, 0, 0, 0.35);
  }
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .mock-switch button[aria-pressed="true"],
  :root:not([data-theme="light"]) .tabs button[aria-selected="true"] {
    background: var(--border);
  }
}

/* Language: every bilingual pair is marked with lang; only the page language shows. */
html[data-lang="zh"] body [lang="en"],
html[data-lang="en"] body [lang="zh-CN"] {
  display: none !important;
}

*, *::before, *::after { box-sizing: border-box; }

[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

html[data-lang="zh"] body { line-height: 1.75; }

img, svg { display: block; max-width: 100%; }

a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 6px; }

h1, h2, h3 { line-height: 1.25; margin: 0; letter-spacing: -0.01em; text-wrap: balance; }
p { margin: 0; }

kbd {
  font-family: var(--mono);
  font-size: 0.85em;
  padding: 0.1em 0.45em;
  border: 1px solid var(--border-2);
  border-bottom-width: 2px;
  border-radius: 6px;
  background: var(--surface-2);
  white-space: nowrap;
}

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .wrap { padding: 0 24px; } }

.skip-link { position: absolute; left: -999px; top: 8px; z-index: 50; background: var(--surface); padding: 8px 12px; border-radius: 8px; }
.skip-link:focus { left: 8px; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap { display: flex; align-items: center; gap: 16px; height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 650; font-size: 17px; }
.brand:hover { text-decoration: none; }
.brand img { width: 28px; height: 28px; }
.nav { display: none; gap: 22px; margin-left: 12px; }
.nav a { color: var(--text-2); font-size: 15px; }
.nav a:hover { color: var(--text); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
@media (min-width: 820px) { .nav { display: flex; } }

.lang-toggle {
  font: inherit;
  font-size: 14px;
  color: var(--text-2);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 12px;
  cursor: pointer;
  min-height: 34px;
}
.lang-toggle:hover { border-color: var(--border-2); color: var(--text); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 16px;
  border-radius: 10px;
  border: 1px solid transparent;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; }
.btn-primary { background: var(--ink); color: var(--on-ink); }
.btn-primary:not([disabled]):hover { background: var(--ink-hover); }
.btn-secondary { background: var(--surface); color: var(--text); border-color: var(--border-2); }
.btn-secondary:not([disabled]):hover { border-color: var(--text-2); }
.btn-quiet { background: transparent; color: var(--text-2); padding-left: 10px; padding-right: 10px; }
.btn-quiet:not([disabled]):hover { color: var(--text); background: var(--bg-soft); }
.btn-danger { background: var(--bad); color: #fff; }
.btn-lg { min-height: 48px; padding: 12px 22px; font-size: 16px; border-radius: 12px; }
.btn-sm { min-height: 34px; padding: 6px 12px; font-size: 14px; }
.btn-block { width: 100%; }
.header-actions .btn { min-height: 36px; padding: 6px 14px; font-size: 14px; }
.hide-narrow { display: none; }
@media (min-width: 520px) { .hide-narrow { display: inline-flex; } }

/* Hero */
.hero { padding: 56px 0 40px; }
@media (min-width: 900px) { .hero { padding: 80px 0 56px; } }
.hero-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1fr 1.05fr; gap: 48px; } }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-2);
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 12px;
  margin-bottom: 20px;
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--g-green); }
.hero h1 { font-size: clamp(34px, 6vw, 54px); font-weight: 750; letter-spacing: -0.02em; }
html[data-lang="zh"] .hero h1 { letter-spacing: 0; }
.hero .lede { margin-top: 18px; font-size: clamp(17px, 2.2vw, 19px); color: var(--text-2); max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-note { margin-top: 14px; font-size: 14px; color: var(--muted); }

/* Browser mock: Chrome window with a vertical tab strip */
.mock { position: relative; }
.mock-switch { display: inline-flex; padding: 3px; gap: 2px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg-soft); margin-bottom: 12px; }
.mock-switch button { font: inherit; font-size: 14px; border: 0; background: transparent; color: var(--text-2); padding: 5px 14px; border-radius: 8px; cursor: pointer; }
.mock-switch button[aria-pressed="true"] { background: var(--surface); color: var(--text); box-shadow: 0 1px 2px rgba(16, 24, 40, 0.12); }
.window {
  border: 1px solid var(--border-2);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.window-bar { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-bottom: 1px solid var(--border); background: var(--surface-2); }
.window-dots { display: flex; gap: 6px; }
.window-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--border-2); }
.omnibox { flex: 1; height: 26px; border-radius: 999px; background: var(--bg-soft); border: 1px solid var(--border); font-size: 12px; color: var(--muted); display: flex; align-items: center; padding: 0 12px; overflow: hidden; white-space: nowrap; }
.window-body { display: grid; grid-template-columns: minmax(0, 1fr); min-height: 300px; }
@media (min-width: 560px) { .window-body { grid-template-columns: 250px minmax(0, 1fr); } }
.strip { padding: 10px 8px; border-right: 1px solid var(--border); background: var(--surface-2); display: flex; flex-direction: column; gap: 2px; }
.page { position: relative; padding: 18px; background: var(--bg); display: none; }
@media (min-width: 560px) { .page { display: block; } }
.page-line { height: 10px; border-radius: 6px; background: var(--bg-soft); border: 1px solid var(--border); margin-bottom: 10px; }
.page-line.w60 { width: 60%; } .page-line.w80 { width: 80%; } .page-line.w40 { width: 40%; }
.tab { display: flex; align-items: center; gap: 8px; height: 30px; padding: 0 8px; border-radius: 8px; font-size: 13px; color: var(--text-2); white-space: nowrap; overflow: hidden; }
.tab span:last-child { overflow: hidden; text-overflow: ellipsis; }
.tab.active { background: var(--surface); box-shadow: 0 1px 2px rgba(16, 24, 40, 0.1); color: var(--text); }
.tab.dup { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--g-red); }
.fav { flex: none; width: 16px; height: 16px; border-radius: 4px; font-size: 10px; font-weight: 700; color: #fff; display: grid; place-items: center; }
.fav.a { background: #c2410c; } .fav.b { background: #0f766e; } .fav.c { background: #7c3aed; } .fav.d { background: #be123c; } .fav.e { background: #0369a1; }
.group { margin-top: 6px; }
.group-chip { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 7px; font-size: 12px; font-weight: 650; color: #fff; margin: 2px 0 2px 4px; }
.group-chip small { font-weight: 500; opacity: 0.85; }
.group .tab { position: relative; padding-left: 16px; }
.group .tab::before { content: ""; position: absolute; left: 6px; top: 4px; bottom: 4px; width: 3px; border-radius: 3px; background: var(--group-color); }
.group.blue { --group-color: var(--g-blue); } .group.green { --group-color: var(--g-green); } .group.yellow { --group-color: var(--g-yellow); }
.group .group-chip { background: var(--group-color); }
/* Chrome's dark theme draws group chips in pastel colors with dark text. */
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .group .group-chip { color: #111827; } }
.toast {
  position: absolute;
  top: 14px;
  right: 14px;
  left: 14px;
  max-width: 340px;
  margin-left: auto;
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 10px 12px;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.toast b { font-weight: 650; }
.toast .undo { margin-left: auto; font-weight: 650; color: var(--link); white-space: nowrap; }
.toast .ok { flex: none; width: 18px; height: 18px; border-radius: 50%; background: var(--ok-bg); color: var(--ok); display: grid; place-items: center; font-size: 12px; font-weight: 700; }
.mock[data-state="before"] .state-after,
.mock[data-state="after"] .state-before { display: none; }
.toast.mobile-toast { position: static; margin: 10px 4px 4px; max-width: none; }
@media (min-width: 560px) { .toast.mobile-toast { display: none; } }
.page-title { height: 16px; width: 55%; border-radius: 6px; background: var(--border); margin: 6px 0 16px; }
.page-code { height: 74px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--border); margin: 14px 0; }

/* Sections */
.section { padding: 64px 0; border-top: 1px solid var(--border); }
@media (min-width: 900px) { .section { padding: 88px 0; } }
.section-soft { background: var(--bg-soft); }
.section-head { max-width: 680px; margin-bottom: 36px; }
.section-head h2 { font-size: clamp(26px, 4vw, 36px); font-weight: 720; }
.section-head p { margin-top: 12px; color: var(--text-2); font-size: 17px; }
.kicker { font-size: 14px; font-weight: 650; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 10px; }
html[data-lang="zh"] .kicker { text-transform: none; letter-spacing: 0.08em; }

.split { display: grid; gap: 32px; }
@media (min-width: 900px) { .split { grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: start; } }
.prose p + p { margin-top: 14px; }
.prose p { color: var(--text-2); font-size: 17px; }

.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.facts li { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); }
.facts .num { flex: none; font-weight: 750; font-size: 20px; line-height: 1.2; min-width: 52px; }
.facts .num.blue { color: var(--g-blue); } .facts .num.green { color: var(--g-green); } .facts .num.yellow { color: var(--g-yellow); }
.facts p { color: var(--text-2); font-size: 15px; }

.grid { display: grid; gap: 16px; }
@media (min-width: 700px) { .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 980px) { .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 700px) and (max-width: 979px) { .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.card h3 { font-size: 18px; font-weight: 680; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.card p { margin-top: 10px; color: var(--text-2); font-size: 15.5px; }
.card .icon { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; margin-bottom: 14px; }
.card .icon svg { width: 20px; height: 20px; }
.icon.blue { background: color-mix(in srgb, var(--g-blue) 14%, transparent); color: var(--g-blue); }
.icon.green { background: color-mix(in srgb, var(--g-green) 14%, transparent); color: var(--g-green); }
.icon.yellow { background: color-mix(in srgb, var(--g-yellow) 18%, transparent); color: var(--g-yellow); }
.icon.purple { background: color-mix(in srgb, var(--g-purple) 14%, transparent); color: var(--g-purple); }
.icon.cyan { background: color-mix(in srgb, var(--g-cyan) 14%, transparent); color: var(--g-cyan); }
.badge { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--bg-soft); color: var(--text-2); border: 1px solid var(--border); white-space: nowrap; }
.badge.ok { background: var(--ok-bg); color: var(--ok); border-color: transparent; }
.badge.warn { background: var(--warn-bg); color: var(--warn); border-color: transparent; }

.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
table.plain { width: 100%; border-collapse: collapse; font-size: 15px; }
table.plain th, table.plain td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--border); vertical-align: top; }
table.plain tr:last-child td { border-bottom: 0; }
table.plain th { font-size: 13px; color: var(--muted); font-weight: 600; background: var(--surface-2); }
table.plain th:first-child, table.plain td:first-child { white-space: nowrap; }
table.plain td:first-child { color: var(--text); }

/* Pricing */
.plans { display: grid; gap: 16px; }
@media (min-width: 760px) { .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.plan { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 26px; }
.plan.featured { border-color: var(--ink); box-shadow: var(--shadow); }
.plan-name { font-size: 15px; font-weight: 650; color: var(--text-2); display: flex; align-items: center; gap: 8px; }
.plan-price { margin-top: 10px; display: flex; align-items: baseline; gap: 6px; }
.plan-price strong { font-size: 40px; font-weight: 760; letter-spacing: -0.02em; line-height: 1.1; }
.plan-price span { color: var(--muted); font-size: 15px; }
.plan-sub { margin-top: 6px; color: var(--text-2); font-size: 15px; }
.plan ul { list-style: none; padding: 0; margin: 20px 0 24px; display: grid; gap: 10px; font-size: 15px; color: var(--text-2); }
.plan li { display: flex; gap: 10px; align-items: flex-start; }
.plan li::before { content: ""; flex: none; width: 16px; height: 16px; margin-top: 4px; border-radius: 50%; background: var(--ok-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.8' fill='none' stroke='%23137333' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat; }
.plan .btn { margin-top: auto; }
.note { margin-top: 18px; color: var(--muted); font-size: 14.5px; }

/* FAQ */
.faq { display: grid; gap: 10px; max-width: 820px; }
.faq details { border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); }
.faq summary { cursor: pointer; list-style: none; padding: 16px 18px; font-weight: 620; display: flex; align-items: center; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; margin-left: auto; font-size: 20px; line-height: 1; color: var(--muted); }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 18px 16px; color: var(--text-2); }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 36px 0 44px; color: var(--muted); font-size: 14px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 18px 28px; align-items: center; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.site-footer a { color: var(--text-2); }
.site-footer .copy { margin-left: auto; }

/* Legal pages */
.doc { max-width: 760px; padding-top: 48px; padding-bottom: 72px; }
.doc h1 { font-size: clamp(28px, 4.5vw, 38px); font-weight: 740; }
.doc h2 { font-size: 20px; margin-top: 36px; }
.doc p, .doc li { color: var(--text-2); }
.doc p { margin-top: 12px; }
.doc ul { padding-left: 1.3em; margin: 12px 0 0; display: grid; gap: 6px; }
.draft-banner { margin: 18px 0 8px; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--warn-bg); color: var(--warn); font-weight: 600; font-size: 15px; }
.doc .updated { margin-top: 8px; color: var(--muted); font-size: 14px; }

/* Account pages */
.auth-page { min-height: 100vh; display: flex; flex-direction: column; background: var(--bg-soft); }
.auth-main { flex: 1; display: flex; align-items: flex-start; justify-content: center; padding: 40px 16px 64px; }
@media (min-width: 640px) { .auth-main { align-items: center; } }
.auth-card { width: 100%; max-width: 420px; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 28px 24px; box-shadow: var(--shadow); }
@media (min-width: 480px) { .auth-card { padding: 32px 30px; } }
.auth-card h1 { font-size: 24px; font-weight: 720; }
.auth-card .sub { margin-top: 6px; color: var(--muted); font-size: 15px; }
.tabs { display: grid; grid-template-columns: 1fr 1fr; padding: 3px; gap: 3px; background: var(--bg-soft); border: 1px solid var(--border); border-radius: 11px; margin: 22px 0 6px; }
.tabs button { font: inherit; font-size: 15px; border: 0; background: transparent; color: var(--text-2); padding: 7px 10px; border-radius: 8px; cursor: pointer; }
.tabs button[aria-selected="true"] { background: var(--surface); color: var(--text); font-weight: 620; box-shadow: 0 1px 2px rgba(16, 24, 40, 0.12); }
.form { display: grid; gap: 14px; margin-top: 18px; }
.field { display: grid; gap: 6px; }
.field label, .field .label { font-size: 14px; font-weight: 600; color: var(--text-2); }
.field .hint { font-size: 13px; color: var(--muted); }
.input {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  font: inherit;
  font-size: 16px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: 10px;
}
.input:focus { outline: none; border-color: var(--focus); box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 22%, transparent); }
.input[aria-invalid="true"] { border-color: var(--bad); }
.input-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.input-row .btn { min-height: 44px; }
.form-links { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; flex-wrap: wrap; }
.linklike { font: inherit; font-size: 14px; background: none; border: 0; padding: 0; color: var(--link); cursor: pointer; }
.linklike:hover { text-decoration: underline; text-underline-offset: 3px; }
.message { margin-top: 16px; padding: 10px 12px; border-radius: 10px; font-size: 14.5px; background: var(--info-bg); color: var(--text); }
.message[data-tone="error"] { background: var(--bad-bg); color: var(--bad); }
.message[data-tone="success"] { background: var(--ok-bg); color: var(--ok); }
.message[hidden] { display: none; }
.rule { font-size: 13px; color: var(--muted); }
.rule[data-state="valid"] { color: var(--ok); }
.rule[data-state="invalid"] { color: var(--bad); }
.turnstile-slot:empty { display: none; }
.auth-foot { text-align: center; color: var(--muted); font-size: 14px; padding: 0 16px 32px; }
.loading { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 15px; padding: 24px 0; }
.spinner { width: 18px; height: 18px; border: 2px solid var(--border-2); border-top-color: var(--text-2); border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation: none; } html { scroll-behavior: auto; } }

.secret { display: flex; align-items: center; gap: 8px; margin-top: 14px; padding: 12px; border-radius: 10px; background: var(--bg-soft); border: 1px solid var(--border); font-family: var(--mono); font-size: 16px; word-break: break-all; }
.secret code { flex: 1; }

.portal-main { padding: 32px 0 72px; }
.portal-head { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 20px; margin-bottom: 24px; }
.portal-head h1 { font-size: clamp(24px, 4vw, 30px); font-weight: 720; }
.portal-head .who { color: var(--muted); font-size: 15px; word-break: break-all; }
.portal-grid { display: grid; gap: 16px; }
@media (min-width: 860px) { .portal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .portal-grid .wide { grid-column: 1 / -1; } }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.panel h2 { font-size: 17px; font-weight: 680; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.panel .lead { margin-top: 6px; color: var(--muted); font-size: 14.5px; }
.big-number { margin-top: 14px; font-size: 40px; font-weight: 760; letter-spacing: -0.02em; line-height: 1.1; }
.rows { margin-top: 16px; display: grid; gap: 0; }
.rows > div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--border); font-size: 15px; }
.rows > div > span:first-child { color: var(--muted); }
.rows > div > span:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.meter { margin-top: 12px; height: 8px; border-radius: 999px; background: var(--bg-soft); border: 1px solid var(--border); overflow: hidden; }
.meter > i { display: block; height: 100%; width: 0; background: var(--g-green); border-radius: 999px; transition: width 0.4s ease; }
.meter.low > i { background: var(--g-yellow); }
.meter.empty > i { background: var(--g-red); }
.panel-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.steps { margin: 14px 0 0; padding-left: 1.3em; display: grid; gap: 8px; color: var(--text-2); font-size: 15px; }
.danger-zone { border-color: color-mix(in srgb, var(--bad) 35%, var(--border)); }
.portal-message { margin: 0 0 16px; }
.inline-form { display: grid; gap: 12px; margin-top: 14px; max-width: 420px; }
details.more { margin-top: 14px; }
details.more > summary { cursor: pointer; color: var(--link); font-size: 15px; width: fit-content; }
details.more[open] > summary { margin-bottom: 4px; }
