/* Zoxobit's look, as on zoxohome.com and in the app: the icon's night-sky
   purple #291c57, the house's cream #f4f0e4 and the smile's orange
   #f2a341, with the site's soft glows, rounded headings and big round
   cards. Light and dark follow the system. */
:root {
  --purple: #291c57; --cream: #f4f0e4; --orange: #f2a341;
  --bg: #faf8f2; --fg: #1d1640; --muted: #5f5a78; --card: #fff; --line: #e8e3d6;
  --accent: #4b3797; --accent-fg: #fff; --ok: #1f7a4a; --ok-bg: #e1f3e8;
  --warn: #a35a0a; --warn-bg: #fdecd2; --bad: #b0302a; --bad-bg: #fbe4e1; --off-bg: #f1ece0;
  --chip: #efe8ff; --chip-ink: #3b2a85;
  --c-timers: #5b43b8; --c-alerts: #f2a341; --c-memory: #b0569a; --c-lines: #a99fc8; --c-bad: #d2453a;
  --glow-peach: #fbd8a4; --glow-lav: #d3c5f6;
  --shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 20px 50px -34px rgba(41, 28, 87, .5);
  --round: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #17102f; --fg: #f4f0e4; --muted: #b4aecb; --card: #221849; --line: #33295e;
    --accent: #c9b8ff; --accent-fg: #17102f; --ok: #7fd69a; --ok-bg: #1d3a2e;
    --warn: #f2a341; --warn-bg: #3d2a17; --bad: #ff9b90; --bad-bg: #4a1f2a; --off-bg: #2b2058;
    --chip: #33266b; --chip-ink: #e4dbff;
    --c-timers: #a48cff; --c-alerts: #f2a341; --c-memory: #e58fc8; --c-lines: #6f6596; --c-bad: #ff7a6e;
    --glow-peach: rgba(242, 163, 65, .12); --glow-lav: rgba(118, 90, 230, .3);
    --shadow: inset 0 1px 0 rgba(244, 240, 228, .06), 0 24px 60px -30px rgba(0, 0, 0, .6);
  }
}
* { box-sizing: border-box; }
html { background: radial-gradient(ellipse 55% 45% at 0% 0%, var(--glow-lav), transparent 70%),
  radial-gradient(ellipse 45% 40% at 100% 15%, var(--glow-peach), transparent 70%), var(--bg);
  background-attachment: fixed; min-height: 100%; }
body { margin: 0; color: var(--fg);
  font: 15px/1.5 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif; }
a { color: var(--accent); }
h1, h2, h3, legend, .brand, .tile-value { font-family: var(--round); }
/* The header is the icon's night sky, with a star or two. */
header { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.5rem; position: sticky; top: 0; z-index: 5;
  padding: .65rem 1.25rem; color: var(--cream);
  background: radial-gradient(1.5px 1.5px at 38% 30%, rgba(244, 240, 228, .7), transparent),
    radial-gradient(1px 1px at 64% 70%, rgba(244, 240, 228, .5), transparent),
    radial-gradient(2px 2px at 82% 25%, rgba(242, 163, 65, .9), transparent),
    radial-gradient(ellipse 40% 140% at 10% 0%, rgba(112, 82, 214, .45), transparent 70%),
    linear-gradient(100deg, var(--purple), #3d2b7d);
  box-shadow: 0 10px 30px -18px rgba(41, 28, 87, .8); }
.brand { display: flex; align-items: center; gap: .55rem; font-weight: 700; font-size: 1.05rem; color: var(--cream); text-decoration: none; }
.brand img { width: 30px; height: 30px; border-radius: 8px; box-shadow: 0 0 0 1px rgba(244, 240, 228, .2); }
nav { display: flex; flex-wrap: wrap; gap: .25rem; }
nav a { padding: .35rem .8rem; border-radius: 999px; text-decoration: none; color: rgba(244, 240, 228, .72); }
nav a:hover { color: var(--cream); background: rgba(244, 240, 228, .08); }
nav a[aria-current] { background: rgba(244, 240, 228, .14); color: var(--cream); font-weight: 600;
  box-shadow: inset 0 -2px 0 var(--orange); }
main { max-width: 1200px; margin: 0 auto; padding: 1.5rem 1.25rem; }
footer { text-align: center; color: var(--muted); font-size: .8rem; padding: 2rem 0; }
h1 { font-size: 1.6rem; margin: 0 0 .75rem; }
h2 { font-size: 1.1rem; margin: 1.2rem 0 .5rem; }
.card > h2:first-child { margin-top: 0; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 1.1rem; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 1.2rem 1.35rem; min-width: 0;
  box-shadow: var(--shadow); }
.card.wide, .cards > .wide { grid-column: 1 / -1; }
.cards > p.wide { margin: -.25rem 0 0; }
.card.narrow { max-width: 560px; margin: 2rem auto; }
/* Removing devices: a red section, and red buttons inside it. */
.card.danger { background: var(--bad-bg); border-color: var(--bad); }
.card.danger > h1, .card.danger > h2 { color: var(--bad); }
.card.danger .card { background: var(--card); border-color: var(--bad); }
.card.danger button, .card.danger .button { background: var(--bad); color: var(--accent-fg); }
/* A maker's small icon by its name on the Add a device page. */
.maker-icon { width: 22px; height: 22px; border-radius: 5px; vertical-align: -4px; object-fit: contain; }
td .maker-icon { width: 18px; height: 18px; vertical-align: -3px; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.badtext { color: var(--bad); display: block; }
code, pre { font: .85em/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; }
pre { background: var(--off-bg); padding: .6rem .8rem; border-radius: 8px; overflow-x: auto; }
dl { display: grid; grid-template-columns: max-content 1fr; gap: .25rem 1rem; margin: .5rem 0; }
dt { color: var(--muted); }
dd { margin: 0; overflow-wrap: anywhere; }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th, td { text-align: left; padding: .35rem .4rem; border-bottom: 1px solid var(--line); vertical-align: top; }
/* Long emails and names wrap inside a card instead of pushing the table
   (and its last column or buttons) out past the card's edge. */
td.wrap { overflow-wrap: anywhere; }
th { color: var(--muted); font-weight: 500; }
.scroll { overflow-x: auto; }
.runs { list-style: none; padding: 0; margin: .5rem 0; }
.runs li { display: grid; grid-template-columns: 1fr auto; gap: .35rem 1rem; align-items: center;
  padding: .55rem 0; border-bottom: 1px solid var(--line); }
.runs .run-head { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: .25rem .75rem; align-items: baseline; }
.runs progress { width: 100%; height: .6rem; accent-color: var(--orange); }
details { margin: .5rem 0; }
summary { cursor: pointer; font-weight: 600; }
.pill { display: inline-block; padding: .05rem .6rem; border-radius: 99px; font-size: .8rem; font-weight: 600;
  background: var(--chip); color: var(--chip-ink); white-space: nowrap; }
.pill.ok, .pill.st-pair-directly, .pill.st-bridged, .pill.st-in-home { background: var(--ok-bg); color: var(--ok); }
.pill.warn, .pill.st-can-bridge, .pill.st-needs-account { background: var(--warn-bg); color: var(--warn); }
.pill.off, .pill.st-unsupported, .pill.st-other-home { color: var(--muted); }
.pill.bad { background: var(--bad-bg); color: var(--bad); }
table.drivers td { vertical-align: top; }
/* An error wraps to two lines at most (the full text is its title), so
   a long one can't stretch the table past its card. */
table.drivers td div { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
table.drivers td.when button { display: block; margin-top: .3rem; }
.block { display: block; }
.nowrap { white-space: nowrap; }
.notice { padding: .7rem 1rem; border-radius: 14px; margin: 0 0 1rem; }
.notice.ok { background: var(--ok-bg); color: var(--ok); }
.notice.bad { background: var(--bad-bg); color: var(--bad); }
.banner { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; justify-content: space-between;
  background: var(--warn-bg); color: var(--warn); padding: .7rem 1rem; border-radius: 14px; margin-bottom: 1rem; }
.banner form { margin: 0; }
form { margin: 0; }
fieldset { border: 1px solid var(--line); border-radius: 16px; padding: .8rem 1rem; margin: 0 0 1rem; }
legend { font-weight: 600; padding: 0 .3rem; }
label { display: block; margin: 0 0 .8rem; }
label.check { display: flex; gap: .5rem; align-items: center; }
.form-field small { display: block; margin-top: .15rem; }
.form-item { border-top: 1px solid var(--line); padding-top: .6rem; margin-top: .6rem; }
.form-item:first-of-type { border-top: 0; margin-top: 0; }
.form-item.new { opacity: .85; }
label.inline-check { display: inline-flex; margin: 0 0 0 .8rem; font-weight: 400; }
.row { display: flex; flex-wrap: wrap; gap: 1rem; }
.row label { flex: 1 1 90px; }
input:not([type=checkbox]), textarea { display: block; width: 100%; margin-top: .25rem; padding: .5rem .6rem;
  font: inherit; color: inherit; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; }
input:focus-visible, textarea:focus-visible, button:focus-visible, a:focus-visible {
  outline: 2px solid var(--orange); outline-offset: 2px; }
input:disabled { opacity: .6; }
textarea { font: .85rem/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; resize: vertical; }
button, .button { display: inline-block; padding: .5rem 1.1rem; border: 0; border-radius: 999px; background: var(--accent);
  color: var(--accent-fg); font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; }
button:hover, .button:hover { filter: brightness(1.08); }
button.secondary, .button.secondary { background: var(--chip); color: var(--chip-ink); }
button.danger { background: var(--bad-bg); color: var(--bad); }
/* While a form's request runs (htmx's htmx-request class), its button
   spins, says what it's doing (data-busy) and its busy note shows. */
button:disabled { opacity: .75; cursor: progress; }
form.htmx-request button:not([type=button])::before { content: ""; display: inline-block; width: .85em; height: .85em;
  margin-right: .5em; vertical-align: -.1em; border: 2px solid currentColor; border-right-color: transparent;
  border-radius: 50%; animation: spin .8s linear infinite; }
form.htmx-request button[data-busy] .label { display: none; }
form.htmx-request button[data-busy]::after { content: attr(data-busy); }
.busy-note { display: none; }
form.htmx-request .busy-note { display: block; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { form.htmx-request button::before { animation: none; } }
.toolbar { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; margin-bottom: .5rem; }
.toolbar h1 { margin: 0 auto 0 0; }
.toolbar label { margin: 0; }
form.inline { display: flex; gap: .5rem; }
form.inline input { margin: 0; width: 14rem; }
.log { height: 70vh; overflow-y: auto; background: #120c2a; color: #ddd6f3; border-radius: 14px; padding: .6rem .85rem;
  font: .8rem/1.45 ui-monospace, SFMono-Regular, Menlo, monospace; }
.card .log { height: auto; max-height: 16rem; }
.toolbar ~ .log, #log { height: 70vh; max-height: none; }
.line { white-space: pre-wrap; overflow-wrap: anywhere; }
.line .seq { color: #6f6596; display: inline-block; min-width: 3.5em; margin-right: .5em; user-select: none; }
.line.sep { color: var(--orange); }
.line.bad { color: #ff9b90; }

/* The dashboard. */
/* Under the title, the icon's smile: orange dots along the edge. */
.dash-head { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; margin-bottom: 1.1rem;
  padding-bottom: .8rem; border-bottom: 3px dotted color-mix(in srgb, var(--orange) 70%, transparent); }
.dash-head h1 { margin: 0; }
.live { display: inline-flex; align-items: center; gap: .4rem; font-size: .8rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.live::before { content: ""; width: .55rem; height: .55rem; border-radius: 50%; background: var(--orange);
  box-shadow: 0 0 0 0 var(--orange); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--orange) 65%, transparent); }
  70% { box-shadow: 0 0 0 .45rem transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
@media (prefers-reduced-motion: reduce) { .live::before { animation: none; } }
.range { display: inline-flex; margin-left: auto; background: var(--chip); border-radius: 999px; padding: 3px; }
.range a { padding: .25rem .8rem; border-radius: 999px; text-decoration: none; color: var(--chip-ink); font-size: .85rem; font-weight: 600; }
.range a[aria-current] { background: var(--purple); color: var(--cream); }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(165px, 1fr)); gap: 1rem; margin-bottom: 1rem; }
.tile { display: flex; flex-direction: column; gap: .15rem; background: var(--card); border: 1px solid var(--line);
  border-radius: 20px; padding: .9rem 1.05rem; box-shadow: var(--shadow); min-width: 0; }
/* The first tile is the night sky, like the app's summary card. */
.tile:first-child { background: linear-gradient(135deg, var(--purple), #3d2b7d); border-color: transparent; color: var(--cream); }
.tile:first-child .tile-label, .tile:first-child .tile-sub { color: rgba(244, 240, 228, .72); }
.tile:first-child .tile-value.ok { color: var(--orange); }
.tile:first-child .tile-value.warn { color: #ffd59a; }
.tile:first-child a { color: var(--orange); }
.tile.gauge { flex-direction: row; align-items: center; gap: .8rem; }
.tile.gauge > div { display: flex; flex-direction: column; gap: .15rem; min-width: 0; }
.tile-label { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; }
.tile-value { font-size: 1.55rem; line-height: 1.15; font-weight: 700; font-variant-numeric: tabular-nums; }
.tile-value small { font-size: .9rem; color: var(--muted); font-weight: 500; }
.tile-value.ok { color: var(--ok); } .tile-value.warn { color: var(--warn); } .tile-value.off { color: var(--muted); }
.tile-sub { font-size: .8rem; color: var(--muted); overflow-wrap: anywhere; }
.ring { width: 54px; height: 54px; flex: none; }
.ring circle { fill: none; stroke-width: 4; }
.ring-bg { stroke: var(--chip); }
.ring-fg { stroke: var(--c-timers); stroke-linecap: round; }
.alerts .ring-fg { stroke: var(--c-alerts); }
.ring text { font-size: 8.5px; font-weight: 700; fill: var(--fg); }
.card-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .25rem 1rem; margin-bottom: .5rem; }
.card-head h2 { margin: 0; }
.legend { display: inline-flex; flex-wrap: wrap; align-items: center; gap: .3rem; font-size: .78rem; color: var(--muted); }
.key { display: inline-block; width: .7rem; height: .7rem; border-radius: 3px; margin-left: .45rem; }
.k-timers { background: var(--c-timers); } .k-alerts { background: var(--c-alerts); } .k-memory { background: var(--c-memory); }
.k-lines { background: var(--c-lines); } .k-bad { background: var(--c-bad); }
.k-finished { background: var(--c-timers); } .k-stopped { background: var(--c-alerts); }
.k-running, .run.running { background: var(--ok); }
.chart { margin: 0; }
.plot { position: relative; padding-top: 1.1rem; }
.plot .top { position: absolute; top: 0; left: 0; font-size: .72rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.chart svg { display: block; width: 100%; height: 150px; overflow: visible; }
.chart .grid { stroke: var(--line); stroke-width: 1; stroke-dasharray: 3 4; }
.chart .base { stroke: var(--line); stroke-width: 1; }
.chart .nodata { fill: var(--off-bg); opacity: .6; }
.area-timers { fill: color-mix(in srgb, var(--c-timers) 22%, transparent); }
.line-timers { fill: none; stroke: var(--c-timers); stroke-width: 2; stroke-linejoin: round; }
.line-alerts { fill: none; stroke: var(--c-alerts); stroke-width: 2; stroke-linejoin: round; }
.k-cpu { background: var(--c-timers); }
.area-cpu { fill: color-mix(in srgb, var(--c-timers) 14%, transparent); }
.line-cpu { fill: none; stroke: var(--c-timers); stroke-width: 2; stroke-linejoin: round; }
.area-memory { fill: color-mix(in srgb, var(--c-memory) 18%, transparent); }
.line-memory { fill: none; stroke: var(--c-memory); stroke-width: 2; stroke-linejoin: round; }
.chart .bar { fill: var(--c-lines); opacity: .55; }
.chart .bar.bad { fill: var(--c-bad); opacity: .9; }
.hover { fill: transparent; }
.hover:hover { fill: color-mix(in srgb, var(--fg) 9%, transparent); }
.axis { display: flex; justify-content: space-between; font-size: .72rem; color: var(--muted); margin-top: .3rem; font-variant-numeric: tabular-nums; }
.gantt { display: grid; gap: .35rem; margin: .25rem 0 .5rem; }
.gantt-row { display: grid; grid-template-columns: minmax(7rem, 14rem) 1fr; gap: .75rem; align-items: center; }
.gantt-name { font-size: .85rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gantt svg { display: block; width: 100%; height: 22px; background: var(--off-bg); border-radius: 999px; }
.gantt .grid { stroke: var(--line); stroke-dasharray: 3 3; }
.gantt .axis { margin-top: 0; }
.run.finished { fill: var(--c-timers); }
.run.stopped { fill: var(--c-alerts); }
.run.running { fill: var(--ok); }
.run:hover, .fire:hover { opacity: .75; }
.fire, .k-fire { fill: var(--c-bad); background: var(--c-bad); }
.k-fire { border-radius: 50%; }
.alert-name { color: var(--warn); }
q.said { font-style: italic; color: var(--muted); }
@media (max-width: 600px) {
  .range { margin-left: 0; }
  .gantt-row { grid-template-columns: 6rem 1fr; }
  .chart svg { height: 120px; }
}
.steps { display: flex; gap: .5rem; list-style: none; padding: 0; margin: 0 0 1.25rem; counter-reset: step; }
.steps li { flex: 1; counter-increment: step; }
.steps a { display: block; padding: .35rem .5rem; border-radius: 999px; background: var(--chip); color: var(--chip-ink);
  text-decoration: none; font-size: .85rem; text-align: center; }
.steps a::before { content: counter(step) ". "; }
.steps li[aria-current] a { background: var(--accent); color: var(--accent-fg); font-weight: 600; }
.setup-code { text-align: center; margin: .5rem 0 1rem; }
.qr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; margin: 1rem 0; }
.qr-grid figure { margin: 0; text-align: center; }
.qr-grid .qr { width: 180px; height: 180px; }
.qr-grid figcaption { margin-top: .25rem; font-weight: 600; }
.qr { width: 220px; height: 220px; image-rendering: pixelated; background: #fff; border-radius: 14px; }
/* A code a device reads with its own camera: as big as the screen allows. */
.qr.big { width: min(340px, 90vw); height: auto; display: block; margin: 0 auto; }
.code b { font-size: 1.3rem; letter-spacing: .05em; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
/* Settings: a strip of what's running, the form's sections as cards in
   two columns, a Save bar that stays in reach, then files and accounts. */
.page-head { margin: 0 0 1.1rem; }
.page-head h1 { margin-bottom: .2rem; }
.page-head p { margin: 0; }
.hint { display: block; font-size: .85rem; color: var(--muted); margin: .3rem 0 0; }
p.hint { margin: .2rem 0 .8rem; }
.pill.flag { font-weight: 500; margin-left: .3rem; vertical-align: .05em; }
.pill.flag code { font-size: .95em; }
.facts-card { margin-bottom: 1.1rem; }
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: .6rem; margin: 0; }
.facts div { background: var(--off-bg); border-radius: 14px; padding: .55rem .8rem; min-width: 0; }
.facts dt { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.facts dd { font-weight: 600; margin-top: .1rem; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 1.1rem; align-items: start; }
.settings fieldset { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 1.2rem 1.35rem .5rem;
  margin: 0; min-width: 0; box-shadow: var(--shadow); }
.settings legend { float: left; width: 100%; padding: 0; margin: 0 0 .8rem; font-size: 1.1rem; }
/* Every sibling, not just the next one: a hidden input often comes
   first, and a flex label beside the floated legend got squeezed into
   the space to its right. */
.settings legend ~ * { clear: both; }
.settings .row label { flex: 1 1 110px; }
.savebar { position: sticky; bottom: 1rem; z-index: 4; display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem;
  width: fit-content; margin: 1.1rem 0; padding: .55rem .6rem .55rem .6rem; padding-right: 1.2rem;
  background: var(--card); border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--shadow); }
.settings-more td.end { text-align: right; }
.settings-more td code { white-space: nowrap; }
.settings-more tr:last-child td { border-bottom: 0; }
td.when, th.when { white-space: nowrap; }
td.when .small { display: block; }
/* The Home tab: rooms as cards, each accessory's state, and its day. */
.notice.warn { background: var(--warn-bg); color: var(--warn); }
.live.stale::before { background: var(--muted); animation: none; }
.home .cards { margin-bottom: 1rem; }
.room h2 { margin-bottom: .4rem; }
.accs, .states, .senders { list-style: none; margin: 0; padding: 0; }
.acc { padding: .6rem 0; border-bottom: 1px solid var(--line); }
.acc:last-child { border-bottom: 0; }
.acc-head { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .6rem; }
.states { display: flex; flex-wrap: wrap; gap: .3rem .9rem; margin-top: .35rem; font-size: .9rem; }
.home .tiles { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.home .chart svg { height: 110px; }
/* Words break at spaces ("1 of 1 locked"), only a single long one mid-word. */
.home .tile-value { overflow-wrap: break-word; }
/* A key in front of a sentence wraps with it, not on a line alone. */
.home .legend .key:first-child { margin: 0 .35rem 0 0; vertical-align: -.05em; }
/* Two tiles to a row on a phone: a ring goes above its words, not beside. */
@media (max-width: 600px) {
  .home .tile.gauge { flex-direction: column; align-items: flex-start; gap: .45rem; }
  .home .ring { width: 46px; height: 46px; }
  .home .tile-value { font-size: 1.35rem; }
  /* The day's names above their bars, whole: two rows of one sprinkler
     differ only at the end ("· on", "· running"). */
  .home .gantt { gap: .5rem; }
  .home .gantt-row { grid-template-columns: 1fr; gap: .15rem; }
  .home .gantt-name { white-space: normal; }
}
.tile-value.bad { color: var(--bad); }
.home .cards + .cards { margin-top: 0; }
.chart .bar.act { fill: var(--c-alerts); opacity: .85; }
.states li.metered { display: inline-flex; align-items: center; gap: .4rem; }
.meter { width: 4.5rem; height: 6px; }
.meter-bg { fill: var(--off-bg); }
.meter-fg { fill: var(--c-timers); }
.meter.warn .meter-fg { fill: var(--c-alerts); }
.meter.bad .meter-fg { fill: var(--c-bad); }
.meter-val { font-size: .8rem; font-variant-numeric: tabular-nums; }
.meter-val.warn { color: var(--warn); }
.hg { margin: .5rem 0 0; }
svg.spans { display: block; width: 100%; height: 14px; margin-top: .2rem; background: var(--off-bg); border-radius: 999px; overflow: hidden; }
.gantt svg.spans { height: 22px; margin: 0; }
.spans .on { fill: var(--c-alerts); }
.spans.alarmed .on { fill: var(--c-bad); }
.spans .on:hover { opacity: .75; }
.spans .nodata, .hl .nodata { fill: var(--line); opacity: .7; }
.spans .grid, .hl .grid { stroke: var(--line); stroke-dasharray: 2 3; }
.hl { margin-top: .2rem; }
.hl-plot { position: relative; }
.hl svg { display: block; width: 100%; height: 56px; background: color-mix(in srgb, var(--off-bg) 55%, transparent); border-radius: 10px; }
.hl.big svg { height: 150px; }
.hl-top, .hl-bottom { position: absolute; right: .4rem; font-size: .68rem; color: var(--muted); font-variant-numeric: tabular-nums; pointer-events: none; }
.hl-top { top: .15rem; } .hl-bottom { bottom: .15rem; }
/* Backed, so a line or the dashed set point under one doesn't run through it. */
.hl-top, .hl-bottom { padding: 0 .3rem; border-radius: 5px; line-height: 1.35; background: color-mix(in srgb, var(--card) 82%, transparent); }
.hl .line { fill: none; stroke-width: 2; stroke-linejoin: round; }
.hl .area { opacity: .16; }
.hl .target { stroke-dasharray: 5 4; stroke-width: 1.5; stroke: var(--muted); }
.hl-now { display: flex; flex-wrap: wrap; gap: .2rem .9rem; font-size: .8rem; color: var(--muted); margin-top: .25rem; font-variant-numeric: tabular-nums; }
.hl-now b { color: var(--fg); }
.hl-now .dot { display: inline-block; width: .55rem; height: .55rem; border-radius: 50%; margin-right: .3rem; background: currentColor; }
.hl .s0, .hl-now .s0 { color: var(--c-timers); stroke: var(--c-timers); fill: var(--c-timers); }
.hl .s1, .hl-now .s1 { color: var(--c-alerts); stroke: var(--c-alerts); fill: var(--c-alerts); }
.hl .s2, .hl-now .s2 { color: var(--c-memory); stroke: var(--c-memory); fill: var(--c-memory); }
.hl .s3, .hl-now .s3 { color: var(--ok); stroke: var(--ok); fill: var(--ok); }
.hl .s4, .hl-now .s4 { color: var(--c-bad); stroke: var(--c-bad); fill: var(--c-bad); }
.hl .line.s0, .hl .line.s1, .hl .line.s2, .hl .line.s3, .hl .line.s4 { fill: none; }
.hl-now .target { color: var(--muted); }
.hl-now .target .dot { background: none; border: 1.5px dashed var(--muted); }
.senders li { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .7rem; padding: .3rem 0; }
.senders form { margin-left: auto; }
button.small { padding: .25rem .8rem; font-size: .8rem; }
/* A camera that turns: its picture, then arrows in a cross. */
img.look { display: block; width: 100%; max-width: 40rem; height: auto; border-radius: 10px; margin: .5rem 0; }
.arrows { display: grid; grid-template-columns: repeat(3, 3.2rem); grid-template-rows: repeat(3, 3.2rem); gap: .3rem; margin: .5rem 0; }
.arrows button { padding: 0; font-size: 1.4rem; }
.arrows .up { grid-area: 1 / 2; }
.arrows .left { grid-area: 2 / 1; }
.arrows .right { grid-area: 2 / 3; }
.arrows .down { grid-area: 3 / 2; }
.arrows .hub { grid-area: 2 / 2; border-radius: 50%; background: var(--muted); opacity: .25; margin: .9rem; }
.steer { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 2rem; }
.steer .steps { border: 0; margin: 0; padding: 0; }
.steer .steps legend { padding: 0; margin-bottom: .3rem; }
.steer .steps label { margin: .2rem 0; }
.views button { margin: 0 .3rem .4rem 0; }
/* A small gear after an accessory's name, to its settings here. */
a.gear { display: inline-flex; align-items: center; color: var(--muted); border-radius: 50%; padding: .1rem; }
a.gear:hover { color: var(--accent); }
a.gear svg { width: 1rem; height: 1rem; }

/* The website's demo of this page. */
.demo-banner { margin: 0; padding: .7rem 1rem; background: #f2a341; color: #291c57; text-align: center; font-size: .95rem; line-height: 1.4; }
.demo-banner a { color: #291c57; font-weight: 600; }
