:root {
  --canvas: #f7f8f3;
  --surface: #fff;
  --ink: #243c32;
  --body: #4e6259;
  --muted: #87938c;
  --green: #2d7656;
  --green-deep: #183f32;
  --green-soft: #eaf3ec;
  --line: #e9eee7;
  --gold: #b28c37;
  --radius: 18px;
  --shadow: 0 4px 24px rgb(35 62 44 / 3%);
  font-family: "Segoe UI", "Microsoft YaHei", "PingFang SC", sans-serif;
  color: var(--ink);
  background: var(--canvas);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; font-size: 14px; line-height: 1.6; }
button, input, select { font: inherit; }
button { cursor: pointer; }
button, input, select { -webkit-tap-highlight-color: transparent; }
button:disabled { cursor: not-allowed; opacity: .55; }
button, a, input, select { outline-offset: 4px; }
:focus-visible { outline: 3px solid #9dc6a5; }
button { transition: background-color .16s ease, color .16s ease, box-shadow .16s ease; }
input, select { min-width: 0; }
button svg, button span { pointer-events: none; }
h1, h2, h3, p { margin: 0; }
svg { display: block; }
[hidden] { display: none !important; }
.icon { width: 20px; height: 20px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.icon-definitions { position: absolute; width: 0; height: 0; overflow: hidden; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.app-shell { display: flex; min-height: 100vh; }
.login-view { display: grid; grid-template-columns: minmax(420px, 1.05fr) minmax(440px, 1fr); min-height: 100vh; background: #f8faf3; }
.login-story { position: relative; overflow: hidden; min-height: 720px; padding: 48px 9%; background: #183f32; color: #adc698; }
.login-brand { position: relative; z-index: 2; display: flex; align-items: center; gap: 12px; color: #ecf3e2; }.login-brand > span:last-child { font-size: 27px; letter-spacing: 5px; font-weight: 600; }.login-brand small { display: block; margin-top: 2px; color: #8fae88; font-size: 8px; letter-spacing: 3.4px; font-weight: 500; }.login-story-copy { position: relative; z-index: 2; padding-top: 11vh; }.login-story-copy .eyebrow { font-size: 9px; letter-spacing: 2.5px; color: #87a580; }.login-story-copy h1 { margin-top: 21px; color: #edf2e5; font-size: clamp(34px, 3.2vw, 49px); line-height: 1.65; font-weight: 500; letter-spacing: 4px; }.login-story-copy > p:last-child { margin-top: 22px; color: #9eb590; font-size: 12px; line-height: 2.2; letter-spacing: 1px; }.login-botanical { position: absolute; width: min(89%, 590px); height: auto; right: -7%; bottom: 65px; color: #a9c18e; opacity: .8; }.login-story-footer { position: absolute; z-index: 2; display: flex; justify-content: space-between; gap: 20px; bottom: 36px; right: 9%; left: 9%; color: #7c9c77; font-size: 9px; letter-spacing: 1px; }.login-story-footer > span:last-child { font-size: 8px; letter-spacing: 2.2px; }.login-content { position: relative; display: grid; align-content: center; padding: 60px 12%; }.login-card { width: 100%; max-width: 380px; margin: 0 auto; }.login-small-leaf { display: grid; width: 44px; height: 44px; margin-bottom: 28px; color: #74916a; background: #eaf0e0; border-radius: 15px 15px 15px 3px; place-items: center; }.login-small-leaf .icon { width: 27px; height: 27px; }.login-card .eyebrow { font-size: 8px; color: #a6b199; letter-spacing: 2.2px; }.login-card h2 { margin-top: 12px; color: #345c38; font-size: 25px; font-weight: 550; letter-spacing: .5px; }.login-intro { margin-top: 11px; color: #9ca98f; font-size: 11px; line-height: 1.9; }.login-form { margin-top: 34px; }.login-form .field label { font-size: 12px; color: #6c845e; }.login-form .field input { min-height: 50px; border-color: #dde6d3; border-radius: 9px; background: #fff; font-size: 13px; }.login-form .field + .field { margin-top: 22px; }.login-error { min-height: 19px; margin-top: 12px; color: #b57c65; font-size: 10px; line-height: 1.8; }.login-submit { width: 100%; justify-content: space-between; min-height: 49px; margin-top: 8px; padding-left: 19px; padding-right: 19px; border-radius: 9px; letter-spacing: .5px; }.login-submit .icon { width: 18px; height: 18px; }.login-demo { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 26px; color: #a4b195; font-size: 10px; }.login-demo button { display: inline-flex; align-items: center; gap: 5px; min-height: 40px; padding: 7px; color: #769968; background: transparent; border: 0; border-radius: 6px; font-size: 11px; }.login-demo button:hover { background: #eaf1e1; }.login-demo .icon { width: 13px; height: 13px; }.login-data-note { margin-top: 4px; color: #b4bfaa; font-size: 9px; text-align: center; line-height: 1.9; }.login-copyright { position: absolute; left: 0; right: 0; bottom: 32px; text-align: center; color: #b9c3af; font-size: 9px; letter-spacing: 1px; }
.sidebar-user { display: flex; align-items: center; gap: 9px; margin-top: 21px; color: #a7bda5; font-size: 10px; }.user-avatar { display: grid; place-items: center; width: 27px; height: 27px; background: #31563d; border: 1px solid #466846; color: #b4cba4; border-radius: 50%; font-size: 11px; }.logout-button { min-height: 40px; padding: 9px 4px; border: 0; border-radius: 5px; color: #9caa92; background: transparent; font-size: 11px; }.logout-button:hover { color: #4c7546; }.settings-entry { color: #95a78b; }.topbar-actions { gap: 20px; }
.connect-dialog { width: min(470px, calc(100% - 32px)); max-height: calc(100vh - 40px); overflow-y: auto; margin: auto; padding: 29px 32px 32px; border: 1px solid #e2e9d9; border-radius: 20px; background: #fcfdf8; color: var(--ink); box-shadow: 0 30px 100px rgb(18 47 27 / 22%); }.connect-dialog::backdrop { background: rgb(24 48 31 / 43%); backdrop-filter: blur(4px); }.connect-dialog-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }.dialog-leaf { display: grid; place-items: center; width: 42px; height: 42px; background: #e8f0de; color: #789b68; border-radius: 13px 13px 13px 3px; }.dialog-leaf .icon { width: 24px; height: 24px; }.dialog-close { display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: #f1f5e9; color: #8ba17c; font-size: 25px; line-height: 1; font-weight: 300; }.dialog-close:hover { background: #e5edd9; color: #4c7542; }.connect-dialog h2 { margin-top: 8px; color: #3c6639; font-size: 23px; font-weight: 550; }.dialog-intro { margin-top: 11px; color: #94a687; font-size: 11px; line-height: 1.9; }.connect-form { margin-top: 26px; }.connect-form input { background: #fff; min-height: 47px; }.connect-form .connection-message { margin-top: 21px; font-size: 10px; }.connect-submit { width: 100%; margin-top: 21px; min-height: 46px; }

.sidebar { position: fixed; z-index: 20; inset: 0 auto 0 0; width: 220px; display: flex; flex-direction: column; padding: 32px 19px 25px; color: #eaf2e9; background: var(--green-deep); }
.brand { display: flex; align-items: center; gap: 11px; padding: 0 9px; }
.brand-mark { display: grid; width: 43px; height: 43px; place-items: center; color: #c9deb5; background: #2f5641; border: 1px solid #65815c; border-radius: 13px 13px 13px 3px; }
.brand-mark .icon { width: 27px; height: 27px; stroke-width: 1.35; }
.brand-name { display: flex; align-items: baseline; gap: 7px; font-size: 26px; line-height: 1.25; font-weight: 650; letter-spacing: 3px; }
.brand-name span { color: #a0b99e; font-size: 8px; letter-spacing: 1.2px; font-weight: 500; }
.brand p { margin-top: 6px; color: #b0c2ae; font-size: 10px; letter-spacing: 1.7px; }
.nav-caption { margin: 52px 17px 15px; color: #90ab96; font-size: 10px; letter-spacing: 1.7px; }
.navigation { display: grid; gap: 9px; }
.nav-item { display: flex; align-items: center; gap: 13px; min-height: 50px; width: 100%; padding: 12px 17px; border: 1px solid transparent; border-radius: 10px; color: #afc3b5; background: transparent; text-align: left; font-size: 13px; letter-spacing: .5px; }
.nav-item .icon { width: 18px; height: 18px; stroke-width: 1.5; }
.nav-item:hover { color: #f0f6ec; background: #224c3b; }
.nav-item.active, .nav-item[aria-current="page"] { color: #f4f7ed; background: #335c46; border-color: #496e50; }
.nav-indicator { width: 5px; height: 5px; margin-left: auto; background: transparent; border-radius: 50%; }
.nav-item.active .nav-indicator, .nav-item[aria-current="page"] .nav-indicator { background: #b6d19d; box-shadow: 0 0 0 4px rgb(182 209 157 / 8%); }
.sidebar-bottom { margin-top: auto; padding: 30px 16px 0; }
.sidebar-plant { width: 155px; height: 176px; margin: 0 auto 13px; color: #90a984; stroke: currentColor; stroke-width: 1.1; opacity: .75; }
.sidebar-bottom p { color: #b3c6b1; font-size: 11px; line-height: 2; letter-spacing: 1px; }
.sidebar-signature { display: block; margin-top: 17px; padding-top: 17px; color: #7d9d87; border-top: 1px solid #345644; font-size: 8px; letter-spacing: 2px; }

.workspace { flex: 1; width: calc(100% - 220px); margin-left: 220px; min-width: 0; }
.topbar { min-height: 82px; padding: 18px 36px; display: flex; align-items: center; justify-content: space-between; gap: 20px; background: rgb(255 255 255 / 70%); border-bottom: 1px solid var(--line); }
.topbar-caption { display: flex; align-items: center; gap: 10px; color: #7c8d7f; font-size: 11px; letter-spacing: 1px; }
.tiny-leaf { display: block; width: 8px; height: 12px; border-radius: 9px 1px 9px 1px; background: #7a9c73; transform: rotate(15deg); }
.topbar-actions { display: flex; align-items: center; gap: 27px; }
.clock-wrap { display: flex; align-items: center; gap: 8px; color: #7f8d83; font-size: 11px; font-variant-numeric: tabular-nums; }
.clock-wrap .icon { width: 15px; height: 15px; color: #9ba99b; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 19px; border: 1px solid transparent; border-radius: 9px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.button .icon { width: 16px; height: 16px; }
.button-small { min-height: 40px; padding: 9px 15px; font-size: 11px; }
.button-primary { color: #fff; background: var(--green); border-color: var(--green); box-shadow: 0 3px 9px rgb(45 118 86 / 8%); }
.button-primary:hover { background: #215e43; border-color: #215e43; }
.button-secondary { color: #5e7364; background: #fff; border-color: #e1e8df; }
.button-secondary:hover { color: var(--green); background: #f4f8f2; border-color: #c9dbc9; }
.main-content { max-width: 1472px; margin: 0 auto; padding: 34px 36px 21px; }
.page-section { animation: page-enter .25s ease-out; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 23px; }
.eyebrow { color: #a3ad9f; font-size: 9px; letter-spacing: 2.4px; font-weight: 600; margin-bottom: 8px; }
h1 { font-size: clamp(24px, 2.05vw, 31px); font-weight: 600; letter-spacing: .8px; line-height: 1.5; }
.heading-dot { color: #86a779; }
.page-subtitle { margin-top: 6px; color: #8b978e; font-size: 11px; letter-spacing: .4px; }
.source-badge { display: inline-flex; align-items: center; gap: 7px; flex-shrink: 0; padding: 7px 11px; color: #967435; background: #f7efda; border: 1px solid #eee3c8; border-radius: 20px; font-size: 10px; }
.source-badge.live, .source-badge.is-live { color: #347250; background: #eaf3e9; border-color: #d9e8d6; }
.source-badge.offline, .source-badge.is-offline { color: #8d6b61; background: #f6ece8; border-color: #ecd9d3; }
.badge-dot { width: 5px; height: 5px; background: currentColor; border-radius: 50%; }
.mode-note { display: flex; align-items: center; gap: 9px; margin-bottom: 24px; padding: 11px 15px; color: #7c876d; background: #eef2e7; border: 1px solid #e4eadd; border-radius: 9px; font-size: 10px; line-height: 1.8; }
.mode-note .icon { width: 15px; height: 15px; color: #99a284; }
.metrics-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(190px, .95fr); gap: 17px; margin-bottom: 23px; }
.metric-card { position: relative; overflow: hidden; min-height: 174px; padding: 21px 23px 19px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.metric-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.metric-label { color: #718075; font-size: 11px; letter-spacing: .4px; }
.metric-icon { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 10px; }
.metric-icon .icon { width: 19px; height: 19px; stroke-width: 1.4; }
.warm { color: #bb907d; background: #f9f1ec; }
.green { color: #659170; background: #eef6ed; }
.gold { color: #b8a067; background: #faf5e9; }
.neutral { color: #84a18e; background: #eff4ef; }
.metric-reading { display: flex; align-items: baseline; gap: 7px; margin-top: 4px; line-height: 1.25; font-size: clamp(32px, 3vw, 44px); font-weight: 550; letter-spacing: -1.2px; font-variant-numeric: tabular-nums; }
.metric-unit { color: #9aa69b; font-size: 14px; font-weight: 400; letter-spacing: 0; }
.metric-hint { margin-top: 11px; color: #9ca697; font-size: 10px; }
.metric-accent { position: absolute; width: 47px; height: 3px; bottom: -1px; left: 24px; border-radius: 3px 3px 0 0; }
.warm-accent { background: #ddbaa5; }.green-accent { background: #9bbb8e; }.gold-accent { background: #d6c18c; }
.connection-card { background: #f0f5ed; border-color: #e1e9db; }
.connection-status { display: flex; align-items: center; gap: 7px; margin-top: 13px; color: #4f7656; font-size: 16px; font-weight: 550; }
.connection-dot { width: 6px; height: 6px; flex-shrink: 0; border-radius: 50%; background: #b2b9ad; box-shadow: 0 0 0 4px rgb(144 157 132 / 8%); }
.connection-dot.demo { background: #b3a06b; }.connection-dot.online, .connection-dot.is-online { background: #73a16b; }.connection-dot.offline, .connection-dot.is-offline { background: #bb8c7f; }
.device-name { margin-top: 6px; color: #8a9a83; font-size: 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.last-update { margin-top: 10px; color: #9aa68f; font-size: 9px; }.last-update time { margin-left: 4px; font-variant-numeric: tabular-nums; }
.monitor-grid { display: grid; grid-template-columns: minmax(0, 1fr); align-items: stretch; gap: 20px; margin-bottom: 23px; }
.panel { min-width: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.panel-heading { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 22px 25px 19px; }
h2 { font-size: 15px; font-weight: 600; letter-spacing: .3px; }
.panel-subtitle { color: #a0aa9e; font-size: 10px; margin-top: 4px; }
.title-with-dot { display: flex; align-items: center; gap: 9px; }.green-square { width: 6px; height: 6px; border-radius: 2px; background: #7a9c6e; }
.chart-heading { padding-bottom: 10px; }
.range-control { display: inline-flex; align-items: center; padding: 3px; border: 1px solid #edf0e9; border-radius: 8px; background: #f7f9f4; }
.range-control button { padding: 7px 11px; min-height: 32px; border: 0; border-radius: 6px; color: #9aa492; background: transparent; font-size: 9px; white-space: nowrap; }
.range-control button:hover { color: #517e55; background: #f0f3ec; }
.range-control button.active, .range-control button[aria-pressed="true"] { color: #4e7851; background: #fff; box-shadow: 0 2px 5px rgb(48 73 39 / 7%); font-weight: 600; }
.chart-meta { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 1px 25px 2px; }
.chart-legend { display: flex; align-items: center; gap: 7px; color: #84947e; font-size: 9px; }.chart-legend i { height: 2px; width: 17px; border-radius: 3px; background: #729d6b; }.muted { color: #b1b9ad; }
.chart-tools { display: flex; align-items: center; gap: 4px; }
.text-button, .icon-button { display: inline-flex; align-items: center; justify-content: center; min-height: 36px; padding: 8px; border: 0; border-radius: 6px; color: #a1ac9b; background: transparent; font-size: 9px; gap: 5px; }
.text-button .icon { width: 12px; height: 12px; }.icon-button .icon { width: 13px; height: 13px; }.icon-button { width: 32px; }
.text-button:hover, .icon-button:hover { color: var(--green); background: #f2f6ee; }
.chart-container { position: relative; min-height: 250px; margin: 0 13px 0 7px; }
#soilChart { width: 100%; height: auto; min-height: 265px; overflow: visible; font-family: inherit; }
#soilChart text { font-family: inherit; font-size: 10px; fill: #a7b29e; font-variant-numeric: tabular-nums; }
#soilChart .chart-grid, #soilChart .grid-line { stroke: #edf1e8; stroke-dasharray: 3 5; stroke-width: 1; }
#soilChart .chart-line { fill: none; stroke: #729a69; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.chart-empty { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 8px; background: #fff; color: #a0ac97; font-size: 11px; border-radius: 10px; }
.empty-icon { display: grid; width: 45px; height: 45px; place-items: center; margin-bottom: 5px; background: #f1f6ed; border-radius: 50%; color: #87a175; }.empty-icon .icon { width: 24px; height: 24px; }.chart-empty strong { color: #7f9574; font-size: 13px; font-weight: 500; }.chart-empty > span:last-child { font-size: 10px; color: #a5b09c; }
.chart-tooltip { position: absolute; z-index: 3; pointer-events: none; padding: 10px 13px; min-width: 110px; border: 1px solid #dfe9d8; border-radius: 9px; background: #fff; box-shadow: 0 7px 20px rgb(39 74 37 / 12%); color: #6c8260; font-size: 11px; white-space: nowrap; }
.chart-tooltip strong { display: block; margin-top: 3px; color: #315c38; font-size: 16px; }
.chart-summary { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0 25px; padding: 17px 0 21px; border-top: 1px solid #edf1e9; }
.chart-summary > div { padding: 0 18px; border-right: 1px solid #edf1e9; }.chart-summary > div:first-child { padding-left: 0; }.chart-summary > div:last-child { border-right: 0; }
.chart-summary span { display: block; color: #a0aa97; font-size: 9px; }.chart-summary strong { display: block; color: #58774c; font-size: 19px; font-weight: 500; margin-top: 4px; letter-spacing: .2px; font-variant-numeric: tabular-nums; }
.care-panel .panel-heading { padding-left: 22px; padding-right: 22px; }.soft-label { color: #93a18b; font-size: 8px; background: #f2f6ee; padding: 4px 7px; border-radius: 5px; white-space: nowrap; }
.care-group { margin: 0 22px; padding: 14px 0 16px; border-top: 1px solid #edf1e8; }.care-group h3 { color: #96a08e; font-size: 9px; letter-spacing: .5px; font-weight: 500; margin-bottom: 8px; }
.threshold-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 7px 0; }.threshold-row > span { display: flex; align-items: center; gap: 8px; color: #75836c; font-size: 10px; }.threshold-row .icon { width: 14px; height: 14px; color: #9eae8e; stroke-width: 1.5; }.threshold-row strong { color: #668157; font-size: 13px; font-weight: 500; font-variant-numeric: tabular-nums; }.threshold-row small { margin-left: 5px; color: #a4b096; font-size: 9px; font-weight: 400; }
.actuator-group { padding-bottom: 19px; }.actuator-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }.actuator-item { display: grid; grid-template-columns: 17px 1fr; align-items: center; gap: 6px; padding: 10px 9px; border: 1px solid #eef1e9; border-radius: 8px; background: #fafbf8; }.actuator-item > .icon { width: 15px; height: 15px; color: #9fae91; }.actuator-item > span:nth-child(2) { color: #7c8c70; font-size: 9px; white-space: nowrap; }.state-tag { grid-column: 2; width: fit-content; color: #a7b09f; font-size: 8px; line-height: 1.6; }.state-tag::before { content: ""; display: inline-block; width: 4px; height: 4px; margin-right: 4px; vertical-align: 2px; border-radius: 50%; background: currentColor; }.state-tag.is-on, .state-tag.on, .state-tag.state-on { color: #619754; }.state-tag.is-off, .state-tag.off, .state-tag.state-off { color: #a0ac96; }.state-tag.state-warning, .state-tag.warning { color: #c49055; }
.table-panel { overflow: hidden; }.table-panel .panel-heading { padding-bottom: 18px; }.table-scroll { width: 100%; overflow-x: auto; }table { width: 100%; border-collapse: collapse; white-space: nowrap; text-align: left; font-size: 10px; }thead { color: #a0ab98; background: #f8faf5; }th { padding: 13px 25px; font-weight: 400; border-top: 1px solid #eef2e8; border-bottom: 1px solid #eef2e8; }th span { margin-left: 4px; font-size: 9px; color: #bbc4b3; }td { padding: 13px 25px; color: #819075; border-bottom: 1px solid #f0f3eb; font-variant-numeric: tabular-nums; }tr:last-child td { border-bottom: 0; }tbody tr:hover { background: #fcfdf9; }td:first-child { color: #8c9982; }.empty-cell { padding: 55px 25px; text-align: center; color: #a1ad97; font-size: 11px; }.data-badge, .source-tag, .table-badge { display: inline-flex; align-items: center; padding: 2px 8px; color: #a28c53; background: #f8f3e6; border-radius: 5px; font-size: 8px; }.data-badge.live, .source-tag.live, .table-badge.live { color: #679058; background: #eff6e9; }
.page-footer { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding-top: 27px; color: #b4bdac; font-size: 9px; letter-spacing: .5px; }.page-footer > span:first-child { display: inline-flex; align-items: center; gap: 5px; }.page-footer .icon { width: 13px; height: 13px; color: #a7b598; }

.decorative-label { display: inline-flex; align-items: center; gap: 7px; color: #8a9d7c; font-size: 11px; }.decorative-label .icon { width: 18px; height: 18px; }.history-intro { display: flex; align-items: center; gap: 9px; margin-bottom: 24px; padding: 15px 18px; border: 1px solid #e4ebdb; border-radius: 10px; background: #eff4e9; color: #839775; font-size: 11px; }.history-intro .icon { width: 16px; height: 16px; color: #97aa85; }.history-controls { display: flex; align-items: center; gap: 11px; }.history-controls select { min-height: 40px; padding: 8px 30px 8px 12px; border: 1px solid #e4eadc; border-radius: 8px; background: #fff; color: #7e9270; font-size: 11px; }.history-panel { min-height: 380px; }
.settings-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(280px, 1fr); gap: 24px; align-items: start; }.settings-panel .panel-heading { padding-bottom: 22px; border-bottom: 1px solid var(--line); }.settings-body { padding: 26px; }.field + .field { margin-top: 23px; }.field label { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; color: #627858; font-size: 11px; font-weight: 550; }.field-optional { color: #a8b39e; font-weight: 400; font-size: 9px; }.field input, .field select { width: 100%; min-height: 45px; padding: 11px 13px; border: 1px solid #e1e9da; border-radius: 8px; background: #fcfdf9; color: #5b7650; font-size: 12px; transition: border-color .2s ease, background-color .2s ease; }.field input::placeholder { color: #b7c0ad; }.field input:hover, .field select:hover { border-color: #b9cdb0; }.field input:focus, .field select:focus { background: #fff; border-color: #8eb27f; }.field-help { display: flex; align-items: flex-start; gap: 5px; margin-top: 7px; color: #a0ae94; font-size: 10px; line-height: 1.8; }.field-help .icon { width: 13px; height: 13px; margin-top: 3px; color: #9aaa8d; }.connection-message { margin-top: 26px; padding: 11px 13px; border: 1px solid #e9eedf; border-radius: 8px; background: #f7faf2; color: #8ba07c; font-size: 10px; line-height: 1.8; }.connection-message.error, .connection-message.is-error { color: #b37861; background: #fcf3ed; border-color: #efdfd4; }.connection-message.success, .connection-message.is-success { color: #548b4a; background: #f1f8ec; border-color: #dfecd6; }.settings-actions { display: flex; justify-content: flex-end; gap: 11px; margin-top: 20px; }.settings-aside { display: grid; gap: 21px; }.connection-guide { padding: 27px; border: 1px solid #dfe7d6; border-radius: var(--radius); background: #eaf1e2; }.guide-icon { display: grid; width: 40px; height: 40px; place-items: center; margin-bottom: 16px; color: #789769; background: #dee9d2; border-radius: 13px 13px 13px 3px; }.guide-icon .icon { width: 24px; height: 24px; }.connection-guide h2 { color: #4e7042; font-size: 19px; }.connection-guide > p { margin-top: 8px; color: #8c9e7b; font-size: 10px; line-height: 1.9; }.connection-guide ol { display: grid; gap: 20px; margin: 26px 0 0; padding: 0; list-style: none; }.connection-guide li { display: flex; gap: 13px; align-items: flex-start; }.connection-guide li > span { color: #9db38b; font-size: 12px; font-family: Georgia, serif; font-style: italic; line-height: 1.9; }.connection-guide li strong { display: block; color: #6c885b; font-size: 11px; font-weight: 550; }.connection-guide li p { margin-top: 3px; color: #99a88a; font-size: 9px; line-height: 1.8; }.units-panel { padding: 23px 25px; }.units-panel h2 { font-size: 13px; }.units-panel dl { display: grid; gap: 11px; margin: 17px 0; font-size: 10px; }.units-panel dl > div { display: flex; justify-content: space-between; gap: 12px; }.units-panel dt { color: #8e9e80; }.units-panel dd { margin: 0; color: #a2af97; text-align: right; }.units-panel > p { padding-top: 13px; border-top: 1px solid #edf1e7; color: #adb8a2; font-size: 9px; line-height: 1.9; }.toast { position: fixed; z-index: 99; bottom: 28px; left: calc(50% + 110px); transform: translateX(-50%); max-width: min(520px, calc(100% - 40px)); padding: 13px 21px; color: #f5f8ef; background: #36593b; border: 1px solid #52774e; border-radius: 11px; box-shadow: 0 8px 28px rgb(34 61 35 / 18%); font-size: 12px; }

@keyframes page-enter { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
@media (min-width: 1680px) { .main-content { padding-top: 42px; }.metrics-grid { gap: 22px; }.metric-card { min-height: 183px; }.monitor-grid { gap: 24px; }#soilChart { min-height: 310px; }.chart-summary { padding-top: 22px; padding-bottom: 25px; }.care-group { padding-top: 19px; padding-bottom: 21px; }.threshold-row { padding-top: 9px; padding-bottom: 9px; }.actuator-item { padding-top: 14px; padding-bottom: 14px; } }
@media (max-width: 1250px) { .topbar { padding-left: 26px; padding-right: 26px; }.main-content { padding-left: 26px; padding-right: 26px; }.metrics-grid { gap: 12px; }.metric-card { padding: 18px 17px; }.metric-icon { width: 30px; height: 30px; }.metric-label { font-size: 10px; }.monitor-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }.panel-heading { padding-left: 19px; padding-right: 19px; }.range-control button { padding-left: 8px; padding-right: 8px; }.chart-meta { padding-left: 19px; padding-right: 19px; }.chart-summary { margin-left: 19px; margin-right: 19px; }.chart-summary > div { padding-left: 12px; padding-right: 12px; }.chart-summary strong { font-size: 17px; }.care-panel .panel-heading, .care-group { margin-left: 0; margin-right: 0; }.care-panel .panel-heading { padding-left: 17px; padding-right: 17px; }.care-group { margin-left: 17px; margin-right: 17px; }th, td { padding-left: 20px; padding-right: 20px; } }
@media (max-width: 1090px) { .topbar-caption { display: none; }.topbar { justify-content: flex-end; }.metrics-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }.metric-card { min-height: 161px; }.metric-reading { font-size: 40px; }.monitor-grid { grid-template-columns: minmax(0, 1fr); }.care-panel { display: grid; grid-template-columns: .85fr 1.15fr; }.care-panel .panel-heading { grid-column: 1 / -1; padding-bottom: 13px; }.care-group { padding-top: 12px; padding-bottom: 18px; }.care-group h3 { margin-bottom: 4px; }.actuator-group { padding-left: 16px; border-left: 1px solid var(--line); }.actuator-grid { gap: 7px; margin-top: 10px; }.actuator-item { padding: 9px; }.page-heading { align-items: flex-start; }.source-badge { margin-top: 31px; }.settings-grid { grid-template-columns: minmax(0, 1fr); }.settings-aside { grid-template-columns: 1fr 1fr; align-items: start; }.connection-guide { padding: 23px; }.connection-guide ol { gap: 15px; margin-top: 19px; }.units-panel { padding: 23px; } }
@media (max-width: 759px) { body { font-size: 14px; }.app-shell { display: block; }.sidebar { position: static; width: auto; padding: 17px 20px 0; }.brand { gap: 10px; padding: 0; }.brand-mark { width: 37px; height: 37px; border-radius: 11px 11px 11px 3px; }.brand-mark .icon { width: 24px; height: 24px; }.brand-name { font-size: 23px; }.brand-name span { font-size: 9px; }.brand p { margin-top: 3px; font-size: 9px; }.nav-caption, .sidebar-bottom { display: none; }.navigation { display: flex; gap: 11px; margin-top: 20px; overflow-x: auto; }.nav-item { width: auto; flex: 1; justify-content: center; min-height: 47px; padding: 11px 9px; font-size: 12px; border-radius: 9px 9px 0 0; white-space: nowrap; }.nav-item .icon { width: 17px; height: 17px; }.nav-item.active, .nav-item[aria-current="page"] { border-color: transparent; background: #f7f8f3; color: #416746; }.nav-item .nav-indicator { display: none; }.workspace { width: 100%; margin-left: 0; }.topbar { min-height: 63px; padding: 12px 20px; background: #fcfdf9; }.topbar-actions { width: 100%; justify-content: space-between; gap: 15px; }.clock-wrap { font-size: 10px; }.button-small { min-height: 40px; padding: 9px 12px; font-size: 11px; }.main-content { padding: 25px 20px 21px; }.page-heading { gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }.eyebrow { font-size: 8px; letter-spacing: 1.7px; margin-bottom: 6px; }h1 { font-size: 24px; letter-spacing: .2px; }.page-subtitle { margin-top: 6px; font-size: 10px; line-height: 1.9; }.source-badge { margin-top: 0; padding: 6px 10px; font-size: 9px; }.mode-note { align-items: flex-start; gap: 8px; padding: 11px 12px; margin-bottom: 18px; font-size: 10px; }.mode-note .icon { margin-top: 2px; }.metrics-grid { gap: 12px; margin-bottom: 18px; }.metric-card { min-height: 161px; padding: 17px 16px; border-radius: 14px; }.metric-top { gap: 6px; }.metric-label { font-size: 11px; }.metric-icon { width: 30px; height: 30px; border-radius: 9px; }.metric-icon .icon { width: 18px; height: 18px; }.metric-reading { margin-top: 7px; font-size: 37px; }.metric-unit { font-size: 12px; }.metric-hint { margin-top: 9px; font-size: 9px; line-height: 1.7; }.metric-accent { left: 17px; width: 36px; }.connection-status { font-size: 14px; margin-top: 14px; }.device-name { font-size: 9px; }.last-update { font-size: 8px; }.monitor-grid { margin-bottom: 18px; gap: 18px; }.panel { border-radius: 14px; }.panel-heading { padding: 20px 18px 17px; }h2 { font-size: 14px; }.panel-subtitle { font-size: 9px; }.chart-heading { flex-wrap: wrap; gap: 14px; padding-bottom: 6px; }.range-control { margin-left: auto; }.range-control button { min-height: 40px; padding: 8px 12px; font-size: 10px; }.chart-meta { padding: 0 17px; }.chart-legend { font-size: 9px; }.chart-tools { gap: 2px; }.text-button { min-height: 40px; padding: 10px 8px; font-size: 10px; }.icon-button { width: 40px; min-height: 40px; }.text-button .icon, .icon-button .icon { width: 14px; height: 14px; }.chart-container { min-height: 234px; margin: 0 5px; }#soilChart { min-height: 234px; }.chart-summary { margin: 0 18px; padding: 16px 0 18px; }.chart-summary > div { padding: 0 10px; }.chart-summary span { font-size: 8px; }.chart-summary strong { margin-top: 6px; font-size: 16px; }.care-panel .panel-heading { padding: 19px 18px 14px; }.care-group { margin: 0 18px; }.actuator-group { margin-left: 0; padding-left: 15px; }.soft-label { font-size: 8px; }.threshold-row { padding: 9px 0; }.threshold-row > span { font-size: 9px; gap: 6px; }.threshold-row .icon { width: 13px; height: 13px; }.threshold-row strong { font-size: 12px; }.actuator-grid { gap: 6px; }.actuator-item { grid-template-columns: 15px 1fr; padding: 8px 7px; gap: 5px; }.actuator-item > .icon { width: 14px; height: 14px; }.actuator-item > span:nth-child(2) { font-size: 8px; }.state-tag { font-size: 8px; }.table-panel .panel-heading { padding-bottom: 16px; }table { min-width: 550px; font-size: 10px; }th, td { padding: 13px 18px; }.page-footer { padding-top: 22px; font-size: 8px; }.page-footer > span:last-child { display: none; }.decorative-label { font-size: 10px; }.history-intro { align-items: flex-start; padding: 12px; margin-bottom: 18px; font-size: 10px; }.history-intro .icon { margin-top: 2px; }.history-panel .panel-heading { flex-wrap: wrap; gap: 17px; }.history-controls { width: 100%; justify-content: space-between; }.history-controls select { flex: 1; min-height: 42px; }.settings-grid { gap: 18px; }.settings-body { padding: 21px 18px; }.settings-panel .panel-heading { padding-bottom: 20px; }.field label { font-size: 11px; }.field input, .field select { min-height: 47px; font-size: 13px; }.field-help { font-size: 10px; }.field + .field { margin-top: 22px; }.settings-actions { gap: 10px; }.settings-actions .button { flex: 1; min-height: 45px; }.settings-aside { grid-template-columns: 1fr; gap: 18px; }.connection-guide { padding: 23px; }.connection-guide > p { font-size: 11px; }.connection-guide li strong { font-size: 12px; }.connection-guide li p { font-size: 10px; }.units-panel dl, .units-panel > p { font-size: 10px; }.toast { left: 50%; bottom: 20px; width: max-content; max-width: calc(100% - 34px); font-size: 11px; } }
@media (max-width: 430px) { .main-content { padding-left: 14px; padding-right: 14px; }.topbar { padding-left: 14px; padding-right: 14px; }.sidebar { padding-left: 14px; padding-right: 14px; }.nav-item { gap: 8px; padding-left: 7px; padding-right: 7px; }.metrics-grid { gap: 10px; }.metric-card { padding-left: 13px; padding-right: 13px; }.metric-label { font-size: 10px; }.metric-reading { font-size: 34px; }.metric-icon { width: 27px; height: 27px; }.connection-status { font-size: 12px; }.last-update { font-size: 8px; }.care-panel { grid-template-columns: 1fr; }.care-panel .panel-heading { padding-left: 18px; padding-right: 18px; }.care-group { margin-left: 18px; margin-right: 18px; padding-top: 14px; }.actuator-group { border-left: 0; padding-left: 0; }.threshold-row { padding: 9px 0; }.threshold-row > span { font-size: 11px; }.threshold-row strong { font-size: 14px; }.actuator-item { padding: 12px; grid-template-columns: 18px 1fr; gap: 7px; }.actuator-item > .icon { width: 17px; height: 17px; }.actuator-item > span:nth-child(2) { font-size: 10px; }.state-tag { font-size: 9px; }.actuator-grid { gap: 9px; }.chart-summary > div { padding-left: 8px; padding-right: 8px; }.chart-summary strong { font-size: 15px; }.chart-summary span { font-size: 8px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
@media (max-height: 800px) and (min-width: 760px) { .sidebar-plant { height: 130px; }.sidebar-bottom { padding-top: 20px; }.sidebar-signature { margin-top: 12px; padding-top: 12px; }.sidebar-user { margin-top: 14px; }.login-story { min-height: 650px; }.login-story-copy { padding-top: 8vh; }.login-botanical { width: 82%; right: -12%; bottom: 49px; } }
@media (max-width: 1020px) { .login-view { grid-template-columns: minmax(300px, .95fr) minmax(400px, 1fr); }.login-story { padding-left: 10%; padding-right: 10%; }.login-story-copy h1 { font-size: 35px; letter-spacing: 2px; }.login-story-copy > p:last-child { font-size: 11px; }.login-content { padding-left: 10%; padding-right: 10%; }.login-card h2 { font-size: 23px; }.login-botanical { width: 112%; right: -28%; }.login-story-footer { right: 10%; left: 10%; }.login-story-footer > span:last-child { display: none; } }
@media (max-width: 759px) { .login-view { display: block; background: #f8faf3; }.login-story { min-height: 228px; padding: 25px 26px 28px; }.login-brand .brand-mark { width: 34px; height: 34px; }.login-brand > span:last-child { font-size: 22px; letter-spacing: 4px; }.login-brand small { font-size: 7px; letter-spacing: 2.7px; }.login-story-copy { padding-top: 26px; }.login-story-copy .eyebrow { font-size: 6px; letter-spacing: 1.6px; }.login-story-copy h1 { margin-top: 8px; font-size: 27px; line-height: 1.65; letter-spacing: 2px; }.login-story-copy > p:last-child, .login-story-footer { display: none; }.login-botanical { width: 270px; height: 270px; right: -14px; bottom: -52px; opacity: .65; }.login-content { min-height: calc(100vh - 228px); padding: 35px 27px 75px; }.login-small-leaf { display: none; }.login-card { max-width: 390px; }.login-card .eyebrow { font-size: 7px; }.login-card h2 { margin-top: 8px; font-size: 23px; }.login-intro { margin-top: 8px; font-size: 11px; }.login-form { margin-top: 25px; }.login-form .field input { min-height: 49px; font-size: 14px; }.login-form .field + .field { margin-top: 20px; }.login-submit { min-height: 49px; margin-top: 6px; }.login-demo { margin-top: 15px; }.login-copyright { bottom: 24px; font-size: 8px; }.login-data-note { font-size: 8px; }.topbar-actions { gap: 10px; }.clock-wrap { margin-right: auto; font-size: 9px; gap: 5px; }.clock-wrap .icon { width: 13px; height: 13px; }.settings-entry { width: 32px; padding: 7px; }.settings-entry .icon { width: 17px; height: 17px; }.logout-button { font-size: 10px; }.topbar .button-small { font-size: 10px; padding-left: 10px; padding-right: 10px; gap: 5px; }.topbar .button-small .icon { width: 13px; height: 13px; }.connect-dialog { padding: 23px 24px 26px; border-radius: 16px; }.connect-dialog h2 { font-size: 21px; }.connect-dialog-heading { margin-bottom: 18px; }.dialog-intro { font-size: 11px; }.connect-form { margin-top: 22px; } }
@media (max-width: 375px) { .clock-wrap .icon { display: none; }.topbar-actions { gap: 7px; }.clock-wrap { font-size: 8px; }.settings-entry { width: 28px; }.login-story { padding-left: 23px; }.login-story-copy h1 { font-size: 25px; }.login-botanical { right: -35px; }.login-content { padding-left: 23px; padding-right: 23px; } }

/* Small supporting text stays readable on a full-size monitoring screen. */
.page-subtitle { color: #7e8c7c; font-size: 12px; }
.metric-label { color: #6f806c; font-size: 12px; }
.metric-hint { color: #87967e; font-size: 11px; }
.panel-subtitle { color: #8a9a7f; font-size: 11px; }
.mode-note { color: #718168; font-size: 11px; }
.source-badge { font-size: 11px; }
table { font-size: 12px; }
thead { color: #88977e; }
td { color: #73866a; }
.field-help { color: #879b79; font-size: 11px; }
.field label { font-size: 12px; }
.login-intro { color: #899c7b; font-size: 12px; }
.login-data-note { color: #a0af92; font-size: 10px; }
.dialog-intro { color: #7b946b; font-size: 12px; }
@media (max-width: 759px) { .metric-label { font-size: 11px; }.metric-hint { font-size: 10px; }.page-subtitle { font-size: 11px; }.panel-subtitle { font-size: 10px; }.mode-note, .source-badge { font-size: 10px; }table { font-size: 11px; }.field-help { font-size: 11px; }.settings-entry { min-width: 40px; width: 40px; }.logout-button { min-width: 40px; }.login-intro { font-size: 11px; }.login-data-note { font-size: 9px; } }

.table-empty{padding:40px 20px;text-align:center;color:#7a8d76;white-space:normal;line-height:1.8}.metric-unit{white-space:nowrap}.connection-status{line-height:1.6}.metric-hint{min-height:32px}.field input:disabled,.button:disabled{opacity:.6;cursor:wait}

.branding-panel { margin-bottom: 24px; }
.branding-panel .panel-heading { padding-bottom: 17px; border-bottom: 1px solid var(--line); }
.branding-body { padding: 22px 26px 19px; }
.branding-input-row { display: flex; align-items: stretch; gap: 12px; }
.branding-input-row input { flex: 1; min-width: 0; }
.branding-input-row .button { flex-shrink: 0; }
.branding-message { color: #819775; font-size: 12px; line-height: 1.8; }
.branding-message:not(:empty) { margin-top: 12px; }
.branding-message.error, .branding-message.is-error { color: #b37861; }
.branding-message.success, .branding-message.is-success { color: #548b4a; }
.brand p[data-platform-title] { max-width: 134px; display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow-wrap: anywhere; font-size: 11px; line-height: 1.7; letter-spacing: .3px; }
.login-story-footer [data-platform-title] { max-width: 72%; overflow-wrap: anywhere; font-size: 12px; }
.page-heading > div:first-child { min-width: 0; }
#overviewTitle { overflow-wrap: anywhere; }
.panel-subtitle, .metric-hint, .field-help, .login-intro { font-size: 12px; }
.login-data-note { font-size: 11px; }
@media (max-width: 759px) { .branding-panel { margin-bottom: 18px; }.branding-body { padding: 19px 18px; }.branding-input-row { gap: 9px; }.branding-input-row .button { padding-left: 12px; padding-right: 12px; font-size: 11px; }.branding-panel .panel-heading { padding-bottom: 16px; }.panel-subtitle, .metric-hint { font-size: 11px; }.field-help, .login-intro { font-size: 12px; }.login-data-note { font-size: 11px; }.brand p[data-platform-title] { max-width: 240px; font-size: 10px; -webkit-line-clamp: 1; } }

.overview-chart-mount { min-width: 0; }
.chart-header-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 7px; }
.chart-header-actions .text-button { color: #7b966c; font-size: 10px; white-space: nowrap; }
.monitor-grid { align-items: start; }
.care-panel { display: block; }
.care-panel .panel-heading { padding-bottom: 17px; }
.care-group { margin: 0 20px; padding: 17px 0; }
.care-group h3 { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; color: #788e6b; font-size: 11px; }
.care-group h3 > span { font-size: 9px; font-weight: 400; color: #a1af95; }
.control-mode-record { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 12px; color: #91a283; font-size: 10px; }
.control-mode-record strong { color: #6d895e; font-size: 11px; font-weight: 500; }
.mode-control-buttons { display: flex; gap: 8px; }
.mode-control-buttons .button { flex: 1; min-height: 40px; padding: 8px 10px; font-size: 11px; }
.mode-control-buttons .button.active, .mode-control-buttons .button[aria-pressed="true"] { color: #416d3b; border-color: #afc99e; background: #eaf3e2; }
.control-help { margin-top: 10px; color: #9aaa8d; font-size: 10px; line-height: 1.9; }
.threshold-control-row { display: grid; grid-template-columns: minmax(74px, 1fr) minmax(52px, .7fr) minmax(68px, .9fr); align-items: center; gap: 8px; padding: 10px 0; }
.threshold-control-row > label { display: flex; align-items: center; gap: 6px; color: #809372; font-size: 10px; white-space: nowrap; }
.threshold-control-row .icon { width: 13px; height: 13px; color: #9cb18c; }
.threshold-current > span { display: block; color: #a7b29e; font-size: 8px; }
.threshold-current strong { display: block; color: #708e5e; font-size: 12px; line-height: 1.7; font-weight: 500; overflow-wrap: anywhere; }
.threshold-current small { margin-left: 3px; color: #a0b28f; font-size: 8px; font-weight: 400; }
.threshold-input-wrap { position: relative; }
.threshold-input-wrap input { width: 100%; min-width: 0; min-height: 40px; padding: 8px 21px 8px 8px; border: 1px solid #e0e9d8; border-radius: 7px; background: #fbfdf7; color: #647f55; font-size: 12px; appearance: textfield; }
.threshold-input-wrap input::-webkit-inner-spin-button, .threshold-input-wrap input::-webkit-outer-spin-button { appearance: none; margin: 0; }
.threshold-input-wrap input:disabled { color: #a8b59c; background: #f6f9f0; opacity: .75; }
.threshold-input-wrap > span { position: absolute; top: 50%; right: 8px; transform: translateY(-50%); pointer-events: none; color: #a3b196; font-size: 9px; }
#lightThresholdInput { padding-right: 7px; }
.threshold-sync { width: 100%; min-height: 40px; margin-top: 7px; padding: 8px 12px; font-size: 11px; }
.actuator-group { border-left: 0; padding-left: 0; }
.actuator-grid { gap: 9px; }
.actuator-item.controllable { padding: 11px 9px 9px; }
.controllable > span:nth-child(2) { font-size: 10px; }
.controllable .state-tag { font-size: 9px; }
.actuator-actions { grid-column: 1 / -1; display: flex; gap: 6px; margin-top: 5px; }
.actuator-actions button { flex: 1; min-width: 0; min-height: 40px; padding: 7px 5px; border: 1px solid #dfe8d7; border-radius: 6px; background: #fff; color: #879d79; font-size: 10px; }
.actuator-actions button:hover:not(:disabled) { border-color: #adc69c; background: #edf5e5; color: #5f864d; }
.actuator-actions button.active, .actuator-actions button[aria-pressed="true"] { border-color: #b8cca9; background: #e7f1dc; color: #61834c; }
.actuator-actions button:disabled { cursor: not-allowed; color: #acb6a2; opacity: .65; }
.control-message { margin: 0 20px 20px; padding: 11px 12px; border: 1px solid #e5ecdc; border-radius: 8px; color: #8fa27e; background: #f5f9ee; font-size: 10px; line-height: 1.9; }
.control-message.error, .control-message.is-error { border-color: #efdcd0; color: #b58065; background: #fdf4ee; }
.control-message.success, .control-message.is-success { border-color: #d7e7ca; color: #638e51; background: #f0f7e9; }
.monitor-page-actions { display: flex; align-items: center; gap: 10px; }
.monitor-page-actions .button { min-height: 42px; font-size: 11px; }
#exitMonitor .icon { transform: rotate(180deg); }
.monitor-status-bar { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin: 0 0 20px; }
.monitor-update { color: #93a387; font-size: 11px; }
.monitor-update time { margin-left: 7px; color: #718a62; font-variant-numeric: tabular-nums; }
.monitor-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-bottom: 21px; }
.monitor-metric { min-width: 0; padding: 18px 24px; border: 1px solid #e1e9da; border-radius: 13px; background: #fff; }
.monitor-metric > span { display: flex; align-items: center; gap: 7px; color: #849b75; font-size: 11px; }
.monitor-metric .icon { width: 16px; height: 16px; color: #9ab487; }
.monitor-metric > div { display: flex; align-items: baseline; gap: 8px; margin-top: 4px; }
.monitor-metric strong { min-width: 0; color: #486d3f; font-size: 31px; font-weight: 500; line-height: 1.5; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.monitor-metric small { color: #a5b597; font-size: 11px; white-space: nowrap; }
.monitor-chart-mount { min-width: 0; }
.monitor-chart-mount .chart-container { min-height: 50vh; }
.monitor-chart-mount #soilChart { min-height: 50vh; }
.monitor-chart-mount .chart-summary span { font-size: 12px; }
.monitor-chart-mount .chart-summary strong { margin-top: 7px; font-size: 26px; }
.monitor-chart-mount .chart-legend { font-size: 12px; }
.monitor-chart-mount .text-button { min-height: 40px; font-size: 11px; }
.monitor-chart-mount .panel-heading { padding-top: 25px; }
.monitor-fullscreen-hint { margin-top: 17px; text-align: center; color: #a0af94; font-size: 10px; }
#page-monitor:fullscreen, #page-monitor.monitor-fullscreen, .monitor-fullscreen #page-monitor { width: 100%; height: 100%; max-width: none; padding: 24px; overflow: auto; background: #f7f9f2; color: var(--ink); }
#page-monitor:fullscreen .monitor-page-heading, #page-monitor.monitor-fullscreen .monitor-page-heading { margin-bottom: 15px; }
#page-monitor:fullscreen h1, #page-monitor.monitor-fullscreen h1 { font-size: 26px; }
#page-monitor:fullscreen .eyebrow, #page-monitor.monitor-fullscreen .eyebrow { display: none; }
#page-monitor:fullscreen .monitor-metrics, #page-monitor.monitor-fullscreen .monitor-metrics { margin-bottom: 16px; }
#page-monitor:fullscreen .monitor-metric, #page-monitor.monitor-fullscreen .monitor-metric { padding-top: 12px; padding-bottom: 12px; }
#page-monitor:fullscreen .chart-container, #page-monitor:fullscreen #soilChart, #page-monitor.monitor-fullscreen .chart-container, #page-monitor.monitor-fullscreen #soilChart { min-height: 50vh; }

@media (min-width: 760px) { .care-panel { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }.care-panel .panel-heading { grid-column: 1 / -1; }.mode-control-group { grid-column: 1; }.threshold-control-group { grid-column: 2; grid-row: 2 / 4; }.actuator-group { grid-column: 1; grid-row: 3; }.control-message { grid-column: 1 / -1; }.chart-header-actions { flex-wrap: nowrap; } }
@media (max-width: 759px) { .navigation { gap: 5px; }.nav-item { flex-shrink: 0; gap: 7px; padding-left: 8px; padding-right: 8px; font-size: 11px; }.nav-item .icon { width: 15px; height: 15px; }.chart-header-actions { width: 100%; justify-content: space-between; gap: 8px; }.chart-header-actions .text-button { min-height: 40px; font-size: 10px; }.chart-header-actions .range-control { margin-left: 0; }.care-panel { display: block; }.care-group { margin-left: 18px; margin-right: 18px; padding-top: 17px; padding-bottom: 17px; }.care-group h3 { font-size: 12px; }.care-group h3 > span { font-size: 10px; }.control-mode-record { font-size: 11px; }.control-mode-record strong { font-size: 12px; }.control-help { font-size: 11px; }.threshold-control-row { grid-template-columns: minmax(90px, 1fr) minmax(66px, .8fr) minmax(86px, 1fr); gap: 10px; }.threshold-control-row > label { font-size: 11px; }.threshold-current > span { font-size: 9px; }.threshold-current strong { font-size: 13px; }.threshold-input-wrap input { min-height: 42px; font-size: 13px; }.mode-control-buttons .button, .threshold-sync { min-height: 42px; font-size: 12px; }.actuator-item.controllable { padding: 12px; }.controllable > span:nth-child(2) { font-size: 11px; }.controllable .state-tag { font-size: 10px; }.actuator-actions button { min-height: 42px; font-size: 11px; }.control-message { margin-left: 18px; margin-right: 18px; font-size: 11px; }.monitor-page-heading { gap: 18px; }.monitor-page-actions { width: 100%; justify-content: flex-end; }.monitor-page-actions .button { font-size: 11px; }.monitor-status-bar { margin-bottom: 16px; }.monitor-status-bar .source-badge { font-size: 10px; }.monitor-update { font-size: 10px; }.monitor-metrics { gap: 10px; margin-bottom: 17px; }.monitor-metric { padding: 13px 12px; border-radius: 10px; }.monitor-metric > span { font-size: 10px; gap: 5px; }.monitor-metric .icon { width: 13px; height: 13px; }.monitor-metric strong { font-size: 25px; }.monitor-metric small { font-size: 9px; }.monitor-metric > div { gap: 5px; }.monitor-chart-mount .chart-summary span { font-size: 10px; }.monitor-chart-mount .chart-summary strong { font-size: 20px; }.monitor-chart-mount .chart-legend { font-size: 10px; }.monitor-fullscreen-hint { font-size: 10px; line-height: 1.9; }#page-monitor:fullscreen, #page-monitor.monitor-fullscreen, .monitor-fullscreen #page-monitor { padding: 17px; }#page-monitor:fullscreen h1, #page-monitor.monitor-fullscreen h1 { font-size: 23px; } }
@media (max-width: 375px) { .threshold-control-row { grid-template-columns: minmax(82px, 1fr) minmax(53px, .7fr) minmax(74px, .9fr); gap: 7px; }.monitor-metric { padding-left: 9px; padding-right: 9px; }.monitor-metric strong { font-size: 22px; }.monitor-metric > span { font-size: 9px; }.monitor-metric > div { gap: 3px; }.monitor-metric small { font-size: 8px; } }

.advanced-connection{margin-top:24px;border-top:1px solid #e3ebdb;padding-top:18px}.advanced-connection summary{cursor:pointer;color:#6c845e;font-size:12px;margin-bottom:18px}.advanced-connection .field-help{font-size:11px}.metric-label,.metric-hint,.panel-subtitle{font-size:12px}table{font-size:12px}.page-subtitle{font-size:12px}.source-badge{font-size:11px}.login-intro{font-size:12px}.login-data-note{font-size:10px}

/* Match the focus-view class used when browser fullscreen is unavailable. */
body.monitor-expanded { overflow: hidden; }
body.monitor-expanded .sidebar,
body.monitor-expanded .topbar,
body.monitor-expanded .page-footer { display: none; }
body.monitor-expanded .workspace { width: 100%; margin-left: 0; }
body.monitor-expanded .main-content { max-width: none; margin: 0; padding: 0; }
body.monitor-expanded #page-monitor {
  position: fixed;
  z-index: 60;
  inset: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  max-width: none;
  margin: 0;
  padding: 24px;
  overflow: auto;
  overscroll-behavior: contain;
  background: #f7f9f2;
  color: var(--ink);
}
body.monitor-expanded .monitor-page-heading { margin-bottom: 15px; }
body.monitor-expanded #page-monitor h1 { font-size: 26px; }
body.monitor-expanded #page-monitor .eyebrow { display: none; }
body.monitor-expanded .monitor-metrics { margin-bottom: 16px; }
body.monitor-expanded .monitor-metric { padding-top: 12px; padding-bottom: 12px; }
body.monitor-expanded .monitor-chart-mount .chart-container,
body.monitor-expanded .monitor-chart-mount #soilChart,
#page-monitor:fullscreen .chart-container,
#page-monitor:fullscreen #soilChart { min-height: 50vh; min-height: 50dvh; }
body.monitor-expanded .monitor-chart-mount #soilChart,
#page-monitor:fullscreen #soilChart { height: max(320px, 50vh); height: max(320px, 50dvh); }
#page-monitor #openMonitor { display: none; }
@media (max-width: 759px) {
  body.monitor-expanded #page-monitor { padding: 17px; }
  body.monitor-expanded #page-monitor h1 { font-size: 23px; }
  .monitor-status-bar { flex-wrap: wrap; gap: 9px 14px; }
  .monitor-update { min-width: 0; overflow-wrap: anywhere; }
  #monitorSource { max-width: 100%; white-space: normal; }
  .monitor-metric > div { flex-wrap: wrap; column-gap: 5px; row-gap: 0; }
  body.monitor-expanded .monitor-page-actions .button,
  #page-monitor:fullscreen .monitor-page-actions .button { min-height: 44px; }
  body.monitor-expanded .monitor-chart-mount .chart-summary strong,
  #page-monitor:fullscreen .chart-summary strong { font-size: 20px; }
}
@media (max-height: 600px) and (min-width: 760px) {
  body.monitor-expanded #page-monitor,
  #page-monitor:fullscreen { padding: 17px 24px; }
  body.monitor-expanded #page-monitor h1,
  #page-monitor:fullscreen h1 { font-size: 21px; }
  body.monitor-expanded .monitor-page-heading .page-subtitle,
  #page-monitor:fullscreen .monitor-page-heading .page-subtitle { display: none; }
  body.monitor-expanded .monitor-metric,
  #page-monitor:fullscreen .monitor-metric { padding-top: 8px; padding-bottom: 8px; }
  body.monitor-expanded .monitor-metric strong,
  #page-monitor:fullscreen .monitor-metric strong { font-size: 24px; }
}
