:root {
  color-scheme: dark;
  --bg: #16141c; --panel: #292733; --raised: #3f3b4c; --primary: #6d4aff;
  --primary-hover: #8a6eff; --link: #b6a7ff; --ink: #fff; --muted: #c3c1c9;
  --muted-2: #a7a4b1; --line: #494653; --line-soft: #3c3946; --accent: #2cffcc;
  --warn: #ffce82; --danger: #ff8da2; --shade: #211f2a; --field: #1d1b25;
  --shadow: 0 12px 32px rgba(0, 0, 0, .12); --focus: #c8bdff;
}
:root[data-theme="light"] {
  color-scheme: light; --bg: #f5f5f9; --panel: #fff; --raised: #eeedf4; --primary: #6541e6;
  --primary-hover: #4f2fc7; --link: #5034bd; --ink: #22202d; --muted: #585567;
  --muted-2: #676476; --line: #d7d4e0; --line-soft: #e8e6ed; --accent: #087f6c;
  --warn: #82500b; --danger: #a92e4b; --shade: #f0eef8; --field: #fff;
  --shadow: 0 10px 28px rgba(35, 27, 65, .05); --focus: #5835d5;
}
* { box-sizing: border-box; }
html { min-width: 320px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 14px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
a { color: var(--link); text-decoration: none; } a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; } button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.skip-link { position: fixed; top: -100px; left: 12px; z-index: 100; background: var(--panel); padding: 12px; }
.skip-link:focus { top: 12px; }
.icon-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
.small-icon { width: 15px; height: 15px; }
.app-shell { min-height: 100vh; display: grid; grid-template-columns: 236px minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 29px 17px 20px; border-right: 1px solid var(--line-soft); background: var(--shade); }
.brand { display: flex; align-items: center; gap: 11px; color: var(--ink); padding: 0 5px 35px; text-decoration: none; }
.brand:hover { text-decoration: none; }.brand strong { display: block; font-size: 15px; letter-spacing: -.3px; }.brand small { display: block; color: var(--muted-2); font-size: 11px; margin-top: 1px; }
.brand-mark { width: 38px; height: 38px; display: grid; place-items: center; background: var(--primary); border-radius: 11px; color: white; }.brand-mark .icon { width: 22px; height: 22px; }
.sidebar-caption { color: var(--muted-2); font-size: 10px; font-weight: 750; letter-spacing: .11em; padding: 0 12px 12px; }
.nav { display: flex; flex-direction: column; gap: 4px; }.nav-link { display: flex; align-items: center; gap: 12px; min-height: 42px; padding: 0 12px; border-radius: 8px; color: var(--muted); font-weight: 550; white-space: nowrap; }
.nav-link:hover { background: var(--raised); color: var(--ink); text-decoration: none; }.nav-link.is-active { background: var(--raised); color: var(--ink); }.nav-link.is-active .icon { color: var(--link); }
.sidebar-foot { margin-top: auto; padding-top: 20px; }.sidebar-note { display: flex; gap: 10px; align-items: flex-start; padding: 14px 12px; border: 1px solid var(--line-soft); border-radius: 10px; background: var(--panel); }.sidebar-note b,.sidebar-note small { display: block; }.sidebar-note b { font-size: 12px; }.sidebar-note small { font-size: 11px; color: var(--muted-2); }.small-dot { width: 7px; height: 7px; background: var(--accent); border-radius: 50%; margin-top: 5px; flex: 0 0 auto; }.sidebar-version { display: block; color: var(--muted-2); font-size: 10px; letter-spacing: .1em; padding: 16px 4px 0; }
.main-shell { min-width: 0; display: flex; flex-direction: column; }.topbar { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 40px; border-bottom: 1px solid var(--line-soft); }.topbar-title,.topbar-actions { display: flex; align-items: center; gap: 12px; }.topbar-title { color: var(--muted); }.topbar-label { color: var(--muted-2); font-size: 10px; font-weight: 700; letter-spacing: .1em; }.topbar-actions { color: var(--muted); font-size: 12px; }.account-avatar { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--raised); color: var(--ink); font-weight: 700; }.account-name { color: var(--ink); font-weight: 600; }
.icon-button,.button-text { color: var(--muted); background: none; border: 0; }.icon-button { display: inline-flex; align-items: center; gap: 8px; border-radius: 8px; padding: 9px; }.icon-button:hover,.button-text:hover { color: var(--ink); }.button-text { padding: 8px 0; }
.mobile-nav { display: none; }.page-content { width: min(100%, 1430px); padding: 39px 40px 56px; margin: 0 auto; flex: 1; }.footer { display: flex; justify-content: space-between; gap: 12px; padding: 20px 40px; color: var(--muted-2); font-size: 11px; border-top: 1px solid var(--line-soft); }.footer-sep { padding: 0 5px; }
.eyebrow { color: var(--link); text-transform: uppercase; font-size: 10px; letter-spacing: .14em; font-weight: 750; margin: 0 0 8px; }.page-heading { display: flex; flex-wrap: wrap; gap: 18px; align-items: end; justify-content: space-between; margin-bottom: 26px; }.page-heading h1 { font-size: clamp(26px, 3vw, 34px); line-height: 1.15; letter-spacing: -.045em; margin: 0; font-weight: 700; }.page-heading p:last-child { margin: 8px 0 0; color: var(--muted); }.page-heading-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.card { background: var(--panel); border: 1px solid var(--line-soft); border-radius: 13px; box-shadow: var(--shadow); }.card-body { padding: 22px; }.section-head { display: flex; gap: 14px; align-items: start; justify-content: space-between; margin-bottom: 17px; }.section-head h2,.section-head h3 { margin: 0; font-size: 16px; line-height: 1.3; letter-spacing: -.02em; }.section-head p { margin: 5px 0 0; color: var(--muted); font-size: 12px; }.section-link { font-size: 12px; font-weight: 650; white-space: nowrap; }.section-link .icon { vertical-align: middle; width: 15px; height: 15px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; margin-bottom: 16px; }.stat { padding: 20px 21px; min-width: 0; }.stat-top { display: flex; justify-content: space-between; align-items: start; gap: 12px; color: var(--muted); font-size: 12px; }.stat-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; color: var(--link); background: var(--raised); }.stat-value { font-size: 31px; line-height: 1; letter-spacing: -.05em; font-weight: 700; margin-top: 20px; }.stat-caption { font-size: 11px; color: var(--muted-2); margin-top: 10px; }
.content-grid { display: grid; grid-template-columns: minmax(0,1.55fr) minmax(290px,1fr); gap: 16px; margin-bottom: 16px; }.stack { display: grid; gap: 16px; align-content: start; }.section-spaced { margin-bottom: 16px; }.full-width { width: 100%; }.muted { color: var(--muted); }.subtle { color: var(--muted-2); font-size: 12px; }.mono { font-variant-numeric: tabular-nums; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }.nowrap { white-space: nowrap; }
.table-wrap { overflow-x: auto; }table { width: 100%; border-collapse: collapse; text-align: left; }th { font-size: 10px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted-2); font-weight: 700; }th,td { padding: 13px 16px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }tbody tr:last-child td { border-bottom: 0; }td { font-size: 13px; }tbody tr:hover { background: color-mix(in srgb, var(--raised) 32%, transparent); }.table-primary { color: var(--ink); font-weight: 650; }.table-secondary { display: block; color: var(--muted-2); font-size: 11px; margin-top: 2px; }.table-action { white-space: nowrap; font-size: 12px; font-weight: 600; }
.badge { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 999px; padding: 4px 9px; font-size: 11px; font-weight: 650; line-height: 1.2; color: var(--muted); background: var(--shade); }.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }.badge-good { color: var(--accent); }.badge-warn { color: var(--warn); }.badge-danger { color: var(--danger); }.badge-purple { color: var(--link); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid var(--line); border-radius: 8px; padding: 9px 14px; background: var(--raised); color: var(--ink); font-weight: 650; line-height: 1.25; text-decoration: none; }.button:hover { filter: brightness(1.08); text-decoration: none; }.button-primary { background: var(--primary); color: #fff; border-color: var(--primary); }.button-small { font-size: 12px; padding: 7px 11px; }.button:disabled { cursor: not-allowed; opacity: .5; }
.notice { padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; color: var(--muted); background: var(--shade); font-size: 12px; }.notice b,.notice strong { color: var(--ink); }.notice-warning { border-left: 3px solid var(--warn); }.messages { margin-bottom: 18px; display: grid; gap: 8px; }.empty { padding: 30px 20px; text-align: center; color: var(--muted); }.empty strong { display: block; color: var(--ink); font-size: 13px; margin-bottom: 4px; }.empty p { margin: 0; font-size: 12px; }
.meta-list { margin: 0; }.meta-row { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; padding: 11px 0; border-bottom: 1px solid var(--line-soft); }.meta-row:last-child { border-bottom: 0; }.meta-row dt { color: var(--muted); font-size: 12px; }.meta-row dd { margin: 0; text-align: right; font-weight: 600; font-size: 12px; }.divider { border: 0; border-top: 1px solid var(--line-soft); margin: 18px 0; }
label { display: block; font-size: 12px; font-weight: 650; margin: 0 0 6px; }input:not([type="checkbox"]):not([type="radio"]), select, textarea { display: block; width: 100%; min-height: 42px; background: var(--field); border: 1px solid var(--line); border-radius: 8px; padding: 9px 11px; color: var(--ink); }textarea { min-height: 100px; resize: vertical; }.form-field { margin-bottom: 16px; }.form-field .helptext { display: block; color: var(--muted-2); font-size: 11px; margin-top: 5px; }.errorlist { color: var(--danger); list-style: none; padding: 0; margin: 6px 0; font-size: 12px; }.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; padding: 16px; }.filter-bar input { max-width: 320px; }.filter-bar select { width: auto; min-width: 170px; }.filter-bar label { margin: 0; }.pagination { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 15px 16px; color: var(--muted); font-size: 12px; border-top: 1px solid var(--line-soft); }
.record-list { display: grid; gap: 10px; }.record { padding: 15px; border: 1px solid var(--line-soft); border-radius: 10px; background: var(--shade); }.record h3 { font-size: 13px; margin: 0; }.record p { margin: 7px 0 0; color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }.record-top { display: flex; justify-content: space-between; flex-wrap: wrap; align-items: start; gap: 8px; }.token { overflow-wrap: anywhere; font-family: ui-monospace, monospace; font-size: 12px; }.auth-shell { grid-template-columns: 1fr; }.auth-shell .page-content { display: grid; place-items: center; }.auth-shell .topbar { justify-content: flex-end; }.auth-shell .topbar-title { display: none; }.auth-card { width: min(100%, 440px); padding: 30px; }.auth-card .brand { padding-bottom: 24px; }.auth-card h1 { font-size: 25px; line-height: 1.2; margin: 0 0 8px; letter-spacing: -.04em; }.auth-card > p { color: var(--muted); margin: 0 0 24px; }.auth-form { margin-top: 22px; }.auth-form .button { width: 100%; }.auth-meta { font-size: 12px; color: var(--muted-2); margin-top: 18px; }
@media (max-width: 1050px) { .stats-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }.content-grid { grid-template-columns: 1fr; }.topbar,.footer { padding-left: 26px; padding-right: 26px; }.page-content { padding-left: 26px; padding-right: 26px; } }
@media (max-width: 760px) { .app-shell { display: block; }.sidebar { display: none; }.mobile-nav { display: block; overflow-x: auto; border-bottom: 1px solid var(--line-soft); }.mobile-nav .nav { flex-direction: row; padding: 8px 16px; width: max-content; }.mobile-nav .nav-link { min-height: 38px; padding: 0 11px; font-size: 12px; }.mobile-nav .icon { width: 16px; height: 16px; }.topbar { padding: 0 17px; min-height: 60px; }.topbar-label { display: none; }.topbar-title .small-icon { display: none; }.topbar-actions { gap: 8px; }.account-name { display: none; }.theme-button span { display: none; }.page-content { padding: 26px 16px 42px; }.footer { padding: 17px; flex-wrap: wrap; }.stats-grid { gap: 10px; }.stat { padding: 16px; }.stat-value { font-size: 26px; }.card-body { padding: 18px; }.auth-shell .page-content { min-height: calc(100vh - 120px); } }
@media (max-width: 380px) { .stats-grid { grid-template-columns: 1fr; }.footer span:last-child { display: none; } }
.filter-actions { align-self: end; }
.narrow-card { max-width: 620px; }
.search-summary { padding: 0 16px 15px; color: var(--muted); font-size: 12px; }

.otp-qr { display: block; width: 180px; height: 180px; margin: 0 auto 20px; border: 8px solid #fff; border-radius: 8px; background: #fff; }
.content-grid > .card { align-self: start; }
