/* PurrFeed: krem #F0EDE5 / teal #004643. Tema lewat html[data-theme]. */
@import url(/fonts/fonts.css);

:root {
  --primary: #004643; --primary2: #0A6B64; --mint: #7FB5AE; --cream: #F0EDE5;
  --bg: #F0EDE5; --bg2: #E7E1D1; --ink: #0B2926; --muted: #4E6A66; --line: rgba(0, 70, 67, .14);
  --glass: rgba(255, 255, 255, .58); --glass-strong: rgba(255, 255, 255, .8); --glass-line: rgba(255, 255, 255, .7);
  --accent: #004643; --accent-ink: #F0EDE5; --soft: rgba(127, 181, 174, .26);
  --warn: #7A5410; --warn-bg: #F3E7C6; --bad: #8E3A1B; --bad-bg: #F4DDD0;
  --bar-a: #004643; --bar-b: #7FB5AE; --shadow: 0 14px 34px -18px rgba(0, 70, 67, .45);
  --radius: 16px; --radius-sm: 10px; --ease: cubic-bezier(.23, 1, .32, 1);
  color-scheme: light;
}
html[data-theme="dark"] {
  --bg: #031816; --bg2: #06231F; --ink: #F0EDE5; --muted: #9DBBB6; --line: rgba(143, 208, 199, .16);
  --glass: rgba(143, 208, 199, .07); --glass-strong: rgba(143, 208, 199, .13); --glass-line: rgba(143, 208, 199, .14);
  --accent: #8FD0C7; --accent-ink: #031816; --soft: rgba(62, 138, 130, .3);
  --warn: #E6C175; --warn-bg: rgba(230, 193, 117, .12); --bad: #F0A184; --bad-bg: rgba(240, 161, 132, .12);
  --bar-a: #8FD0C7; --bar-b: #3E8A82; --shadow: 0 14px 34px -18px rgba(0, 0, 0, .7);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { background: var(--bg); }
body {
  margin: 0; min-height: 100vh; color: var(--ink);
  font: 15px/1.5 "Plus Jakarta Sans", system-ui, sans-serif;
  background: linear-gradient(155deg, #F0EDE5 0%, #E7E1D1 42%, #B9D6D0 100%) fixed;
}
html[data-theme="dark"] body { background: linear-gradient(155deg, #031816 0%, #06231F 50%, #0B3F3A 100%) fixed; }
h1, h2, h3, .display { font-family: Sora, "Plus Jakarta Sans", sans-serif; margin: 0; letter-spacing: -.01em; }
h2 { font-size: 18px; font-weight: 600; }
svg.lucide { flex: none; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.muted { color: var(--muted); }
.mascot { display: block; fill: currentColor; color: var(--primary); }
html[data-theme="dark"] .mascot { color: var(--accent); }

/* kaca */
.glass {
  background: var(--glass); border: 1px solid var(--glass-line); border-radius: var(--radius);
  backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); box-shadow: var(--shadow);
}
html[data-theme="light"] .glass { background: linear-gradient(160deg, rgba(255, 255, 255, .78), rgba(255, 255, 255, .5) 60%, rgba(127, 181, 174, .2)); }

/* tombol */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 16px; border-radius: var(--radius-sm);
  border: 1px solid var(--line); background: var(--glass-strong); font-weight: 600; font-size: 14px;
  transition: transform .16s var(--ease), background .2s, opacity .2s;
}
.btn:hover { background: var(--soft); }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .45; cursor: default; transform: none; }
.btn.primary { border: 0; background: linear-gradient(135deg, #004643, #0A6B64); color: #F0EDE5; }
html[data-theme="dark"] .btn.primary { background: linear-gradient(135deg, #8FD0C7, #3E8A82); color: #031816; }
.btn.primary:hover { filter: brightness(1.08); }
.btn.small { padding: 6px 12px; font-size: 13px; }

/* toggle tema */
.themeToggle {
  position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; align-items: center; width: 68px; height: 34px; padding: 0 8px;
  border-radius: 20px; border: 1px solid var(--line); background: var(--glass-strong);
}
.themeToggle svg { position: relative; z-index: 1; justify-self: center; width: 16px; height: 16px; transition: color .25s; }
.themeToggle::before {
  content: ""; position: absolute; top: 3px; left: 3px; width: 28px; height: 26px; border-radius: 16px;
  background: linear-gradient(135deg, #004643, #0A6B64); transition: transform .3s var(--ease);
}
html[data-theme="dark"] .themeToggle::before { transform: translateX(34px); background: linear-gradient(135deg, #8FD0C7, #3E8A82); }
html[data-theme="light"] .themeToggle .i-sun { color: #F0EDE5; }
html[data-theme="dark"] .themeToggle .i-moon { color: #031816; }

/* login */
.loginPage { min-height: 100vh; display: grid; grid-template-rows: auto 1fr; }
.topbar { display: flex; align-items: center; justify-content: space-between; padding: 18px 28px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: Sora, sans-serif; font-weight: 700; font-size: 20px; }
.brand .mascot { width: 40px; height: 34px; }
.loginWrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; max-width: 1080px; width: 100%; margin: 0 auto; padding: 16px 28px 56px; }
.hero h1 { font-size: clamp(32px, 4.6vw, 52px); line-height: 1.12; font-weight: 700; max-width: 14em; }
.hero .mascot { width: min(300px, 62%); height: auto; aspect-ratio: 804 / 676; margin-top: 36px; }
.loginCard { padding: 30px; display: grid; gap: 18px; }
.loginCard h2 { font-size: 22px; }
.field { display: grid; gap: 8px; font-weight: 600; font-size: 14px; }
.inputIcon { position: relative; }
.inputIcon svg { position: absolute; left: 14px; top: 50%; translate: 0 -50%; color: var(--muted); }
.inputIcon input {
  width: 100%; padding: 13px 14px 13px 44px; font: 600 15px "Plus Jakarta Sans"; letter-spacing: .04em; text-transform: uppercase;
  color: var(--ink); background: var(--glass-strong); border: 1px solid var(--line); border-radius: var(--radius-sm);
}
.inputIcon input::placeholder { color: var(--muted); opacity: .7; }
.pets { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; border: 0; padding: 0; margin: 0; }
.pets legend { padding: 0; margin-bottom: 8px; font-weight: 600; font-size: 14px; }
.pet { position: relative; }
.pet input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.pet span {
  display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 18px 10px; border-radius: 14px; font-weight: 600;
  border: 1px solid var(--line); background: var(--glass-strong); transition: transform .16s var(--ease), background .2s;
}
.pet span svg { width: 30px; height: 30px; }
.pet input:checked + span { color: #F0EDE5; border-color: transparent; background: linear-gradient(135deg, #004643, #0A6B64); }
html[data-theme="dark"] .pet input:checked + span { color: #031816; background: linear-gradient(135deg, #8FD0C7, #3E8A82); }
.pet input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.pet:active span { transform: scale(.97); }
.fieldError { display: flex; align-items: center; gap: 8px; margin: 0; padding: 9px 12px; border-radius: 10px; color: var(--bad); background: var(--bad-bg); font-size: 14px; font-weight: 600; }

/* dashboard */
.dashHeader { position: sticky; top: 0; z-index: 20; display: flex; flex-wrap: wrap; align-items: center; gap: 14px; padding: 12px 28px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; box-shadow: none; }
html[data-theme="light"] .dashHeader { background: linear-gradient(90deg, rgba(0, 70, 67, .95), rgba(10, 107, 100, .92)); color: #F0EDE5; border-bottom-color: transparent; }
html[data-theme="light"] .dashHeader .mascot { color: #F0EDE5; }
html[data-theme="light"] .dashHeader .btn { background: rgba(240, 237, 229, .14); border-color: rgba(240, 237, 229, .3); color: #F0EDE5; }
html[data-theme="light"] .dashHeader .btn:hover { background: rgba(240, 237, 229, .26); }
html[data-theme="light"] .dashHeader .themeToggle { border-color: rgba(240, 237, 229, .3); background: rgba(240, 237, 229, .14); }
html[data-theme="light"] .dashHeader .themeToggle::before { background: #F0EDE5; }
html[data-theme="light"] .dashHeader .themeToggle .i-sun { color: #004643; }
html[data-theme="light"] .dashHeader .themeToggle .i-moon { color: #F0EDE5; }
.dashHeader .spacer { flex: 1; }
.deviceChip { display: flex; align-items: center; gap: 10px; padding: 6px 14px 6px 8px; border-radius: 12px; background: rgba(240, 237, 229, .14); }
html[data-theme="dark"] .deviceChip { background: var(--glass-strong); }
.deviceChip .tile { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: rgba(240, 237, 229, .2); }
html[data-theme="dark"] .deviceChip .tile { background: var(--soft); }
.deviceChip b { letter-spacing: .05em; }
.deviceChip span { opacity: .8; font-size: 13px; }

main.dash { max-width: 1180px; margin: 0 auto; padding: 26px 28px 110px; display: grid; gap: 34px; }
section > h2 { margin-bottom: 14px; }
.notes { display: grid; gap: 8px; }
.note { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 12px; font-weight: 600; font-size: 14px; }
.note.mendesak { color: var(--bad); background: var(--bad-bg); }
.note.peringatan { color: var(--warn); background: var(--warn-bg); }

.panel { padding: 22px; }
.tabs { display: inline-flex; gap: 6px; padding: 5px; margin-bottom: 18px; border-radius: 14px; background: var(--soft); }
.tab { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border: 0; border-radius: 10px; background: transparent; font-weight: 600; font-size: 14px; color: var(--muted); transition: background .2s, color .2s, transform .16s var(--ease); }
.tab:active { transform: scale(.97); }
.tab[aria-selected="true"] { color: #F0EDE5; background: linear-gradient(135deg, #004643, #0A6B64); }
html[data-theme="dark"] .tab[aria-selected="true"] { color: #031816; background: linear-gradient(135deg, #8FD0C7, #3E8A82); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.stage { display: grid; grid-template-rows: auto 1fr; gap: 12px; min-height: 380px; }
.frame { position: relative; display: grid; place-items: center; min-height: 300px; overflow: hidden; border-radius: 14px; border: 1px dashed var(--line); background: var(--soft); }
.frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #0B2926; }
.frame.live { border-style: solid; }
.frame video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #0B2926; }
.frame canvas.boxes { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.camSelect { max-width: 210px; padding: 9px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--glass-strong); color: inherit; font: 600 14px "Plus Jakarta Sans"; }
.check { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; color: var(--muted); cursor: pointer; }
.check input { width: 16px; height: 16px; accent-color: var(--accent); }
.sensorBadge { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 99px; background: rgba(143, 208, 199, 0.2); border: 1px solid var(--accent); color: var(--accent); font-weight: 700; font-size: 13px; }
.frame .empty { display: grid; justify-items: center; gap: 10px; padding: 20px; text-align: center; color: var(--muted); font-weight: 600; }
.frame .empty .mascot { width: 84px; height: 70px; opacity: .85; }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.status { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; }
.status.ok { color: var(--primary2); }
html[data-theme="dark"] .status.ok { color: var(--accent); }
.status.off { color: var(--muted); }
.result { display: grid; align-content: start; gap: 16px; padding: 22px; border-radius: 14px; background: var(--glass-strong); border: 1px solid var(--line); min-height: 380px; }
.result h3 { font-size: 15px; font-weight: 600; color: var(--muted); }
.verdict { display: flex; align-items: center; gap: 16px; }
.verdict .icon { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 18px; color: #F0EDE5; background: linear-gradient(135deg, #004643, #0A6B64); }
html[data-theme="dark"] .verdict .icon { color: #031816; background: linear-gradient(135deg, #8FD0C7, #3E8A82); }
.verdict .icon svg { width: 32px; height: 32px; }
.verdict .kelas { font: 700 28px Sora; letter-spacing: -.02em; }
.verdict .conf { font-weight: 600; color: var(--muted); }
.facts { display: grid; gap: 0; margin: 0; }
.facts div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 14px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 600; text-align: right; }
.resultEmpty { color: var(--muted); font-weight: 600; align-self: center; text-align: center; }
.fade { animation: fade .28s var(--ease); }
@keyframes fade { from { opacity: 0; transform: translateY(4px); } }

/* statistik */
.stats { display: grid; grid-template-columns: repeat(12, 1fr); gap: 14px; }
.stat { padding: 18px 20px; display: grid; gap: 6px; align-content: start; }
.stat .label { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; font-weight: 600; }
.stat .value { font: 700 30px Sora; letter-spacing: -.02em; line-height: 1.15; }
.stat .value small { font: 600 14px "Plus Jakarta Sans"; color: var(--muted); letter-spacing: 0; }
.stat .sub { color: var(--muted); font-size: 13px; }
.stat.stock { grid-column: span 4; }
.stat.s3 { grid-column: span 2; }
.meter { height: 8px; border-radius: 6px; overflow: hidden; background: var(--soft); margin: 6px 0 2px; }
.meter span { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--bar-b), var(--bar-a)); transition: width .5s var(--ease); }
.stat.stock .btn { justify-self: start; margin-top: 8px; }
.charts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 14px; }
.chart { padding: 20px; }
.chart h3 { font-size: 15px; font-weight: 600; }
.chart .head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 8px; }
.chart .avg { font: 700 20px Sora; }
.legend { display: flex; gap: 14px; font-size: 12px; font-weight: 600; color: var(--muted); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.chart svg { width: 100%; height: auto; display: block; overflow: visible; }
.chart text { fill: var(--muted); font: 600 11px "Plus Jakarta Sans"; }
.chart .grid { stroke: var(--line); stroke-width: 1; }
.chart .barA { fill: var(--bar-a); } .chart .barB { fill: var(--bar-b); }
.chart .line { fill: none; stroke: var(--bar-a); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.chart .dot { fill: var(--bg); stroke: var(--bar-a); stroke-width: 2.5; }
.chart text.val { fill: var(--ink); }

/* riwayat */
.histHead { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.histHead h2 { margin: 0; }
.seg { display: inline-flex; gap: 4px; padding: 4px; border-radius: 12px; background: var(--soft); }
.seg button { padding: 6px 14px; border: 0; border-radius: 9px; background: transparent; font-weight: 600; font-size: 13px; color: var(--muted); transition: background .2s, color .2s; }
.seg button[aria-pressed="true"] { color: #F0EDE5; background: linear-gradient(135deg, #004643, #0A6B64); }
html[data-theme="dark"] .seg button[aria-pressed="true"] { color: #031816; background: linear-gradient(135deg, #8FD0C7, #3E8A82); }
.menuWrap { position: relative; }
.menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 10; min-width: 190px; padding: 6px; border-radius: 14px; background: var(--bg); border: 1px solid var(--line); box-shadow: var(--shadow); display: grid; }
.menu button { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 0; border-radius: 9px; background: transparent; font-weight: 600; font-size: 14px; text-align: left; }
.menu button:hover { background: var(--soft); }
.hist { padding: 6px 18px; }
.item { display: grid; grid-template-columns: 52px minmax(0, 1.1fr) minmax(0, 1.2fr) auto; gap: 16px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.item:first-child { border-top: 0; }
.thumb { display: grid; place-items: center; width: 52px; height: 52px; overflow: hidden; border-radius: 13px; background: var(--soft); color: var(--primary2); }
html[data-theme="dark"] .thumb { color: var(--accent); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.item .when { font-weight: 600; }
.item .when span { display: block; color: var(--muted); font-size: 13px; font-weight: 500; }
.tag { display: inline-block; margin-top: 2px; padding: 2px 9px; border-radius: 7px; background: var(--soft); font-size: 12px; font-weight: 600; }
.item .what b { font-family: Sora; font-weight: 600; }
.item .what span { display: block; color: var(--muted); font-size: 13px; }
.emptyList { padding: 30px 0; text-align: center; color: var(--muted); font-weight: 600; }

/* purr assistant */
.fab {
  position: fixed; right: 22px; bottom: 22px; z-index: 30; display: flex; align-items: center; gap: 10px; padding: 8px 18px 8px 10px; border: 0; border-radius: 40px;
  color: #F0EDE5; font-weight: 700; background: linear-gradient(135deg, #004643, #0A6B64); box-shadow: 0 16px 30px -12px rgba(0, 70, 67, .7);
  transition: transform .18s var(--ease);
}
html[data-theme="dark"] .fab { color: #031816; background: linear-gradient(135deg, #8FD0C7, #3E8A82); }
.fab:hover { transform: translateY(-2px); } .fab:active { transform: scale(.97); }
.face { display: grid; place-items: center; border-radius: 50%; background: #F0EDE5; }
html[data-theme="dark"] .face { background: #031816; }
.face svg { color: #004643; fill: currentColor; }
html[data-theme="dark"] .face svg { color: #8FD0C7; }
.fab .face { width: 38px; height: 38px; } .fab .face svg { width: 26px; height: 24px; }
.chat { position: fixed; right: 22px; bottom: 22px; z-index: 40; width: min(400px, calc(100vw - 28px)); height: min(640px, calc(100vh - 44px)); display: grid; grid-template-rows: auto auto 1fr auto; overflow: hidden; background: var(--bg); transform-origin: bottom right; animation: pop .25s var(--ease); }
html[data-theme="dark"] .chat { background: #052421; }
@keyframes pop { from { opacity: 0; transform: scale(.94) translateY(8px); } }
.chatHead { display: flex; align-items: center; gap: 12px; padding: 14px 16px; color: #F0EDE5; background: linear-gradient(135deg, #004643, #0A6B64 70%, #2E8077); }
html[data-theme="dark"] .chatHead { color: #031816; background: linear-gradient(135deg, #8FD0C7, #3E8A82); }
.chatHead .face { width: 40px; height: 40px; } .chatHead .face svg { width: 28px; height: 26px; }
.chatHead b { flex: 1; font: 700 16px Sora; }
.chatHead button { display: grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: 10px; background: rgba(240, 237, 229, .18); color: inherit; }
html[data-theme="dark"] .chatHead button { background: rgba(3, 24, 22, .16); }
.tips { padding: 12px 14px 4px; display: grid; gap: 8px; }
.tips h3 { display: flex; align-items: center; gap: 8px; font: 600 13px "Plus Jakarta Sans"; color: var(--muted); }
.tip { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--glass-strong); text-align: left; font-size: 13px; font-weight: 600; transition: background .2s, transform .16s var(--ease); }
.tip:hover { background: var(--soft); } .tip:active { transform: scale(.98); }
.tip svg { color: var(--primary2); }
html[data-theme="dark"] .tip svg { color: var(--accent); }
.msgs { overflow-y: auto; padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; }
.msg { max-width: 86%; padding: 10px 13px; border-radius: 14px; font-size: 14px; animation: fade .25s var(--ease); }
.msg.bot { align-self: flex-start; background: var(--glass-strong); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.msg.me { align-self: flex-end; color: #F0EDE5; background: linear-gradient(135deg, #004643, #0A6B64); border-bottom-right-radius: 4px; }
html[data-theme="dark"] .msg.me { color: #031816; background: linear-gradient(135deg, #8FD0C7, #3E8A82); }
.msg .row { margin-top: 10px; }
.chatForm { display: flex; gap: 8px; padding: 12px 14px; border-top: 1px solid var(--line); }
.chatForm input { flex: 1; min-width: 0; padding: 11px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--glass-strong); color: var(--ink); font: 500 14px "Plus Jakarta Sans"; }
.chatForm .btn { padding: 0 14px; }

.fab { position: fixed; }
.badge {
  position: absolute; top: -4px; right: -4px; min-width: 22px; height: 22px; padding: 0 6px; display: grid; place-items: center;
  border-radius: 11px; color: #fff; background: #C8372D; font: 700 12px/1 "Plus Jakarta Sans"; border: 2px solid var(--bg);
  animation: badgeIn .35s var(--ease);
}
@keyframes badgeIn { from { transform: scale(.3); opacity: 0; } }
.msg.proaktif { border-color: rgba(200, 55, 45, .45); }
.msg.proaktif .tagline { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; color: var(--muted); font-size: 12px; font-weight: 600; }
.msg.proaktif.mendesak .tagline { color: var(--bad); }
.chatHead .actions { display: flex; gap: 6px; }

/* dialog + toast */
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 60; translate: -50% 0; display: flex; align-items: center; gap: 10px; padding: 11px 18px; border-radius: 14px; font-weight: 600; font-size: 14px; color: #F0EDE5; background: #004643; box-shadow: var(--shadow); animation: toastIn .3s var(--ease); }
html[data-theme="dark"] .toast { color: #031816; background: #8FD0C7; }
.toast.bad { color: #fff; background: #8E3A1B; }
@keyframes toastIn { from { opacity: 0; translate: -50% 12px; } }

@media (max-width: 900px) {
  .loginWrap { grid-template-columns: 1fr; gap: 28px; padding: 8px 18px 40px; }
  .hero .mascot { width: 130px; margin-top: 20px; }
  .split, .charts { grid-template-columns: 1fr; }
  .stat.stock { grid-column: span 12; } .stat.s3 { grid-column: span 6; }
  .item { grid-template-columns: 48px 1fr auto; }
  .item .what, .item .when { grid-column: 2; }
  .item > :last-child { grid-column: 3; grid-row: 1 / span 2; }
  .dashHeader, .topbar { padding-inline: 16px; } main.dash { padding-inline: 16px; }
  .result, .stage { min-height: 0; }
}
@media (max-width: 520px) {
  .stat.s3 { grid-column: span 12; }
  .fab span.txt { display: none; } .fab { padding: 8px; }
  .deviceChip span { display: none; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
