/* =========================================================================
   Home Dashboard — design tokens + component styles
   Reconstructed from the "Home Dashboard.dc.html" Claude Design project.
   Dependency-free. Fonts/icons loaded from Google Fonts in index.html.
   ========================================================================= */

:root {
  /* surfaces */
  --bg-page:      oklch(0.93 0.012 70);
  --bg-phone:     oklch(0.965 0.013 75);
  --card:         #fffdfa;
  --card-border:  oklch(0.91 0.012 80);
  --hairline:     oklch(0.93 0.01 80);

  /* brand */
  --accent:       oklch(0.59 0.16 320);
  --accent-deep:  oklch(0.5 0.16 320);
  --accent-tint:  oklch(0.95 0.03 320);
  --accent-tint2: oklch(0.95 0.025 320);

  /* status colours */
  --heat:         oklch(0.6 0.16 40);
  --ok:           oklch(0.6 0.13 150);
  --ok-bg:        oklch(0.93 0.045 150);
  --ok-fg:        oklch(0.48 0.11 150);
  --warn:         oklch(0.68 0.15 50);
  --warn-bg:      oklch(0.95 0.06 60);
  --warn-fg:      oklch(0.55 0.14 48);

  /* ink + text */
  --ink:          oklch(0.27 0.012 60);
  --ink-card:     oklch(0.28 0.012 60);
  --ink-section:  oklch(0.3 0.012 60);
  --text:         oklch(0.4 0.012 60);
  --muted:        oklch(0.55 0.012 60);
  --muted2:       oklch(0.56 0.012 60);
  --muted3:       oklch(0.62 0.012 60);

  /* neutrals */
  --tile-neutral: oklch(0.94 0.012 80);
  --tile-mute:    oklch(0.95 0.012 80);
  --track:        oklch(0.9 0.012 80);
  --track2:       oklch(0.91 0.012 80);
  --track-off:    oklch(0.86 0.01 80);

  /* shape */
  --shadow-card:  0 1px 2px rgba(70,55,40,.04), 0 8px 20px rgba(70,55,40,.05);
  --shadow-soft:  0 1px 2px rgba(70,55,40,.04);
  --shadow-accent: 0 4px 10px rgba(120,60,150,.22);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body { height: 100%; }

body {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  background: var(--bg-page);
  min-height: 100dvh;
}

/* Material Symbols helper */
.mi {
  font-family: 'Material Symbols Rounded';
  font-feature-settings: 'liga';
  font-style: normal;
  line-height: 1;
  user-select: none;
}
.mi.fill { font-variation-settings: 'FILL' 1; }

/* ---- phone shell ----------------------------------------------------
   Mobile-first: the app fills the whole viewport. The decorative phone
   frame (border, radius, notch, centering) is layered on only for larger
   screens further down, as a desktop preview. */
.phone {
  width: 100%;
  height: 100dvh;
  background: var(--bg-phone);
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}

.notch {
  display: none;
  position: absolute;
  top: 12px; left: 50%;
  transform: translateX(-50%);
  width: 104px; height: 28px;
  background: #1b1714;
  border-radius: 16px;
  z-index: 30;
  pointer-events: none;
}

/* Desktop / tablet preview: render inside a centered phone-shaped device.
   Gated on a generous min-height so landscape phones stay full-bleed. */
@media (min-width: 600px) and (min-height: 680px) {
  body {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 0;
  }

  .phone {
    width: 412px;
    height: 866px;
    max-height: calc(100dvh - 48px);
    border: 11px solid #1b1714;
    border-radius: 54px;
    box-shadow: 0 30px 70px rgba(40,30,20,.28), inset 0 0 0 2px #2a2420;
  }
  .notch { display: block; }

  /* clear the decorative notch (desktop preview only). The descendant
     selector outranks the base `.screen` rule that sits lower in the file. */
  .viewport .screen { padding-top: 44px; }
}

/* ---- screen plumbing ------------------------------------------------ */
.viewport { flex: 1; position: relative; overflow: hidden; display: flex; }

/* The top padding doubles as notch / Dynamic Island clearance now that the
   simulated status bar is gone: env() is 0 on framed desktop, grows on a
   real notched device so the heading never slides under the notch. */
.screen {
  flex: 1;
  flex-direction: column;
  gap: 14px;
  padding: calc(12px + env(safe-area-inset-top, 0px)) 18px 14px;
  overflow: hidden auto;
  display: none;
}
.screen.active { display: flex; }
.screen::-webkit-scrollbar { width: 0; }

/* ---- bottom nav ----------------------------------------------------- */
.bottomnav {
  height: calc(66px + env(safe-area-inset-bottom, 0px));
  display: flex;
  align-items: center;
  justify-content: space-around;
  background: var(--card);
  border-top: 1px solid var(--card-border);
  flex-shrink: 0;
  padding-bottom: calc(6px + env(safe-area-inset-bottom, 0px));
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  color: var(--muted3);
  background: none;
  border: 0;
  cursor: pointer;
  padding: 4px 14px;
}
.nav-item .mi { font-size: 24px; }

.nav-item .dot {
  width: 5px; height: 5px;
  border-radius: 999px;
  background: var(--accent);
  opacity: 0;
}
.nav-item.active { color: var(--accent); }
.nav-item.active .mi { font-variation-settings: 'FILL' 1; }
.nav-item.active .dot { opacity: 1; }

/* ---- generic typography & layout ----------------------------------- */
.row-between { display: flex; align-items: center; justify-content: space-between; }
.section-head { font-size: 15.5px; font-weight: 700; color: var(--ink-section); }
.section-link { font-size: 13px; font-weight: 600; color: var(--muted); }
.section-link.accent { color: var(--accent); }
.eyebrow { font-size: 13px; color: var(--muted); font-weight: 500; }

.h1 {
  font-family: 'Bricolage Grotesque', serif;
  font-size: 25px; font-weight: 700;
  color: var(--ink);
  letter-spacing: -.01em;
}
.subtle { font-size: 13px; color: var(--muted); }

.card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  box-shadow: var(--shadow-soft);
}

/* avatar */
.avatar {
  width: 46px; height: 46px;
  border-radius: 999px;
  background: linear-gradient(135deg, oklch(0.72 0.09 320), oklch(0.58 0.16 320));
  display: grid; place-items: center;
  color: #fff; font-weight: 700; font-size: 15px;
  box-shadow: 0 5px 12px rgba(120,60,150,.28);
  flex-shrink: 0;
}

/* icon buttons */
.iconbtn {
  width: 46px; height: 46px;
  border-radius: 15px;
  background: var(--card);
  border: 1px solid var(--card-border);
  display: grid; place-items: center;
  color: var(--text);
  cursor: pointer;
}

.iconbtn.accent {
  background: var(--accent);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 5px 12px rgba(120,60,150,.28);
}
.iconbtn .mi { font-size: 23px; }

/* ---- chips (scene / filter / segmented) ----------------------------- */

/* flex-shrink:0 keeps the row from collapsing: overflow-x:auto sets its
   automatic min-height to 0, which otherwise lets the scrolling column
   squash it away. */
.chiprow { display: flex; gap: 9px; overflow-x: auto; flex-shrink: 0; }
.chiprow::-webkit-scrollbar { height: 0; }

.chip {
  display: flex; align-items: center; gap: 6px;
  padding: 9px 14px;
  border-radius: 14px;
  background: var(--card);
  border: 1px solid oklch(0.9 0.012 80);
  color: var(--text);
  font-size: 13px; font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}
.chip .mi { font-size: 18px; }

.chip.active {
  background: var(--accent);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 10px rgba(120,60,150,.22);
}
.chip.active .mi { font-variation-settings: 'FILL' 1; }
.chip.pill { padding: 8px 15px; border-radius: 13px; }

/* ---- climate hero (home) -------------------------------------------- */
.climate-hero {
  border-radius: 24px;
  padding: 18px;
  box-shadow: var(--shadow-card);
  display: flex; align-items: center; justify-content: space-between;
}

.climate-hero .label {
  display: flex; align-items: center; gap: 5px;
  color: var(--heat);
  font-size: 11.5px; font-weight: 700; letter-spacing: .04em;
}
.climate-hero .label .mi { font-size: 15px; }

.climate-hero .temp {
  font-family: 'Bricolage Grotesque', serif;
  font-size: 42px; font-weight: 700;
  color: var(--ink); line-height: 1.02; margin-top: 5px;
}
.climate-hero .sub { font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.stepper { display: flex; flex-direction: column; gap: 9px; }

.stepbtn {
  width: 44px; height: 44px;
  border-radius: 15px;
  background: var(--tile-mute);
  color: var(--text);
  display: grid; place-items: center;
  border: 0; cursor: pointer;
}
.stepbtn .mi { font-size: 24px; }
.stepbtn.plus { background: var(--accent-tint2); color: var(--accent-deep); }

/* ---- list rows (running now) ---------------------------------------- */
.list { display: flex; flex-direction: column; gap: 10px; }

.listrow {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 12px;
  display: flex; align-items: center; gap: 12px;
  box-shadow: var(--shadow-soft);
}

.listrow .thumb {
  width: 50px; height: 50px;
  border-radius: 13px;
  flex-shrink: 0;
  display: grid; place-items: center;
  background: repeating-linear-gradient(45deg, oklch(0.78 0.04 320) 0 8px, oklch(0.72 0.06 318) 8px 16px);
}
.listrow .thumb span { font-family: ui-monospace, monospace; font-size: 8px; color: #fff; opacity: .85; }
.listrow .meta { flex: 1; min-width: 0; }
.listrow .meta .t { font-size: 14px; font-weight: 600; color: var(--ink-card); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.listrow .meta .s { font-size: 12px; color: var(--muted2); margin-top: 1px; }

.listrow .iconcell {
  width: 46px; height: 46px;
  border-radius: 14px;
  background: var(--accent-tint);
  display: grid; place-items: center;
  color: var(--accent-deep);
  flex-shrink: 0;
}
.listrow .iconcell .mi { font-size: 23px; }

.media-ctrls { display: flex; align-items: center; gap: 10px; color: var(--text); }
.media-ctrls .mi { font-size: 22px; cursor: pointer; }

.playbtn {
  width: 38px; height: 38px;
  border-radius: 999px;
  background: var(--accent);
  display: grid; place-items: center;
  color: #fff; border: 0; cursor: pointer;
  flex-shrink: 0;
}
.playbtn .mi { font-size: 22px; }

.badge {
  padding: 7px 12px;
  border-radius: 11px;
  background: var(--accent-tint);
  color: var(--accent-deep);
  font-size: 12px; font-weight: 700;
  white-space: nowrap;
}

/* ---- control tiles grid (home) -------------------------------------- */
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }

.tile {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 14px;
  box-shadow: var(--shadow-soft);
  display: flex; flex-direction: column; gap: 11px;
  min-height: 106px;
}

.tile .ic {
  width: 38px; height: 38px;
  border-radius: 12px;
  display: grid; place-items: center;
}
.tile .ic.on  { background: var(--accent-tint); color: var(--accent-deep); }
.tile .ic.off { background: var(--tile-neutral); color: var(--text); }
.tile .name { font-size: 14px; font-weight: 600; color: var(--ink-card); }
.tile .stat { font-size: 12px; color: var(--muted2); margin-top: 1px; }
.tile .pct { font-size: 13px; font-weight: 700; color: var(--text); }

/* ---- toggle switch -------------------------------------------------- */
.switch {
  width: 46px; height: 27px;
  border-radius: 999px;
  background: var(--track-off);
  position: relative;
  flex-shrink: 0;
  cursor: pointer;
  border: 0;
  transition: background .18s ease;
}

.switch .knob {
  position: absolute; top: 3px; left: 3px;
  width: 21px; height: 21px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0,0,0,.15);
  transition: left .18s ease;
}
.switch.on { background: var(--accent); }
.switch.on .knob { left: 22px; box-shadow: 0 1px 2px rgba(0,0,0,.2); }

/* ---- progress / slider track --------------------------------------- */
.track {
  height: 6px;
  border-radius: 999px;
  background: var(--track);
  position: relative;
}

.track .fill {
  position: absolute; left: 0; top: 0; bottom: 0;
  border-radius: 999px;
  background: var(--accent);
}

/* ---- rooms grid ----------------------------------------------------- */
.rooms { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }

.roomcard {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  text-align: left;
  padding: 0;
  font: inherit;
  color: inherit;
}

.roomcard .photo {
  height: 90px;
  position: relative;
  display: grid; place-items: center;
}

.roomcard .photo .tag {
  font-family: ui-monospace, monospace;
  font-size: 9px;
  background: rgba(255,255,255,.5);
  padding: 3px 7px;
  border-radius: 5px;
}

.roomcard .photo .badge-ic {
  position: absolute; top: 9px; left: 9px;
  width: 30px; height: 30px;
  border-radius: 9px;
  background: rgba(255,255,255,.9);
  display: grid; place-items: center;
}
.roomcard .photo .badge-ic .mi { font-size: 18px; }
.roomcard .body { padding: 11px 13px 13px; }
.roomcard .body .name { font-size: 14.5px; font-weight: 600; color: var(--ink-card); }
.roomcard .body .stat { font-size: 12px; color: var(--muted2); margin-top: 2px; }
.statusdot { width: 7px; height: 7px; border-radius: 999px; }
.statusdot.on  { background: var(--accent); }
.statusdot.off { background: oklch(0.82 0.012 80); }

/* ---- room detail ---------------------------------------------------- */
#screen-room {
  position: absolute;
  inset: 0;
  background: var(--bg-phone);
  flex-direction: column;
  z-index: 20;
  display: none;
}
#screen-room.active { display: flex; }

/* room detail owns the full frame: its own action bar replaces the shared
   bottom nav while open */
.phone.room-open > #bottomnav { display: none; }
.detail-scroll { flex: 1; overflow: hidden auto; position: relative; }
.detail-scroll::-webkit-scrollbar { width: 0; }

.hero {
  height: 300px;
  position: relative;
  display: grid; place-items: center;
  background: repeating-linear-gradient(45deg, oklch(0.7 0.045 50) 0 16px, oklch(0.655 0.055 44) 16px 32px);
}

.hero .tag {
  font-family: ui-monospace, monospace; font-size: 11px;
  color: rgba(255,255,255,.65);
  background: rgba(40,25,15,.28);
  padding: 4px 9px; border-radius: 6px;
}

.hero .scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(35,22,12,.42) 0%, rgba(35,22,12,0) 30%, rgba(35,22,12,.35) 100%);
}

.hero .topctrls {
  position: absolute; top: calc(60px + env(safe-area-inset-top, 0px)); left: 18px; right: 18px;
  display: flex; align-items: center; justify-content: space-between;
  z-index: 10;
}

.glassbtn {
  width: 42px; height: 42px;
  border-radius: 14px;
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(8px);
  display: grid; place-items: center;
  color: #2a2420;
  border: 0; cursor: pointer;
}
.glassbtn .mi { font-size: 23px; }

.hero .title {
  position: absolute; left: 0; right: 0; top: 118px;
  display: flex; flex-direction: column; align-items: center;
  color: #fff; text-align: center;
}

.hero .title .name {
  font-family: 'Bricolage Grotesque', serif;
  font-size: 31px; font-weight: 700; letter-spacing: -.01em;
  text-shadow: 0 2px 12px rgba(20,12,6,.4);
}

.hero .title .sub {
  font-size: 13px; opacity: .92; margin-top: 3px;
  text-shadow: 0 1px 8px rgba(20,12,6,.4);
}

.sheet {
  background: var(--bg-phone);
  border-radius: 34px 34px 0 0;
  margin-top: -34px;
  position: relative;
  padding: 0 18px 24px;
  display: flex; flex-direction: column; gap: 18px;
}

/* ambient dial */
.dial {
  margin: -92px auto 2px;
  width: 184px; height: 184px;
  border-radius: 999px;
  background: conic-gradient(from 218deg, oklch(0.6 0.16 320) 0%, oklch(0.66 0.15 350) 28%, oklch(0.72 0.14 45) 56%, oklch(0.9 0.02 320) 70%, oklch(0.9 0.02 320) 100%);
  display: grid; place-items: center;
  box-shadow: 0 18px 40px rgba(120,60,150,.3);
  position: relative;
}

.dial .handle {
  position: absolute; top: 6px; left: 50%;
  transform: translateX(-50%);
  width: 18px; height: 18px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,.25);
  border: 3px solid oklch(0.7 0.14 45);
}

.dial .face {
  width: 146px; height: 146px;
  border-radius: 999px;
  background: oklch(0.985 0.006 80);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  box-shadow: inset 0 0 0 1px oklch(0.92 0.012 80);
}
.dial .face .mi { font-size: 22px; color: oklch(0.68 0.14 50); }
.dial .face .val { font-family: 'Bricolage Grotesque', serif; font-size: 38px; font-weight: 700; color: var(--ink); line-height: 1; }
.dial .face .cap { font-size: 11px; font-weight: 600; letter-spacing: .05em; color: var(--muted); text-transform: uppercase; }

/* segmented control */
.segmented {
  display: flex; gap: 6px;
  padding: 5px;
  background: oklch(0.93 0.012 75);
  border-radius: 14px;
  margin: 0 auto;
}

.segmented .seg {
  padding: 8px 18px;
  border-radius: 10px;
  color: oklch(0.5 0.012 60);
  font-size: 12.5px; font-weight: 600;
  display: flex; align-items: center; gap: 5px;
  cursor: pointer; border: 0; background: none;
}
.segmented .seg .swatch { width: 9px; height: 9px; border-radius: 999px; background: oklch(0.8 0.1 70); }

.segmented .seg.active {
  background: var(--card);
  color: var(--ink-section);
  box-shadow: 0 1px 2px rgba(70,55,40,.08);
}

/* moods */
.moods { display: flex; gap: 10px; overflow-x: auto; }
.moods::-webkit-scrollbar { height: 0; }

.mood {
  width: 86px; height: 66px;
  border-radius: 17px;
  display: flex; align-items: flex-end;
  padding: 10px;
  flex-shrink: 0;
  position: relative;
  cursor: pointer;
  box-shadow: 0 5px 12px rgba(70,55,40,.08);
}
.mood span { font-size: 12.5px; font-weight: 700; color: #fff; text-shadow: 0 1px 4px rgba(40,20,10,.35); }
.mood.light span { color: oklch(0.35 0.06 60); text-shadow: none; }
.mood.active { box-shadow: 0 0 0 2px var(--bg-phone), 0 0 0 5px var(--accent), 0 6px 13px rgba(70,55,40,.14); }

.mood .check {
  position: absolute; top: 7px; right: 7px;
  width: 19px; height: 19px;
  border-radius: 999px;
  background: var(--accent);
  display: none; place-items: center;
  color: #fff;
}
.mood .check .mi { font-size: 13px; }
.mood.active .check { display: grid; }

/* grouped device card */
.group {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 22px;
  padding: 16px;
  box-shadow: var(--shadow-soft);
  display: flex; flex-direction: column; gap: 15px;
}
.group .ghead { display: flex; justify-content: space-between; align-items: center; }
.group .ghead .gt { font-size: 15px; font-weight: 700; color: var(--ink-section); }
.group .ghead .gc { font-size: 12px; font-weight: 600; color: var(--muted2); }
.devrow { display: flex; align-items: center; gap: 12px; }

.devrow .ic {
  width: 38px; height: 38px;
  border-radius: 12px;
  display: grid; place-items: center;
  flex-shrink: 0;
}
.devrow .ic.on { background: var(--accent-tint); color: var(--accent-deep); }
.devrow .ic.off { background: var(--tile-neutral); color: oklch(0.6 0.012 60); }
.devrow .ic .mi { font-size: 20px; }
.devrow .body { flex: 1; min-width: 0; }
.devrow .body .line { display: flex; justify-content: space-between; align-items: center; }
.devrow .body .nm { font-size: 13.5px; font-weight: 600; color: var(--ink-card); }
.devrow .body .nm.dim { color: oklch(0.5 0.012 60); }
.devrow .body .vl { font-size: 12px; font-weight: 600; color: oklch(0.5 0.012 60); }
.devrow .body .vl.dim { color: var(--muted3); }
.devrow .body .track { margin-top: 7px; }

/* climate detail card */
.climate-card {
  border-radius: 22px; padding: 16px;
  box-shadow: var(--shadow-soft);
  background: var(--card);
  border: 1px solid var(--card-border);
  display: flex; flex-direction: column; gap: 14px;
}
.climate-card .top { display: flex; justify-content: space-between; align-items: flex-start; }
.climate-card .label { display: flex; align-items: center; gap: 5px; color: var(--heat); font-size: 11.5px; font-weight: 700; letter-spacing: .04em; }
.climate-card .label .mi { font-size: 15px; }
.climate-card .target { font-size: 13px; color: var(--muted2); margin-top: 3px; }
.climate-card .big { font-family: 'Bricolage Grotesque', serif; font-size: 30px; font-weight: 700; color: var(--ink); line-height: 1; }

.tempbar {
  height: 8px; border-radius: 999px;
  background: linear-gradient(90deg, oklch(0.8 0.07 230), oklch(0.88 0.05 95), oklch(0.74 0.13 38));
  position: relative;
}

.tempbar .knob {
  position: absolute; top: 50%; left: 64%;
  transform: translate(-50%,-50%);
  width: 20px; height: 20px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,.22), inset 0 0 0 3px oklch(0.74 0.13 38);
}

/* media row in detail */
.media-card {
  border-radius: 22px; padding: 13px;
  background: var(--card);
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-soft);
  display: flex; align-items: center; gap: 12px;
}

/* shades row in detail */
.shades-card {
  border-radius: 22px; padding: 16px;
  background: var(--card);
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-soft);
  display: flex; align-items: center; gap: 12px;
}

/* bottom action bar */
.actionbar {
  padding: 12px 18px calc(18px + env(safe-area-inset-bottom, 0px));
  background: var(--card);
  border-top: 1px solid var(--card-border);
  display: flex; gap: 10px;
  flex-shrink: 0;
}

.actionbar .act {
  flex: 1; height: 50px;
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 600; font-size: 14px;
  border: 0; cursor: pointer;
}
.actionbar .act .mi { font-size: 20px; }
.actionbar .act.ghost { background: var(--tile-mute); color: oklch(0.32 0.012 60); }
.actionbar .act.primary { background: var(--accent); color: #fff; box-shadow: 0 6px 14px rgba(120,60,150,.26); }
.actionbar .act.primary .mi { font-variation-settings: 'FILL' 1; }

/* ---- security ------------------------------------------------------- */
.armed-hero {
  border-radius: 24px;
  padding: 20px;
  background: linear-gradient(155deg, oklch(0.6 0.15 322), oklch(0.46 0.16 318));
  color: #fff;
  box-shadow: 0 14px 30px rgba(120,60,150,.28);
  display: flex; flex-direction: column; gap: 16px;
}

.armed-hero .ic {
  width: 48px; height: 48px;
  border-radius: 15px;
  background: rgba(255,255,255,.18);
  display: grid; place-items: center;
}
.armed-hero .ic .mi { font-size: 27px; }
.armed-hero .eyebrow2 { font-size: 11px; opacity: .85; font-weight: 700; letter-spacing: .07em; }

.armed-hero .mode {
  font-family: 'Bricolage Grotesque', serif;
  font-size: 23px; font-weight: 700; line-height: 1.1; margin-top: 1px;
}

.armed-hero .pulse {
  width: 11px; height: 11px; border-radius: 999px;
  background: oklch(0.82 0.15 150);
  box-shadow: 0 0 0 4px rgba(255,255,255,.2);
}
.armed-hero .desc { font-size: 13px; opacity: .9; }

.armseg {
  display: flex; gap: 5px;
  padding: 5px;
  background: rgba(255,255,255,.14);
  border-radius: 15px;
}

.armseg .opt {
  flex: 1; text-align: center;
  padding: 10px 0;
  border-radius: 11px;
  font-size: 12.5px; font-weight: 600;
  color: rgba(255,255,255,.82);
  cursor: pointer; border: 0; background: none;
}

.armseg .opt.active {
  font-weight: 700;
  background: #fff;
  color: var(--accent-deep);
  box-shadow: 0 2px 6px rgba(20,10,30,.18);
}

.cams { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }

.cam {
  border-radius: 18px;
  overflow: hidden;
  position: relative;
  height: 120px;
  box-shadow: var(--shadow-soft);
}
.cam .scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.22), rgba(0,0,0,0) 38%, rgba(0,0,0,.5)); }

.cam .feedtag {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  font-family: ui-monospace, monospace; font-size: 9px; color: rgba(255,255,255,.4);
}

.cam .live {
  position: absolute; top: 9px; left: 9px;
  display: flex; align-items: center; gap: 5px;
  padding: 4px 8px; border-radius: 8px;
  background: rgba(0,0,0,.42); backdrop-filter: blur(4px);
}
.cam .live .ld { width: 6px; height: 6px; border-radius: 999px; background: oklch(0.74 0.16 150); }
.cam .live .lt { font-size: 9px; font-weight: 700; letter-spacing: .07em; color: #fff; }
.cam .caption { position: absolute; left: 10px; bottom: 9px; color: #fff; }
.cam .caption .c1 { font-size: 12px; font-weight: 600; }
.cam .caption .c2 { font-size: 10px; opacity: .8; }

.cam .expand {
  position: absolute; right: 9px; bottom: 9px;
  width: 27px; height: 27px; border-radius: 8px;
  background: rgba(255,255,255,.85);
  display: grid; place-items: center; color: #2a2420;
}
.cam .expand .mi { font-size: 16px; }

.zones {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 22px;
  padding: 6px 16px;
  box-shadow: var(--shadow-soft);
}
.zone { display: flex; align-items: center; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--hairline); }
.zone:last-child { border-bottom: 0; }
.zone .ic { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; flex-shrink: 0; }
.zone .ic.neutral { background: var(--tile-neutral); color: var(--text); }
.zone .ic.alert { background: oklch(0.95 0.05 60); color: oklch(0.58 0.14 50); }
.zone .ic .mi { font-size: 20px; }
.zone .nm { flex: 1; font-size: 14px; font-weight: 600; color: var(--ink-card); }

.pill-status {
  display: flex; align-items: center; gap: 6px;
  padding: 6px 11px; border-radius: 11px;
  font-size: 12px; font-weight: 700;
}
.pill-status .pd { width: 7px; height: 7px; border-radius: 999px; }
.pill-status.ok { background: var(--ok-bg); color: var(--ok-fg); }
.pill-status.ok .pd { background: var(--ok); }
.pill-status.warn { background: var(--warn-bg); color: var(--warn-fg); }
.pill-status.warn .pd { background: var(--warn); }

.timeline { padding-left: 2px; }
.tl-item { display: flex; gap: 13px; }
.tl-rail { display: flex; flex-direction: column; align-items: center; }
.tl-rail .node { width: 11px; height: 11px; border-radius: 999px; margin-top: 3px; }
.tl-rail .node.accent { background: var(--accent); }
.tl-rail .node.warn { background: var(--warn); }
.tl-rail .line { flex: 1; width: 2px; background: var(--track); margin: 4px 0; }
.tl-body { padding-bottom: 16px; }
.tl-item:last-child .tl-body { padding-bottom: 0; }
.tl-body .t { font-size: 13.5px; font-weight: 600; color: var(--ink-card); }
.tl-body .s { font-size: 12px; color: var(--muted2); margin-top: 1px; }

/* ---- profile -------------------------------------------------------- */
.profile-head { display: flex; flex-direction: column; align-items: center; gap: 12px; padding-top: 12px; }
.profile-head .avatar { width: 84px; height: 84px; font-size: 26px; }
.profile-head .nm { font-family: 'Bricolage Grotesque', serif; font-size: 22px; font-weight: 700; color: var(--ink); }
.profile-head .em { font-size: 13px; color: var(--muted); margin-top: -8px; }

.prow {
  display: flex; align-items: center; gap: 14px;
  padding: 15px 16px;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 18px;
  box-shadow: var(--shadow-soft);
  cursor: pointer;
}
.prow .ic { width: 38px; height: 38px; border-radius: 12px; background: var(--accent-tint); color: var(--accent-deep); display: grid; place-items: center; }
.prow .ic .mi { font-size: 20px; }
.prow .lbl { flex: 1; font-size: 14px; font-weight: 600; color: var(--ink-card); }
.prow .chev { color: var(--muted3); }
.prow .chev .mi { font-size: 20px; }
