/* ==========================================================================
   Hermitz Console — "Mission Control" design system (v1.1)
   Brand: hermitz.com logo gradient, Manrope + JetBrains Mono, HUD labels in Michroma
   ========================================================================== */
:root {
  --bg: #05060a;
  --bg-2: #0b0c12;
  --panel: rgba(18, 19, 28, .62);
  --panel-solid: #11121a;
  --glass: linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.012));
  --surface: rgba(255,255,255,.035);
  --surface-2: rgba(255,255,255,.06);
  --line: rgba(255,255,255,.07);
  --line-2: rgba(255,255,255,.12);
  --text: #f5f6fb;
  --muted: #9095a6;
  --faint: #5d6170;
  --violet: #8f7cfd;
  --violet-2: #c89ffa;
  --indigo: #6e6dff;
  --blue: #4d7cff;
  --cyan: #46d6ff;
  --magenta: #e0218a;
  --pink: #e05fc0;
  --good: #2fd089;
  --warn: #f5b443;
  --bad: #ff5b6e;
  --grad: linear-gradient(135deg, #6e6dff 0%, #9f86fc 55%, #c89ffa 100%);
  --grad-hot: linear-gradient(90deg, #4d7cff, #9f86fc 45%, #e05fc0);
  --radius: 20px;
  --radius-sm: 12px;
  --font: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --display: 'Michroma', 'Manrope', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, Menlo, Consolas, monospace;
  --hi: inset 0 1px 0 rgba(255,255,255,.07), inset 0 -1px 0 rgba(0,0,0,.4);
  --drop: 0 30px 60px -40px rgba(0,0,0,.9);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font: 14px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: hidden;
}
/* Deep-space backdrop: starfield + top light beam + horizon glow */
body::before {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(1px 1px at 12% 18%, rgba(255,255,255,.55), transparent 60%),
    radial-gradient(1px 1px at 72% 12%, rgba(255,255,255,.4), transparent 60%),
    radial-gradient(1px 1px at 38% 66%, rgba(255,255,255,.35), transparent 60%),
    radial-gradient(1px 1px at 88% 58%, rgba(255,255,255,.45), transparent 60%),
    radial-gradient(1px 1px at 56% 34%, rgba(255,255,255,.3), transparent 60%),
    radial-gradient(1px 1px at 22% 84%, rgba(255,255,255,.3), transparent 60%),
    radial-gradient(1.5px 1.5px at 94% 88%, rgba(200,159,250,.6), transparent 60%),
    radial-gradient(1.5px 1.5px at 6% 46%, rgba(70,214,255,.5), transparent 60%),
    radial-gradient(700px 380px at 58% -12%, rgba(110,109,255,.22), transparent 70%),
    radial-gradient(900px 500px at -10% 120%, rgba(77,124,255,.14), transparent 70%),
    radial-gradient(600px 400px at 110% 100%, rgba(224,33,138,.07), transparent 70%);
}
body::after { /* soft light beam from above (no hard line) */
  content: ""; position: fixed; z-index: 0; pointer-events: none;
  top: -30vh; left: 58%; width: 320px; height: 70vh; transform: translateX(-50%);
  background: radial-gradient(50% 50% at 50% 50%, rgba(143,124,253,.16), transparent 70%);
}
a { color: var(--violet-2); text-decoration: none; }
a:hover { color: #fff; }
h1, h2, h3, h4 { font-family: var(--font); font-weight: 600; letter-spacing: -.01em; margin: 0; color: #fff; }
h1 { font-size: 26px; letter-spacing: -.02em; }
h2 { font-size: 16px; }
h3 { font-size: 14px; }
p { margin: 0 0 12px; }
code, pre, .mono { font-family: var(--mono); font-size: 12.5px; }
code { background: rgba(255,255,255,.06); padding: 2px 6px; border-radius: 6px; color: #dcd3ff; overflow-wrap: anywhere; }
pre { background: rgba(0,0,0,.45); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px; overflow: auto; color: #d2d4e2; margin: 0; white-space: pre-wrap; word-break: break-word; }
hr { border: 0; border-top: 1px solid var(--line); margin: 20px 0; }
.ico { flex: none; }
::selection { background: rgba(143,124,253,.35); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,.08); border-radius: 10px; border: 3px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-track { background: transparent; }

/* HUD label */
.eyebrow, .hud-label { font: 400 10px/1.2 var(--display); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.eyebrow b { color: var(--violet-2); font-weight: 400; }

/* Brand */
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; }
.brand img { height: 22px; width: auto; display: block; }
.brand .brand-tag { font: 400 8.5px var(--display); letter-spacing: .18em; text-transform: uppercase; color: var(--violet-2); border: 1px solid rgba(143,124,253,.35); background: rgba(143,124,253,.08); border-radius: 999px; padding: 4px 8px 3px; }
.auth-head .brand img { height: 30px; }

/* ---------- Shell ---------- */
.shell { position: relative; z-index: 1; display: grid; grid-template-columns: 264px 1fr; min-height: 100vh; }
.side {
  position: sticky; top: 14px; height: calc(100vh - 28px); margin: 14px 0 14px 14px;
  display: flex; flex-direction: column; gap: 14px; padding: 18px 12px 12px;
  background: var(--glass), var(--panel); border: 1px solid var(--line); border-radius: 24px;
  box-shadow: var(--hi), var(--drop); backdrop-filter: blur(20px) saturate(140%); -webkit-backdrop-filter: blur(20px) saturate(140%);
  overflow: hidden;
}
.side .brand { padding: 2px 8px 4px; }
.nav { display: flex; flex-direction: column; gap: 2px; overflow-y: auto; flex: 1; min-height: 0; padding-right: 2px; margin-right: -4px; }
.nav-label { font: 400 9px var(--display); letter-spacing: .2em; text-transform: uppercase; color: var(--faint); padding: 12px 10px 6px; }
.nav a, .nav span.soon { position: relative; display: flex; align-items: center; gap: 11px; padding: 7px 10px; border-radius: 12px; color: var(--muted); font-weight: 500; font-size: 13.5px; transition: background .15s, color .15s; }
.nav a .ni { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: rgba(255,255,255,.03); border: 1px solid var(--line); transition: all .15s; }
.nav a:hover { color: #fff; background: rgba(255,255,255,.035); }
.nav a.active { color: #fff; background: linear-gradient(90deg, rgba(143,124,253,.16), rgba(143,124,253,.02)); box-shadow: inset 0 0 0 1px rgba(143,124,253,.22); }
.nav a.active .ni { background: var(--grad); border-color: transparent; color: #0b0b12; box-shadow: 0 6px 20px -6px rgba(143,124,253,.8); }
.nav a.active::before { content: ""; position: absolute; left: -12px; top: 9px; bottom: 9px; width: 3px; border-radius: 0 3px 3px 0; background: var(--grad); box-shadow: 0 0 12px rgba(143,124,253,.9); }
.nav .tag { margin-left: auto; font: 500 10px var(--mono); border: 1px solid var(--line-2); border-radius: 999px; padding: 1px 7px; color: var(--faint); }
.nav .count { margin-left: auto; font: 600 10.5px var(--mono); border-radius: 999px; padding: 1px 8px; color: #0b0b12; background: var(--grad); }
.side-foot { border-top: 1px solid var(--line); padding-top: 12px; display: flex; align-items: center; gap: 10px; }
.me { display: flex; align-items: center; gap: 10px; padding: 4px; min-width: 0; flex: 1; border-radius: 12px; }
.me:hover { background: rgba(255,255,255,.04); }
.avatar { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; background: var(--grad); color: #0b0b12; font: 700 12.5px var(--font); flex: none; box-shadow: 0 6px 18px -8px rgba(143,124,253,.9); }
.me b { display: block; font-size: 12.5px; color: #fff; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.me span { font-size: 11px; color: var(--muted); }
.me > span:last-child { min-width: 0; }
.icon-btn { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; border: 1px solid var(--line); background: rgba(255,255,255,.03); color: var(--muted); cursor: pointer; flex: none; }
.icon-btn:hover { color: #fff; border-color: var(--line-2); }

.main { min-width: 0; padding: 14px 22px 60px 18px; }
.topbar-glass {
  position: sticky; top: 14px; z-index: 10; display: flex; align-items: center; gap: 12px; padding: 10px 12px 10px 18px; margin-bottom: 22px;
  background: var(--glass), rgba(12,13,20,.7); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--hi), var(--drop);
  backdrop-filter: blur(20px) saturate(140%); -webkit-backdrop-filter: blur(20px) saturate(140%);
}
.topbar-glass .crumb { display: flex; align-items: center; gap: 10px; min-width: 0; }
.topbar-glass .crumb .eyebrow { white-space: nowrap; }
.search { margin-left: auto; position: relative; width: min(340px, 34vw); }
.search input { height: 36px; padding-left: 36px !important; border-radius: 11px !important; background: rgba(0,0,0,.35) !important; }
.search .ico { position: absolute; left: 11px; top: 9px; color: var(--faint); }
.search kbd { position: absolute; right: 8px; top: 8px; font: 500 10px var(--mono); color: var(--faint); border: 1px solid var(--line-2); border-radius: 6px; padding: 1px 6px; }
.chips { display: flex; gap: 6px; align-items: center; }
.chip-live { display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 11px; border-radius: 10px; border: 1px solid var(--line); background: rgba(255,255,255,.025); font: 500 11px var(--mono); color: var(--muted); white-space: nowrap; }
.chip-live b { color: #fff; font-weight: 500; }
.pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 0 rgba(47,208,137,.6); animation: pulse 2.2s infinite; flex: none; }
.pulse.warn { background: var(--warn); animation-name: pulseWarn; }
.pulse.bad { background: var(--bad); animation: none; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(47,208,137,.55); } 70% { box-shadow: 0 0 0 8px rgba(47,208,137,0); } 100% { box-shadow: 0 0 0 0 rgba(47,208,137,0); } }
@keyframes pulseWarn { 0% { box-shadow: 0 0 0 0 rgba(245,180,67,.55); } 70% { box-shadow: 0 0 0 8px rgba(245,180,67,0); } 100% { box-shadow: 0 0 0 0 rgba(245,180,67,0); } }

.topbar { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.topbar .sub { color: var(--muted); margin-top: 6px; }
.crumbs { font: 400 9.5px var(--display); letter-spacing: .16em; text-transform: uppercase; color: var(--faint); margin-bottom: 10px; }
.crumbs a { color: var(--muted); }
.mobile-bar { display: none; }

/* ---------- Panels ---------- */
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.span2 { grid-column: span 2; }
.span3 { grid-column: span 3; }
.card {
  position: relative; min-width: 0;
  background: var(--glass), var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--hi), var(--drop); backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%);
}
.card::after { /* top edge light */
  content: ""; position: absolute; left: 18%; right: 18%; top: -1px; height: 1px; border-radius: 1px; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(200,159,250,.45), transparent);
}
.card-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px 14px; }
.card-h h2 { font: 400 11px var(--display); letter-spacing: .14em; text-transform: uppercase; color: #fff; }
.card-h .muted, .card-h .small { font-size: 12px; }
.card-b { padding: 4px 20px 20px; }
.card-h + .card-b { padding-top: 4px; }
.card-b.flush { padding: 0 0 8px; }
.stack > * + * { margin-top: 16px; }

/* HUD brackets */
.hud { position: relative; }
.hud > .br { position: absolute; width: 14px; height: 14px; pointer-events: none; border-color: rgba(200,159,250,.55); border-style: solid; border-width: 0; }
.hud > .br.tl { top: 10px; left: 10px; border-top-width: 1.5px; border-left-width: 1.5px; border-top-left-radius: 4px; }
.hud > .br.tr { top: 10px; right: 10px; border-top-width: 1.5px; border-right-width: 1.5px; border-top-right-radius: 4px; }
.hud > .br.bl { bottom: 10px; left: 10px; border-bottom-width: 1.5px; border-left-width: 1.5px; border-bottom-left-radius: 4px; }
.hud > .br.brr { bottom: 10px; right: 10px; border-bottom-width: 1.5px; border-right-width: 1.5px; border-bottom-right-radius: 4px; }

/* Gradient-edge glow card (Solaris-style) */
.glow { position: relative; border-color: transparent !important; background: linear-gradient(var(--panel-solid), var(--panel-solid)) padding-box, linear-gradient(120deg, rgba(77,124,255,.8), rgba(159,134,252,.7) 40%, rgba(224,95,192,.75) 70%, rgba(70,214,255,.6)) border-box !important; }
.glow::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; z-index: -1; filter: blur(18px); opacity: .35; background: linear-gradient(120deg, #4d7cff, #9f86fc, #e05fc0, #46d6ff); }

.stat { padding: 18px 20px; overflow: hidden; }
.stat .k { display: flex; align-items: center; gap: 8px; font: 400 9.5px var(--display); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.stat .k .ico { color: var(--violet-2); }
.stat .v { font: 400 28px/1.1 var(--display); color: #fff; margin-top: 14px; letter-spacing: .01em; }
.stat .v small { font: 500 12px var(--mono); color: var(--muted); letter-spacing: 0; margin-left: 4px; }
.stat .d { font-size: 12px; color: var(--faint); margin-top: 6px; }
.stat.accent { background: radial-gradient(120% 140% at 0% 0%, rgba(110,109,255,.22), transparent 55%), var(--glass), var(--panel); }
.segments { display: flex; gap: 3px; margin-top: 12px; }
.segments i { flex: 1; height: 4px; border-radius: 2px; background: rgba(255,255,255,.07); }
.segments i.on { background: var(--grad); box-shadow: 0 0 8px rgba(143,124,253,.6); }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; }
table.t { width: 100%; border-collapse: separate; border-spacing: 0; }
.t th { text-align: left; font: 400 9px var(--display); letter-spacing: .16em; text-transform: uppercase; color: var(--faint); padding: 12px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.t td { padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.t tr:last-child td { border-bottom: 0; }
.t tbody tr { transition: background .12s; }
.t tbody tr:hover td { background: rgba(143,124,253,.04); }
.t .num { text-align: right; font-variant-numeric: tabular-nums; font-family: var(--mono); font-size: 12.5px; }
.t .title-cell b { color: #fff; font-weight: 600; display: block; }
.t .title-cell span { color: var(--faint); font-size: 12px; }

/* ---------- Badges / pills ---------- */
.badge { display: inline-flex; align-items: center; gap: 6px; font: 500 11px var(--mono); padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--muted); background: rgba(255,255,255,.02); white-space: nowrap; }
.badge.ok { color: #6ff0b4; border-color: rgba(47,208,137,.35); background: rgba(47,208,137,.08); }
.badge.warn { color: #ffd07a; border-color: rgba(245,180,67,.35); background: rgba(245,180,67,.08); }
.badge.bad { color: #ff8a98; border-color: rgba(255,91,110,.4); background: rgba(255,91,110,.09); }
.badge.violet { color: var(--violet-2); border-color: rgba(143,124,253,.4); background: rgba(143,124,253,.1); }
.pill { display: inline-flex; align-items: center; gap: 6px; font: 600 10px var(--mono); letter-spacing: .06em; text-transform: uppercase; padding: 4px 10px 4px 8px; border-radius: 8px; color: #fff; white-space: nowrap; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px rgba(255,255,255,.18); }
.pill.seo { background: linear-gradient(90deg, #3e6dff, #6e9bff); }
.pill.aeo { background: linear-gradient(90deg, #12a39a, #2fd0b8); }
.pill.geo { background: linear-gradient(90deg, #8f5cff, #c06bff); }
.pill.aio { background: linear-gradient(90deg, #c2399a, #e05fc0); }
.pill.sxo { background: linear-gradient(90deg, #d07a12, #f5b443); color: #1a1205; }
.dot-s { width: 8px; height: 8px; border-radius: 50%; display: inline-block; background: var(--faint); flex: none; }
.dot-s.ok { background: var(--good); box-shadow: 0 0 10px rgba(47,208,137,.7); }
.dot-s.warn { background: var(--warn); box-shadow: 0 0 10px rgba(245,180,67,.6); }
.dot-s.bad { background: var(--bad); box-shadow: 0 0 10px rgba(255,91,110,.7); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 38px; padding: 0 16px; border-radius: 11px; border: 1px solid var(--line-2); background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.02)); color: #fff; font: 600 13px var(--font); cursor: pointer; white-space: nowrap; transition: transform .06s, filter .15s, border-color .15s, background .15s; box-shadow: inset 0 1px 0 rgba(255,255,255,.08); }
.btn:hover { border-color: rgba(255,255,255,.22); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn.primary { border-color: transparent; background: var(--grad); color: #0b0b12; box-shadow: inset 0 1px 0 rgba(255,255,255,.45), 0 10px 30px -12px rgba(143,124,253,.95); }
.btn.primary:hover { filter: brightness(1.08); color: #0b0b12; }
.btn.hot { border-color: transparent; background: var(--grad-hot); color: #fff; box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 10px 30px -10px rgba(224,95,192,.7); }
.btn.danger { color: #ffd2d8; border-color: rgba(255,91,110,.4); background: rgba(255,91,110,.1); }
.btn.danger:hover { background: rgba(255,91,110,.18); }
.btn.ghost { background: transparent; box-shadow: none; }
.btn.sm { height: 30px; padding: 0 12px; font-size: 12px; border-radius: 9px; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .45; pointer-events: none; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
form.inline { display: inline; }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
.field > label, .lbl { font: 400 9.5px var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.hint { font-size: 12px; color: var(--faint); }
input[type=text], input[type=email], input[type=password], input[type=url], input[type=number], input[type=tel], input[type=search], input[type=date], input[type=datetime-local], input:not([type]), select, textarea {
  width: 100%; height: 42px; padding: 0 13px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(0,0,0,.4); color: #fff; font: 14px var(--font); outline: none; transition: border-color .15s, box-shadow .15s, background .15s; box-shadow: inset 0 1px 2px rgba(0,0,0,.4);
}
textarea { height: auto; min-height: 100px; padding: 11px 13px; line-height: 1.55; resize: vertical; }
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) 18px, calc(100% - 13px) 18px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 32px; }
input:focus, select:focus, textarea:focus { border-color: rgba(159,134,252,.8); box-shadow: 0 0 0 3px rgba(143,124,253,.18), 0 0 24px -6px rgba(143,124,253,.6); background: rgba(0,0,0,.55); }
input[readonly] { color: var(--muted); }
input.code-input { font-family: var(--mono); font-size: 22px; letter-spacing: .4em; text-align: center; height: 54px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.row3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }
.check { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.check input { margin-top: 3px; accent-color: var(--violet); }
input[type=file] { color: var(--muted); font-size: 13px; }
input[type=file]::file-selector-button { font: 600 12.5px var(--font); color: #fff; background: rgba(255,255,255,.06); border: 1px solid var(--line-2); border-radius: 9px; padding: 8px 12px; margin-right: 12px; cursor: pointer; }
.err { color: var(--bad); font-size: 12.5px; }
.counter { font: 500 11px var(--mono); color: var(--faint); }
.counter.over { color: var(--warn); }

/* ---------- Alerts ---------- */
.alert { display: flex; gap: 10px; align-items: flex-start; padding: 12px 16px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--glass), rgba(14,15,22,.8); margin-bottom: 16px; box-shadow: var(--hi); backdrop-filter: blur(12px); }
.alert.ok { border-color: rgba(47,208,137,.35); } .alert.ok .ico { color: var(--good); }
.alert.bad { border-color: rgba(255,91,110,.4); } .alert.bad .ico { color: var(--bad); }
.alert.warn { border-color: rgba(245,180,67,.38); } .alert.warn .ico { color: var(--warn); }
.alert.info { border-color: rgba(143,124,253,.4); } .alert.info .ico { color: var(--violet-2); }
.alert .ico { margin-top: 2px; }

/* ---------- Misc ---------- */
.muted { color: var(--muted); } .faint { color: var(--faint); } .small { font-size: 12.5px; }
.right { text-align: right; } .nowrap { white-space: nowrap; }
.mt0 { margin-top: 0; } .mt8 { margin-top: 8px; } .mt16 { margin-top: 16px; } .mt24 { margin-top: 24px; } .mb0 { margin-bottom: 0; } .mb16 { margin-bottom: 16px; }
.kv { display: grid; grid-template-columns: 170px 1fr; gap: 10px 16px; }
.kv dt { color: var(--muted); font-size: 12.5px; }
.kv dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.list { list-style: none; margin: 0; padding: 0; }
.list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.list li:last-child { border-bottom: 0; }
.bar { height: 6px; border-radius: 999px; background: rgba(255,255,255,.06); overflow: hidden; }
.bar > span { display: block; height: 100%; border-radius: 999px; background: var(--grad-hot); box-shadow: 0 0 10px rgba(143,124,253,.6); }
.empty { text-align: center; padding: 36px 18px; color: var(--muted); }
.empty .ico { color: var(--faint); margin-bottom: 8px; }
.tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: 14px; border: 1px solid var(--line); background: rgba(0,0,0,.3); margin-bottom: 20px; overflow-x: auto; max-width: 100%; }
.tabs a { padding: 8px 14px; color: var(--muted); border-radius: 10px; white-space: nowrap; font-weight: 600; font-size: 13px; }
.tabs a.active { color: #fff; background: linear-gradient(180deg, rgba(255,255,255,.09), rgba(255,255,255,.03)); box-shadow: var(--hi), 0 0 0 1px var(--line-2); }
.filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 10px; border: 1px solid var(--line); background: rgba(255,255,255,.02); color: var(--muted); font-size: 12.5px; font-weight: 500; }
.chip:hover { color: #fff; border-color: var(--line-2); }
.chip.active { color: #fff; border-color: rgba(143,124,253,.6); background: rgba(143,124,253,.14); box-shadow: 0 0 16px -6px rgba(143,124,253,.8); }
.chip b { color: #fff; font: 600 11.5px var(--mono); }
.issue { display: flex; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.issue:last-child { border-bottom: 0; }
.sev { font: 600 9.5px var(--mono); letter-spacing: .1em; text-transform: uppercase; padding-top: 3px; min-width: 58px; }
.sev.high { color: var(--bad); } .sev.medium { color: var(--warn); } .sev.low { color: var(--muted); }
.coming { opacity: .8; }
.coming .card-b { color: var(--muted); }
.pill-version { font-family: var(--mono); font-size: 11.5px; color: var(--violet-2); }
.qr { background: #fff; border-radius: 14px; padding: 12px; display: inline-block; line-height: 0; box-shadow: 0 0 40px -10px rgba(143,124,253,.7); }
.qr svg, .qr img { width: 180px; height: 180px; }
.codes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; font-family: var(--mono); font-size: 14px; }
.codes span { background: rgba(0,0,0,.45); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; text-align: center; letter-spacing: .06em; }

/* Toggle switch */
.toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 16px; border: 1px solid var(--line-2); border-radius: 14px; background: rgba(0,0,0,.3); cursor: pointer; }
.toggle-row b { display: block; color: #fff; font-weight: 600; margin-bottom: 2px; }
.toggle-row .hint { display: block; }
input.switch { appearance: none; -webkit-appearance: none; flex: none; width: 48px; height: 28px; border-radius: 999px; background: rgba(255,255,255,.1); position: relative; cursor: pointer; transition: background .15s; margin: 0; box-shadow: inset 0 1px 3px rgba(0,0,0,.5); }
input.switch::after { content: ""; position: absolute; top: 4px; left: 4px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .18s; box-shadow: 0 2px 6px rgba(0,0,0,.5); }
input.switch:checked { background: var(--grad); box-shadow: 0 0 18px -4px rgba(143,124,253,.9); }
input.switch:checked::after { transform: translateX(20px); }
input.switch:focus-visible { outline: 2px solid var(--violet); outline-offset: 2px; }

/* ---------- Dashboard pieces ---------- */
.hero { display: grid; grid-template-columns: 300px 1fr; gap: 0; overflow: hidden; }
.hero-gauge { position: relative; padding: 26px 24px; display: flex; flex-direction: column; align-items: center; justify-content: center; border-right: 1px solid var(--line); background: radial-gradient(70% 60% at 50% 45%, rgba(110,109,255,.18), transparent 70%); }
.ring-wrap { position: relative; width: 196px; height: 196px; }
.ring-wrap .ring { filter: drop-shadow(0 0 14px rgba(143,124,253,.45)); }
.ring-wrap .ring-c { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.ring-c .score { font: 400 40px/1 var(--display); color: #fff; }
.ring-c .of { font: 500 11px var(--mono); color: var(--muted); margin-top: 6px; }
.hero-gauge .grade { margin-top: 14px; }
.hero-body { padding: 24px 26px; display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.hero-body h1 { font-size: 24px; }
.pillars { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.pillar { position: relative; padding: 12px 10px 12px; border-radius: 16px; border: 1px solid var(--line); background: rgba(0,0,0,.28); text-align: center; box-shadow: var(--hi); transition: border-color .15s, transform .15s; }
.pillar:hover { border-color: rgba(143,124,253,.4); transform: translateY(-1px); }
.pillar .arc { display: block; margin: 0 auto -18px; }
.pillar .pv { font: 400 18px var(--display); color: #fff; position: relative; }
.pillar .pn { font: 400 9.5px var(--display); letter-spacing: .16em; color: #fff; margin-top: 8px; }
.pillar .pl { font-size: 11px; color: var(--faint); margin-top: 2px; }
.pillar .pi { font: 500 10.5px var(--mono); color: var(--muted); margin-top: 6px; }
.timeline { position: relative; }
.timeline .tl { position: relative; display: grid; grid-template-columns: 18px 1fr auto; gap: 12px; padding: 10px 20px; }
.timeline .tl::before { content: ""; position: absolute; left: 28px; top: 0; bottom: 0; width: 1px; background: linear-gradient(180deg, transparent, var(--line-2), transparent); }
.timeline .tl i { position: relative; z-index: 1; width: 9px; height: 9px; margin: 6px 0 0 4px; border-radius: 50%; background: var(--panel-solid); border: 2px solid var(--violet); box-shadow: 0 0 10px rgba(143,124,253,.7); }
.timeline .tl b { color: #fff; font-weight: 600; font-size: 13px; display: block; }
.timeline .tl span { color: var(--faint); font-size: 12px; }
.timeline .tl time { font: 500 11px var(--mono); color: var(--faint); white-space: nowrap; }
.lead-row { display: grid; grid-template-columns: 38px 1fr auto; gap: 12px; align-items: center; padding: 10px 20px; border-top: 1px solid var(--line); }
.lead-row:first-child { border-top: 0; }
.lead-row .avatar { width: 36px; height: 36px; border-radius: 12px; font-size: 12px; }
.lead-row > div { min-width: 0; }
.lead-row b { color: #fff; font-size: 13.5px; display: block; }
.lead-row > div > span { color: var(--faint); font-size: 12px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sys { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sys .s { padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: rgba(0,0,0,.25); }
.sys .s .eyebrow { display: flex; align-items: center; gap: 7px; }
.sys .s b { display: block; font: 500 13px var(--font); color: #fff; margin-top: 8px; }
.sys .s span { font-size: 11.5px; color: var(--faint); }
.fix-row { display: grid; grid-template-columns: 26px 1fr auto; gap: 14px; align-items: start; padding: 16px 20px; border-top: 1px solid var(--line); }
.fix-row:first-child { border-top: 0; }
.fix-row input[type=checkbox] { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--violet); }
.fix-row h3 { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.fix-row p { color: var(--muted); font-size: 12.5px; margin: 6px 0 0; max-width: 760px; }
.fix-row ul { margin: 8px 0 0; padding: 0; list-style: none; }
.fix-row ul li { font: 400 11.5px var(--mono); color: var(--faint); padding: 2px 0; overflow-wrap: anywhere; }
.fix-row .count { font: 400 20px var(--display); color: #fff; text-align: right; }
.fix-row .count small { display: block; font: 500 10.5px var(--mono); color: var(--faint); }
.fix-row.done { opacity: .55; }
.serp { background: #fff; border-radius: 14px; padding: 16px; color: #202124; font-family: arial, sans-serif; }

/* ---------- Auth (login) ---------- */
.auth-split { position: relative; z-index: 1; min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; }
.auth-visual { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; padding: 36px 40px; border-right: 1px solid var(--line); background: radial-gradient(60% 50% at 50% 50%, rgba(110,109,255,.22), transparent 70%); }
.orbit { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(560px, 80%); aspect-ratio: 1; pointer-events: none; }
.orbit span { position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(200,159,250,.16); }
.orbit span:nth-child(2) { inset: 12%; border-color: rgba(77,124,255,.2); border-style: dashed; animation: spin 60s linear infinite; }
.orbit span:nth-child(3) { inset: 26%; border-color: rgba(224,95,192,.18); animation: spin 40s linear infinite reverse; }
.orbit span:nth-child(3)::after { content: ""; position: absolute; top: -4px; left: 50%; width: 8px; height: 8px; border-radius: 50%; background: var(--violet-2); box-shadow: 0 0 16px 4px rgba(200,159,250,.7); }
.orbit span:nth-child(2)::after { content: ""; position: absolute; bottom: 10%; right: 6%; width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 14px 3px rgba(70,214,255,.6); }
@keyframes spin { to { transform: rotate(360deg); } }
.orbit-core { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 120px; height: 120px; border-radius: 34px; display: grid; place-items: center; background: var(--glass), rgba(14,15,22,.8); border: 1px solid var(--line-2); box-shadow: var(--hi), 0 0 80px -10px rgba(143,124,253,.6); }
.orbit-core img { width: 54px; height: auto; }
.auth-visual .hud-row { position: relative; display: flex; gap: 8px; flex-wrap: wrap; }
.auth-visual .tagline { position: relative; max-width: 420px; }
.auth-visual .tagline h2 { font: 400 20px/1.35 var(--display); letter-spacing: .02em; color: #fff; text-transform: uppercase; }
.auth-visual .tagline p { color: var(--muted); margin-top: 10px; }
.auth-form { display: flex; align-items: center; justify-content: center; padding: 32px 20px; }
.auth-card { width: 100%; max-width: 410px; }
.auth-card .card-b { padding: 28px; }
.auth-head { margin-bottom: 22px; }
.auth-head .brand { margin-bottom: 26px; }
.auth-head h1 { font-size: 26px; }
.auth-head p { color: var(--muted); margin: 6px 0 0; }
.foot-note { margin-top: 18px; font: 500 11px var(--mono); color: var(--faint); text-align: center; }
.center-wrap { position: relative; z-index: 1; min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 32px 16px; }

/* ---------- Installer ---------- */
.wizard { width: 100%; max-width: 880px; }
.wizard-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; gap: 12px; flex-wrap: wrap; }
.steps { display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px; margin-bottom: 18px; }
.steps .s { display: flex; flex-direction: column; gap: 7px; font: 400 9px var(--display); letter-spacing: .1em; text-transform: uppercase; color: var(--faint); min-width: 0; }
.steps .s i { display: block; height: 3px; border-radius: 999px; background: rgba(255,255,255,.08); }
.steps .s.done i { background: var(--violet); }
.steps .s.now i { background: var(--grad-hot); box-shadow: 0 0 10px rgba(224,95,192,.6); }
.steps .s.now { color: #fff; }
.steps .s span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wizard .card-b { padding: 26px 28px; }
.wizard h1 { font-size: 22px; margin-bottom: 6px; }
.wizard .lead { color: var(--muted); margin-bottom: 22px; }
.wizard-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 28px; border-top: 1px solid var(--line); }
.checks .grp { font: 400 9px var(--display); letter-spacing: .16em; text-transform: uppercase; color: var(--faint); margin: 18px 0 4px; }
.checks .c { display: grid; grid-template-columns: 22px 1fr auto; gap: 10px; align-items: start; padding: 9px 0; border-bottom: 1px solid var(--line); }
.checks .c .ico.ok { color: var(--good); } .checks .c .ico.bad { color: var(--bad); } .checks .c .ico.warn { color: var(--warn); }
.checks .c small { display: block; color: var(--faint); }
.found { max-height: 300px; overflow: auto; border: 1px solid var(--line); border-radius: 14px; }
.found table.t td, .found table.t th { padding: 7px 12px; }

/* ---------- Responsive ---------- */
@media (max-width: 1280px) {
  .pillars { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
  .pillar .arc { width: 110px; }
  .hero { grid-template-columns: 250px 1fr; }
  .chips .chip-live.opt { display: none; }
}
@media (max-width: 1100px) {
  .g4, .g5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero { grid-template-columns: 1fr; }
  .hero-gauge { border-right: 0; border-bottom: 1px solid var(--line); }
  .pillars { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .auth-split { grid-template-columns: 1fr; }
  .auth-visual { display: none; }
}
@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: fixed; inset: 10px auto 10px 10px; margin: 0; height: auto; width: 272px; z-index: 40; transform: translateX(-110%); transition: transform .22s; }
  body.nav-open .side { transform: none; box-shadow: 0 0 0 100vmax rgba(0,0,0,.6); }
  .mobile-bar { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; position: sticky; top: 0; z-index: 30; background: rgba(5,6,10,.85); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
  .main { padding: 14px 14px 48px; }
  .topbar-glass { top: 64px; flex-wrap: wrap; }
  .search { width: 100%; order: 3; margin-left: 0; }
  .g2, .g3, .g4, .g5 { grid-template-columns: 1fr; }
  .span2, .span3 { grid-column: auto; }
  .row2, .row3 { grid-template-columns: 1fr; }
  .kv { grid-template-columns: 1fr; gap: 2px 0; }
  .kv dd { margin-bottom: 10px; }
  .pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps .s span { display: none; }
  .wizard .card-b, .wizard-foot { padding-left: 18px; padding-right: 18px; }
  .sys { grid-template-columns: 1fr; }
  body::after { display: none; }
}
@media (max-height: 760px) and (min-width: 901px) {
  .nav a, .nav span.soon { padding: 5px 10px; }
  .nav a .ni { width: 26px; height: 26px; }
  .nav-label { padding: 8px 10px 4px; }
}
@media (prefers-reduced-motion: reduce) {
  .pulse, .orbit span { animation: none !important; }
}

/* v1.2.0 — Global Business Network */
.mb8 { margin-bottom: 8px; }
.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.hint code, .sub code { font: 500 11.5px var(--mono); color: var(--violet-2); background: rgba(143,124,253,.1); padding: 1px 5px; border-radius: 5px; }
tr.faint td, tr.faint a { color: var(--faint); }
.tabs { display: flex; width: max-content; }
@media (max-height: 1000px) and (min-width: 901px) {
  .nav a, .nav span.soon { padding: 4px 10px; font-size: 13px; }
  .nav a .ni { width: 26px; height: 26px; border-radius: 8px; }
  .nav-label { padding: 8px 10px 3px; }
}

/* v1.3.0 — Partner portal (same Mission Control look, simpler frame) */
.portal-brand { display: inline-flex; align-items: center; gap: 10px; }
.portal-brand img { display: block; height: 22px; width: auto; }
.portal-auth__wrap { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 24px; padding: 32px 16px; }
.portal-auth .auth-card { max-width: 430px; }
.portal-auth .foot-note a, .portal .foot-note a { color: var(--muted); }
.portal-top { position: sticky; top: 10px; z-index: 30; margin: 10px; display: flex; align-items: center; gap: 18px; padding: 10px 14px 10px 18px; border-radius: 18px; border: 1px solid var(--line); background: var(--glass), var(--panel); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.portal-nav { display: flex; gap: 4px; margin: 0 auto; overflow-x: auto; }
.portal-nav a { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 12px; color: var(--muted); font-weight: 600; font-size: 13.5px; white-space: nowrap; }
.portal-nav a:hover { color: #fff; background: rgba(255,255,255,.04); }
.portal-nav a.active { color: #fff; background: linear-gradient(90deg, rgba(143,124,253,.18), rgba(143,124,253,.04)); box-shadow: inset 0 0 0 1px rgba(143,124,253,.25); }
.portal-me { display: flex; align-items: center; gap: 10px; }
.portal-me__t { display: flex; flex-direction: column; line-height: 1.2; }
.portal-me__t b { color: #fff; font-size: 13px; }
.portal-me__t span { color: var(--faint); font-size: 11px; }
.portal-main { max-width: 1240px; margin: 0 auto; padding: 24px 20px 48px; }
@media (max-width: 760px) {
  .portal-top { flex-wrap: wrap; }
  .portal-nav { order: 3; width: 100%; margin: 0; }
  .portal-me { margin-left: auto; }
  .portal-me__t { display: none; }
}
.deal-board { display: grid; grid-template-columns: repeat(6, minmax(176px, 1fr)); gap: 12px; overflow-x: auto; padding-bottom: 8px; }
.deal-col { border: 1px solid var(--line); border-radius: 16px; background: rgba(0,0,0,.25); min-height: 220px; display: flex; flex-direction: column; }
.deal-col.drop { box-shadow: inset 0 0 0 1px rgba(143,124,253,.55); background: rgba(143,124,253,.06); }
.deal-col h3 { display: flex; justify-content: space-between; align-items: center; margin: 0; padding: 12px 14px; font: 400 9.5px var(--display); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--line); }
.deal-col h3 b { font: 500 11px var(--mono); color: var(--faint); letter-spacing: 0; }
.deal-col .sum { padding: 6px 14px; font: 500 11px var(--mono); color: var(--faint); border-bottom: 1px solid var(--line); }
.deal-list { padding: 10px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.deal-card { display: block; padding: 12px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--glass), var(--panel); cursor: grab; }
.deal-card:hover { border-color: rgba(143,124,253,.4); }
.deal-card b { display: block; color: #fff; font-size: 13px; font-weight: 600; margin-bottom: 4px; }
.deal-card span { display: block; color: var(--faint); font-size: 11.5px; }
.deal-card .row { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; }
.deal-card .val { font: 500 12px var(--mono); color: var(--violet-2); }
.deal-card.dragging { opacity: .5; }
input[type=date]::-webkit-calendar-picker-indicator, input[type=datetime-local]::-webkit-calendar-picker-indicator { filter: invert(.8); }

/* ── Branded confirm dialog (v1.5.1) ── */
.hz-dlg { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 20px; }
.hz-dlg[hidden] { display: none; }
.hz-dlg__back { position: absolute; inset: 0; background: rgba(3,4,8,.62); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; transition: opacity .16s ease; }
.hz-dlg__box { position: relative; width: min(460px, 100%); padding: 26px 26px 22px; border-radius: var(--radius); border: 1px solid var(--line-2); background: linear-gradient(180deg, rgba(28,29,42,.96), rgba(14,15,22,.98)); box-shadow: var(--hi), 0 40px 90px -30px rgba(0,0,0,.95), 0 0 0 1px rgba(143,124,253,.08); transform: translateY(10px) scale(.98); opacity: 0; transition: transform .18s cubic-bezier(.2,.8,.2,1), opacity .16s ease; }
.hz-dlg.open .hz-dlg__back { opacity: 1; }
.hz-dlg.open .hz-dlg__box { transform: none; opacity: 1; }
.hz-dlg__box::before { content: ""; position: absolute; left: 24px; right: 24px; top: -1px; height: 1px; background: var(--grad); opacity: .9; }
.hz-dlg.is-danger .hz-dlg__box::before { background: linear-gradient(90deg, transparent, var(--bad), transparent); }
.hz-dlg__icon { width: 38px; height: 38px; border-radius: 12px; margin-bottom: 14px; background: var(--grad); box-shadow: 0 10px 30px -12px rgba(143,124,253,.9); -webkit-mask: none; position: relative; }
.hz-dlg__icon::after { content: "?"; position: absolute; inset: 0; display: grid; place-items: center; font: 700 18px var(--font); color: #0b0b12; }
.hz-dlg.is-danger .hz-dlg__icon { background: rgba(255,91,110,.16); box-shadow: inset 0 0 0 1px rgba(255,91,110,.45); }
.hz-dlg.is-danger .hz-dlg__icon::after { content: "!"; color: #ff8a98; }
.hz-dlg h2 { margin: 8px 0 8px; font: 700 19px/1.3 var(--font); color: var(--text); letter-spacing: -.01em; }
.hz-dlg p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.55; }
.hz-dlg p:empty { display: none; }
.hz-dlg__actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 22px; }
.btn.danger.solid { background: linear-gradient(180deg, #ff6b7d, #e5485c); color: #fff; border-color: transparent; box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 10px 30px -12px rgba(255,91,110,.8); }
.btn.danger.solid:hover { filter: brightness(1.06); background: linear-gradient(180deg, #ff6b7d, #e5485c); }
@media (max-width: 480px) { .hz-dlg__actions { flex-direction: column-reverse; } .hz-dlg__actions .btn { width: 100%; } }
@media (prefers-reduced-motion: reduce) { .hz-dlg__back, .hz-dlg__box { transition: none; } }
