/* Opsboard. One faceplate, quiet everything else. */
:root {
  --bg: #E6E9ED;
  --surface: #F8F9FA;
  --surface-2: #EEF1F4;
  --ink: #1B2027;
  --muted: #5A6472;
  --line: #D2D7DD;
  --accent: #1D5BBF;
  --accent-ink: #FFFFFF;
  --ok: #1A8A50;
  --warn: #B4770A;
  --fail: #C0392B;
  --idle: #8D96A2;
  --plate: #262C33;
  --plate-2: #2F363E;
  --plate-line: #3B434D;
  --plate-ink: #E1E6EB;
  --plate-muted: #98A2AE;
  --radius: 10px;
  --side: 232px;
  --font: "Segoe UI Variable Text", "Segoe UI", -apple-system, BlinkMacSystemFont, "SF Pro Text", Roboto, "Noto Sans Ethiopic", "Nyala", "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #15191E;
    --surface: #1C2127;
    --surface-2: #242A31;
    --ink: #E4E8EC;
    --muted: #9AA4B0;
    --line: #2F363F;
    --accent: #75A5F2;
    --accent-ink: #0D1A2E;
    --ok: #3DBE7C;
    --warn: #E3A73A;
    --fail: #EF6B5B;
    --idle: #6B7581;
    --plate: #27303B;
    --plate-2: #303A46;
    --plate-line: #43505E;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 15px/1.5 var(--font); font-feature-settings: "tnum" 0;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
p { margin: 0 0 .5rem; }
h1, h2, h3 { margin: 0; line-height: 1.25; letter-spacing: -0.01em; }
code { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: .86em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.i { width: 18px; height: 18px; flex: none; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.small, small { font-size: 13px; }
.pre { white-space: pre-wrap; overflow-wrap: anywhere; }
.break { overflow-wrap: anywhere; }
.t-ok { color: var(--ok); } .t-warn { color: var(--warn); } .t-fail { color: var(--fail); }
.grow { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.push { margin-left: auto; }
.between { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.clamp { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.clamp-1 { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.link { color: var(--accent); text-decoration: none; font-weight: 550; }
.link:hover { text-decoration: underline; }

/* ---------- Shell ---------- */
.shell { display: grid; grid-template-columns: var(--side) minmax(0, 1fr); min-height: 100dvh; }
.side {
  position: sticky; top: 0; height: 100dvh; overflow-y: auto;
  display: flex; flex-direction: column; gap: 4px; padding: 18px 12px;
  border-right: 1px solid var(--line); background: var(--surface);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 650; font-size: 16px; padding: 4px 10px 16px; }
.mark { width: 30px; height: 30px; color: var(--plate); flex: none; }
@media (prefers-color-scheme: dark) { .mark { color: var(--plate-line); } }
.side-nav { display: flex; flex-direction: column; gap: 2px; }
.side-foot { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); }
.nav-link {
  display: flex; align-items: center; gap: 11px; width: 100%;
  padding: 9px 10px; border: 0; border-radius: 8px; background: none;
  color: var(--muted); font: inherit; font-weight: 520; text-decoration: none; cursor: pointer; text-align: left;
}
.nav-link:hover { background: var(--surface-2); color: var(--ink); }
.nav-link.is-on { background: var(--surface-2); color: var(--ink); box-shadow: inset 3px 0 0 var(--accent); }
.badge { margin-left: auto; min-width: 20px; padding: 0 6px; border-radius: 10px; background: var(--fail); color: #fff; font-size: 12px; text-align: center; }

.main { min-width: 0; display: flex; flex-direction: column; }
.top {
  display: flex; align-items: center; gap: 12px;
  padding: 18px 28px 8px; max-width: 1240px; width: 100%;
}
.top-title { font-size: 22px; font-weight: 650; }
.top-actions { margin-left: auto; display: flex; gap: 6px; }
.brand-mobile, .only-mobile { display: none; }
.icon-btn {
  position: relative; display: inline-grid; place-items: center;
  width: 40px; height: 40px; border-radius: 8px; border: 1px solid transparent;
  background: none; color: var(--muted); cursor: pointer; text-decoration: none;
}
.icon-btn:hover { background: var(--surface-2); color: var(--ink); }
.icon-btn.sm { width: 34px; height: 34px; }
.dot-badge { position: absolute; top: 4px; right: 3px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--fail); color: #fff; font-size: 11px; line-height: 17px; }
.content { padding: 8px 28px 48px; max-width: 1240px; width: 100%; display: flex; flex-direction: column; gap: 16px; }

/* ---------- Faceplate (the one loud element) ---------- */
.plate {
  background: var(--plate); color: var(--plate-ink);
  border-radius: 14px; padding: 20px 20px 18px;
  background-image: radial-gradient(circle at 10px 10px, var(--plate-line) 1.6px, transparent 2.2px),
                    radial-gradient(circle at calc(100% - 10px) 10px, var(--plate-line) 1.6px, transparent 2.2px);
}
.plate-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.plate-date { color: var(--plate-muted); margin: 0 0 2px; font-size: 14px; }
.plate-title { font-size: 28px; font-weight: 650; letter-spacing: -0.02em; }
.plate-summary { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-weight: 600; }
.plate-summary small { color: var(--plate-muted); font-weight: 450; }
.plate .t-ok { color: #5FD99A; } .plate .t-warn { color: #F2BE57; } .plate .t-fail { color: #FF8577; }
.plate-btn {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 8px;
  border: 1px solid var(--plate-line); background: var(--plate-2); color: var(--plate-ink); font: inherit; font-size: 14px; cursor: pointer;
}
.plate-btn:hover { border-color: var(--plate-muted); }
.plate-btn .i { width: 15px; height: 15px; }
.ports { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 8px; }
.port {
  display: flex; flex-direction: column; gap: 6px; padding: 11px 12px 12px;
  background: var(--plate-2); border: 1px solid var(--plate-line); border-radius: 7px;
  text-decoration: none; color: inherit;
}
.port:hover { border-color: var(--plate-muted); }
.port-head { display: flex; align-items: center; gap: 9px; }
.port-name { font-weight: 600; }
.port-msg { color: var(--plate-muted); font-size: 13px; line-height: 1.35; }
.port .led { width: 11px; height: 11px; }

.led { display: inline-block; width: 9px; height: 9px; border-radius: 50%; flex: none; background: var(--idle); vertical-align: middle; }
.led.is-ok { background: var(--ok); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok) 22%, transparent), 0 0 10px color-mix(in srgb, var(--ok) 55%, transparent); }
.led.is-warn { background: var(--warn); box-shadow: 0 0 0 3px color-mix(in srgb, var(--warn) 22%, transparent), 0 0 10px color-mix(in srgb, var(--warn) 55%, transparent); }
.led.is-fail { background: var(--fail); box-shadow: 0 0 0 3px color-mix(in srgb, var(--fail) 25%, transparent), 0 0 12px color-mix(in srgb, var(--fail) 65%, transparent); animation: blink 1.4s steps(2, jump-none) infinite; }
@keyframes blink { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .led.is-fail { animation: none; } }

/* ---------- Widgets ---------- */
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-flow: row dense; gap: 14px; align-items: start; }
.w { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); min-width: 0; }
.w-s { grid-column: span 1; } .w-m { grid-column: span 2; } .w-l { grid-column: 1 / -1; }
.w-head { padding: 12px 14px 0; }
.w-head a { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 620; }
.w-head a:hover { color: var(--accent); }
.w-head .i { color: var(--muted); }
.w-body { padding: 10px 14px 14px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.w-body > * { max-width: 100%; }
.w-body .rows, .w-body .mini-list, .w-body .inline-add, .w-body .stack-sm { width: 100%; }
.stat-row { display: flex; gap: 22px; }
.stat-row > div { display: flex; flex-direction: column; }
.big { font-size: 26px; font-weight: 650; line-height: 1.1; letter-spacing: -0.02em; }
.mini-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.mini-list li { display: flex; align-items: center; gap: 8px; min-width: 0; }
.mini-list .led { margin-right: 6px; }
.done-list li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ok); flex: none; }
.stack-sm { display: flex; flex-direction: column; gap: 10px; }

/* ---------- Panels, lists ---------- */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.pad { padding: 16px; }
.h2 { font-size: 17px; font-weight: 650; display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.page-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.page-head p { margin: 0; }
.rows { list-style: none; margin: 0; padding: 0; }
.rows > li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-top: 1px solid var(--line); }
.rows > li:first-child { border-top: 0; }
.w-body .rows > li { padding: 8px 0; }
.monitors > li { align-items: flex-start; }
.monitors .led { margin-top: 7px; }
.meta { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; font-size: 13px; color: var(--muted); text-align: right; flex: none; }
.meta .num { color: var(--ink); font-weight: 600; font-size: 14px; }
.alert-row.is-new { background: color-mix(in srgb, var(--accent) 6%, transparent); }
.alert-row .led { margin-top: 2px; align-self: flex-start; margin-top: 7px; }
.row-actions { display: flex; gap: 4px; align-items: center; }
.day { display: flex; flex-direction: column; gap: 8px; }
.day-head { font-size: 14px; font-weight: 600; color: var(--muted); }
.entry p { margin: 0; }
.entry-meta { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; margin: -6px -6px 6px 0; }
.journal-input { min-height: 140px; line-height: 1.6; }
.week-nav { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; }
.week-nav > :last-child { justify-self: end; }
.done-mark { width: 18px; height: 18px; border-radius: 50%; background: color-mix(in srgb, var(--ok) 18%, transparent); position: relative; flex: none; }
.done-mark::after { content: ""; position: absolute; left: 6px; top: 3px; width: 4px; height: 8px; border: solid var(--ok); border-width: 0 2px 2px 0; transform: rotate(45deg); }

/* To-do */
.task { gap: 10px; }
.task .grow { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.task.is-important .grow > span:first-child { font-weight: 620; }
.task.is-important .grow > span:first-child::before { content: ""; display: inline-block; width: 3px; height: 14px; background: var(--warn); border-radius: 2px; margin-right: 7px; vertical-align: -2px; }
.tick {
  width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--muted); background: none; cursor: pointer; flex: none; padding: 0;
  display: grid; place-items: center;
}
.tick:hover { border-color: var(--ok); background: color-mix(in srgb, var(--ok) 14%, transparent); }
.task form { display: contents; }
.task-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.task-form .grow { min-width: 220px; }

.pill { display: inline-block; padding: 1px 8px; border-radius: 999px; background: var(--surface-2); color: var(--muted); font-size: 12px; font-weight: 550; white-space: nowrap; }
.pill-warn { color: var(--warn); background: color-mix(in srgb, var(--warn) 14%, transparent); }
.pill-fail { color: var(--fail); background: color-mix(in srgb, var(--fail) 14%, transparent); }

.spark { display: flex; align-items: flex-end; gap: 2px; height: 24px; margin-top: 6px; max-width: 420px; }
.spark span { flex: 1; min-width: 2px; background: color-mix(in srgb, var(--ok) 70%, transparent); border-radius: 1px; }
.spark span.bad { background: var(--fail); }
.meter { width: 100%; height: 8px; border-radius: 4px; background: var(--surface-2); overflow: hidden; margin-top: 6px; }
.meter span { display: block; height: 100%; border-radius: 4px; background: var(--ok); }
.meter .is-warn { background: var(--warn); } .meter .is-fail { background: var(--fail); }

.empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 40px 20px; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--radius); }
.empty .i { width: 28px; height: 28px; }
.empty p { max-width: 46ch; margin: 0; }

.copy-row { display: flex; align-items: center; gap: 6px; background: var(--surface-2); border-radius: 8px; padding: 4px 4px 4px 10px; margin: 6px 0; max-width: 100%; }
.copy-row code { flex: 1; overflow-x: auto; white-space: nowrap; padding: 6px 0; }
.howto summary { cursor: pointer; color: var(--accent); font-size: 13px; font-weight: 550; }
.howto p { margin: 6px 0 0; }
.howto code { overflow-wrap: anywhere; }

.table-wrap { overflow-x: auto; margin: 10px 0 14px; }
.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; font-size: 13px; font-weight: 600; color: var(--muted); padding: 8px; border-bottom: 1px solid var(--line); }
.table td { padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table td:nth-child(n+2), .table th:nth-child(n+2) { text-align: center; }
.mod-cell { display: flex; gap: 10px; align-items: flex-start; }
.mod-cell .i { margin-top: 2px; color: var(--muted); }
.mod-cell div { display: flex; flex-direction: column; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }

/* ---------- Forms ---------- */
.stack { display: flex; flex-direction: column; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; font-weight: 550; font-size: 14px; }
.field small { font-weight: 400; }
.input {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px;
  background: var(--surface-2); color: var(--ink); font: inherit; font-size: 15px; min-height: 42px;
}
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); background: var(--surface); }
textarea.input { resize: vertical; }
.mono-ish { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 13.5px; line-height: 1.6; }
.input-auto { width: auto; }
.input-num { width: 80px; }
.check { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; }
input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--accent); }
.inline-add { display: flex; gap: 8px; }
.inline-add .input { flex: 1; min-width: 0; }
.search .input { max-width: 420px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  min-height: 42px; padding: 0 16px; border-radius: 8px; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink); font: inherit; font-weight: 600; font-size: 14px;
  text-decoration: none; cursor: pointer; white-space: nowrap;
}
.btn:hover { border-color: var(--muted); }
.btn .i { width: 16px; height: 16px; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { filter: brightness(1.08); border-color: var(--accent); }
.btn-ghost { background: transparent; }
.btn.sm { min-height: 34px; padding: 0 10px; font-size: 13px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

.flash { margin: 0 28px 4px; max-width: 1184px; padding: 10px 14px; border-radius: 8px; font-weight: 550; font-size: 14px; border-left: 3px solid var(--ok); background: color-mix(in srgb, var(--ok) 12%, var(--surface)); }
.flash-warn { border-color: var(--warn); background: color-mix(in srgb, var(--warn) 12%, var(--surface)); }
.flash-fail { border-color: var(--fail); background: color-mix(in srgb, var(--fail) 12%, var(--surface)); }

/* ---------- Bottom nav and sheet (mobile) ---------- */
.bottom { display: none; }
.sheet { border: 0; padding: 0; background: var(--surface); color: var(--ink); width: min(480px, 100%); border-radius: 16px; }
.sheet::backdrop { background: rgba(10, 14, 20, .45); }
.sheet-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 14px 6px 18px; }
.sheet-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 8px 14px; }
.tile { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 6px; border-radius: 10px; background: var(--surface-2); text-decoration: none; font-size: 13px; font-weight: 550; text-align: center; }
.tile .i { width: 22px; height: 22px; color: var(--muted); }
.sheet-foot { padding: 6px 14px 16px; }

/* ---------- Setup and login ---------- */
.bare { display: grid; place-items: center; min-height: 100dvh; padding: 20px; }
.bare-card { width: min(400px, 100%); background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 0 22px 24px; display: flex; flex-direction: column; gap: 12px; overflow: hidden; }
.bare-card h1 { font-size: 22px; }
.bare-plate { margin: 0 -22px 8px; padding: 16px 22px; background: var(--plate); color: var(--plate-ink); display: flex; align-items: center; gap: 10px; font-weight: 650; }
.bare-plate .mark { color: var(--plate-2); }
.bare-leds { margin-left: auto; display: flex; gap: 8px; }
.bare .flash { margin: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .w-m { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .side { display: none; }
  .brand-mobile { display: flex; padding: 0; font-size: 16px; }
  .brand-mobile .mark { width: 26px; height: 26px; }
  .only-mobile { display: inline-grid; }
  .top { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); padding: calc(10px + env(safe-area-inset-top)) 16px 10px; }
  .top-title { display: none; }
  .content { padding: 4px 14px calc(96px + env(safe-area-inset-bottom)); gap: 14px; }
  .flash { margin: 0 14px 6px; }
  .bottom {
    display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 10;
    padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
    background: var(--surface); border-top: 1px solid var(--line);
  }
  .bottom .nav-link { flex-direction: column; gap: 3px; padding: 6px 2px; font-size: 11.5px; text-align: center; justify-content: center; }
  .bottom .nav-link .i { width: 22px; height: 22px; }
  .bottom .nav-link.is-on { box-shadow: none; background: none; color: var(--accent); }
  .bottom .nav-link span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
  .sheet { margin: auto auto 0; width: 100%; max-width: 100%; border-radius: 16px 16px 0 0; padding-bottom: env(safe-area-inset-bottom); }
  .two-col { grid-template-columns: 1fr; }
  .plate { padding: 16px 14px 14px; border-radius: 12px; }
  .plate-title { font-size: 23px; }
  .ports { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .grid { grid-template-columns: 1fr; }
  .w-s, .w-m, .w-l { grid-column: 1 / -1; }
  .input, .btn { min-height: 44px; font-size: 16px; } /* 16px stops iOS zoom */
  .inline-add .btn { padding: 0 14px; }
  .task-form > * { flex: 1 1 100%; }
  .task-form .input-num { flex: 0 0 80px; }
  .task-form .input-auto { flex: 1 1 auto; }
  .rows > li { padding: 12px; }
  .meta { font-size: 12px; }
  .week-nav { grid-template-columns: 1fr 1fr; }
  .week-nav strong { grid-column: 1 / -1; grid-row: 1; text-align: center; }
}

/* ---------- Account block, avatars ---------- */
.me { display: flex; align-items: center; gap: 10px; padding: 12px 6px 0 8px; margin-top: 8px; border-top: 1px solid var(--line); }
.me-text { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.3; }
.me-text strong { font-size: 14px; }
.me-text small { font-size: 12px; }
.avatar {
  width: 34px; height: 34px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: var(--plate); color: var(--plate-ink); font-size: 13px; font-weight: 650; letter-spacing: .02em;
}
.sheet-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }

/* ---------- People (admin) ---------- */
.people > li { align-items: flex-start; flex-wrap: wrap; }
.people strong { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.people .is-off .avatar { opacity: .45; }
.people-actions { flex-wrap: wrap; justify-content: flex-end; }
.choice-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.choice { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; }
.choice:has(input:checked) { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.choice input { margin-top: 3px; accent-color: var(--accent); width: 17px; height: 17px; }
.choice span { display: flex; flex-direction: column; gap: 2px; }
.code-big { font-size: 17px; letter-spacing: .08em; font-weight: 600; }

/* ---------- Public pages ---------- */
.public { display: flex; flex-direction: column; min-height: 100dvh; }
.pub-top {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  width: 100%; max-width: 1160px; margin: 0 auto; padding: calc(16px + env(safe-area-inset-top)) 24px 16px;
}
.pub-top .brand { padding: 0; }
.pub-nav { display: flex; gap: 8px; }
.pub-foot {
  margin-top: auto; width: 100%; max-width: 1160px; margin-left: auto; margin-right: auto;
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 28px 24px calc(28px + env(safe-area-inset-bottom)); font-size: 13px; font-weight: 550;
}
.landing { width: 100%; max-width: 1160px; margin: 0 auto; padding: 24px 24px 40px; display: flex; flex-direction: column; gap: 56px; }
.hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; padding-top: 24px; }
.hero-copy { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.hero h1 { font-size: clamp(32px, 4.6vw, 50px); line-height: 1.06; letter-spacing: -0.03em; font-weight: 700; max-width: 15ch; }
.lead { font-size: 18px; line-height: 1.55; color: var(--muted); max-width: 52ch; margin: 0; }
.hero-plate { box-shadow: 0 30px 60px -30px rgba(20, 28, 38, .55); }
.hero-plate .ports { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.features { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.features article { border-top: 2px solid var(--ink); padding-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.features .i { width: 22px; height: 22px; color: var(--accent); }
.features h2 { font-size: 17px; font-weight: 650; }
.features p { color: var(--muted); margin: 0; font-size: 15px; }
.privacy { max-width: 720px; }
.privacy p { margin: 0; }
.auth-wrap { flex: 1; display: grid; place-items: center; padding: 12px 20px 40px; }
.auth-wrap .bare-card { padding: 24px 22px; }

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; gap: 32px; padding-top: 4px; }
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .pub-top { padding-left: 16px; padding-right: 16px; }
  .pub-top .brand span { display: none; }
  .landing { padding: 8px 16px 32px; gap: 40px; }
  .lead { font-size: 16.5px; }
  .features { grid-template-columns: 1fr; gap: 22px; }
  .choice-row { grid-template-columns: 1fr; }
  .people-actions { width: 100%; justify-content: flex-start; padding-left: 46px; }
  .pub-foot { padding-left: 16px; padding-right: 16px; }
}
