:root {
  color-scheme: light;
  --canvas: #f5f5f2;
  --surface: #ffffff;
  --ink: #242431;
  --muted: #696976;
  --line: #e8e8ed;
  --accent: #6a4ce7;
  --accent-hover: #5739ce;
  --accent-soft: #efebff;
  --green: #22745a;
  --red: #a33a43;
  --amber: #8c621d;
  --radius: 18px;
  font: 15px/1.55 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--canvas);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-width: 320px; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea, summary { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button, input, select, textarea { max-width: 100%; }
button:disabled { cursor: not-allowed; opacity: .52; }
button, a { touch-action: manipulation; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid #a591ff;
  outline-offset: 4px;
}
main:focus { outline: none; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { color: var(--ink); font-weight: 650; line-height: 1.25; letter-spacing: -.035em; }
h1 { font-size: clamp(1.8rem, 3vw, 2.35rem); margin-bottom: 10px; }
h2 { font-size: 1.16rem; margin-bottom: 16px; }
h3 { font-size: 1rem; margin-bottom: 8px; }
p { margin-bottom: 16px; }
small { font-size: .8rem; }
svg { flex-shrink: 0; }
code, pre, .mono { font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace; font-size: .86em; }
pre { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.mono { overflow-wrap: anywhere; }
hr { border: 0; border-top: 1px solid var(--line); margin: 24px 0; }
.muted, .page-description { color: var(--muted); }
.eyebrow { margin: 0 0 10px; color: var(--muted); font-size: .7rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.stack { display: grid; gap: 20px; min-width: 0; }
.stack > :last-child { margin-bottom: 0; }
.button, button:not([class]) {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 16px; border: 1px solid var(--line); border-radius: 10px;
  background: white; color: var(--ink); font-size: .86rem; font-weight: 600; line-height: 1.4;
  text-decoration: none; text-align: center; transition: background .15s, border-color .15s, box-shadow .15s;
}
.button:hover:not(:disabled), button:not([class]):hover:not(:disabled) { border-color: #c6bddf; background: #faf9ff; color: var(--ink); }
.button.primary { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 3px 8px #6a4ce71a; }
.button.primary:hover:not(:disabled) { background: var(--accent-hover); border-color: var(--accent-hover); color: white; }
.button.secondary { background: #f5f3fd; border-color: #e5def9; color: #5b42bf; }
.button.ghost { background: transparent; border-color: transparent; box-shadow: none; }
.button.ghost:hover:not(:disabled) { background: #eeecf3; }
.button.danger { color: var(--red); background: #fff8f8; border-color: #efd8da; }
.button.danger:hover:not(:disabled) { background: #fdecee; border-color: #e5b9be; }
.button.small { font-size: .78rem; padding: 8px 12px; min-height: 38px; }
.text-button { border: 0; padding: 8px 0; min-height: 40px; color: var(--accent); background: transparent; font-weight: 600; font-size: .86rem; }
.text-button:hover { text-decoration: underline; text-underline-offset: 3px; }
.inline-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.inline-actions > p { margin: 0; }
label, .field { display: grid; gap: 8px; color: #42424e; font-size: .84rem; font-weight: 600; }
.field > small, label > small { font-weight: 400; color: var(--muted); }
input, select, textarea {
  width: 100%; min-width: 0; min-height: 46px; padding: 11px 13px;
  border: 1px solid #dedee7; border-radius: 9px; background: #fff; color: var(--ink);
  font-size: 16px; font-weight: 400; transition: border-color .15s, box-shadow .15s;
}
input:hover, select:hover, textarea:hover { border-color: #bcb6cc; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px #6a4ce70c; }
input::placeholder { color: #767180; }
input[readonly] { background: #f7f7fa; }
input[type="checkbox"] { width: 18px; min-height: 18px; accent-color: var(--accent); }
.form-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; align-items: end; }
.form-grid > .wide { grid-column: 1 / -1; }
.form-grid > button { align-self: end; }
form > .field + .field, form > label + label { margin-top: 18px; }
form > .button:last-child { margin-top: 20px; }
form.form-grid > .button:last-child { margin-top: 0; }
.notice { border: 1px solid #e1dcf4; border-radius: 11px; background: #f6f3ff; color: #594d83; padding: 14px 16px; font-size: .85rem; line-height: 1.65; overflow-wrap: anywhere; }
.notice p:last-child { margin-bottom: 0; }
.notice.warning { background: #fff9e9; color: #825b18; border-color: #f0e3be; }
.notice.error { background: #fff2f3; color: #9e3a45; border-color: #f1d5da; }
.notice.success { background: #edf8f2; color: #266d51; border-color: #d0eadd; }
.fixture-banner { padding: 9px 24px; border-bottom: 1px solid #ecdfb9; background: #fff6d9; color: #7d632a; font-size: .76rem; text-align: center; line-height: 1.5; }
.fixture-banner strong { font-weight: 700; }
#boot { min-height: 80vh; display: flex; justify-content: center; align-items: center; color: var(--muted); }
.loading { padding: 36px 20px; display: flex; gap: 12px; align-items: center; justify-content: center; color: var(--muted); font-size: .88rem; }
.loading::before { content: ""; width: 18px; height: 18px; border: 2px solid #e1daf7; border-top-color: var(--accent); border-radius: 50%; animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.skeleton { min-height: 120px; border-radius: 14px; background: linear-gradient(100deg, #eeedf3 25%, #f8f7fc 42%, #eeedf3 65%); background-size: 200% 100%; animation: shimmer 1.6s ease-in-out infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
.brand { display: inline-flex; align-items: center; gap: 10px; color: #292735; font-size: 1.5rem; font-weight: 750; letter-spacing: -.07em; text-decoration: none; }
.brand:hover { color: inherit; }
.logo, .brand-mark { display: inline-grid; width: 33px; height: 33px; flex-shrink: 0; place-items: center; border-radius: 10px; color: white; background: var(--accent); font-size: 21px; font-weight: 700; line-height: 1; letter-spacing: -.08em; }
.brand svg { width: 33px; height: 33px; }
.auth-layout { display: grid; grid-template-columns: minmax(340px, .95fr) minmax(400px, 1.05fr); min-height: calc(100vh - 40px); }
.auth-story { position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: flex-start; padding: clamp(36px, 6vw, 80px); color: #d5cfef; background: #242033; }
.auth-story::before { content: ""; position: absolute; width: 520px; height: 520px; border: 1px solid #ffffff0b; border-radius: 50%; bottom: -130px; right: -210px; box-shadow: 0 0 0 70px #ffffff03, 0 0 0 140px #ffffff02; pointer-events: none; }
.auth-story .brand { color: white; margin-bottom: clamp(70px, 12vh, 150px); }
.auth-story .logo, .auth-story .brand-mark { background: #8d72ff; }
.auth-story .eyebrow { color: #a897e5; }
.auth-story h1 { color: #fff; font-size: clamp(2.3rem, 3.5vw, 3.5rem); line-height: 1.14; font-weight: 600; max-width: 460px; letter-spacing: -.05em; margin-bottom: 24px; }
.auth-story > p:not(.eyebrow) { max-width: 385px; color: #b3abc9; line-height: 1.8; }
.story-orbit { position: relative; width: 100%; max-width: 420px; margin: 32px 0; padding: 22px; border: 1px solid #ffffff1c; border-radius: 16px; background: #ffffff05; color: #d4c8ff; font-family: "SFMono-Regular", Consolas, monospace; font-size: .8rem; line-height: 1.9; overflow-wrap: anywhere; }
.story-orbit::before { content: "●  ●  ●"; display: block; color: #6e637f; letter-spacing: 5px; font-size: 10px; margin-bottom: 18px; }
.story-orbit span { color: #ae9adf; }
.story-footer { margin-top: auto; padding-top: 60px; color: #a39ab7; font-size: .75rem; }
.auth-main { display: flex; justify-content: center; align-items: center; padding: 60px 44px; background: #fbfbf9; }
.auth-card { width: 100%; max-width: 410px; min-width: 0; }
.auth-card h1, .auth-card h2 { font-size: 1.9rem; margin-bottom: 12px; }
.auth-card > p, #auth-content > p { color: var(--muted); font-size: .92rem; }
.auth-card form { margin-top: 26px; }
.auth-card form > .button:last-child { width: 100%; }
.auth-card .notice { margin: 20px 0; }
.auth-tabs { display: flex; gap: 2px; padding: 4px; margin-bottom: 32px; border: 1px solid #e8e6ee; background: #f0eff4; border-radius: 11px; }
.auth-tabs button { flex: 1; padding: 10px 12px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); font-size: .88rem; font-weight: 600; min-height: 42px; }
.auth-tabs button[aria-selected="true"], .auth-tabs button.active { color: var(--ink); background: white; box-shadow: 0 2px 5px #24243109; }
.auth-card .inline-actions { justify-content: space-between; }
#mailbox { margin-top: 14px; }
#mailbox .data-row { font-size: .78rem; }
.app-shell { display: grid; grid-template-columns: 228px minmax(0, 1fr); min-height: calc(100vh - 40px); }
.sidebar { display: flex; flex-direction: column; padding: 31px 17px 24px; border-right: 1px solid var(--line); background: #fcfcfb; }
.sidebar .brand { margin: 0 15px 48px; }
.nav-links { display: grid; gap: 7px; }
.nav-link { display: flex; gap: 13px; align-items: center; min-height: 48px; width: 100%; padding: 12px 15px; border: 1px solid transparent; border-radius: 10px; background: transparent; color: #6b6978; font-size: .86rem; font-weight: 500; text-align: left; }
.nav-link:hover { background: #f1eff7; color: #54478d; }
.nav-link.active, .nav-link[aria-current="page"], .nav-link[aria-selected="true"] { background: #ece7fc; color: #6342d4; font-weight: 650; }
.nav-icon { display: inline-flex; align-items: center; justify-content: center; width: 21px; height: 21px; font-size: 20px; line-height: 1; }
.nav-icon svg { width: 20px; height: 20px; }
.sidebar-footer { margin: auto 13px 0; padding-top: 40px; font-size: .73rem; color: #756d7f; line-height: 1.7; }
.sidebar-footer p { margin-bottom: 8px; }
.workspace { min-width: 0; }
.topbar { min-height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 18px 42px; background: #fcfcfbd9; border-bottom: 1px solid var(--line); }
.breadcrumb { color: #756d7f; font-size: .8rem; }
.breadcrumb strong { color: #494553; font-weight: 500; }
#account-label { color: #6b6778; font-size: .8rem; overflow-wrap: anywhere; }
#logout { flex-shrink: 0; }
#main { max-width: 1440px; padding: 36px 42px 64px; margin: 0 auto; min-width: 0; }
#page-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; margin-bottom: 28px; }
#page-heading .eyebrow { margin-bottom: 8px; }
#page-heading .page-description { font-size: .88rem; max-width: 660px; margin-bottom: 0; }
#refresh-page { flex-shrink: 0; margin-top: 20px; }
.page-content { min-width: 0; }
.page-content > * + * { margin-top: 24px; }
.panel { min-width: 0; padding: 26px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 2px 3px #20203002; }
.panel > :last-child { margin-bottom: 0; }
.section-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 20px; }
.section-heading h2, .section-heading h3, .section-heading p { margin-bottom: 0; }
.section-heading p { margin-top: 5px; font-size: .82rem; }
.stats-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.metric { min-width: 0; padding: 20px; border: 1px solid var(--line); border-radius: 13px; background: #fafafa; }
.metric > p:first-child, .metric > span:first-child, .metric > dt { display: block; color: var(--muted); font-size: .78rem; margin: 0 0 10px; }
.metric strong, .metric dd { display: block; margin: 0; font-size: 1.35rem; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: -.035em; overflow-wrap: anywhere; }
.metric small { display: block; margin-top: 7px; color: var(--muted); }
.hero-balance { position: relative; overflow: hidden; padding: 32px; background: #292338; color: #e9e4f4; border: 1px solid #373041; border-radius: var(--radius); }
.hero-balance::after { content: ""; position: absolute; width: 260px; height: 260px; border: 1px solid #ffffff10; border-radius: 50%; right: -60px; top: -90px; box-shadow: 0 0 0 35px #ffffff04, 0 0 0 70px #ffffff03; pointer-events: none; }
.hero-balance > * { position: relative; z-index: 1; }
.hero-balance .eyebrow, .hero-balance .muted { color: #b4a9ca; }
.hero-balance h2 { color: #d1c9df; font-size: .9rem; font-weight: 500; letter-spacing: 0; }
.hero-balance .section-heading { margin-bottom: 22px; }
.hero-balance .button.primary { background: #9778ff; border-color: #9778ff; color: #21152f; }
.hero-balance .button.primary:hover:not(:disabled) { background: #a68aff; border-color: #a68aff; color: #21152f; }
.hero-balance .button.ghost, .hero-balance .button.small { background: #ffffff0c; border-color: #ffffff24; color: #ede7ff; }
.balance-value { font-size: clamp(1.6rem, 3.1vw, 3rem); font-variant-numeric: tabular-nums; font-weight: 550; line-height: 1.25; letter-spacing: -.04em; overflow-wrap: anywhere; }
.balance-value small { font-size: .36em; font-weight: 500; letter-spacing: 0; color: #b5a8d3; }
.balance-subgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; padding-top: 23px; margin-top: 26px; border-top: 1px solid #ffffff17; }
.balance-subgrid p, .balance-subgrid dt { color: #b5a8ca; font-size: .78rem; margin: 0 0 6px; }
.balance-subgrid strong, .balance-subgrid dd { display: block; margin: 0; font-size: 1rem; font-weight: 500; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.quick-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.quick-card { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; padding: 25px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; color: var(--ink); text-align: left; text-decoration: none; }
.quick-card:hover { border-color: #c9bcec; background: #fdfcff; color: var(--ink); }
.quick-card p { color: var(--muted); font-size: .84rem; margin: 0 0 18px; }
.quick-card h3 { margin: 14px 0 9px; font-size: 1.05rem; }
.quick-card .nav-icon { width: 36px; height: 36px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); }
.quick-card .button, .quick-card > span:last-child { margin-top: auto; }
.empty-state { display: grid; justify-items: center; text-align: center; padding: 36px 22px; color: var(--muted); font-size: .88rem; }
.empty-state h2, .empty-state h3 { color: #514b60; margin-bottom: 8px; }
.empty-state p { max-width: 430px; margin: 0 0 20px; }
.empty-state > :last-child { margin-bottom: 0; }
.badge { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 4px 9px; border-radius: 6px; background: #f0edf9; color: #736190; font-size: .7rem; line-height: 1.45; font-weight: 600; white-space: normal; }
.badge::before { content: ""; width: 5px; height: 5px; flex-shrink: 0; border-radius: 50%; background: currentColor; }
.badge.success { background: #eaf5ef; color: #227052; }
.badge.warning { background: #fff4db; color: #80591b; }
.badge.danger, .badge.error { background: #faecee; color: #a84a53; }
.data-list { display: grid; min-width: 0; }
.data-row { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 19px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.data-row:first-child { padding-top: 4px; }
.data-row:last-child { border-bottom: 0; padding-bottom: 0; }
.data-row > * { min-width: 0; }
.data-row p { margin: 4px 0 0; font-size: .82rem; }
.data-row strong { font-weight: 600; overflow-wrap: anywhere; }
.data-row .mono { font-size: .77rem; }
.data-row .inline-actions { flex-shrink: 0; }
.copy-row { display: flex; align-items: center; gap: 12px; min-width: 0; }
.copy-row > :first-child { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.copy-row > button { flex-shrink: 0; }
.table-wrap { overflow-x: auto; max-width: 100%; }
table, .table { width: 100%; border-collapse: collapse; font-size: .83rem; }
th { padding: 10px 12px 14px; border-bottom: 1px solid var(--line); text-align: left; color: #756d7f; font-weight: 500; font-size: .72rem; }
td { padding: 18px 12px; border-bottom: 1px solid #f0eef4; vertical-align: middle; }
tr:last-child td { border-bottom: none; }
th:first-child, td:first-child { padding-left: 0; }
th:last-child, td:last-child { padding-right: 0; }
td .muted { font-size: .76rem; }
td .mono { overflow-wrap: anywhere; }
.model-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.model-card { min-width: 0; padding: 25px; border: 1px solid var(--line); border-radius: var(--radius); background: white; }
.model-card h2 { margin: 15px 0; overflow-wrap: anywhere; font-size: 1.25rem; }
.model-card .stats-grid { gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.model-card .metric { padding: 14px; }
.model-card .metric strong { font-size: 1.15rem; }
.code-block { padding: 22px; border: 1px solid #30293d; border-radius: 12px; background: #292434; color: #dbd2ed; line-height: 1.85; font-size: .78rem; overflow-wrap: anywhere; }
.secret-value { display: block; width: 100%; padding: 18px; border: 1px solid #ded5f7; border-radius: 10px; background: #f6f3ff; color: #4f378e; overflow-wrap: anywhere; font: .88rem/1.8 "SFMono-Regular", Consolas, monospace; }
dialog { width: min(540px, calc(100vw - 32px)); max-height: calc(100dvh - 48px); padding: 30px; border: 1px solid #e6e0ef; border-radius: 20px; background: white; color: var(--ink); box-shadow: 0 24px 100px #21162d2e; overflow-y: auto; }
dialog::backdrop { background: #21162d75; backdrop-filter: blur(3px); }
dialog h2 { font-size: 1.45rem; }
dialog p { color: var(--muted); font-size: .88rem; }
dialog .inline-actions { justify-content: flex-end; margin-top: 24px; }
dialog form { margin: 0; }
#toast { position: fixed; z-index: 100; bottom: 24px; left: 50%; transform: translateX(-50%); width: max-content; max-width: min(600px, calc(100vw - 32px)); padding: 13px 19px; border: 1px solid #55475d; border-radius: 12px; background: #30293c; color: #fff; font-size: .85rem; box-shadow: 0 10px 35px #1d142928; overflow-wrap: anywhere; }
#toast:empty { display: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
@media (min-width: 1600px) {
  #main { padding-top: 46px; }
  .app-shell { grid-template-columns: 250px minmax(0, 1fr); }
  .sidebar { padding-inline: 24px; }
}
@media (max-width: 1100px) {
  .app-shell { grid-template-columns: 202px minmax(0, 1fr); }
  .sidebar { padding-inline: 12px; }
  .sidebar .brand { margin-inline: 12px; }
  .nav-link { padding-inline: 12px; gap: 10px; }
  .topbar { padding-inline: 26px; }
  #main { padding: 30px 26px 50px; }
  .panel { padding: 22px; }
  .model-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-balance { padding: 28px; }
  .balance-value { font-size: clamp(1.5rem, 3.5vw, 2.5rem); }
  .stats-grid { gap: 12px; }
  .metric { padding: 16px; }
}
@media (max-width: 780px) {
  .auth-layout { grid-template-columns: minmax(0, 1fr); min-height: auto; }
  .auth-story { padding: 28px 30px; }
  .auth-story .brand { margin-bottom: 25px; }
  .auth-story h1 { font-size: 2rem; margin-bottom: 14px; max-width: 550px; }
  .auth-story > p:not(.eyebrow) { max-width: 550px; margin-bottom: 0; font-size: .88rem; }
  .story-orbit, .story-footer { display: none; }
  .auth-main { padding: 38px 26px 50px; }
  .auth-card { max-width: 440px; }
  .app-shell { grid-template-columns: minmax(0, 1fr); }
  .sidebar { display: block; padding: 20px 20px 10px; border-right: 0; border-bottom: 1px solid var(--line); }
  .sidebar .brand { margin: 0 0 20px 3px; font-size: 1.35rem; }
  .sidebar-footer { display: none; }
  .nav-links { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; }
  .nav-link { justify-content: center; flex-direction: column; gap: 7px; padding: 9px 2px; border-radius: 9px; min-height: 64px; text-align: center; font-size: .69rem; line-height: 1.2; }
  .nav-icon { font-size: 18px; width: 20px; height: 20px; }
  .topbar { min-height: 62px; padding: 12px 22px; }
  .breadcrumb { display: none; }
  #account-label { font-size: .74rem; }
  #logout { margin-left: auto; }
  #main { padding: 28px 22px 42px; }
  #page-heading { gap: 16px; margin-bottom: 23px; }
  #page-heading h1 { font-size: 1.85rem; }
  #refresh-page { margin-top: 16px; }
  .hero-balance .section-heading { align-items: flex-start; }
  .balance-value { font-size: clamp(1.65rem, 5vw, 2.6rem); }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
  .fixture-banner { padding: 9px 16px; font-size: .7rem; }
  .auth-story { padding: 25px 23px; }
  .auth-story .brand { margin-bottom: 23px; }
  .auth-story h1 { font-size: 1.8rem; }
  .auth-story .eyebrow { font-size: .63rem; }
  .auth-main { padding: 32px 23px 40px; }
  .auth-card h1, .auth-card h2 { font-size: 1.65rem; }
  .auth-tabs { margin-bottom: 27px; }
  .sidebar { padding: 20px 12px 10px; }
  .sidebar .brand { margin-left: 8px; }
  .nav-link { font-size: .65rem; }
  .topbar { padding: 10px 18px; }
  #main { padding: 24px 16px 36px; }
  #page-heading { flex-wrap: wrap; gap: 14px; }
  #page-heading h1 { font-size: 1.75rem; }
  #page-heading .page-description { font-size: .82rem; }
  #refresh-page { margin-top: 0; min-height: 38px; padding: 8px 12px; }
  .panel { padding: 20px 17px; border-radius: 14px; }
  .page-content > * + * { margin-top: 18px; }
  .hero-balance { padding: 23px 20px; border-radius: 14px; }
  .hero-balance .section-heading { flex-wrap: wrap; gap: 15px; }
  .hero-balance h2 { font-size: .83rem; }
  .hero-balance .button { min-height: 38px; font-size: .78rem; padding: 8px 12px; }
  .balance-value { font-size: 1.55rem; }
  .balance-subgrid { gap: 16px; margin-top: 22px; padding-top: 19px; }
  .balance-subgrid p, .balance-subgrid dt { font-size: .71rem; }
  .balance-subgrid strong, .balance-subgrid dd { font-size: .83rem; }
  .quick-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .quick-card { padding: 21px; border-radius: 14px; }
  .stats-grid, .form-grid { grid-template-columns: minmax(0, 1fr); }
  .metric { padding: 16px; }
  .metric strong, .metric dd { font-size: 1.2rem; }
  .form-grid { gap: 16px; }
  .section-heading { align-items: flex-start; flex-wrap: wrap; gap: 12px; }
  .section-heading h2 { font-size: 1.06rem; }
  .data-row { align-items: flex-start; flex-wrap: wrap; gap: 13px; }
  .data-row > .inline-actions { width: 100%; }
  .copy-row { align-items: flex-start; flex-wrap: wrap; gap: 10px; }
  .copy-row > :first-child { flex-basis: 100%; }
  .copy-row > button { margin-left: 0; }
  .table-wrap { margin-inline: -2px; }
  table, .table { font-size: .77rem; }
  th { font-size: .67rem; }
  td, th { padding-inline: 8px; }
  td { padding-block: 15px; }
  .model-card { padding: 21px 18px; }
  .model-card h2 { font-size: 1.1rem; }
  .model-card .stats-grid { grid-template-columns: minmax(0, 1fr); }
  .code-block { padding: 17px; font-size: .7rem; }
  dialog { padding: 24px 20px; border-radius: 16px; }
  dialog h2 { font-size: 1.28rem; }
  dialog .inline-actions .button { flex-grow: 1; }
  #toast { bottom: 16px; font-size: .8rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
/* Small interface details shared by the account and payment screens. */
.skip-link { position: fixed; z-index: 200; top: -80px; left: 16px; padding: 12px 18px; border-radius: 0 0 10px 10px; background: var(--accent); color: white; font-weight: 600; }
.skip-link:not(:focus) { clip-path: inset(50%); width: 1px; height: 1px; padding: 0; overflow: hidden; white-space: nowrap; }
.skip-link:focus { top: 0; color: white; }
.logo { display: inline-flex; align-items: center; justify-content: center; }
.logo > span { color: #d8cbff; font-size: 18px; margin-left: 1px; }
.brand-tag { align-self: center; padding: 3px 5px; border: 1px solid #e5dff3; border-radius: 4px; color: #75677f; font-size: .56rem; line-height: 1; letter-spacing: .04em; font-weight: 600; margin-left: 1px; }
.auth-story .brand-tag { color: #b7aad5; border-color: #ffffff29; }
.story-description { color: #b3abc9; font-size: .94rem; line-height: 1.8; }
.auth-story .story-orbit .mono { color: #d4c8ff; font-size: .95em; }
.nav-caption { margin: -12px 15px 15px; color: #756d7f; font-size: .58rem; font-weight: 650; letter-spacing: .12em; }
.status-dot { display: inline-block; width: 6px; height: 6px; margin-right: 4px; border-radius: 50%; background: #75a087; }
.breadcrumb > span { margin-inline: 10px; color: #c0bac9; }
.page-footer { display: flex; justify-content: space-between; gap: 12px; margin-top: 36px; padding-top: 20px; border-top: 1px solid #e6e3eb; color: #756d7f; font-size: .72rem; }
.topup-layout { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 22px; }
.topup-layout .stack { gap: 16px; }
.steps { padding-left: 22px; margin-bottom: 0; color: var(--muted); font-size: .87rem; }
.steps li { padding-left: 5px; margin-bottom: 14px; }
.steps li:last-child { margin-bottom: 0; }
.steps li::marker { color: var(--accent); font-weight: 650; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.payment-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.payment-metrics .metric strong { font-size: 1.15rem; }
.payment-metrics .metric p { font-size: .76rem; margin-block: 9px 12px; }
.payment-metrics .metric strong small { display: inline; font-size: .75rem; }
.payment-row { width: 100%; text-align: left; color: var(--ink); background: transparent; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 17px 12px; }
.payment-row:first-child { padding-top: 17px; }
.payment-row:last-child { padding-bottom: 17px; }
.payment-row:hover, .payment-row.selected { border-radius: 9px; background: #f6f3fd; }
.payment-row > span:first-child { flex: 1; }
.payment-row small { display: block; margin-top: 5px; font-size: .73rem; }
.operation-details { padding-block: 18px; border-block: 1px solid var(--line); }
.operation-details summary { cursor: pointer; color: #5e526f; font-size: .85rem; font-weight: 600; }
.operation-details[open] summary { margin-bottom: 20px; }
.operation-details .data-row { align-items: flex-start; font-size: .82rem; }
.operation-details .data-row > :first-child { flex: 0 0 35%; }
.operation-details .data-row > :last-child { flex: 1; }
.empty-icon { display: grid; place-items: center; width: 43px; height: 43px; margin-bottom: 16px; border-radius: 13px; background: #f0ecfa; color: #9d8fc1; font-size: 22px; }
@media (max-width: 780px) {
  .nav-caption { display: none; }
  .topup-layout { grid-template-columns: minmax(0, 1fr); gap: 18px; }
}
@media (max-width: 480px) {
  .payment-metrics { grid-template-columns: minmax(0, 1fr); }
  .operation-details .data-row > :first-child, .operation-details .data-row > :last-child { flex-basis: 100%; }
  .page-footer { font-size: .65rem; }
}
.field-hint { color: var(--muted); font-size: .73rem; font-weight: 400; line-height: 1.5; }
form.stack > .field + .field, form.stack > label + label { margin-top: 0; }
form.stack > .button:last-child { margin-top: 4px; }
form.stack > .muted { margin: 0; font-size: .79rem; }
.auth-links { display: flex; flex-wrap: wrap; justify-content: space-between; column-gap: 16px; margin-top: 14px; }
.resend-form { border-top: 1px solid var(--line); padding-top: 24px; }
.resend-form > .muted { font-size: .75rem; }
.fixture-tools { margin-top: 30px; padding-top: 17px; border-top: 1px dashed #ded7e7; font-size: .77rem; }
.fixture-tools summary { cursor: pointer; color: #75677f; }
.fixture-tools > p { font-size: .75rem; margin-block: 15px; overflow-wrap: anywhere; }
.fixture-tools .panel { padding: 16px; }
.fixture-tools .panel p { margin: 0; font-size: .75rem; overflow-wrap: anywhere; }
.fixture-tools #mailbox { gap: 12px; }
#secret-copy-status { font-size: .79rem; margin-top: 14px; }
#close-secret { width: 100%; }
#secret-dialog .copy-row { flex-wrap: wrap; }
#secret-dialog .copy-row .secret-value { flex-basis: 100%; }
@media (max-width: 480px) {
  .auth-links .text-button { font-size: .78rem; }
}
/* Account data keeps its hierarchy without compromising exact values. */
.balance-value > span { display: inline-block; margin-left: 10px; color: #c0b3dc; font-size: .85rem; font-weight: 500; letter-spacing: 0; }
.balance-value + p { margin-top: 12px; font-size: .82rem; }
.balance-subgrid > div > span { display: block; margin-bottom: 7px; color: #b5a8ca; font-size: .78rem; }
.hero-balance .button.ghost:hover:not(:disabled) { background: #ffffff1a; border-color: #ffffff36; color: #fff; }
.card-icon { display: grid; place-items: center; width: 38px; height: 38px; margin-bottom: 18px; border-radius: 11px; background: var(--accent-soft); color: var(--accent); font-size: 23px; }
.quick-card h2 { font-size: 1.1rem; margin-bottom: 10px; }
.legacy-balance { display: flex; justify-content: space-between; align-items: center; gap: 28px; }
.legacy-balance > :first-child { min-width: 0; max-width: 570px; }
.legacy-balance p { font-size: .81rem; margin-bottom: 0; }
.legacy-balance > .stack { gap: 5px; min-width: 0; text-align: right; flex-shrink: 0; }
.legacy-balance .mono { font-size: .9rem; font-weight: 550; }
.amount-cell { display: grid; gap: 6px; justify-items: end; text-align: right; }
.amount-cell strong { font-variant-numeric: tabular-nums; white-space: normal; }
.positive { color: var(--green); }
.history-row { align-items: flex-start; }
.history-row > :first-child { flex: 1; }
.history-row .amount-cell { max-width: 48%; }
.history-row details, .key-row details { margin-top: 6px; color: var(--muted); font-size: .77rem; }
.history-row summary, .key-row summary { cursor: pointer; padding-block: 3px; color: #6a5c7c; }
.history-row details p, .key-row details p { margin-top: 10px; }
.key-row { align-items: flex-start; }
.key-row > .stack { gap: 9px; flex: 1; justify-items: start; }
.key-row > button { flex-shrink: 0; margin-top: 2px; }
.panel > .data-list + .muted, .model-card > .data-list + .muted { margin-top: 20px; font-size: .8rem; }
#newkey + .muted { margin-top: 14px; font-size: .79rem; }
#history-more { margin-top: 24px; }
.badge.muted { color: #696273; background: #efedf1; }
.notice.danger { background: #fff2f3; color: #9e3a45; border-color: #f1d5da; }
@media (max-width: 1100px) {
  .quick-grid .form-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .legacy-balance { align-items: flex-start; flex-direction: column; gap: 17px; }
  .legacy-balance > .stack { text-align: left; justify-items: start; flex-shrink: 1; max-width: 100%; }
}
@media (max-width: 480px) {
  .balance-subgrid > div > span { font-size: .71rem; }
  .balance-value > span { font-size: .72rem; }
  .history-row .amount-cell { max-width: 100%; justify-items: start; text-align: left; }
  .history-row > :first-child { flex-basis: 100%; }
  .amount-cell .button { padding-left: 0; }
}
