@font-face {
  font-family: Inter;
  src: url('/inter.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}
:root {
  font-family: Inter, Arial, sans-serif;
  color: #19332e;
  background: #f2f4ef;
  font-synthesis: none;
  --ink: #19332e;
  --muted: #52665e;
  --teal: #185f52;
  --line: #dce3db;
  --mint: #a8e4d6;
  --panel: #fffefa;
  --side: 218px;
  color-scheme: light;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-width: 300px;
  font-size: 14px;
  line-height: 1.5;
}
button,
input,
select {
  font: inherit;
}
button,
a,
summary,
input,
select {
  -webkit-tap-highlight-color: transparent;
}
button {
  min-height: 44px;
  min-width: 44px;
  background: #fffefa;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 9px 15px;
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition:
    background 0.16s,
    border-color 0.16s,
    box-shadow 0.16s;
}
button:hover:not(:disabled) {
  border-color: #93b6a8;
  background: #edf5ee;
}
button:active:not(:disabled) {
  box-shadow: inset 0 0 0 2px #164b3d29;
}
button:disabled {
  cursor: not-allowed;
  color: #68766d;
  background: #eef1eb;
  border-color: #dce2db;
}
button:focus-visible,
a:focus-visible,
summary:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid #138d79;
  outline-offset: 3px;
}
h1,
h2,
h3,
h4,
p {
  margin: 0;
}
h1,
h2,
h3 {
  line-height: 1.15;
  letter-spacing: -0.045em;
}
h1 {
  font-size: clamp(34px, 3.4vw, 53px);
  font-weight: 590;
}
h2 {
  font-size: 24px;
  font-weight: 610;
}
h3 {
  font-size: 19px;
  font-weight: 620;
}
p {
  color: var(--muted);
}
svg {
  display: block;
  flex: none;
}
small {
  font-size: 12px;
}
summary {
  cursor: pointer;
  min-height: 44px;
  align-content: center;
  font-weight: 650;
}
summary:hover {
  color: var(--teal);
}
summary:focus-visible {
  border-radius: 4px;
}
input,
select {
  min-height: 45px;
  line-height: 1.3;
  border-radius: 8px;
  background: #fafbf7;
  border: 1px solid #cbd6cc;
  color: var(--ink);
  padding: 9px 12px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}
input:disabled,
select:disabled {
  background: #f1f3ed;
  color: #6b796e;
}
input[type='checkbox'] {
  width: 20px;
  min-height: 20px;
  accent-color: var(--teal);
}
input[type='range'] {
  padding: 0;
  min-height: 44px;
  accent-color: var(--teal);
}
label {
  display: grid;
  gap: 6px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 560;
}
code,
.mono,
.countdown,
.hero-side {
  font-family: ui-monospace, 'SFMono-Regular', Consolas, monospace;
}
form {
  display: grid;
  gap: 16px;
}
.primary {
  background: var(--teal);
  border-color: var(--teal);
  color: #fff;
  min-height: 45px;
}
.primary:hover:not(:disabled) {
  background: #124f44;
  border-color: #124f44;
}
.primary:disabled {
  background: #e6ece4;
  color: #65796c;
}
.full {
  width: 100%;
}
.sr-only,
.skip {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip:focus {
  clip-path: none;
  height: auto;
  width: auto;
  background: white;
  top: 5px;
  left: 5px;
  z-index: 100;
  padding: 10px;
  color: var(--ink);
}
.app {
  display: grid;
  grid-template-columns: var(--side) minmax(0, 1fr);
  min-height: 100vh;
}
.sidebar {
  background: #112c28;
  color: #ecf4eb;
  height: 100dvh;
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  padding: 29px 16px 18px;
  border-right: 1px solid #183b35;
}
.brand-button {
  background: none;
  border: 0;
  color: inherit;
  justify-content: flex-start;
  padding: 0 7px;
  text-align: left;
  border-radius: 4px;
  width: fit-content;
}
.brand-button:hover:not(:disabled) {
  background: none;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  line-height: 1.05;
}
.brand > span:last-child {
  font-size: 23px;
  font-weight: 630;
  letter-spacing: -0.06em;
}
.brand small {
  display: block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.048em;
  color: #b8cbc1;
  margin-top: 6px;
}
.brand-slash {
  color: #a8dfca;
  margin: 0 2px;
  font-weight: 370;
}
.brand-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid #53786b;
  border-radius: 12px;
  color: #bde6ce;
  background: #213e35;
}
.nav-section-label,
.kicker,
.hero-side {
  font-size: 10px;
  font-weight: 680;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.nav-section-label {
  margin: 53px 14px 10px;
  color: #a5c0b3;
}
.sidebar nav {
  display: grid;
  gap: 6px;
}
.nav-link {
  justify-content: flex-start;
  color: #c6d6cc;
  background: transparent;
  border: 1px solid transparent;
  padding: 10px 12px;
  font-weight: 520;
  font-size: 13px;
  gap: 11px;
}
.nav-link svg {
  color: #b4ccbc;
}
.nav-link:hover:not(:disabled),
.lock-button:hover:not(:disabled) {
  background: #233e34;
  color: #fff;
  border-color: transparent;
}
.nav-link.selected,
.nav-link.selected:hover:not(:disabled) {
  color: #1f4032;
  background: #c1e8d2;
  font-weight: 650;
}
.nav-link.selected svg {
  color: #285944;
}
.nav-link.admin-link {
  margin-top: 26px;
}
.sidebar-bottom {
  margin-top: auto;
}
.host {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 5px 13px 7px;
  border-top: 1px solid #345047;
  border-bottom: 1px solid #345047;
}
.host small,
.host b {
  display: block;
}
.host b {
  font-size: 12px;
  letter-spacing: 0.055em;
}
.host small {
  font-size: 11px;
  color: #aec2b6;
}
.host-symbol {
  display: grid;
  place-items: center;
  height: 33px;
  width: 33px;
  border-radius: 9px;
  background: #284338;
  color: #bfdec9;
}
.host i,
.measure-caption i,
.live i,
.chip i,
footer i,
.mode-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #8e9c90;
  display: inline-block;
  flex: none;
}
.host i {
  margin-left: auto;
}
.host .online,
footer .online {
  background: #72be9a;
}
.lock-button {
  background: none;
  border: 0;
  padding: 8px;
  font-size: 12px;
  color: #c3d6c9;
  justify-content: flex-start;
  width: 100%;
  margin-top: 8px;
}
.app main {
  min-width: 0;
}
.top-bar {
  height: 66px;
  border-bottom: 1px solid var(--line);
  padding: 0 clamp(24px, 3vw, 50px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f7f8f3;
  gap: 12px;
}
.crumb,
.top-actions,
.live,
.chip,
.mode-chip,
.kicker,
.hero-label,
.measure-caption,
.chart-legend,
.axis,
.stop {
  display: flex;
  align-items: center;
}
.crumb {
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
}
.crumb svg:first-child {
  color: #527969;
}
.crumb b {
  color: #364b3f;
  font-weight: 650;
}
.top-actions {
  gap: 20px;
}
.live {
  gap: 7px;
  font-size: 12px;
  color: #58665a;
  white-space: nowrap;
}
.live.good i {
  background: #3e8d64;
  box-shadow: 0 0 0 3px #dbe9dc;
}
.stop {
  min-height: 38px;
  padding: 7px 12px;
  border-color: #e5cfc5;
  color: #8c4835;
  background: #fdf6ef;
  font-size: 12px;
}
.stop:hover:not(:disabled) {
  border-color: #ae6854;
  background: #ffebdd;
}
.content {
  max-width: 1580px;
  margin: auto;
  padding: 30px clamp(24px, 3vw, 50px) 0;
}
.title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}
.date-label {
  color: #577062;
  margin-bottom: 7px;
  font-size: 10px;
}
.mode-chip,
.chip {
  border-radius: 999px;
  gap: 6px;
  white-space: nowrap;
  font-size: 11px;
  font-weight: 620;
  color: #48604a;
  background: #e9eee5;
  border: 1px solid #d5dfd1;
  padding: 5px 9px;
  line-height: 1.2;
}
.mode-chip {
  padding: 7px 11px;
  color: #3c5d51;
  border-color: #cadad0;
  background: #e8f0e7;
}
.mode-chip.sim {
  background: #f4eddc;
  border-color: #e5d9bb;
  color: #755619;
}
.mode-chip.sim .mode-dot {
  background: #b48736;
}
.mode-dot {
  width: 6px;
  height: 6px;
  background: #638573;
}
.kicker {
  gap: 6px;
  color: #567061;
}
.banner {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  border: 1px solid #d5dccb;
  background: #eef2e6;
  padding: 12px 16px;
  border-radius: 12px;
  margin-bottom: 16px;
  font-size: 13px;
}
.banner > svg {
  margin-top: 2px;
}
.banner p {
  color: inherit;
  line-height: 1.45;
  margin-top: 1px;
}
.banner.alarm {
  color: #862e22;
  background: #fff0e8;
  border-color: #e7b5a2;
}
.banner.warning {
  color: #724b1f;
  background: #f9eedb;
  border-color: #e1cead;
}
.banner.active-banner {
  background: #e6f2eb;
}
.active-window {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}
.active-window button,
.active-banner button {
  min-height: 36px;
  font-size: 12px;
}
.overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.95fr) minmax(252px, 1fr);
  gap: 16px;
  align-items: stretch;
}
.panel,
.card {
  border: 1px solid var(--line);
  border-radius: 17px;
  background: var(--panel);
  min-width: 0;
}
.panel,
.settings-card {
  padding: 22px;
}
.section-head,
.card-head,
.block-heading,
.setting-row,
.switch-row,
.light-title,
.datum,
.small-proof,
.run-window > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.water-card {
  background: #0a383b;
  color: #ecfcf3;
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 17px;
  overflow: hidden;
  min-height: 280px;
}
.water-card:before,
.login-scene:before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: linear-gradient(90deg, #0b3434a6 0%, #0b34341a 59%, #04282e00), url('/water.webp');
  background-size: cover;
  background-position: center;
}
.hero-interior {
  padding: 23px 26px 21px;
  flex: 1;
}
.hero-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.hero-label {
  gap: 8px;
  font-size: 14px;
  font-weight: 570;
}
.hero-label svg {
  color: #b6ebdb;
}
.unit-switch {
  display: flex;
  border: 1px solid #ffffff57;
  border-radius: 9px;
  background: #08302dba;
  padding: 2px;
}
.unit-switch button {
  background: transparent;
  color: #e2f1e7;
  border: 0;
  padding: 2px 5px;
  min-height: 33px;
  min-width: 34px;
  font-weight: 600;
  border-radius: 6px;
  font-size: 12px;
}
.unit-switch button.active,
.unit-switch button:hover:not(:disabled) {
  background: #d5eadc;
  color: #123f32;
}
.temperature-number {
  display: flex;
  align-items: flex-start;
  font-size: clamp(76px, 7.3vw, 120px);
  letter-spacing: -0.088em;
  font-weight: 420;
  font-variant-numeric: tabular-nums;
  line-height: 1.07;
  margin-top: 15px;
}
.temperature-number span {
  font-size: 0.32em;
  letter-spacing: -0.077em;
  font-weight: 480;
  margin-top: 0.47em;
  margin-left: 6px;
  color: #d8efe6;
}
.status-number {
  font-size: clamp(40px, 5vw, 77px);
  font-weight: 480;
  letter-spacing: -0.07em;
  margin: 12px 0 0;
}
.measure-caption {
  gap: 7px;
  color: #d5e6dc;
  font-size: 12px;
}
.measure-caption .signal-lit {
  background: #aae4ba;
}
.water-footer {
  padding: 12px 24px;
  background: #07292992;
  border-top: 1px solid #c0e4d333;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.water-footer > div:first-child {
  display: flex;
  align-items: center;
  gap: 10px;
}
.hero-footer-icon {
  display: grid;
  place-items: center;
  height: 34px;
  width: 34px;
  border: 1px solid #acd5be50;
  border-radius: 9px;
  color: #d3eadb;
}
.water-footer small,
.water-footer strong {
  display: block;
  line-height: 1.4;
}
.water-footer small {
  font-size: 11px;
  color: #cddfd2;
}
.water-footer strong {
  font-size: 15px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.hero-action {
  border: 1px solid #b2d8c66b;
  background: #153d35bd;
  color: #f2fff5;
  min-height: 38px;
  font-size: 12px;
}
.hero-action:hover:not(:disabled) {
  color: #193d2c;
  background: #dcf0df;
}
.hero-action:disabled {
  background: #26453b;
  color: #b4c9bd;
  border-color: #5c7665;
}
.hero-side {
  color: #cfeadd;
}
.session-panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
}
.tile-icon {
  display: inline-grid;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-items: center;
  border-radius: 11px;
  background: #e3ede0;
  color: #3f6d55;
}
.tile-icon.moss {
  background: #e0eee0;
  color: #416f4d;
}
.tile-icon.clay {
  background: #f3e7dc;
  color: #9c5b38;
}
.tile-icon.mauve {
  background: #e9e5f0;
  color: #73618a;
}
.tile-icon.sun {
  background: #f6ecd6;
  color: #957322;
}
.chip {
  border: 0;
  font-size: 10px;
  font-weight: 580;
  letter-spacing: 0;
  padding: 5px 8px;
}
.chip.neutral {
  background: #eef1eb;
  color: #536650;
}
.chip.neutral i {
  background: #879a84;
}
.chip.green {
  background: #dfeddf;
  color: #326345;
}
.chip.green i {
  background: #46875b;
}
.chip.warm {
  background: #f7e7d9;
  color: #81522e;
}
.chip.warm i {
  background: #ad6c42;
}
.session-panel h2 {
  font-size: 23px;
}
.session-data {
  display: grid;
  gap: 4px;
  margin-bottom: 6px;
}
.datum {
  font-size: 12px;
  padding: 7px 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}
.datum:last-child {
  border-bottom: 0;
}
.datum > span,
.small-proof > span {
  color: var(--muted);
}
.datum strong,
.small-proof b {
  font-size: 12px;
  font-weight: 610;
  overflow-wrap: anywhere;
  text-align: right;
}
.datum .positive {
  color: #326d50;
}
.block-heading {
  margin: 26px 0 12px;
}
.block-heading h2 {
  font-size: 23px;
}
.block-heading > span {
  color: var(--muted);
  font-size: 12px;
}
.equipment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr));
  gap: 12px;
}
.equipment {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.equipment .section-head {
  margin-bottom: 13px;
  gap: 3px;
  align-items: flex-start;
}
.equipment h3 {
  font-size: 18px;
}
.equipment p {
  font-size: 12px;
}
.equipment .segmented,
.switch-row,
.equipment-note {
  margin-top: 15px;
}
.segmented {
  display: flex;
  padding: 3px;
  background: #edf0e9;
  border: 1px solid #e2e7df;
  border-radius: 9px;
}
.segmented button {
  border-radius: 6px;
  flex: 1;
  border: 1px solid transparent;
  background: none;
  min-width: 0;
  min-height: 38px;
  padding: 5px 7px;
  font-size: 12px;
}
.segmented button.active {
  background: white;
  border-color: #d2dccf;
  color: #28563f;
  box-shadow: 0 1px 2px #203b1b0e;
}
.segmented button:disabled {
  cursor: not-allowed;
  color: #737e72;
}
.segmented button.active:disabled {
  background: #f9fbf6;
}
.switch-row,
.setting-row {
  font-size: 13px;
  min-height: 44px;
}
.toggle {
  position: relative;
  flex: none;
  min-width: 48px;
  width: 48px;
  min-height: 44px;
  height: 44px;
  background: transparent !important;
  border: 0;
  padding: 0;
}
.toggle:before {
  content: '';
  position: absolute;
  left: 2px;
  right: 2px;
  top: 10px;
  height: 24px;
  border-radius: 15px;
  background: #c0cbc1;
  box-shadow: inset 0 0 0 1px #788c7a44;
}
.toggle span {
  position: absolute;
  left: 5px;
  top: 13px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fffefa;
  box-shadow: 0 1px 2px #24412544;
  transition: left 0.15s;
}
.toggle.checked:before {
  background: #21715d;
}
.toggle.checked span {
  left: 25px;
}
.toggle:disabled {
  opacity: 0.63;
}
.small-proof {
  border-top: 1px solid var(--line);
  padding-top: 10px;
  margin-top: auto;
  font-size: 11px;
  min-height: 36px;
  align-items: baseline;
}
.small-proof b {
  font-size: 11px;
}
.light-more {
  margin-top: auto;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: #47634f;
}
.light-more summary {
  font-size: 12px;
  min-height: 35px;
}
.swatches,
.brightness,
.brightness label {
  display: flex;
  align-items: center;
  gap: 4px;
}
.swatches button {
  padding: 0;
  min-width: 36px;
  height: 44px;
  background: none;
  border: 0;
}
.swatches i {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid #34493e30;
}
.brightness label {
  min-width: 0;
  flex: 1;
}
.brightness button {
  padding: 4px 6px;
  font-size: 11px;
}
.equipment-note {
  min-height: 44px;
  font-size: 12px;
  display: flex;
  gap: 7px;
  align-items: center;
  color: var(--muted);
}
.setpoint {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.setpoint h2 {
  font-size: 19px;
  margin: 5px 0;
}
.setpoint p {
  font-size: 12px;
}
.setpoint-input {
  display: flex;
  gap: 8px;
  align-items: center;
}
.setpoint-input label {
  display: flex;
  gap: 3px;
  align-items: center;
}
.setpoint-input input {
  width: 74px;
}
.empty-config {
  margin-top: 15px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.empty-config p {
  flex: 1;
}
.chart-panel {
  margin-top: 20px;
}
.chart-panel .kicker {
  margin: 0 0 6px;
}
.chart-panel h2 {
  font-size: 22px;
}
.segmented.small button {
  min-width: 38px;
  min-height: 34px;
}
.chart-legend {
  margin: 16px 0 0;
  gap: 17px;
  font-size: 11px;
  color: var(--muted);
}
.chart-legend span {
  display: flex;
  align-items: center;
  gap: 6px;
}
.chart-legend i {
  width: 14px;
  height: 3px;
  border-radius: 3px;
  background: #39886c;
}
.chart-legend span:nth-child(2) i {
  background: repeating-linear-gradient(90deg, #a98750 0 4px, transparent 4px 6px);
}
.chart-legend small {
  margin-left: auto;
}
.history-plot {
  width: 100%;
  height: 135px;
  overflow: visible;
}
.history-plot text {
  fill: #536b5a;
  font:
    11px Inter,
    Arial,
    sans-serif;
}
.chart-grid {
  stroke: #dce4d8;
  stroke-dasharray: 4 5;
  vector-effect: non-scaling-stroke;
}
.chart-water,
.chart-target {
  fill: none;
  stroke: #32876c;
  stroke-width: 2.3;
  vector-effect: non-scaling-stroke;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.chart-target {
  stroke: #ad8c5b;
  stroke-width: 1.2;
  stroke-dasharray: 6 5;
}
.axis {
  justify-content: space-between;
  color: var(--muted);
  font-size: 10px;
  padding-left: 5%;
}
.empty-line {
  border-top: 1px solid var(--line);
  margin-top: 18px;
  padding: 20px 0 5px;
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 13px;
}
.settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}
.settings-card h2,
.settings-card h3 {
  margin-bottom: 10px;
}
.settings-card .tile-icon {
  margin-bottom: 14px;
}
.settings-card p,
.folded p,
.run-window p {
  font-size: 13px;
  line-height: 1.6;
}
.settings-card > p,
.folded > p {
  margin: 8px 0 16px;
}
.settings-card .card-head {
  margin-bottom: 8px;
}
.card-head h2 {
  margin: 0;
}
.admin-tools {
  display: grid;
  gap: 14px;
}
.setting-row {
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  gap: 12px;
}
.setting-row > span {
  font-weight: 600;
}
.setting-row small,
.setting-row span span {
  display: block;
  font-weight: 400;
  color: var(--muted);
  font-size: 12px;
}
.visibility-panel .setting-row {
  margin: 0;
}
.settings-card .primary {
  justify-self: start;
  margin-top: 10px;
}
.settings-card label + label {
  margin-top: 0;
}
.hardware-details summary,
.folded summary {
  font-size: 16px;
  font-weight: 650;
}
.folded,
.schedule-manager {
  margin-top: 15px;
}
.sim-tools {
  margin: 0;
  grid-column: 1/-1;
}
.profile-presets,
.preset-list,
.fault-buttons,
.day-picker {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.profile-presets {
  margin: 16px 0;
}
.profile-presets button,
.preset-list button,
.fault-buttons button,
.day-picker button {
  font-size: 12px;
}
.day-picker button {
  padding: 8px;
  min-width: 42px;
}
.day-picker .active,
.fault-active {
  background: #deeddf;
  border-color: #a7cbb5;
  color: #214f37;
}
.time-inputs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr));
  gap: 12px;
}
.folded .time-inputs {
  margin: 12px 0;
}
.locked-rules {
  margin-top: 18px;
}
.locked-rules p {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin-top: 6px;
}
.locked-rules svg {
  margin-top: 3px;
}
.run-window {
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}
.run-window > div:first-child {
  font-size: 14px;
}
.countdown {
  font-size: 28px;
  letter-spacing: -0.05em;
  margin-top: 5px;
}
.time-chip,
.info-line {
  font-size: 12px;
  color: var(--muted);
}
.run-window button {
  margin-top: 9px;
}
.time-chip {
  padding: 3px 8px;
  border-radius: 6px;
  background: #edf2e9;
}
.schedule-editor {
  min-width: 0;
  margin: 12px 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.schedule-editor .time-inputs,
.schedule-editor .day-picker,
.schedule-editor > label {
  margin-bottom: 12px;
}
.checkbox-label {
  display: flex;
  align-items: center;
}
.event {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  gap: 11px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.event:last-child {
  border: 0;
}
.event b {
  text-transform: capitalize;
}
.event p {
  font-size: 12px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  max-height: 160px;
  overflow: auto;
}
.event time {
  font-size: 11px;
  color: var(--muted);
}
.event-icon {
  background: #e6eee3;
  width: 27px;
  height: 27px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  color: #4a7154;
}
.records .section-head {
  margin-bottom: 12px;
}
footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  color: #607366;
  border-top: 1px solid var(--line);
  margin-top: 27px;
  padding: 16px 0 20px;
  font-size: 10px;
  letter-spacing: 0.02em;
}
footer span {
  display: flex;
  gap: 7px;
  align-items: center;
}
.toast {
  position: fixed;
  bottom: 20px;
  left: calc(var(--side) + 22px);
  right: 22px;
  margin: 0 auto;
  width: fit-content;
  max-width: 720px;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #f4fbf4;
  background: #17392c;
  box-shadow: 0 8px 28px #162d2140;
  padding: 8px 10px 8px 15px;
  border: 1px solid #50725b;
  border-radius: 12px;
  font-size: 13px;
}
.toast button {
  color: #fff;
  background: transparent;
  border: 0;
  padding: 4px;
  min-width: 36px;
  min-height: 38px;
}
.toast button:hover:not(:disabled) {
  background: #284b37;
}
.error {
  color: #aa362b;
}
.login {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
}
.login-scene {
  isolation: isolate;
  position: relative;
  color: white;
  padding: clamp(24px, 6vw, 100px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #0b3332;
}
.login-scene:before {
  background-position: 70% center;
}
.login-title p {
  color: #cee5d8;
  font-size: 13px;
  letter-spacing: 0.12em;
}
.login-title h1 {
  font-size: clamp(56px, 7vw, 112px);
  letter-spacing: -0.085em;
  font-weight: 440;
}
.login-form {
  display: grid;
  place-items: center;
  padding: 30px;
}
.login-form > div {
  width: min(100%, 360px);
}
.login-form .tile-icon {
  margin-bottom: 16px;
}
.login-form h2 {
  font-size: 34px;
  letter-spacing: -0.055em;
}
.login-form p {
  margin: 9px 0 24px;
}
.login-form .error {
  margin: 0;
}
@media (min-width: 1450px) {
  :root {
    --side: 240px;
  }
  .content {
    padding-top: 38px;
  }
  .equipment-grid {
    gap: 16px;
  }
  .water-card {
    min-height: 310px;
  }
  .hero-interior {
    padding: 30px;
  }
  .session-panel {
    padding: 27px;
  }
  .equipment {
    padding: 22px;
  }
  .water-footer {
    padding: 14px 30px;
  }
}
@media (max-width: 1160px) {
  :root {
    --side: 180px;
  }
  .sidebar {
    padding-left: 10px;
    padding-right: 10px;
  }
  .nav-link {
    font-size: 12px;
  }
  .overview-grid {
    grid-template-columns: minmax(0, 1.6fr) minmax(225px, 1fr);
  }
  .content {
    padding-left: 24px;
    padding-right: 24px;
  }
  .equipment-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .equipment {
    padding: 20px;
  }
  .equipment .section-head {
    margin-bottom: 9px;
  }
}
@media (max-width: 850px) {
  :root {
    --side: 74px;
  }
  .sidebar {
    padding: 20px 9px 9px;
  }
  .brand-button {
    margin: auto auto 30px;
    padding: 0;
  }
  .sidebar .brand > span:last-child,
  .nav-section-label,
  .nav-link span,
  .host > div,
  .host > i,
  .lock-button {
    display: none;
  }
  .sidebar nav {
    margin-bottom: auto;
  }
  .nav-link {
    justify-content: center;
    padding: 10px;
  }
  .nav-link.admin-link {
    margin-top: 16px;
  }
  .sidebar-bottom {
    margin-top: 0;
  }
  .host {
    justify-content: center;
    padding: 12px 0;
    border-bottom: 0;
  }
  .top-bar {
    height: 59px;
  }
  .overview-grid {
    grid-template-columns: minmax(0, 1.5fr) minmax(214px, 1fr);
  }
  .hero-interior,
  .panel,
  .settings-card {
    padding: 19px;
  }
  .water-footer {
    padding: 12px 18px;
  }
  .water-card {
    min-height: 255px;
  }
  .content {
    padding: 23px 20px 0;
  }
  .temperature-number {
    font-size: 84px;
  }
}
@media (max-width: 650px) {
  :root {
    --side: 0px;
  }
  .app {
    display: block;
  }
  .sidebar {
    position: fixed;
    bottom: 0;
    top: auto;
    left: 0;
    right: 0;
    height: auto;
    z-index: 12;
    padding: 5px 6px calc(5px + env(safe-area-inset-bottom));
    border: 0;
    border-top: 1px solid #375248;
  }
  .sidebar .brand-button,
  .sidebar-bottom {
    display: none;
  }
  .sidebar nav {
    display: flex;
    justify-content: space-around;
    gap: 2px;
    align-items: stretch;
  }
  .nav-link,
  .nav-link.admin-link {
    margin: 0;
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 5px 2px;
    min-height: 45px;
  }
  .nav-link span {
    display: block;
    font-size: 9px;
    font-weight: 620;
    line-height: 1.3;
    letter-spacing: -0.025em;
  }
  .nav-link.selected,
  .nav-link.selected:hover:not(:disabled) {
    background: #29483d;
    color: #d0f3db;
  }
  .nav-link.selected svg {
    color: #c1ebd0;
  }
  .top-bar {
    position: sticky;
    top: 0;
    z-index: 6;
    height: 54px;
    padding: 0 14px;
  }
  .crumb {
    font-size: 11px;
    gap: 5px;
  }
  .crumb svg:first-child {
    width: 17px;
  }
  .crumb svg:nth-child(3),
  .crumb {
    white-space: nowrap;
  }
  .top-actions {
    gap: 8px;
  }
  .live {
    font-size: 10px;
    gap: 5px;
  }
  .stop {
    min-height: 42px;
    font-size: 11px;
    padding: 4px 8px;
  }
  .content {
    padding: 21px 14px calc(75px + env(safe-area-inset-bottom));
  }
  .title-row {
    margin-bottom: 16px;
    gap: 8px;
  }
  .date-label {
    font-size: 9px;
    margin-bottom: 6px;
  }
  .mode-chip {
    font-size: 10px;
    padding: 6px 8px;
  }
  h1 {
    font-size: 34px;
  }
  .overview-grid,
  .settings-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .water-card {
    min-height: 235px;
  }
  .hero-interior {
    padding: 19px 19px 17px;
  }
  .temperature-number {
    font-size: 89px;
    line-height: 1;
    margin: 9px 0 4px;
  }
  .hero-label {
    font-size: 13px;
  }
  .hero-top {
    align-items: center;
  }
  .water-footer {
    padding: 9px 17px;
  }
  .session-panel {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 9px 10px;
    padding: 16px;
  }
  .session-panel .section-head {
    grid-column: 1/-1;
    margin: 0;
  }
  .session-panel h2 {
    font-size: 21px;
    grid-column: 1/-1;
  }
  .session-panel .section-head .tile-icon {
    width: 30px;
    height: 30px;
  }
  .session-data {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 3px 12px;
    margin: 0;
    grid-column: 1/-1;
  }
  .session-data .datum {
    flex: 1;
    min-width: 100px;
    border: 0;
    padding: 3px 0;
  }
  .session-panel .primary {
    grid-column: 1/-1;
  }
  .block-heading {
    margin: 20px 0 10px;
  }
  .block-heading h2 {
    font-size: 21px;
  }
  .block-heading span {
    font-size: 11px;
  }
  .equipment-grid {
    gap: 9px;
  }
  .equipment {
    padding: 13px 12px;
  }
  .equipment h3 {
    font-size: 16px;
  }
  .equipment p,
  .small-proof > span,
  .small-proof b {
    font-size: 10px;
  }
  .equipment .section-head {
    gap: 3px;
    margin-bottom: 8px;
  }
  .equipment .chip {
    font-size: 8px;
    padding: 4px 5px;
    gap: 4px;
  }
  .equipment .tile-icon {
    height: 29px;
    width: 29px;
    border-radius: 9px;
  }
  .equipment .tile-icon svg {
    width: 17px;
    height: 17px;
  }
  .equipment .segmented {
    padding: 2px;
  }
  .equipment .segmented button {
    min-height: 40px;
    padding: 3px 0;
  }
  .switch-row,
  .equipment-note {
    font-size: 11px;
  }
  .toggle {
    min-width: 44px;
  }
  .toggle.checked span {
    left: 21px;
  }
  .chart-panel .section-head {
    align-items: flex-start;
  }
  .chart-panel .kicker {
    font-size: 9px;
  }
  .chart-panel h2 {
    font-size: 19px;
  }
  .history-plot {
    height: 112px;
  }
  .toast {
    bottom: calc(69px + env(safe-area-inset-bottom));
    left: 10px;
    right: 10px;
    max-width: calc(100% - 20px);
  }
  .settings-card,
  .chart-panel,
  .records,
  .folded {
    padding: 16px;
  }
  .event {
    grid-template-columns: 22px minmax(0, 1fr);
    gap: 7px;
  }
  .event time {
    grid-column: 2;
  }
  .event-icon {
    width: 22px;
    height: 22px;
  }
  .login {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(210px, 0.8fr) 1fr;
  }
  .login-title h1 {
    font-size: 62px;
  }
  .login-scene {
    padding: 28px;
  }
  .login-form {
    padding: 25px 20px 40px;
    place-items: start center;
  }
  .sim-tools {
    grid-column: auto;
  }
}
@media (max-width: 365px) {
  .top-bar .crumb {
    font-size: 0;
  }
  .top-bar .crumb b {
    font-size: 12px;
  }
  .top-bar .crumb svg:nth-child(3) {
    display: none;
  }
  .equipment-grid {
    grid-template-columns: 1fr;
  }
  .equipment .section-head {
    align-items: center;
  }
  .equipment .chip,
  .equipment p,
  .small-proof > b {
    font-size: 11px;
  }
  .title-row {
    align-items: flex-start;
  }
  .mode-chip {
    margin-top: 4px;
  }
  .content {
    padding-left: 10px;
    padding-right: 10px;
  }
  .sidebar nav {
    gap: 0;
  }
  .nav-link span {
    font-size: 8px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
.mobile-lock {
  display: none;
}
@media (max-width: 850px) {
  .mobile-lock {
    display: flex;
    font-size: 11px;
    padding: 5px 8px;
    min-height: 44px;
  }
  footer {
    flex-wrap: wrap;
    justify-content: flex-start;
  }
  footer span:last-child {
    margin-left: auto;
  }
}
ph-fragment {
  display: contents;
}
.water-footer div:has(> .hero-footer-icon) {
  display: flex;
  align-items: center;
  gap: 10px;
}
.unit-switch button {
  min-height: 40px;
  min-width: 40px;
}
.hero-action,
.stop {
  min-height: 44px;
}
.segmented button,
.segmented.small button {
  min-height: 42px;
}
.segmented.small button {
  min-width: 42px;
}
.light-more summary {
  min-height: 42px;
}
.equipment .segmented button {
  min-height: 42px;
}
@media (max-width: 850px) and (min-width: 651px) {
  .sidebar .brand-button {
    margin: 0 auto 30px;
  }
}
@media (max-width: 650px) {
  .admin-tools {
    display: contents;
  }
  .admin-tools > .settings-card:first-child {
    order: -1;
  }
  .visibility-panel {
    order: 0;
  }
  .hardware-details {
    order: 1;
  }
  .unit-switch button {
    min-width: 38px;
    min-height: 38px;
  }
  .equipment .segmented button {
    min-height: 44px;
  }
  .nav-link span {
    font-size: 10px;
  }
}
.nav-link {
  transition: none;
}
button[hidden] {
  display: none;
}
/* Saved comfort preferences and explicit lighting requests. */
.comfort-panel{margin-bottom:22px}.comfort-panel h2{margin:0}.comfort-select{display:flex;gap:14px;align-items:end;flex-wrap:wrap}.comfort-select label{flex:1;min-width:180px}.comfort-panel label,.comfort-editor label,.color-values label{display:flex;flex-direction:column;gap:6px}.comfort-loaded{margin-top:16px;padding-top:12px;border-top:1px solid var(--line,#e0e5df)}.comfort-loaded button{margin-right:10px}.comfort-editor{margin-top:22px}.comfort-fields{display:flex;gap:14px;flex-wrap:wrap}.comfort-fields>label{flex:1;min-width:150px}.comfort-check{display:flex!important;flex-direction:row!important;align-items:center;gap:8px;margin:15px 0}.comfort-check input{width:auto}.comfort-actions{display:flex;gap:12px;margin-top:18px}.color-controls{display:flex;gap:16px;align-items:center;flex-wrap:wrap}.color-wheel{width:190px;height:190px;touch-action:none;cursor:crosshair;flex:none}.color-wheel:focus-visible{outline:3px solid #298b71;border-radius:50%;outline-offset:3px}.color-wheel[aria-disabled=true]{opacity:.4;cursor:default}.color-values{display:grid;gap:8px;flex:1;min-width:110px}.selected-color{display:flex;align-items:center;gap:8px;font:12px monospace}.selected-color i{width:24px;height:24px;border-radius:50%;border:1px solid #9aa69d}.brightness-control{display:grid;grid-template-columns:1fr 76px;gap:10px;margin-top:18px}.brightness-control label{display:flex;flex-direction:column;gap:8px}.brightness-control button{grid-column:1/-1}.observer-terminal{margin:12px 0}@media(max-width:600px){.comfort-fields{display:block}.comfort-fields>label{margin-bottom:12px}.color-controls{justify-content:center}.color-values{width:100%}.comfort-select button{width:100%}}

.workspace-links{display:flex;align-items:center;flex-wrap:wrap;gap:8px 18px}.workspace-links a{display:inline-flex;align-items:center;min-height:44px;color:var(--ink,#17372c);font-size:14px;text-decoration:underline;text-underline-offset:3px}.login-form .workspace-links{margin-top:20px}footer .workspace-links{margin-left:auto}@media(max-width:650px){footer .workspace-links{margin-left:0;flex-basis:100%;justify-content:center}}
