/* Property screens: the Camp N'at / Home N'at look. Fonts are bundled (SIL OFL), no outside requests. */
@font-face { font-family: "Bricolage Grotesque"; src: url("fonts/bricolage.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Public Sans"; src: url("fonts/public-sans.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --bg: #f3efe4; --panel: #fffdf7; --panel-2: #f8f4ea; --ink: #1f2a22; --muted: #5d6a5f; --line: #e2dac7;
  --accent: #2f5d46; --accent-2: #3f7f5c; --accent-soft: #e2ece5; --sun: #d9822b;
  --good: #2e7d4f; --warn: #c27c1a; --bad: #b23a2e; --info: #3f7fa6;
  --hero-1: #1f3a2c; --hero-2: #2f5d46; --hero-ink: #f6f1e4;
  --s-online: #2e7d4f; --s-idle: #8fbf9f; --s-empty: #d4ccba; --s-paused: #c27c1a; --s-sched: #3f7fa6; --s-alert: #b23a2e;
  --shadow: 0 1px 2px rgba(31, 42, 34, .05), 0 8px 24px rgba(31, 42, 34, .06);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1512; --panel: #161e1a; --panel-2: #1b2520; --ink: #e9eee9; --muted: #98a59c; --line: #26322b;
    --accent: #7fc29a; --accent-2: #5fae80; --accent-soft: #1f2e26; --sun: #f0a24b;
    --good: #6cc391; --warn: #e8b04f; --bad: #f07a6b; --info: #73b3dc;
    --hero-1: #12241b; --hero-2: #1f3d2e;
    --s-online: #3fa86a; --s-idle: #3d6a50; --s-empty: #2b3530; --s-paused: #c88a2b; --s-sched: #3b7aa3; --s-alert: #d3483a;
    --shadow: none;
  }
}
body { font-family: "Public Sans", ui-sans-serif, system-ui, sans-serif; background: var(--bg); }
h1, h2, .hero-title, .kn, .big-n, .ring-num, .g-num { font-family: "Bricolage Grotesque", "Public Sans", sans-serif; }
main { max-width: 1320px; }

/* property bar */
.pbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px; margin: -8px 0 16px; padding: 10px 14px 10px 18px; border-radius: 14px; background: var(--hero-1); color: var(--hero-ink); }
.pbar.t-marina { --hero-1: #12304a; }
.pbar.t-residential { --hero-1: #26303b; }
.pname { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; font-size: 17px; }
.pbrand { font-size: 11px; text-transform: uppercase; letter-spacing: 1.4px; opacity: .75; }
.pnav { display: flex; gap: 2px; flex-wrap: wrap; margin-left: auto; }
.pnav a { color: var(--hero-ink); text-decoration: none; padding: 7px 13px; border-radius: 9px; font-weight: 500; opacity: .85; }
.pnav a:hover { opacity: 1; background: rgba(255,255,255,.08); }
.pnav a.on { background: #e9dfc7; color: #1f3a2c; opacity: 1; font-weight: 600; }
.pbar .tag { background: #e9dfc7; color: #1f3a2c; }

/* hero */
.hero { position: relative; overflow: hidden; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px;
  padding: 28px 30px; border-radius: 20px; margin-bottom: 16px; color: var(--hero-ink);
  background: url("topo.svg") right center / cover no-repeat, radial-gradient(120% 140% at 100% 0%, var(--hero-2) 0%, var(--hero-1) 60%); }
.hero.t-marina { --hero-1: #0f2a42; --hero-2: #1d4e73; }
.hero.t-residential { --hero-1: #1f2833; --hero-2: #3b4a5c; }
.hero::after { content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%;
  background: radial-gradient(circle, rgba(240,162,75,.35), rgba(240,162,75,0) 70%); pointer-events: none; }
.hero-main, .hero-big { position: relative; z-index: 1; }
.hero-title { margin: 4px 0 6px; font-size: clamp(30px, 4.4vw, 50px); line-height: 1.02; font-weight: 700; letter-spacing: -.5px; }
.hero-sub { margin: 0; opacity: .82; font-size: 15px; }
.live { margin: 0; display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; opacity: .9; }
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: #7ee2a3; box-shadow: 0 0 0 0 rgba(126,226,163,.7); animation: livepulse 2s infinite; }
@keyframes livepulse { 0% { box-shadow: 0 0 0 0 rgba(126,226,163,.6); } 70% { box-shadow: 0 0 0 10px rgba(126,226,163,0); } 100% { box-shadow: 0 0 0 0 rgba(126,226,163,0); } }
.hero-big { display: grid; justify-items: end; text-align: right; }
.big-n { font-size: clamp(44px, 6vw, 76px); font-weight: 700; line-height: .95; font-variant-numeric: tabular-nums; letter-spacing: -1.5px; }
.big-l { font-size: 14px; opacity: .85; }
.big-s { font-size: 12px; opacity: .65; margin-top: 4px; }

/* key tiles */
.ktiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.ktile { position: relative; overflow: hidden; display: grid; gap: 2px; padding: 14px 16px 10px; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); }
.kl { font-size: 13px; color: var(--muted); font-weight: 500; }
.kn { font-size: 30px; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.1; }
.kn small { font-size: 15px; color: var(--muted); font-weight: 600; }
.ktile.is-bad .kn { color: var(--bad); }
.spark-mini { width: 100%; height: 34px; margin-top: 4px; }
.spark-mini polyline { fill: none; stroke: var(--accent-2); stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.ktile.is-bad .spark-mini polyline { stroke: var(--bad); }

/* dashboard grid */
.dgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 18px 20px; box-shadow: var(--shadow); min-width: 0; }
.span2 { grid-column: span 2; }
.span3 { grid-column: 1 / -1; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.panel-head h2 { margin: 0; font-size: 17px; font-weight: 700; }
.panel-head a { font-size: 13px; font-weight: 600; }
.count-badge { background: var(--bad); color: #fff; font-size: 12px; font-weight: 700; border-radius: 999px; padding: 1px 9px; }
.all-good { margin: 6px 0; padding: 14px; border-radius: 12px; background: color-mix(in srgb, var(--good) 10%, var(--panel)); color: var(--good); font-weight: 600; }

/* charts */
.chart { display: block; width: 100%; height: auto; overflow: visible; }
.chart .grid { stroke: var(--line); stroke-width: 1; }
.chart .tick { stroke: var(--muted); }
.chart .axis { fill: var(--muted); font-size: 11px; font-family: "Public Sans", sans-serif; font-variant-numeric: tabular-nums; }
.stop-a { stop-color: var(--accent-2); stop-opacity: .38; }
.stop-b { stop-color: var(--accent-2); stop-opacity: .02; }
.area-line { fill: none; stroke: var(--accent-2); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.area-compare { fill: none; stroke: var(--sun); stroke-opacity: .7; stroke-width: 1.5; stroke-dasharray: 4 4; }
.now-dot { fill: var(--panel); stroke: var(--accent-2); stroke-width: 3; }
.pulse { fill: var(--accent-2); opacity: .25; transform-box: fill-box; transform-origin: center; animation: dotpulse 2.2s ease-out infinite; }
@keyframes dotpulse { 0% { transform: scale(.4); opacity: .45; } 100% { transform: scale(1.8); opacity: 0; } }
.hover-line { stroke: var(--muted); stroke-dasharray: 3 3; }
.hover-box { fill: var(--ink); opacity: .92; }
.hover-v { fill: var(--panel); font-size: 13px; font-weight: 700; }
.hover-t { fill: var(--panel); font-size: 11px; opacity: .8; }
.chart .hit { cursor: crosshair; }
.chart-empty { display: grid; place-items: center; min-height: 180px; color: var(--muted); border: 1px dashed var(--line); border-radius: 12px; text-align: center; padding: 16px; }
.chart-empty span { display: block; font-size: 12px; }
.bar { fill: var(--accent-2); opacity: .55; transition: opacity .15s; }
.bar:hover { opacity: 1; }
.bar.now { fill: var(--sun); opacity: 1; }
.legend .key-line, .legend .key-dash { display: inline-block; width: 18px; height: 0; border-top: 3px solid var(--accent-2); vertical-align: middle; margin: 0 4px 0 10px; }
.legend .key-dash { border-top: 2px dashed var(--sun); }

.ring-wrap { display: grid; grid-template-columns: minmax(140px, 190px) 1fr; gap: 16px; align-items: center; }
.ring-track { fill: none; stroke: var(--panel-2); stroke-width: 22; }
.ring-seg { fill: none; stroke-width: 22; stroke: var(--c); }
.ring-num { fill: var(--ink); font-size: 34px; font-weight: 700; }
.ring-sub { fill: var(--muted); font-size: 13px; }
.ring-legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; font-size: 14px; }
.ring-legend li { display: flex; align-items: center; gap: 4px; }
.ring-legend b { margin-left: auto; font-variant-numeric: tabular-nums; }

.gauges { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px 8px; }
.gauge { max-width: 150px; justify-self: center; }
.g-track { fill: none; stroke: var(--panel-2); stroke-width: 11; stroke-linecap: round; }
.g-fill { fill: none; stroke: var(--good); stroke-width: 11; stroke-linecap: round; }
.g-fill.warn { stroke: var(--warn); }
.g-fill.bad { stroke: var(--bad); }
.g-num { fill: var(--ink); font-size: 22px; font-weight: 700; }
.g-lab { fill: var(--muted); font-size: 11px; font-weight: 600; }

.leaders, .aplist { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; counter-reset: lead; }
.leaders li { display: grid; grid-template-columns: 22px 54px 1fr auto; align-items: center; gap: 8px; font-size: 14px; }
.leaders li::before { counter-increment: lead; content: counter(lead); color: var(--muted); font-size: 12px; font-weight: 700; }
.leaders a { font-weight: 700; text-decoration: none; }
.leaders b, .aplist b { font-variant-numeric: tabular-nums; font-size: 13px; }
.aplist li { display: grid; grid-template-columns: 1fr 90px 40px; grid-template-rows: auto auto; column-gap: 8px; align-items: center; font-size: 14px; }
.aplist .apn { font-weight: 700; display: grid; grid-row: span 2; }
.aplist .apn small { font-weight: 400; color: var(--muted); font-size: 12px; }
.aplist .sub { grid-column: 2 / 4; font-size: 12px; }
.lbar { width: 100%; height: 10px; }
.lbar-track { fill: var(--panel-2); }
.lbar-fill { fill: var(--accent-2); }
.lbar-fill.hot { fill: var(--sun); }

/* general */
.tile small { font-size: 14px; color: var(--muted); font-weight: 600; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.card-head h2 { margin: 0; }
.card, .table-wrap { border-radius: 16px; }
.top-gap { margin-top: 16px; }
.nowrap { white-space: nowrap; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
label.check { display: flex; flex-direction: row; align-items: center; gap: 6px; }
.big { font-size: 18px; font-weight: 700; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.actions form { margin: 0; }
.btn { border-radius: 10px; }
.btn.warn { background: var(--warn); color: #fff; }
.btn.danger { background: var(--bad); color: #fff; }

/* status colours */
.s-online { --c: var(--s-online); } .s-idle { --c: var(--s-idle); } .s-empty { --c: var(--s-empty); }
.s-paused { --c: var(--s-paused); } .s-sched { --c: var(--s-sched); } .s-alert { --c: var(--s-alert); }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; vertical-align: middle; margin-right: 5px; background: var(--c, var(--line)); }
.legend { font-size: 13px; color: var(--muted); display: flex; gap: 4px 12px; flex-wrap: wrap; align-items: center; }

.grid-sites { display: grid; grid-template-columns: repeat(auto-fill, minmax(46px, 1fr)); gap: 4px; }
.cell { display: block; text-align: center; padding: 6px 2px; font-size: 11.5px; font-weight: 700; border-radius: 7px; text-decoration: none; color: #fff; background: var(--c); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transition: transform .12s, box-shadow .12s; }
.cell.s-empty, .cell.s-idle { color: var(--ink); }
.cell:hover { transform: translateY(-2px) scale(1.06); box-shadow: 0 4px 12px rgba(0,0,0,.18); position: relative; z-index: 1; }
.cell.s-alert { animation: alertglow 2.4s ease-in-out infinite; }
@keyframes alertglow { 50% { box-shadow: 0 0 0 3px color-mix(in srgb, var(--s-alert) 35%, transparent); } }

.attn { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.attn li { display: grid; gap: 2px; padding: 9px 12px; border-left: 4px solid var(--warn); background: color-mix(in srgb, var(--warn) 9%, var(--panel)); border-radius: 8px; font-size: 14px; }
.attn li.a-bad { border-color: var(--bad); background: color-mix(in srgb, var(--bad) 9%, var(--panel)); }

.feed { list-style: none; margin: 0; padding: 0; }
.feed li { display: grid; grid-template-columns: 66px 1fr auto; gap: 10px; align-items: start; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.feed li:last-child { border-bottom: 0; }
.feed .t { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; padding-top: 2px; }

.chip { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--muted); white-space: nowrap; }
.chip.r-done, .chip.ap-online { background: color-mix(in srgb, var(--good) 15%, var(--panel)); color: var(--good); }
.chip.r-fixed { background: color-mix(in srgb, var(--info) 15%, var(--panel)); color: var(--info); }
.chip.r-failed, .chip.r-missed, .chip.ap-offline { background: color-mix(in srgb, var(--bad) 15%, var(--panel)); color: var(--bad); }
.chip.r-warn, .chip.ap-busy { background: color-mix(in srgb, var(--warn) 18%, var(--panel)); color: var(--warn); }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.fchip { padding: 6px 14px; border-radius: 999px; border: 1px solid var(--accent); color: var(--accent); text-decoration: none; font-size: 14px; font-weight: 600; }
.fchip span { opacity: .75; }
.fchip.on { background: var(--accent); color: var(--panel); }
.fchip.bad { border-color: var(--bad); color: var(--bad); margin-left: auto; }
.fchip.bad.on { background: var(--bad); color: #fff; }

/* map */
.map-wrap { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; min-height: 420px; touch-action: none; box-shadow: var(--shadow); }
.map-img { display: block; width: 100%; height: auto; user-select: none; -webkit-user-drag: none; }
.map-blank { min-height: 560px; display: flex; align-items: flex-end; color: var(--muted); padding: 10px 14px; font-size: 13px;
  background: radial-gradient(circle at 30% 40%, color-mix(in srgb, var(--accent) 10%, transparent), transparent 55%),
    linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: auto, 40px 40px, 40px 40px; }
.map-wrap .pin, .map-wrap .appin { position: absolute; transform: translate(-50%, -50%); }
.pin { display: inline-block; min-width: 30px; padding: 3px 6px; border-radius: 999px; font-size: 11px; font-weight: 700; text-align: center; text-decoration: none; color: #fff; background: var(--c, var(--s-empty)); border: 2px solid var(--panel); box-shadow: 0 1px 4px rgba(0,0,0,.3); white-space: nowrap; transition: transform .12s; }
.map-wrap .pin:hover { transform: translate(-50%, -50%) scale(1.25); z-index: 5; }
.pin.s-empty, .pin.s-idle { color: var(--ink); }
.pin.s-alert { animation: alertglow 2.4s ease-in-out infinite; }
.appin, .ap-key { display: inline-block; padding: 1px 5px; border-radius: 5px; font-size: 10.5px; font-weight: 700; color: #fff; background: #3b4a5c; border: 2px solid var(--panel); box-shadow: 0 1px 4px rgba(0,0,0,.3); white-space: nowrap; opacity: .94; }
.ap-key { width: 14px; height: 14px; padding: 0; vertical-align: middle; margin-right: 4px; }
.appin.ap-online { background: var(--good); } .appin.ap-busy { background: var(--warn); } .appin.ap-offline { background: var(--bad); }
.editing .pin, .editing .appin, .tray .pin, .tray .appin { cursor: grab; }
.tray { display: flex; flex-wrap: wrap; gap: 6px; min-height: 48px; padding: 8px; border: 1px dashed var(--line); border-radius: 10px; }
.dragging { opacity: .85; z-index: 10; cursor: grabbing; }

.phone-find { display: none; gap: 8px; margin-bottom: 14px; }
.phone-find input { flex: 1; font-size: 17px; padding: 12px 14px; border-radius: 12px; background: var(--panel); }

@media (max-width: 1100px) {
  .dgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .span2, .span3 { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .ktiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dgrid { grid-template-columns: 1fr; }
  .hero { padding: 22px 20px; }
  .hero-big { justify-items: start; text-align: left; }
  .ring-wrap { grid-template-columns: 1fr; justify-items: center; }
  .ring-wrap .chart { max-width: 200px; }
  .ring-legend { width: 100%; }
  .pnav { margin-left: 0; }
  .every { display: none; }
  .chart .axis { font-size: 22px; }
  .chart.bars .axis { font-size: 20px; }
  .phone-find { display: flex; }
  .feed li { grid-template-columns: 58px 1fr; }
  .feed li > :last-child { grid-column: 2; justify-self: start; }
  .fchip.bad { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) { .live-dot, .pulse, .cell.s-alert, .pin.s-alert { animation: none; } }

/* sites table */
.sites-head { display: grid; gap: 12px; margin-bottom: 14px; }
.find { display: flex; gap: 8px; max-width: 560px; }
.find input { flex: 1; font-size: 17px; padding: 12px 14px; border-radius: 12px; background: var(--panel); }
.fchip.st { border-color: var(--line); color: var(--ink); display: inline-flex; align-items: center; gap: 2px; }
.fchip.st.on { background: var(--c); border-color: var(--c); color: #fff; }
.fchip.st.on .dot { background: #fff; }
.sites-table table { font-size: 14.5px; }
.sites-table thead th { position: sticky; top: 0; background: var(--panel); z-index: 1; }
.sites-table tbody tr { transition: background .1s; }
.sites-table tbody tr:hover { background: var(--panel-2); }
.sites-table td { vertical-align: middle; padding: 9px 12px; }
.sites-table tr td:first-child { border-left: 4px solid var(--c, transparent); }
.site-cell { display: grid; }
.site-cell a { text-decoration: none; }
.site-no { font-family: "Bricolage Grotesque", sans-serif; font-weight: 700; font-size: 19px; color: var(--ink); }
.site-cell .sub { font-size: 12px; }
.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.status-pill { display: inline-flex; align-items: center; gap: 2px; padding: 3px 10px 3px 8px; border-radius: 999px; font-size: 13px; font-weight: 600; background: color-mix(in srgb, var(--c) 14%, var(--panel)); }
.data-cell { display: inline-grid; grid-template-columns: 70px auto; gap: 8px; align-items: center; }
.tag.hot { background: color-mix(in srgb, var(--sun) 20%, var(--panel)); color: var(--sun); }
a.sort { color: inherit; text-decoration: none; }
a.sort.on, a.sort:hover { color: var(--ink); }
a.sort.on::after { content: " ↓"; }
details.card summary { cursor: pointer; }


/* hub chrome in the same look */
.top { background: var(--panel); border-bottom: 1px solid var(--line); }
.mark { font-family: "Bricolage Grotesque", sans-serif; font-size: 17px; }
.mark-dot { background: var(--sun); }
.top nav a.on { background: var(--accent-soft); color: var(--ink); font-weight: 600; }

/* fleet overview */
/* fleet overview: a status banner, not a picture */
.hero.fleet { align-items: center; padding: 26px 30px 26px 34px; border: 1px solid var(--hero-line, rgba(255,255,255,.08));
  background:
    radial-gradient(rgba(255,255,255,.07) 1px, transparent 1.2px) 0 0 / 18px 18px,
    linear-gradient(115deg, var(--hero-1) 0%, var(--hero-1) 45%, var(--hero-2) 100%); }
.hero.fleet::after { display: none; }
.hero.fleet::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--good); }
.hero.fleet.has-needs::before { background: var(--warn); }
.hero.fleet .live-dot { background: var(--good); }
.hero.fleet.has-needs .live-dot { background: var(--warn); animation: none; }
.hero.fleet .hero-title { font-size: clamp(28px, 3.6vw, 42px); }
.hero-stats { position: relative; z-index: 1; display: flex; flex-wrap: wrap; }
.hero-stats .hs { display: grid; justify-items: start; gap: 4px; padding: 4px 26px; border-left: 1px solid rgba(255,255,255,.14); }
.hero-stats .hs:first-child { border-left: 0; }
.hero-stats .big-n { font-size: clamp(30px, 3.4vw, 46px); letter-spacing: -1px; }
.hero-stats .big-n small { font-size: .5em; opacity: .7; }
.hero-stats .hs-money .big-n { color: var(--hero-money, #f3c98b); }
.hero-stats .big-l { font-size: 13px; opacity: .75; }
@media (max-width: 900px) { .hero-stats .hs { padding: 4px 18px 4px 0; border-left: 0; } }
.ktiles.six { grid-template-columns: repeat(6, minmax(0, 1fr)); }
a.ktile { text-decoration: none; color: inherit; transition: transform .12s, border-color .12s; }
a.ktile:hover { transform: translateY(-2px); border-color: var(--accent-2); }
.ks { font-size: 12px; color: var(--muted); }
.pcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.pcard { position: relative; display: grid; gap: 6px; padding: 16px 18px 12px; border-radius: 16px; border: 1px solid var(--line); background: var(--panel-2);
  text-decoration: none; color: var(--ink); transition: transform .14s, box-shadow .14s, border-color .14s; overflow: hidden; }
.pcard::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--accent-2); }
.pcard.t-marina::before { background: #3f86b8; }
.pcard.t-residential::before { background: #8a9bb0; }
.pcard:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(0,0,0,.12); border-color: var(--accent-2); }
.pcard h3 { margin: 0; font-family: "Bricolage Grotesque", sans-serif; font-size: 21px; }
.pcard-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.pcard .pbrand { color: var(--muted); }
.pcard-body { display: grid; grid-template-columns: 96px 1fr; gap: 14px; align-items: center; }
.pcard-ring .ring-num { font-size: 40px; }
.pcard-ring .ring-sub { font-size: 20px; }
.pcard-facts { display: grid; grid-template-columns: auto 1fr; gap: 3px 10px; margin: 0; font-size: 13px; }
.pcard-facts dt { color: var(--muted); }
.pcard-facts dd { margin: 0; font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
.pcard-spark .spark-mini { height: 40px; }
.pcard-alert { position: absolute; right: 14px; bottom: 12px; background: var(--bad); color: #fff; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; }
.money { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; margin: 0; }
.money dt { color: var(--muted); }
.money dd { margin: 0; font-family: "Bricolage Grotesque", sans-serif; font-size: 22px; font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
.shortcuts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sc { display: grid; gap: 2px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel-2); text-decoration: none; color: var(--ink); }
.sc:hover { border-color: var(--accent-2); }
.sc span { font-size: 12px; color: var(--muted); }
.attn li a { color: var(--ink); text-decoration: none; }
.feed.wide li { grid-template-columns: 76px 1fr auto; }
@media (max-width: 1100px) { .ktiles.six { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 720px) {
  .ktiles.six { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-stats { text-align: left; } .hero-stats > div { justify-items: start; }
}

/* dashboard actions */
.toast { margin: 0 0 14px; padding: 12px 16px; border-radius: 12px; font-weight: 600; animation: toastin .35s ease-out; }
.toast.good { background: color-mix(in srgb, var(--good) 15%, var(--panel)); color: var(--good); border: 1px solid color-mix(in srgb, var(--good) 40%, transparent); }
.toast.bad { background: color-mix(in srgb, var(--bad) 13%, var(--panel)); color: var(--bad); border: 1px solid color-mix(in srgb, var(--bad) 40%, transparent); }
@keyframes toastin { from { transform: translateY(-8px); opacity: 0; } to { transform: none; opacity: 1; } }
.today { margin-bottom: 16px; display: grid; gap: 16px; }
.quickbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; padding: 14px 16px; border-radius: 18px; background: var(--panel); border: 1px solid var(--line); box-shadow: var(--shadow); }
.quickbar label { flex: 0 0 auto; }
.quickbar .qsite input { width: 130px; font-family: "Bricolage Grotesque", sans-serif; font-size: 22px; font-weight: 700; padding: 8px 12px; }
.quickbar .qact { flex: 1 1 220px; }
.quickbar select { width: 100%; font-size: 16px; padding: 12px; }
.big-btn { font-size: 17px; padding: 12px 28px; }
.today-grid { display: grid; grid-template-columns: 1.15fr 1fr 1fr; gap: 16px; }
.walkin { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.walkin .wide { grid-column: 1 / -1; }
.walkin input, .walkin select { width: 100%; }
.walkin .btn { grid-column: 1 / -1; justify-self: stretch; padding: 12px; font-size: 16px; }
.moves { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; max-height: 330px; overflow: auto; }
.moves li { display: grid; grid-template-columns: 54px 1fr auto; gap: 10px; align-items: center; padding: 7px 0; border-bottom: 1px solid var(--line); }
.moves li:last-child { border-bottom: 0; }
.mv-site { font-family: "Bricolage Grotesque", sans-serif; font-weight: 700; font-size: 18px; }
.mv-who { display: grid; font-size: 14px; }
.mv-who small { color: var(--muted); font-size: 12px; }
.moves form { margin: 0; }
.mini { font: inherit; font-size: 12px; font-weight: 700; padding: 6px 10px; border-radius: 8px; border: 1px solid var(--accent-2); background: transparent; color: var(--accent); cursor: pointer; }
.mini:hover { background: var(--accent-2); color: #fff; }
@media (max-width: 1100px) { .today-grid { grid-template-columns: 1fr 1fr; } .today-grid > :first-child { grid-column: 1 / -1; } }
@media (max-width: 720px) { .today-grid { grid-template-columns: 1fr; } .quickbar .qsite input { width: 100px; } }

/* live */
.bump { display: inline-block; transition: color .3s; }
.bump.up { color: var(--good); }
.bump.down { color: var(--sun); }
.cell.flash { animation: cellflash 1.4s ease-out; }
@keyframes cellflash { 0% { transform: scale(1.35); box-shadow: 0 0 0 6px color-mix(in srgb, var(--c) 45%, transparent); } 100% { transform: none; box-shadow: none; } }
.feed li.new { animation: slidein .5s ease-out; background: color-mix(in srgb, var(--accent-2) 8%, transparent); }
@keyframes slidein { from { transform: translateX(-12px); opacity: 0; } to { transform: none; opacity: 1; } }
.toasts { position: fixed; right: 18px; bottom: 18px; display: grid; gap: 8px; z-index: 50; max-width: min(420px, calc(100vw - 36px)); }
.ltoast { padding: 12px 16px; border-radius: 12px; background: var(--ink); color: var(--panel); font-weight: 600; box-shadow: 0 10px 30px rgba(0,0,0,.25); animation: toastin .35s ease-out; transition: opacity .4s, transform .4s; }
.ltoast.bad { background: var(--bad); color: #fff; }
.ltoast.out { opacity: 0; transform: translateY(8px); }
.tv-link { color: inherit; opacity: .8; }

/* wall screen */
body.tv .top, body.tv .pbar, body.tv .today, body.tv .phone-find, body.tv .foot, body.tv .toast { display: none; }
body.tv main { max-width: none; padding: 18px 22px; }
body.tv .hero { padding: 22px 28px; }
body.tv .grid-sites { grid-template-columns: repeat(auto-fill, minmax(40px, 1fr)); }
body.tv .dgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
body.tv .span2 { grid-column: span 2; }

/* network */
.netbar { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; padding: 18px 22px; margin-bottom: 16px; border-radius: 18px; color: var(--hero-ink);
  background: url("topo.svg") right center / cover no-repeat, linear-gradient(120deg, var(--hero-1), var(--hero-2)); }
.nb-main { display: grid; margin-right: auto; }
.nb-l { font-size: 12px; text-transform: uppercase; letter-spacing: 1.3px; opacity: .75; font-weight: 700; }
.nb-isp { font-family: "Bricolage Grotesque", sans-serif; font-size: 22px; font-weight: 700; }
.nb-stat { display: grid; text-align: right; }
.nb-n { font-family: "Bricolage Grotesque", sans-serif; font-size: 30px; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.nb-u { font-size: 12px; opacity: .78; }
.table-wrap.flat { border: 0; box-shadow: none; background: transparent; }
.data-cell.wide { grid-template-columns: minmax(120px, 260px) auto; }
.warn-text { color: var(--warn); font-weight: 700; }
.ap-row.ap-offline td { background: color-mix(in srgb, var(--bad) 6%, transparent); }
.aptable td { vertical-align: middle; }
@media (max-width: 720px) { .nb-stat { text-align: left; } .nb-main { width: 100%; } }

/* insights */
.kn.kpi { font-size: 26px; }
.delta { font-weight: 700; }
.delta.up { color: var(--good); }
.delta.down { color: var(--bad); }
.hm { fill: var(--accent-2); }
.takeaways { margin: 0; padding-left: 18px; display: grid; gap: 10px; font-size: 14.5px; line-height: 1.5; }
.takeaways li::marker { color: var(--sun); }
.wow { width: 100%; font-size: 14.5px; }
.wow td, .wow th { padding: 8px 6px; }
.site-no.sm { font-size: 16px; }

@media (max-width: 720px) {
  .live { display: flex; flex-wrap: wrap; gap: 6px; }
  .tv-link { display: none; }
  .top nav { flex-wrap: nowrap; overflow-x: auto; width: 100%; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .top nav a { white-space: nowrap; }
  .who { display: none; }
  .pnav { flex-wrap: nowrap; overflow-x: auto; width: 100%; scrollbar-width: none; }
  .pnav a { white-space: nowrap; }
}

/* branding */
.plogo { height: 28px; width: auto; max-width: 120px; border-radius: 6px; background: #fff; padding: 2px 4px; align-self: center; }
.hero-logo { height: 0.9em; width: auto; max-width: 220px; vertical-align: -0.08em; margin-right: 14px; border-radius: 10px; background: #fff; padding: 4px 8px; }
.logo-now { display: flex; align-items: center; gap: 14px; }
.logo-now img { max-height: 60px; max-width: 180px; border: 1px solid var(--line); border-radius: 8px; padding: 4px; background: #fff; }
input[type="color"] { padding: 2px; height: 42px; width: 100%; }

/* sign in */
body.signin main { max-width: 460px; padding-top: 8vh; }
.signin-card { background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 28px 28px 22px; box-shadow: var(--shadow); display: grid; gap: 12px; }
.signin-card h1 { margin: 0; font-family: "Bricolage Grotesque", sans-serif; font-size: 30px; }
.signin-card p { margin: 0; }
.mark-dot.big { width: 22px; height: 22px; border-radius: 6px; display: block; }
.qr-wrap { display: grid; place-items: center; padding: 10px; background: #fff; border-radius: 14px; justify-self: center; }
.qr-wrap svg { width: 210px; height: 210px; display: block; }
.code-in { font-family: "Bricolage Grotesque", sans-serif; font-size: 28px; letter-spacing: 6px; text-align: center; padding: 10px; }
.choose { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.choose a { display: flex; justify-content: space-between; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; color: var(--ink); background: var(--panel-2); }
.signout { margin: 0; }
.signout .btn { padding: 6px 12px; font-size: 13px; }
.danger-mini { border-color: var(--bad); color: var(--bad); }
.danger-mini:hover { background: var(--bad); color: #fff; }

.ra-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; margin-bottom: 12px; }
.ra-links code { font-size: 11.5px; word-break: break-all; }
.ra-quick { margin: 0 0 10px; display: flex; gap: 6px; }
.ra-quick .mini { text-decoration: none; }

/* settings */
html { scroll-behavior: smooth; }
.settings { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 24px; align-items: start; }
.snav { position: sticky; top: 16px; display: grid; gap: 2px; }
.snav a { padding: 8px 12px; border-radius: 9px; color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 500; border-left: 3px solid transparent; }
.snav a:hover { color: var(--ink); background: var(--panel); }
.snav a.on { color: var(--ink); background: var(--panel); border-left-color: var(--accent-2); font-weight: 600; }
.scontent { display: grid; gap: 18px; }
.sgroup { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); scroll-margin-top: 16px; overflow: hidden; }
.sgroup > header { padding: 20px 24px 6px; }
.sgroup > header h2 { margin: 0 0 6px; font-size: 20px; display: flex; align-items: center; gap: 10px; }
.sgroup > header p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.55; max-width: 760px; }
.sgroup > form > footer, .sgroup form footer { display: flex; justify-content: flex-end; align-items: center; gap: 10px; padding: 14px 24px; background: var(--panel-2); border-top: 1px solid var(--line); }
.sgroup .note, .sgroup > .srow, .sgroup > form.inline-row, .sgroup > .port-list, .sgroup > .ap-chips { margin-left: 24px; margin-right: 24px; }
.sgroup .note { margin-top: 10px; margin-bottom: 14px; padding: 10px 14px; border-radius: 10px; background: var(--panel-2); color: var(--muted); font-size: 14px; }
.srow { display: grid; grid-template-columns: minmax(200px, 300px) minmax(0, 1fr); gap: 8px 28px; padding: 16px 24px; border-top: 1px solid var(--line); align-items: start; }
.sgroup > header + form > .srow:first-of-type, .sgroup > header + .srow { border-top: 0; }
.sgroup > .srow { margin: 0; }
.slabel { display: grid; gap: 4px; padding-top: 8px; }
.slabel span { font-weight: 600; color: var(--ink); font-size: 15px; }
.slabel small { color: var(--muted); font-size: 13px; line-height: 1.45; }
.sfield { min-width: 0; display: grid; gap: 8px; align-content: start; }
.sfield > input:not([type="checkbox"]):not([type="radio"]):not([type="file"]), .sfield > textarea, .sfield > select { width: 100%; max-width: 460px; font-size: 15px; padding: 10px 12px; }
.sfield select.short { max-width: 200px; }
.fieldtext { margin: 0; padding-top: 8px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.pair { display: flex; gap: 12px; flex-wrap: wrap; }
.unitfield { display: inline-grid; grid-template-columns: auto 90px auto; align-items: center; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); overflow: hidden; color: var(--muted); font-size: 13px; }
.unitfield span { padding: 0 10px; border-right: 1px solid var(--line); align-self: stretch; display: flex; align-items: center; background: var(--panel-2); }
.unitfield input { border: 0; border-radius: 0; background: transparent; font-size: 16px; font-weight: 600; text-align: right; padding: 10px 8px; min-width: 0; }
.unitfield em { font-style: normal; padding: 0 10px 0 2px; }
.unitfield.money { grid-template-columns: auto 110px; }
.unitfield.money em { padding: 0 2px 0 12px; font-size: 16px; color: var(--ink); font-weight: 600; }
.unitfield.money input { text-align: left; }
.unitfield:focus-within, .colorfield:focus-within { outline: 2px solid var(--accent-2); outline-offset: 1px; }
.stack { display: grid; gap: 4px; }
.stack span { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.stack input { width: 100%; min-width: 0; padding: 10px 12px; }
.stack.narrow { max-width: 110px; }
.choice { display: grid; gap: 8px; max-width: 520px; }
.opt { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; background: var(--bg); color: var(--ink); }
.opt:has(input:checked) { border-color: var(--accent-2); background: color-mix(in srgb, var(--accent-2) 8%, var(--panel)); }
.opt input { margin-top: 3px; accent-color: var(--accent-2); }
.opt span { display: grid; gap: 2px; }
.opt small { color: var(--muted); font-size: 13px; }
.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; color: var(--ink); font-size: 14.5px; padding-top: 6px; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch span { width: 42px; height: 24px; border-radius: 999px; background: var(--line); position: relative; transition: background .15s; flex: 0 0 auto; }
.switch span::after { content: ""; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.25); transition: transform .15s; }
.switch input:checked + span { background: var(--accent-2); }
.switch input:checked + span::after { transform: translateX(18px); }
.switch input:focus-visible + span { outline: 2px solid var(--accent-2); outline-offset: 2px; }
.colorfield { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); font-size: 14px; color: var(--ink); }
.colorfield input[type="color"] { width: 40px; height: 32px; border: 0; padding: 0; background: none; border-radius: 6px; }
.top-gap-sm { margin-top: 4px; }
.logo-field { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.logo-field img { max-height: 56px; max-width: 180px; border: 1px solid var(--line); border-radius: 8px; padding: 4px; background: #fff; }
.inline-row { display: flex; gap: 10px; align-items: end; flex-wrap: wrap; margin: 0; }
.sgroup > form.inline-row { padding: 6px 0 18px; }
.sfield .inline-row { margin-top: 2px; }
.saved { color: var(--good); font-weight: 700; font-size: 14px; margin-right: auto; animation: toastin .35s ease-out; }
.vlan-table { margin: 6px 24px 18px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.vh, .vr { display: grid; grid-template-columns: 90px minmax(160px, 1.4fr) 1.3fr 80px 80px; gap: 10px; align-items: center; padding: 9px 14px; font-size: 14px; }
.vh { background: var(--panel-2); color: var(--muted); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; }
.vr { border-top: 1px solid var(--line); }
.vr .vid { font-family: "Bricolage Grotesque", sans-serif; font-weight: 700; font-size: 16px; }
.vr input { width: 100%; padding: 6px 10px; }
.vr .mono { font-size: 13px; color: var(--muted); }
.vr.role-devices, .vr.role-paused { background: color-mix(in srgb, var(--warn) 5%, transparent); }
.vr.role-sites { background: color-mix(in srgb, var(--accent-2) 6%, transparent); }
.yes { color: var(--good); font-weight: 700; }
.no { color: var(--muted); }
.port-list { display: grid; gap: 6px; margin-bottom: 18px; max-height: 420px; overflow: auto; }
.port-row { display: grid; grid-template-columns: minmax(140px, 1fr) 90px minmax(160px, 1.4fr) auto; gap: 10px; align-items: center; padding: 6px 10px; border: 1px solid var(--line); border-radius: 10px; margin: 0; }
.port-row select { padding: 6px 10px; }
.pname-sm { font-size: 14px; }
.ap-chips { display: flex; flex-wrap: wrap; gap: 6px; padding-bottom: 18px; }
.admin-only { border-style: dashed; }
@media (max-width: 900px) {
  .settings { grid-template-columns: 1fr; }
  .snav { position: static; display: flex; overflow-x: auto; gap: 4px; scrollbar-width: none; }
  .snav a { white-space: nowrap; border-left: 0; border-bottom: 3px solid transparent; }
  .snav a.on { border-bottom-color: var(--accent-2); }
}
@media (max-width: 720px) {
  .srow { grid-template-columns: 1fr; gap: 6px; padding: 14px 18px; }
  .slabel { padding-top: 0; }
  .sgroup > header { padding: 18px 18px 4px; }
  .sgroup form footer { padding: 12px 18px; }
  .vlan-table { margin: 6px 12px 14px; overflow-x: auto; }
  .vh, .vr { grid-template-columns: 60px 160px 150px 64px 64px; min-width: 520px; }
  .port-row { grid-template-columns: 1fr auto; }
  .port-row select { grid-column: 1 / -1; }
}
.sfield > .unitfield, .sfield > .pair, .sfield > .switch, .sfield > .logo-field, .sfield > select.short, .sfield > .choice, .sfield > .inline-row { justify-self: start; }
.sfield > .choice { width: 100%; }
input[type="file"] { font: inherit; font-size: 14px; color: var(--muted); }
input[type="file"]::file-selector-button { font: inherit; font-weight: 600; font-size: 14px; margin-right: 10px; padding: 8px 14px; border: 0; border-radius: 8px; background: var(--accent-soft); color: var(--ink); cursor: pointer; }
input[type="file"]::file-selector-button:hover { background: color-mix(in srgb, var(--accent-2) 20%, var(--panel)); }
.btn[disabled] { opacity: .45; cursor: not-allowed; }

/* ---------------------------------------------------------------- Fix it */
.fixbadge { display: inline-block; min-width: 20px; padding: 0 6px; margin-left: 4px; border-radius: 999px; font-size: 11.5px; font-weight: 800; line-height: 18px; text-align: center; background: var(--warn); color: #fff; }
.fixbadge.down { background: var(--bad); }
.fx-top h1 { margin-bottom: 4px; }
.btn.small { padding: 5px 10px; font-size: 13px; }
.btn.big { padding: 12px 22px; font-size: 16px; }
.btn.ghost { background: transparent; color: var(--accent); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--accent) 40%, transparent); }
.seg { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 3px; border-radius: 10px; background: var(--accent-soft); }
.seg a { padding: 5px 12px; border-radius: 8px; font-size: 13px; font-weight: 600; color: var(--muted); text-decoration: none; }
.seg a.on { background: var(--panel); color: var(--ink); box-shadow: var(--shadow); }

.fx-status { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; padding: 20px 24px; margin: 6px 0 18px; border-radius: 18px;
  color: #fff; background: linear-gradient(120deg, var(--good), color-mix(in srgb, var(--good) 65%, #000)); box-shadow: var(--shadow); }
.fx-status.warn { background: linear-gradient(120deg, var(--warn), color-mix(in srgb, var(--warn) 62%, #000)); }
.fx-status.down { background: linear-gradient(120deg, var(--bad), color-mix(in srgb, var(--bad) 62%, #000)); }
.fx-status-main { display: grid; gap: 2px; }
.fx-big { font: 800 28px/1.15 "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif; letter-spacing: -.01em; }
.fx-small { opacity: .9; }
.gearstrip { display: flex; gap: 10px; flex-wrap: wrap; }
.gs { display: grid; min-width: 104px; padding: 8px 14px; border-radius: 12px; background: rgba(255,255,255,.14); }
.gs-n { font-size: 20px; font-weight: 800; font-variant-numeric: tabular-nums; }
.gs-l { font-size: 12px; opacity: .9; }
.gs.bad { background: rgba(0,0,0,.22); box-shadow: inset 0 0 0 2px rgba(255,255,255,.55); }

.issue { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 18px 22px 18px 26px; margin-bottom: 14px; box-shadow: var(--shadow); overflow: hidden; }
.issue::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--muted); }
.issue.sev-down::before { background: var(--bad); }
.issue.sev-warn::before { background: var(--warn); }
.issue.sev-info::before { background: var(--info, var(--accent)); }
.issue-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.issue-head h3 { margin: 0; font-size: 19px; flex: 1 1 280px; }
.issue-since { white-space: nowrap; }
.issue-seen { margin: 10px 0 4px; }
.issue-likely { margin: 0 0 4px; color: var(--muted); }
.issue-likely b { color: var(--ink); }
.issue-impact { margin: 0; font-weight: 700; color: var(--bad); }
.issue-note { margin: 6px 0 0; padding: 8px 12px; border-radius: 10px; background: var(--accent-soft); }
.issue-body { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 22px; margin-top: 14px; }
.issue-body h4 { margin: 0 0 8px; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.steps { margin: 0 0 14px; padding: 0; list-style: none; counter-reset: st; display: grid; gap: 6px; }
.steps li { counter-increment: st; }
.steps label { display: grid; grid-template-columns: 30px 22px 1fr; gap: 6px; align-items: start; padding: 8px 10px; border-radius: 10px; background: color-mix(in srgb, var(--accent-soft) 60%, var(--panel)); cursor: pointer; }
.steps label::before { content: counter(st); display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; font-size: 13px; font-weight: 800; background: var(--accent); color: var(--panel); }
.steps input { width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--accent); }
.steps input:checked + span { color: var(--muted); text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--muted) 60%, transparent); }
.issue-call { display: grid; gap: 8px; align-content: start; }
.helpask summary { cursor: pointer; font-weight: 600; color: var(--accent); font-size: 14px; }
.helpask form { margin-top: 8px; }

.fx-chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 7px; border-radius: 999px; font-size: 12px; font-weight: 800; letter-spacing: .02em;
  color: var(--kc, var(--accent)); background: color-mix(in srgb, var(--kc, var(--accent)) 14%, var(--panel)); white-space: nowrap; }
.fx-ico { width: 16px; height: 16px; flex: none; }
.k-box, .k-controller { --kc: #6b5bd2; }
.k-internet { --kc: #2f7fb5; }
.k-gateway, .k-switch { --kc: #8a5a30; }
.k-fiber { --kc: #c2410c; }
.k-cable { --kc: #b45309; }
.k-ap { --kc: var(--accent); }
.k-power { --kc: #ca8a04; }
.k-flapping { --kc: #db2777; }
.k-reset { --kc: var(--bad); }
.k-new, .k-setup { --kc: var(--info, #3f7fa6); }

.ccards { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.ccard { display: grid; gap: 2px; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); font-size: 14px; }
.ccard.unset { border-style: dashed; }
.ccard-role { font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.ccard-call { font-size: 17px; font-weight: 800; text-decoration: none; }
.ccard-call::before { content: "☎ "; }
.fx-tip { border-left: 6px solid var(--warn); }
.labpanel { border: 2px dashed var(--line); }
.geartable td { vertical-align: top; }
.row-act { text-align: right; }

.fx-devhead { display: flex; gap: 16px; align-items: center; }
.fx-devhead h1 { margin: 0; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.fx-devhead .lead { margin: 4px 0 0; }
.fx-devico { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: var(--accent-soft); color: var(--accent); flex: none; }
.fx-devico .fx-ico { width: 32px; height: 32px; }
.actions.vert { flex-direction: column; align-items: stretch; }
.actions.vert .btn { width: 100%; text-align: center; }
.kidlist { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.replace { margin-top: 16px; }
.rsteps { margin: 10px 0 0; padding: 0; list-style: none; counter-reset: rs; display: grid; gap: 14px; }
.rsteps > li { counter-increment: rs; position: relative; padding: 14px 18px 14px 64px; border-radius: 14px; background: color-mix(in srgb, var(--accent-soft) 55%, var(--panel)); }
.rsteps > li::before { content: counter(rs); position: absolute; left: 18px; top: 14px; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  font-weight: 800; background: var(--accent); color: var(--panel); }
.rsteps h3 { margin: 4px 0 6px; }
.rsteps p { margin: 0 0 6px; }
.cands { display: grid; gap: 10px; margin-top: 10px; }
.cand { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; padding: 12px 14px; border-radius: 12px; background: var(--panel); border: 2px solid var(--line); }
.cand.fit-yes { border-color: var(--good); }
.cand.fit-maybe { border-color: var(--warn); }
.cand.fit-reset, .cand.fit-no { opacity: .85; border-style: dashed; }
.cand.fit-reset { border-color: var(--bad); }
.last4 input { width: 96px; font-family: ui-monospace, Menlo, monospace; text-transform: uppercase; letter-spacing: .1em; }
@media (max-width: 900px) {
  .issue-body { grid-template-columns: 1fr; }
  .fx-status { padding: 18px; }
  .fx-big { font-size: 23px; }
}
.rebootask summary { list-style: none; text-align: center; }
.rebootask summary::-webkit-details-marker { display: none; }
.rebootask[open] summary { margin-bottom: 8px; }
.rebootask form { padding: 12px; border-radius: 12px; background: color-mix(in srgb, var(--warn) 10%, var(--panel)); }
body.ops .fx-status, :root[data-theme="dark"] .fx-status { background: linear-gradient(120deg, color-mix(in srgb, var(--good) 55%, #000), color-mix(in srgb, var(--good) 30%, #000)); }
body.ops .fx-status.warn { background: linear-gradient(120deg, color-mix(in srgb, var(--warn) 50%, #000), color-mix(in srgb, var(--warn) 28%, #000)); }
body.ops .fx-status.down { background: linear-gradient(120deg, color-mix(in srgb, var(--bad) 55%, #000), color-mix(in srgb, var(--bad) 30%, #000)); }
@media (prefers-color-scheme: dark) {
  body.camp .fx-status { background: linear-gradient(120deg, color-mix(in srgb, var(--good) 55%, #000), color-mix(in srgb, var(--good) 30%, #000)); }
  body.camp .fx-status.warn { background: linear-gradient(120deg, color-mix(in srgb, var(--warn) 50%, #000), color-mix(in srgb, var(--warn) 28%, #000)); }
  body.camp .fx-status.down { background: linear-gradient(120deg, color-mix(in srgb, var(--bad) 55%, #000), color-mix(in srgb, var(--bad) 30%, #000)); }
}
.fixbanner { display: block; margin: 0 0 14px; padding: 12px 16px; border-radius: 12px; text-decoration: none; color: var(--ink);
  background: color-mix(in srgb, var(--warn) 14%, var(--panel)); border: 1px solid color-mix(in srgb, var(--warn) 45%, var(--line)); }
.fixbanner.down { background: color-mix(in srgb, var(--bad) 12%, var(--panel)); border-color: color-mix(in srgb, var(--bad) 45%, var(--line)); }
.fixbanner b { color: var(--bad); }
.gfig { margin: 0; display: grid; justify-items: center; gap: 2px; text-align: center; min-width: 0; }
.gfig .gauge { width: 100%; max-width: 140px; }
.gfig figcaption { display: grid; gap: 3px; justify-items: center; font-size: 13.5px; line-height: 1.3; }
.gfig figcaption b { font-weight: 700; color: var(--ink); }
.g-note { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 650; color: var(--muted); }
.g-note i { width: 8px; height: 8px; border-radius: 50%; background: var(--good); flex: none; }
.g-note.warn i { background: var(--warn); }
.g-note.bad i { background: var(--bad); }
.g-num { font-size: 26px !important; }
.gauges.three { grid-template-columns: repeat(3, 1fr); }
.nowpanel .story { margin-top: 2px; }
.gearsplit { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: start; }
@media (max-width: 900px) { .gearsplit { grid-template-columns: 1fr; } .gauges.three { grid-template-columns: repeat(3, 1fr); } }
