/* YardHouse IT Desk — palette and type taken from yardhousecapitalgroup.com */
:root {
  --navy: #010720;
  --navy-2: #0b1333;
  --navy-3: #1a2347;
  --ink: #14182b;
  --muted: #6b6f7d;
  --line: #e3e3e8;
  --line-2: #d3d3d9;
  --paper: #f7f8fa;
  --white: #ffffff;
  --peach: #fab89f;
  --peach-soft: #fdeee7;
  --ok: #2f7d5b;      --ok-bg: #e7f3ed;
  --warn: #9a6400;    --warn-bg: #fbf1dc;
  --bad: #b3261e;     --bad-bg: #fbe9e7;
  --info: #2c4a8a;    --info-bg: #e9eef8;
  --serif: 'Prata', Georgia, serif;
  --sans: 'Barlow', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --caps: 'Roboto', system-ui, sans-serif;
  --radius: 4px;
  --shadow: 0 1px 2px rgba(1, 7, 32, .04), 0 4px 16px rgba(1, 7, 32, .04);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); font-weight: 400; font-size: 16px; line-height: 1.55; color: var(--ink); background: var(--paper); }
a { color: var(--navy); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--peach); }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; color: var(--navy); line-height: 1.25; margin: 0 0 .5em; }
h1 { font-size: 34px; letter-spacing: .5px; }
h2 { font-size: 22px; }
h3 { font-size: 18px; }
p { margin: 0 0 1em; }
code { font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; font-size: .9em; background: #eef0f4; padding: 1px 5px; border-radius: 3px; }
pre code { display: block; padding: 12px 14px; overflow-x: auto; }
hr { border: 0; border-top: 1px solid var(--line); margin: 24px 0; }
.caps { font-family: var(--caps); font-size: 11px; font-weight: 400; letter-spacing: 1.6px; text-transform: uppercase; color: var(--muted); }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.nowrap { white-space: nowrap; }
.right { text-align: right; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- shell ---------- */
.shell { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; }
.side { background: var(--navy); color: #c9cbd6; padding: 28px 0 20px; position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; }
.brand { display: block; padding: 0 26px 26px; color: #fff; text-decoration: none; }
.brand .word { font-family: var(--serif); font-size: 24px; letter-spacing: 1px; color: #fff; display: block; }
.brand .sub { font-family: var(--caps); font-size: 10px; letter-spacing: 4px; text-transform: uppercase; color: var(--peach); }
.nav { display: flex; flex-direction: column; gap: 1px; padding: 0 12px; overflow-y: auto; }
.nav .label { font-family: var(--caps); font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: #6f7590; padding: 18px 14px 6px; }
.nav a { display: flex; align-items: center; gap: 12px; padding: 9px 14px; border-radius: var(--radius); color: #d7d9e2; text-decoration: none; font-size: 15px; }
.nav a:hover { background: var(--navy-2); color: #fff; }
.nav a.on { background: var(--navy-3); color: #fff; box-shadow: inset 2px 0 0 var(--peach); }
.nav svg { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.6; opacity: .85; }
.nav .count { margin-left: auto; background: var(--peach); color: var(--navy); font-family: var(--caps); font-size: 11px; border-radius: 10px; padding: 0 7px; line-height: 18px; }
.side-foot { margin-top: auto; padding: 16px 26px 0; border-top: 1px solid var(--navy-3); font-size: 14px; }
.side-foot .who { color: #fff; }
.side-foot form { margin: 6px 0 0; }
.side-foot button { background: none; border: 0; padding: 0; color: #9ea3b8; font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.main { min-width: 0; }
.topbar { display: none; }
.page { max-width: 1180px; margin: 0 auto; padding: 40px 40px 80px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 28px; flex-wrap: wrap; }
.page-head h1 { margin: 4px 0 0; }
.page-head p { margin: 6px 0 0; color: var(--muted); max-width: 640px; }

/* ---------- building blocks ---------- */
.grid { display: grid; gap: 20px; }
.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)); }
.split { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; box-shadow: var(--shadow); }
.card > h2:first-child, .card > h3:first-child { margin-top: 0; }
.card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 14px; }
.card-head h2, .card-head h3 { margin: 0; }
.card.flush { padding: 0; }
.card.flush .card-head { padding: 20px 24px 0; }
.stack > * + * { margin-top: 20px; }

.stat { padding: 18px 20px; }
.stat .num { font-family: var(--serif); font-size: 34px; color: var(--navy); line-height: 1.1; margin-top: 6px; }
.stat .num small { font-family: var(--sans); font-size: 15px; color: var(--muted); }
.stat.bad .num { color: var(--bad); }
.stat.warn .num { color: var(--warn); }
.stat.ok .num { color: var(--ok); }

.hero { background: var(--navy) url('/static/img/lighthouse.jpg') center 40% / cover; position: relative; color: #fff; border-radius: var(--radius); padding: 40px 40px 36px; overflow: hidden; margin-bottom: 28px; }
.hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(1, 7, 32, .92) 0%, rgba(1, 7, 32, .75) 55%, rgba(1, 7, 32, .35) 100%); }
.hero > * { position: relative; }
.hero h1 { color: #fff; font-size: 38px; letter-spacing: 1px; margin: 6px 0 8px; }
.hero p { color: #d9dbe5; max-width: 560px; margin: 0 0 22px; }
.hero .caps { color: var(--peach); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px; border-radius: var(--radius); border: 1px solid var(--navy); background: var(--navy); color: #fff; font-family: var(--caps); font-size: 12px; letter-spacing: 1.4px; text-transform: uppercase; text-decoration: none; cursor: pointer; white-space: nowrap; line-height: 1.3; }
.btn:hover { background: var(--navy-3); }
.btn.ghost { background: transparent; color: var(--navy); border-color: var(--line-2); }
.btn.ghost:hover { border-color: var(--navy); background: transparent; }
.btn.light { background: #fff; color: var(--navy); border-color: #fff; }
.btn.light:hover { background: var(--peach-soft); }
.btn.peach { background: var(--peach); border-color: var(--peach); color: var(--navy); }
.btn.peach:hover { background: #f8a585; }
.btn.danger { background: var(--bad); border-color: var(--bad); }
.btn.sm { padding: 6px 11px; font-size: 11px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btns { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; color: var(--navy); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

.pill { display: inline-flex; align-items: center; gap: 5px; font-family: var(--caps); font-size: 10.5px; letter-spacing: 1px; text-transform: uppercase; padding: 3px 8px; border-radius: 20px; background: #eef0f4; color: var(--muted); white-space: nowrap; line-height: 1.3; }
.pill.ok { background: var(--ok-bg); color: var(--ok); }
.pill.warn { background: var(--warn-bg); color: var(--warn); }
.pill.bad { background: var(--bad-bg); color: var(--bad); }
.pill.info { background: var(--info-bg); color: var(--info); }
.pill.peach { background: var(--peach-soft); color: #9b4d2f; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; background: var(--line-2); flex: none; }
.dot.ok { background: var(--ok); } .dot.warn { background: #d99b1c; } .dot.bad { background: var(--bad); }

.notice { padding: 12px 16px; border-radius: var(--radius); background: var(--info-bg); color: var(--info); margin-bottom: 20px; font-size: 15px; border: 1px solid #d5ddef; }
.notice.ok { background: var(--ok-bg); color: var(--ok); border-color: #cfe5d9; }
.notice.bad { background: var(--bad-bg); color: var(--bad); border-color: #f2cdc8; }
.notice.warn { background: var(--warn-bg); color: var(--warn); border-color: #efdcb2; }
.notice.peach { background: var(--peach-soft); color: #7a3a22; border-color: #f7d4c5; }
.notice a { color: inherit; }

/* ---------- tables & lists ---------- */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th { text-align: left; font-family: var(--caps); font-weight: 400; font-size: 10.5px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--muted); padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: #fafbfc; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
.card.flush table th:first-child, .card.flush table td:first-child { padding-left: 24px; }
.card.flush table th:last-child, .card.flush table td:last-child { padding-right: 24px; }

.list { list-style: none; margin: 0; padding: 0; }
.list li { padding: 12px 0; border-bottom: 1px solid var(--line); display: flex; gap: 12px; align-items: flex-start; }
.list li:last-child { border-bottom: 0; }
.list .grow { flex: 1; min-width: 0; }
.list a.title { text-decoration: none; font-weight: 500; }
.list a.title:hover { text-decoration: underline; }
.empty { color: var(--muted); padding: 18px 0; text-align: center; font-size: 15px; }

/* ---------- forms ---------- */
label { display: block; font-size: 14px; font-weight: 500; margin: 0 0 6px; color: var(--ink); }
.field { margin-bottom: 18px; }
.field .hint { font-size: 13px; color: var(--muted); margin-top: 5px; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=search], input[type=date], select, textarea {
  width: 100%; font: inherit; font-size: 16px; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: var(--radius); background: #fff; color: var(--ink);
}
textarea { min-height: 140px; resize: vertical; line-height: 1.5; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--peach); outline-offset: 0; border-color: var(--navy); }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.choice-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; }
.choice span { display: block; border: 1px solid var(--line-2); border-radius: var(--radius); padding: 12px 14px; cursor: pointer; background: #fff; height: 100%; }
.choice span b { display: block; font-weight: 500; }
.choice span small { color: var(--muted); font-size: 13px; }
.choice input:checked + span { border-color: var(--navy); box-shadow: inset 0 0 0 1px var(--navy); background: #fbfbfd; }
.choice input:focus-visible + span { outline: 2px solid var(--peach); }
.check { display: flex; gap: 10px; align-items: center; font-weight: 400; }
.check input { width: 18px; height: 18px; accent-color: var(--navy); }

/* ---------- guides / prose ---------- */
.prose { font-size: 17px; line-height: 1.7; max-width: 720px; }
.prose h2 { font-size: 22px; margin: 1.6em 0 .5em; }
.prose h3 { font-size: 18px; margin: 1.4em 0 .4em; }
.prose ol, .prose ul { padding-left: 1.4em; }
.prose li { margin: .35em 0; }
.prose img { max-width: 100%; }
.callout { margin: 1.2em 0; padding: 14px 18px; border-left: 3px solid var(--info); background: var(--info-bg); border-radius: 0 var(--radius) var(--radius) 0; }
.callout p:last-child { margin: 0; }
.callout-important { border-color: var(--bad); background: var(--bad-bg); }
.callout-tip { border-color: var(--ok); background: var(--ok-bg); }
.guide-card { display: flex; flex-direction: column; text-decoration: none; color: inherit; height: 100%; transition: border-color .15s; }
.guide-card:hover { border-color: var(--navy); }
.guide-card h3 { margin: 8px 0 6px; font-size: 17px; }
.guide-card p { color: var(--muted); font-size: 14.5px; margin: 0; flex: 1; }
.guide-card .meta { margin-top: 14px; display: flex; gap: 8px; align-items: center; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 22px; flex-wrap: wrap; }
.tabs a { padding: 9px 14px; text-decoration: none; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; font-size: 15px; }
.tabs a.on { color: var(--navy); border-color: var(--navy); }

/* ---------- tickets ---------- */
.thread { display: flex; flex-direction: column; gap: 14px; }
.msg { display: flex; gap: 14px; }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-family: var(--caps); font-size: 12px; letter-spacing: 1px; flex: none; }
.avatar.staff { background: var(--peach); color: var(--navy); }
.bubble { flex: 1; min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px; }
.bubble.internal { background: #fffbea; border-color: #f1e2a8; }
.bubble .meta { font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.attachment { display: inline-flex; gap: 6px; align-items: center; margin-top: 8px; font-size: 14px; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; font-size: 15px; margin: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }

/* ---------- progress / checklist ---------- */
.progress { height: 6px; background: #eceef3; border-radius: 6px; overflow: hidden; }
.progress > span { display: block; height: 100%; background: var(--navy); border-radius: 6px; transition: width .3s; }
.progress.peach > span { background: var(--peach); }
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.checklist li:last-child { border-bottom: 0; }
.tick { width: 24px; height: 24px; border: 1.5px solid var(--line-2); border-radius: 50%; background: #fff; flex: none; display: grid; place-items: center; cursor: pointer; padding: 0; margin-top: 1px; }
.tick svg { width: 14px; height: 14px; stroke: #fff; stroke-width: 2.4; fill: none; opacity: 0; }
.tick.on { background: var(--navy); border-color: var(--navy); }
.tick.on svg { opacity: 1; }
.tick.auto { cursor: default; }
.checklist .t { font-weight: 500; }
.checklist .done .t { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--line-2); }
.checklist .why { font-size: 14px; color: var(--muted); margin-top: 2px; }

.steps { list-style: none; padding: 0; margin: 0; counter-reset: s; }
.steps > li { position: relative; padding: 0 0 26px 52px; }
.steps > li::before { counter-increment: s; content: counter(s); position: absolute; left: 0; top: 0; width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid var(--line-2); display: grid; place-items: center; font-family: var(--serif); color: var(--navy); background: #fff; }
.steps > li::after { content: ''; position: absolute; left: 17px; top: 36px; bottom: 2px; width: 1px; background: var(--line); }
.steps > li:last-child::after { display: none; }
.steps > li.done::before { content: '✓'; background: var(--navy); color: #fff; border-color: var(--navy); font-family: var(--sans); }
.steps h3 { font-family: var(--sans); font-weight: 500; font-size: 17px; margin: 5px 0 4px; color: var(--ink); }
.steps p { color: var(--muted); margin: 0 0 10px; font-size: 15px; }
.token { display: flex; gap: 8px; align-items: stretch; margin: 10px 0; }
.token code { flex: 1; min-width: 0; padding: 9px 12px; overflow-x: auto; white-space: nowrap; background: #f1f2f6; border: 1px solid var(--line); }

/* ---------- bulletins ---------- */
.post { display: grid; grid-template-columns: 4px 1fr; gap: 0 18px; }
.post .bar { border-radius: 4px; background: var(--line-2); }
.post.critical .bar { background: var(--bad); }
.post.action .bar { background: #d99b1c; }
.post.advisory .bar { background: var(--info); }
.post h3 { margin: 6px 0 4px; font-size: 19px; }
.post h3 a { text-decoration: none; }

/* ---------- academy game ---------- */
.game { max-width: 820px; }
.game-hud { display: flex; gap: 24px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-bottom: 16px; }
.game-hud .hud-item { display: flex; flex-direction: column; }
.game-hud .hud-item b { font-family: var(--serif); font-size: 24px; font-weight: 400; color: var(--navy); line-height: 1.2; }
.timer { height: 4px; background: #eceef3; border-radius: 4px; overflow: hidden; margin-bottom: 18px; }
.timer > span { display: block; height: 100%; background: var(--peach); width: 100%; }
.mail { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; overflow: hidden; box-shadow: var(--shadow); }
.mail-head { padding: 16px 20px; border-bottom: 1px solid var(--line); background: #fbfbfd; }
.mail-head .subject { font-size: 19px; font-weight: 500; margin-bottom: 8px; }
.mail-head .from { font-size: 14.5px; }
.mail-head .from code { background: #fff; border: 1px solid var(--line); }
.mail-body { padding: 18px 20px; white-space: pre-wrap; font-size: 15.5px; min-height: 140px; }
.verdict { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }
.verdict button { padding: 16px; font-size: 13px; }
.feedback { margin-top: 16px; padding: 16px 20px; border-radius: var(--radius); }
.feedback.right { background: var(--ok-bg); border: 1px solid #cfe5d9; }
.feedback.wrong { background: var(--bad-bg); border: 1px solid #f2cdc8; }
.feedback h3 { font-family: var(--sans); font-weight: 600; font-size: 16px; margin: 0 0 6px; color: inherit; }
.feedback ul { margin: 6px 0 12px; padding-left: 1.2em; }
.options { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.options button { text-align: left; background: #fff; border: 1px solid var(--line-2); border-radius: var(--radius); padding: 14px 16px; font: inherit; cursor: pointer; color: var(--ink); }
.options button:hover:not([disabled]) { border-color: var(--navy); }
.options button.correct { border-color: var(--ok); background: var(--ok-bg); }
.options button.incorrect { border-color: var(--bad); background: var(--bad-bg); }
.game-intro ul { padding-left: 1.2em; }
.bigscore { font-family: var(--serif); font-size: 64px; color: var(--navy); line-height: 1; }
.pop { animation: pop .35s ease; }
@keyframes pop { 0% { transform: scale(.97); opacity: .6; } 100% { transform: none; opacity: 1; } }
.shake { animation: shake .35s ease; }
@keyframes shake { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }

/* ---------- login ---------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; background: #fff; }
.auth-art { background: var(--navy) url('/static/img/lighthouse.jpg') center / cover; position: relative; display: flex; align-items: flex-end; padding: 48px; color: #fff; }
.auth-art::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(1, 7, 32, .35), rgba(1, 7, 32, .85)); }
.auth-art > * { position: relative; }
.auth-art .word { font-family: var(--serif); font-size: 46px; letter-spacing: 3px; line-height: 1.1; }
.auth-art .sub { font-family: var(--caps); font-size: 12px; letter-spacing: 6px; text-transform: uppercase; color: var(--peach); margin-top: 10px; }
.auth-form { display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.auth-form .box { width: 100%; max-width: 380px; }
.ms-btn { width: 100%; display: flex; align-items: center; justify-content: center; gap: 12px; padding: 12px; border: 1px solid var(--line-2); border-radius: var(--radius); background: #fff; color: var(--ink); text-decoration: none; font-weight: 500; }
.ms-btn:hover { border-color: var(--navy); }
.or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; margin: 22px 0; }
.or::before, .or::after { content: ''; flex: 1; height: 1px; background: var(--line); }

/* ---------- status widget ---------- */
.svc { display: flex; align-items: center; gap: 10px; padding: 7px 0; font-size: 15px; }
.svc .desc { font-size: 13px; color: var(--muted); }

details summary { cursor: pointer; }
.inline-form { display: inline; }
.demo-badge { display: inline-block; margin-left: 8px; vertical-align: middle; }

/* ---------- navigation helpers ---------- */
.subnav { display: inline-flex; gap: 4px; background: #eceef3; padding: 4px; border-radius: 8px; margin-bottom: 22px; flex-wrap: wrap; }
.subnav a { padding: 7px 14px; border-radius: 6px; text-decoration: none; color: var(--muted); font-size: 14.5px; }
.subnav a:hover { color: var(--navy); }
.subnav a.on { background: #fff; color: var(--navy); box-shadow: 0 1px 2px rgba(1, 7, 32, .08); }
.btn.on-dark { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .35); }
.btn.on-dark:hover { border-color: #fff; }
.link-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; }
.link-grid a { display: flex; flex-direction: column; gap: 2px; padding: 11px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.link-grid a:hover span:last-child { text-decoration: underline; }

/* ---------- tasks / to-do ---------- */
.tasks { list-style: none; margin: 0; padding: 0; }
.tasks li { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.tasks li:last-child { border-bottom: 0; }
.tasks li > .dot { margin-top: 0; }
.tasks .t { font-weight: 500; text-decoration: none; color: var(--ink); }
a.t:hover { text-decoration: underline; }
.tasks .grow { flex: 1; min-width: 0; }
.all-good { padding: 14px 16px; background: var(--ok-bg); color: var(--ok); border-radius: var(--radius); font-size: 15px; }
.empty-state { text-align: center; padding: 40px 24px; }

/* ---------- device cards ---------- */
.device-card { padding: 0; overflow: hidden; }
.device-card > * { padding-left: 24px; padding-right: 24px; }
.device-top { display: flex; gap: 16px; align-items: flex-start; padding-top: 20px; padding-bottom: 16px; }
.device-top h2 { margin: 0 0 2px; font-size: 20px; }
.device-top .grow { flex: 1; min-width: 0; }
.device-icon { width: 44px; height: 44px; border-radius: 10px; background: var(--paper); display: grid; place-items: center; flex: none; border: 1px solid var(--line); }
.device-icon svg { width: 24px; height: 24px; stroke: var(--navy); fill: none; stroke-width: 1.5; }
.device-icon.windows svg { stroke: var(--info); }
.setup-bar { display: flex; gap: 16px; align-items: center; background: var(--peach-soft); padding-top: 14px; padding-bottom: 14px; }
.setup-bar .grow { flex: 1; }
.setup-bar .progress { background: #fff; }
.device-card .tasks { padding-top: 4px; padding-bottom: 4px; }
.device-card .all-good { margin: 0 24px 16px; }
.device-foot { border-top: 1px solid var(--line); padding-top: 12px; padding-bottom: 12px; background: #fbfbfd; color: var(--muted); }

/* ---------- admin command center ---------- */
.headline { display: flex; align-items: center; gap: 14px; padding: 18px 22px; border-radius: var(--radius); margin-bottom: 22px; background: var(--navy); color: #fff; }
.headline h2 { color: #fff; margin: 0; font-size: 22px; }
.headline p { margin: 2px 0 0; color: #c9cbd6; font-size: 15px; }
.headline .big-dot { width: 14px; height: 14px; border-radius: 50%; flex: none; background: #4cc38a; box-shadow: 0 0 0 5px rgba(76, 195, 138, .2); }
.headline.warn .big-dot { background: #f0b43c; box-shadow: 0 0 0 5px rgba(240, 180, 60, .2); }
.headline.bad .big-dot { background: #ff6b5e; box-shadow: 0 0 0 5px rgba(255, 107, 94, .22); }
.tiles { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; margin-bottom: 24px; }
.tile { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; text-decoration: none; color: inherit; box-shadow: var(--shadow); display: block; }
.tile:hover { border-color: var(--navy); }
.tile .n { font-family: var(--serif); font-size: 28px; color: var(--navy); line-height: 1.15; margin-top: 4px; }
.tile .n small { font-family: var(--sans); font-size: 14px; color: var(--muted); }
.tile.bad .n { color: var(--bad); } .tile.warn .n { color: var(--warn); } .tile.ok .n { color: var(--ok); }
.tile .sub { font-size: 13px; color: var(--muted); }
.attention li { align-items: flex-start; }
.attention li > .dot { margin-top: 7px; }
.feed { list-style: none; margin: 0; padding: 0; }
.feed li { display: grid; grid-template-columns: 62px 1fr; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.feed li:last-child { border-bottom: 0; }
.feed .when { color: var(--muted); font-size: 12.5px; white-space: nowrap; padding-top: 1px; }
.feed .src { font-family: var(--caps); font-size: 9.5px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted); margin-right: 6px; }
.meter { display: flex; align-items: center; gap: 10px; font-size: 14px; margin: 8px 0; }
.meter .progress { flex: 1; }
.meter b { font-weight: 500; min-width: 44px; text-align: right; }
.toolbar { display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-bottom: 14px; }
.toolbar form { display: flex; gap: 8px; }
.toolbar input[type=search] { width: 240px; padding: 8px 12px; font-size: 15px; }
.row-link { text-decoration: none; font-weight: 500; }
.row-link:hover { text-decoration: underline; }
.secret { font-family: ui-monospace, 'SF Mono', Menlo, monospace; background: #f1f2f6; border: 1px solid var(--line); padding: 6px 10px; border-radius: var(--radius); display: inline-block; }
.remote-card { border-left: 3px solid var(--peach); }
.section-title { display: flex; align-items: center; justify-content: space-between; margin: 26px 0 10px; }
.section-title h3 { margin: 0; }

/* ---------- responsive ---------- */
@media (max-width: 1060px) {
  .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: fixed; inset: 0 auto 0 0; width: 270px; z-index: 30; transform: translateX(-100%); transition: transform .2s; }
  body.nav-open .side { transform: none; box-shadow: 0 0 0 100vmax rgba(1, 7, 32, .45); }
  .topbar { display: flex; align-items: center; justify-content: space-between; background: var(--navy); color: #fff; padding: 12px 16px; position: sticky; top: 0; z-index: 20; }
  .topbar .word { font-family: var(--serif); font-size: 19px; letter-spacing: 1px; color: #fff; text-decoration: none; }
  .topbar button { background: none; border: 1px solid var(--navy-3); color: #fff; border-radius: var(--radius); padding: 6px 10px; font-family: var(--caps); font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; }
  .page { padding: 24px 16px 60px; }
  h1 { font-size: 27px; }
  .hero { padding: 28px 22px; }
  .hero h1 { font-size: 28px; }
  .g2, .g3, .g4, .row { grid-template-columns: 1fr; }
  .auth { grid-template-columns: 1fr; }
  .auth-art { min-height: 220px; padding: 28px 22px; }
  .auth-art .word { font-size: 32px; }
  .card { padding: 18px 16px; }
  .card.flush .card-head { padding: 16px 16px 0; }
  .card.flush table th:first-child, .card.flush table td:first-child { padding-left: 16px; }
  .verdict { grid-template-columns: 1fr; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .link-grid { grid-template-columns: 1fr; }
  .device-card > * { padding-left: 16px; padding-right: 16px; }
  .setup-bar { flex-direction: column; align-items: stretch; }
  .toolbar input[type=search] { width: 100%; }
  .hide-sm { display: none; }
}
@media print {
  .side, .topbar, .no-print { display: none !important; }
  .shell { display: block; }
}
