:root {
  color-scheme: dark;
  --bg: #0b0c0e;
  --bg-soft: #101215;
  --surface: #14171a;
  --surface-raised: #191d20;
  --surface-quiet: #101214;
  --text: #f4f5f5;
  --muted: #969da2;
  --muted-strong: #c0c4c7;
  --line: #343a3e;
  --line-strong: #e8ecee;
  --accent: #31d0c5;
  --accent-ink: #041412;
  --accent-wash: rgba(49, 208, 197, .12);
  --danger: #ff6c70;
  --danger-wash: rgba(255, 108, 112, .12);
  --warning: #f2bd63;
  --warning-wash: rgba(242, 189, 99, .12);
  --success: #65daa6;
  --offset-shadow: #030405;
  --soft-shadow: 0 16px 42px rgba(0, 0, 0, .2);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --sidebar-width: 258px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #edf0f1;
  --bg-soft: #e5e9ea;
  --surface: #ffffff;
  --surface-raised: #f9fbfb;
  --surface-quiet: #f2f5f5;
  --text: #101315;
  --muted: #6e777c;
  --muted-strong: #505a60;
  --line: #cdd3d6;
  --line-strong: #111517;
  --accent: #0b9b92;
  --accent-ink: #ffffff;
  --accent-wash: rgba(11, 155, 146, .1);
  --danger: #d63d47;
  --danger-wash: rgba(214, 61, 71, .1);
  --warning: #ae7213;
  --warning-wash: rgba(174, 114, 19, .11);
  --success: #187c51;
  --offset-shadow: #ffffff;
  --soft-shadow: 0 16px 42px rgba(18, 35, 41, .08);
}

* { box-sizing: border-box; }
html { min-width: 320px; scroll-behavior: smooth; }
body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 88% 3%, color-mix(in srgb, var(--accent) 7%, transparent), transparent 27rem),
    var(--bg);
  font-size: 14px;
  line-height: 1.55;
}
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}
::selection { color: var(--accent-ink); background: var(--accent); }

.public-header {
  height: 82px;
  padding: 0 clamp(20px, 5vw, 76px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 90%, transparent);
}
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 800; letter-spacing: -.04em; }
.brand > span:last-child { line-height: 1.1; }
.brand small { display: block; margin-top: 5px; color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: .17em; }
.brand-mark {
  width: 37px; height: 37px; display: grid; place-items: center;
  border: 2px solid var(--line-strong); background: var(--accent); color: var(--accent-ink);
  font-size: 19px; font-weight: 900; box-shadow: 4px 4px 0 var(--offset-shadow);
}
.brand-mark-image { width: 37px; height: 37px; display: block; object-fit: contain; }
.public-nav, .header-actions, .hero-actions, .topbar-actions { display: flex; align-items: center; gap: 10px; }
.public-nav { gap: 28px; color: var(--muted-strong); font-size: 12px; font-weight: 600; }
.public-nav a:hover, .auth-back a:hover { color: var(--accent); }
.header-actions { gap: 9px; }
.icon-button {
  min-height: 39px; min-width: 43px; display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); color: var(--text); cursor: pointer;
}
.theme-toggle { padding: 0 10px; font-size: 11px; font-weight: 700; }
.theme-symbol { color: var(--accent); font-size: 17px; }
.button {
  min-height: 42px;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 0 16px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--text); font-weight: 750; font-size: 12px; cursor: pointer;
  transition: transform .18s ease, background .18s ease, color .18s ease, box-shadow .18s ease;
}
.button:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 4px 4px 0 var(--offset-shadow); }
.button:disabled { cursor: not-allowed; opacity: .48; }
.button-primary { background: var(--accent); color: var(--accent-ink); border-color: var(--line-strong); }
.button-primary:hover:not(:disabled) { background: color-mix(in srgb, var(--accent) 88%, white); }
.button-outline { background: transparent; }
.button-quiet { border-color: transparent; background: transparent; }
.button-danger { border-color: var(--danger); background: var(--danger-wash); color: var(--danger); }
.button-large { min-height: 51px; padding: 0 20px; font-size: 13px; }
.button-full { width: 100%; }
.text-link { display: inline-flex; align-items: center; gap: 7px; color: var(--accent); font-size: 11px; font-weight: 750; white-space: nowrap; }
.text-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.public-main { min-height: calc(100vh - 148px); }
.public-footer {
  min-height: 66px; padding: 15px clamp(20px, 5vw, 76px); display: flex; align-items: center; justify-content: space-between; gap: 12px;
  border-top: 1px solid var(--line); color: var(--muted); font-size: 10px;
}
.public-footer a { color: var(--accent); font-weight: 700; white-space: nowrap; }
.page-width { width: min(1120px, calc(100% - 48px)); margin: 0 auto; }
.landing-hero {
  min-height: auto; display: grid; grid-template-columns: 1fr; align-items: center; padding-top: 82px; padding-bottom: 86px;
}
.hero-kicker, .eyebrow { color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .16em; }
.hero-kicker { display: inline-flex; align-items: center; gap: 9px; margin-bottom: 19px; color: var(--accent); }
.status-pulse, .wallet-dot { width: 7px; height: 7px; border-radius: 99px; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-wash); }
.hero-copy h1 { margin: 0; max-width: 580px; font-size: clamp(43px, 6.2vw, 76px); line-height: .99; letter-spacing: -.075em; font-weight: 800; }
.hero-copy h1 span { color: var(--accent); }
.hero-lead { max-width: 515px; margin: 25px 0 29px; color: var(--muted-strong); font-size: 15px; line-height: 1.75; }
.hero-actions { gap: 12px; }
.hero-trust { display: flex; align-items: center; gap: 11px; margin-top: 38px; color: var(--muted); font-size: 10px; font-weight: 650; }
.hero-trust b { margin-right: 5px; color: var(--text); font: 800 10px ui-monospace, SFMono-Regular, Menlo, monospace; }
.trust-divider { width: 20px; height: 1px; background: var(--line); }
.metric-card, .panel-heading, .detail-status-head { display: flex; align-items: center; justify-content: space-between; }
.landing-band { padding: 68px 0 74px; border-top: 1px solid var(--line); }
.section-heading { margin-bottom: 27px; }
.section-heading h2, .security-strip h2 { margin: 8px 0 0; font-size: clamp(25px, 4vw, 38px); letter-spacing: -.055em; }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.step-card { min-height: 211px; padding: 21px; position: relative; overflow: hidden; border: 1px solid var(--line); background: var(--surface); transition: transform .2s, box-shadow .2s; }
.step-card:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--offset-shadow); }
.step-num { color: var(--muted); font: 750 10px ui-monospace, SFMono-Regular, Menlo, monospace; }
.step-symbol { width: 36px; height: 36px; margin-top: 17px; display: grid; place-items: center; border: 1px solid var(--line-strong); background: var(--accent); color: var(--accent-ink); font-size: 18px; font-weight: 900; }
.step-card h3 { margin: 14px 0 5px; font-size: 16px; letter-spacing: -.03em; }
.step-card p { max-width: 260px; margin: 0; color: var(--muted); font-size: 11px; line-height: 1.7; }
.security-strip { display: flex; align-items: center; gap: 18px; padding: 22px 25px; border: 1px solid var(--line-strong); background: var(--surface); box-shadow: 7px 7px 0 var(--offset-shadow); }
.security-mark { width: 42px; height: 42px; display: grid; place-items: center; flex: 0 0 auto; border: 1px solid var(--line-strong); color: var(--accent); font-size: 20px; }
.security-strip > div:nth-child(2) { flex: 1; }
.security-strip h2 { font-size: 21px; }
.security-strip p { max-width: 580px; margin: 8px 0 0; color: var(--muted); font-size: 11px; }
.security-strip .text-link { margin-left: auto; }
.landing-disclaimer { display: flex; gap: 11px; align-items: flex-start; padding: 30px 0; color: var(--muted); font-size: 10px; }
.landing-disclaimer p { max-width: 820px; margin: 0; }
.disclaimer-icon, .notice-icon { width: 19px; height: 19px; display: grid; place-items: center; flex: 0 0 auto; border: 1px solid var(--line); color: var(--accent); font: 800 10px ui-monospace, monospace; }

.sidebar { width: var(--sidebar-width); position: fixed; inset: 0 auto 0 0; z-index: 30; display: flex; flex-direction: column; overflow-y: auto; overscroll-behavior-y: contain; -webkit-overflow-scrolling: touch; padding: calc(23px + env(safe-area-inset-top)) 15px calc(16px + env(safe-area-inset-bottom)); border-right: 1px solid var(--line); background: var(--bg-soft); }
.sidebar-brand { padding: 0 9px 23px; }
.sidebar-user { display: flex; flex: 0 0 auto; align-items: center; gap: 10px; padding: 13px 10px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.avatar, .topbar-avatar { width: 34px; height: 34px; display: grid; place-items: center; flex: 0 0 auto; border: 1px solid var(--line-strong); background: var(--accent); color: var(--accent-ink); font-weight: 850; }
.sidebar-user-copy { min-width: 0; }
.sidebar-user-copy strong { overflow: hidden; color: var(--text); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-user-copy span { overflow: hidden; max-width: 171px; margin-top: 2px; color: var(--muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.side-nav { display: flex; flex: 0 0 auto; flex-direction: column; gap: 3px; padding-top: 22px; }
.nav-caption { padding: 0 11px 7px; color: var(--muted); font-size: 8px; font-weight: 800; letter-spacing: .15em; }
.nav-caption-spaced { margin-top: 20px; }
.side-link { min-height: 40px; display: flex; align-items: center; gap: 11px; padding: 0 11px; border: 1px solid transparent; border-radius: 6px; color: var(--muted-strong); font-size: 11px; font-weight: 650; transition: background .18s ease, color .18s ease; }
.side-link:hover { background: var(--surface); color: var(--text); }
.side-link.is-active { border-color: var(--line); background: var(--surface); color: var(--accent); }
.nav-icon { width: 17px; color: var(--muted); font-size: 16px; text-align: center; }
.side-link.is-active .nav-icon { color: var(--accent); }
.sidebar-bottom { flex: 0 0 auto; margin-top: auto; }
.logout-link { width: 100%; background: transparent; cursor: pointer; }
.sidebar-bottom form { margin: 0; }
.sidebar-scrim { display: none; }
.app-shell { min-height: 100vh; margin-left: var(--sidebar-width); }
.topbar { height: 76px; position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 14px; padding: 0 clamp(22px, 4vw, 52px); border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 96%, transparent); backdrop-filter: blur(12px); }
.menu-toggle { display: none; }
.topbar-title { display: flex; flex-direction: column; gap: 1px; }
.topbar-title .eyebrow { font-size: 8px; }
.topbar-title strong { font-size: 13px; }
.topbar-actions { margin-left: auto; }
.wallet-chip { min-height: 34px; display: inline-flex; align-items: center; gap: 8px; padding: 0 11px; border: 1px solid var(--line); background: var(--surface); font-size: 10px; font-weight: 750; }
.wallet-dot { width: 6px; height: 6px; }
.topbar-avatar { border-radius: 50%; font-size: 12px; }
.hamburger { width: 18px; display: flex; flex-direction: column; gap: 4px; }
.hamburger i { width: 100%; height: 2px; border-radius: 2px; background: currentColor; }
.page-main { width: min(1240px, 100%); margin: 0 auto; padding: 35px clamp(22px, 4vw, 52px) 70px; }
.flash { display: flex; align-items: center; gap: 10px; margin: 0 0 21px; padding: 12px 14px; border: 1px solid var(--line); background: var(--surface); font-size: 11px; }
.flash-success { border-color: color-mix(in srgb, var(--success) 40%, var(--line)); }
.flash-error { border-color: color-mix(in srgb, var(--danger) 44%, var(--line)); }
.flash-info { border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
.flash-mark { width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; background: var(--accent-wash); color: var(--accent); font-size: 10px; font-weight: 900; }
.flash-error .flash-mark { background: var(--danger-wash); color: var(--danger); }
.flash-close { margin-left: auto; border: 0; background: transparent; color: var(--muted); font-size: 18px; cursor: pointer; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 27px; }
.page-heading h1 { margin: 6px 0 3px; font-size: clamp(26px, 3.3vw, 36px); line-height: 1.1; letter-spacing: -.06em; }
.page-heading p { margin: 0; color: var(--muted); font-size: 11px; }
.metric-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 17px; }
.admin-metrics { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.metric-card { position: relative; min-height: 136px; align-items: flex-start; flex-direction: column; overflow: hidden; padding: 17px 18px; border: 1px solid var(--line); background: var(--surface); }
.metric-dark { border-color: var(--line-strong); background: var(--surface-raised); }
.metric-label { color: var(--muted); font-size: 8px; font-weight: 800; letter-spacing: .13em; }
.metric-value { margin-top: 14px; font-size: clamp(21px, 2.5vw, 29px); letter-spacing: -.055em; line-height: 1.05; }
.metric-value-sm { font-size: clamp(16px, 1.8vw, 21px); }
.metric-email { max-width: 100%; margin-top: 13px; overflow: hidden; font-size: 14px; letter-spacing: -.025em; text-overflow: ellipsis; white-space: nowrap; }
.metric-note { margin-top: 7px; color: var(--muted); font-size: 9px; }
.metric-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 13px; color: var(--accent); font-size: 9px; font-weight: 750; }
.metric-decoration { position: absolute; right: 14px; bottom: -13px; color: color-mix(in srgb, var(--muted) 12%, transparent); font: 900 58px ui-monospace, monospace; }
.content-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(260px, .85fr); gap: 14px; }
.panel { min-width: 0; padding: 20px; border: 1px solid var(--line); background: var(--surface); }
.panel-heading { min-height: 39px; gap: 18px; margin-bottom: 17px; }
.panel-heading h2 { margin: 4px 0 0; font-size: 16px; letter-spacing: -.04em; }
.panel-heading .eyebrow { font-size: 8px; }
.table-hint { color: var(--muted); font-size: 9px; }
.activity-list, .ledger-list { display: flex; flex-direction: column; }
.activity-row { min-width: 0; display: flex; align-items: center; gap: 11px; padding: 12px 0; border-top: 1px solid var(--line); }
.activity-row:first-child, .ledger-row:first-child { border-top: 0; }
.activity-row:hover .activity-main strong { color: var(--accent); }
.activity-icon, .ledger-icon { width: 29px; height: 29px; display: grid; place-items: center; flex: 0 0 auto; border: 1px solid var(--line); background: var(--surface-quiet); color: var(--accent); font-size: 14px; font-weight: 850; }
.activity-main { min-width: 0; flex: 1; }
.activity-main strong { overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; transition: color .15s ease; }
.activity-main small, .ledger-copy small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.activity-end { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; white-space: nowrap; }
.activity-end b { font-size: 9px; }
.status-pill { display: inline-flex; align-items: center; min-height: 20px; padding: 2px 7px; border: 1px solid var(--line); border-radius: 99px; background: var(--surface-quiet); color: var(--muted-strong); font-size: 8px; font-weight: 750; white-space: nowrap; }
.status-completed, .status-paid, .status-active { border-color: color-mix(in srgb, var(--success) 44%, var(--line)); background: color-mix(in srgb, var(--success) 9%, var(--surface)); color: var(--success); }
.status-awaiting_verification, .status-pending, .status-sending { border-color: color-mix(in srgb, var(--warning) 45%, var(--line)); background: var(--warning-wash); color: var(--warning); }
.status-failed, .status-expired, .status-suspended { border-color: color-mix(in srgb, var(--danger) 45%, var(--line)); background: var(--danger-wash); color: var(--danger); }
.status-refunded { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); background: var(--accent-wash); color: var(--accent); }
.ledger-row { display: flex; align-items: center; gap: 9px; padding: 10px 0; border-top: 1px solid var(--line); }
.ledger-icon { width: 27px; height: 27px; font-size: 13px; }
.ledger-copy { min-width: 0; flex: 1; }
.ledger-copy strong { font-size: 9px; }
.ledger-amount { font-size: 9px; white-space: nowrap; }
.positive { color: var(--success); }
.negative { color: var(--muted-strong); }
.ledger-cta { margin-top: 16px; }
.empty-state { min-height: 190px; display: flex; align-items: center; flex-direction: column; justify-content: center; padding: 25px 15px; text-align: center; }
.empty-small { min-height: 140px; }
.empty-symbol { width: 35px; height: 35px; display: grid; place-items: center; border: 1px solid var(--line); color: var(--accent); font-size: 17px; }
.empty-state h3 { margin: 12px 0 4px; font-size: 13px; }
.empty-state p { max-width: 300px; margin: 0 0 12px; color: var(--muted); font-size: 10px; }
.notice-bar { display: flex; align-items: flex-start; gap: 10px; margin-top: 15px; padding: 12px 13px; border: 1px solid var(--line); background: var(--surface); }
.notice-bar p { margin: 0; color: var(--muted-strong); font-size: 10px; line-height: 1.65; }
.notice-warning { border-color: color-mix(in srgb, var(--warning) 38%, var(--line)); }
.notice-warning .notice-icon { color: var(--warning); }

.table-scroll { width: 100%; overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; text-align: left; font-size: 10px; }
.data-table th { padding: 10px 11px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--muted); font-size: 8px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.data-table td { min-height: 51px; padding: 11px; border-bottom: 1px solid var(--line); color: var(--muted-strong); white-space: nowrap; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover { background: var(--surface-quiet); }
.data-table tbody tr:hover td:first-child { color: var(--text); }
.table-primary { display: block; color: var(--text); font-size: 10px; font-weight: 700; }
.table-sub { display: block; margin-top: 3px; color: var(--muted); font-size: 8px; }
.mono-link { color: var(--accent); font: 750 9px ui-monospace, SFMono-Regular, Menlo, monospace; }
.table-action { color: var(--accent); font-size: 9px; font-weight: 750; }
.table-action:hover { text-decoration: underline; }
.button-as-link { padding: 0; border: 0; background: transparent; cursor: pointer; }
.search-form { display: flex; gap: 7px; }
.search-form input { width: min(230px, 38vw); min-height: 37px; padding: 0 10px; }

.form-layout, .detail-grid, .invoice-layout, .profile-grid, .settings-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(260px, .75fr); align-items: start; gap: 14px; }
.form-panel { padding: 23px; }
.round-badge { width: 31px; height: 31px; display: grid; place-items: center; border: 1px solid var(--line); color: var(--accent); font: 800 9px ui-monospace, monospace; }
.form-stack { display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; color: var(--text); font-size: 10px; font-weight: 700; }
.field input, .field select, .field textarea, .search-form input {
  width: 100%; min-height: 43px; padding: 0 12px; border: 1px solid var(--line); border-radius: 2px;
  background: var(--surface-quiet); color: var(--text); font-size: 11px;
}
.field textarea { min-height: 84px; padding-block: 10px; resize: vertical; line-height: 1.5; }
.field input::placeholder, .field textarea::placeholder, .search-form input::placeholder { color: var(--muted); opacity: .8; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); outline: 2px solid var(--accent-wash); }
.field small { color: var(--muted); font-size: 9px; font-weight: 450; line-height: 1.5; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.form-error { margin: 0 0 15px; padding: 11px 12px; border: 1px solid color-mix(in srgb, var(--danger) 50%, var(--line)); background: var(--danger-wash); color: var(--danger); font-size: 10px; }
.form-error a { text-decoration: underline; }
.price-review { display: flex; justify-content: space-between; gap: 12px; padding: 13px 14px; border: 1px solid var(--line); background: var(--surface-quiet); font-size: 10px; }
.price-review span { color: var(--muted); }
.price-review strong { color: var(--text); }
.side-note-panel { padding: 23px 20px; border: 1px solid var(--line); background: var(--surface-quiet); }
.side-note-panel h3 { max-width: 280px; margin: 8px 0 15px; font-size: 20px; line-height: 1.15; letter-spacing: -.045em; }
.check-list { display: flex; flex-direction: column; gap: 12px; margin: 0; padding: 0; list-style: none; }
.check-list li { display: flex; align-items: flex-start; gap: 9px; color: var(--muted-strong); font-size: 10px; line-height: 1.5; }
.check-list li span { color: var(--accent); font-weight: 900; }
.timed-note { display: flex; align-items: center; gap: 10px; margin-top: 23px; padding: 12px 0 0; border-top: 1px solid var(--line); }
.timed-note p { margin: 0; color: var(--muted); font-size: 9px; }
.note-clock { width: 35px; height: 35px; display: grid; place-items: center; flex: 0 0 auto; border: 1px solid var(--line); color: var(--accent); font: 800 9px ui-monospace, monospace; }
.detail-grid { grid-template-columns: minmax(0, 1.35fr) minmax(250px, .7fr); }
.detail-status-head { align-items: flex-start; gap: 15px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.detail-status-head h2 { margin: 6px 0 0; font-size: 21px; letter-spacing: -.045em; }
.detail-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; padding: 19px 0; }
.detail-facts div { min-width: 0; }
.detail-facts span, .detail-facts strong { display: block; }
.detail-facts span { margin-bottom: 4px; color: var(--muted); font-size: 9px; }
.detail-facts strong { overflow-wrap: anywhere; font-size: 10px; }
.verification-step { margin-top: 10px; padding-top: 19px; border-top: 1px solid var(--line); }
.step-heading { display: flex; gap: 12px; margin-bottom: 18px; }
.step-index { width: 30px; height: 30px; display: grid; place-items: center; flex: 0 0 auto; border: 1px solid var(--line-strong); background: var(--accent); color: var(--accent-ink); font: 800 9px ui-monospace, monospace; }
.step-heading h3 { margin: 0; font-size: 13px; }
.step-heading p { margin: 4px 0 0; color: var(--muted); font-size: 10px; }
.success-panel { display: flex; align-items: center; gap: 11px; margin-top: 13px; padding: 15px; border: 1px solid color-mix(in srgb, var(--success) 42%, var(--line)); background: color-mix(in srgb, var(--success) 8%, var(--surface)); }
.success-mark { width: 31px; height: 31px; display: grid; place-items: center; border: 1px solid var(--success); border-radius: 50%; color: var(--success); font-weight: 900; }
.success-panel strong, .success-panel small { display: block; }
.success-panel strong { font-size: 10px; }
.success-panel small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.detail-side { position: sticky; top: 20px; }
.timeline { display: flex; flex-direction: column; gap: 0; margin: 19px 0 22px; padding: 0; list-style: none; }
.timeline li { position: relative; display: flex; gap: 10px; min-height: 58px; }
.timeline li:not(:last-child)::after { content: ""; position: absolute; top: 28px; bottom: -2px; left: 12px; border-left: 1px dashed var(--line); }
.timeline li > span { z-index: 1; width: 25px; height: 25px; display: grid; place-items: center; flex: 0 0 auto; border: 1px solid var(--line); background: var(--surface); color: var(--muted); font: 750 8px ui-monospace, monospace; }
.timeline li.is-done > span { border-color: var(--accent); background: var(--accent); color: var(--accent-ink); }
.timeline li strong, .timeline li small { display: block; }
.timeline li strong { padding-top: 1px; font-size: 10px; }
.timeline li small { margin-top: 4px; color: var(--muted); font-size: 9px; }
.invoice-layout { grid-template-columns: minmax(0, 1.2fr) minmax(250px, .7fr); }
.invoice-total { display: flex; align-items: center; justify-content: space-between; padding: 18px 0; border-bottom: 1px solid var(--line); }
.invoice-total span { color: var(--muted); font-size: 11px; }
.invoice-total strong { font-size: 25px; letter-spacing: -.04em; }
.invoice-line { display: flex; justify-content: space-between; padding: 10px 0; color: var(--muted); font-size: 10px; }
.invoice-line strong { color: var(--text); }
.invoice-grand { margin-top: 2px; padding: 14px 0; border-top: 1px solid var(--line); color: var(--text); font-weight: 750; }
.invoice-grand strong { font-size: 15px; }
.invoice-facts { margin: 4px 0 16px; border-top: 1px solid var(--line); }
.qris-card { margin: 8px auto 16px; padding: 14px; max-width: 240px; border: 1px solid var(--line); background: #fff; text-align: center; }
.qris-card img { width: 100%; height: auto; image-rendering: pixelated; }
.qris-card p { margin: 7px 0 0; color: #343a3e; font-size: 9px; }
.check-invoice-form { margin-top: 9px; }
.invoice-code { display: flex; flex-direction: column; gap: 5px; margin: 20px 0; padding: 12px; border: 1px solid var(--line); background: var(--surface-quiet); }
.invoice-code small { color: var(--muted); font-size: 8px; font-weight: 800; letter-spacing: .12em; }
.invoice-code strong { overflow-wrap: anywhere; font: 750 10px ui-monospace, monospace; }
.side-note { color: var(--muted); font-size: 10px; line-height: 1.7; }
.detail-rule { height: 1px; margin: 18px 0; background: var(--line); }
.profile-grid { grid-template-columns: minmax(0, 1.25fr) minmax(270px, .75fr); }
.profile-side { display: flex; flex-direction: column; gap: 13px; }
.api-key-reveal { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 18px; margin-bottom: 16px; border-color: color-mix(in srgb, var(--accent) 48%, var(--line)); background: var(--accent-wash); }
.api-key-reveal h2 { margin: 5px 0; font-size: 16px; }
.api-key-reveal p { margin: 0; color: var(--muted-strong); font-size: 10px; }
.api-key-reveal code { padding: 13px 16px; border: 1px solid var(--line-strong); background: var(--bg); color: var(--accent); font-size: 17px; font-weight: 850; letter-spacing: .13em; }
.api-key-panel .muted-copy { margin: -3px 0 13px; line-height: 1.6; }
.api-key-create { display: grid; gap: 10px; }
.api-key-create .button { width: 100%; }
.api-key-list { margin-top: 15px; border-top: 1px solid var(--line); }
.api-key-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.api-key-row > div { display: grid; gap: 3px; min-width: 0; }
.api-key-row strong { overflow-wrap: anywhere; font-size: 11px; }
.api-key-row code { color: var(--accent); font-size: 10px; letter-spacing: .08em; }
.api-key-row small { color: var(--muted); font-size: 9px; }
.api-key-empty { margin-top: 14px; }
.api-key-doc-link { margin-top: 14px; }
.api-key-row .button-small { min-height: 30px; padding: 0 9px; font-size: 9px; }
.api-docs-callout { margin-bottom: 13px; border-color: color-mix(in srgb, var(--warning) 38%, var(--line)); }
.api-docs-callout strong { color: var(--warning); font-size: 12px; }
.api-docs-callout p, .api-docs-section > p { color: var(--muted-strong); font-size: 11px; line-height: 1.7; }
.api-docs-section { margin-bottom: 12px; }
.api-docs-section .panel-heading { margin-bottom: 10px; }
.api-docs-section pre { overflow-x: auto; margin: 11px 0; padding: 14px; border: 1px solid var(--line); background: var(--bg); color: var(--text); font: 10px/1.7 ui-monospace, SFMono-Regular, Menlo, monospace; white-space: pre; }
.api-docs-section pre code { color: inherit; }
.api-docs-section p code, .api-docs-callout code, .api-docs-errors li code { padding: 2px 4px; background: var(--surface-raised); color: var(--accent); font: 10px ui-monospace, SFMono-Regular, Menlo, monospace; }
.api-method { flex: 0 0 auto; padding: 5px 8px; border: 1px solid color-mix(in srgb, var(--accent) 40%, var(--line)); color: var(--accent); font: 800 9px ui-monospace, monospace; }
.api-method-get { border-color: color-mix(in srgb, var(--warning) 40%, var(--line)); color: var(--warning); }
.api-docs-errors ul { display: grid; gap: 8px; padding-left: 18px; color: var(--muted-strong); font-size: 10px; }
.activity-consent { display: flex; align-items: flex-start; gap: 10px; padding: 13px; border: 1px solid var(--line); background: var(--surface-quiet); cursor: pointer; }
.activity-consent input { width: 16px; height: 16px; flex: 0 0 auto; margin: 2px 0 0; accent-color: var(--accent); }
.activity-consent span { display: grid; gap: 4px; }
.activity-consent strong { font-size: 10px; }
.activity-consent small { color: var(--muted); font-size: 9px; line-height: 1.5; }
.ticket-list { display: grid; }
.ticket-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 15px 0; border-bottom: 1px solid var(--line); color: var(--text); }
.ticket-row:first-child { padding-top: 0; }
.ticket-row:last-child { padding-bottom: 0; border-bottom: 0; }
.ticket-row:hover .ticket-row-main > strong { color: var(--accent); }
.ticket-row-main, .ticket-row-side { display: grid; gap: 5px; min-width: 0; }
.ticket-row-main > strong { font-size: 12px; transition: color .15s ease; }
.ticket-row-main > small, .ticket-row-side > small { color: var(--muted); font-size: 9px; overflow-wrap: anywhere; }
.ticket-row-side { justify-items: end; text-align: right; flex: 0 0 auto; }
.ticket-category { color: var(--accent); font-size: 8px; font-weight: 850; letter-spacing: .12em; }
.ticket-status { display: inline-flex; align-items: center; min-height: 24px; padding: 0 8px; border: 1px solid var(--line); font-size: 9px; font-weight: 750; }
.ticket-status-open { border-color: color-mix(in srgb, var(--warning) 45%, var(--line)); background: var(--warning-wash); color: var(--warning); }
.ticket-status-closed { border-color: color-mix(in srgb, var(--success) 40%, var(--line)); background: color-mix(in srgb, var(--success) 10%, transparent); color: var(--success); }
.ticket-admin-summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.ticket-admin-summary > div { display: grid; gap: 3px; }
.ticket-admin-summary strong { font-size: 12px; }
.ticket-admin-summary small { color: var(--muted); font-size: 9px; }
.ticket-thread { display: grid; gap: 10px; }
.ticket-message { padding: 14px; border: 1px solid var(--line); background: var(--surface-quiet); }
.ticket-message-admin { border-color: color-mix(in srgb, var(--accent) 38%, var(--line)); background: var(--accent-wash); }
.ticket-message-heading { display: flex; justify-content: space-between; gap: 10px; }
.ticket-message-heading strong { font-size: 10px; }
.ticket-message-heading time { color: var(--muted); font-size: 9px; }
.ticket-message p { margin: 10px 0 0; font-size: 11px; line-height: 1.7; overflow-wrap: anywhere; white-space: pre-wrap; }
.ticket-reply-form { display: grid; justify-items: start; gap: 11px; margin-top: 18px; padding-top: 17px; border-top: 1px solid var(--line); }
.ticket-reply-form .field { width: 100%; }
.ticket-admin-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.ticket-admin-actions form, .ticket-admin-actions button { margin: 0; }
.ticket-filter { display: flex; align-items: end; gap: 11px; margin-bottom: 18px; }
.ticket-filter .field { width: min(260px, 100%); }
.ticket-filter .button { min-height: 40px; }
.ticket-form-panel { width: min(760px, 100%); }
.empty-state { padding: 30px 10px; text-align: center; }
.empty-state strong { font-size: 13px; }
.empty-state p { margin: 7px 0 15px; color: var(--muted); font-size: 10px; }
.empty-state .button { margin: 3px; }
.landing-benefits { padding: 74px 0; }
.landing-benefits .section-heading { max-width: 720px; margin-bottom: 25px; }
.landing-benefits .section-heading > p { max-width: 580px; color: var(--muted-strong); font-size: 12px; line-height: 1.75; }
.benefits-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.benefit-card {
  min-height: 150px; display: grid; grid-template-columns: 42px minmax(0, 1fr); align-content: start; gap: 8px 14px;
  padding: 20px; border: 1px solid color-mix(in srgb, var(--line-strong) 34%, var(--line)); background: var(--surface);
}
.benefit-icon {
  width: 40px; height: 40px; grid-column: 1; grid-row: 1 / span 2; display: grid; place-items: center;
  border: 1px solid color-mix(in srgb, var(--accent) 55%, var(--line)); background: var(--accent-wash); color: var(--accent); font-size: 16px; font-weight: 800;
}
.benefit-card h3 { grid-column: 2; margin: 1px 0 0; font-size: 14px; line-height: 1.4; }
.benefit-card p { grid-column: 2; margin: 0; color: var(--muted-strong); font-size: 11px; line-height: 1.7; }
.landing-support { display: flex; align-items: center; justify-content: space-between; gap: 22px; margin: 15px auto 30px; padding: 24px; border: 1px solid var(--line); background: var(--surface); }
.landing-support h2 { margin: 7px 0; font-size: 18px; letter-spacing: -.04em; }
.landing-support p { max-width: 620px; margin: 0; color: var(--muted); font-size: 10px; line-height: 1.7; }
.landing-support .button { flex: 0 0 auto; }
.activity-toast { position: fixed; top: 14px; left: 50%; z-index: 100; width: min(430px, calc(100% - 28px)); display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid var(--line-strong); background: var(--surface-raised); box-shadow: 0 16px 45px rgba(0,0,0,.28); transform: translate(-50%, 0); opacity: 1; transition: opacity .38s ease, transform .38s cubic-bezier(.2,.75,.25,1); }
.activity-toast[hidden] { display: none; }
.activity-toast.is-entering { opacity: 0; transform: translate(-50%, -24px); }
.activity-toast.is-leaving { opacity: 0; transform: translate(-50%, -18px); }
.activity-toast-mark { width: 30px; height: 30px; display: grid; place-items: center; flex: 0 0 auto; border: 1px solid color-mix(in srgb, var(--success) 50%, var(--line)); background: color-mix(in srgb, var(--success) 12%, transparent); color: var(--success); font-size: 13px; font-weight: 900; }
.activity-toast-copy { min-width: 0; flex: 1; }
.activity-toast-copy > div { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; }
.activity-toast-copy strong { font-size: 11px; }
.activity-toast-copy p { margin: 5px 0 0; color: var(--muted-strong); font-size: 9px; overflow-wrap: anywhere; }
.activity-toast-label { padding: 3px 5px; border: 1px solid var(--line); color: var(--muted-strong); font-size: 7px; font-weight: 850; letter-spacing: .1em; }
.activity-toast[data-kind="real"] .activity-toast-label { border-color: color-mix(in srgb, var(--success) 45%, var(--line)); color: var(--success); }
.profile-balance { display: flex; flex-direction: column; align-items: flex-start; gap: 7px; background: var(--surface-raised); }
.profile-balance strong { font-size: 29px; letter-spacing: -.05em; }
.profile-security { padding-bottom: 4px; }
.form-section-title { padding-top: 5px; border-top: 1px solid var(--line); }
.form-section-title p { margin: 5px 0 0; color: var(--muted); font-size: 9px; }
.muted-copy { color: var(--muted); font-size: 10px; line-height: 1.7; }

.admin-dashboard-grid { grid-template-columns: minmax(0, 1.55fr) minmax(240px, .65fr); }
.quick-settings .config-row { display: flex; justify-content: space-between; gap: 10px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 9px; }
.config-row span { color: var(--muted); }
.config-row strong { text-align: right; }
.quick-settings .button { margin-top: 8px; }
.role-label { color: var(--muted-strong); font-size: 9px; font-weight: 750; }
.role-admin { color: var(--accent); }
.user-list-heading { flex-wrap: wrap; }
.user-profile-metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
.admin-user-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-bottom: 14px; }
.user-action-row { display: flex; align-items: center; justify-content: space-between; gap: 13px; padding: 14px 0; border-top: 1px solid var(--line); }
.user-action-row strong, .user-action-row small { display: block; }
.user-action-row strong { font-size: 10px; }
.user-action-row small { max-width: 290px; margin-top: 4px; color: var(--muted); font-size: 9px; }
.user-action-row .button { flex: 0 0 auto; }
.admin-table-panel { margin-top: 14px; }
.settings-layout { grid-template-columns: minmax(0, 1fr); }
.secret-status-list { margin-bottom: 18px; border-top: 1px solid var(--line); }
.secret-status-list > div { display: flex; align-items: center; gap: 8px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 9px; }
.secret-status-list strong { margin-left: auto; color: var(--muted); font-size: 8px; }
.secret-indicator { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); }
.secret-indicator.is-set { background: var(--success); box-shadow: 0 0 0 3px color-mix(in srgb, var(--success) 15%, transparent); }
.settings-guard { display: flex; justify-content: space-between; gap: 15px; background: var(--surface-quiet); }
.settings-guard h2 { margin: 5px 0; font-size: 14px; }
.settings-guard p { max-width: 630px; margin: 0; color: var(--muted); font-size: 10px; }
.guard-mark { color: var(--accent); font: 900 35px ui-monospace, monospace; }
.settings-submit { display: flex; align-items: center; gap: 15px; }
.settings-submit p { margin: 0; color: var(--muted); font-size: 9px; }

.auth-wrap { width: min(1040px, calc(100% - 48px)); min-height: calc(100vh - 148px); margin: 0 auto; display: grid; grid-template-columns: 1fr minmax(350px, .82fr); align-items: center; gap: clamp(35px, 7vw, 96px); padding: 54px 0; }
.auth-aside h1 { max-width: 510px; margin: 14px 0; font-size: clamp(37px, 5.5vw, 62px); line-height: 1; letter-spacing: -.07em; }
.auth-aside h1 span { color: var(--accent); }
.auth-aside p { max-width: 390px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.auth-aside-mark { display: flex; align-items: center; gap: 7px; margin-top: 38px; }
.auth-aside-mark span { width: 43px; height: 43px; display: grid; place-items: center; border: 1px solid var(--line-strong); background: var(--accent); color: var(--accent-ink); font-size: 22px; font-weight: 900; box-shadow: 5px 5px 0 var(--offset-shadow); }
.auth-aside-mark i { width: 12px; height: 4px; background: var(--line); }
.auth-aside-mark i:first-of-type { background: var(--accent); }
.auth-card { padding: 29px; border: 1px solid var(--line-strong); background: var(--surface); box-shadow: 9px 9px 0 var(--offset-shadow), var(--soft-shadow); }
.auth-card-heading { margin-bottom: 22px; }
.auth-card-heading h2 { margin: 6px 0 4px; font-size: 28px; letter-spacing: -.06em; }
.auth-card-heading p { margin: 0; color: var(--muted); font-size: 10px; }
.auth-switch { margin: 19px 0 0; color: var(--muted); font-size: 10px; text-align: center; }
.auth-switch a { color: var(--accent); font-weight: 750; }
.auth-back { margin: 18px 0 0; color: var(--muted); font-size: 9px; text-align: center; }
.error-page { width: min(520px, calc(100% - 40px)); min-height: 55vh; margin: auto; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.error-code { color: var(--accent); font: 800 10px ui-monospace, monospace; letter-spacing: .17em; }
.error-page h1 { margin: 12px 0 5px; font-size: 36px; letter-spacing: -.06em; }
.error-page p { margin: 0 0 22px; color: var(--muted); }
.setup-wrap { min-height: 75vh; display: grid; place-items: center; padding: 35px 20px; }
.setup-card { width: min(580px, 100%); padding: 28px; border: 1px solid var(--line-strong); background: var(--surface); box-shadow: 9px 9px 0 var(--offset-shadow); }
.setup-symbol { width: 37px; height: 37px; margin-top: 20px; display: grid; place-items: center; border: 1px solid var(--warning); color: var(--warning); font-weight: 900; }
.setup-card h1 { margin: 12px 0 5px; font-size: 26px; letter-spacing: -.05em; }
.setup-card > p { color: var(--muted-strong); font-size: 11px; }
.setup-checklist { margin: 22px 0; border-top: 1px solid var(--line); }
.setup-checklist > div { display: flex; gap: 11px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.setup-checklist span { color: var(--accent); font: 800 9px ui-monospace, monospace; }
.setup-checklist p { margin: 0; color: var(--muted); font-size: 10px; }
.setup-checklist code, code { padding: 2px 4px; background: var(--surface-quiet); color: var(--accent); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .92em; }

@media (max-width: 1120px) {
  .admin-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-layout, .detail-grid, .invoice-layout, .profile-grid { grid-template-columns: minmax(0, 1.1fr) minmax(230px, .8fr); }
}
@media (max-width: 850px) {
  body.sidebar-open { overflow: hidden; }
  .public-nav { display: none; }
  .landing-hero { min-height: auto; grid-template-columns: 1fr; padding-top: 61px; padding-bottom: 56px; }
  .auth-wrap { grid-template-columns: 1fr minmax(320px, .9fr); gap: 28px; }
  .auth-aside h1 { font-size: 43px; }
  .sidebar { transform: translateX(-102%); transition: transform .22s ease; box-shadow: none; }
  .sidebar-open .sidebar { transform: translateX(0); box-shadow: 18px 0 45px rgba(0,0,0,.35); }
  .sidebar-scrim { position: fixed; inset: 0; z-index: 25; display: block; background: rgba(0,0,0,.56); opacity: 0; pointer-events: none; transition: opacity .22s ease; }
  .sidebar-open .sidebar-scrim { opacity: 1; pointer-events: auto; }
  .app-shell { margin-left: 0; }
  .menu-toggle { width: 44px; height: 44px; display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; border: 1px solid var(--line-strong); background: var(--surface-raised); color: var(--text); box-shadow: 2px 2px 0 var(--offset-shadow); }
  .topbar { padding-inline: 20px; }
  .page-main { padding: 28px 20px 55px; }
}
@media (max-width: 650px) {
  .public-header { height: 69px; padding: 0 16px; gap: 10px; }
  .brand { gap: 8px; font-size: 13px; }
  .brand-mark { width: 33px; height: 33px; font-size: 17px; box-shadow: 3px 3px 0 var(--offset-shadow); }
  .brand-mark-image { width: 33px; height: 33px; }
  .brand small { font-size: 7px; }
  .header-actions { gap: 5px; }
  .header-register, .header-login { min-height: 35px; padding-inline: 9px; font-size: 9px; }
  .theme-toggle { min-width: 35px; min-height: 35px; padding: 0 8px; }
  .theme-toggle-label { display: none; }
  .page-width { width: calc(100% - 32px); }
  .landing-hero { padding-top: 44px; padding-bottom: 42px; }
  .hero-copy h1 { font-size: clamp(40px, 12vw, 60px); }
  .hero-lead { margin: 17px 0 22px; font-size: 12px; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .hero-actions .button { width: 100%; }
  .hero-trust { flex-wrap: wrap; gap: 8px; margin-top: 25px; font-size: 8px; }
  .trust-divider { width: 10px; }
  .landing-band { padding: 48px 0; }
  .steps-grid { grid-template-columns: 1fr; }
  .step-card { min-height: 176px; }
  .security-strip { align-items: flex-start; flex-wrap: wrap; padding: 17px; }
  .security-mark { width: 33px; height: 33px; }
  .security-strip > div:nth-child(2) { width: calc(100% - 52px); }
  .security-strip h2 { font-size: 18px; }
  .security-strip .text-link { margin-left: 50px; }
  .landing-disclaimer { padding: 24px 0; }
  .public-footer { align-items: flex-start; flex-direction: column; gap: 5px; padding: 13px 16px; font-size: 9px; }
  .benefits-grid { grid-template-columns: 1fr; gap: 10px; }
  .benefit-card { min-height: 0; padding: 16px; grid-template-columns: 38px minmax(0, 1fr); gap: 7px 12px; }
  .benefit-icon { width: 36px; height: 36px; }
  .benefit-card h3 { font-size: 13px; }
  .benefit-card p { font-size: 10px; line-height: 1.65; }
  .landing-benefits { padding: 48px 0; }
  .landing-support { align-items: flex-start; flex-direction: column; padding: 17px; }
  .ticket-row { align-items: flex-start; flex-direction: column; gap: 9px; }
  .ticket-row-side { width: 100%; align-items: flex-start; justify-items: start; text-align: left; }
  .ticket-admin-summary { align-items: flex-start; flex-direction: column; }
  .ticket-admin-actions { align-items: stretch; flex-direction: column; }
  .ticket-admin-actions form, .ticket-admin-actions .button { width: 100%; }
  .ticket-filter { align-items: stretch; flex-direction: column; }
  .ticket-filter .field, .ticket-filter .button { width: 100%; }
  .topbar { height: 65px; gap: 9px; padding: 0 13px; }
  .topbar-title { min-width: 0; flex: 1 1 auto; overflow: hidden; }
  .topbar-title strong { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
  .topbar-actions { gap: 6px; }
  .wallet-chip { min-height: 31px; gap: 6px; padding: 0 7px; font-size: 8px; }
  .topbar .theme-toggle { min-width: 34px; padding: 0 7px; }
  .topbar-avatar { width: 30px; height: 30px; }
  .menu-toggle { width: 42px; height: 42px; }
  .api-key-reveal { grid-template-columns: 1fr; }
  .api-key-reveal code { justify-self: start; font-size: 15px; }
  .page-main { padding: 23px 14px 42px; }
  .page-heading { align-items: flex-start; flex-direction: column; gap: 13px; margin-bottom: 19px; }
  .page-heading .button { min-height: 37px; }
  .page-heading h1 { font-size: 27px; }
  .page-heading p { font-size: 10px; }
  .metric-grid { grid-template-columns: 1fr; gap: 9px; }
  .admin-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metric-card { min-height: 113px; padding: 14px; }
  .metric-value { font-size: 21px; }
  .metric-email { font-size: 12px; }
  .metric-decoration { font-size: 47px; }
  .content-grid, .form-layout, .detail-grid, .invoice-layout, .profile-grid, .admin-dashboard-grid { grid-template-columns: 1fr; }
  .panel { padding: 15px; }
  .panel-heading { align-items: flex-start; }
  .panel-heading h2 { font-size: 14px; }
  .table-hint { display: none; }
  .data-table { min-width: 640px; }
  .activity-end { gap: 4px; }
  .activity-main strong { max-width: 160px; }
  .form-panel { padding: 16px; }
  .field-row { grid-template-columns: 1fr; }
  .detail-side { position: static; }
  .detail-facts { gap: 12px 8px; }
  .detail-status-head h2 { font-size: 17px; }
  .invoice-total strong { font-size: 22px; }
  .search-form { width: 100%; }
  .search-form input { flex: 1; width: auto; }
  .user-list-heading { flex-direction: column; }
  .user-profile-metrics { grid-template-columns: 1fr 1fr; gap: 8px; }
  .admin-user-actions { grid-template-columns: 1fr; }
  .user-action-row { align-items: flex-start; flex-direction: column; }
  .user-action-row .button { width: 100%; }
  .settings-submit { align-items: flex-start; flex-direction: column; }
  .auth-wrap { width: min(450px, calc(100% - 28px)); min-height: auto; grid-template-columns: 1fr; gap: 18px; padding: 31px 0 45px; }
  .auth-aside { padding: 5px 3px; }
  .auth-aside h1 { margin: 10px 0 8px; font-size: 35px; }
  .auth-aside p { margin: 0; font-size: 11px; }
  .auth-aside-mark { display: none; }
  .auth-card { padding: 22px 18px; box-shadow: 6px 6px 0 var(--offset-shadow); }
  .setup-card { padding: 21px 17px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
