@font-face { font-family: "Sora"; src: url("../fonts/sora-latin.woff2") format("woff2"); font-weight: 100 800; font-display: swap; unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122; }
@font-face { font-family: "Sora"; src: url("../fonts/sora-latin-ext.woff2") format("woff2"); font-weight: 100 800; font-display: swap; unicode-range: U+0100-02AF, U+1E00-1EFF; }
@font-face { font-family: "Manrope"; src: url("../fonts/manrope-latin.woff2") format("woff2"); font-weight: 200 800; font-display: swap; unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122; }
@font-face { font-family: "Manrope"; src: url("../fonts/manrope-latin-ext.woff2") format("woff2"); font-weight: 200 800; font-display: swap; unicode-range: U+0100-02AF, U+1E00-1EFF; }

:root {
  --bg: #070a10; --surface: #0e131c; --surface-2: #151c28; --surface-3: #1f2937;
  --line: #222c3c; --line-2: #33425a;
  --text: #f1f5fb; --muted: #a6b2c4; --faint: #7c8aa1; --ink: #070a10;
  --accent: #1877f2; --accent-light: #6cb0ff; --accent-soft: rgba(24, 119, 242, .14); --on-accent: #ffffff;
  --good: #3ddc97; --warn: #ffb020; --bad: #ff7a88; --info: var(--accent-light); --danger: #d92c3f;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --font: "Manrope", "Segoe UI", system-ui, sans-serif;
  --display: "Sora", "Manrope", "Segoe UI", system-ui, sans-serif;
  --gutter: 28px;
  --page: 1260px;
  color-scheme: dark;
}

@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out .14s ease both; }
::view-transition-new(root) { animation: vt-in .2s var(--ease) both; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; } }

* { box-sizing: border-box; }
html { scrollbar-color: var(--line-2) var(--bg); scrollbar-width: thin; }
body { margin: 0; background: var(--bg); color: var(--text); font: 500 15px/1.55 var(--font); -webkit-font-smoothing: antialiased; }
::selection { background: var(--accent); color: #fff; }
a { color: var(--accent-light); text-decoration: none; }
a:hover { text-decoration: none; color: var(--accent); }
h1, h2, h3 { font-family: var(--display); font-weight: 800; letter-spacing: -.035em; }
h1 { font-size: clamp(38px, 5.4vw, 76px); line-height: 1; margin: 0; }
h2 { font-size: 22px; line-height: 1.15; margin: 0 0 16px; }
h3 { font-size: 16px; margin: 0 0 6px; }
p { margin: 0 0 10px; }
code { background: var(--surface-3); padding: 2px 7px; border-radius: 5px; font: 500 12.5px ui-monospace, Consolas, monospace; overflow-wrap: anywhere; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.right { text-align: right; }
.nowrap { white-space: nowrap; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.i { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; vertical-align: -3px; }
.ia { fill: var(--ia, var(--accent)); stroke: none; }
.is { stroke: var(--ia, var(--accent)); stroke-width: 2.1; fill: none; }

.top-progress { position: fixed; left: 0; top: 0; height: 3px; width: 0; z-index: 100; background: #fff; opacity: 0; }
.top-progress.run { opacity: 1; width: 82%; transition: width 2.4s cubic-bezier(.1, .7, .2, 1); }

/* Structure */
.shell { display: flex; min-height: 100vh; }
.sidebar { width: 256px; flex: none; background: var(--bg); border-right: 1px solid var(--line); padding: 14px 12px 18px; position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; }
.brand { display: flex; align-items: center; gap: 10px; font: 800 17px var(--display); padding: 2px 6px 16px; color: var(--text); letter-spacing: -.03em; }
.brand:hover { text-decoration: none; }
.brand small { display: block; font: 700 10.5px var(--font); letter-spacing: 0; color: var(--muted); }
.brand-logo { display: block; height: 62px; width: auto; flex: none; }
.sidebar .brand { flex-direction: column; align-items: flex-start; gap: 0; }
.sidebar .brand-logo { height: 84px; }
.topbar .brand { padding: 0; color: var(--ink); }
.logo-mark { display: block; width: 70%; height: 70%; object-fit: contain; }
.nav-guild { display: flex; align-items: center; gap: 10px; border-block: 1px solid var(--line); padding: 10px 6px; margin-bottom: 4px; }
.nav-guild strong { font: 700 14px var(--display); letter-spacing: -.02em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-guild .guild-icon { width: 30px; height: 30px; border-radius: 8px; }
.nav-label { font: 600 11px ui-monospace, Consolas, monospace; color: var(--faint); padding: 16px 10px 6px; }
.nav a { display: flex; align-items: center; gap: 11px; padding: 8px 10px; border-radius: 8px; color: var(--muted); font-weight: 700; font-size: 14px; margin-bottom: 1px; transition: background .12s, color .12s, padding-left .2s var(--ease); --ia: currentColor; }
.nav a > span:first-of-type { flex: 1; min-width: 0; }
.nav a:hover { background: var(--surface-2); color: var(--text); text-decoration: none; padding-left: 14px; }
.nav a.active, .nav a.active:hover { background: var(--accent); color: #fff; padding-left: 10px; }
.nav-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--good); flex: none; }
.nav a.active .nav-dot { background: #fff; }
.nav-lock { color: var(--faint); display: flex; }
.nav-lock .i { width: 14px; height: 14px; }
.nav a.active .nav-lock { color: #fff; }
.mode-pill { margin: auto 6px 0; padding-top: 12px; border-top: 1px solid var(--line); font: 600 12px ui-monospace, Consolas, monospace; color: var(--warn); display: flex; align-items: center; gap: 8px; }
.mode-pill.is-live { color: var(--good); }
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }

/* The top bar flows straight into the accent title band */
.topbar { display: flex; align-items: center; gap: 10px; padding: 8px var(--gutter); background: var(--accent); color: var(--ink); position: sticky; top: 0; z-index: 15; }
.topbar .spacer { flex: 1; }
.topbar form { margin: 0; }
.topbar .btn { background: transparent; color: var(--ink); border-color: rgba(7, 10, 16, .45); --ia: var(--ink); }
.topbar .btn:hover { background: var(--ink); border-color: var(--ink); color: #fff; --ia: #fff; }
.topbar .btn-primary { background: var(--ink); color: #fff; border-color: var(--ink); --ia: var(--accent); }
.user-chip { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 800; color: var(--ink); }
.user-chip small { display: block; font-size: 11px; font-weight: 700; }
.avatar { width: 32px; height: 32px; border-radius: 8px; background: var(--ink); color: #fff; display: grid; place-items: center; font: 800 13px var(--display); }
.no-sidebar .topbar { padding-inline: max(var(--gutter), calc((100% - var(--page)) / 2)); }

.content { padding: 0 0 70px; width: 100%; }
body:not(.page-home) .content > :not(.page-head):not(dialog):not(.stage) { width: min(var(--page), calc(100% - 2 * var(--gutter))); margin-inline: auto; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 18px; flex-wrap: wrap; background: var(--accent); color: var(--ink); padding: 22px max(var(--gutter), calc((100% - var(--page)) / 2)) 34px; margin-bottom: 30px; }
.page-head h1 { color: var(--ink); overflow-wrap: anywhere; }
.page-head .muted, .page-head p { color: var(--ink); font-weight: 650; margin: 8px 0 0; }
.page-head code { background: var(--ink); color: #fff; }
.page-head .badge { background: var(--ink); color: #fff; }
.page-head .btn { background: var(--ink); color: #fff; border-color: var(--ink); --ia: var(--accent); }
.page-head .btn:hover { background: var(--surface-3); border-color: var(--surface-3); color: #fff; }
.page-head .btn-sm { background: transparent; color: var(--ink); border: 2px solid var(--ink); --ia: var(--ink); }
.page-head .btn-sm:hover { background: var(--ink); color: #fff; }
.content > h2, .section-head h2 { font-size: clamp(24px, 3vw, 38px); margin-top: 34px; margin-bottom: 16px; }
.section-head { margin: 34px 0 16px; }
.btn.menu-toggle { display: none; }
.scrim { display: none; }

/* Blocks */
.card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 22px; margin-bottom: 18px; }
.grid { display: grid; gap: 16px; margin-bottom: 18px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
.grid > .card { margin-bottom: 0; }
.reveal { animation: reveal .4s var(--ease) both; animation-delay: var(--delay, 0ms); }
@keyframes reveal { from { opacity: 0; transform: translateY(8px); } }

/* Stats glued edge to edge */
.grid-stats { grid-template-columns: repeat(auto-fill, minmax(min(190px, 42%), 1fr)); gap: 0; padding: 1px 0 0 1px; margin-bottom: 26px; }
.card.stat { border-radius: 0; margin: -1px 0 0 -1px; background: var(--bg); padding: 18px 20px; display: flex; flex-direction: column; gap: 14px; transition: background .15s; }
.card.stat:hover { background: var(--accent); color: #fff; z-index: 1; border-color: var(--accent); --ia: #fff; }
.card.stat:hover .stat-label, .card.stat:hover .stat-sub { color: #fff; }
.card.stat:hover .badge { background: var(--ink); color: #fff; }
.tile { display: inline-flex; color: var(--text); flex: none; }
.tile .i { width: 22px; height: 22px; }
.tile-danger { color: var(--bad); --ia: var(--bad); }
.stat-body { min-width: 0; }
.stat-label { color: var(--muted); font-size: 13px; font-weight: 700; }
.stat-value { font: 800 clamp(24px, 2.2vw, 30px)/1.1 var(--display); letter-spacing: -.04em; margin-top: 4px; font-variant-numeric: tabular-nums; overflow-wrap: break-word; }
.stat-value .badge { font-size: 13px; letter-spacing: 0; }
.stat-sub { color: var(--faint); font-size: 12.5px; margin-top: 2px; }
.feature-card .tile, .plan-card .tile { margin-bottom: 12px; }

/* Buttons */
.btn { position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--line-2); background: transparent; color: var(--text); padding: 9px 16px; border-radius: 10px; font: 700 13.5px var(--font); cursor: pointer; transition: background .12s, color .12s, border-color .12s, transform .12s; user-select: none; white-space: nowrap; }
.btn:hover { border-color: var(--text); background: var(--surface-2); text-decoration: none; }
.btn:active { transform: scale(.97); }
.btn:focus-visible, input:focus-visible, textarea:focus-visible, a:focus-visible, .cs-btn:focus-visible, th:focus-visible, summary:focus-visible { outline: 2px solid var(--accent-light); outline-offset: 2px; }
.btn-primary { background: var(--accent); color: var(--on-accent); border-color: var(--accent); --ia: #fff; }
.btn-primary:hover { background: color-mix(in srgb, var(--accent) 84%, #000); border-color: color-mix(in srgb, var(--accent) 84%, #000); color: var(--on-accent); }
.btn-danger { color: var(--bad); border-color: var(--bad); --ia: var(--bad); }
.btn-danger:hover { background: var(--bad); color: var(--ink); border-color: var(--bad); --ia: var(--ink); }
.btn-ghost { background: transparent; }
.btn-icon { padding: 0; width: 38px; height: 38px; }
.btn-sm { padding: 5px 11px; font-size: 12.5px; border-radius: 8px; }
.btn-sm .i { width: 15px; height: 15px; }
.btn-lg { padding: 13px 22px; font-size: 15px; border-radius: 11px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; }
.btn.loading .i { display: none; }
.btn.loading::before { content: ""; width: 15px; height: 15px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
.ripple { position: absolute; border-radius: 50%; background: currentColor; opacity: .2; transform: scale(0); animation: ripple .5s ease-out forwards; pointer-events: none; }
@keyframes ripple { to { transform: scale(1); opacity: 0; } }
@keyframes spin { to { transform: rotate(360deg); } }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.actions form { margin: 0; }
.actions input[type=password], .actions .cs { width: auto; min-width: 130px; }

/* Badges */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 2px 9px; border-radius: 6px; font: 700 12px var(--font); letter-spacing: 0; white-space: nowrap; background: var(--surface-3); }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-good { color: var(--good); } .badge-warn { color: var(--warn); } .badge-bad { color: var(--bad); }
.badge-info { color: var(--info); } .badge-muted { color: var(--muted); }
.badge-premium { color: #fff; background: var(--accent); }
.badge-premium::before { display: none; }
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--faint); display: inline-block; flex: none; }
.pulse-dot.is-on { background: currentColor; animation: blink 2s infinite; }
@keyframes blink { 50% { opacity: .35; } }

/* Forms */
label { display: block; font-weight: 700; font-size: 13px; margin-bottom: 6px; color: var(--text); }
.field:focus-within > label { color: var(--accent-light); }
input[type=text], input[type=password], input[type=number], input[type=url], input[type=search], textarea, .cs-btn {
  width: 100%; background: var(--bg); border: 1px solid var(--line-2); color: var(--text); border-radius: 10px; padding: 10px 13px; font: 600 14px var(--font); transition: border-color .12s; appearance: none;
}
input::placeholder, textarea::placeholder { color: var(--faint); font-weight: 500; }
input:hover, textarea:hover, .cs-btn:hover { border-color: var(--muted); }
input[type=text]:focus, input[type=password]:focus, input[type=number]:focus, input[type=url]:focus, input[type=search]:focus, textarea:focus, .cs.open .cs-btn { outline: none; border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
input:disabled, textarea:disabled { opacity: .55; cursor: not-allowed; }
input[type=number]::-webkit-inner-spin-button, input[type=number]::-webkit-outer-spin-button { appearance: none; margin: 0; }
input[type=number] { -moz-appearance: textfield; text-align: center; }
input[type=search] { padding-left: 38px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231877f2' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='M15.5 15.5l5 5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-size: 17px; background-position: 13px center; }
input[type=search]::-webkit-search-cancel-button { display: none; }
textarea { min-height: 96px; resize: vertical; line-height: 1.5; }
.field { margin-bottom: 16px; position: relative; }
.help { color: var(--muted); font-size: 12.5px; margin-top: 5px; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0 16px; }
.locked { opacity: .55; }
.counter { position: absolute; right: 2px; top: 0; font: 500 11px ui-monospace, Consolas, monospace; color: var(--faint); }
.counter.near { color: var(--warn); }

.check { display: flex; align-items: center; gap: 11px; font-weight: 700; font-size: 14px; margin-bottom: 14px; cursor: pointer; }
.card > .check:last-child, .filter-card > .check:last-child { margin-bottom: 0; }
input[type=checkbox] { appearance: none; position: relative; flex: none; width: 40px; height: 23px; margin: 0; border-radius: 6px; background: var(--surface-3); border: 1px solid var(--line-2); cursor: pointer; transition: background .15s, border-color .15s; }
input[type=checkbox]::after { content: ""; position: absolute; left: 2px; top: 2px; width: 17px; height: 17px; border-radius: 4px; background: var(--muted); transition: transform .25s var(--spring), background .12s; }
input[type=checkbox]:checked { background: var(--accent); border-color: var(--accent); }
input[type=checkbox]:checked::after { background: #fff; transform: translateX(17px); }
input[type=checkbox]:focus-visible { outline: 2px solid var(--accent-light); outline-offset: 2px; }
input[type=checkbox]:disabled { opacity: .5; cursor: not-allowed; }

select.cs-native { position: absolute; opacity: 0; pointer-events: none; width: 1px; height: 1px; }
.cs { position: relative; width: 100%; }
.cs-btn { display: flex; align-items: center; justify-content: space-between; gap: 8px; cursor: pointer; text-align: left; min-height: 41px; }
.cs-btn:disabled { opacity: .55; cursor: not-allowed; }
.cs-btn > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cs-btn .placeholder { color: var(--faint); }
.cs-btn .i { width: 15px; height: 15px; color: var(--muted); transition: transform .2s var(--ease); }
.cs.open .cs-btn .i { transform: rotate(180deg); color: var(--accent-light); }
.cs-menu { position: fixed; z-index: 60; max-height: 270px; overflow-y: auto; background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 10px; padding: 5px; box-shadow: 0 16px 34px rgba(0, 0, 0, .55); animation: menu-in .14s var(--ease); }
.cs-search { margin-bottom: 5px; padding: 7px 10px 7px 34px !important; font-size: 13px !important; }
@keyframes menu-in { from { opacity: 0; transform: translateY(-4px); } }
.cs-opt { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 10px; border-radius: 7px; cursor: pointer; font-size: 13.5px; font-weight: 650; }
.cs-opt:hover, .cs-opt.focus { background: var(--accent); color: #fff; --ia: #fff; }
.cs-opt .i { width: 15px; height: 15px; opacity: 0; --ia: currentColor; }
.cs-opt[aria-selected="true"] .i { opacity: 1; }
.cs-empty { padding: 10px; color: var(--muted); font-size: 13px; }
.cs-chips { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; min-width: 0; }
.chip { display: inline-flex; background: var(--accent); color: #fff; border-radius: 5px; padding: 1px 8px; font-size: 12.5px; font-weight: 700; }

.stepper { display: flex; align-items: stretch; }
.stepper input { border-radius: 0; border-inline: 0; min-width: 0; }
.stepper button { flex: none; width: 36px; background: var(--surface-2); border: 1px solid var(--line-2); color: var(--muted); cursor: pointer; display: grid; place-items: center; transition: background .12s, color .12s; }
.stepper button:first-child { border-radius: 10px 0 0 10px; }
.stepper button:last-child { border-radius: 0 10px 10px 0; }
.stepper button:hover { background: var(--accent); border-color: var(--accent); color: #fff; --ia: #fff; }
.stepper .i { width: 14px; height: 14px; }
.pw-wrap { position: relative; display: block; flex: 1; }
.pw-wrap input { padding-right: 42px; }
.pw-toggle { position: absolute; right: 5px; top: 50%; translate: 0 -50%; width: 32px; height: 32px; background: transparent; border: 0; border-radius: 7px; color: var(--muted); cursor: pointer; display: grid; place-items: center; }
.pw-toggle:hover { background: var(--surface-3); color: var(--text); }
input[type=color] { appearance: none; width: 100%; max-width: 210px; height: 41px; padding: 4px; background: var(--bg); border: 1px solid var(--line-2); border-radius: 10px; cursor: pointer; }
input[type=color]:hover { border-color: var(--muted); }
input[type=color]::-webkit-color-swatch-wrapper { padding: 0; }
input[type=color]::-webkit-color-swatch { border: 0; border-radius: 6px; }
.filter-card { border: 1px solid var(--line); border-radius: 12px; padding: 15px; background: var(--bg); transition: border-color .15s; }
.filter-card:has(> .check input:checked) { border-color: var(--accent); }
.filter-card .help { margin: -8px 0 12px; }
.filter-card .form-grid { grid-template-columns: repeat(auto-fit, minmax(135px, 1fr)); margin-top: 12px; }
.filter-card .field { margin-bottom: 8px; }
.repeater-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)) auto; gap: 12px; align-items: end; border-top: 1px solid var(--line); padding: 14px 0; animation: reveal .25s var(--ease); }
.repeater-row .field { margin-bottom: 0; }
.filters { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; align-items: flex-end; }
.filters .field { margin: 0; flex: 1 1 170px; }

/* Tables */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; color: var(--text); font: 800 13px var(--display); letter-spacing: -.01em; padding: 10px 12px; border-bottom: 2px solid var(--line-2); white-space: nowrap; }
th.sortable { cursor: pointer; user-select: none; }
th.sortable:hover { color: var(--accent-light); }
th.sortable::after { content: "↕"; margin-left: 5px; opacity: .35; }
th[aria-sort="ascending"]::after { content: "↑"; opacity: 1; color: var(--accent-light); }
th[aria-sort="descending"]::after { content: "↓"; opacity: 1; color: var(--accent-light); }
td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: middle; overflow-wrap: break-word; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: var(--surface-2); }

.empty { color: var(--muted); padding: 34px 16px; text-align: center; }
.pagination { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 14px; flex-wrap: wrap; }

/* Charts */
.chart { position: relative; height: 210px; }
.chart svg { display: block; width: 100%; height: 100%; }
.chart-tip { position: absolute; pointer-events: none; background: #fff; color: var(--ink); border-radius: 6px; padding: 4px 9px; font-size: 12px; font-weight: 800; white-space: nowrap; transform: translate(-50%, -115%); z-index: 2; }
.chart-bar { pointer-events: none; transform-box: fill-box; transform-origin: bottom; animation: grow .5s var(--ease) both; }
.chart-bar.is-active { filter: brightness(1.35); }
@keyframes grow { from { transform: scaleY(0); } }
.chart-hit { fill: transparent; cursor: crosshair; }
.chart-axis { fill: var(--faint); font-size: 10.5px; font-weight: 600; font-family: var(--font); }
.chart-grid { stroke: var(--line); stroke-width: 1; }
.stop-a, .stop-b { stop-color: var(--accent); }

/* Components */
.guild-row { display: flex; align-items: center; gap: 12px; font-weight: 700; }
.guild-icon { width: 38px; height: 38px; border-radius: 9px; background: var(--accent); color: #fff; flex: none; display: grid; place-items: center; font: 800 15px var(--display); object-fit: cover; }
.price { font: 800 44px/1 var(--display); letter-spacing: -.05em; margin: 4px 0; }
.plan-card { display: flex; flex-direction: column; }
.plan-card > p { margin-top: 10px; }
.check-list { list-style: none; padding: 16px 0 0; margin: 4px 0 18px; display: grid; gap: 8px; font-size: 14px; border-top: 1px solid var(--line); }
.check-list li { display: flex; gap: 9px; }
.check-list .i { width: 16px; height: 16px; margin-top: 2px; }
.plan-card form, .plan-card > .badge { margin-top: auto; align-self: flex-start; }

/* Entry pages: accent poster with the form beside it */
.stage { background: var(--accent); color: var(--ink); min-height: calc(100vh - 78px); margin-bottom: -70px; padding: 24px max(var(--gutter), calc((100% - var(--page)) / 2)) 78px; display: grid; grid-template-columns: minmax(0, 7fr) minmax(300px, 5fr); gap: 44px; align-items: center; }
.stage-title { font: 800 clamp(52px, 8.4vw, 136px)/.92 var(--display); letter-spacing: -.05em; margin: 0; color: var(--ink); overflow-wrap: anywhere; }
.stage-title span { color: #fff; display: block; }
.stage-panel { background: var(--bg); color: var(--text); border-radius: 16px; padding: 26px; }
.stage-panel h2 { margin-bottom: 8px; }
.stage-panel form { margin-top: 18px; }
.stage-panel .btn-primary { margin-top: 2px; }
.stage-alt { margin-top: 10px; }
.stage-solo { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 0; }
.stage-solo .stage-title { margin-bottom: 26px; }
.stage-solo p { font-size: clamp(17px, 1.6vw, 21px); font-weight: 650; max-width: 48ch; margin: 0 0 26px; }
.stage-solo .btn { background: var(--ink); color: #fff; border-color: var(--ink); --ia: var(--accent); }
.stage-solo .btn:hover { background: var(--surface-3); border-color: var(--surface-3); color: #fff; }

.log-line { font: 500 12.5px/1.6 ui-monospace, Consolas, monospace; padding: 3px 8px; overflow-wrap: anywhere; color: var(--muted); }
.log-line:hover { background: var(--surface-2); color: var(--text); }
.log-box { max-height: 420px; overflow-y: auto; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 8px; }
.alert { display: flex; gap: 11px; align-items: flex-start; padding: 12px 15px; border-radius: 10px; border: 1px solid var(--line-2); margin-bottom: 16px; font-size: 14px; font-weight: 600; }
.alert .i { margin-top: 2px; }
.alert > a { margin-left: auto; white-space: nowrap; }
.alert-warn { border-color: var(--warn); --ia: var(--warn); }
.alert-bad { border-color: var(--bad); --ia: var(--bad); }
.danger-zone { border-color: var(--bad); }
.danger-head { display: flex; gap: 14px; align-items: center; margin-bottom: 12px; }
.danger-head h2 { margin: 0 0 2px; }
.danger-head p { margin: 0; }
.danger-list { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 6px; font-size: 14px; color: var(--muted); }
.danger-list li { display: flex; gap: 8px; align-items: flex-start; }
.danger-list .i { width: 15px; height: 15px; margin-top: 3px; --ia: var(--bad); }

/* Toasts and dialogs */
.toasts { position: fixed; right: 18px; bottom: 18px; display: flex; flex-direction: column; gap: 8px; z-index: 70; max-width: calc(100vw - 36px); width: 370px; }
.toast { position: relative; overflow: hidden; display: flex; gap: 11px; background: #fff; color: var(--ink); border-radius: 10px; padding: 13px 15px; font-size: 14px; font-weight: 700; box-shadow: 0 14px 34px rgba(0, 0, 0, .5); animation: toast-in .25s var(--ease); --tone: #1160c0; --ia: var(--tone); }
.toast .i { color: var(--tone); margin-top: 1px; }
.toast::after { content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: var(--tone); transform-origin: left; animation: toast-time var(--life, 5s) linear forwards; }
.toast-good { --tone: #047857; } .toast-bad { --tone: var(--danger); } .toast-warn { --tone: #a86700; }
.toast.out { animation: toast-out .2s var(--ease) forwards; }
@keyframes toast-in { from { transform: translateX(30px); opacity: 0; } }
@keyframes toast-out { to { transform: translateX(30px); opacity: 0; } }
@keyframes toast-time { to { transform: scaleX(0); } }
dialog { background: var(--surface); color: var(--text); border: 1px solid var(--line-2); border-radius: 16px; padding: 26px; width: min(470px, calc(100vw - 32px)); }
dialog[open] { animation: dialog-in .22s var(--ease); }
dialog::backdrop { background: rgba(3, 5, 9, .78); animation: fade .15s; }
@keyframes dialog-in { from { opacity: 0; transform: translateY(10px); } }
@keyframes fade { from { opacity: 0; } }
.dialog-icon { color: var(--accent-light); margin-bottom: 12px; --ia: var(--accent); }
.dialog-icon .i { width: 32px; height: 32px; }
dialog h2 { font-size: 26px; margin-bottom: 8px; }
dialog p { margin-bottom: 20px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  @view-transition { navigation: none; }
}
@media (max-width: 900px) {
  :root { --gutter: 16px; }
  .sidebar { position: fixed; left: 0; top: 0; z-index: 40; transform: translateX(-102%); transition: transform .25s var(--ease); }
  .sidebar.open { transform: none; }
  .scrim.open { display: block; position: fixed; inset: 0; background: rgba(3, 5, 9, .7); z-index: 30; }
  .btn.menu-toggle { display: inline-flex; }
  .topbar { padding-block: 10px; }
  .grid-2 { grid-template-columns: 1fr; }
  .user-chip-text, .hide-sm { display: none; }
  .stage { grid-template-columns: 1fr; align-items: start; }
}

