/* OpenDesk — visual system
   A dark, instrument-like console. One signal colour (lime) marks the thing you can act on;
   every device gets its own aurora hue so the stage is recognisable at a glance. */
:root {
  --bg: #08090b;
  --panel: #0f1114;
  --panel-2: #15181c;
  --panel-3: #1c2025;
  --line: rgba(255, 255, 255, .07);
  --line-2: rgba(255, 255, 255, .13);
  --text: #f3f4f6;
  --text-2: #a3a9b4;
  --text-3: #666d79;
  --accent: #c9f85f;
  --accent-ink: #101a02;
  --accent-text: #c9f85f;
  --accent-glow: rgba(201, 248, 95, .22);
  --live: #4ade80;
  --warn: #f5b84a;
  --danger: #ff6b5e;
  --shadow: 0 24px 60px -20px rgba(0, 0, 0, .7);
  --r-lg: 22px;
  --r: 14px;
  --r-sm: 10px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Segoe UI", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
  --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "Segoe UI", "Microsoft YaHei", system-ui, sans-serif;
  --mono: "SF Mono", ui-monospace, "JetBrains Mono", Menlo, Consolas, monospace;
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f3f4f6;
    --panel: #ffffff;
    --panel-2: #f7f8f9;
    --panel-3: #eef0f2;
    --line: rgba(12, 14, 18, .08);
    --line-2: rgba(12, 14, 18, .16);
    --text: #0b0d10;
    --text-2: #4d5460;
    --text-3: #8a909b;
    --accent-text: #3f6f00;
    --accent-glow: rgba(150, 210, 30, .28);
    --live: #16a34a;
    --warn: #b7791f;
    --danger: #d43a2c;
    --shadow: 0 24px 60px -24px rgba(12, 14, 18, .28);
    color-scheme: light;
  }
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 14.5px/1.5 var(--font); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  -webkit-tap-highlight-color: transparent;
}
h1, h2, h3, p, dl, dd { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--accent-text); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 8px; }
::selection { background: var(--accent); color: var(--accent-ink); }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: .01em; }
.muted { color: var(--text-3); }
svg { display: block; }

kbd {
  font: 600 11px/1 var(--mono); padding: 3px 5px; border-radius: 5px; color: var(--text-3);
  background: var(--panel-3); border: 1px solid var(--line-2); border-bottom-width: 2px;
}

/* ---------- controls ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 38px; padding: 0 15px; border-radius: var(--r-sm);
  border: 1px solid var(--line-2); background: var(--panel-2); color: var(--text);
  font-weight: 600; font-size: 13.5px; white-space: nowrap;
  transition: background .15s, border-color .15s, transform .1s var(--ease);
}
.btn:hover { background: var(--panel-3); text-decoration: none; }
.btn:active { transform: scale(.98); }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn.primary { background: var(--accent); border-color: transparent; color: var(--accent-ink); }
.btn.primary:hover { filter: brightness(1.07); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--text-2); }
.btn.ghost:hover { background: var(--panel-3); color: var(--text); }
.btn.danger { color: var(--danger); }
.btn.sm { height: 30px; padding: 0 10px; font-size: 12.5px; border-radius: 8px; }
.btn svg { width: 16px; height: 16px; flex: none; }

.field { display: grid; gap: 7px; }
.field > span { font-size: 12.5px; color: var(--text-2); font-weight: 600; }
.field small { color: var(--text-3); font-size: 12px; line-height: 1.45; }
.input {
  width: 100%; height: 42px; padding: 0 13px; border-radius: var(--r-sm);
  border: 1px solid var(--line-2); background: var(--panel-2); color: var(--text);
  transition: border-color .15s, box-shadow .15s;
}
.input::placeholder { color: var(--text-3); }
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-glow); }
.err { color: var(--danger); font-size: 12.5px; min-height: 18px; }

.switch { position: relative; width: 42px; height: 24px; flex: none; display: block; }
.switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.switch span { position: absolute; inset: 0; border-radius: 999px; background: var(--panel-3); border: 1px solid var(--line-2); transition: background .2s; }
.switch span::after {
  content: ""; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--text-2); transition: translate .2s var(--ease), background .2s;
}
.switch input:checked + span { background: var(--accent); border-color: transparent; }
.switch input:checked + span::after { translate: 18px 0; background: var(--accent-ink); }
.switch input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- auth: always dark, it is the brand moment ---------- */
.auth {
  --text: #f3f4f6; --text-2: #a3a9b4; --text-3: #6b7280; --panel-2: rgba(255, 255, 255, .05); --panel-3: rgba(255, 255, 255, .09);
  --line-2: rgba(255, 255, 255, .14); --accent-text: #c9f85f; --danger: #ff8a7f; --accent-glow: rgba(201, 248, 95, .2);
  position: relative; min-height: 100dvh; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  background: #060709; color: var(--text); overflow: hidden; color-scheme: dark;
}
.auth::before {
  content: ""; position: absolute; inset: -20%;
  background:
    radial-gradient(38% 42% at 22% 30%, rgba(201, 248, 95, .26), transparent 70%),
    radial-gradient(34% 40% at 62% 72%, rgba(64, 160, 255, .22), transparent 70%),
    radial-gradient(30% 34% at 80% 18%, rgba(170, 110, 255, .2), transparent 70%);
  filter: blur(30px); animation: drift 22s ease-in-out infinite alternate;
}
.auth::after {
  content: ""; position: absolute; inset: 0; opacity: .5;
  background-image: radial-gradient(rgba(255, 255, 255, .09) 1px, transparent 1px); background-size: 22px 22px;
  mask-image: radial-gradient(120% 90% at 30% 40%, #000 20%, transparent 75%);
}
@keyframes drift { to { transform: translate3d(4%, -3%, 0) rotate(6deg) scale(1.08); } }
.auth-pitch { position: relative; z-index: 1; padding: clamp(28px, 6vw, 72px); display: flex; flex-direction: column; justify-content: space-between; gap: 40px; }
.wordmark { color: inherit; text-decoration: none; }
.wordmark { display: flex; align-items: center; gap: 11px; font: 650 16px/1 var(--display); letter-spacing: .01em; }
.wordmark svg { width: 30px; height: 30px; }
.auth-pitch h1 { font: 650 clamp(34px, 5vw, 60px)/1.08 var(--display); letter-spacing: -.03em; max-width: 12em; text-wrap: balance; }
.auth-pitch h1 em { font-style: normal; color: var(--accent); }
.auth-points { display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--text-2); font-size: 13px; list-style: none; padding: 0; margin: 0; }
.auth-points li { display: flex; align-items: center; gap: 8px; }
.auth-points li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-glow); }
.auth-side { position: relative; z-index: 1; display: grid; place-items: center; padding: 24px; }
.auth-card {
  width: min(380px, 100%); padding: 30px 28px; border-radius: 24px; display: grid; gap: 20px;
  background: rgba(16, 18, 22, .72); border: 1px solid rgba(255, 255, 255, .1);
  backdrop-filter: blur(28px) saturate(1.3); box-shadow: 0 40px 80px -30px #000, inset 0 1px 0 rgba(255, 255, 255, .08);
}
.auth-card h2 { font: 650 21px/1.25 var(--display); letter-spacing: -.01em; }
.auth-card form { display: grid; gap: 14px; }
.auth-card .btn.primary { height: 44px; font-size: 14.5px; margin-top: 2px; }
.auth-foot { font-size: 12.5px; color: var(--text-3); text-align: center; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--accent-text); font-weight: 600; }

/* ---------- shell: sidebar lists every computer, main shows the selected one ---------- */
.shell { display: grid; grid-template-columns: 272px minmax(0, 1fr); min-height: 100dvh; }
.side {
  position: sticky; top: 0; height: 100dvh; min-width: 0; display: flex; flex-direction: column;
  background: var(--panel); border-right: 1px solid var(--line);
}
.side-head { padding: 18px 16px 10px; display: grid; gap: 14px; }
.search { position: relative; }
.search > svg { position: absolute; left: 11px; top: 50%; translate: 0 -50%; width: 15px; height: 15px; color: var(--text-3); pointer-events: none; }
.search .input { height: 34px; padding: 0 38px 0 32px; font-size: 13px; border-radius: 9px; }
.search kbd { position: absolute; right: 8px; top: 50%; translate: 0 -50%; }
.side-scroll { flex: 1; overflow-y: auto; padding: 0 8px 16px; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
.sec-head {
  display: flex; align-items: center; justify-content: space-between; padding: 16px 10px 6px;
  font-size: 11.5px; font-weight: 650; letter-spacing: .06em; color: var(--text-3);
}
.sec-head span:last-child { font-family: var(--mono); letter-spacing: 0; }
.srow {
  position: relative; display: flex; align-items: center; gap: 10px; width: 100%; min-height: 36px; padding: 5px 10px;
  border: 0; border-radius: 10px; background: none; text-align: left; color: var(--text-2);
  font-weight: 550; font-size: 13.5px; transition: background .12s, color .12s;
}
.srow:hover { background: var(--panel-2); color: var(--text); }
.srow[aria-current="page"] { background: var(--panel-3); color: var(--text); }
.srow[aria-current="page"]::before {
  content: ""; position: absolute; left: -8px; top: 9px; bottom: 9px; width: 3px; border-radius: 0 3px 3px 0; background: var(--accent);
}
.srow .name { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.srow > svg { width: 18px; height: 18px; margin: 0 4px; flex: none; }
.srow .st { width: 7px; height: 7px; border-radius: 50%; flex: none; background: var(--text-3); opacity: .45; }
.srow .st.on { background: var(--live); opacity: 1; box-shadow: 0 0 0 3px color-mix(in srgb, var(--live) 22%, transparent); }
.srow.offline { color: var(--text-3); }
.srow .n { font: 600 11px/1 var(--mono); color: var(--warn); }
.tile {
  --hue: 80; width: 40px; height: 40px; border-radius: 11px; flex: none; display: grid; place-items: center; color: #fff;
  background: linear-gradient(140deg, hsl(var(--hue) 78% 58%), hsl(calc(var(--hue) + 48) 80% 42%));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), 0 4px 12px -4px hsl(var(--hue) 80% 40% / .7);
}
.tile svg { width: 21px; height: 21px; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .25)); }
.srow .tile { width: 26px; height: 26px; border-radius: 7px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28); }
.srow .tile svg { width: 14px; height: 14px; }
.offline .tile { filter: grayscale(1) brightness(.8); box-shadow: none; opacity: .65; }
.side-foot { padding: 8px; border-top: 1px solid var(--line); }
.avatar {
  width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; flex: none;
  font: 700 11.5px/1 var(--display); color: var(--accent-ink);
  background: linear-gradient(135deg, var(--accent), #6ee7b7);
}
.side-foot small { color: var(--text-3); font-size: 11.5px; font-weight: 500; }
.main { min-width: 0; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  height: 56px; padding: 0 clamp(16px, 3.5vw, 44px);
  background: color-mix(in srgb, var(--bg) 78%, transparent); backdrop-filter: blur(18px) saturate(1.3);
  border-bottom: 1px solid var(--line);
}
.topbar-title { display: flex; align-items: center; gap: 10px; min-width: 0; }
.topbar-title h1 { font: 650 15px/1.2 var(--display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar-actions { display: flex; align-items: center; gap: 6px; }
.back { display: none; }
.content { padding: 24px clamp(16px, 3.5vw, 44px) 64px; }
.tabbar { display: none; }
.live-count { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 600; color: var(--text-2); }
.pulse { position: relative; width: 7px; height: 7px; border-radius: 50%; background: var(--live); flex: none; }
.pulse::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1.5px solid var(--live); opacity: 0; animation: ping 2.4s var(--ease) infinite; }
@keyframes ping { 0% { transform: scale(.5); opacity: .7; } 100% { transform: scale(1.5); opacity: 0; } }

/* ---------- all devices ---------- */
.mobile-search { display: none; }
.all { max-width: 780px; margin: 0 auto; display: grid; gap: 14px; }
.all-tools { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.seg { display: inline-flex; padding: 3px; border-radius: 10px; background: var(--panel); border: 1px solid var(--line); }
.seg button {
  border: 0; background: none; padding: 5px 12px; border-radius: 7px; font-size: 12.5px; font-weight: 600; color: var(--text-3);
  display: inline-flex; align-items: center; gap: 6px; transition: color .15s, background .15s;
}
.seg button:hover { color: var(--text); }
.seg button[aria-pressed="true"] { background: var(--panel-3); color: var(--text); }
.seg .n { font: 600 11px/1 var(--mono); color: var(--warn); }
.group-head {
  display: flex; align-items: center; justify-content: space-between; padding: 12px 4px 0;
  font-size: 11.5px; font-weight: 650; letter-spacing: .06em; color: var(--text-3);
}
.group-head span:last-child { font-family: var(--mono); letter-spacing: 0; }
.arows { display: grid; gap: 8px; }
.arow {
  display: flex; align-items: center; gap: 14px; width: 100%; padding: 12px 14px; text-align: left;
  border-radius: var(--r); border: 1px solid var(--line); background: var(--panel);
  transition: background .15s, border-color .15s, transform .15s var(--ease);
}
.arow:hover { background: var(--panel-2); border-color: var(--line-2); transform: translateY(-1px); }
.arow.offline .dev-name { color: var(--text-2); }
.dev-text { min-width: 0; flex: 1; display: grid; gap: 1px; }
.dev-name { font-weight: 600; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dev-sub { font-size: 12.5px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dev-end { flex: none; font-size: 12px; color: var(--text-3); display: flex; align-items: center; gap: 10px; }
.dev-end svg { width: 16px; height: 16px; opacity: .6; }
.badge { font-size: 11px; font-weight: 650; padding: 3px 7px; border-radius: 6px; color: var(--warn); background: color-mix(in srgb, var(--warn) 14%, transparent); }
.empty { padding: 56px 20px; text-align: center; color: var(--text-3); display: grid; gap: 12px; justify-items: center; font-size: 13.5px; }
.empty svg { width: 36px; height: 36px; opacity: .45; }

/* ---------- device stage ---------- */
.detail { max-width: 780px; margin: 0 auto; display: grid; gap: 14px; }
.stage {
  --hue: 80; position: relative; isolation: isolate; overflow: hidden; border-radius: 26px; min-height: 320px;
  padding: 22px; display: flex; flex-direction: column; justify-content: space-between; gap: 28px;
  background: #0a0b0e; color: #f5f6f7; border: 1px solid rgba(255, 255, 255, .08); box-shadow: var(--shadow);
}
.stage::before {
  content: ""; position: absolute; inset: -30% -10% -10%; z-index: -2;
  background:
    radial-gradient(42% 55% at 78% 22%, hsl(var(--hue) 90% 60% / .62), transparent 70%),
    radial-gradient(40% 50% at 30% 8%, hsl(calc(var(--hue) + 70) 85% 58% / .42), transparent 70%),
    radial-gradient(46% 55% at 60% 100%, hsl(calc(var(--hue) - 50) 85% 50% / .34), transparent 70%);
  filter: blur(24px) saturate(1.2); animation: drift 26s ease-in-out infinite alternate;
}
.stage::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, transparent 30%, rgba(8, 9, 11, .82) 100%),
    radial-gradient(rgba(255, 255, 255, .1) 1px, transparent 1px) 0 0 / 20px 20px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, .55), #000 70%);
}
.stage.offline::before { filter: blur(24px) grayscale(1) brightness(.5); animation: none; }
.stage-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.glass {
  display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px; border-radius: 999px;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .14); backdrop-filter: blur(14px);
  font-size: 12.5px; font-weight: 600; color: #f5f6f7;
}
.glass svg { width: 15px; height: 15px; }
.glass i { width: 7px; height: 7px; border-radius: 50%; background: #7b828d; }
.glass.on i { background: #5ef29a; box-shadow: 0 0 0 4px rgba(94, 242, 154, .22), 0 0 12px #5ef29a; }
button.glass { cursor: pointer; transition: background .15s; }
button.glass:hover { background: rgba(255, 255, 255, .18); }
.stage-meta { display: flex; align-items: center; gap: 8px; }
.stage-body { display: grid; gap: 20px; }
.stage h2 { font: 650 clamp(28px, 4.2vw, 44px)/1.05 var(--display); letter-spacing: -.03em; overflow-wrap: anywhere; text-wrap: balance; }
.stage-id { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 14px; margin-top: 10px; font-size: 13px; color: rgba(245, 246, 247, .72); }
.stage-id button { background: none; border: 0; padding: 0; color: inherit; display: inline-flex; align-items: center; gap: 7px; font: 600 14px/1 var(--mono); letter-spacing: .06em; }
.stage-id button:hover { color: #fff; }
.stage-id button svg { width: 13px; height: 13px; opacity: .7; }
.stage-id .sep { width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: .5; }
.stage-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.go {
  display: inline-flex; align-items: center; gap: 14px; height: 54px; padding: 0 10px 0 24px; border: 0; border-radius: 999px;
  background: var(--accent); color: var(--accent-ink); font: 650 16px/1 var(--display); letter-spacing: -.005em;
  box-shadow: 0 10px 34px -8px rgba(201, 248, 95, .55), inset 0 1px 0 rgba(255, 255, 255, .5);
  transition: transform .15s var(--ease), box-shadow .2s;
}
.go .orb { width: 36px; height: 36px; border-radius: 50%; background: var(--accent-ink); color: var(--accent); display: grid; place-items: center; transition: transform .25s var(--ease); }
.go .orb svg { width: 17px; height: 17px; }
.go:hover { transform: translateY(-1px); box-shadow: 0 16px 44px -8px rgba(201, 248, 95, .7), inset 0 1px 0 rgba(255, 255, 255, .5); }
.go:hover .orb { transform: translateX(3px); }
.go:active { transform: scale(.98); }
.go[disabled] { background: rgba(255, 255, 255, .16); color: rgba(255, 255, 255, .5); box-shadow: none; cursor: not-allowed; transform: none; }
.go[disabled] .orb { background: rgba(0, 0, 0, .3); color: rgba(255, 255, 255, .5); transform: none; }
.tool {
  height: 54px; padding: 0 18px; border-radius: 999px; display: inline-flex; align-items: center; gap: 9px;
  background: rgba(255, 255, 255, .09); border: 1px solid rgba(255, 255, 255, .14); backdrop-filter: blur(14px);
  color: #f5f6f7; font-weight: 600; font-size: 13.5px; transition: background .15s, transform .15s var(--ease);
}
.tool svg { width: 17px; height: 17px; opacity: .85; }
.tool:hover { background: rgba(255, 255, 255, .17); transform: translateY(-1px); }
.tool[disabled] { opacity: .4; cursor: not-allowed; transform: none; }

.strip {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 18px;
  border-radius: var(--r); background: var(--panel); border: 1px solid var(--line);
}
.strip b { font-weight: 600; font-size: 14px; }
.strip small { display: block; color: var(--text-3); font-size: 12.5px; margin-top: 1px; }
.strip.warn { border-color: color-mix(in srgb, var(--warn) 35%, transparent); background: color-mix(in srgb, var(--warn) 8%, var(--panel)); }
.strip.warn b { color: var(--warn); }

.specs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-radius: var(--r); overflow: hidden; background: var(--panel); border: 1px solid var(--line); }
.specs > div { padding: 14px 18px; display: grid; gap: 5px; min-width: 0; box-shadow: 1px 0 0 var(--line), 0 1px 0 var(--line); }
.specs dt { font-size: 11.5px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); }
.specs dd { font-size: 14px; font-weight: 550; overflow-wrap: anywhere; }

/* ---------- pages ---------- */
.page { max-width: 780px; margin: 0 auto; padding: 16px 0 30px; display: grid; gap: 28px; }
.page > header { display: grid; gap: 10px; }
.eyebrow { font: 650 11.5px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--accent-text); }
.page > header h1 { font: 650 clamp(28px, 4vw, 40px)/1.1 var(--display); letter-spacing: -.025em; }
.page > header p { color: var(--text-2); max-width: 56ch; font-size: 15px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.card-head h3 { font: 650 15px/1.2 var(--display); }
.card-body { padding: 20px; display: grid; gap: 16px; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.form-foot { display: flex; justify-content: flex-end; align-items: center; gap: 8px; flex-wrap: wrap; }
.form-foot .spacer { flex: 1; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; counter-reset: step; }
.steps > li {
  counter-increment: step; position: relative; display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 6px;
  padding: 0 0 30px;
}
.steps > li::before { content: "0" counter(step); font: 600 15px/28px var(--mono); color: var(--accent-text); }
.steps > li::after { content: ""; position: absolute; left: 9px; top: 32px; bottom: 6px; width: 1px; background: var(--line-2); }
.steps > li:last-child { padding-bottom: 0; }
.steps > li:last-child::after { display: none; }
.steps h3 { font: 650 17px/28px var(--display); letter-spacing: -.01em; }
.steps p { color: var(--text-2); margin-top: 4px; max-width: 58ch; }
.dl { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.page > .conf { margin-top: 0; }
.conf { margin-top: 14px; border-radius: var(--r); background: #0b0c0f; border: 1px solid rgba(255, 255, 255, .09); color: #e9ebee; overflow: hidden; }
.conf > div { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 11px 8px 11px 16px; border-bottom: 1px solid rgba(255, 255, 255, .07); }
.conf > div:last-child { border-bottom: 0; }
.conf dt { font-size: 12px; color: #7d8590; }
.conf dd { font: 500 13px/1.4 var(--mono); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #c9f85f; }
.conf button { width: 32px; height: 32px; border-radius: 8px; border: 0; background: none; color: #7d8590; display: grid; place-items: center; }
.conf button:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.conf button svg { width: 15px; height: 15px; }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
th, td { text-align: left; padding: 12px 20px; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { font-size: 11.5px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: var(--panel-2); }
td.right, th.right { text-align: right; }
.who { display: flex; align-items: center; gap: 10px; }
.who .avatar { width: 28px; height: 28px; font-size: 11.5px; }
.who small { display: block; color: var(--text-3); font: 500 12px/1.2 var(--mono); }
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--text-2); }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--text-3); }
.pill.on::before { background: var(--live); }
.pill.accent { color: var(--accent-text); }
.pill.accent::before { background: var(--accent-text); }

/* ---------- dialog & toast ---------- */
dialog {
  width: min(460px, calc(100vw - 28px)); border: 1px solid var(--line-2); border-radius: 22px; padding: 0;
  background: var(--panel); color: var(--text); box-shadow: var(--shadow);
}
dialog[open] { animation: pop .22s var(--ease); }
dialog::backdrop { background: rgba(4, 5, 7, .6); backdrop-filter: blur(6px); }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.98); } }
dialog form { padding: 24px; display: grid; gap: 16px; }
dialog h3 { font: 650 19px/1.2 var(--display); letter-spacing: -.01em; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.row-between b { font-weight: 600; }
.row-between small { display: block; color: var(--text-3); font-size: 12.5px; }
#toasts { position: fixed; left: 50%; bottom: calc(26px + env(safe-area-inset-bottom)); translate: -50% 0; display: grid; gap: 8px; z-index: 60; justify-items: center; max-width: calc(100vw - 28px); }
.toast {
  padding: 10px 16px; border-radius: 999px; font-size: 13.5px; font-weight: 600;
  background: #f3f4f6; color: #0b0d10; box-shadow: 0 16px 40px -12px rgba(0, 0, 0, .6); animation: pop .22s var(--ease);
}
.toast.bad { background: var(--danger); color: #fff; }

/* ---------- mobile ---------- */
@media (max-width: 900px) {
  .auth { grid-template-columns: minmax(0, 1fr); }
  .auth-pitch { padding-bottom: 0; gap: 22px; }
  .auth-points { display: none; }
  .auth-side { place-items: start center; }
  .shell { grid-template-columns: minmax(0, 1fr); }
  .side { display: none; }
  .main { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  .topbar { height: calc(52px + env(safe-area-inset-top)); padding-top: env(safe-area-inset-top); }
  .topbar-title h1 { font-size: 17px; }
  .back { display: inline-flex; margin-left: -8px; }
  .content { padding: 16px 14px 40px; }
  .tabbar {
    position: fixed; left: 12px; right: 12px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 20;
    display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding: 6px; border-radius: 22px;
    background: color-mix(in srgb, var(--panel-2) 82%, transparent); backdrop-filter: blur(22px) saturate(1.4);
    border: 1px solid var(--line-2); box-shadow: var(--shadow);
  }
  .tabbar button {
    display: grid; justify-items: center; gap: 3px; padding: 7px 4px 6px; border: 0; background: none; border-radius: 16px;
    color: var(--text-3); font-size: 11px; font-weight: 600;
  }
  .tabbar button svg { width: 21px; height: 21px; }
  .tabbar button[aria-current="page"] { color: var(--text); background: var(--panel-3); }
  .stage { min-height: 340px; border-radius: 24px; padding: 18px; }
  .stage-actions .go { flex: 1 1 100%; justify-content: space-between; }
  .stage-actions .tool { flex: 1; justify-content: center; padding: 0 10px; height: 48px; }
  .page { padding-top: 6px; }
  .specs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mobile-search { display: block; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
