/* ── bloba — design layer v2 ─────────────────────────────────────────────────
   Composes on top of main.css tokens. Public pages + dashboard shell,
   pixel/Minecraft-driven identity, fetched MC backdrops, acc-token theming.
   Load order matters: this file is the last stylesheet on every page.       */

/* ── Monocraft (MIT) — the pixel face ──────────────────────────────────── */
@font-face {
  font-family: 'Monocraft';
  src: url('/fonts/Monocraft.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ── Token extensions ──────────────────────────────────────────────────── */
:root {
  --pix: 'Monocraft', ui-monospace, monospace;
  --font: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-display: 'Geist', ui-sans-serif, system-ui, sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'Cascadia Mono', monospace;
  --side-w: 252px;
  --side-w-mini: 78px;
  --top-h: 58px;
  --r-lg: 18px;
  --r: 14px;
  --r-sm: 10px;
  --rail-violet: 139, 92, 246;
  --rail-green: 52, 211, 153;
  --rail-amber: 245, 176, 76;
  --rail-red: 255, 92, 122;
  --glass: rgba(10, 12, 20, 0.55);
}
h1, h2, h3, .hero-title, .section-head h2, .cta-inner h2, .plan-price {
  font-family: var(--font-display);
}

/* ── Base remap ────────────────────────────────────────────────────────── */
html {
  background:
    radial-gradient(1100px 520px at 82% -12%, var(--acc-soft), transparent 62%),
    radial-gradient(900px 480px at -8% 108%, rgba(var(--rail-violet), 0.06), transparent 60%),
    var(--bg);
  background-attachment: fixed;
}
body { background: transparent; }

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(1200px 700px at 60% 0%, #000 0%, transparent 78%);
  -webkit-mask-image: radial-gradient(1200px 700px at 60% 0%, #000 0%, transparent 78%);
  opacity: 0.55;
}

::selection { background: var(--acc); color: var(--acc-ink); }
html { scrollbar-color: var(--line-strong) transparent; }
body::-webkit-scrollbar { width: 11px; }
body::-webkit-scrollbar-thumb {
  background: var(--line-strong);
  border: 3px solid transparent;
  background-clip: padding-box;
  border-radius: 8px;
}

h1, h2, h3 { text-wrap: balance; }
a { transition: color var(--dur) var(--ease); }

.grad {
  background: linear-gradient(92deg, var(--acc), var(--acc-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.pix { font-family: var(--pix); }

/* ── Form controls ─────────────────────────────────────────────────────── */
.field { margin-bottom: 14px; }
.input, input[type='text'], input[type='email'], input[type='password'],
input[type='number'], input[type='search'], input[type='url'], select, textarea {
  width: 100%;
  background: var(--field-bg);
  border: 1px solid var(--line);
  color: var(--txt);
  border-radius: var(--r-sm);
  padding: 10px 12px;
  font: inherit;
  font-size: 14px;
  outline: none;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background var(--dur) var(--ease);
}
.input:hover, input:hover, select:hover, textarea:hover { border-color: var(--line-strong); }
.input:focus, input:focus, select:focus, textarea:focus {
  border-color: var(--acc-line);
  box-shadow: var(--ring);
  background: var(--panel);
}
select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 18px) 55%, calc(100% - 13px) 55%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
}
label { color: var(--muted); font-size: 12.5px; }

/* ── Buttons ───────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 11px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--txt);
  font: 500 13.5px/1 var(--font);
  padding: 10px 16px;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
    border-color var(--dur) var(--ease), background var(--dur) var(--ease), filter var(--dur) var(--ease);
}
.btn:hover { border-color: var(--line-strong); background: var(--panel-2); transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(0.985); }
.btn[disabled] { opacity: 0.55; pointer-events: none; }

.btn-primary {
  background: linear-gradient(180deg, var(--acc), var(--acc-grad-end));
  border-color: transparent;
  color: var(--acc-ink);
  font-weight: 600;
  box-shadow: 0 10px 26px -12px var(--acc-glow), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}
.btn-primary:hover {
  background: linear-gradient(180deg, var(--acc), var(--acc-grad-end));
  filter: brightness(1.07);
  box-shadow: 0 14px 30px -12px var(--acc-glow), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}
.btn-ghost { background: transparent; }
.btn-ghost:hover { background: var(--acc-soft); border-color: var(--acc-line); }
.btn-danger { border-color: rgba(var(--rail-red), 0.4); color: var(--bad); }
.btn-danger:hover { background: rgba(var(--rail-red), 0.12); border-color: var(--bad); }
.btn-discord { background: var(--discord); border-color: transparent; color: #fff; }
.btn-discord:hover { background: #6d78f5; }
.btn-lg { padding: 13px 22px; font-size: 14.5px; border-radius: 13px; }
.btn-sm { padding: 7px 12px; font-size: 12.5px; border-radius: 9px; }
.btn-xs { padding: 5px 8px; font-size: 12px; border-radius: 8px; }
.btn-block { width: 100%; }

/* ── Chips / tags / pills ──────────────────────────────────────────────── */
.chip, .p-tag, .pill, .plan-badge {
  font-family: var(--pix);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  border-radius: 7px;
  padding: 4px 9px;
  border: 1px solid var(--line);
  color: var(--muted);
  background: var(--field-bg);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.chip-acc { border-color: var(--acc-line); color: var(--acc); background: var(--acc-soft); }
.pill { border-radius: var(--radius-pill); font-size: 11px; padding: 6px 12px; }

.p-tag.ok { color: var(--good); border-color: rgba(74, 222, 128, 0.38); background: rgba(74, 222, 128, 0.1); }
.p-tag.bad { color: var(--bad); border-color: rgba(255, 92, 122, 0.4); background: rgba(255, 92, 122, 0.1); }
.p-tag.warn { color: var(--warn); border-color: rgba(255, 180, 84, 0.4); background: rgba(255, 180, 84, 0.1); }
.p-tag.run, .p-tag.on { color: var(--acc); border-color: var(--acc-line); background: var(--acc-soft); }

/* ── Cards / panels ────────────────────────────────────────────────────── */
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255, 255, 255, 0.03);
  position: relative;
}
.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line-soft);
}
.card-head h2, .card-head h3 {
  margin: 0;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.card-head-actions { display: flex; gap: 8px; align-items: center; }
.card > .list, .card > .table { border-radius: 0 0 var(--r-lg) var(--r-lg); }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.grid-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }

/* ── Dashboard shell ───────────────────────────────────────────────────── */
.page-dash { --side-bg: #0b0c16; }
body.page-dash { background-attachment: fixed; }

.dash-shell {
  display: grid;
  grid-template-columns: var(--side-w) minmax(0, 1fr);
  min-height: 100vh;
  transition: grid-template-columns var(--dur-slow) var(--ease);
}
body.side-mini .dash-shell { grid-template-columns: var(--side-w-mini) minmax(0, 1fr); }

.dash-side {
  background: var(--side-bg);
  border-right: 1px solid var(--line);
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  z-index: 40;
}
.dash-side::-webkit-scrollbar { width: 6px; }
.dash-side::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 6px; }
.dash-side::-webkit-scrollbar-thumb:hover { background: var(--acc-line); }

/* brand */
.side-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 8px 14px;
}
.brand-link {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  text-decoration: none;
  color: var(--txt);
}
@media (max-width: 900px) {
  .dash-shell,
  body.side-mini .dash-shell { grid-template-columns: minmax(0, 1fr); }
}
.logo-text, .brand-name {
  position: relative;
  font-family: var(--pix);
  font-size: 21px;
  letter-spacing: 0.02em;
  line-height: 1;
  color: var(--txt);
}
.brand-name { font-size: 20px; }

/* the wordmark: a slow sheen travelling across the letters, the "o" an orb */
@media (prefers-reduced-motion: no-preference) {
  @supports ((-webkit-background-clip: text) or (background-clip: text)) {
    .logo-text, .brand-name {
      background-image: linear-gradient(
        100deg,
        var(--txt) 0%, var(--txt) 40%,
        #ffffff 50%,
        var(--txt) 60%, var(--txt) 100%
      );
      background-size: 260% 100%;
      background-position: 130% 0;
      -webkit-background-clip: text;
      background-clip: text;
      color: transparent;
      -webkit-text-fill-color: transparent;
      animation: logo-sheen 7s linear infinite;
    }
    .logo-text b, .brand-name b {
      background-image: linear-gradient(180deg, var(--acc), var(--acc-2, var(--acc)));
      background-size: 100% 100%;
      -webkit-background-clip: text;
      background-clip: text;
      color: transparent;
      -webkit-text-fill-color: transparent;
      filter: drop-shadow(0 0 7px var(--acc-glow));
      animation: logo-orb 2.8s ease-in-out infinite;
    }
  }
}
@keyframes logo-sheen {
  0% { background-position: 130% 0; }
  55%, 100% { background-position: -30% 0; }
}
@keyframes logo-orb {
  0%, 100% { transform: translateY(0) scale(1); filter: drop-shadow(0 0 7px var(--acc-glow)); }
  50% { transform: translateY(-0.6px) scale(1.06); filter: drop-shadow(0 0 12px var(--acc-glow)); }
}
.logo-dot {
  width: 8px; height: 8px;
  border-radius: 3px;
  background: linear-gradient(135deg, var(--acc), var(--acc-2, var(--acc)));
  box-shadow: 0 0 12px var(--acc-glow);
}
@media (prefers-reduced-motion: no-preference) {
  .logo-dot { animation: blob-pulse 3.2s var(--ease) infinite; }
}
@keyframes blob-pulse {
  0%, 100% { transform: rotate(0deg) scale(1); box-shadow: 0 0 10px var(--acc-glow); }
  50% { transform: rotate(45deg) scale(1.12); box-shadow: 0 0 18px var(--acc-glow); }
}
@keyframes blob-blink {
  0%, 92%, 100% { opacity: 1; }
  94% { opacity: 0.25; }
  96% { opacity: 1; }
}

.side-collapse {
  margin-left: auto;
  width: 30px; height: 30px;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: all var(--dur) var(--ease);
}
.side-collapse:hover { color: var(--acc); border-color: var(--acc-line); background: var(--acc-soft); }

.side-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--field-bg);
  text-decoration: none;
  color: var(--txt);
  margin-bottom: 10px;
  min-width: 0;
}
.side-user:hover { border-color: var(--acc-line); background: var(--acc-soft); }
.side-avatar { position: relative; flex: none; }
.side-avatar img { border-radius: 10px; display: block; }
.presence {
  position: absolute; right: -2px; bottom: -2px;
  width: 10px; height: 10px;
  border-radius: 3px;
  background: var(--good);
  border: 2px solid var(--side-bg);
}
.side-user-meta { display: flex; flex-direction: column; min-width: 0; }
.side-user-name { font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-user-handle { font-size: 11px; color: var(--muted); font-family: var(--mono); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* nav */
.side-nav { display: flex; flex-direction: column; gap: 2px; }
.side-label {
  font-family: var(--pix);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--muted);
  opacity: 0.75;
  padding: 14px 10px 6px;
  white-space: nowrap;
}
.side-nav a {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 8px 10px;
  border-radius: 11px;
  color: var(--muted);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  border: 1px solid transparent;
  transition: all var(--dur) var(--ease);
  white-space: nowrap;
  position: relative;
}
.side-nav a .ico { width: 17px; height: 17px; flex: none; opacity: 0.9; }
.side-nav a:hover { color: var(--txt); background: var(--field-bg); }
.side-nav a.active {
  color: var(--txt);
  background: var(--acc-soft);
  border-color: var(--acc-line);
  box-shadow: inset 3px 0 0 var(--acc);
}
.side-nav a.active .ico { color: var(--acc); opacity: 1; }

.side-foot {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.side-mini {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  color: var(--muted);
  text-decoration: none;
  font-size: 12.5px;
  white-space: nowrap;
}
.side-mini .ico { width: 15px; height: 15px; }
.side-mini:hover { color: var(--txt); background: var(--field-bg); }
.side-mini.side-danger:hover { color: var(--bad); background: rgba(var(--rail-red), 0.1); }

/* collapsed (mini) rail */
body.side-mini .logo-text,
body.side-mini .side-user-meta,
body.side-mini .side-label,
body.side-mini .side-nav a span.nav-txt,
body.side-mini .side-mini span.nav-txt { display: none; }
body.side-mini .side-brand { flex-direction: column; gap: 9px; padding: 8px 0 12px; }
body.side-mini .side-collapse { display: grid; margin-left: 0; }
body.side-mini .side-collapse .ico { transform: scaleX(-1); }
body.side-mini .side-user { justify-content: center; padding: 8px 4px; }
body.side-mini .side-nav a { justify-content: center; padding: 10px 8px; }
body.side-mini .side-nav a:hover { transform: none; }
body.side-mini .side-mini { justify-content: center; padding: 10px 8px; }
body.side-mini .side-label {
  display: block;
  text-align: center;
  font-size: 0;
  padding: 8px 0 4px;
  border-top: 1px dashed var(--line-soft);
  margin: 6px 10px 2px;
}

/* main column */
.dash-main { min-width: 0; display: flex; flex-direction: column; }

.dash-top {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 14px;
  height: var(--top-h);
  padding: 0 22px;
  background: var(--topbar-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.dash-toggle { display: none; }
.dash-title {
  margin: 0;
  font-family: var(--pix);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.top-search {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 200px;
  max-width: 380px;
  flex: 1;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--field-bg);
  color: var(--muted);
  font-size: 13px;
  cursor: pointer;
  transition: all var(--dur) var(--ease);
}
.top-search:hover { border-color: var(--acc-line); color: var(--txt); background: var(--panel-2); }
.top-search .ico { width: 15px; height: 15px; }
.kbd {
  margin-left: auto;
  font-family: var(--pix);
  font-size: 10px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  border-radius: 6px;
  padding: 2px 6px;
  background: var(--panel);
}
.top-actions { display: flex; align-items: center; gap: 8px; }
.ico-btn {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--field-bg);
  color: var(--muted);
  cursor: pointer;
  transition: all var(--dur) var(--ease);
  position: relative;
}
.ico-btn:hover { color: var(--acc); border-color: var(--acc-line); background: var(--acc-soft); }
.ico-btn .ico { width: 17px; height: 17px; }
.ico-btn.on { color: var(--acc); border-color: var(--acc-line); background: var(--acc-soft); }
.ico-btn .sfx-mute { display: none; }
.ico-btn.muted .sfx-mute { display: block; }
.ico-btn.muted .sfx-on { display: none; }
.ico-btn.muted { color: var(--muted); background: var(--field-bg); border-color: var(--line); }

.top-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 10px 5px 5px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--field-bg);
  text-decoration: none;
  color: var(--txt);
}
.top-user:hover { border-color: var(--acc-line); background: var(--acc-soft); }
.top-user .avatar { border-radius: 9px; display: block; }
.dash-user-meta { display: flex; flex-direction: column; line-height: 1.25; }
.dash-user-name { font-size: 12.5px; font-weight: 600; }
.dash-user-role { font-size: 10.5px; color: var(--muted); font-family: var(--pix); letter-spacing: 0.06em; }

.dash-content {
  padding: 22px 24px 46px;
  max-width: 1500px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* ── Hero banner (dashboard pages) ─────────────────────────────────────── */
.dash-hero {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  min-height: 178px;
  display: flex;
  align-items: center;
  box-shadow: var(--shadow);
  isolation: isolate;
}
.dash-hero .hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
}
.dash-hero .hero-bg { background-image: var(--mine); filter: brightness(0.92) saturate(1.04); }
.dash-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(7, 8, 16, 0.9) 0%, rgba(7, 8, 16, 0.62) 46%, rgba(7, 8, 16, 0.28) 100%),
    linear-gradient(180deg, rgba(7, 8, 16, 0.25), rgba(7, 8, 16, 0.66));
}
.hero-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  width: 100%;
  padding: 24px 26px;
  flex-wrap: wrap;
}
.hero-copy { min-width: 260px; }
.hero-eyebrow { display: flex; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.eb {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--pix);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: #dfe3f5;
  background: rgba(12, 13, 26, 0.62);
  border: 1px solid rgba(160, 170, 220, 0.28);
  border-radius: 999px;
  padding: 5px 11px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.eb .ico { width: 13px; height: 13px; color: var(--acc); }
.hero-title {
  margin: 0 0 8px;
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 700;
  color: #f4f6ff;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.55);
}
.hero-title .name {
  background: linear-gradient(92deg, var(--acc), var(--acc-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 2px 14px rgba(0, 0, 0, 0.4));
}
.hero-sub {
  margin: 0;
  color: rgba(224, 228, 245, 0.82);
  font-size: 13.5px;
  max-width: 560px;
  line-height: 1.55;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.5);
}
.hero-sub b { color: #fff; font-family: var(--pix); font-weight: 400; }
.hero-ctas { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

/* quick pills under hero */
.quick-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.qp {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  color: var(--txt);
  text-decoration: none;
  font-size: 12.5px;
  font-weight: 500;
  transition: all var(--dur) var(--ease);
}
.qp .ico { width: 15px; height: 15px; color: var(--acc); }
.qp .ico-go { width: 13px; height: 13px; color: var(--muted); }
.qp:hover {
  border-color: var(--acc-line);
  background: var(--acc-soft);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

/* ── Stat rail ─────────────────────────────────────────────────────────── */
.stat-rail {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
  gap: 14px;
}
.stat {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 16px 16px 20px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.stat:hover { transform: translateY(-2px); border-color: var(--line-strong); }
.stat::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: rgb(var(--tone, var(--rail-violet)));
  box-shadow: 0 0 18px rgba(var(--tone, var(--rail-violet)), 0.55);
}
.stat[data-tone='violet'] { --tone: var(--rail-violet); }
.stat[data-tone='green'] { --tone: var(--rail-green); }
.stat[data-tone='amber'] { --tone: var(--rail-amber); }
.stat[data-tone='red'] { --tone: var(--rail-red); }
.stat-ico {
  flex: none;
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: rgba(var(--tone, var(--rail-violet)), 0.14);
  border: 1px solid rgba(var(--tone, var(--rail-violet)), 0.3);
  color: rgb(var(--tone, var(--rail-violet)));
}
.stat-ico .ico { width: 19px; height: 19px; }
.stat-meta { display: flex; flex-direction: column; min-width: 0; }
.stat-v {
  font-family: var(--pix);
  font-size: 25px;
  line-height: 1.1;
  color: var(--txt);
}
.stat-k { font-size: 12px; color: var(--muted); margin-top: 3px; }
.stat-sub { font-size: 11px; color: var(--muted); opacity: 0.85; margin-top: 2px; }
.stat-sub a { color: var(--acc); }

/* legacy stat cards (untouched pages) */
.stat-card { padding: 16px 18px; display: flex; flex-direction: column; gap: 6px; }
.stat-card .stat-v { font-size: 26px; font-family: var(--pix); }
.stat-card .stat-v.ok { color: var(--good); }
.stat-card .stat-v.bad { color: var(--bad); }
.stat-card .stat-v.warn { color: var(--warn); }
.stat-card .stat-k {
  font-family: var(--pix);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ── Panels: chart + donut ─────────────────────────────────────────────── */
.panel-2 { display: grid; grid-template-columns: 1.9fr 1fr; gap: 18px; }
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px 10px;
}
.panel-head h2 { margin: 0; font-size: 14.5px; font-weight: 600; }
.panel-head .sub { font-size: 11.5px; color: var(--muted); margin-top: 3px; }
.seg {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: var(--field-bg);
}
.seg button,
.seg a {
  border: 0;
  background: transparent;
  color: var(--muted);
  font: 500 12px/1 var(--pix);
  padding: 8px 13px;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--dur) var(--ease);
}
.seg button.active,
.seg a.active {
  background: linear-gradient(180deg, var(--acc), var(--acc-grad-end));
  color: var(--acc-ink);
}
.seg button:hover:not(.active) { color: var(--txt); background: var(--panel-2); }

.chart-box { padding: 4px 14px 14px; }
.chart-plot { width: 100%; height: 226px; display: block; }
.chart-empty {
  height: 226px;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 12.5px;
  border: 1px dashed var(--line);
  border-radius: var(--r);
  margin: 4px 0 0;
  font-family: var(--pix);
  letter-spacing: 0.04em;
}
.tp-bar { fill: var(--acc); opacity: 0.85; }
.tp-bar:hover { opacity: 1; }
.tp-line { stroke: var(--line-soft); stroke-dasharray: 3 5; }
.tp-side { fill: var(--muted); font-size: 10px; font-family: var(--pix); }

.donut-wrap {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 8px 20px 22px;
  flex-wrap: wrap;
}
.donut {
  --seg: conic-gradient(var(--acc) 0 100%);
  flex: none;
  width: 148px; height: 148px;
  border-radius: 50%;
  background: var(--seg);
  position: relative;
  display: grid;
  place-items: center;
}
.donut::before {
  content: '';
  position: absolute;
  inset: 17px;
  border-radius: 50%;
  background: var(--panel);
  border: 1px solid var(--line-soft);
}
.donut-center { position: relative; text-align: center; }
.donut-center .n {
  font-family: var(--pix);
  font-size: 26px;
  display: block;
  line-height: 1.1;
}
.donut-center .t { font-size: 11px; color: var(--muted); }
.legend { display: flex; flex-direction: column; gap: 9px; min-width: 180px; flex: 1; }
.legend-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  color: var(--muted);
}
.legend-row b { margin-left: auto; color: var(--txt); font-family: var(--pix); font-weight: 400; }
.legend-dot { width: 9px; height: 9px; border-radius: 3px; flex: none; }
.lg-1 { background: rgb(var(--rail-violet)); }
.lg-2 { background: rgb(var(--rail-green)); }
.lg-3 { background: rgb(var(--rail-amber)); }
.lg-4 { background: rgb(var(--rail-red)); }

/* ── Toolbar (filters + sort) ──────────────────────────────────────────── */
.toolbar {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.fpills { display: flex; gap: 8px; flex-wrap: wrap; flex: 1; }
.fp {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--dur) var(--ease);
}
.fp .ico { width: 13px; height: 13px; }
.fp:hover { color: var(--txt); border-color: var(--line-strong); }
.fp.active {
  background: linear-gradient(180deg, var(--acc), var(--acc-grad-end));
  border-color: transparent;
  color: var(--acc-ink);
  font-weight: 600;
  box-shadow: 0 8px 20px -10px var(--acc-glow);
}
.fp b { font-family: var(--pix); font-weight: 400; }
.toolbar .sort-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
}
.toolbar .sort-label .ico { width: 14px; height: 14px; }

/* ── Table ─────────────────────────────────────────────────────────────── */
.table-scroll { overflow-x: auto; border-radius: 0 0 var(--r-lg) var(--r-lg); }
.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th {
  text-align: left;
  font-family: var(--pix);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 400;
  padding: 11px 14px;
  background: var(--panel-2);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 1;
}
.table td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: middle;
}
.table tbody tr { transition: background var(--dur) var(--ease); }
.table tbody tr:hover { background: var(--row); }
.table tbody tr:last-child td { border-bottom: 0; }
.secret {
  font-family: var(--mono);
  color: var(--muted);
  letter-spacing: 0.08em;
}
.reveal { margin-left: 4px; }
.reveal .ico { width: 14px; height: 14px; }

/* ── Lists ─────────────────────────────────────────────────────────────── */
.list { list-style: none; margin: 0; padding: 6px; display: flex; flex-direction: column; gap: 2px; }
.list-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--r-sm);
  border: 1px solid transparent;
  transition: all var(--dur) var(--ease);
}
.list-row:hover { background: var(--field-bg); border-color: var(--line-soft); }
.list-row .mono { color: var(--txt); }
.list-row .muted { margin-left: auto; }

/* ── Empty state ───────────────────────────────────────────────────────── */
.empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 52px 20px;
  text-align: center;
  border: 1px dashed var(--line);
  border-radius: var(--r);
  margin: 16px;
}
.empty-ico {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--field-bg);
  color: var(--muted);
}
.empty-ico .ico { width: 24px; height: 24px; }
.empty b { font-size: 14px; }
.empty .muted { font-size: 12.5px; }

/* ── Alerts / toasts ───────────────────────────────────────────────────── */
.alert {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: var(--field-bg);
  padding: 12px 14px;
  font-size: 13px;
  color: var(--txt);
}
.alert .ico { flex: none; margin-top: 1px; }
.alert-warn { border-color: rgba(255, 180, 84, 0.4); background: rgba(255, 180, 84, 0.08); }
.alert-warn .ico { color: var(--warn); }

.toast-wrap { position: fixed; right: 18px; bottom: 74px; z-index: 90; display: flex; flex-direction: column; gap: 10px; }
.toast {
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 3px solid var(--acc);
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 13px;
  box-shadow: var(--shadow);
  animation: toast-in var(--dur-slow) var(--ease);
  max-width: 360px;
}
.toast.bad { border-left-color: var(--bad); }
@keyframes toast-in {
  from { opacity: 0; transform: translateY(10px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

/* ── Command palette ───────────────────────────────────────────────────── */
.pal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 12vh 18px 18px;
  background: rgba(5, 6, 12, 0.62);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.pal.open { display: flex; }
.pal-box {
  width: 100%;
  max-width: 560px;
  background: var(--panel);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  animation: pal-in var(--dur-slow) var(--ease);
}
@keyframes pal-in {
  from { opacity: 0; transform: translateY(-8px) scale(0.99); }
  to { opacity: 1; transform: none; }
}
.pal-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}
.pal-head .ico { color: var(--muted); }
.pal-input {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
  font-size: 15px;
}
.pal-list { max-height: 44vh; overflow-y: auto; padding: 8px; }
.pal-group {
  font-family: var(--pix);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 10px 10px 6px;
  opacity: 0.8;
}
.pal-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--txt);
  font-size: 13.5px;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
}
.pal-item .ico { width: 16px; height: 16px; color: var(--muted); }
.pal-item .hint { margin-left: auto; font-size: 11px; color: var(--muted); font-family: var(--mono); }
.pal-item.sel, .pal-item:hover {
  background: var(--acc-soft);
  border-color: var(--acc-line);
}
.pal-item.sel .ico, .pal-item:hover .ico { color: var(--acc); }
.pal-foot {
  border-top: 1px solid var(--line);
  padding: 9px 14px;
  font-size: 11px;
  color: var(--muted);
  display: flex;
  gap: 14px;
}
.pal-foot .kbd { margin-left: 0; }

/* ── Public: header / footer ───────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--topbar-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 22px;
  height: 62px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-name { font-family: var(--pix); font-size: 20px; letter-spacing: 0.02em; }
.site-nav { display: flex; gap: 4px; margin-left: 8px; }
.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 10px;
  transition: all var(--dur) var(--ease);
}
.site-nav a:hover { color: var(--txt); background: var(--field-bg); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.header-user {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 5px 12px 5px 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--txt);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
}
.header-user:hover { border-color: var(--acc-line); background: var(--acc-soft); }
.header-avatar { position: relative; }
.header-avatar img { border-radius: 999px; display: block; }
.header-avatar .presence { border-radius: 999px; }
.header-signout {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--muted);
}
.header-signout:hover { color: var(--bad); border-color: rgba(var(--rail-red), 0.4); background: rgba(var(--rail-red), 0.08); }

.site-footer {
  margin-top: 60px;
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 28px;
  padding: 44px 0 30px;
}
.footer-brand p { margin: 12px 0 0; max-width: 320px; font-size: 13px; }
.footer-col { display: flex; flex-direction: column; gap: 9px; }
.footer-col h4 {
  font-family: var(--pix);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 4px;
  font-weight: 400;
}
.footer-col a { color: var(--muted); text-decoration: none; font-size: 13px; }
.footer-col a:hover { color: var(--acc); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 0 26px;
  border-top: 1px solid var(--line-soft);
  font-size: 12px;
}

/* ── Public: landing ───────────────────────────────────────────────────── */
.page-landing .hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  isolation: isolate;
}
.page-landing .hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -2;
  background: var(--mine) center/cover no-repeat;
  transform: scale(1.02);
}
.page-landing .hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(6, 7, 14, 0.72), rgba(6, 7, 14, 0.55) 40%, rgba(6, 7, 14, 0.92) 96%, var(--bg)),
    linear-gradient(90deg, rgba(6, 7, 14, 0.7), transparent 62%);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 44px;
  align-items: center;
  padding: 84px 0 92px;
}
.hero-copy .pill {
  color: #e6e8f8;
  background: rgba(10, 11, 22, 0.6);
  border-color: rgba(170, 180, 230, 0.3);
  backdrop-filter: blur(6px);
}
.hero-copy h1 {
  font-size: clamp(30px, 4.4vw, 50px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 18px 0 16px;
  color: #f6f7ff;
  text-shadow: 0 3px 26px rgba(0, 0, 0, 0.6);
}
.hero-sub {
  color: rgba(224, 228, 246, 0.85);
  font-size: 15.5px;
  line-height: 1.65;
  max-width: 560px;
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.55);
}
.hero-cta { display: flex; gap: 12px; margin: 26px 0 24px; flex-wrap: wrap; }
.hero-points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.hero-points li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(220, 224, 242, 0.85);
  font-size: 13.5px;
}
.hero-points .ico { color: var(--acc); width: 16px; height: 16px; }

.hero-panel { justify-self: end; width: 100%; max-width: 430px; }
.panel-window {
  background: rgba(10, 11, 20, 0.82);
  border: 1px solid rgba(160, 170, 220, 0.22);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  overflow: hidden;
}
.panel-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 11px 14px;
  border-bottom: 1px solid rgba(160, 170, 220, 0.16);
  font-size: 11px;
  color: rgba(200, 206, 232, 0.75);
}
.panel-bar i { width: 9px; height: 9px; border-radius: 3px; background: rgba(255, 255, 255, 0.14); }
.panel-bar i:first-child { background: var(--rail-red); opacity: 0.8; }
.panel-bar i:nth-child(2) { background: var(--rail-amber); opacity: 0.8; }
.panel-bar i:nth-child(3) { background: var(--rail-green); opacity: 0.8; }
.panel-bar .mono { margin-left: 8px; font-size: 10.5px; letter-spacing: 0.04em; }
.panel-body { padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.p-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  color: rgba(226, 230, 248, 0.9);
  padding: 9px 11px;
  border: 1px solid rgba(160, 170, 220, 0.14);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
}
.p-row b { color: #fff; font-weight: 600; }
.p-row .mono { color: rgba(210, 216, 240, 0.9); }
.p-dot { width: 8px; height: 8px; border-radius: 3px; background: rgba(255, 255, 255, 0.25); flex: none; }
.p-dot.ok { background: var(--good); box-shadow: 0 0 10px var(--good); }
.p-dot.warn { background: var(--warn); box-shadow: 0 0 10px var(--warn); }
.p-row .p-tag { margin-left: auto; }
.p-progress {
  height: 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.p-progress span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--acc), var(--acc-2));
  border-radius: 4px;
  animation: pipe-run 4.6s var(--ease) infinite;
}
@keyframes pipe-run {
  0% { width: 12%; }
  55% { width: 74%; }
  100% { width: 96%; }
}
.p-caption {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 10px;
  color: rgba(200, 206, 232, 0.72);
  letter-spacing: 0.04em;
  flex-wrap: wrap;
}
.p-caption .ico { width: 12px; height: 12px; opacity: 0.7; }
.pipe-sep { opacity: 0.6; }

/* ticker */
.ticker {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-soft);
  overflow: hidden;
  padding: 13px 0;
  position: relative;
}
.ticker-track {
  display: flex;
  gap: 42px;
  white-space: nowrap;
  width: max-content;
  animation: ticker-run 34s linear infinite;
}
.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--pix);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-transform: uppercase;
}
.ticker-item .ico { width: 14px; height: 14px; color: var(--acc); }
@keyframes ticker-run {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* stats band */
.stats-band { border-bottom: 1px solid var(--line); background: var(--bg-soft); }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  padding: 0;
}
.stats-grid .stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 30px 26px;
  background: transparent;
  border: 0;
  border-left: 1px solid var(--line-soft);
  border-radius: 0;
  box-shadow: none;
}
.stats-grid .stat:first-child { border-left: 0; }
.stats-grid .stat:hover { transform: none; }
.stats-grid .stat::before { display: none; }
.stat-num {
  font-family: var(--pix);
  font-size: 30px;
  color: var(--txt);
  line-height: 1;
}
.stat-label {
  font-size: 12px;
  color: var(--muted);
  font-family: var(--pix);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* sections */
.section { padding: 78px 0; }
.section-alt { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 680px; margin-bottom: 38px; }
.section-head h2 { font-size: clamp(24px, 3vw, 34px); letter-spacing: -0.015em; margin: 0 0 10px; }
.section-head .muted { font-size: 14.5px; line-height: 1.6; }
.container.narrow { max-width: 780px; }

/* features */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}
.feature {
  padding: 22px;
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.feature:hover {
  transform: translateY(-3px);
  border-color: var(--acc-line);
  box-shadow: 0 22px 44px -24px var(--acc-glow);
}
.feature-icon {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 13px;
  background: var(--acc-soft);
  border: 1px solid var(--acc-line);
  color: var(--acc);
  margin-bottom: 15px;
}
.feature-icon .ico { width: 21px; height: 21px; }
.feature h3 { margin: 0 0 8px; font-size: 15.5px; }
.feature p { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.62; }

/* pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
  align-items: stretch;
}
.plan { padding: 24px; display: flex; flex-direction: column; position: relative; }
.plan-hot {
  border-color: var(--acc-line);
  box-shadow: 0 26px 60px -30px var(--acc-glow), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.plan-badge {
  position: absolute;
  top: -11px; right: 18px;
  background: linear-gradient(180deg, var(--acc), var(--acc-grad-end));
  color: var(--acc-ink);
  border: 0;
  font-weight: 600;
}
.plan h3 { margin: 4px 0 12px; font-size: 17px; }
.plan-price {
  font-family: var(--pix);
  font-size: 32px;
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 18px;
}
.plan-price span { font-size: 12px; color: var(--muted); font-family: var(--font); }
.plan ul { list-style: none; margin: 0 0 20px; padding: 0; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.plan ul li {
  font-size: 13px;
  color: var(--muted);
  padding-left: 22px;
  position: relative;
}
.plan ul li::before {
  content: '';
  position: absolute;
  left: 0; top: 4px;
  width: 12px; height: 12px;
  border-radius: 4px;
  border: 1px solid var(--acc-line);
  background:
    linear-gradient(135deg, transparent 42%, var(--acc) 42%, var(--acc) 58%, transparent 58%),
    var(--acc-soft);
}
.plan-cta { margin-top: auto; }

/* faq */
.faq { display: flex; flex-direction: column; gap: 10px; }
.faq details {
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--panel);
  overflow: hidden;
}
.faq summary {
  cursor: pointer;
  padding: 16px 18px;
  font-weight: 600;
  font-size: 14px;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  font-family: var(--pix);
  color: var(--acc);
  font-size: 16px;
  transition: transform var(--dur) var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details[open] { border-color: var(--acc-line); }
.faq p { margin: 0; padding: 0 18px 16px; color: var(--muted); font-size: 13.5px; line-height: 1.66; }

/* cta band */
.cta-band {
  border-top: 1px solid var(--line);
  background:
    radial-gradient(600px 300px at 50% 0%, var(--acc-soft), transparent 70%),
    var(--bg-soft);
}
.cta-inner { padding: 74px 0; text-align: center; }
.cta-inner h2 { font-size: clamp(24px, 3vw, 34px); margin: 0 0 10px; }
.cta-inner .btn { margin-top: 22px; }

/* ── Login ─────────────────────────────────────────────────────────────── */
.login-main { padding: 66px 0 90px; }
.narrow-login { max-width: 440px; }
.login-card {
  overflow: hidden;
  padding: 0 26px 26px;
  position: relative;
}
.login-banner {
  height: 118px;
  margin: 0 -26px 20px;
  background: var(--mine) center 30%/cover no-repeat;
  position: relative;
}
.login-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 8, 15, 0.25), var(--panel) 100%);
}
.login-card h1 { margin: 0 0 6px; font-size: 22px; }
.login-card > .muted { margin: 0 0 20px; font-size: 13.5px; }
.login-logo {
  position: relative;
  z-index: 1;
  margin-top: -30px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.legal-note { margin-top: 18px; display: flex; gap: 7px; justify-content: center; align-items: center; flex-wrap: wrap; }
.legal-note .ico { width: 13px; height: 13px; }

/* ── Legal / error ─────────────────────────────────────────────────────── */
.page-legal main { padding: 54px 0 80px; }
.page-legal .card { padding: 34px 38px; }
.page-legal h1 { margin: 0 0 18px; font-size: 26px; }
.page-legal h2 { margin: 26px 0 10px; font-size: 16px; }
.page-legal p, .page-legal li { color: var(--muted); font-size: 13.5px; line-height: 1.7; }
.page-legal code {
  font-family: var(--mono);
  font-size: 12px;
  background: var(--field-bg);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1px 6px;
}
.error-main { display: grid; place-items: center; min-height: calc(100vh - 200px); padding: 60px 20px; }
.error-card { padding: 40px 36px; text-align: center; max-width: 460px; }
.error-code { font-family: var(--pix); font-size: 52px; color: var(--acc); }
.error-actions { margin-top: 22px; display: flex; gap: 10px; justify-content: center; }
.error-main h1 { margin: 12px 0 8px; font-size: 20px; }
.error-main .muted { font-size: 13.5px; }

/* ── Motion layer hooks (motion.js) ────────────────────────────────────── */
.rv { opacity: 0; transform: translateY(16px); transition: opacity 0.55s var(--ease), transform 0.55s var(--ease); }
.rv-in { opacity: 1; transform: none; }

.bob-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2.5px;
  z-index: 120;
  transform-origin: 0 50%;
  transform: scaleX(0);
  background: linear-gradient(90deg, var(--acc), var(--acc-2), var(--acc-3));
  box-shadow: 0 0 12px var(--acc-glow);
  pointer-events: none;
}
.bob-top {
  position: fixed;
  right: 18px; bottom: 18px;
  z-index: 85;
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--muted);
  cursor: pointer;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: all var(--dur-slow) var(--ease);
  box-shadow: var(--shadow-sm);
}
.bob-top.on { opacity: 1; transform: none; pointer-events: auto; }
.bob-top:hover { color: var(--acc); border-color: var(--acc-line); }

.bob-ripple {
  position: fixed;
  z-index: 119;
  width: 10px; height: 10px;
  border-radius: 3px;
  border: 1.5px solid var(--acc);
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0) rotate(45deg);
  animation: ripple-out 0.5s var(--ease) forwards;
  opacity: 0.8;
}
@keyframes ripple-out {
  to { transform: translate(-50%, -50%) scale(4.4) rotate(45deg); opacity: 0; }
}

[data-tilt] { will-change: transform; transition: transform 0.22s var(--ease); }

/* ── Responsive ────────────────────────────────────────────────────────── */
@media (max-width: 1180px) {
  .panel-2 { grid-template-columns: 1fr; }
  .hero-inner { grid-template-columns: 1fr; padding: 64px 0 72px; }
  .hero-panel { justify-self: start; }
}
@media (max-width: 1024px) {
  .dash-shell { grid-template-columns: 1fr; }
  .dash-side {
    position: fixed;
    left: 0; top: 0;
    width: var(--side-w);
    transform: translateX(-104%);
    transition: transform var(--dur-slow) var(--ease);
    box-shadow: var(--shadow-lg);
  }
  body.side-open .dash-side { transform: none; }
  .dash-toggle {
    display: grid;
    place-items: center;
    width: 36px; height: 36px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--field-bg);
    color: var(--muted);
    cursor: pointer;
  }
  .dash-toggle span {
    display: block;
    width: 15px; height: 2px;
    background: currentColor;
    border-radius: 1px;
    box-shadow: 0 5px 0 currentColor;
    margin-bottom: 5px;
  }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .dash-content { padding: 16px 14px 40px; }
  .dash-top { padding: 0 14px; gap: 10px; }
  .top-search .kbd { display: none; }
  .dash-user-meta { display: none; }
  .top-user { padding: 4px; border: 0; background: transparent; }
  .hero-body { padding: 20px 18px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid .stat:nth-child(odd) { border-left: 0; }
  .grid-2 { grid-template-columns: 1fr; }
  .page-landing .hero::after {
    background: linear-gradient(180deg, rgba(6, 7, 14, 0.78), rgba(6, 7, 14, 0.6) 40%, rgba(6, 7, 14, 0.94) 96%, var(--bg));
  }
  .hero-copy h1 { font-size: 30px; }
  .section { padding: 56px 0; }
  .page-legal .card { padding: 24px 20px; }
  .site-nav { display: none; }
  .site-header { position: sticky; }
  .nav-toggle { display: grid; }
}
@media (max-width: 560px) {
  .stat-rail { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
  .stats-grid .stat { border-left: 0; }
  .donut-wrap { justify-content: center; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* ── Widget recode: sidebar widgets ────────────────────────────────────── */
@keyframes side-in {
  from { opacity: 0; transform: translateX(-10px); }
  to { opacity: 1; transform: none; }
}
@keyframes fade-up {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
@keyframes pop-in {
  0% { opacity: 0; transform: scale(0.86); }
  60% { transform: scale(1.03); }
  100% { opacity: 1; transform: scale(1); }
}

.side-user {
  position: relative;
  overflow: hidden;
  animation: side-in 0.5s var(--ease) both 0.05s;
}
.side-avatar img {
  border-radius: 12px;
  transition: box-shadow var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease);
}
.side-user:hover .side-avatar img {
  box-shadow: 0 0 0 1px var(--acc-line), 0 0 22px -6px var(--acc-glow);
  transform: scale(1.04);
}
.side-user::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 34%, rgba(167, 139, 250, 0.09) 50%, transparent 66%);
  transform: translateX(-110%);
  transition: transform 0.9s var(--ease);
  pointer-events: none;
}
.side-user:hover::after { transform: translateX(110%); }

/* nav items: icon tiles + staggered entrance + sliding active rail */
.side-nav a { animation: side-in 0.45s var(--ease) both; }
.side-nav a:nth-of-type(1) { animation-delay: 0.08s; }
.side-nav a:nth-of-type(2) { animation-delay: 0.12s; }
.side-nav a:nth-of-type(3) { animation-delay: 0.16s; }
.side-nav a:nth-of-type(4) { animation-delay: 0.20s; }
.side-nav a:nth-of-type(5) { animation-delay: 0.24s; }
.side-nav a:nth-of-type(6) { animation-delay: 0.28s; }
.side-nav a:nth-of-type(7) { animation-delay: 0.32s; }
.side-nav a:nth-of-type(8) { animation-delay: 0.36s; }
.side-nav a:nth-of-type(9) { animation-delay: 0.40s; }
.side-nav a:nth-of-type(10) { animation-delay: 0.44s; }
.side-nav a:nth-of-type(11) { animation-delay: 0.48s; }
.side-nav a:nth-of-type(12) { animation-delay: 0.52s; }
.side-nav a .ico {
  width: 30px;
  height: 30px;
  padding: 7px;
  border-radius: 10px;
  background: var(--field-bg);
  border: 1px solid var(--line);
  color: var(--muted);
  transition: all var(--dur-slow) var(--ease);
}
.side-nav a:hover { transform: translateX(2px); }
.side-nav a:hover .ico {
  color: var(--acc);
  border-color: var(--acc-line);
  background: var(--acc-soft);
  transform: translateY(-1px) scale(1.05);
}
.side-nav a.active .ico {
  background: linear-gradient(180deg, var(--acc), var(--acc-grad-end));
  border-color: transparent;
  color: var(--acc-ink);
  box-shadow: 0 8px 18px -8px var(--acc-glow);
  transform: none;
}

.side-mini { animation: side-in 0.5s var(--ease) both 0.55s; }

/* ── Widget recode: entrance choreography ──────────────────────────────── */
.dash-hero .hero-eyebrow { animation: fade-up 0.55s var(--ease) both 0.12s; }
.dash-hero .hero-title { animation: fade-up 0.55s var(--ease) both 0.2s; }
.dash-hero .hero-sub { animation: fade-up 0.55s var(--ease) both 0.28s; }
.dash-hero .hero-ctas { animation: fade-up 0.55s var(--ease) both 0.36s; }

.quick-row .qp { animation: fade-up 0.45s var(--ease) both; }
.quick-row .qp:nth-child(1) { animation-delay: 0.1s; }
.quick-row .qp:nth-child(2) { animation-delay: 0.15s; }
.quick-row .qp:nth-child(3) { animation-delay: 0.2s; }
.quick-row .qp:nth-child(4) { animation-delay: 0.25s; }
.quick-row .qp:nth-child(5) { animation-delay: 0.3s; }
.quick-row .qp:nth-child(6) { animation-delay: 0.35s; }
.qp .ico-go { transition: transform var(--dur-slow) var(--ease); }
.qp:hover .ico-go { transform: translateX(3px); color: var(--acc); }

.stat-rail .stat { animation: fade-up 0.5s var(--ease) both; }
.stat-rail .stat:nth-child(1) { animation-delay: 0.18s; }
.stat-rail .stat:nth-child(2) { animation-delay: 0.24s; }
.stat-rail .stat:nth-child(3) { animation-delay: 0.3s; }
.stat-rail .stat:nth-child(4) { animation-delay: 0.36s; }
.grid-stats .stat-card { animation: fade-up 0.5s var(--ease) both; }
.grid-stats .stat-card:nth-child(1) { animation-delay: 0.1s; }
.grid-stats .stat-card:nth-child(2) { animation-delay: 0.16s; }
.grid-stats .stat-card:nth-child(3) { animation-delay: 0.22s; }
.grid-stats .stat-card:nth-child(4) { animation-delay: 0.28s; }

/* stat card shine + icon pop */
.stat::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 38%, rgba(255, 255, 255, 0.028) 50%, transparent 62%);
  transform: translateX(-130%);
  transition: transform 0.75s var(--ease);
  pointer-events: none;
}
.stat:hover::after { transform: translateX(130%); }
.stat-ico { transition: transform var(--dur-slow) var(--ease), box-shadow var(--dur-slow) var(--ease); }
.stat:hover .stat-ico {
  transform: translateY(-2px) rotate(-4deg) scale(1.07);
  box-shadow: 0 10px 22px -10px rgba(var(--tone, var(--rail-violet)), 0.6);
}

.panel-2 .card { animation: fade-up 0.55s var(--ease) both 0.42s; }
.panel-2 .card:nth-child(2) { animation-delay: 0.5s; }

/* chart bars grow (first paint only — re-renders stay static) */
.tp-bar { transform-box: fill-box; transform-origin: 50% 100%; }
.chart-plot.tp-in .tp-bar { animation: bar-grow 0.65s var(--ease) both; }
.chart-plot.tp-done .tp-bar { animation: none; }
@keyframes bar-grow {
  from { transform: scaleY(0); opacity: 0; }
}

/* donut + legend */
.donut { animation: donut-in 0.85s var(--ease) both 0.5s; }
@keyframes donut-in {
  from { opacity: 0; transform: rotate(-70deg) scale(0.82); }
  to { opacity: 1; transform: none; }
}
.legend-row { animation: fade-up 0.45s var(--ease) both 0.62s; }
.legend-row:nth-child(2) { animation-delay: 0.68s; }
.legend-row:nth-child(3) { animation-delay: 0.74s; }
.legend-row:nth-child(4) { animation-delay: 0.8s; }

/* table rows stagger */
.table tbody tr { animation: row-in 0.45s var(--ease) both; }
@keyframes row-in {
  from { opacity: 0; transform: translateY(7px); }
}
.table tbody tr:nth-child(1) { animation-delay: 0.06s; }
.table tbody tr:nth-child(2) { animation-delay: 0.11s; }
.table tbody tr:nth-child(3) { animation-delay: 0.16s; }
.table tbody tr:nth-child(4) { animation-delay: 0.21s; }
.table tbody tr:nth-child(5) { animation-delay: 0.26s; }
.table tbody tr:nth-child(6) { animation-delay: 0.31s; }
.table tbody tr:nth-child(7) { animation-delay: 0.36s; }
.table tbody tr:nth-child(8) { animation-delay: 0.41s; }
.table tbody tr:nth-child(n + 9) { animation-delay: 0.45s; }

/* feature + plan hover lifts */
.feature-icon { transition: transform var(--dur-slow) var(--ease), box-shadow var(--dur-slow) var(--ease); }
.feature:hover .feature-icon {
  transform: rotate(-6deg) scale(1.08);
  box-shadow: 0 12px 26px -12px var(--acc-glow);
}
.plan { transition: transform var(--dur-slow) var(--ease), border-color var(--dur-slow) var(--ease), box-shadow var(--dur-slow) var(--ease); }
.plan:hover { transform: translateY(-4px); border-color: var(--acc-line); }

/* landing hero choreography */
.page-landing .hero-copy > * { animation: fade-up 0.6s var(--ease) both; }
.page-landing .hero-copy > .pill { animation-delay: 0.1s; }
.page-landing .hero-copy > h1 { animation-delay: 0.18s; }
.page-landing .hero-copy > .hero-sub { animation-delay: 0.26s; }
.page-landing .hero-copy > .hero-cta { animation-delay: 0.34s; }
.page-landing .hero-copy > .hero-points { animation-delay: 0.42s; }
.panel-window { animation: window-in 0.85s var(--ease) both 0.28s; }
@keyframes window-in {
  from { opacity: 0; transform: translateY(20px) rotate(1.4deg) scale(0.98); }
  to { opacity: 1; transform: none; }
}
.panel-body > * { animation: fade-up 0.5s var(--ease) both; }
.panel-body > *:nth-child(1) { animation-delay: 0.4s; }
.panel-body > *:nth-child(2) { animation-delay: 0.47s; }
.panel-body > *:nth-child(3) { animation-delay: 0.54s; }
.panel-body > *:nth-child(4) { animation-delay: 0.61s; }
.panel-body > *:nth-child(5) { animation-delay: 0.68s; }
.panel-body > *:nth-child(6) { animation-delay: 0.75s; }
.panel-body > *:nth-child(7) { animation-delay: 0.82s; }

/* ── Landing showcase (mock dashboard widgets) ─────────────────────────── */
.showcase {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 18px;
  align-items: stretch;
}
.mock {
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.mock-top {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line-soft);
  background: var(--panel-2);
}
.mock-top i { width: 8px; height: 8px; border-radius: 3px; background: var(--line-strong); }
.mock-top i:first-child { background: rgba(var(--rail-red), 0.75); }
.mock-top i:nth-child(2) { background: rgba(var(--rail-amber), 0.75); }
.mock-top i:nth-child(3) { background: rgba(var(--rail-green), 0.75); }
.mock-top span {
  margin-left: 8px;
  font-family: var(--pix);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.mock-body { padding: 14px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.mock-hero {
  position: relative;
  height: 86px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--mine) center/cover no-repeat;
  overflow: hidden;
}
.mock-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(7, 8, 16, 0.82), rgba(7, 8, 16, 0.3));
}
.mock-hero b {
  position: absolute;
  left: 14px; bottom: 12px;
  z-index: 1;
  color: #f2f4ff;
  font-size: 14px;
  letter-spacing: 0.01em;
}
.mock-hero b i { color: var(--acc); font-style: normal; }
.mock-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mock-stat {
  position: relative;
  height: 58px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--field-bg);
  overflow: hidden;
  animation: fade-up 0.5s var(--ease) both;
}
.mock-stat::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: rgb(var(--tone, var(--rail-violet)));
}
.mock-stat:nth-child(1) { --tone: var(--rail-violet); animation-delay: 0.2s; }
.mock-stat:nth-child(2) { --tone: var(--rail-green); animation-delay: 0.28s; }
.mock-stat:nth-child(3) { --tone: var(--rail-amber); animation-delay: 0.36s; }
.mock-stat::after {
  content: '';
  position: absolute;
  left: 14px; top: 14px;
  width: 44%;
  height: 8px;
  border-radius: 4px;
  background: var(--line-strong);
  box-shadow: 0 16px 0 -2px var(--line-soft);
}
.mock-chart {
  display: flex;
  align-items: flex-end;
  gap: 7px;
  height: 116px;
  padding: 12px 12px 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--field-bg);
}
.mock-chart i {
  flex: 1;
  border-radius: 5px 5px 2px 2px;
  background: linear-gradient(180deg, var(--acc), var(--acc-2));
  opacity: 0.85;
  transform-origin: bottom;
  animation: bar-rise 1.1s var(--ease) both;
}
.mock-chart i:nth-child(1) { animation-delay: 0.25s; }
.mock-chart i:nth-child(2) { animation-delay: 0.33s; }
.mock-chart i:nth-child(3) { animation-delay: 0.41s; }
.mock-chart i:nth-child(4) { animation-delay: 0.49s; }
.mock-chart i:nth-child(5) { animation-delay: 0.57s; }
.mock-chart i:nth-child(6) { animation-delay: 0.65s; }
.mock-chart i:nth-child(7) { animation-delay: 0.73s; }
@keyframes bar-rise {
  from { transform: scaleY(0); }
}
.mock-vault { display: flex; flex-direction: column; gap: 8px; }
.mock-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--field-bg);
  font-size: 12.5px;
  color: var(--muted);
  animation: row-in 0.45s var(--ease) both;
}
.mock-row:nth-child(1) { animation-delay: 0.25s; }
.mock-row:nth-child(2) { animation-delay: 0.33s; }
.mock-row:nth-child(3) { animation-delay: 0.41s; }
.mock-row:nth-child(4) { animation-delay: 0.49s; }
.mock-row:nth-child(5) { animation-delay: 0.57s; }
.mock-dot { width: 8px; height: 8px; border-radius: 3px; background: var(--good); box-shadow: 0 0 10px var(--good); flex: none; }
.mock-dot.amber { background: var(--warn); box-shadow: 0 0 10px var(--warn); }
.mock-dot.muted { background: var(--line-strong); box-shadow: none; }
.mock-row .grow { flex: 1; color: var(--txt); }
.mock-row .masked {
  font-family: var(--mono);
  letter-spacing: 0.1em;
  color: var(--muted);
  font-size: 11px;
}
.mock-row .p-tag { font-size: 9.5px; padding: 3px 7px; }

/* palette items stagger in */
.pal-item { animation: fade-up 0.3s var(--ease) both; }

/* landing stats band: shine-safe + staggered */
.stats-grid .stat { position: relative; overflow: hidden; animation: fade-up 0.5s var(--ease) both; }
.stats-grid .stat:nth-child(1) { animation-delay: 0.1s; }
.stats-grid .stat:nth-child(2) { animation-delay: 0.18s; }
.stats-grid .stat:nth-child(3) { animation-delay: 0.26s; }
.stats-grid .stat:nth-child(4) { animation-delay: 0.34s; }

/* FAQ cards stagger */
.faq details { animation: fade-up 0.45s var(--ease) both; }
.faq details:nth-child(1) { animation-delay: 0.08s; }
.faq details:nth-child(2) { animation-delay: 0.14s; }
.faq details:nth-child(3) { animation-delay: 0.2s; }
.faq details:nth-child(4) { animation-delay: 0.26s; }
.faq details:nth-child(5) { animation-delay: 0.32s; }
.faq details:nth-child(6) { animation-delay: 0.38s; }

/* ── Account cards (vault grid) ────────────────────────────────────────── */
.vault-toolbar { margin-bottom: 16px; }
.vault-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 16px;
}
.acard {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--panel);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: fade-up 0.5s var(--ease) both;
  transition: border-color var(--dur-slow) var(--ease), box-shadow var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease);
}
.acard:hover { border-color: var(--line-strong); box-shadow: 0 18px 40px -28px var(--acc-glow); }
.acard.open { border-color: var(--acc-line); }

.acard-head { display: flex; gap: 14px; padding: 18px 18px 14px; }
.aavatar {
  width: 74px; height: 74px;
  border-radius: 16px;
  background: linear-gradient(180deg, #221c36, #15112a);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  overflow: hidden;
  flex: none;
}
.aavatar img { width: 100%; height: 100%; object-fit: cover; image-rendering: pixelated; display: block; }
.aavatar .ph { font-family: var(--pix); font-size: 24px; color: var(--acc); }
.acard-id { flex: 1; min-width: 0; }
.acard-name { display: flex; align-items: center; gap: 8px; padding-right: 34px; }
.acard-name .nm {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.01em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.acard-name .st {
  width: 17px; height: 17px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  flex: none;
}
.acard-name .st .ico { width: 10px; height: 10px; }
.acard-name .st.ok { background: rgba(var(--rail-green), 0.14); color: rgb(var(--rail-green)); }
.acard-name .st.bad { background: rgba(var(--rail-red), 0.14); color: rgb(var(--rail-red)); }
.acard-sub { color: var(--muted); font-size: 12.5px; margin-top: 5px; }

.achips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; align-items: center; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: var(--field-bg);
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}
.chip .ico { width: 13px; height: 13px; }
.chip.ok { border-color: rgba(var(--rail-green), 0.3); color: rgb(var(--rail-green)); background: rgba(var(--rail-green), 0.07); }
.chip.bad { border-color: rgba(var(--rail-red), 0.34); color: rgb(var(--rail-red)); background: rgba(var(--rail-red), 0.08); }
.chip.aexp {
  position: absolute;
  top: 18px;
  right: 16px;
  cursor: pointer;
  padding: 6px 9px;
  color: var(--muted);
  transition: all var(--dur) var(--ease);
}
.chip.aexp .ico { width: 12px; height: 12px; transition: transform var(--dur-slow) var(--ease); }
.chip.aexp:hover { color: var(--acc); border-color: var(--acc-line); background: var(--acc-soft); }
.acard.open .chip.aexp .ico { transform: rotate(90deg); }

.astrip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--field-bg);
}
.astrip .cell { padding: 13px 16px; display: grid; gap: 4px; min-width: 0; }
.astrip .cell + .cell { border-left: 1px solid var(--line-soft); }
.astrip .k { font-size: 11px; color: var(--muted); }
.astrip .v {
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 600;
  color: var(--acc);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.astrip .v.plain { color: var(--txt); }
.astrip .v.mono { font-size: 13px; }

.acapes { padding: 14px 18px 6px; }
.acapes .k { font-size: 12px; color: var(--muted); margin-bottom: 9px; }
.chip.cape { color: var(--txt); border-color: var(--line-strong); }
.chip.cape .ico { color: var(--acc); }

.acard-detail {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  padding-top: 0;
  transition: max-height 0.5s var(--ease), opacity 0.35s var(--ease), padding 0.4s var(--ease);
}
.acard.open .acard-detail { max-height: 780px; opacity: 1; padding-top: 12px; }
.afield {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 18px 10px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--field-bg);
  transition: border-color var(--dur) var(--ease);
}
.afield:hover { border-color: var(--line-strong); }
.afield .aico {
  width: 34px; height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--muted);
  flex: none;
}
.afield .aico .ico { width: 16px; height: 16px; }
.afield .ameta { min-width: 0; flex: 1; display: grid; gap: 3px; }
.afield .ak { font-size: 11px; color: var(--muted); }
.afield .av {
  font-size: 13px;
  color: var(--txt);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.afield .av.mono { font-family: var(--mono); }
.afield .aact { display: flex; gap: 6px; flex: none; }
.afield .aact .btn { padding: 6px 8px; }

.acard-actions {
  display: flex;
  gap: 10px;
  padding: 14px 18px 18px;
  border-top: 1px solid var(--line);
  margin-top: auto;
}
.acard-actions .btn { flex: 1; justify-content: center; }
.acard-actions .btn-icon { flex: none; width: 42px; padding: 0; }

@media (max-width: 680px) {
  .vault-grid { grid-template-columns: 1fr; }
  .astrip .cell { padding: 11px 12px; }
  .astrip .v { font-size: 13.5px; }
}

/* ── Reduced motion ────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
  }
  .rv { opacity: 1; transform: none; }
  .ticker-track { animation: none; }
  .bob-progress { transition: none; }
}

/* ── Typography trim: two faces + one signature ────────────────────────── */
/* Monocraft stays on the logo, section labels, avatar placeholders and the
   quick-actions label only. Everything else runs on Geist / Geist Mono. */
.dash-title,
.hero-title,
.hero-sub b,
.stat-v,
.stat-card .stat-v,
.stats-grid .stat-num,
.stat-k,
.stat-sub,
.eb,
.hero-eyebrow,
.dash-user-name,
.seg button,
.fp,
.fp b,
.tick-item,
.ticker-item,
.ticker b,
.mock-top span,
.pal-group,
.error-code,
.plan-price {
  font-family: var(--font);
}
.stat-v, .stat-card .stat-v, .stats-grid .stat-num, .error-code, .plan-price {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.tp-side, .legend-row b, .fp b, .kbd, .dash-user-role, .mock-top span,
.stat-card .stat-k, .pal-item .hint, .u-role, .mono, code {
  font-family: var(--mono);
}
.side-label { font-family: var(--pix); }
.logo-text, .brand-name, .aavatar .ph { font-family: var(--pix); }

/* ── Sidebar recode v3 ─────────────────────────────────────────────────── */
.dash-side {
  background:
    radial-gradient(90% 22% at 50% 0%, var(--acc-soft), transparent 70%),
    linear-gradient(180deg, var(--side-bg) 0%, var(--bg) 140%);
  padding: 16px 13px;
  gap: 6px;
}
.dash-side > * { flex: none; }

/* brand row */
.side-brand { padding: 6px 6px 14px; }
.logo-dot { width: 8px; height: 8px; border-radius: 3px; }
.side-collapse { border-radius: 10px; }

/* user card — circular avatar, ring, glow */
.side-user {
  position: relative;
  overflow: hidden;
  gap: 11px;
  padding: 11px 12px;
  border-radius: 14px;
  border: 1px solid var(--line-soft);
  margin-bottom: 12px;
  background:
    radial-gradient(130% 150% at 0% 0%, var(--acc-soft), transparent 52%),
    var(--field-bg);
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease),
    background var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.side-user:hover {
  border-color: var(--acc-line);
  background:
    radial-gradient(130% 150% at 0% 0%, var(--acc-soft), transparent 60%),
    var(--field-bg);
  transform: translateY(-1px);
  box-shadow: 0 16px 34px -24px var(--acc-glow);
}
.side-user:active { transform: scale(0.985); }
.side-avatar {
  width: 42px;
  height: 42px;
  padding: 2px;
  border-radius: 50%;
  background: linear-gradient(140deg, var(--acc), var(--acc-2));
  box-shadow: 0 6px 20px -10px var(--acc-glow);
}
.side-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease);
}
.side-user:hover .side-avatar img { box-shadow: none; transform: scale(1.05); }
.presence {
  right: -1px;
  bottom: -1px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 2.5px solid var(--side-bg);
  box-shadow: 0 0 10px rgba(var(--rail-green), 0.55);
}
.side-user-name { font-size: 13.5px; font-weight: 650; }
.side-user-handle { font-size: 11px; }
.u-role {
  position: absolute;
  top: 10px;
  right: 10px;
  margin: 0;
  flex: none;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--acc);
  border: 1px solid var(--acc-line);
  background: var(--acc-soft);
  padding: 2.5px 7px;
  border-radius: 999px;
}
.side-user-meta { padding-right: 46px; }
body.side-mini .u-role { display: none; }
body.side-mini .side-user-meta { padding-right: 0; }

/* nav — bare icons, clean rows, accent rail on active */
.side-nav { gap: 3px; }
.side-nav a {
  position: relative;
  padding: 8px 10px;
  border-radius: 11px;
  border: 1px solid transparent;
  font-size: 13px;
  font-weight: 500;
  transition: transform var(--dur) var(--ease), background var(--dur) var(--ease),
    border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.side-nav a::before {
  content: '';
  position: absolute;
  left: 0;
  top: 24%;
  bottom: 24%;
  width: 3px;
  border-radius: 3px;
  background: var(--acc);
  opacity: 0;
  transform: scaleY(0.4);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
  box-shadow: 0 0 12px var(--acc-glow);
}
.side-nav a .ico {
  width: 18px;
  height: 18px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
}
.side-nav a:hover { transform: translateX(2px); }
.side-nav a:hover .ico { color: var(--acc); background: transparent; border: 0; transform: none; }
.side-nav a.active {
  background: linear-gradient(90deg, var(--acc-soft), transparent 160%);
  border-color: var(--acc-line);
  color: var(--txt);
}
.side-nav a.active::before { opacity: 1; transform: none; }
.side-nav a.active .ico {
  background: transparent;
  border: 0;
  color: var(--acc);
  box-shadow: none;
}
.side-nav a:active { transform: translateX(2px) scale(0.985); }
.side-label { padding-left: 10px; margin-top: 10px; }

/* side foot polish */
.side-foot { gap: 3px; }
.side-foot .side-mini {
  border-radius: 10px;
  padding: 8px 10px;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.side-foot .side-mini:hover { background: var(--field-bg); }

/* mini mode tuning */
body.side-mini .dash-side { padding: 14px 9px; }
body.side-mini .side-user { padding: 7px; border-radius: 12px; }
body.side-mini .side-avatar { width: 34px; height: 34px; }
body.side-mini .side-nav a { padding: 10px 0; }
body.side-mini .side-nav a::before { display: none; }

/* ── Theme scenes (backgrounds per theme) ──────────────────────────────── */
:root, html[data-theme='end'] {
  --scene: url('/img/scene-end.jpg');
  --mine: url('/img/mine-end.jpg');
}
html[data-theme='ocean'] { --scene: url('/img/scene-ocean.jpg'); --mine: url('/img/mine-ocean.jpg'); }
html[data-theme='nether'] { --scene: url('/img/scene-nether.jpg'); --mine: url('/img/mine-nether.jpg'); }
html[data-theme='crimson'] { --scene: url('/img/scene-crimson.jpg'); --mine: url('/img/mine-crimson.jpg'); }
html[data-theme='overworld'] { --scene: url('/img/scene-overworld.jpg'); --mine: url('/img/mine-overworld.jpg'); }
html[data-theme='deep-dark'] { --scene: url('/img/scene-deep-dark.jpg'); --mine: url('/img/mine-deep-dark.jpg'); }

body.page-dash {
  background:
    linear-gradient(180deg, rgba(8, 9, 18, 0.9), rgba(8, 9, 18, 0.96)),
    var(--scene) center/cover no-repeat;
}

/* ── Sidebar v4 — animated ring + final polish ─────────────────────────── */
.side-avatar { background: none; box-shadow: none; }
.side-avatar::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 210deg, var(--acc), var(--acc-2), var(--acc-3, var(--acc)), var(--acc));
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px));
  animation: ring-spin 7s linear infinite;
}
.side-avatar img { position: relative; z-index: 1; }
.side-user:hover .side-avatar::before { animation-duration: 2.2s; }
@keyframes ring-spin { to { transform: rotate(360deg); } }

.side-label { display: flex; align-items: center; gap: 10px; }
.side-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--line-soft), transparent);
}
.side-nav a.active { box-shadow: 0 12px 28px -20px var(--acc-glow); }

/* ── Row stagger + hover for lists/tables ──────────────────────────────── */
.list-row { animation: fade-up 0.42s var(--ease) both; }
.card .table tbody tr { animation: fade-up 0.42s var(--ease) both; }
.list-row:nth-child(1), .card .table tbody tr:nth-child(1) { animation-delay: 0.04s; }
.list-row:nth-child(2), .card .table tbody tr:nth-child(2) { animation-delay: 0.08s; }
.list-row:nth-child(3), .card .table tbody tr:nth-child(3) { animation-delay: 0.12s; }
.list-row:nth-child(4), .card .table tbody tr:nth-child(4) { animation-delay: 0.16s; }
.list-row:nth-child(5), .card .table tbody tr:nth-child(5) { animation-delay: 0.2s; }
.list-row:nth-child(6), .card .table tbody tr:nth-child(6) { animation-delay: 0.24s; }
.list-row:nth-child(7), .card .table tbody tr:nth-child(7) { animation-delay: 0.28s; }
.list-row:nth-child(8), .card .table tbody tr:nth-child(8) { animation-delay: 0.32s; }
.card .table tbody tr:nth-child(n + 9) { animation-delay: 0.36s; }
.list-row { transition: background var(--dur) var(--ease); }
.list-row:hover { background: var(--field-bg); }

@media (prefers-reduced-motion: reduce) {
  .side-avatar::before { animation: none; }
  .list-row, .card .table tbody tr { animation: none; }
}

/* header/site brand spacing after font swap */
.logo-text { font-size: 20px; }

/* ── Landing mock: interactive sidebar inside .panel-window ────────────── */
.panel-cols { display: flex; align-items: stretch; }
.panel-cols .panel-body { flex: 1; min-width: 0; }
.panel-side {
  width: 148px;
  flex: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 10px;
  border-right: 1px solid rgba(160, 170, 220, 0.14);
}
.ps-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 10px;
  border-radius: 9px;
  font-size: 11.5px;
  color: rgba(200, 206, 232, 0.72);
  cursor: pointer;
  user-select: none;
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.ps-item i { font-style: normal; }
.ps-item .ico { width: 14px; height: 14px; opacity: 0.75; transition: color var(--dur) var(--ease), opacity var(--dur) var(--ease); }
.ps-item:hover { color: #fff; background: rgba(255, 255, 255, 0.045); }
.ps-item:active { background: rgba(255, 255, 255, 0.08); }
.ps-item.active { color: #fff; background: rgba(255, 255, 255, 0.06); }
.ps-item.active .ico { opacity: 1; color: var(--acc); }
.ps-item.active::before {
  content: '';
  position: absolute;
  left: -10px;
  top: 22%;
  bottom: 22%;
  width: 4px;
  border-radius: 0 3px 3px 0;
  background: linear-gradient(180deg, var(--acc), var(--acc-2));
  box-shadow: 0 0 12px var(--acc);
}
@media (max-width: 560px) {
  .panel-side { display: none; }
}

/* ── Modals (native dialog) ────────────────────────────────────────────── */
dialog.modal {
  border: 0;
  padding: 0;
  background: transparent;
  width: min(460px, calc(100vw - 32px));
  max-width: min(460px, calc(100vw - 32px));
  margin: auto;
}
dialog.modal-wide { width: min(640px, calc(100vw - 32px)); max-width: min(640px, calc(100vw - 32px)); }
dialog.modal::backdrop {
  background: rgba(5, 6, 13, 0.68);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}
.modal-card {
  background: linear-gradient(180deg, var(--panel), var(--panel-2));
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  color: var(--txt);
  animation: modal-pop 0.26s var(--ease) both;
}
@keyframes modal-pop {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to { opacity: 1; transform: none; }
}
.modal-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line-soft);
}
.modal-head h3 { margin: 0; font-size: 15px; letter-spacing: -0.01em; }
.modal-head .p-tag { margin-left: 4px; }
.modal-x {
  margin-left: auto;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  border: 1px solid var(--line-soft);
  background: none;
  color: var(--muted);
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.modal-x:hover { color: var(--txt); border-color: var(--acc-line); background: var(--acc-soft); }
.modal-body { padding: 16px; }
.modal-body .pay-layout { gap: 1.4rem; }
.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 12px 16px;
  border-top: 1px solid var(--line-soft);
}

.buy-summary {
  display: grid;
  gap: 8px;
  padding: 12px 14px;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, 0.02);
}
.buy-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 14px; }
.buy-row + .buy-row { border-top: 1px dashed var(--line-soft); padding-top: 8px; }
.buy-row .muted.small { font-size: 12.5px; letter-spacing: 0.02em; }
.buy-features:empty { display: none; }
.buy-features { margin: 10px 0 0; }

/* ── Checkout modal copy & hierarchy ───────────────────────────────────── */
.modal-head h3 { font-size: 15.5px; line-height: 1.3; }
.modal-note { margin: 12px 0 0; font-size: 12.75px; line-height: 1.55; color: var(--muted); }
.pay-hint {
  margin: 0;
  padding: 9px 11px;
  border: 1px solid var(--acc-line);
  border-radius: var(--r-sm);
  background: var(--acc-soft);
  font-size: 13px;
  line-height: 1.5;
  color: var(--txt);
}
.pay-hint strong { color: var(--acc); }
.pay-label { font-size: 0.7rem; letter-spacing: 0.07em; color: var(--txt); opacity: 0.75; }
#pay-ltc { font-size: 1.4rem; }
#pay-usd { font-size: 12.5px; }
#pay-address { font-size: 12.75px; color: var(--txt); letter-spacing: 0.01em; }
#pay-note { margin: 2px 0 0; font-size: 13.25px; line-height: 1.55; color: var(--txt); }
#pay-expires { margin: 0; font-size: 12.5px; color: var(--muted); }
#pay-uri { max-width: 230px; font-size: 11.5px; line-height: 1.5; color: var(--muted); }

/* ── Pending invoices list ─────────────────────────────────────────────── */
.inv-list { display: flex; flex-direction: column; gap: 8px; }
.inv-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
  padding: 11px 13px;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-sm);
  background: var(--field-bg);
  color: var(--txt);
  font: inherit;
  cursor: pointer;
  animation: fade-up 0.42s var(--ease) both;
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.inv-row:hover { border-color: var(--acc-line); background: var(--acc-soft); }
.inv-row:nth-child(2) { animation-delay: 0.05s; }
.inv-row:nth-child(3) { animation-delay: 0.1s; }
.inv-row:nth-child(4) { animation-delay: 0.15s; }
.inv-ico {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  flex: none;
  color: var(--acc);
  background: var(--acc-soft);
  border: 1px solid var(--acc-line);
}
.inv-ico .ico { width: 16px; height: 16px; }
.inv-main { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.inv-main b { font-size: 13.5px; }
.inv-amt { white-space: nowrap; font-size: 12.5px; }
.inv-go { width: 15px; height: 15px; color: var(--muted); flex: none; transition: transform var(--dur) var(--ease), color var(--dur) var(--ease); }
.inv-row:hover .inv-go { color: var(--acc); transform: translateX(3px); }

/* ── Quarantine SSID cell ──────────────────────────────────────────────── */
.ssid-cell { display: inline-flex; align-items: center; gap: 8px; }
.ssid-val { word-break: break-all; user-select: all; }

.q-end:hover { color: var(--bad); border-color: rgba(239, 68, 68, 0.4); background: rgba(239, 68, 68, 0.08); }
.bot-delete-btn:hover { color: var(--bad); border-color: rgba(239, 68, 68, 0.4); background: rgba(239, 68, 68, 0.08); }

/* ── Account popup (vault tabs) ────────────────────────────────────────── */
dialog.modal-vault { width: min(760px, calc(100vw - 32px)); max-width: min(760px, calc(100vw - 32px)); }
.modal-vault .modal-card { display: flex; flex-direction: column; max-height: min(86vh, 820px); }
.modal-vault .modal-body { overflow-y: auto; }
.vp-avatar {
  width: 34px; height: 34px;
  border-radius: 9px;
  overflow: hidden;
  background: var(--field-bg);
  border: 1px solid var(--line-soft);
  display: grid;
  place-items: center;
  flex: none;
}
.vp-avatar img { width: 100%; height: 100%; object-fit: cover; image-rendering: pixelated; }
.vp-tabs {
  display: flex;
  gap: 6px;
  padding: 10px 16px 0;
  border-bottom: 1px solid var(--line-soft);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.vp-tabs button {
  flex: none;
  padding: 7px 12px;
  border: 1px solid var(--line-soft);
  border-bottom: 0;
  border-radius: 9px 9px 0 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.vp-tabs button:hover { color: var(--txt); background: var(--acc-soft); }
.vp-tabs button.active { color: var(--txt); background: rgba(255, 255, 255, 0.04); border-color: var(--line); position: relative; top: 1px; }
.vp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.vp-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 10px;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-sm);
  background: var(--field-bg);
  min-width: 0;
}
.vp-k { font-size: 10.5px; letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.vp-v { font-size: 13px; overflow-wrap: anywhere; color: var(--txt); }
.vp-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.vp-sec { margin-top: 12px; display: grid; gap: 8px; }
.vp-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.vp-footer {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px solid var(--line-soft);
  color: var(--muted);
  font-size: 12px;
}
.vp-footer .ico { width: 13px; height: 13px; }
.vp-skins { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.vp-fig {
  margin: 0;
  display: grid;
  gap: 6px;
  justify-items: center;
  padding: 12px;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-sm);
  background: var(--field-bg);
}
.vp-skin-img { max-width: 100%; height: auto; max-height: 260px; }
.vp-skin-empty { padding: 30px 0; }

/* ── Securing page + coverage table ────────────────────────────────────── */
.secure-form .secure-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.secure-toggle {
  border: 1px solid var(--line-soft);
  border-radius: var(--r-sm);
  padding: 9px 11px;
  background: var(--field-bg);
  margin: 0;
}
.coverage-table th { white-space: nowrap; }
.coverage-table td { vertical-align: top; }
.cov-name { display: inline-flex; align-items: center; gap: 6px; }
.cov-name + .muted { display: block; }

/* ── Shared access card ────────────────────────────────────────────────── */
.share-add { display: grid; grid-template-columns: minmax(180px, 320px) auto; gap: 8px; margin-top: 12px; }

/* ── Mobile pass (new surfaces) ────────────────────────────────────────── */
@media (max-width: 720px) {
  dialog.modal-vault { width: calc(100vw - 10px); max-width: calc(100vw - 10px); }
  .modal-vault .modal-card { max-height: 92vh; }
  .modal-vault .modal-head { padding: 12px 14px; }
  .modal-vault .modal-body { padding: 13px; }
  .vp-grid { grid-template-columns: 1fr; }
  .vp-skins { grid-template-columns: 1fr; }
  .vp-skin-img { max-height: 210px; }
  .vp-tabs { padding: 8px 12px 0; }
  .vp-actions .btn { flex: 1; justify-content: center; }
  .secure-form .secure-grid { grid-template-columns: 1fr; }
  .share-add { grid-template-columns: 1fr; }
  .card-head-actions { flex-wrap: wrap; }
  .modal-actions { flex-wrap: wrap; }
  .modal-actions .btn { flex: 1; justify-content: center; }
  .coverage-table th:nth-child(4),
  .coverage-table td:nth-child(4),
  .coverage-table th:nth-child(5),
  .coverage-table td:nth-child(5),
  .coverage-table th:nth-child(6),
  .coverage-table td:nth-child(6) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .modal-card, .inv-row { animation: none; }
}

/* ── Securing panel ─────────────────────────────────────────────────────── */
.secure-layout {
  display: grid;
  grid-template-columns: minmax(200px, 250px) minmax(260px, 1fr) minmax(300px, 1.15fr);
  gap: 18px;
  align-items: start;
}
@media (max-width: 1100px) {
  .secure-layout { grid-template-columns: 1fr 1fr; }
  .secure-results { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .secure-layout { grid-template-columns: 1fr; }
}

.pick-list { display: flex; flex-direction: column; gap: 8px; }
.pick-group {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 8px 2px 0;
}
.pick-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  text-align: left;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel, rgba(255, 255, 255, 0.02));
  color: inherit;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.pick-item:hover { border-color: var(--acc-line); }
.pick-item.active { border-color: var(--acc); background: var(--acc-soft); }
.pick-item .ico { width: 16px; height: 16px; color: var(--acc); opacity: 0; }
.pick-item.active .ico { opacity: 1; }
.pick-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pick-body strong { font-size: 14px; }
.pick-body em { font-size: 11.5px; color: var(--muted); font-style: normal; }

.secure-form .field { margin-bottom: 12px; }
.req { color: var(--bad); }
.domain-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 11px 12px;
  border: 1px dashed var(--line);
  border-radius: 12px;
  margin-bottom: 12px;
}
.domain-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.domain-label { font-size: 12.5px; color: var(--muted); }
.domain-row .input, .domain-row select.input { max-width: 190px; }

.stat-rail { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.secure-results .stat-card {
  flex: 1 1 68px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  text-align: center;
}
.secure-results .stat-v { font-size: 20px; font-family: var(--pix); display: block; }
.secure-results .stat-k { font-size: 11px; color: var(--muted); }

.job-list { display: flex; flex-direction: column; gap: 10px; max-height: 460px; overflow-y: auto; }
.job-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 26px 16px;
  border: 1px dashed var(--line);
  border-radius: 12px;
  text-align: center;
  color: var(--muted);
}
.job-empty .ico-lg { width: 30px; height: 30px; color: var(--acc); opacity: 0.8; }
.job-empty p { font-size: 12px; max-width: 300px; margin: 0; }

.job-row {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.job-row.done { border-color: var(--good); }
.job-row.failed { border-color: var(--bad); }
.job-head { display: flex; align-items: center; gap: 8px; justify-content: space-between; }
.job-head strong { font-size: 13px; }
.job-badge {
  font-size: 10.5px;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.job-row.running .job-badge { color: var(--warn); border-color: var(--warn); }
.job-row.done .job-badge { color: var(--good); border-color: var(--good); }
.job-row.failed .job-badge { color: var(--bad); border-color: var(--bad); }
.job-step { font-size: 12px; color: var(--muted); }
.job-step .dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--warn); margin-right: 6px; animation: pulse 1.2s infinite ease-in-out; }
@keyframes pulse { 0%, 100% { opacity: 0.35; } 50% { opacity: 1; } }
.job-result { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 4px 12px; font-size: 12px; }
.job-result .k { color: var(--muted); margin-right: 4px; }
.job-result .v { word-break: break-all; }
.job-bulk { display: flex; flex-direction: column; gap: 4px; font-size: 12px; }
.job-bulk .brow { display: flex; gap: 8px; align-items: baseline; }
.job-bulk .brow .ok { color: var(--good); }
.job-bulk .brow .no { color: var(--bad); }

/* ── Utilities pages ────────────────────────────────────────────────────── */
.tool-form { max-width: 560px; display: flex; flex-direction: column; gap: 4px; margin-top: 6px; }
.tool-live { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.tool-live .tl-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 9px 12px;
  font-size: 13px;
}
.tool-live .tl-row code { word-break: break-all; font-size: 12px; }
.tool-live .empty { color: var(--muted); font-size: 12.5px; }

/* ── Mail page ──────────────────────────────────────────────────────────── */
.mail-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.mail-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: inherit;
  padding: 6px 12px;
  cursor: pointer;
  font: inherit;
  transition: border-color .15s, background .15s;
}
.mail-chip:hover { border-color: var(--acc); }
.mail-chip code { font-size: 12px; word-break: break-all; }
.mail-list { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.mail-item { border: 1px solid var(--line); border-radius: 11px; overflow: hidden; }
.mail-item > summary {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  cursor: pointer;
  font-size: 13px;
  list-style: none;
}
.mail-item > summary::-webkit-details-marker { display: none; }
.mail-item[open] > summary { border-bottom: 1px solid var(--line); }
.mail-sub { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mail-code {
  border: 1px solid var(--acc);
  border-radius: 7px;
  padding: 2px 8px;
  font-size: 12.5px;
  letter-spacing: .06em;
  color: var(--acc);
}
.mail-meta { color: var(--muted); font-size: 12px; white-space: nowrap; }
.mail-body-wrap { padding: 10px 12px 12px; }
.mail-from { margin-bottom: 8px; }
.mail-body {
  margin: 0 0 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 12px;
  line-height: 1.55;
  max-height: 320px;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
}
.mail-body-wrap .row-actions { display: flex; gap: 8px; }
.tool-result { margin-top: 16px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.tool-result-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-bottom: 1px solid var(--line);
  font-size: 12.5px;
}
.tool-result-body {
  margin: 0;
  padding: 12px;
  font-size: 12px;
  line-height: 1.5;
  max-height: 420px;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
  background: rgba(0, 0, 0, 0.22);
}

/* ── Sidebar Utilities dropdown ─────────────────────────────────────────── */
.side-drop { display: flex; flex-direction: column; }
.side-drop-btn {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 9px 11px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: none;
  color: var(--muted);
  font: inherit;
  font-size: 14px;
  text-align: left;
  cursor: pointer;
}
.side-drop-btn:hover { color: var(--txt); background: var(--field-bg); }
.side-drop-btn.active { color: var(--txt); background: var(--acc-soft); }
.side-drop-btn .ico { width: 17px; height: 17px; flex: none; opacity: 0.9; }
.side-caret {
  margin-left: auto !important;
  width: 14px !important;
  height: 14px !important;
  opacity: 0.7 !important;
  transform: rotate(-90deg);
  transition: transform 0.18s ease;
}
.side-drop:hover .side-caret,
.side-drop.open .side-caret { transform: rotate(0deg); }
.side-sub {
  display: none;
  flex-direction: column;
  gap: 2px;
  margin: 3px 0 5px 14px;
  padding-left: 12px;
  border-left: 1px solid var(--line);
}
.side-drop:hover .side-sub,
.side-drop.open .side-sub { display: flex; }
.side-sub a {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 9px;
  border-radius: 9px;
  color: var(--muted);
  font-size: 13px;
  text-decoration: none;
}
.side-sub a:hover { color: var(--txt); background: var(--field-bg); }
.side-sub a.active { color: var(--txt); background: var(--acc-soft); }
.side-sub a .ico { width: 14px; height: 14px; flex: none; opacity: 0.85; }
body.side-mini .side-sub { display: none !important; }
body.side-mini .side-drop-btn { justify-content: center; padding: 10px 8px; }
body.side-mini .side-drop-btn .side-caret { display: none; }

/* ── Soft navigation ────────────────────────────────────────────────────── */
.dash-content { transition: opacity 0.14s ease; }
body.soft-loading .dash-content { opacity: 0.45; pointer-events: none; }
body.soft-loading .side-nav { opacity: 0.6; }
