/* sc-v16 (2026-11-28): one layer over the v15 tokens and components. Same brand blue, same typeface; what changes
   is hierarchy and finish: the rail recedes, panels sit forward, numbers are larger and tabular, secondary text is
   readable, controls have real hover, focus and pressed states. Loaded last on every portal page. */

/* ---- tokens (dark) ---- */
:root:not([data-theme="light"]){
  --bg:#0a0d12; --bg-side:#06080b;
  --surface:#10151c; --surface-2:#161c25; --raised:#1b222c;
  --line:rgba(255,255,255,.075); --line-2:rgba(255,255,255,.12); --line-3:rgba(255,255,255,.2);
  --tx:#eef2f6; --tx-2:#b6bfc9; --tx-3:#8b96a3;
  --shadow-1:0 1px 0 rgba(255,255,255,.035) inset,0 1px 2px rgba(0,0,0,.45);
  --v16-ring:0 0 0 2px var(--bg),0 0 0 4px rgba(131,195,236,.55);
}
:root[data-theme="light"]{ --v16-ring:0 0 0 2px var(--bg),0 0 0 4px rgba(26,110,163,.45); }

html{ -webkit-font-smoothing:antialiased; -moz-osx-font-smoothing:grayscale; text-rendering:optimizeLegibility; }
body{ font-feature-settings:"tnum" 0,"ss01" 1; }
::selection{ background:rgba(131,195,236,.28); }
*{ scrollbar-width:thin; scrollbar-color:var(--line-3) transparent; }

/* ---- shell: the rail recedes, the bar floats ---- */
.sidebar{ border-right:1px solid var(--line); }
.sidebar-nav .nav-item{ min-height:34px; border-radius:8px; color:var(--tx-2); font-weight:450;
  transition:background-color .12s ease,color .12s ease; }
.sidebar-nav .nav-item:hover{ background:var(--surface-2); color:var(--tx); }
.sidebar-nav .nav-item.active{ background:var(--accent-soft); color:var(--tx); font-weight:550;
  box-shadow:inset 2px 0 0 var(--accent); }
.sidebar-nav .nav-item.active .nav-icon{ color:var(--accent-tx); }
.sidebar-nav .nav-section{ font-size:11.5px; font-weight:600; letter-spacing:.01em; color:var(--tx-3); }
.v15-topbar{ position:sticky; top:0; z-index:30; background:color-mix(in srgb,var(--bg) 82%,transparent);
  -webkit-backdrop-filter:saturate(140%) blur(10px); backdrop-filter:saturate(140%) blur(10px);
  border-bottom:1px solid var(--line); }
.page-content{ width:100%; max-width:1320px; margin-inline:auto; }

/* ---- page header: a real title ---- */
.page-header .v15-ph__title,.page-header h1{ font-size:28px; line-height:34px; font-weight:650; letter-spacing:-.022em; }
@media (max-width:640px){ .page-header .v15-ph__title,.page-header h1{ font-size:22px; line-height:28px; } }
.page-header .v15-ph__desc,.page-header > p{ font-size:14.5px; line-height:22px; color:var(--tx-2); margin-top:4px; }

/* ---- panels ---- */
.v15-card,.card{ border-color:var(--line); box-shadow:var(--shadow-1); border-radius:12px; }
.v15-card__title{ font-size:15px; line-height:22px; font-weight:620; letter-spacing:-.01em; }
.v15-card__sub{ color:var(--tx-2); }
a.v15-card:hover,a.v15-stat:hover{ border-color:var(--line-2); }

/* ---- vitals: numbers lead ---- */
.v15-stat{ transition:background-color .12s ease; }
a.v15-stat:hover{ background:var(--surface-2); }
.v15-stat__label{ font-size:12.5px; font-weight:550; color:var(--tx-2); }
.v15-stat__value{ font-size:26px; line-height:32px; font-weight:640; letter-spacing:-.02em;
  font-variant-numeric:tabular-nums lining-nums; }
.v15-stat .v15-stat__value[class*="is-"]{ font-size:22px; line-height:32px; }
.v15-stat__aside{ font-family:var(--font); font-variant-numeric:tabular-nums; font-size:12.5px; color:var(--tx-3); }
.v15-stat__meta{ color:var(--tx-2); }
.v15-meter{ height:6px; border-radius:99px; overflow:hidden; }

/* ---- rows and tables ---- */
.v15-list__item,.srv-row{ transition:background-color .12s ease; }
a.v15-list__item:hover,.srv-row:hover{ background:var(--surface-2); }
.v15-list__title{ font-weight:560; }
table th{ font-size:12.5px; font-weight:600; color:var(--tx-2); }
table td{ font-variant-numeric:tabular-nums; }

/* ---- controls ---- */
.btn{ min-height:36px; padding-inline:14px; border-radius:9px; font-size:13.5px; font-weight:560; letter-spacing:-.003em;
  transition:background-color .12s ease,border-color .12s ease,color .12s ease,box-shadow .12s ease,transform .06s ease; }
.btn.btn-sm{ min-height:30px; padding-inline:11px; font-size:13px; border-radius:8px; }
.btn:active{ transform:translateY(.5px); }
.btn:focus-visible,.nav-item:focus-visible,a:focus-visible,button:focus-visible,
input:focus-visible,select:focus-visible,textarea:focus-visible{ outline:none; box-shadow:var(--v16-ring); }
.btn.btn-primary{ font-weight:620; box-shadow:0 1px 0 rgba(255,255,255,.28) inset,0 1px 2px rgba(0,0,0,.35); }
.btn.btn-primary:hover{ background:var(--accent-hi); }
.btn:not(.btn-primary):not(.btn-danger):not(.btn-ghost){ background:var(--surface-2); border-color:var(--line-2); }
.btn:not(.btn-primary):not(.btn-danger):not(.btn-ghost):hover{ background:var(--raised); border-color:var(--line-3); }
.btn.btn-ghost{ color:var(--tx-2); }
.btn.btn-ghost:hover{ background:var(--surface-2); color:var(--tx); }
.btn[disabled],.btn[aria-disabled="true"]{ opacity:.55; box-shadow:none; }

input[type="text"],input[type="email"],input[type="password"],input[type="tel"],input[type="url"],input[type="number"],
input[type="search"],select,textarea,.form-input{ border-radius:9px; border-color:var(--line-2);
  transition:border-color .12s ease,box-shadow .12s ease,background-color .12s ease; }
input[type="text"]:hover,input[type="email"]:hover,input[type="password"]:hover,input[type="tel"]:hover,input[type="url"]:hover,
input[type="number"]:hover,input[type="search"]:hover,select:hover,textarea:hover,.form-input:hover{ border-color:var(--line-3); }
::placeholder{ color:var(--tx-3); opacity:1; }

/* ---- state in words: quiet badges ---- */
.badge{ border-radius:6px; font-weight:560; font-size:12px; letter-spacing:0; padding:2px 7px; }

/* ---- dialogs ---- */
.modal-backdrop{ -webkit-backdrop-filter:blur(3px); backdrop-filter:blur(3px); }
.modal-box{ border-radius:14px; box-shadow:0 24px 64px -16px rgba(0,0,0,.7),0 0 0 1px var(--line-2); }
.modal-title{ font-size:17px; font-weight:640; letter-spacing:-.012em; }

@media (prefers-reduced-motion:reduce){ *{ transition:none !important; } }

/* ---- dashboard: every service on the account (sc-dash-services-v1) ---- */
a.v15-list__row{ transition:background-color .12s ease; }
a.v15-list__row:hover{ background:var(--surface-2); }
.sc-svc-when{ font-family:var(--font); font-size:13px; color:var(--tx-2); font-variant-numeric:tabular-nums; white-space:nowrap; }
.sc-svc-when.is-ending{ color:var(--warn); }
/* prices read as figures, not code */
.sc-subprice{ font-family:var(--font); font-variant-numeric:tabular-nums lining-nums; font-weight:650; letter-spacing:-.02em; }

/* ---- vault restore progress (sc-self-restore-v1) ---- */
.sc-rst{ display:grid; gap:4px; margin:0 0 14px; padding:14px 16px; border-radius:12px; border:1px solid var(--line-2); background:var(--surface-2); }
.sc-rst.is-run{ border-color:var(--accent-line); background:var(--accent-soft); }
.sc-rst.is-ok{ border-color:rgba(63,207,142,.35); }
.sc-rst.is-err{ border-color:rgba(240,106,106,.45); }
.sc-rst__t{ display:flex; align-items:center; gap:10px; font-weight:600; color:var(--tx); }
.sc-rst__d{ color:var(--tx-2); font-size:13.5px; }
.sc-rst__a{ margin-top:6px; }
