:root {
  --ink: #0a1222; --ink-text: #dbe6f5; --ink-muted: #a9b8cf; --cyan: #22d3ee;
  --bg: #eef2f7; --text: #0f1b2d; --muted: #53627a; --border: #d9e2ef; --accent: #1d4ed8;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font: 16px/1.6 system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; color: var(--text); background: var(--bg); }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 12px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px clamp(16px, 4vw, 48px); background: var(--ink); border-bottom: 1px solid rgba(34,211,238,.3); position: sticky; top: 0; z-index: 5; }
.top :focus-visible { outline-color: #67e8f9; }
.logo { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 700; font-size: 1.2rem; text-decoration: none; }
.mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; color: #04121f; background: var(--cyan); box-shadow: 0 0 18px rgba(34,211,238,.5); font-weight: 800; }
.top nav { display: flex; align-items: center; gap: 22px; }
.top nav a { color: var(--ink-text); text-decoration: none; font-weight: 500; }
.top nav a:hover { color: #fff; text-decoration: underline; text-decoration-color: var(--cyan); text-underline-offset: 6px; }
.top nav a.cta { background: var(--cyan); color: #04121f; padding: 8px 16px; border-radius: 10px; font-weight: 600; text-decoration: none; }
.top nav a.cta:hover { background: #67e8f9; color: #04121f; }
.eyebrow { margin: 0 0 10px; font: 600 .8rem ui-monospace, Menlo, Consolas, monospace; letter-spacing: .12em; text-transform: uppercase; color: #0e7490; }
main { max-width: 1120px; margin: 0 auto; padding: 24px clamp(16px, 4vw, 32px) 64px; }
.hero { display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: center; padding: clamp(28px, 5vw, 60px); border-radius: 24px; color: #fff; border: 1px solid rgba(34,211,238,.25);
  background-color: var(--ink);
  background-image: linear-gradient(rgba(34,211,238,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(34,211,238,.06) 1px, transparent 1px),
    radial-gradient(620px 320px at 92% 0, rgba(34,211,238,.28), transparent 62%), radial-gradient(720px 420px at 0 100%, rgba(37,99,235,.38), transparent 62%);
  background-size: 44px 44px, 44px 44px, auto, auto; box-shadow: 0 34px 70px -34px rgba(2,8,23,.8); }
.hero .eyebrow { color: #67e8f9; }
h1 { margin: 0 0 16px; font-size: clamp(2rem, 4.5vw, 3.2rem); line-height: 1.1; letter-spacing: -.02em; }
.lead { color: var(--ink-muted); font-size: 1.1rem; margin: 0 0 24px; max-width: 52ch; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 22px; }
.btn { display: inline-block; padding: 12px 22px; border-radius: 10px; font: 600 1rem inherit; text-decoration: none; border: 1px solid transparent; cursor: pointer; }
.btn.primary { background: var(--cyan); color: #04121f; border-color: var(--cyan); }
.btn.primary:hover { background: #67e8f9; border-color: #67e8f9; }
.btn.ghost { background: rgba(255,255,255,.06); color: #fff; border-color: rgba(255,255,255,.3); }
.btn.ghost:hover { background: rgba(255,255,255,.16); }
.btn:disabled { opacity: .6; cursor: wait; }
.ticks { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; color: var(--ink-muted); font-size: .95rem; }
.ticks li::before { content: '✓ '; color: var(--cyan); }
.hero-panel { background: rgba(255,255,255,.06); border: 1px solid rgba(34,211,238,.28); border-radius: 18px; padding: 16px 18px; backdrop-filter: blur(10px); }
.panel-bar { display: flex; gap: 6px; margin-bottom: 12px; }
.panel-bar { align-items: center; }
.panel-bar small { margin-left: auto; color: var(--ink-muted); }
.panel-bar span { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.25); }
.hero-panel .row { display: flex; justify-content: space-between; gap: 12px; padding: 12px 14px; margin-top: 8px; border-radius: 12px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); }
.hero-panel .row i { font-style: normal; color: #67e8f9; }
.hero-panel .row.ok i { color: #34d399; }
.section { margin-top: 56px; }
.section.alt { padding: 32px clamp(18px, 4vw, 40px); background: #fff; border: 1px solid var(--border); border-radius: 20px; }
h2 { margin: 0 0 20px; font-size: clamp(1.5rem, 3vw, 2.1rem); letter-spacing: -.015em; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.grid article { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 22px; box-shadow: inset 0 3px 0 var(--cyan), 0 14px 30px -24px rgba(15,23,42,.5); }
.grid h3 { margin: 0 0 6px; }
.grid p, .muted { color: var(--muted); margin: 0; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; counter-reset: step; }
.steps li { counter-increment: step; display: grid; gap: 4px; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; color: #fff; font-weight: 700; background: linear-gradient(135deg, #1d4ed8, #0e7490); }
.steps span { color: var(--muted); }
.signup { display: grid; grid-template-columns: .8fr 1.2fr; gap: 36px; align-items: start; padding: clamp(22px, 4vw, 40px); border-radius: 24px; background: #fff; border: 1px solid var(--border); border-top: 3px solid var(--cyan); }
form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
label { font-weight: 600; }
label em { font-weight: 400; color: var(--muted); }
input { width: 100%; padding: 11px 12px; font: inherit; color: var(--text); background: #fff; border: 1px solid #b6c4d8; border-radius: 10px; }
input:focus { border-color: #0891b2; box-shadow: 0 0 0 4px rgba(34,211,238,.3); outline: none; }
small { color: var(--muted); }
.addon { display: flex; align-items: stretch; }
.addon input { border-radius: 10px 0 0 10px; }
.addon span { display: grid; place-items: center; padding: 0 12px; background: #eef3fb; border: 1px solid #b6c4d8; border-left: 0; border-radius: 0 10px 10px 0; color: var(--muted); white-space: nowrap; }
.error { margin: 0; padding: 10px 14px; color: #8a1c12; background: #fef0ee; border: 1px solid #f3b8b1; border-radius: 10px; }
.done { padding: 22px; border-radius: 16px; background: #ecfdf5; border: 1px solid #86d9b0; color: #0b3d27; }
.done h3 { margin-top: 0; }
.done pre { overflow-x: auto; padding: 12px; border-radius: 10px; background: var(--ink); color: #67e8f9; }
[hidden] { display: none !important; }
.foot { display: flex; justify-content: space-between; gap: 12px; padding: 22px clamp(16px, 4vw, 48px); background: var(--ink); color: var(--ink-muted); border-top: 1px solid rgba(34,211,238,.3); }
.foot a { color: #67e8f9; }
@media (max-width: 800px) {
  .hero, .signup { grid-template-columns: 1fr; }
  .top nav a:not(.cta) { display: none; }
}
.admin { max-width: 1040px; }
.admin h1 { color: var(--text); font-size: 2rem; }
.login-card { max-width: 420px; margin: 40px auto; padding: 28px; background: #fff; border: 1px solid var(--border); border-top: 3px solid var(--cyan); border-radius: 18px; }
.garage { padding: 20px; margin-bottom: 16px; background: #fff; border: 1px solid var(--border); border-radius: 16px; box-shadow: inset 0 3px 0 var(--cyan); }
.garage-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.garage h2 { margin: 0; font-size: 1.3rem; }
.status { padding: 2px 12px; border-radius: 999px; font-size: .85rem; font-weight: 600; background: #fef3c7; color: #78350f; }
.status.active { background: #d1fae5; color: #064e3b; }
.status.rejected { background: #fee2e2; color: #7f1d1d; }
.domains { margin: 10px 0; padding-left: 20px; }
.garage-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.btn.small { padding: 8px 16px; font-size: .95rem; background: #eef3fb; color: var(--text); border-color: #b6c4d8; }
.btn.small:hover { background: #dfe9f7; }
.btn.small.primary { background: #1d4ed8; color: #fff; border-color: #1d4ed8; }
.btn.small.primary:hover { background: #1e40af; }
.btn.danger { background: #fff; color: #b42318; border-color: #b42318; }
.btn.danger:hover { background: #fef0ee; }
.notice { padding: 10px 14px; border-radius: 10px; background: #ecfdf5; border: 1px solid #86d9b0; color: #0b3d27; }
.notice.error { background: #fef0ee; border-color: #f3b8b1; color: #8a1c12; }

.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; }
.tabs button { padding: 9px 16px; font: inherit; font-weight: 600; border-radius: 999px; border: 1px solid #b6c4d8; background: #fff; color: var(--text); cursor: pointer; }
.tabs button:hover { background: #dfe9f7; }
.tabs button.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.count { display: inline-block; min-width: 1.4em; padding: 0 6px; border-radius: 999px; background: #f59e0b; color: #1f1300; font-size: .8rem; text-align: center; }
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; margin-bottom: 20px; }
.stat { padding: 16px; background: #fff; border: 1px solid var(--border); border-radius: 14px; box-shadow: inset 0 3px 0 var(--cyan); }
.stat.warn { box-shadow: inset 0 3px 0 #f59e0b; }
.stat-value { font-size: 1.8rem; font-weight: 700; color: var(--text); }
.stat-label { font-weight: 600; color: var(--text); }
.search { width: 100%; padding: 10px 14px; margin-bottom: 16px; font: inherit; border: 1px solid #b6c4d8; border-radius: 10px; background: #fff; color: var(--text); }
.table-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--border); border-radius: 14px; }
.grid { width: 100%; border-collapse: collapse; }
.grid th, .grid td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--border); color: var(--text); }
.grid th { background: #eef3fb; }
.muted { color: var(--muted); }

.install-app { position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 60; min-height: 44px; padding: 10px 18px; border: 1px solid #22d3ee; border-radius: 999px; background: #0a1222; color: #fff; font: 600 1rem system-ui, sans-serif; box-shadow: 0 8px 24px rgba(10,18,34,.35); cursor: pointer; }
.install-app[hidden] { display: none; }
@media (max-width: 820px) { input, select, textarea { font-size: 16px; } .tabs button, .btn { min-height: 40px; } }
@media (display-mode: standalone) { .install-app { display: none; } }
.mark-img { width: 34px; height: 34px; border-radius: 9px; }
html.lock-pending #console { visibility: hidden; }
#lockScreen { position: fixed; inset: 0; z-index: 9999; display: grid; place-items: center; padding: 24px; background: radial-gradient(1000px 500px at 50% -10%, #12315f, #0a1222 70%); color: #f1f5f9; text-align: center; }
#lockScreen[hidden] { display: none; }
#lockScreen .lock-box { max-width: 360px; display: grid; gap: 14px; justify-items: center; }
#lockScreen img { border-radius: 16px; }
#lockScreen h1 { font-size: 1.6rem; color: #fff; }
#lockScreen p { color: #cbd5e1; }
#lockScreen .lock-err { color: #fca5a5; min-height: 1.3em; }
#lockScreen .btn { min-width: 220px; }
html.locked body { overflow: hidden; }
