/* Drying cabinet dashboard. One dark theme, for a desktop browser (****, 14.10.2026). Colours are tokens. */
:root {
  color-scheme: dark;
  --page: #0f1012; --card: #18191c; --card2: #202125; --ink: #eceae5; --ink2: #b9b7ae; --muted: #85837c;
  --line: #2a2b2f; --ring: rgba(255, 255, 255, .08); --wash: rgba(255, 255, 255, .05);
  --accent: #3987e5; --accentbg: rgba(57, 135, 229, .18);
  --good: #2fb344; --goodbg: rgba(47, 179, 68, .14); --warn: #fab219; --warnbg: rgba(250, 178, 25, .11);
  --bad: #e66767; --badbg: rgba(208, 59, 59, .15); --orange: #ec835a;
  --s-top: #3987e5; --s-bot: #d95926; --s-plate: #199e70; --s-foil: #c98500; --s-ctrl: #9085e9; --s-fan: #d55181;
  --shadow: 0 0 0 1px rgba(255, 255, 255, .045);
}

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--page); color: var(--ink); }
body { font: 17px/1.45 system-ui, -apple-system, "Segoe UI", sans-serif; padding: 28px 32px 56px; }
.wrap { max-width: min(1640px, 100%); margin: 0 auto; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.spacer { flex: 1; }

/* header */
header { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.home { font-size: 20px; font-weight: 650; letter-spacing: -.01em; }
.pill { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink2);
  padding: 5px 12px; border-radius: 99px; background: var(--card); box-shadow: var(--shadow); }
.pill i { width: 9px; height: 9px; border-radius: 50%; background: var(--muted); }
.pill.ok i { background: var(--good); } .pill.warn i { background: var(--warn); } .pill.bad i { background: var(--bad); }

/* detail pages */
.dhead { display: flex; align-items: baseline; gap: 16px; margin-bottom: 16px; }
.dhead h1 { margin: 0; font-size: 26px; font-weight: 600; letter-spacing: -.01em; }
.back { color: var(--ink2); font-size: 15px; padding: 4px 10px 4px 6px; border-radius: 8px; }
.back:hover { background: var(--wash); color: var(--ink); }
.bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.seg { display: inline-flex; padding: 3px; border-radius: 11px; background: var(--wash); box-shadow: inset 0 0 0 1px var(--ring); }
.seg button { border: 0; background: none; padding: 6px 14px; border-radius: 8px; cursor: pointer; color: var(--ink2); font-size: 15px; }
.seg button.on { background: var(--card); color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, .12), 0 0 0 1px var(--ring); }
.panel { background: var(--card); border-radius: 22px; box-shadow: var(--shadow); padding: 24px 28px; margin-bottom: 18px; }
.panel h2 { margin: 0 0 12px; font-size: 15px; font-weight: 600; color: var(--ink2); }
.note, .hint { font-size: 13px; color: var(--muted); }
.note { margin-top: 6px; }
.chart { min-height: 260px; }

/* big numbers under the chart */
.stats { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin-bottom: 14px; }
@media (max-width: 520px) { .stats { grid-template-columns: 1fr 1fr; gap: 10px; } .stat { padding: 12px 14px; } .stat .big { font-size: 28px; } }
.stat { background: var(--card); border-radius: 20px; box-shadow: var(--shadow); padding: 18px 20px; }
.stat .lab { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.stat .lab i { width: 14px; height: 0; border-top: 3px solid; border-radius: 2px; }
.stat .lab .hint { margin-left: 2px; }
.stat .lab i.dash { border-top-style: dashed; border-top-width: 2px; }
.stat .big { font-size: 42px; font-weight: 400; letter-spacing: -.02em; }
.stat .big small { font-size: 17px; color: var(--ink2); font-weight: 400; margin-left: 3px; }

/* settings */
.setrow { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.setrow label { font-size: 15px; min-width: 150px; }
.setrow input { width: 96px; padding: 7px 10px; border-radius: 9px; border: 0; background: var(--page);
  box-shadow: inset 0 0 0 1px var(--ring); text-align: right; font-size: 16px; }
.setrow input:focus { outline: 2px solid var(--accent); }
.setrow .unit { color: var(--ink2); }
.setrow button, .btn { border: 0; cursor: pointer; padding: 7px 16px; border-radius: 9px; background: var(--accent); color: #fff; font-size: 15px; display: inline-block; }
.setrow .hint { flex-basis: 100%; }

/* status page */
.state { display: flex; align-items: center; gap: 12px; font-size: 24px; font-weight: 500; }
.state::before { content: ""; width: 14px; height: 14px; border-radius: 50%; background: var(--muted); }
.state.ok::before { background: var(--good); } .state.warn::before { background: var(--warn); } .state.bad::before { background: var(--bad); }
.msgs { margin: 12px 0 0 26px; padding: 0; list-style: none; font-size: 16px; }
.msgs li + li { margin-top: 4px; }
/* fixed list of states: dot, name, value; a long value moves under the name instead of scrolling */
.stgrid { columns: 2 380px; column-gap: 14px; }
.stgrid .panel { break-inside: avoid; }
.strow { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 2px 10px; padding: 7px 0;
  border-bottom: 1px solid var(--line); font-size: 15px; }
.strow:last-child { border-bottom: 0; padding-bottom: 0; }
.strow span { color: var(--ink2); }
.strow b { flex: 1 1 auto; min-width: 0; font-weight: 500; text-align: right; overflow-wrap: anywhere; }
.strow i, .stlegend i { flex: none; width: 9px; height: 9px; margin-top: 6px; border-radius: 50%; background: var(--muted); }
.strow i.ok, .stlegend i.ok { background: var(--good); }
.strow i.bad, .stlegend i.bad { background: var(--bad); }
.stlegend { margin: 0 4px 14px; }
.stlegend i { display: inline-block; margin: 0 5px 0 0; vertical-align: 0; }
.stlegend i:not(:first-child) { margin-left: 12px; }

/* uPlot, matched to the tokens */
.uplot { font-family: inherit; }
.u-legend { font-size: 14px; color: var(--ink2); margin-top: 6px; text-align: left; }
.u-legend .u-marker { width: 14px; height: 3px; border-radius: 2px; }
.u-legend th { font-weight: 400; }
.u-legend td { font-variant-numeric: tabular-nums; color: var(--ink); padding-right: 14px; }
.u-legend .u-series:first-child td { color: var(--muted); }
.u-cursor-x, .u-cursor-y { border-color: var(--muted) !important; }
.u-select { background: var(--wash); }

.toast { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); padding: 9px 16px; border-radius: 10px;
  background: var(--ink); color: var(--card); font-size: 15px; display: none; z-index: 10; }
.toast.err { background: var(--bad); color: #fff; }

.preview { background: linear-gradient(var(--warnbg), var(--warnbg)), var(--card); font-size: 15px; }
.modes { display: grid; gap: 14px; grid-template-columns: repeat(3, 1fr); margin-bottom: 14px; }
@media (max-width: 700px) { .modes { grid-template-columns: 1fr; } }
.mcard { background: var(--card); border-radius: 16px; box-shadow: 0 0 0 1px var(--ring); padding: 16px 20px; opacity: .85; }
.mname { font-size: 20px; font-weight: 600; margin-bottom: 8px; }
.mrow { display: flex; justify-content: space-between; padding: 5px 0; border-top: 1px solid var(--line); font-size: 15px; }
.mrow span { color: var(--ink2); }
.mrow b { font-weight: 500; }
.timeline { display: flex; gap: 4px; margin-bottom: 16px; }
.timeline .step { padding: 10px 12px; border-radius: 10px; background: var(--wash); box-shadow: inset 0 0 0 1px var(--ring);
  display: flex; flex-direction: column; min-width: 0; }
.timeline .step span { font-weight: 500; }
.timeline .step small { color: var(--muted); font-size: 13px; }
.setrow input:disabled, .setrow button:disabled { opacity: .45; cursor: not-allowed; }

/* info marks: short labels, the description on hover or tap */
.info { display: inline-grid; place-items: center; width: 17px; height: 17px; border-radius: 50%; margin-left: 4px;
  font: italic 600 11px/1 Georgia, serif; color: var(--muted); box-shadow: inset 0 0 0 1.2px var(--muted);
  cursor: help; vertical-align: 1px; position: relative; z-index: 2; }
.info:hover, .info:focus { color: var(--accent); box-shadow: inset 0 0 0 1.2px var(--accent); outline: none; }
.tip { position: fixed; z-index: 20; display: none; max-width: 280px; padding: 8px 11px; border-radius: 9px;
  background: var(--ink); color: var(--card); font-size: 13.5px; line-height: 1.4; pointer-events: none;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .2); }
.preview { font-weight: 500; }

/* time window */
.nav { display: inline-grid; place-items: center; border: 0; cursor: pointer; min-width: 36px; height: 34px; padding: 0 10px; border-radius: 9px; font-size: 16px;
  background: var(--wash); box-shadow: inset 0 0 0 1px var(--ring); color: var(--ink); }
.nav:hover { box-shadow: inset 0 0 0 1px var(--accent); }
.nav:disabled { opacity: .35; cursor: default; box-shadow: inset 0 0 0 1px var(--ring); }
.wlabel { font-size: 15px; font-variant-numeric: tabular-nums; color: var(--ink2); }
.wform label { min-width: 38px; }
.wpair { display: flex; align-items: center; gap: 8px; }
.wform input[type=date] { width: 150px; text-align: left; }
.wform input[type=time] { width: 132px; text-align: left; }      /* room for AM/PM where the browser uses it */
@media (max-width: 520px) { .wform input[type=date] { width: 140px; } .wform input[type=time] { width: 112px; } }
.cap { margin: 18px 4px 8px; font-size: 15px; font-weight: 600; color: var(--ink2); }
/* cooling */
.lane { margin-top: 2px; }
.ssub { font-size: 14px; color: var(--ink2); margin-top: 2px; }
.setrow + .setrow { margin-top: 12px; }
.setrow .seg button:disabled { opacity: .35; cursor: default; }
.setrow button:disabled { opacity: .45; cursor: default; }
.setrow .seg button { background: none; color: var(--ink2); padding: 6px 14px; }
.setrow .seg button.on { background: var(--card); color: var(--ink); }
.lanecap { font-size: 13px; color: var(--muted); margin: 8px 0 0 48px; }
/* Min and Max of the main line, small in the corners of the plot area */
.mm { position: absolute; left: 6px; font-size: 11px; line-height: 1; color: var(--muted); pointer-events: none;
  background: color-mix(in srgb, var(--card) 80%, transparent); padding: 2px 4px; border-radius: 4px; font-variant-numeric: tabular-nums; }
.mm.mmax { top: 3px; } .mm.mmin { bottom: 3px; }
.u-legend .dzrow th { cursor: default; }
.mnow { color: var(--ink2); font-size: 15px; }
.mnow b { color: var(--ink); font-weight: 600; }
#mSel button:disabled { cursor: not-allowed; }
.btn.off { background: var(--card); color: var(--bad); box-shadow: inset 0 0 0 1px var(--bad); }
.btn.off:hover { background: var(--badbg); }

/* off */
.offbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 14px; padding-top: 14px;
  border-top: 1px solid var(--line); font-size: 15px; }
.dlg { border: 0; border-radius: 16px; padding: 22px 24px; width: min(440px, calc(100vw - 32px));
  background: var(--card); color: var(--ink); box-shadow: 0 0 0 1px var(--ring), 0 18px 48px rgba(0, 0, 0, .3); }
.dlg::backdrop { background: rgba(0, 0, 0, .45); }
.dlg h2 { margin: 0 0 10px; font-size: 20px; font-weight: 600; }
.dlg p { margin: 0 0 16px; color: var(--ink2); font-size: 15px; }
.dlg label { display: block; font-size: 14px; color: var(--ink2); margin-bottom: 6px; }
.dlg input { width: 100%; padding: 9px 12px; border-radius: 9px; border: 0; background: var(--page);
  box-shadow: inset 0 0 0 1px var(--ring); font-size: 17px; letter-spacing: .08em; }
.dlg input:focus { outline: 2px solid var(--bad); }
.dbtn { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }
.dbtn button { border: 0; cursor: pointer; padding: 8px 16px; border-radius: 9px; font-size: 15px; background: var(--accent); color: #fff; }
.dbtn .ghost { background: var(--wash); color: var(--ink); box-shadow: inset 0 0 0 1px var(--ring); }
.dbtn .danger { background: var(--bad); }
.dbtn button:disabled { opacity: .4; cursor: not-allowed; }
/* heating, fan, system, previews */
.setrow .check { display: inline-flex; align-items: center; gap: 6px; min-width: 0; font-size: 15px; }
.setrow .check input { width: 18px; height: 18px; accent-color: var(--accent); box-shadow: none; }
.syslist { display: grid; gap: 0 28px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); font-size: 15px; }
.syslist div { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--line); }
.syslist span { color: var(--ink2); }
.syslist b { font-weight: 500; text-align: right; }
.btn.toggle { background: var(--wash); color: var(--ink); box-shadow: inset 0 0 0 1px var(--ring); }
.btn.toggle.active { background: var(--accent); color: #fff; box-shadow: none; }
.btn.ghostlink { background: var(--card); color: var(--ink); box-shadow: inset 0 0 0 1px var(--ring); }
.btn.ghostlink:hover { box-shadow: inset 0 0 0 1px var(--accent); }
.links { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.newcard { display: grid; place-items: center; min-height: 120px; color: var(--muted); border: 1.5px dashed var(--line); box-shadow: none; }
.grid2 { display: grid; grid-template-columns: 170px minmax(0, 260px); gap: 10px 14px; align-items: center; }
.grid2 label { font-size: 15px; }
.grid2 label .unit { color: var(--muted); font-size: 13px; }
.grid2 input { padding: 7px 10px; border-radius: 9px; border: 0; background: var(--page); box-shadow: inset 0 0 0 1px var(--ring); font-size: 16px; }
.grid2 input:disabled { opacity: .5; }
.grid2 .ghost { background: var(--wash); color: var(--ink); box-shadow: inset 0 0 0 1px var(--ring); }
@media (max-width: 520px) { .grid2 { grid-template-columns: 1fr; } }

/* layout 13.10.: banner, footer, stacked charts, settings link */
a.pill { cursor: pointer; }
a.pill:hover { box-shadow: 0 0 0 1px var(--accent); }
.banner { display: flex; align-items: center; gap: 10px; padding: 12px 18px; margin-bottom: 14px; border-radius: 14px;
  font-size: 15px; background: var(--card); box-shadow: 0 0 0 1px var(--ring); }
.banner.fwb { flex-wrap: wrap; }
.banner.fwb .fwbtxt { flex: 1 1 220px; display: flex; flex-direction: column; gap: 2px; }
.banner.fwb small { color: var(--muted); }
.banner .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--muted); flex: none; }
.banner.warn { box-shadow: 0 0 0 1px var(--warn); background: linear-gradient(var(--warnbg), var(--warnbg)), var(--card); }
.banner.warn .dot { background: var(--warn); }
.banner.bad { box-shadow: 0 0 0 1px var(--bad); background: linear-gradient(var(--badbg), var(--badbg)), var(--card); }
.banner.bad .dot { background: var(--bad); }
footer { margin-top: 28px; text-align: center; font-size: 13px; }
footer { color: var(--muted); }
#hcBadge { height: 18px; vertical-align: middle; margin-left: 10px; }
.slink { font-size: 15px; color: var(--accent); align-self: center; }
.dhead { align-items: center; }
.charthead { margin-top: 22px; }
.bar .cap { margin: 0; }
.chartpanel h3 { margin: 0 0 6px; font-size: 15px; font-weight: 600; }
.chartpanel h3 .unit { color: var(--muted); font-weight: 400; font-size: 13px; margin-left: 4px; }
.lanecap { margin: 4px 0 0 48px; }
.unitin { display: flex; align-items: center; gap: 8px; }
.unitin span { color: var(--ink2); }
.unitin input { width: 110px; text-align: right; }
.grid2 input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--accent); box-shadow: none; }
#fManual button[type=submit] { border: 0; cursor: pointer; padding: 8px 18px; border-radius: 9px; background: var(--accent); color: #fff; font-size: 15px; }
#fManual button:disabled { opacity: .4; cursor: default; }

/* mode selector link, own mode editor with linked sliders */
.seg .segbtn { padding: 6px 14px; border-radius: 8px; color: var(--ink2); font-size: 15px; }
.seg .segbtn.on { background: var(--card); color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, .12), 0 0 0 1px var(--ring); }
.sliders { margin: 18px 0 8px; }
.chips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.chips .chip { border: 0; cursor: pointer; text-align: left; padding: 8px 12px; border-radius: 12px; font: inherit; color: var(--ink);
  background: var(--page); box-shadow: inset 0 0 0 1px var(--ring); display: flex; flex-direction: column; }
.chips .chip span { font-size: 13px; color: var(--ink2); }
.chips .chip b { font-size: 20px; font-weight: 500; }
.chips .chip small { font-size: 12px; color: var(--muted); }
.chips .chip.on { box-shadow: inset 0 0 0 2px var(--accent); background: var(--card); }
.chips .chip.out b { color: var(--bad); }
.bigsl { margin-top: 18px; }
.bigval { text-align: center; }
.bigval b { font-size: 56px; font-weight: 500; letter-spacing: -.03em; }
.bigval small { font-size: 18px; color: var(--ink2); }
.bigval.out b { color: var(--bad); }
.sltrack { position: relative; height: 44px; margin-top: 6px; }
.slzone { position: absolute; left: 0; right: 0; top: 17px; height: 10px; border-radius: 5px; opacity: .55; }
.slrefs { position: absolute; left: 0; right: 0; top: 0; height: 44px; pointer-events: none; }
.slrefs i { position: absolute; top: 12px; width: 2px; height: 20px; margin-left: -1px; background: var(--ink2); opacity: .7; }
.slrefs .warnmark { position: absolute; top: -6px; transform: translateX(-50%); font-size: 11px; font-weight: 700; color: var(--bad);
  width: 15px; height: 15px; line-height: 15px; text-align: center; border-radius: 50%; background: var(--badbg); }
.sltrack input[type=range] { position: absolute; left: 0; right: 0; top: 6px; width: 100%; margin: 0; height: 32px;
  -webkit-appearance: none; appearance: none; background: transparent; cursor: pointer; }
.sltrack input[type=range]::-webkit-slider-runnable-track { height: 10px; background: transparent; }
.sltrack input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 30px; height: 30px; margin-top: -10px; border-radius: 50%;
  background: var(--card); box-shadow: 0 0 0 3px var(--accent), 0 2px 8px rgba(0, 0, 0, .25); }
.sltrack input[type=range]::-moz-range-track { height: 10px; background: transparent; }
.sltrack input[type=range]::-moz-range-thumb { width: 26px; height: 26px; border-radius: 50%; border: 0;
  background: var(--card); box-shadow: 0 0 0 3px var(--accent), 0 2px 8px rgba(0, 0, 0, .25); }
.bigsl:has(.bigval.out) input[type=range]::-webkit-slider-thumb { box-shadow: 0 0 0 3px var(--bad), 0 2px 8px rgba(0, 0, 0, .25); }
@media (max-width: 520px) { .chips .chip b { font-size: 17px; } .chips .chip { padding: 7px 9px; } .bigval b { font-size: 44px; } }
.slscale { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); }
.zonekey { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; font-size: 13px; color: var(--ink2);
  padding: 10px 0 16px; margin-bottom: 14px; border-bottom: 1px solid var(--line); }
.zonekey span { display: inline-flex; align-items: center; gap: 6px; }
.zonekey .z { display: inline-block; width: 18px; height: 6px; border-radius: 3px; }
.zonekey .z.ok { background: var(--good); opacity: .6; } .zonekey .z.bad { background: var(--bad); opacity: .6; }
.zonekey .z.ref { width: 2px; height: 14px; background: var(--ink2); }
#fCustom .grid2 input[type=text] { padding: 7px 10px; border-radius: 9px; border: 0; background: var(--page); box-shadow: inset 0 0 0 1px var(--ring); font-size: 16px; }
#fCustom button[type=submit] { border: 0; cursor: pointer; padding: 8px 18px; border-radius: 9px; background: var(--accent); color: #fff; font-size: 15px; }
#fCustom .ghost { border: 0; cursor: pointer; padding: 8px 16px; border-radius: 9px; background: var(--wash); color: var(--ink); box-shadow: inset 0 0 0 1px var(--ring); font-size: 15px; }
.zonekey .info { display: inline-grid; }
.presets { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 14px; font-size: 14px; color: var(--ink2); }
.presets button { border: 0; cursor: pointer; font: inherit; color: var(--ink); padding: 6px 14px; border-radius: 99px;
  background: var(--page); box-shadow: inset 0 0 0 1px var(--ring); }
.presets button:hover { box-shadow: inset 0 0 0 1px var(--accent); }
.sliders { padding-bottom: 16px; margin-bottom: 14px; border-bottom: 1px solid var(--line); }

/* zones on the chips and the lock */
.chips .chip.z-green { background: color-mix(in srgb, var(--good) 14%, var(--card)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--good) 45%, transparent); }
.chips .chip.z-yellow { background: color-mix(in srgb, var(--warn) 18%, var(--card)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--warn) 55%, transparent); }
.chips .chip.z-orange { background: color-mix(in srgb, var(--orange) 20%, var(--card)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--orange) 60%, transparent); }
.chips .chip.z-red { background: color-mix(in srgb, var(--bad) 20%, var(--card)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--bad) 60%, transparent); }
.chips .chip.on { box-shadow: inset 0 0 0 2.5px var(--accent); }
.chips .chip b { color: var(--ink); }
.slzone { opacity: .75; }
.slscale { align-items: center; }
.lock { display: inline-flex; align-items: center; gap: 6px; border: 0; cursor: pointer; font: inherit; font-size: 13px; color: var(--ink2);
  padding: 4px 12px; border-radius: 99px; background: var(--page); box-shadow: inset 0 0 0 1px var(--ring); }
.lock.open { color: var(--bad); box-shadow: inset 0 0 0 1px var(--bad); }
#warnWord label { display: block; font-size: 14px; color: var(--ink2); margin-bottom: 6px; }
#warnWord input { width: 100%; padding: 9px 12px; border-radius: 9px; border: 0; background: var(--page); box-shadow: inset 0 0 0 1px var(--ring); font-size: 17px; letter-spacing: .08em; }

/* non-linear slider labels, electronics box gauge */
.greenlab { position: relative; height: 16px; font-size: 12px; color: var(--ink2); }
.greenlab span { position: absolute; transform: translateX(-50%); }
.gauge .gtop { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 8px; }
.gauge .gval b { font-size: 30px; font-weight: 500; letter-spacing: -.02em; }
.gauge .gval small { font-size: 14px; color: var(--ink2); margin-left: 6px; }
.gtrack { position: relative; height: 10px; border-radius: 5px; opacity: .85; }
.gtrack i { position: absolute; top: -6px; width: 22px; height: 22px; margin-left: -11px; border-radius: 50%;
  background: var(--card); box-shadow: 0 0 0 3px var(--ink2), 0 2px 6px rgba(0, 0, 0, .25); }
.gauge .slscale { margin-top: 8px; }
.chips .chip { cursor: default; }
.bigval .info { vertical-align: 10px; margin-left: 8px; }

/* chips choose the labelled value again; the big value can be typed */
.chips button.chip { border: 0; cursor: pointer; font: inherit; text-align: left; }
.bigval input { width: 4.2ch; border: 0; background: transparent; color: var(--ink); text-align: right; padding: 0;
  font: inherit; font-size: 56px; font-weight: 500; letter-spacing: -.03em; }
.bigval input:focus { outline: none; border-bottom: 2px solid var(--accent); }
.presets button.on { box-shadow: inset 0 0 0 2px var(--accent); }
@media (max-width: 520px) { .bigval input { font-size: 44px; } }

/* programs on the Mode page; the low dew point line in the Drying tile */
.progs { display: grid; gap: 10px; margin-bottom: 8px; }
.prog { display: grid; grid-template-columns: 64px 1fr; align-items: center; gap: 10px; }
.prog b { font-weight: 500; }
.prog .timeline { margin-bottom: 0; }
.panel .modes { margin-bottom: 0; }
/* modes (15.10.2026): a tap on a card starts the mode, the pencil opens its slider; Advanced folded */
.mhead { margin: 0; }
#modeCards { margin-top: 16px; }
.mpick { cursor: pointer; opacity: 1; }
.mpick:hover { box-shadow: 0 0 0 1px var(--accent); }
.mpick:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.mpick.on { box-shadow: 0 0 0 2px var(--accent); background: linear-gradient(var(--accentbg), var(--accentbg)), var(--card); }
.mpick.busy, .sliders.busy { opacity: .55; }
.mname { display: flex; align-items: center; gap: 8px; }
.mpen { margin-left: auto; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; color: var(--ink2); }
.mpen:hover { color: var(--accent); background: var(--wash); }
a.newcard { color: var(--muted); }
a.newcard:hover { color: var(--ink); border-color: var(--accent); }
.adv summary { cursor: pointer; font-size: 15px; font-weight: 600; color: var(--ink2); }
.adv[open] summary { margin-bottom: 14px; }
.advgrid label.on { color: var(--accent); font-weight: 600; }
.advgrid .btn { padding: 7px 16px; }
.advgrid .btn:disabled { opacity: .45; cursor: default; }
@media (max-width: 520px) { .prog { grid-template-columns: 52px 1fr; gap: 8px; } .prog .timeline .step { padding: 8px; min-width: 0; } }

/* data page: value picker, table, pager */
.dsel { display: grid; gap: 8px; }
.dgroup { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.dglab { width: 72px; font-size: 13px; color: var(--muted); }
.dchip { border: 0; cursor: pointer; font: inherit; font-size: 14px; padding: 5px 11px; border-radius: 99px;
  background: var(--wash); color: var(--ink2); box-shadow: inset 0 0 0 1px var(--ring); }
.dchip.on { background: var(--accent); color: #fff; box-shadow: none; }
.dchip.clear { background: none; color: var(--muted); }
.dbar { margin: 4px 0 12px; }
.dbar label { font-size: 14px; color: var(--ink2); display: flex; align-items: center; gap: 6px; }
.tscroll { overflow: auto; max-height: 70vh; }
.dtable { border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; white-space: nowrap; width: 100%; }
.dtable th, .dtable td { padding: 5px 10px; text-align: right; border-bottom: 1px solid var(--line); min-width: 84px; }
.dtable tbody tr { height: 29px; }
.dtable tr.vpad td { padding: 0; border: 0; }
.dtable th:first-child { text-align: left; position: sticky; left: 0; background: var(--card); font-weight: 400; color: var(--ink2); }
.dtable thead th { position: sticky; top: 0; background: var(--card); cursor: pointer; font-weight: 600; color: var(--ink2); z-index: 2; }
.dtable thead th:first-child { z-index: 3; }
.dtable thead th small { font-weight: 400; color: var(--muted); margin-left: 4px; }
.dtable thead tr.sum th, .dtable thead tr.sum td { position: static; cursor: default; background: var(--wash); color: var(--ink2); }
.dtable td.miss { background: color-mix(in srgb, var(--bad) 28%, transparent); color: var(--ink); }
.dtable td.part { background: color-mix(in srgb, var(--bad) 12%, transparent); }
.dtable tr.nodata td { background: var(--wash); color: var(--muted); text-align: left; }
.dtable tr.nodata th { color: var(--muted); }
.tpager { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px 10px; margin-top: 10px; font-size: 13px; color: var(--ink2); }
.tpager label { display: flex; align-items: center; gap: 6px; margin-left: 8px; }
.tnav { display: flex; align-items: center; gap: 8px; }
@media (max-width: 520px) { .dglab { width: 100%; } }

/* drying log */
.kvrow { display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 15px; color: var(--ink2); }
.kvrow b { font-weight: 500; color: var(--ink); }
.panel .hint { margin: 10px 0 0; }
.tscroll { overflow-x: auto; }
.ltable { width: 100%; border-collapse: collapse; font-size: 15px; font-variant-numeric: tabular-nums; }
.ltable th { text-align: left; font-weight: 500; font-size: 13px; color: var(--ink2); padding: 4px 12px 6px 0; border-bottom: 1px solid var(--line); white-space: nowrap; }
.ltable td { padding: 6px 12px 6px 0; border-bottom: 1px solid var(--line); white-space: nowrap; }
.ltable tbody tr:last-child td { border-bottom: 0; }
.ltable tfoot td { font-weight: 600; border-top: 1px solid var(--line); border-bottom: 0; }
.ltable .r { text-align: right; }
.lentry .ehead { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 10px; margin-bottom: 6px; }
.lentry .when { font-weight: 600; }
.badge { font-size: 12px; padding: 2px 9px; border-radius: 99px; background: var(--wash); color: var(--ink2); }
.badge.change { background: var(--accent); color: #fff; }
.lentry .metrics { font-size: 14px; color: var(--ink2); font-variant-numeric: tabular-nums; }
.lentry p { margin: 8px 0 0; }
.lentry .chg { margin: 8px 0 0; padding: 0; list-style: none; font-weight: 500; color: var(--accent); }
.lentry .warnline { margin-top: 8px; font-size: 14px; color: var(--warn); }
@media (max-width: 560px) { .ltable .opt { display: none; } }
/* drying log: weight table, charts, status entries */
.wtable td { vertical-align: top; }
.wtable .wsub { display: block; font-size: 12px; color: var(--muted); font-weight: 400; }
.gkey { display: inline-block; width: 12px; height: 3px; border-radius: 2px; margin: 0 8px 4px 0; vertical-align: middle; }
.gkey.dash { background: repeating-linear-gradient(90deg, var(--muted) 0 4px, transparent 4px 6px) !important; }
.chart.small { min-height: 0; }
.chartpanel .h3gap { margin-top: 18px; }
.chartpanel > .hint { margin: 4px 0 0; }
.ctip { position: absolute; top: 6px; z-index: 5; pointer-events: none; padding: 6px 10px; border-radius: 8px;
  background: var(--card); box-shadow: 0 0 0 1px var(--ring), 0 4px 14px rgba(0, 0, 0, .14);
  font-size: 13px; line-height: 1.5; white-space: nowrap; color: var(--ink2); font-variant-numeric: tabular-nums; }
.ctip .th { color: var(--ink); font-weight: 600; }
.ctip b { color: var(--ink); font-weight: 500; }
.ctip i { display: inline-block; width: 10px; height: 3px; border-radius: 2px; margin: 0 6px 3px 0; vertical-align: middle; }
.lentry.status { box-shadow: 0 0 0 2px var(--accent); }
.badge.status { background: var(--accent); color: #fff; font-weight: 600; }
.stat.status { box-shadow: 0 0 0 1px var(--accent); }

/* areas (14.10.2026, 15.10.2026): tabs Now, History, Log, Modes; on a phone they get their own row */
.tabs { display: flex; gap: 2px; margin-left: 10px; }
.tabs a { padding: 6px 12px; border-radius: 9px; font-size: 15px; color: var(--ink2); }
.tabs a:hover { background: var(--wash); color: var(--ink); }
.tabs a.on { background: var(--card); color: var(--ink); font-weight: 600; box-shadow: var(--shadow); }
/* System behind the gear, fixed in the bottom right corner (15.10.2026) */
.gear { position: fixed; right: 16px; bottom: 16px; z-index: 20; display: grid; place-items: center; width: 44px; height: 44px;
  border-radius: 50%; color: var(--ink2); background: var(--card); box-shadow: var(--shadow); }
.gear:hover, .gear.on { color: var(--accent); background: var(--card2); }
.unitin.span2 input { width: 76px; }
footer { padding-bottom: 48px; }        /* room for the gear */
.histhead { flex-wrap: wrap; row-gap: 10px; }
.presets { flex-wrap: wrap; }

/* Now: small caps captions, one big value per area, state by colour and symbol */
.cap2 { font-size: 12px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.small { font-size: 14px; color: var(--muted); }
.nowgrid { display: grid; gap: 18px; grid-template-columns: 1fr 1.25fr; margin-bottom: 18px; }
.card, .dev { background: var(--card); border-radius: 26px; box-shadow: var(--shadow); transition: background .15s; }
.card:hover, .dev:hover { background: var(--card2); }
.card { display: flex; flex-direction: column; gap: 6px; padding: 30px 34px; min-width: 0; min-height: 340px; }
.trio b small, .dev b small { font-size: .42em; color: var(--muted); font-weight: 400; margin-left: 4px; letter-spacing: 0; }
.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; flex: 1; align-content: center; }
.trio .v { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.trio b { font-size: 54px; font-weight: 400; letter-spacing: -.03em; line-height: 1.05; white-space: nowrap; }
.spark { position: relative; height: 72px; margin-top: 14px; }
.spark svg { width: 100%; height: 100%; display: block; overflow: visible; }
.spark path { vector-effect: non-scaling-stroke; }
.spark .sv { fill: none; stroke: var(--c); stroke-width: 2.4; stroke-linecap: round; }
.spark .st { fill: none; stroke: var(--c); stroke-opacity: .55; stroke-width: 1.3; stroke-dasharray: 3 5; }
.spark i, .wp.now { position: absolute; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: var(--c);
  box-shadow: 0 0 0 3px var(--card), 0 0 14px 2px var(--c); }
.spark i { right: -5px; margin-left: 0; }
.spark i::after, .wp.now::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid var(--c);
  opacity: 0; animation: pulse 2.8s ease-out infinite; }
@keyframes pulse { 0% { transform: scale(.5); opacity: .7; } 70%, 100% { transform: scale(1.6); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .spark i::after, .wp.now::after { animation: none; } }
.card:hover .spark i, .card:hover .wp.now { box-shadow: 0 0 0 3px var(--card2), 0 0 14px 2px var(--c); }
.trio .v .cap2 { color: var(--c); }
/* RH above its band red, below it yellow, as the tints of the band */
.trio .v.hi b { color: var(--bad); }
.trio .v.lo b { color: var(--warn); }
#nClim, #nProg { position: relative; }
#nClim > .info:first-child { position: absolute; top: 26px; right: 28px; }
.card .lowdp { color: var(--ink2); }
.devs { display: grid; gap: 18px; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 18px; }
.dev { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto auto; column-gap: 20px; align-items: center;
  padding: 24px 28px; border: 0; text-align: left; font: inherit; color: inherit; cursor: pointer; min-width: 0; }
.dev .ico { grid-row: 1 / 4; }
.dev b { font-size: 34px; font-weight: 400; letter-spacing: -.02em; line-height: 1.2; }
.dev .small:empty::before { content: "\00a0"; }
.ico { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--wash); color: var(--muted); flex: none; }
.ico svg { width: 24px; height: 24px; }
.dev.on .ico, .ico.lit { background: color-mix(in srgb, var(--c) 20%, transparent); color: var(--c); box-shadow: 0 0 18px -4px var(--c); }
/* drying card: mode, phase, weight from the wet start towards the target */
.hhead { display: flex; align-items: center; gap: 10px; }
.modetag { font-size: 13px; font-weight: 600; padding: 3px 11px; border-radius: 99px; background: var(--accentbg); color: var(--accent); }
.titlerow { display: flex; align-items: baseline; gap: 16px; margin-top: 16px; }
.title { font-size: 52px; font-weight: 400; letter-spacing: -.02em; line-height: 1.05; }
.titlesub { font-size: 20px; color: var(--ink2); }
.wnum { display: flex; align-items: baseline; gap: 10px; margin-top: 18px; }
.wnum b { font-size: 40px; font-weight: 400; letter-spacing: -.02em; }
.wnum b small { font-size: .42em; color: var(--muted); margin-left: 4px; }
.wnum .of { font-size: 18px; color: var(--muted); }
.wnum .wt { font-size: 18px; color: var(--ink2); }
.wcurve { position: relative; height: 150px; margin: 14px 0 26px; }
.wcurve svg { width: 100%; height: 100%; display: block; overflow: visible; }
.wcurve path { vector-effect: non-scaling-stroke; }
.wcurve .cv { fill: none; stroke: var(--c); stroke-width: 2.6; stroke-linecap: round; }
.wcurve .dl { stroke: var(--line); stroke-width: 1; }
.wcurve .tb { fill: var(--good); fill-opacity: .1; }
.wcurve .tl { stroke: var(--good); stroke-width: 1.4; stroke-dasharray: 4 5; }
.wcurve .nowl { stroke: var(--muted); stroke-opacity: .5; stroke-width: 1; stroke-dasharray: 2 4; }
.wcurve .ev { fill: none; stroke: var(--c); stroke-width: 2.2; stroke-dasharray: 1 5; stroke-linecap: round; }
.wcurve .pl { fill: none; stroke: var(--ink2); stroke-opacity: .7; stroke-width: 1.4; stroke-dasharray: 6 5; }
.strow .pbtn { padding: 3px 12px; font-size: 14px; }
.wp { position: absolute; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: var(--card); box-shadow: inset 0 0 0 2px var(--c); }
.ticks { position: absolute; left: 0; right: 0; bottom: -24px; height: 16px; }
.ticks span { position: absolute; transform: translateX(-50%); font-size: 12px; color: var(--muted); white-space: nowrap; }
.ticks span.cur { color: var(--ink); font-weight: 600; }
/* device sheet: from the bottom on a phone, centred on a desktop */
.sheet { border: 0; padding: 26px 30px 24px; width: min(640px, calc(100vw - 24px)); border-radius: 24px; background: var(--card); color: var(--ink);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .3); }
.sheet::backdrop { background: rgba(0, 0, 0, .4); }
.shhead { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.shhead h2 { display: flex; align-items: center; gap: 12px; margin: 0; font-size: 20px; font-weight: 600; }
.shx { border: 0; background: var(--wash); color: var(--ink2); width: 34px; height: 34px; border-radius: 50%; font-size: 20px; cursor: pointer; }
.shrows div { display: flex; justify-content: space-between; gap: 14px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.shrows span { color: var(--ink2); }
.shrows b { font-weight: 500; text-align: right; }
.shchart { margin: 14px 0 6px; position: relative; }
.shlink { display: inline-block; margin-top: 6px; color: var(--accent); font-size: 15px; }
/* firmware window (15.10.2026), opened by the pencil at Build on System */
.strow .mpen { width: 28px; height: 28px; margin: -4px -6px -4px 0; }
.fwfiles { display: grid; gap: 6px; margin-top: 14px; }
.fwfile { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; border: 0; cursor: pointer; font: inherit;
  color: var(--ink); text-align: left; padding: 9px 12px; border-radius: 10px; background: var(--page); box-shadow: inset 0 0 0 1px var(--ring); }
.fwfile b { font-weight: 500; }
.fwfile small { color: var(--muted); font-size: 13px; overflow-wrap: anywhere; text-align: right; }
.fwfile.on { box-shadow: inset 0 0 0 2px var(--accent); }
.fwfile:disabled { opacity: .5; cursor: default; }
.fwpick { margin: 12px 0 4px; }
.fwpick label { cursor: pointer; }
.eqv { box-shadow: 0 0 0 2px var(--bad), var(--shadow); }
.eqhead { display: flex; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.eqhead > div { flex: 1 1 240px; display: flex; flex-direction: column; gap: 4px; }
.eqhead b { font-size: 18px; } .eqhead small, .eqrun, .eqsteps small { color: var(--muted); }
.eqsteps { list-style: none; padding: 0; margin: 14px 0 6px; display: grid; gap: 6px; }
.eqsteps li { padding: 6px 10px; border-radius: 9px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 10px; }
.eqsteps li.done { color: var(--ink2); } .eqsteps li.done::before { content: "✓"; }
.eqsteps li.now { background: var(--wash); color: var(--ink); font-weight: 600; box-shadow: inset 3px 0 0 var(--accent); }
.eqchart { margin-top: 10px; }
.eqchart svg { width: 100%; height: 130px; display: block; margin-top: 10px; overflow: visible; }
.eqchart .lg { font-size: 12px; color: var(--muted); display: flex; gap: 12px; flex-wrap: wrap; }
.eqchart .lg i { display: inline-block; width: 12px; height: 3px; margin-right: 4px; vertical-align: middle; }
.fwbar { height: 6px; border-radius: 3px; background: var(--wash); overflow: hidden; margin: 10px 0 4px; }
.fwbar i { display: block; height: 100%; background: var(--accent); transition: width .5s; }
.fwcmp { width: 100%; border-collapse: collapse; font-size: 14px; margin-top: 10px; font-variant-numeric: tabular-nums; }
.fwcmp th, .fwcmp td { padding: 6px 0 6px 12px; border-bottom: 1px solid var(--line); text-align: right; }
.fwcmp th { color: var(--muted); font-weight: 500; }
.fwcmp th:first-child, .fwcmp td:first-child { text-align: left; padding-left: 0; color: var(--ink2); }
.fwcmp tr.diff td { color: var(--bad); }
.fwerr { color: var(--bad); }
.wtable .wpct { color: var(--ink2); font-size: 14px; margin-left: 4px; }
.lentry details.vals { margin-top: 6px; }
.lentry details.vals summary { cursor: pointer; font-size: 14px; color: var(--accent); width: max-content; }
.lentry p { font-size: 16px; line-height: 1.5; }

/* Drying log: runs on the left, the chosen run on the right */
.logwrap { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 18px; align-items: start; }
.runlist { position: sticky; top: 16px; display: flex; flex-direction: column; gap: 8px; max-height: calc(100vh - 32px); overflow-y: auto; }
.runlist > .cap2 { margin: 4px 4px 2px; }
.runitem { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 16px; background: var(--card); box-shadow: var(--shadow); }
.runitem:hover { background: var(--card2); }
.runitem.on { box-shadow: 0 0 0 1.5px var(--accent); }
.runitem b { font-weight: 500; }
.rloss { font-size: 14px; color: var(--ink2); margin-top: 4px; }
.runhead { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 0 4px 16px; }
.runhead > div { display: flex; flex-direction: column; gap: 2px; }
.runhead h2 { margin: 2px 0 0; font-size: 24px; font-weight: 500; }
.cols2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-bottom: 14px; }
.cols2 .panel { margin: 0; }
.jrow { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.panel h2 + .jrow { border-top: 0; padding-top: 4px; }
.jtime { display: flex; flex-direction: column; }
.jtime b { font-size: 17px; font-weight: 500; }
.jbody p { margin: 6px 0 0; line-height: 1.5; }
.jw { margin-top: 6px; font-weight: 500; }
.jrow.status { margin: 0 -22px; padding-left: 19px; padding-right: 22px; border-left: 3px solid var(--accent); background: var(--accentbg); }
.jbody .chg { margin: 6px 0 0; padding: 0; list-style: none; font-weight: 500; color: var(--accent); }
.jbody .warnline { margin-top: 6px; font-size: 14px; color: var(--warn); }
.jbody details.vals { margin-top: 6px; }
.jbody details.vals summary { cursor: pointer; font-size: 13px; color: var(--muted); width: max-content; }
.jbody .metrics { font-size: 14px; color: var(--ink2); margin-top: 4px; }

/* drying log editor */
.newrun { margin-top: 4px; }
.runlist.locked .runitem, .runlist.locked .newrun { pointer-events: none; opacity: .45; }
.editor h2 { margin: 26px 0 12px; }
.editor h2:first-child { margin-top: 0; }
.editor input, .editor select, .noteform textarea { font: inherit; font-size: 15px; color: var(--ink); background: var(--page); border: 0;
  border-radius: 9px; padding: 8px 10px; box-shadow: inset 0 0 0 1px var(--ring); min-width: 0; color-scheme: dark; }
.editor input:focus, .editor select:focus, .noteform textarea:focus { outline: 2px solid var(--accent); }
.egrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px 18px; }
.egrid label, .erow label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--ink2); }
.etable { width: 100%; border-collapse: collapse; margin-bottom: 10px; }
.etable th { text-align: left; font-size: 12px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); padding: 4px 8px 6px 0; }
.etable td { padding: 4px 8px 4px 0; }
.etable input, .etable select { width: 100%; }
.eweigh { padding: 14px 16px; margin-bottom: 12px; border-radius: 14px; background: var(--card2); }
.eweigh .etable { max-width: 520px; margin: 10px 0 0; }
.etable .netv { display: inline-block; padding: 8px 0; color: var(--muted); }
.etable .netbtn { margin-left: 6px; font-size: 11px; padding: 1px 6px; text-transform: none; letter-spacing: 0; }
.erow { display: flex; align-items: flex-end; gap: 14px; }
.erow .grow { flex: 1; }
.x { border: 0; cursor: pointer; width: 32px; height: 32px; border-radius: 50%; background: var(--wash); color: var(--ink2); font-size: 18px; line-height: 1; }
.x:hover { background: var(--badbg); color: var(--bad); }
.ebar { display: flex; align-items: center; gap: 10px; margin-top: 18px; }
.eerr { color: var(--bad); font-size: 14px; min-height: 1em; margin: 14px 0 0; }
.btn:disabled { opacity: .4; cursor: not-allowed; }
.noteform { display: flex; gap: 10px; align-items: flex-start; margin: 4px 0 10px; }
.noteform textarea { flex: 1; resize: vertical; }
.jbody { position: relative; }
.jdel { position: absolute; top: -4px; right: 0; width: 26px; height: 26px; font-size: 15px; opacity: 0; transition: opacity .15s; }
.jrow:hover .jdel { opacity: 1; }

/* History · Climate: tiles with the last 60 min, event tips */
.ttiles { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); margin-bottom: 6px; }
.ttile { display: flex; flex-direction: column; gap: 4px; padding: 20px 24px; border-radius: 22px; background: var(--card); box-shadow: var(--shadow); }
.ttile b { font-size: 40px; font-weight: 400; letter-spacing: -.02em; line-height: 1.15; }
.ttile b small { font-size: .42em; color: var(--muted); margin-left: 4px; }
.ttile .tchg { font-size: 16px; color: var(--ink2); font-variant-numeric: tabular-nums; }
.ttile .tchg.toward { color: var(--good); }
.ttile .tchg.away { color: var(--warn); }
.ttile .tword { font-size: 15px; color: var(--ink2); }
.ttile.out { box-shadow: 0 0 0 1px var(--bad); }
.ttile.out .tword { color: var(--bad); font-weight: 500; }
.evtip { top: auto; bottom: 8px; max-width: 360px; white-space: normal; }
.iconbtn { display: grid; place-items: center; width: 42px; height: 42px; border: 0; border-radius: 50%; cursor: pointer;
  background: var(--card); color: var(--ink2); box-shadow: var(--shadow); }
.iconbtn:hover { color: var(--accent); background: var(--card2); }
/* narrow screens: the tabs get their own row, less padding */
@media (max-width: 700px) {
  body { padding: 18px 14px 40px; }
  header { flex-wrap: wrap; row-gap: 10px; }
  .tabs { order: 3; width: 100%; margin: 0; justify-content: space-between; }
  .ttile b { font-size: 32px; }
}
.banner.fwb .btn:disabled { opacity: .4; cursor: not-allowed; }
.offrow { opacity: .45; }
