/* Jarvis Mission Control: HUD theme. Dark by design; no external fonts or images (strict CSP). */
:root {
  --bg: #040a14;
  --panel: rgba(9, 24, 44, .72);
  --panel-hi: rgba(14, 38, 66, .78);
  --line: rgba(56, 189, 248, .22);
  --line-hi: rgba(56, 225, 255, .55);
  --cyan: #38e1ff;
  --blue: #4c8dff;
  --violet: #a78bfa;
  --amber: #ffb547;
  --text: #d8f1ff;
  --muted: #86a8bc;
  --dim: #4f6d80;
  --ok: #34e3a0;
  --warn: #ffb547;
  --bad: #ff5c6c;
  --glow: 0 0 18px rgba(56, 225, 255, .28);
  --mono: ui-monospace, "Cascadia Mono", "SF Mono", Consolas, "Liberation Mono", monospace;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font: 14px/1.45 "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  min-height: 100vh;
  background:
    radial-gradient(1100px 650px at 55% 18%, rgba(18, 82, 140, .38), transparent 62%),
    radial-gradient(800px 520px at 95% 95%, rgba(70, 40, 140, .20), transparent 60%),
    radial-gradient(700px 500px at 0% 100%, rgba(10, 90, 120, .18), transparent 60%),
    var(--bg);
}
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background-image: linear-gradient(rgba(56, 189, 248, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(56, 189, 248, .045) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 35%, #000 25%, transparent 78%);
  mask-image: radial-gradient(ellipse at 50% 35%, #000 25%, transparent 78%);
}
#app { position: relative; z-index: 1; }
h1, h2 { margin: 0; font-weight: 600; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
.muted { color: var(--muted); font-size: 13px; }
.mono { font-family: var(--mono); }
.ico { width: 18px; height: 18px; flex: none; }

/* ---------- shell ---------- */
.shell { display: grid; grid-template-columns: 236px minmax(0, 1fr); min-height: 100vh; }
.side {
  position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 14px; padding: 16px 12px;
  border-right: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(8, 22, 40, .92), rgba(4, 10, 20, .92));
}
.brand { display: flex; align-items: center; gap: 11px; padding: 4px 6px 10px; border-bottom: 1px solid var(--line); }
.brand-orb {
  width: 38px; height: 38px; border-radius: 50%; position: relative; flex: none;
  background: radial-gradient(circle at 50% 50%, rgba(56, 225, 255, .9) 0 14%, rgba(56, 225, 255, .18) 15% 40%, transparent 41%);
  border: 1px solid var(--line-hi); box-shadow: var(--glow), inset 0 0 12px rgba(56, 225, 255, .35);
}
.brand-orb::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 1px dashed rgba(56, 225, 255, .45); animation: spin 14s linear infinite; }
.brand-name { font-weight: 700; letter-spacing: .32em; font-size: 17px; text-shadow: var(--glow); }
.brand-sub { font-size: 9.5px; letter-spacing: .3em; color: var(--muted); text-transform: uppercase; }
.nav { display: flex; flex-direction: column; gap: 4px; overflow-y: auto; }
.nav-group { margin: 12px 8px 4px; font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--dim); }
.nav button {
  display: flex; align-items: center; gap: 11px; width: 100%; text-align: left; cursor: pointer;
  padding: 10px 12px; border-radius: 9px; border: 1px solid transparent; background: transparent; color: var(--muted);
  transition: background .15s, color .15s, border-color .15s;
}
.nav button:hover { color: var(--text); background: rgba(56, 189, 248, .07); }
.nav button[aria-current="page"] {
  color: var(--cyan); border-color: var(--line-hi); background: linear-gradient(90deg, rgba(56, 225, 255, .16), rgba(56, 225, 255, .03));
  box-shadow: inset 3px 0 0 var(--cyan), var(--glow);
}
.side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 8px; font-size: 12px; color: var(--muted); }
.side-foot .ver { font-family: var(--mono); letter-spacing: .06em; }
.main { padding: 14px 20px 22px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }

/* ---------- top bar ---------- */
.topbar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; }
.pill {
  justify-self: start; display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px; border-radius: 10px;
  border: 1px solid var(--line-hi); background: var(--panel); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; box-shadow: var(--glow);
}
.pill b { letter-spacing: .14em; }
button.pill { color: var(--text); cursor: pointer; font: inherit; font-size: 11px; }
button.pill:hover:not(:disabled) { box-shadow: var(--glow); }
.pill .caret { color: var(--muted); font-size: 10px; margin-left: 2px; }
.health-panel { padding: 12px 14px; border: 1px solid var(--line-hi); border-radius: 12px; background: var(--panel-hi); box-shadow: var(--glow); }
.health-panel[hidden] { display: none; }
.health-title { font-size: 11.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--cyan); margin-bottom: 8px; }
.health-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; margin-top: 6px; border: 1px solid var(--line); border-radius: 9px; background: rgba(56, 189, 248, .045); }
.hdot { width: 9px; height: 9px; border-radius: 50%; flex: none; background: var(--dim); }
.health-row.ok .hdot { background: var(--ok); box-shadow: 0 0 8px var(--ok); }
.health-row.warn .hdot { background: var(--warn); box-shadow: 0 0 8px var(--warn); }
.health-row.bad .hdot { background: var(--bad); box-shadow: 0 0 8px var(--bad); }
.health-row.warn { border-color: rgba(255, 181, 71, .45); }
.health-row.bad { border-color: rgba(255, 92, 108, .5); }
.hlevel { margin-left: 6px; font-size: 10px; letter-spacing: .12em; font-weight: 400; color: var(--muted); }
.health-row.warn .hlevel { color: var(--warn); } .health-row.bad .hlevel { color: var(--bad); }
.health-row .row-sub { white-space: normal; overflow-wrap: anywhere; }
.pill.ok b, .pill.ok .dot { color: var(--ok); } .pill.warn b { color: var(--warn); } .pill.bad b { color: var(--bad); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 10px currentColor; }
.pill.ok .dot { color: var(--ok); } .pill.warn .dot { color: var(--warn); } .pill.bad .dot { color: var(--bad); }
.clock { text-align: center; line-height: 1.1; }
.clock-date { font-size: 12.5px; color: var(--muted); }
.clock-time { font-family: var(--mono); font-size: 30px; letter-spacing: .06em; color: var(--cyan); text-shadow: var(--glow); }
.top-right { justify-self: end; display: flex; gap: 8px; align-items: center; }
.weather { display: flex; align-items: center; gap: 10px; padding: 4px 14px; border: 1px solid var(--line); border-radius: 12px; background: rgba(8, 20, 34, .5); cursor: default; }
.weather[hidden] { display: none; }
.wx-icon { font-size: 28px; line-height: 1; }
.wx-main { display: flex; flex-direction: column; line-height: 1.15; }
.wx-temp { font-family: var(--mono); font-size: 20px; letter-spacing: .04em; color: var(--cyan); text-shadow: var(--glow); font-weight: 600; }
.wx-text { font-size: 12px; color: var(--text); }
.wx-range { font-size: 10.5px; letter-spacing: .08em; color: var(--muted); }
.banner {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 8px 14px; border-radius: 10px;
  border: 1px solid rgba(255, 181, 71, .5); background: rgba(255, 181, 71, .08); color: var(--warn);
}
.banner[hidden] { display: none; }

/* ---------- panels ---------- */
.panel, .card {
  position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  box-shadow: inset 0 0 34px rgba(56, 189, 248, .045), 0 6px 24px rgba(0, 0, 0, .28);
}
.panel::before, .panel::after { content: ""; position: absolute; width: 12px; height: 12px; border: 2px solid var(--cyan); opacity: .85; pointer-events: none; }
.panel::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; border-top-left-radius: 12px; }
.panel::after { bottom: -1px; right: -1px; border-left: 0; border-top: 0; border-bottom-right-radius: 12px; }
.panel > h2, .card > h2 {
  display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 10px;
  font-size: 11.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--cyan); text-shadow: 0 0 10px rgba(56, 225, 255, .45);
}
.card { margin: 10px 0; }
.card::before, .card::after { display: none; }
.card h2 { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--cyan); margin: 0 0 8px; }

.dash { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 14px; }
.p-integ { grid-column: span 3; }
.hero { grid-column: span 6; }
.p-feed { grid-column: span 3; }
.p-lights { grid-column: span 5; }
.p-time { grid-column: span 4; }
.p-quick { grid-column: span 3; }
.p-sys { grid-column: span 5; }
.p-rules { grid-column: span 4; }
.p-server { grid-column: span 3; }

.p-mqtt { grid-column: span 3; }
.p-devices { grid-column: span 5; }
.p-wled { grid-column: span 4; }
.p-thermo { grid-column: span 4; }

/* list rows (integrations, rules) */
.rows { display: flex; flex-direction: column; gap: 7px; }
.row-item {
  display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 9px;
  border: 1px solid var(--line); background: rgba(56, 189, 248, .045);
}
.row-ico { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--line); color: var(--cyan); background: rgba(56, 225, 255, .08); flex: none; }
.row-main { min-width: 0; flex: 1; }
.row-title { font-weight: 600; overflow-wrap: anywhere; }
.row-sub { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chip { display: inline-block; padding: 1px 9px; border-radius: 99px; font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; border: 1px solid var(--line); white-space: nowrap; }
.chip.ok { color: var(--ok); border-color: rgba(52, 227, 160, .55); }
.chip.warn { color: var(--warn); border-color: rgba(255, 181, 71, .55); }
.chip.bad { color: var(--bad); border-color: rgba(255, 92, 108, .55); }
.chip.info { color: var(--cyan); border-color: var(--line-hi); }
.chip.dim { color: var(--muted); }
.live::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 6px; border-radius: 50%; background: currentColor; animation: pulse 1.6s ease-in-out infinite; }

/* hero */
.hero { min-height: 360px; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; padding: 0; }
.orb { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-content { position: relative; z-index: 1; margin-top: 22%; text-align: center; pointer-events: none; }
.hero-title { font-size: clamp(30px, 4.2vw, 50px); font-weight: 700; letter-spacing: .5em; padding-left: .5em; color: #eaffff; text-shadow: 0 0 22px rgba(56, 225, 255, .95), 0 0 60px rgba(56, 225, 255, .5); }
.hero-sub { margin-top: 2px; font-size: 12px; letter-spacing: .5em; padding-left: .5em; color: var(--cyan); }
.hero-foot { position: relative; z-index: 1; text-align: center; padding: 10px 14px 14px; background: linear-gradient(180deg, transparent, rgba(4, 10, 20, .75)); }
.hero-now { font-size: 15px; font-weight: 600; text-shadow: 0 0 12px rgba(56, 225, 255, .35); }

/* lights */
.light-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.light {
  display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; border-radius: 10px;
  border: 1px solid var(--line); background: rgba(56, 189, 248, .045);
}
.light.on { border-color: rgba(52, 227, 160, .6); background: linear-gradient(135deg, rgba(52, 227, 160, .13), rgba(56, 189, 248, .04)); box-shadow: 0 0 22px rgba(52, 227, 160, .16); }
.light.bad { border-color: rgba(255, 92, 108, .55); }
.light-top { display: flex; align-items: center; gap: 9px; }
.light-name { font-weight: 600; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.light-state { font-family: var(--mono); font-size: 12px; letter-spacing: .12em; color: var(--muted); }
.light.on .light-state, .light.on .light-top .ico { color: var(--ok); text-shadow: 0 0 10px rgba(52, 227, 160, .6); }
.light.bad .light-state, .light.bad .light-top .ico { color: var(--bad); }
.light-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.light { min-width: 0; }

/* timeline */
.tl { display: flex; flex-direction: column; }
.tl-item { display: grid; grid-template-columns: 74px 14px 1fr auto; align-items: center; gap: 8px; padding: 6px 0; position: relative; }
.tl-item::before { content: ""; position: absolute; left: 89px; top: 0; bottom: 0; width: 1px; background: var(--line); }
.tl-time { font-family: var(--mono); font-size: 12.5px; color: var(--muted); text-align: right; white-space: nowrap; }
.tl-dot { width: 9px; height: 9px; border-radius: 50%; border: 2px solid var(--cyan); background: var(--bg); position: relative; z-index: 1; justify-self: center; }
.tl-label { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tl-rel { font-size: 12px; color: var(--muted); white-space: nowrap; }
.tl-item.past { opacity: .5; }
.tl-item.next .tl-label { font-weight: 700; color: var(--cyan); }
.tl-item.next .tl-dot { box-shadow: 0 0 12px var(--cyan); background: var(--cyan); }
.tl-item.now .tl-label { color: var(--ok); font-weight: 600; }
.tl-item.now .tl-dot { border-color: var(--ok); background: var(--ok); box-shadow: 0 0 12px var(--ok); }
.k-sunrise .tl-dot { border-color: var(--amber); } .k-sunset .tl-dot { border-color: var(--violet); }
.k-on .tl-dot { border-color: var(--ok); } .k-off .tl-dot { border-color: var(--blue); }

/* feed */
.feed { display: flex; flex-direction: column; gap: 6px; max-height: 330px; overflow-y: auto; padding-right: 2px; }
.feed-item { display: grid; grid-template-columns: 8px 1fr auto; gap: 9px; align-items: start; padding: 7px 9px; border-radius: 9px; border: 1px solid var(--line); background: rgba(56, 189, 248, .04); }
.feed-dot { width: 7px; height: 7px; margin-top: 6px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 8px var(--cyan); }
.feed-item.warn .feed-dot { background: var(--warn); box-shadow: 0 0 8px var(--warn); }
.feed-item.error .feed-dot { background: var(--bad); box-shadow: 0 0 8px var(--bad); }
.feed-msg { font-size: 13px; overflow-wrap: anywhere; }
.feed-time { font-family: var(--mono); font-size: 11px; color: var(--muted); white-space: nowrap; }

/* quick commands */
.quick { display: flex; flex-direction: column; gap: 8px; }
.quick button { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 10px 12px; border-radius: 9px; cursor: pointer; border: 1px solid var(--line); background: rgba(56, 189, 248, .05); }
.quick button:hover:not(:disabled) { border-color: var(--line-hi); box-shadow: var(--glow); }
.quick button:disabled { opacity: .4; cursor: default; }
.quick .ico { color: var(--cyan); }

/* system monitor */
.gauges { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.gauge { text-align: center; }
.gauge-svg { width: 100%; max-width: 112px; }
.g-track { stroke: rgba(56, 189, 248, .14); }
.g-val { stroke: var(--cyan); filter: drop-shadow(0 0 5px rgba(56, 225, 255, .6)); transition: stroke-dasharray .6s ease; }
.gauge-svg.warn .g-val { stroke: var(--warn); } .gauge-svg.bad .g-val { stroke: var(--bad); } .gauge-svg.na .g-val { stroke: transparent; }
.g-num { fill: var(--text); font-size: 20px; font-weight: 600; font-family: var(--mono); }
.g-label { font-size: 11px; letter-spacing: .18em; color: var(--cyan); text-transform: uppercase; margin-top: -4px; }
.g-sub { font-size: 11.5px; color: var(--muted); }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 5px 14px; margin-top: 12px; font-size: 13px; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; text-align: right; font-family: var(--mono); overflow-wrap: anywhere; }

.statusbar { display: flex; flex-wrap: wrap; gap: 8px 22px; padding: 9px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); font-size: 12.5px; color: var(--muted); }
.statusbar span { display: inline-flex; align-items: center; gap: 7px; }
.statusbar .ico { width: 15px; height: 15px; color: var(--cyan); }

/* ---------- pages (schedule, override, scenes, settings) ---------- */
.page-head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.page-head h1 { font-size: 20px; letter-spacing: .14em; text-transform: uppercase; text-shadow: var(--glow); }
.row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 7px 0; }
button { cursor: pointer; padding: 7px 14px; border-radius: 9px; border: 1px solid var(--line-hi); background: rgba(56, 189, 248, .08); transition: box-shadow .15s, background .15s; }
button:hover:not(:disabled) { background: rgba(56, 189, 248, .16); box-shadow: var(--glow); }
button:disabled { opacity: .45; cursor: default; }
button.primary { background: linear-gradient(180deg, rgba(56, 225, 255, .95), rgba(34, 150, 230, .95)); color: #02101c; border-color: transparent; font-weight: 600; }
button.primary:hover:not(:disabled) { background: linear-gradient(180deg, #7aeaff, #3aa7f0); }
button.danger { color: var(--bad); border-color: rgba(255, 92, 108, .5); }
button.small { padding: 3px 10px; font-size: 12px; border-radius: 7px; }
input, select { padding: 6px 10px; border-radius: 8px; border: 1px solid var(--line); background: rgba(4, 12, 24, .8); }
input:focus, select:focus { border-color: var(--cyan); box-shadow: 0 0 0 2px rgba(56, 225, 255, .18); outline: none; }
input.bad { border-color: var(--bad); color: var(--bad); }
input[type=text].w-name { width: 200px; }
input.w-time { width: 110px; }
input.w-num { width: 120px; }
input[type=checkbox], input[type=radio] { width: auto; accent-color: var(--cyan); }
select option { background: #0a1a30; color: var(--text); }
.scene-list { max-height: 55vh; overflow: auto; }
.scene-list .row { border-bottom: 1px solid var(--line); margin: 0; padding: 5px 0; }
.toast { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); padding: 9px 16px; border-radius: 10px; color: #02101c; max-width: 90vw; font-weight: 600; z-index: 20; box-shadow: 0 8px 30px rgba(0, 0, 0, .5); }
.toast.ok { background: var(--ok); } .toast.err { background: var(--bad); color: #fff; }

/* login */
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 16px; }
.login { width: min(420px, 100%); text-align: center; padding: 26px 24px; }
.login .brand-orb { width: 74px; height: 74px; margin: 0 auto 14px; }
.login .hero-title { font-size: 30px; }
.login .hero-sub { margin-bottom: 18px; }
.login input { width: 100%; margin: 6px 0 10px; text-align: center; }
.login button { width: 100%; }

/* ---------- devices, WLED, MQTT monitor ---------- */
a { color: var(--cyan); }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 10px 14px; margin: 8px 0; }
.field { display: flex; flex-direction: column; gap: 4px; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); min-width: 160px; }
.field input:not([type=checkbox]), .field select, .field textarea { width: 100%; text-transform: none; letter-spacing: 0; font-size: 14px; color: var(--text); }
.field label { text-transform: none; letter-spacing: 0; font-size: 14px; color: var(--text); }
.hint { font-size: 12px; color: var(--muted); text-transform: none; letter-spacing: 0; }
textarea { padding: 6px 10px; border-radius: 8px; border: 1px solid var(--line); background: rgba(4, 12, 24, .8); font: inherit; width: 100%; min-height: 70px; resize: vertical; }
textarea:focus { border-color: var(--cyan); box-shadow: 0 0 0 2px rgba(56, 225, 255, .18); outline: none; }
.dev-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(250px, 100%), 1fr)); gap: 10px; margin-top: 8px; }
.wled-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(330px, 100%), 1fr)); gap: 12px; margin-top: 8px; }
.content { min-width: 0; }
.ctl { display: grid; grid-template-columns: 86px 1fr 46px; align-items: center; gap: 8px; margin: 6px 0; font-size: 13px; color: var(--muted); }
.ctl select { width: 100%; }
input[type=range] { width: 100%; padding: 0; accent-color: var(--cyan); }
input[type=color] { width: 56px; height: 30px; padding: 2px; border-radius: 8px; cursor: pointer; }
.table-wrap { max-height: 60vh; overflow: auto; margin-top: 8px; }
.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th { position: sticky; top: 0; background: #0a1a30; text-align: left; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--cyan); padding: 7px 8px; border-bottom: 1px solid var(--line); }
.table td { padding: 6px 8px; border-bottom: 1px solid rgba(56, 189, 248, .1); vertical-align: top; }
.table td.mono { font-family: var(--mono); overflow-wrap: anywhere; }
.light .row { margin: 2px 0; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* ---------- responsive ---------- */
@media (max-width: 1280px) {
  .dash { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .hero { grid-column: 1 / -1; order: -1; }
  .p-integ, .p-feed, .p-time, .p-quick, .p-rules, .p-server { grid-column: span 3; }
  .p-lights, .p-sys, .p-devices { grid-column: 1 / -1; }
  .p-mqtt, .p-wled, .p-thermo { grid-column: span 3; }
}
@media (max-width: 860px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .side { position: static; height: auto; flex-direction: row; align-items: center; padding: 8px 10px; border-right: 0; border-bottom: 1px solid var(--line); overflow-x: auto; gap: 8px; }
  .brand { border: 0; padding: 0 6px 0 0; } .brand-sub, .brand-name { display: none; }
  .nav { flex-direction: row; overflow: visible; } .nav-group { display: none; } .nav button { white-space: nowrap; padding: 8px 10px; }
  .side-foot { display: none; }
  .main { padding: 12px 12px 18px; }
  .topbar { grid-template-columns: 1fr; justify-items: center; } .pill, .top-right { justify-self: center; }
  .clock-time { font-size: 26px; }
  .dash { grid-template-columns: minmax(0, 1fr); }
  .dash > * { grid-column: 1 / -1 !important; }
  .hero { min-height: 320px; }
}

.login details { margin-top: 14px; }
.login details summary { cursor: pointer; }
.login details button { margin-top: 6px; }
