/* Inter (SIL Open Font License) is bundled in /static/fonts. Palette: validated blue sequential ramp, fixed status colours. */
@font-face { font-family: "Inter Variable"; src: url("fonts/inter-latin-wght-normal.woff2") format("woff2-variations"); font-weight: 100 900; font-display: swap; }
:root {
  color-scheme: light;
  --page: #f4f3f0; --surface: #fcfcfb; --surface-2: #f3f2ef; --surface-3: #eceae6; --border: #e3e2dd;
  --text: #0b0b0b; --text-2: #52514e; --text-3: #6b6a66;
  --series-1: #2a78d6; --series-wash: rgba(42, 120, 214, .22);
  --good: #0ca30c; --warning: #fab219; --serious: #ec835a; --critical: #d03b3b;
  --h0: #f1f0ed; --h1: #b7d3f6; --h2: #86b6ef; --h3: #5598e7; --h4: #2a78d6; --h5: #1c5cab; --h6: #0d366b;
  /* machines on the map and in 3D: same ramp in light mode; lifted in dark mode so an unused machine is a visible grey box, not black */
  --m0: #f1f0ed; --m1: #b7d3f6; --m2: #86b6ef; --m3: #5598e7; --m4: #2a78d6; --m5: #1c5cab; --m6: #0d366b;
  --closed: #cfcdc7;
  --banner-bg: #0b0b0b; --banner-text: #fcfcfb;
  --shadow: 0 1px 2px rgba(11, 11, 11, .04), 0 12px 32px rgba(11, 11, 11, .06);
}
@media (prefers-color-scheme: dark) {
  :root:where(:not([data-theme="light"])) {
    color-scheme: dark;
    --page: #121211; --surface: #1a1a19; --surface-2: #232321; --surface-3: #2b2b28; --border: #383835;
    --text: #f0efec; --text-2: #c3c2b7; --text-3: #a09f96;
    --series-1: #3987e5; --series-wash: rgba(57, 135, 229, .28);
    --h0: #2a2a27; --h1: #12437f; --h2: #1c5cab; --h3: #3987e5; --h4: #6da7ec; --h5: #9ec5f4; --h6: #cde2fb; --m0: #707379; --m1: #44729f; --m2: #4f86cc; --m3: #659fe6; --m4: #87b8f0; --m5: #accff6; --m6: #d6e8fc;
    --closed: #4a4a45;
    --banner-bg: #2b2b28; --banner-text: #f0efec;
    --shadow: 0 1px 0 rgba(255, 255, 255, .04) inset, 0 12px 32px rgba(0, 0, 0, .35);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --page: #121211; --surface: #1a1a19; --surface-2: #232321; --surface-3: #2b2b28; --border: #383835;
  --text: #f0efec; --text-2: #c3c2b7; --text-3: #a09f96;
  --series-1: #3987e5; --series-wash: rgba(57, 135, 229, .28);
  --h0: #2a2a27; --h1: #12437f; --h2: #1c5cab; --h3: #3987e5; --h4: #6da7ec; --h5: #9ec5f4; --h6: #cde2fb; --m0: #707379; --m1: #44729f; --m2: #4f86cc; --m3: #659fe6; --m4: #87b8f0; --m5: #accff6; --m6: #d6e8fc;
  --closed: #4a4a45;
  --banner-bg: #2b2b28; --banner-text: #f0efec;
  --shadow: 0 1px 0 rgba(255, 255, 255, .04) inset, 0 12px 32px rgba(0, 0, 0, .35);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 12px; }
body { margin: 0; color: var(--text); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  background: radial-gradient(1100px 420px at 50% -200px, color-mix(in srgb, var(--series-1) 11%, transparent), transparent) no-repeat, var(--page);
  font: 16px/1.5 "Inter Variable", Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; font-feature-settings: "cv11" 1, "ss03" 1; }
.tn { font-variant-numeric: tabular-nums; }
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 22px 72px; }
a { color: inherit; }
.sim-banner { background: var(--banner-bg); color: var(--banner-text); text-align: center; font-weight: 650; letter-spacing: .08em; padding: 7px 16px; font-size: 12px; }
header.top { padding: 30px 0 14px; display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: flex-end; justify-content: space-between; }
.eyebrow { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); font-weight: 650; margin-bottom: 4px; }
h1 { font-size: 34px; line-height: 1.05; letter-spacing: -.035em; margin: 0; font-weight: 720; }
.top-r { display: flex; align-items: center; gap: 12px; color: var(--text-2); font-size: 13px; }
.live { display: inline-flex; align-items: center; gap: 8px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--text-3); position: relative; display: inline-block; flex: none; }
.dot.fresh { background: var(--good); }
.dot.fresh::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--good); opacity: 0; animation: pulse 2.4s ease-out infinite; }
.theme { border: 1px solid var(--border); background: var(--surface); color: var(--text-2); border-radius: 999px; padding: 6px 12px; font: inherit; font-size: 12.5px; cursor: pointer; }
.theme:hover { background: var(--surface-2); }
nav.pills { display: flex; width: fit-content; gap: 4px; padding: 5px; background: var(--surface); border: 1px solid var(--border); border-radius: 999px; margin: 6px auto 24px; max-width: 100%; box-sizing: border-box; overflow-x: auto; scrollbar-width: none; position: sticky; top: 12px; z-index: 12; box-shadow: 0 6px 22px rgba(0, 0, 0, .16); }
nav.pills::-webkit-scrollbar { display: none; }
nav.pills a { padding: 11px 24px; border-radius: 999px; text-decoration: none; color: var(--text); font-size: 15.5px; font-weight: 600; white-space: nowrap; transition: background .15s, color .15s; }
nav.pills a:hover { background: var(--surface-3); }
nav.pills a:focus-visible { outline: 2px solid var(--series-1); outline-offset: -2px; }
nav.pills a[aria-current="page"] { background: #1f66ba; color: #fff; }
.mode { display: flex; width: fit-content; margin: 8px auto 14px; border-radius: 14px; overflow: hidden; border: 1px solid var(--border); background: var(--surface); }
.mode a { display: flex; align-items: center; gap: 9px; padding: 13px 34px; font-size: 16px; font-weight: 650; text-decoration: none; color: var(--text-2); white-space: nowrap; }
.mode a:hover { color: var(--text); }
.mode a:focus-visible { outline: 2px solid var(--series-1); outline-offset: -3px; }
.mode i { width: 9px; height: 9px; border-radius: 50%; background: currentColor; opacity: .6; }
.mode .m-live[aria-current] { background: #17703a; color: #fff; }
.mode .m-live[aria-current] i { background: #7dffa8; opacity: 1; box-shadow: 0 0 7px #7dffa8; }
.mode .m-hist[aria-current] { background: #8a5a00; color: #fff; }
.hbar { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; margin: 0 0 20px; padding: 12px 16px; border: 1px solid #8a5a00; border-left: 5px solid #c98500; border-radius: 12px; background: var(--surface); font-size: 14px; }
.hbar span { color: var(--text-2); } .hbar .rep { margin-left: auto; text-decoration: none; }
body.is-history .f3-live, body.is-history .fm-key .k-live, body.is-live #fm-mode-day { display: none; }
body.is-history .kpis:not(.five) { grid-template-columns: 2fr 1fr; } body.is-history .hero { grid-column: auto; }
/* a link or screen locked to one live page: the server serves nothing else; here nothing looks pressable */
body.is-kiosk .fm-mode, body.is-kiosk .fm-bar, body.is-kiosk .tiles-key, body.is-kiosk .live-note, body.is-kiosk .fm-card ~ details, body.is-kiosk .hide-touch, body.is-kiosk .takeaway-note { display: none; }
body.is-kiosk .tile, body.is-kiosk .fm-wrap, body.is-kiosk .fm-keylist { pointer-events: none; }
body.is-kiosk .fm-m { cursor: default; }
body.is-kiosk .wrap { max-width: none; padding-bottom: 28px; }
@media (min-width: 1000px) { body.is-kiosk .fm { height: calc(100vh - 250px); max-height: none; } body.is-kiosk .f3-wrap { height: calc(100vh - 250px); } }
@media (min-width: 1600px) { body.is-kiosk .wrap { padding-left: 48px; padding-right: 48px; } body.is-kiosk h1 { font-size: 48px; } body.is-kiosk .lede { font-size: 26px; max-width: none; } body.is-kiosk .fm-key, body.is-kiosk .top-r { font-size: 18px; } body.is-kiosk .fm, body.is-kiosk .f3-wrap { height: calc(100vh - 310px); } }
.filters:empty { display: none; }
.filters { display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center; margin-bottom: 22px; }
.seg { display: inline-flex; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; background: var(--surface); }
.seg a { padding: 8px 14px; text-decoration: none; color: var(--text-2); font-size: 13.5px; white-space: nowrap; }
.seg a + a { border-left: 1px solid var(--border); }
.seg a[aria-current="true"] { background: var(--surface-2); color: var(--text); font-weight: 650; }
.seg-label { color: var(--text-3); font-size: 12.5px; margin-right: 8px; }
select.pick { border: 1px solid var(--border); border-radius: 10px; background: var(--surface); color: var(--text); padding: 8px 10px; font: inherit; font-size: 13.5px; }
.lede { font-size: 19px; line-height: 1.4; letter-spacing: -.015em; font-weight: 560; margin: 0 0 22px; max-width: 46rem; }
.lede em { font-style: normal; background: linear-gradient(transparent 62%, var(--series-wash) 62%); padding: 0 2px; }
h2 { font-size: 12.5px; font-weight: 680; margin: 34px 0 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); }
h2.first { margin-top: 0; }
.card { border: 1px solid var(--border); border-radius: 20px; background: var(--surface); box-shadow: var(--shadow); padding: 20px 22px; }
/* floor hero + kpis */
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 8px; }
.kpis.five { grid-template-columns: repeat(auto-fit, minmax(176px, 1fr)); }
.kpi .lab { color: var(--text-2); font-size: 13px; font-weight: 570; }
.kpi .val { font-size: 34px; line-height: 1.1; letter-spacing: -.035em; font-weight: 720; margin: 6px 0 4px; }
.kpi .val small { font-size: 16px; font-weight: 600; color: var(--text-2); letter-spacing: 0; margin: 0 .35em 0 .16em; }
.kpi .note { color: var(--text-2); font-size: 13px; }
.kpis.five .kpi .val { font-size: 30px; }
.hero { grid-column: span 2; display: flex; flex-direction: column; justify-content: space-between; }
.hero .val { font-size: 58px; letter-spacing: -.045em; margin: 8px 0 6px; }
.hero .val small { font-size: 24px; margin: 0 .4em 0 .18em; }
.delta { display: inline-flex; align-items: center; gap: 4px; font-weight: 650; font-size: 13px; }
.mini { display: flex; align-items: flex-end; gap: 2px; height: 34px; margin-top: 10px; }
.hero .mini { height: 74px; gap: 3px; }
.mini i { flex: 1; min-width: 2px; max-width: 22px; background: var(--series-1); border-radius: 4px 4px 0 0; transform-origin: bottom; animation: growy .6s cubic-bezier(.2, .7, .2, 1) both; }
.mini i.z { background: var(--border); height: 2px !important; }
.mini.peak i { opacity: .45; } .mini.peak i.pk { opacity: 1; } .mini.peak i.z { opacity: 1; }
.mini-axis { display: flex; justify-content: space-between; font-size: 11px; color: var(--text-3); margin-top: 4px; }
.dots { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px; }
.dots i { width: 14px; height: 14px; border-radius: 50%; background: var(--border); position: relative; }
.dots i.in_use { background: var(--good); box-shadow: 0 0 0 3px color-mix(in srgb, var(--good) 28%, transparent); }
.dots i.offline { background: var(--critical); } .dots i.stale { background: var(--warning); }
.dots i.removed { background: transparent; box-shadow: inset 0 0 0 2px var(--border); }
.dots-key { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 10px; font-size: 12px; color: var(--text-2); }
.dots-key span::before { content: ""; display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 5px; background: var(--border); }
.dots-key .k-use::before { background: var(--good); } .dots-key .k-off::before { background: var(--critical); } .dots-key .k-old::before { background: var(--warning); }
.tiles-key { color: var(--text-2); font-size: 13px; margin: -4px 0 12px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.tile { display: block; text-decoration: none; border: 1px solid var(--border); border-radius: 20px; padding: 16px 18px 14px; background: var(--surface); border-top: 3px solid var(--border);
  box-shadow: var(--shadow); transition: transform .18s ease, border-color .18s; animation: rise .5s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(var(--i, 0) * 28ms); }
.tile.in_use { border-top-color: var(--good); } .tile.offline { border-top-color: var(--critical); background: color-mix(in srgb, var(--critical) 5%, var(--surface)); }
.tile.stale { border-top-color: var(--warning); }
.tile:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--series-1) 45%, var(--border)); }
.tile h3 { margin: 0; font-size: 16px; font-weight: 680; letter-spacing: -.01em; }
.tile .head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 10px; }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 650; padding: 3px 10px 3px 4px; border-radius: 999px; background: var(--surface-2); white-space: nowrap; }
.chip i { font-style: normal; display: inline-flex; width: 18px; height: 18px; border-radius: 9px; align-items: center; justify-content: center; font-size: 11px; color: #0b0b0b; }
.chip.in_use i { background: var(--good); } .chip.idle i { background: var(--border); color: var(--text-2); }
.chip.stale i { background: var(--warning); } .chip.offline i { background: var(--critical); color: #fff; }
.chip.removed i { background: var(--border); } .tile.removed { opacity: .8; }
.big { font-size: 30px; line-height: 1.1; font-weight: 720; letter-spacing: -.035em; }
.big.dim { color: var(--text-3); }
.sub { color: var(--text-2); font-size: 13.5px; margin-top: 2px; }
.muted { color: var(--text-3); font-size: 12.5px; margin-top: 8px; }
/* ranking */
.legend-line { display: flex; flex-wrap: wrap; gap: 4px 18px; color: var(--text-2); font-size: 12.5px; margin: 0 0 6px; }
.legend-line .l-med::before, .legend-line .l-q::before { content: ""; display: inline-block; width: 2px; height: 12px; margin-right: 6px; vertical-align: -2px; background: var(--text-3); }
.legend-line .l-q::before { width: 1px; }
.rrow { display: grid; grid-template-columns: minmax(190px, 290px) 1fr; gap: 3px 18px; padding: 13px 6px; border-bottom: 1px solid var(--border); align-items: center; }
.rrow.is-move { background: color-mix(in srgb, var(--serious) 7%, transparent); border-radius: 10px; }
.rname { font-weight: 640; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.rname a { text-decoration: none; } .rname a:hover { text-decoration: underline; }
.rank-n { color: var(--text-3); font-size: 12.5px; width: 18px; font-variant-numeric: tabular-nums; }
.verdict { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 680; padding: 2px 10px 2px 7px; border-radius: 999px; border: 1px solid var(--border); white-space: nowrap; }
.verdict.keep { color: var(--text); } .verdict.watch { border-color: var(--warning); } .verdict.move { border-color: var(--serious); background: color-mix(in srgb, var(--serious) 10%, transparent); }
.verdict.offline { border-color: var(--critical); }
.verdict b { font-size: 11px; }
.track { position: relative; height: 26px; margin-right: 104px; }
.track .ml, .track .ql { position: absolute; top: -4px; bottom: -4px; pointer-events: none; background: linear-gradient(var(--text-3) 0 6px, transparent 6px calc(100% - 6px), var(--text-3) calc(100% - 6px)); }
.track .ml { width: 2px; } .track .ql { width: 1px; }
.bars { position: absolute; left: 0; top: 4px; height: 18px; display: flex; gap: 2px; border-radius: 0 4px 4px 0; overflow: hidden; transform-origin: left; animation: growx .7s cubic-bezier(.2, .7, .2, 1) both; min-width: 2px; }
.bar { display: block; height: 18px; background: var(--series-1); min-width: 0; }
.bar.hatch { background-image: repeating-linear-gradient(45deg, var(--series-1) 0 3px, transparent 3px 6px); }
.rval { position: absolute; top: 2px; white-space: nowrap; font-weight: 680; font-size: 15px; font-variant-numeric: tabular-nums; }
.rval.nodata { color: var(--text-3); font-weight: 600; left: 0 !important; }
.meta { color: var(--text-2); font-size: 13px; grid-column: 2; }
.takeaway-note { color: var(--text-3); font-size: 12.5px; margin: 6px 0 0; }
/* heatmap */
.heat { --extra: 64px; display: grid; grid-template-columns: 44px repeat(var(--cols), minmax(0, 1fr)) var(--extra); gap: 3px; align-items: center; }
.heat-col { font-size: 11px; color: var(--text-3); text-align: center; white-space: nowrap; height: 18px; }
.heat-row { font-size: 12.5px; color: var(--text-2); font-weight: 620; }
.cell { height: 38px; border-radius: 7px; background: var(--h0); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--text) 9%, transparent); outline: 2px solid transparent; transition: transform .12s, outline-color .12s;
  animation: fade .5s ease both; animation-delay: calc(var(--c, 0) * 16ms + var(--r, 0) * 34ms); }
.cell:hover, .cell.on { outline-color: var(--text); transform: scale(1.07); z-index: 2; position: relative; }
.cell.h1, .cell.h2, .cell.h3, .cell.h4, .cell.h5, .cell.h6 { box-shadow: none; }
.cell.h1 { background: var(--h1); } .cell.h2 { background: var(--h2); } .cell.h3 { background: var(--h3); }
.cell.h4 { background: var(--h4); } .cell.h5 { background: var(--h5); } .cell.h6 { background: var(--h6); }
.cell.closed { background: repeating-linear-gradient(135deg, transparent 0 4px, var(--closed) 4px 5px); opacity: .85; }
.cell.nodata { background: transparent; box-shadow: none; border: 1px dashed var(--text-3); opacity: .6; }
.cell.later { background: transparent; box-shadow: none; border: 1px dotted var(--closed); opacity: 1; }
.cell.peak { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--text); position: relative; z-index: 1; }
.avgc { height: 12px; display: flex; align-items: center; }
.avgc b { display: block; height: 8px; background: var(--series-1); border-radius: 0 4px 4px 0; opacity: .75; min-width: 2px; }
.avgr { display: flex; align-items: flex-end; justify-content: center; height: 26px; }
.avgr b { display: block; width: 60%; max-width: 14px; background: var(--series-1); border-radius: 4px 4px 0 0; opacity: .75; min-height: 2px; }
.legend { display: flex; align-items: center; gap: 4px; margin-top: 16px; font-size: 12px; color: var(--text-2); flex-wrap: wrap; }
.legend i { display: inline-block; width: 30px; height: 12px; border-radius: 4px; }
.legend i.h0 { background: var(--h0); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--text) 14%, transparent); } .legend i.h1 { background: var(--h1); } .legend i.h2 { background: var(--h2); } .legend i.h3 { background: var(--h3); }
.legend i.h4 { background: var(--h4); } .legend i.h5 { background: var(--h5); } .legend i.h6 { background: var(--h6); }
.legend i.cl { background: repeating-linear-gradient(135deg, transparent 0 4px, var(--closed) 4px 5px); border: 1px solid var(--closed); }
.legend i.nd { border: 1px dashed var(--text-3); } .legend i.lt { border: 1px dotted var(--closed); }
.legend span { margin: 0 6px 0 2px; } .legend .sp { margin-left: 16px; } .legend .lg { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.readout { min-height: 22px; color: var(--text-2); font-size: 13.5px; margin-top: 10px; }
.readout b { color: var(--text); }
.insights { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; margin: 4px 0; }
.insight { border: 1px solid var(--border); border-radius: 18px; padding: 15px 17px; background: var(--surface); animation: rise .5s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(var(--i, 0) * 45ms); }
.insight .k { color: var(--text-3); font-size: 12px; font-weight: 640; }
.insight .v { font-size: 23px; font-weight: 720; letter-spacing: -.025em; margin: 3px 0; }
.insight .d { color: var(--text-2); font-size: 13px; }
/* machine detail */
.crumb { font-size: 13px; color: var(--text-2); margin-bottom: 8px; }
.crumb a { text-decoration: none; } .crumb a:hover { text-decoration: underline; }
.mhead { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; margin: 4px 0 18px; }
.mhead h2 { margin: 0; font-size: 30px; letter-spacing: -.03em; text-transform: none; color: var(--text); font-weight: 720; }
.tl { margin-top: 8px; }
.tl-track { position: relative; height: 50px; border-radius: 12px; background: repeating-linear-gradient(90deg, var(--surface-2) 0 calc(100% / var(--hrs) - 1px), var(--border) calc(100% / var(--hrs) - 1px) calc(100% / var(--hrs))); overflow: hidden; }
.visit { position: absolute; top: 5px; bottom: 5px; border-radius: 8px; background: var(--series-wash); border: 1px solid var(--series-1); }
.visit.hatch { background-image: repeating-linear-gradient(45deg, transparent 0 4px, var(--series-1) 4px 5px); }
.setm { position: absolute; top: 13px; bottom: 13px; border-radius: 3px; background: var(--series-1); min-width: 3px; }
.tl-axis { display: grid; grid-template-columns: repeat(var(--hrs), 1fr); font-size: 11px; color: var(--text-3); margin-top: 5px; }
.dnav { display: flex; align-items: center; gap: 10px; margin: 6px 0 12px; font-size: 14px; color: var(--text-2); flex-wrap: wrap; }
.dnav a { text-decoration: none; border: 1px solid var(--border); border-radius: 8px; padding: 4px 11px; color: var(--text); }
.dnav a:hover { background: var(--surface-2); } .dnav b { color: var(--text); }
.cols { display: flex; align-items: flex-end; justify-content: space-between; gap: 3px; height: 170px; padding-top: 8px; }
.col { flex: 1 1 0; max-width: 24px; min-width: 3px; display: flex; flex-direction: column; justify-content: flex-end; height: 100%; }
.col i { display: block; background: var(--series-1); border-radius: 4px 4px 0 0; min-height: 2px; transform-origin: bottom; animation: growy .6s cubic-bezier(.2, .7, .2, 1) both; }
.col.shut i { background: var(--border); height: 2px !important; }
.col.nodata i { height: 12px !important; background: transparent; border: 1.5px dashed var(--text-3); border-bottom: 0; border-radius: 4px 4px 0 0; }
.cols { position: relative; }
.avgline { position: absolute; left: 0; right: 0; border-top: 1.5px dashed var(--text-3); pointer-events: none; z-index: 1; }
.avgline span { position: absolute; right: 0; top: -17px; font-size: 11px; color: var(--text-3); background: var(--surface); padding: 0 4px; }
.col-axis { display: flex; justify-content: space-between; gap: 3px; font-size: 11px; color: var(--text-3); margin-top: 6px; }
.col-axis span { flex: 1 1 0; max-width: 24px; min-width: 3px; text-align: center; white-space: nowrap; overflow: visible; }
/* health */
.allgood { display: flex; align-items: center; gap: 16px; }
.allgood .tick { width: 46px; height: 46px; border-radius: 50%; background: var(--good); color: #0b0b0b; display: grid; place-items: center; font-size: 22px; font-weight: 800; flex: none; }
.allgood h3 { margin: 0; font-size: 20px; letter-spacing: -.02em; }
.badge-s { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 650; white-space: nowrap; }
.badge-s i { font-style: normal; width: 18px; height: 18px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; color: #0b0b0b; }
.badge-s.ok i { background: var(--good); } .badge-s.stale i, .badge-s.battery i { background: var(--warning); } .badge-s.offline i { background: var(--critical); color: #fff; }
.meter { width: 84px; height: 8px; border-radius: 4px; background: var(--surface-3); overflow: hidden; display: inline-block; vertical-align: middle; }
.meter b { display: block; height: 100%; background: var(--series-1); border-radius: 4px; }
.meter.low b { background: var(--warning); }
.events { list-style: none; margin: 0; padding: 0; }
.events li { display: grid; grid-template-columns: 160px 1fr; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.events .when { color: var(--text-3); font-size: 13px; }
details { margin: 22px 0; border: 1px solid var(--border); border-radius: 14px; padding: 10px 16px; background: var(--surface); }
summary { cursor: pointer; font-weight: 620; }
.gloss { margin: 8px 0 0; padding-left: 18px; color: var(--text-2); font-size: 14px; } .gloss li { margin: 5px 0; }
table { border-collapse: collapse; width: 100%; font-size: 14px; margin-top: 10px; font-variant-numeric: tabular-nums; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--border); }
th { color: var(--text-2); font-weight: 620; font-size: 13px; }
td.n, th.n { text-align: right; }
.scroll { overflow-x: auto; }
.note { color: var(--text-2); font-size: 14px; }
#tip { position: fixed; z-index: 20; pointer-events: none; background: var(--surface); color: var(--text); border: 1px solid var(--border);
  box-shadow: 0 8px 28px rgba(0, 0, 0, .25); border-radius: 12px; padding: 10px 13px; font-size: 13px; display: none; max-width: 280px; }
#tip b { display: block; font-size: 16px; letter-spacing: -.01em; }
a:focus-visible, [tabindex]:focus-visible, summary:focus-visible, button:focus-visible, select:focus-visible { outline: 2px solid var(--series-1); outline-offset: 2px; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes growx { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes growy { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes pulse { 0% { opacity: .7; transform: scale(.6); } 100% { opacity: 0; transform: scale(1.6); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
@media (forced-colors: active) { .bar, .mini i, .col i, .setm, .cell { forced-color-adjust: none; outline: 1px solid CanvasText; } }
@media (max-width: 880px) { .kpis { grid-template-columns: repeat(2, 1fr); } .hero { grid-column: span 2; } }
@media (max-width: 640px) {
  nav.pills a { padding: 8px 12px; font-size: 13.5px; }
  .wrap { padding: 0 14px 56px; } h1 { font-size: 27px; } header.top { padding-top: 20px; }
  nav.pills { -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); mask-image: linear-gradient(90deg, #000 88%, transparent); }
  .filters { gap: 10px 14px; }
  .hero .val { font-size: 46px; } .kpi .val { font-size: 28px; } .lede { font-size: 17px; }
  .tiles { grid-template-columns: repeat(2, 1fr); gap: 10px; } .tile { padding: 12px 12px 10px; } .tile .big { font-size: 22px; }
  .tile .head { flex-direction: column; align-items: flex-start; gap: 6px; } .tile .muted { display: none; } .tile .sub .x { display: none; }
  .rrow { grid-template-columns: 1fr; } .meta { grid-column: 1; } .track { margin-right: 92px; }
  .heat { --extra: 0px; grid-template-columns: 34px repeat(var(--cols), minmax(0, 1fr)); gap: 2px; } .cell { height: 32px; border-radius: 5px; }
  .avgc, .avgr, .hide-m { display: none; } .heat-col.hide-sm { visibility: hidden; }
  .events li { grid-template-columns: 1fr; gap: 0; }
  table.stack thead { display: none; } table.stack tr { display: block; border-bottom: 1px solid var(--border); padding: 8px 0; }
  table.stack td { display: flex; justify-content: space-between; border: 0; padding: 3px 0; text-align: right; }
  table.stack td::before { content: attr(data-l); color: var(--text-3); font-size: 12.5px; text-align: left; }
}
@media print { nav.pills, .filters, .theme { display: none; } .card, .tile { box-shadow: none; } }
/* floor map and editor */
.fm-card { padding: 18px 18px 14px; }
.fm-bar { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.fm-ctl { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.fm-range { width: min(320px, 60vw); accent-color: var(--series-1); }
.fm-hourlab { font-weight: 650; min-width: 9.5em; }
.fm-legend { display: flex; align-items: center; gap: 3px; font-size: 12px; color: var(--text-2); }
.fm-legend i { display: inline-block; width: 26px; height: 12px; border-radius: 4px; }
.fm-legend i.h0 { background: var(--m0); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--text) 14%, transparent); } .fm-legend i.h1 { background: var(--m1); } .fm-legend i.h2 { background: var(--m2); }
.fm-legend i.h3 { background: var(--m3); } .fm-legend i.h4 { background: var(--m4); } .fm-legend i.h5 { background: var(--m5); } .fm-legend i.h6 { background: var(--m6); }
.fm-legend span { margin: 0 6px 0 2px; }
.fm-wrap { border-radius: 14px; overflow: hidden; background: var(--surface-2); }
.fm, .ed-svg { display: block; width: 100%; height: auto; max-height: 72vh; touch-action: none; user-select: none; }
.fm-floor { fill: var(--surface); }
.fm-grid { stroke: var(--border); stroke-width: .02; }
.fm-wall { stroke: var(--text-2); stroke-width: .16; stroke-linecap: round; }
.fm-wall.preview { stroke: var(--series-1); stroke-dasharray: .3 .2; }
.fm-wall.erasable { stroke: var(--critical); }
.ed-hit { stroke: transparent; stroke-width: .6; cursor: pointer; }
.ed-front { stroke: var(--good); stroke-width: .1; stroke-linecap: round; pointer-events: none; }
.ed-front-arrow { fill: var(--good); pointer-events: none; }
.ed-hint { font-size: 12.5px; color: var(--text-3); margin: 10px 0 0; }
.fm-zone { fill: var(--closed); fill-opacity: .28; stroke: var(--text-3); stroke-width: .035; stroke-dasharray: .16 .12; }   /* no puck: neutral, never a heat colour */
.fm-zone-label { font-size: .4px; fill: var(--text-3); font-weight: 500; pointer-events: none; }
.fm-m { cursor: pointer; }
.fm-rect { stroke: var(--text); stroke-opacity: .35; stroke-width: .04; transition: fill .35s ease; fill: var(--m0); }
.fm-rect.h0 { fill: var(--m0); } .fm-rect.h1 { fill: var(--m1); } .fm-rect.h2 { fill: var(--m2); } .fm-rect.h3 { fill: var(--m3); }
.fm-rect.h4 { fill: var(--m4); } .fm-rect.h5 { fill: var(--m5); } .fm-rect.h6 { fill: var(--m6); }
.fm-rect.nodata { fill: url(#fm-hatch); stroke-dasharray: .2 .15; }
.fm-hatch-bg { fill: var(--surface-3); } .fm-hatch-line { fill: var(--closed); }
.fm-m:hover .fm-rect, .fm-m:focus-visible .fm-rect, .fm-m.sel .fm-rect { stroke: var(--text); stroke-opacity: 1; stroke-width: .09; }
.fm-m:focus-visible { outline: none; }
.fm-name { font-size: .34px; font-weight: 650; fill: var(--text); paint-order: stroke; stroke: var(--surface); stroke-width: .1; stroke-linejoin: round; pointer-events: none; }
.fm-val { font-size: .3px; font-weight: 600; fill: var(--text); paint-order: stroke; stroke: var(--surface); stroke-width: .09; stroke-linejoin: round; pointer-events: none; }
.fm-live { display: none; pointer-events: none; } .fm-live.on { display: inline; }
.fm-tag { fill: var(--good); stroke: var(--surface); stroke-width: .05; } .fm-tag-t { font-size: .3px; font-weight: 750; fill: #fff; letter-spacing: .02px; }
/* in use right now: the machine flashes slowly to green and back */
.fm-m.glow .fm-rect { stroke: var(--good); stroke-opacity: 1; stroke-width: .1; animation: fm-flash 2.4s ease-in-out infinite; }
@keyframes fm-flash { 50% { fill: var(--good); } }
@media (prefers-reduced-motion: reduce) { .fm-m.glow .fm-rect { animation: none; fill: var(--good); } }
.fm-key { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; font-size: .8rem; color: var(--text-2); margin: 4px 0 10px; }
.fm-key span { display: inline-flex; align-items: center; gap: 6px; }
.fm-key i { width: 18px; height: 12px; border-radius: 3px; display: inline-block; }
.fm-key .k-puck { background: var(--m3); border: 1px solid var(--text-3); }
.fm-key .k-none { background: color-mix(in srgb, var(--closed) 30%, transparent); border: 1px dashed var(--text-3); }
.fm-key .k-use { background: var(--good); animation: k-flash 2.4s ease-in-out infinite; }
@keyframes k-flash { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .fm-key .k-use { animation: none; } }
.ed { display: grid; grid-template-columns: 1fr 280px; gap: 16px; align-items: start; }
.ed-tools { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 10px; }
.ed .theme[aria-pressed="true"] { background: var(--surface-3); border-color: var(--series-1); color: var(--text); }
.ed-svg { background: var(--surface-2); border-radius: 14px; } .ed-svg.walling { cursor: crosshair; }
.ed-side label { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 8px 0; font-size: 14px; color: var(--text-2); }
.ed-side input { width: 100px; border: 1px solid var(--border); border-radius: 8px; padding: 6px 8px; background: var(--surface); color: var(--text); font: inherit; }
.ed-btns { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
@media (max-width: 860px) { .ed { grid-template-columns: 1fr; } }

/* 3D floor view */
.f3-wrap { position: relative; height: min(68vh, 640px); min-height: 360px; }
.f3-wrap canvas { width: 100%; height: 100%; display: block; touch-action: none; cursor: grab; }
.f3-wrap canvas:active { cursor: grabbing; }
.f3-check { font-size: 13px; color: var(--text-2); display: inline-flex; align-items: center; gap: 6px; }
.f3-tip { position: absolute; pointer-events: none; background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: 10px; padding: 6px 10px; font-size: 12.5px; box-shadow: var(--shadow); transform: translate(12px, 12px); white-space: nowrap; }
.f3-fallback { position: absolute; inset: 0; margin: 0; display: grid; place-items: center; text-align: center; padding: 24px; color: var(--text-2); }
.f3-fallback[hidden], .f3-tip[hidden] { display: none; }
/* ===================== Install tool (operator, phone first). Same tokens as the dashboard. ===================== */
.in-body [hidden] { display: none !important; }
.in-body { min-height: 100dvh; }
.in-body.in-has-act { padding-bottom: 104px; }
.in-body.in-locked { overflow: hidden; }
.in-app { max-width: 560px; margin: 0 auto; padding: 0 16px 40px; }
.in-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px 12px; margin: 0 -16px; position: sticky; top: 0; z-index: 6;
  background: color-mix(in srgb, var(--page) 80%, transparent); -webkit-backdrop-filter: blur(16px) saturate(1.3); backdrop-filter: blur(16px) saturate(1.3); }
.in-body details { margin: 0; border: 0; border-radius: 0; padding: 0; background: none; }
.in-top .eyebrow { margin-bottom: 1px; }
.in-site { font-size: 17px; font-weight: 700; letter-spacing: -.015em; }
.in-top-r { display: flex; align-items: center; gap: 8px; }
.in-chip { display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border);
  font-size: 12.5px; font-weight: 600; color: var(--text-2); white-space: nowrap; }
.in-chip-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--text-3); position: relative; }
.in-chip.ok .in-chip-dot { background: var(--good); } .in-chip.warn .in-chip-dot { background: var(--warning); } .in-chip.off .in-chip-dot { background: var(--critical); }
.in-chip.ok .in-chip-dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--good); opacity: 0; animation: pulse 2.4s ease-out infinite; }
.in-menu { position: relative; }
.in-menu summary { list-style: none; font-weight: inherit; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 999px; cursor: pointer; color: var(--text-2); }
.in-menu summary::-webkit-details-marker { display: none; }
.in-menu summary:hover, .in-menu[open] summary { background: var(--surface-3); }
.in-menu summary svg { width: 20px; height: 20px; fill: currentColor; }
.in-menu-pop { position: absolute; right: 0; top: 46px; min-width: 200px; padding: 6px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); z-index: 20; display: grid; }
.in-menu-pop a, .in-menu-pop button { display: flex; justify-content: space-between; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 10px; color: var(--text);
  text-decoration: none; font: inherit; font-size: 15px; background: none; border: 0; cursor: pointer; text-align: left; }
.in-menu-pop a:hover, .in-menu-pop button:hover { background: var(--surface-2); }

.in-prog { margin: 2px 0 22px; }
.in-prog-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 14px; color: var(--text-2); margin-bottom: 8px; }
.in-prog-row b { color: var(--text); font-size: 15px; font-variant-numeric: tabular-nums; }
.in-prog-bar { display: flex; gap: 3px; height: 6px; }
.in-prog-bar i { flex: 1; border-radius: 3px; background: var(--surface-3); transition: background .4s ease; }
.in-prog-bar i.p-ok { background: var(--good); } .in-prog-bar i.p-mid { background: var(--series-1); } .in-prog-bar i.p-warn { background: var(--warning); } .in-prog-bar i.p-bad { background: var(--critical); }
.in-meta { color: var(--text-3); font-size: 13px; }
.in-offline { margin: -10px 0 16px; padding: 10px 14px; border-radius: 12px; font-size: 14px; font-weight: 600;
  background: color-mix(in srgb, var(--critical) 14%, var(--surface)); color: var(--text); }

.in-stage { animation: rise .35s ease both; }
.in-eyebrow { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); font-weight: 650; margin-bottom: 6px; }
.in-mhead { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.in-title { font-size: 30px; line-height: 1.12; font-weight: 740; letter-spacing: -.03em; margin: 0; outline: none; }
.in-sub { color: var(--text-2); font-size: 15px; margin: 6px 0 0; }
.in-regonly { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 6px 0 0; font-size: 13.5px; color: var(--text-2); }
.in-regonly[hidden] { display: none; } .in-regonly .in-link { font-size: 14px; }
.in-link { background: none; border: 0; padding: 10px 4px; margin: -10px -4px; font: inherit; font-size: 15px; font-weight: 650; color: var(--series-1); cursor: pointer; min-height: 44px; }
.in-mini { display: block; width: 100%; margin: 16px 0 18px; padding: 0; border: 1px solid var(--border); border-radius: 18px; background: var(--surface); cursor: pointer; overflow: hidden; }
.in-mini svg { display: block; width: 100%; height: 150px; }

.in-listen { display: flex; align-items: center; gap: 12px; padding: 16px; border-radius: 16px; background: var(--surface); border: 1px dashed var(--border); color: var(--text-2); font-size: 15px; }
.in-listen.warn { border-style: solid; border-color: var(--warning); background: color-mix(in srgb, var(--warning) 10%, var(--surface)); color: var(--text); }
.in-pulse { width: 12px; height: 12px; border-radius: 50%; background: var(--series-1); position: relative; flex: none; }
.in-pulse::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid var(--series-1); opacity: 0; animation: pulse 1.8s ease-out infinite; }
.in-listen.warn .in-pulse { background: var(--warning); } .in-listen.warn .in-pulse::after { border-color: var(--warning); }
.in-found { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 18px;
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); }
.in-found.shake { border-color: color-mix(in srgb, var(--good) 60%, var(--border)); box-shadow: 0 0 0 4px color-mix(in srgb, var(--good) 16%, transparent), var(--shadow); }
.in-found-k { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: var(--good); }
.in-found:not(.shake) .in-found-k { color: var(--series-1); }
.in-code { font: 700 26px/1.15 ui-monospace, "SF Mono", Menlo, Consolas, monospace; letter-spacing: .08em; font-variant-numeric: tabular-nums; margin: 2px 0; }
.in-code.sm { font-size: 16px; }
.in-rise { animation: rise .4s cubic-bezier(.2, .7, .2, 1) both; }
.in-bars { display: inline-flex; align-items: flex-end; gap: 2px; height: 16px; }
.in-bars i { width: 4px; border-radius: 1.5px; background: var(--surface-3); }
.in-bars i:nth-child(1) { height: 6px; } .in-bars i:nth-child(2) { height: 11px; } .in-bars i:nth-child(3) { height: 16px; }
.in-bars.b1 i:nth-child(-n+1), .in-bars.b2 i:nth-child(-n+2), .in-bars.b3 i { background: var(--text-2); }
.in-bars.b1 i:nth-child(1) { background: var(--warning); }
.in-near { margin-top: 12px; }
.in-near summary { cursor: pointer; color: var(--text-2); font-size: 14px; font-weight: 600; min-height: 44px; display: flex; align-items: center; justify-content: space-between; list-style: none; }
.in-near summary::-webkit-details-marker { display: none; }
.in-near summary::after { content: "\203a"; font-size: 20px; color: var(--text-3); transition: transform .2s ease; }
.in-near[open] summary::after { transform: rotate(90deg); }
.in-plist { list-style: none; padding: 0; margin: 4px 0 0; display: grid; gap: 6px; }
.in-prow { width: 100%; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; min-height: 52px; padding: 0 14px; border-radius: 14px;
  border: 1px solid var(--border); background: var(--surface); color: var(--text); font: inherit; cursor: pointer; text-align: left; }
.in-prow.mv { border-color: color-mix(in srgb, var(--good) 55%, var(--border)); }
.in-codebox { display: block; margin-top: 14px; }
.in-codebox > label { display: block; font-size: 13px; color: var(--text-3); margin-bottom: 6px; }
.in-codebox input, .in-input { width: 100%; height: 52px; border: 1px solid var(--border); border-radius: 14px; padding: 0 16px; background: var(--surface); color: var(--text);
  font: inherit; font-size: 17px; }
.in-codebox input { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; letter-spacing: .1em; text-transform: uppercase; }
.in-codebox input:focus, .in-input:focus { outline: 2px solid var(--series-1); outline-offset: 1px; border-color: transparent; }

/* verify / success hero */
.in-hero { text-align: center; padding: 8px 0 4px; }
.in-ring { position: relative; width: 104px; height: 104px; margin: 6px auto 20px; }
.in-ring-svg { width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
.in-ring-track { fill: none; stroke: var(--surface-3); stroke-width: 5; }
.in-ring-arc { fill: none; stroke: var(--series-1); stroke-width: 5; stroke-linecap: round; stroke-dasharray: 201; stroke-dashoffset: 150; transform-origin: 36px 36px;
  transition: stroke-dashoffset .5s ease, stroke .4s ease, fill .4s ease; }
.in-ring[data-state="waiting"] .in-ring-arc { animation: in-spin 1.1s linear infinite; }
.in-ring[data-state="heard"] .in-ring-arc { stroke-dashoffset: calc(201 * (1 - var(--p, .06))); animation: none; }
.in-ring[data-state="verified"] .in-ring-arc { stroke-dashoffset: 0; stroke: var(--good); fill: var(--good); }
.in-ring-check { fill: none; stroke: #0b0b0b; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 40; transform: rotate(90deg); transform-origin: 36px 36px; }
.in-ring[data-state="verified"] .in-ring-check { stroke-dashoffset: 0; transition: stroke-dashoffset .4s .25s ease; }
.in-ring[data-state="verified"]::before, .in-ring[data-state="verified"]::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 3px solid var(--good); opacity: 0; animation: pulse 1.4s ease-out 2; }
.in-ring[data-state="verified"]::after { animation-delay: .35s; }
.in-ring[data-state="warn"] .in-ring-arc { stroke-dashoffset: 0; stroke: var(--warning); fill: var(--warning); }
#all-ring[data-state="warn"] .in-ring-n { color: #0b0b0b; }
.in-ring[data-state="warn"] .in-ring-check { display: none; }
#all-ring .in-ring-n { display: none; color: var(--text); font-size: 40px; }
#all-ring[data-state="warn"] .in-ring-n { display: grid; }
.in-ring-n { position: absolute; inset: 0; display: grid; place-items: center; font-size: 22px; font-weight: 740; font-variant-numeric: tabular-nums; }
@keyframes in-spin { to { transform: rotate(360deg); } }
.in-hero .in-sub { max-width: 30em; margin: 10px auto 0; }
.in-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 22px 0 6px; }
.in-stats div { padding: 14px 8px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); }
.in-stats b { display: block; font-size: clamp(18px, 5.6vw, 24px); font-weight: 740; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.in-stats span { font-size: 12.5px; color: var(--text-3); }
.in-checks { list-style: none; padding: 0; margin: 20px 0 0; text-align: left; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); overflow: hidden; }
.in-checks li { display: grid; grid-template-columns: 20px 110px 1fr; gap: 8px; align-items: center; padding: 12px 14px; font-size: 14px; color: var(--text-2); border-top: 1px solid var(--border); }
.in-checks li:first-child { border-top: 0; }
.in-checks li::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--surface-3); justify-self: center; }
.in-checks li.ok::before { background: var(--good); } .in-checks li.bad::before { background: var(--critical); }
.in-checks b { color: var(--text); font-weight: 650; }
.in-vbtns { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.in-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text); font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; text-decoration: none; }
.in-btn:hover { background: var(--surface-2); }
.in-btn.danger { color: var(--critical); }
.in-btn.sm { min-height: 40px; padding: 0 16px; font-size: 14px; flex: none; }
.in-mhead { align-items: center; }
.in-act .in-go { max-width: 64%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.in-btn.wide, .in-go.wide { width: 100%; margin-top: 10px; }

/* sticky action bar */
.in-act { position: fixed; left: 50%; transform: translateX(-50%); bottom: max(12px, env(safe-area-inset-bottom)); width: min(528px, calc(100% - 24px)); z-index: 15;
  display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 18px; border-radius: 22px;
  background: color-mix(in srgb, var(--surface) 86%, transparent); -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4);
  border: 1px solid color-mix(in srgb, var(--border) 70%, transparent); box-shadow: 0 10px 40px rgba(11, 11, 11, .18); }
.in-act.in-in { animation: in-up .26s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes in-up { from { transform: translate(-50%, 18px); opacity: 0; } to { transform: translate(-50%, 0); opacity: 1; } }
.in-act-t { flex: 1; min-width: 0; display: grid; }
.in-act-t b { font-size: 16px; font-weight: 700; letter-spacing: -.01em; line-height: 1.2; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.in-act-t span { font-size: 13px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.in-act-t span:empty { display: none; }
.in-go { min-height: 52px; padding: 0 24px; border: 0; border-radius: 16px; background: var(--series-1); color: #fff; font: inherit; font-size: 16px; font-weight: 700; cursor: pointer;
  box-shadow: 0 6px 18px color-mix(in srgb, var(--series-1) 35%, transparent); flex: none; transition: transform .12s ease, opacity .2s ease; }
.in-go:active { transform: scale(.97); }
.in-go:disabled { opacity: .45; box-shadow: none; cursor: default; }
.in-toast { position: fixed; left: 12px; right: 12px; margin: 0 auto; top: max(14px, env(safe-area-inset-top)); z-index: 40; max-width: 520px;
  display: flex; align-items: center; gap: 12px; padding: 12px 14px 12px 18px; border-radius: 16px; background: var(--banner-bg); color: var(--banner-text);
  font-size: 14.5px; box-shadow: 0 10px 40px rgba(11, 11, 11, .25); animation: rise .25s ease both; }
.in-toast span { flex: 1; }
.in-toast button { background: none; border: 0; color: inherit; font: inherit; font-weight: 700; min-height: 44px; padding: 0 8px; cursor: pointer; }

/* add / remove, always at the top */
.in-two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 14px 0 20px; }
.in-two .in-btn { padding: 0 10px; gap: 6px; white-space: nowrap; }
.in-two-w { grid-column: 1 / -1; }
.in-pill { font: inherit; font-size: 13.5px; font-weight: 650; min-height: 44px; padding: 0 14px; display: inline-flex; align-items: center; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--series-1); white-space: nowrap; cursor: pointer; }
.in-pill.danger { color: var(--critical); }
.in-has-off { display: flex; align-items: center; padding-right: 12px; } .in-has-off .in-row { flex: 1; min-width: 0; padding-right: 10px; }
.in-offscan { margin: 0 0 12px; }
/* machines list */
.in-machines { margin-top: 36px; }
.in-seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 3px; padding: 3px; border-radius: 14px; background: var(--surface-3); margin-bottom: 12px; }
.in-seg button { min-height: 44px; border: 0; border-radius: 11px; background: transparent; color: var(--text-2); font: inherit; font-size: 14px; font-weight: 650; cursor: pointer; }
.in-seg button[aria-selected="true"], .in-seg button[aria-pressed="true"] { background: var(--surface); color: var(--text); box-shadow: 0 1px 3px rgba(11, 11, 11, .12); }
.in-count { color: var(--text-3); font-weight: 600; margin-left: 4px; font-variant-numeric: tabular-nums; }
.in-rows { list-style: none; padding: 0; margin: 0; border-radius: 18px; background: var(--surface); border: 1px solid var(--border); overflow: hidden; }
.in-rows li + li { border-top: 1px solid var(--border); }
.in-row { width: 100%; display: grid; grid-template-columns: 10px 1fr auto; align-items: center; gap: 14px; min-height: 60px; padding: 8px 16px;
  background: none; border: 0; color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.in-row:hover { background: var(--surface-2); }
.in-row.cur { background: color-mix(in srgb, var(--series-1) 8%, var(--surface)); }
.in-row-t { display: grid; min-width: 0; } .in-row-t b { font-size: 15.5px; font-weight: 650; overflow-wrap: anywhere; }
.in-chev { color: var(--text-3); font-size: 22px; line-height: 1; } .in-row.cur .in-chev { font-size: 12px; font-weight: 700; color: var(--series-1); text-transform: uppercase; letter-spacing: .1em; }
.in-sdot { width: 10px; height: 10px; border-radius: 50%; background: var(--surface-3); box-shadow: inset 0 0 0 1.5px var(--border); }
.in-sdot.s-ok { background: var(--good); box-shadow: none; } .in-sdot.s-mid { background: var(--series-1); box-shadow: none; } .in-sdot.s-warn { background: var(--warning); box-shadow: none; } .in-sdot.s-bad { background: var(--critical); box-shadow: none; }
.in-st { font-size: 12.5px; font-weight: 650; padding: 4px 10px; border-radius: 999px; white-space: nowrap; background: var(--surface-3); color: var(--text-2); box-shadow: inset 0 0 0 1px var(--border); }
.in-st.ok, .in-st.mid, .in-st.bad { box-shadow: none; } .in-st.ok { background: var(--good); color: #0b0b0b; } .in-st.mid { background: color-mix(in srgb, var(--series-1) 16%, var(--surface)); color: var(--text); }
.in-st.warn { box-shadow: none; background: color-mix(in srgb, var(--warning) 24%, var(--surface)); color: var(--text); }
.in-st.bad { background: color-mix(in srgb, var(--critical) 16%, var(--surface)); color: var(--critical); }
.in-empty { padding: 18px 16px; color: var(--text-3); font-size: 14px; }

/* bottom sheet */
.in-scrim { position: fixed; inset: 0; z-index: 30; background: rgba(11, 11, 11, .38); animation: in-fade .2s ease both; }
@keyframes in-fade { from { opacity: 0; } }
.in-sheet { position: fixed; left: 50%; bottom: 0; transform: translateX(-50%); z-index: 31; width: min(560px, 100%); max-height: 88dvh; overflow: auto; overscroll-behavior: contain;
  padding: 8px 18px max(20px, env(safe-area-inset-bottom)); border-radius: 24px 24px 0 0; background: var(--surface); box-shadow: 0 -10px 50px rgba(11, 11, 11, .25);
  animation: in-sheet .28s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes in-sheet { from { transform: translate(-50%, 40px); opacity: 0; } }
.in-grab { width: 40px; height: 5px; border-radius: 3px; background: var(--surface-3); margin: 0 auto 8px; }
.in-sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.in-sheet-head h2 { margin: 0; font-size: 21px; font-weight: 720; letter-spacing: -.02em; text-transform: none; color: var(--text); }
.in-x { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--surface-2); color: var(--text-2); font-size: 22px; cursor: pointer; }
.in-sheet .in-seg.sm { margin-bottom: 12px; }
.in-sheet .in-eyebrow { margin: 18px 0 8px; }
.in-sheet .in-rows { max-height: 46dvh; overflow: auto; }
.in-mapwrap { border-radius: 18px; background: var(--surface); border: 1px solid var(--border); overflow: hidden; }
.in-map { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3.4; touch-action: manipulation; cursor: pointer; }
.in-map.placing { cursor: crosshair; }
.in-types { display: flex; flex-wrap: wrap; gap: 8px; }
.in-tchip { min-height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.in-tchip[aria-pressed="true"] { background: var(--series-1); border-color: var(--series-1); color: #fff; }

/* floor map shapes: same meaning as the dashboard (hatched = no puck), green tint = live, blue = selected */
.in-floor { fill: var(--surface); }
.in-wall { stroke: var(--text-3); stroke-linecap: round; }
.in-hatch-bg { fill: var(--surface-2); } .in-hatch-ln { fill: var(--closed); }
.in-mrect { stroke: var(--text-3); fill: var(--surface-2); }
.in-m.none .in-mrect { stroke-dasharray: .16 .1; }
.in-m.has .in-mrect { fill: color-mix(in srgb, var(--series-1) 18%, var(--surface)); stroke: var(--series-1); }
.in-m.ok .in-mrect { fill: color-mix(in srgb, var(--good) 22%, var(--surface)); stroke: var(--good); }
.in-m.sel .in-mrect { fill: var(--series-1); stroke: var(--surface); }
.in-mpulse { fill: none; stroke: var(--series-1); transform-box: fill-box; transform-origin: center; animation: in-ping 1.6s ease-out infinite; }
@keyframes in-ping { from { opacity: .7; transform: scale(1); } to { opacity: 0; transform: scale(1.6); } }
.in-mlabel { fill: var(--text-2); font-weight: 600; paint-order: stroke; stroke: var(--surface); stroke-linejoin: round; pointer-events: none; }
.in-mlabel.sel { fill: var(--text); font-weight: 750; }
.in-spot { fill: var(--series-wash); stroke: var(--series-1); stroke-width: .06; } .in-spot-c { fill: var(--series-1); }
@media (prefers-reduced-motion: reduce) {
  .in-stage, .in-rise, .in-act.in-in, .in-sheet, .in-scrim, .in-toast { animation: none; }
  .in-ring .in-ring-arc, .in-pulse::after, .in-chip-dot::after, .in-ring::before, .in-ring::after { animation: none !important; }
}
@media (min-width: 700px) { .in-title { font-size: 34px; } .in-mini svg { height: 190px; } }
.in-row-t .in-meta { overflow-wrap: anywhere; }
@media (max-width: 520px) { .in-has-off .in-row { grid-template-columns: 10px minmax(0, 1fr); row-gap: 6px; } .in-has-off .in-row > .in-st { grid-column: 2; justify-self: start; } }
.in-code-note { margin: 8px 2px 0; font-size: 14px; color: var(--text-2); }
/* floor map: day replay */
.fm-ctl[hidden], .fm-strip-wrap[hidden] { display: none; }
.fm-mode { display: flex; gap: 8px; margin-bottom: 12px; }
.fm-mode .theme[aria-pressed="true"] { background: var(--surface-3, var(--surface-2)); border-color: var(--series-1); color: var(--text); font-weight: 650; }
.fm-date, .fm-step { font: inherit; font-size: 13px; color: var(--text); background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 5px 8px; }
.fm-strip-wrap { margin-top: 10px; }
.fm-strip { width: 100%; height: 64px; display: block; cursor: pointer; }
.fm-strip .sb { fill: var(--series-1); opacity: .55; }
.fm-strip .sb.cur { opacity: 1; }
.fm-strip .base { stroke: var(--border); stroke-width: 1; }
.fm-strip .tick { fill: var(--text-3); font-size: 10px; }
.fm-strip .now { stroke: var(--text); stroke-width: 1.5; }
.fm-strip-cap { color: var(--text-2); font-size: 12.5px; margin: 4px 0 0; }
.fm .fm-sets { font-size: 0.26px; fill: var(--text-2); }

/* label scanner (install page) */
.in-coderow { display: flex; gap: 8px; }
.in-coderow input { flex: 1; min-width: 0; }
.in-scanbtn { flex: none; height: 52px; display: inline-flex; align-items: center; gap: 6px; padding: 0 16px; }
.in-scanbtn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.in-scan { position: fixed; inset: 0; z-index: 50; background: #000; display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
  padding: 0 16px calc(24px + env(safe-area-inset-bottom)); gap: 14px; }
.in-scan[hidden] { display: none; }
.in-scan video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.in-scan-frame { position: absolute; top: 50%; left: 50%; width: min(64vw, 280px); aspect-ratio: 1; transform: translate(-50%, -60%);
  border-radius: 20px; box-shadow: 0 0 0 100vmax rgba(0, 0, 0, .45); outline: 3px solid rgba(255, 255, 255, .9); }
.in-scan-t { position: relative; margin: 0; color: #fff; font-size: 16px; text-align: center; max-width: 340px; text-shadow: 0 1px 3px rgba(0, 0, 0, .6); }
.in-scan .in-btn { position: relative; min-width: 160px; }
.in-link.in-mremove { display: block; margin: 18px 0 0; padding: 10px 0; font-size: 14px; font-weight: 600; color: var(--text-2); }
.in-link.in-mremove[hidden] { display: none; }
.live-note { font-size: .8rem; color: var(--text-3); margin-top: 12px; display: flex; align-items: center; gap: 8px; }
.live-swapped .kpis, .live-swapped .kpis *, .live-swapped .tiles, .live-swapped .tiles * { animation: none !important; transition: none !important; }
.f3-live { font-size: .85rem; color: var(--text-2); }
.f3-live:not(:empty)::before { content: ""; display: inline-block; width: .6em; height: .6em; margin-right: .4em; border-radius: 50%;
  background: var(--good); box-shadow: 0 0 6px 2px color-mix(in srgb, var(--good) 45%, transparent); vertical-align: .05em; }

/* phone menu bar (_tabs.html) */
.tabs, .op-back { display: none; }
@media (max-width: 640px) {
  nav.pills { display: none; }
  body { --tabs: calc(58px + env(safe-area-inset-bottom)); padding-bottom: var(--tabs); }
  .tabs { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 14; height: var(--tabs); padding-bottom: env(safe-area-inset-bottom); background: var(--surface); border-top: 1px solid var(--border); }
  .tabs a { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--text-3); text-decoration: none; font-size: 11px; font-weight: 600; }
  .tabs a[aria-current="page"] { color: var(--series-1); }
  .tabs a:focus-visible { outline: 2px solid var(--series-1); outline-offset: -3px; }
  .tabs svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .op-back:not([hidden]) { display: inline-flex; align-items: center; min-height: 44px; font-weight: 650; color: var(--series-1); text-decoration: none; }
  .in-body.in-has-act { padding-bottom: calc(104px + var(--tabs)); }
  .in-act { bottom: calc(var(--tabs) + 10px); }
}
@media print { .tabs, .op-back { display: none !important; } body { padding-bottom: 0; } }

/* map labels (maplabels.js): the numbered list used when the names do not fit on the drawing */
.fm-keylist { columns: 2 190px; column-gap: 24px; margin: 12px 0 4px; padding-left: 26px; font-size: 14px; }
.fm-keylist[hidden] { display: none; }
.fm-keylist li { break-inside: avoid; padding: 3px 0; } .fm-keylist li::marker { font-weight: 700; color: var(--text-2); }
.fm-keylist a { color: var(--text); } .fm-keylist b { float: right; font-weight: 600; color: var(--text-2); font-variant-numeric: tabular-nums; }
.fm-keylist .use a::after { content: " in use"; color: var(--good); font-weight: 700; font-size: 12px; }
.fm.numbered .fm-live { display: none; }
/* phone: the drawing comes before its controls and legend */
.only-touch { display: none; }
@media (hover: none) and (pointer: coarse) { .hide-touch { display: none; } .only-touch { display: inline; } }
@media (max-width: 640px) {
  .fm-card { display: flex; flex-direction: column; padding: 14px 14px 10px; }
  .fm-card > .fm-mode { order: 0; margin-bottom: 10px; } .fm-card > .fm-wrap { order: 1; } .fm-card > .fm-keylist { order: 3; columns: 1; }
  .fm-card > .fm-strip-wrap { order: 2; } .fm-card > .fm-bar { order: 2; margin: 10px 0 4px; } .fm-card > .fm-key { order: 4; } .fm-card > .takeaway-note { order: 5; }
  .fm-range { width: 100%; } .f3-wrap { height: 76vw; min-height: 250px; }
  .top-r { flex-wrap: wrap; } .top-r .live { white-space: nowrap; }
}
/* error pages, report editor, owner's report link */
.nf { max-width: 460px; margin: 0 auto; padding: 9vh 22px 48px; text-align: center; }
.nf-brand { font-weight: 720; letter-spacing: .02em; color: var(--text-2); margin-bottom: 26px; }
.nf-art { display: block; width: 100%; max-width: 340px; margin: 0 auto 28px; }
.nf-room { fill: var(--surface); stroke: var(--border); stroke-width: 2; } .nf-m rect { fill: var(--surface-3); }
.nf-gap { fill: color-mix(in srgb, var(--series-1) 10%, transparent); stroke: var(--series-1); stroke-width: 2; stroke-dasharray: 6 5; }
.nf-q { font-size: 30px; font-weight: 740; fill: var(--series-1); }
.nf h1 { font-size: 28px; line-height: 1.15; letter-spacing: -.02em; margin: 0 0 10px; } .nf p { color: var(--text-2); line-height: 1.55; margin: 0; overflow-wrap: anywhere; }
.nf ul { text-align: left; color: var(--text-2); line-height: 1.55; margin: 18px auto 0; padding-left: 20px; max-width: 380px; } .nf li + li { margin-top: 4px; }
.nf-btn { display: inline-flex; align-items: center; min-height: 48px; padding: 0 24px; margin-top: 24px; border-radius: 999px; background: var(--series-1); color: #fff; font-weight: 650; text-decoration: none; }
.nf .nf-help { margin-top: 30px; font-size: 13.5px; color: var(--text-3); } .nf-help a { color: var(--series-1); font-weight: 600; }
a.theme.rep { text-decoration: none; color: var(--text); }
.re label { display: block; margin: 16px 0 6px; font-size: 14px; color: var(--text-2); } .re label b { color: var(--text); }
.re textarea, .re input[type=date] { font: inherit; font-size: 15px; line-height: 1.5; color: var(--text); background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px; }
.re textarea { width: 100%; box-sizing: border-box; resize: vertical; }
.re .btns { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 14px 0; } .re .btns a { text-decoration: none; color: var(--text); }
.re .freeze { border-color: var(--critical); color: var(--critical); }
@media (max-width: 640px) { .mode { width: 100%; } .mode a { flex: 1; justify-content: center; padding: 12px 8px; } .hbar .rep { margin-left: 0; } body.is-history .kpis:not(.five) { grid-template-columns: 1fr; } }
@media print { .mode, .hbar .seg { display: none; } }
