:root {
  color-scheme: dark;
  --bg: #08131c;
  --sidebar: #0a1620;
  --card: #0e1d28;
  --card-2: #101f2a;
  --line: #1b2b36;
  --text: #edf3f5;
  --muted: #82919a;
  --subtle: #596a75;
  --mint: #73e0b0;
  --orange: #f6ad63;
  --blue: #70bdf4;
  --purple: #a78bfa;
  --font: "DM Sans", sans-serif;
  --display: "Space Grotesk", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: auto; }
body { margin: 0; min-width: 320px; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 13px; -webkit-font-smoothing: antialiased; }
button, select { font: inherit; }
button { color: inherit; }
.app-shell { min-height: 100vh; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: 238px; padding: 27px 17px 18px; background: var(--sidebar); border-right: 1px solid #172631; display: flex; flex-direction: column; z-index: 5; }
.brand { display: flex; align-items: center; gap: 11px; padding: 0 9px; color: inherit; text-decoration: none; }
.brand-mark { width: 34px; height: 34px; display: grid; place-items: center; color: var(--mint); background: #102b2a; border: 1px solid #204441; border-radius: 10px; }
.brand-mark svg { width: 23px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.brand-copy { display: grid; gap: 2px; }
.brand-copy strong { font-family: var(--display); font-size: 17px; letter-spacing: -.8px; }
.brand-copy small { color: var(--subtle); font-size: 8px; letter-spacing: 1.65px; font-weight: 700; }
.nav-label { margin: 53px 10px 12px; color: var(--user-muted, #53636e); font-size: 9px; letter-spacing: 1.4px; font-weight: 700; }
.main-nav { display: grid; gap: 5px; }
.nav-link { position: relative; display: flex; align-items: center; gap: 11px; min-height: 41px; padding: 0 11px; border-radius: 7px; color: var(--user-muted, #8d9ba4); text-decoration: none; font-size: 12px; transition: background .2s, color .2s; }
.nav-link:hover, .nav-link.active { background: #14232d; color: #e4edee; }
.nav-link.active { font-weight: 600; }
.nav-link.active::before { position: absolute; content: ""; left: -20px; top: 10px; bottom: 10px; width: 2px; border-radius: 2px; background: var(--mint); }
.nav-icon { width: 18px; color: var(--user-muted, #7a8a94); font-size: 17px; text-align: center; }
.nav-link.active .nav-icon { color: var(--mint); }
.nav-indicator { width: 5px; height: 5px; margin-left: auto; border-radius: 50%; background: var(--mint); }
.sidebar-bottom { margin-top: auto; }
.station-mini { padding: 14px; border: 1px solid #1b3039; background: linear-gradient(140deg,#10251f,#10202a 70%); border-radius: 9px; }
.mini-top { display: flex; align-items: center; gap: 7px; color: var(--user-muted, #9db1ad); font-size: 8px; font-weight: 700; letter-spacing: 1px; }
.pulse-dot { display: inline-block; flex: 0 0 auto; width: 6px; height: 6px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 3px #73e0b01e; }
.station-mini > strong { display: block; margin-top: 12px; font-family: var(--display); font-size: 17px; letter-spacing: .3px; }
.mini-location { display: block; margin-top: 3px; color: var(--user-muted, #a4b0b4); font-size: 10px; }
.mini-coords { margin-top: 11px; color: var(--user-muted, #647781); font-family: var(--display); font-size: 9px; }
.mini-coords span { padding: 0 4px; color: var(--mint); }
.profile-button { width: 100%; display: flex; align-items: center; gap: 9px; padding: 15px 4px 0; border: 0; background: none; text-align: left; }
.avatar { width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid #344450; border-radius: 50%; color: #c3d2d3; background: #20303a; font-size: 10px; font-weight: 700; }
.profile-copy { display: grid; gap: 3px; }
.profile-copy strong { font-size: 10px; font-weight: 600; }
.profile-copy small { color: var(--muted); font-size: 9px; }
.profile-more { margin-left: auto; color: var(--user-muted, #7c8b93); font-size: 19px; }
.main-content { max-width: 1600px; margin-left: 238px; padding: 0 38px 20px; }
.topbar { height: 67px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #172631; }
.breadcrumb { color: var(--user-muted, #73828b); font-size: 11px; }
.breadcrumb span { padding: 0 8px; color: #475660; }
.breadcrumb strong { color: #cad3d6; font-weight: 500; }
.topbar-actions { display: flex; align-items: center; gap: 12px; }
.top-date { color: var(--user-muted, #89979f); font-size: 10px; }
.icon-button { width: 29px; height: 29px; border: 1px solid #263640; border-radius: 6px; background: #101e28; color: #b7c5c8; cursor: pointer; font-size: 17px; transition: transform .3s, background .2s; }
.icon-button:hover { background: #172a35; }
.icon-button.is-refreshing { transform: rotate(180deg); }
.live-pill { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border: 1px solid #1f3b35; border-radius: 20px; background: #10231e; color: var(--mint); cursor: pointer; font-size: 8px; letter-spacing: 1px; font-weight: 700; }
.live-pill.paused { border-color: #3a3b32; background: #24241c; color: #d7bd75; }
.live-pill.paused .pulse-dot { background: #d7bd75; box-shadow: 0 0 0 3px #d7bd751e; }
.mobile-menu { display: none; }
.page-heading { display: flex; justify-content: space-between; align-items: center; padding: 28px 0 22px; }
.eyebrow, .section-kicker { color: var(--user-muted, #7e929b); font-size: 8px; font-weight: 700; letter-spacing: 1.4px; }
.eyebrow { display: flex; align-items: center; gap: 9px; margin: 0 0 9px; }
.heading-line { width: 18px; height: 1px; background: #43565f; }
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 5px; font-family: var(--display); font-size: clamp(24px, 2.7vw, 31px); letter-spacing: -1.3px; font-weight: 500; }
h1 span { color: var(--mint); }
.subtitle { margin: 0; color: var(--user-muted, #82919a); font-size: 11px; }
.heading-weather { display: flex; align-items: center; gap: 10px; padding: 4px 7px 4px 0; }
.weather-icon { color: #f7c96d; font-size: 27px; }
.heading-weather div { display: grid; gap: 2px; }
.heading-weather strong { font-family: var(--display); font-size: 19px; font-weight: 500; }
.heading-weather div span { color: var(--user-muted, #87959c); font-size: 9px; }
.demo-notice { display: flex; align-items: center; gap: 9px; min-height: 36px; margin-bottom: 17px; padding: 7px 11px; border: 1px solid #493a26; border-radius: 6px; background: #221e17; color: #c1a978; font-size: 10px; }
.demo-notice strong { color: #e4c78d; font-weight: 600; }
.notice-icon { display: grid; flex: 0 0 auto; width: 15px; height: 15px; place-items: center; border: 1px solid #987642; border-radius: 50%; font-family: var(--display); font-size: 9px; }
.demo-notice button { margin-left: auto; border: 0; background: none; color: var(--user-muted, #9b875f); cursor: pointer; font-size: 17px; }
.overview-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 13px; }
.card { min-width: 0; padding: 16px; border: 1px solid var(--line); border-radius: 8px; background: linear-gradient(145deg,#10202a,#0d1a24 82%); overflow: hidden; }
.overview-grid > .card { min-height: 205px; }
.card-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.card-heading h2 { margin: 5px 0 0; font-family: var(--display); font-size: 13px; font-weight: 500; letter-spacing: -.15px; }
.section-kicker { font-size: 7px; letter-spacing: 1.25px; }
.weather-tag { display: flex; align-items: center; gap: 7px; margin-top: 2px; padding: 5px 7px; border: 1px solid #22453b; border-radius: 4px; background: #122920; color: var(--mint); font-size: 7px; letter-spacing: .8px; font-weight: 700; }
.weather-tag .pulse-dot { width: 5px; height: 5px; }
.hero-card { grid-column: span 2; background: radial-gradient(ellipse at 82% 29%,#253222 0,#15251f 22%,#10202a 62%); }
.hero-weather { display: flex; align-items: center; gap: 15px; height: 104px; }
.sun-illustration { position: relative; width: 73px; height: 73px; display: grid; place-items: center; }
.sun-halo { position: absolute; width: 68px; height: 68px; border: 1px solid #f4c76b20; border-radius: 50%; box-shadow: 0 0 25px #f4c76b18,inset 0 0 20px #f4c76b0e; }
.sun-core { position: relative; z-index: 1; width: 33px; height: 33px; border-radius: 50%; background: radial-gradient(circle at 35% 32%,#fff0ad,#f7c36a 52%,#de9151); box-shadow: 0 0 25px #ffc56850; }
.hero-temperature { font-family: var(--display); font-size: 43px; font-weight: 500; letter-spacing: -2.7px; line-height: 1; }
.hero-temperature span { margin-left: 3px; color: #cfdbdb; font-size: 19px; vertical-align: 14px; letter-spacing: -.5px; }
.hero-condition { margin-top: 7px; color: var(--user-muted, #9eaead); font-size: 10px; }
.hero-details { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6px; padding: 10px 0 12px; border-top: 1px solid #263634; }
.hero-details > div { display: grid; grid-template-columns: 16px auto; align-items: center; gap: 3px 4px; }
.detail-symbol { grid-row: span 2; color: #c5a96f; font-size: 14px; }
.detail-label { color: var(--user-muted, #82928f); font-size: 8px; }
.hero-details strong { font-size: 9px; font-weight: 500; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 5px; margin-top: auto; padding-top: 9px; border-top: 1px solid #1b2a34; color: var(--user-muted, #7e8d96); font-size: 8px; }
.updated-label { color: var(--user-muted, #82929a); font-size: 8px; }
.card-symbol { display: grid; width: 25px; height: 25px; place-items: center; border-radius: 6px; font-size: 17px; }
.wind-symbol { background: #192936; color: var(--blue); }
.rain-symbol { background: #172b35; color: #69c5df; }
.humidity-symbol { background: #182b36; color: #78c9e2; }
.air-symbol { background: #1b2e29; color: var(--mint); font-size: 14px; }
.pressure-symbol { background: #282337; color: var(--purple); }
.light-symbol { background: #30291f; color: #f5c46e; }
.system-symbol { background: #202a32; color: var(--user-muted, #9caeb6); }
.power-symbol { background: #302a1e; color: #f3c46c; }
.metric-row { display: flex; align-items: baseline; gap: 7px; margin-top: 18px; }
.metric-value { font-family: var(--display); font-size: 30px; font-weight: 500; letter-spacing: -1.3px; line-height: 1; }
.metric-unit { color: #abb9bc; font-family: var(--display); font-size: 11px; }
.metric-caption { margin-top: 5px; color: var(--user-muted, #819099); font-size: 9px; }
.wind-visual { display: flex; align-items: center; gap: 13px; height: 61px; }
.wind-dial { position: relative; flex: 0 0 auto; width: 49px; height: 49px; border: 1px solid #2a3c47; border-radius: 50%; background: radial-gradient(circle,#132631 0,#101e28 71%); }
.wind-dial::before, .wind-dial::after { position: absolute; content: ""; background: #2a3b44; }
.wind-dial::before { top: 50%; left: 7px; right: 7px; height: 1px; }
.wind-dial::after { top: 7px; bottom: 7px; left: 50%; width: 1px; }
.wind-dial > span:not(.wind-arrow):not(.dial-center) { position: absolute; z-index: 1; color: var(--user-muted, #62727b); font-size: 6px; }
.dial-n { top: 3px; left: 22px; }.dial-e { top: 21px; right: 3px; }.dial-s { bottom: 3px; left: 23px; }.dial-w { top: 21px; left: 3px; }
.wind-arrow { position: absolute; z-index: 2; top: 7px; left: 19px; color: var(--blue); font-size: 19px; transform-origin: 50% 17px; }
.dial-center { position: absolute; z-index: 3; top: 21px; left: 21px; width: 5px; height: 5px; border-radius: 50%; background: #e0eef0; }
.wind-info { display: grid; gap: 3px; }
.wind-info span, .wind-info small { color: var(--user-muted, #809099); font-size: 8px; }
.wind-info strong { font-size: 10px; font-weight: 600; }
.status-dot { display: inline-block; width: 5px; height: 5px; margin-right: 4px; border-radius: 50%; background: var(--mint); }
.rain-progress { margin-top: 18px; }
.rain-progress-head { display: flex; justify-content: space-between; color: var(--user-muted, #819099); font-size: 8px; }
.rain-progress-head strong { color: #84d9e8; font-size: 8px; font-weight: 600; }
.progress-track { height: 5px; margin-top: 8px; border-radius: 5px; background: #1b2e38; overflow: hidden; }
.rain-fill { display: block; width: 18%; height: 100%; border-radius: inherit; background: linear-gradient(90deg,#398eaa,#79d5e5); transition: width .4s; }
.progress-scale { display: flex; justify-content: space-between; margin-top: 5px; color: var(--user-muted, #61727b); font-size: 7px; }
.humidity-visual { margin-top: 17px; }
.humidity-track { height: 7px; border-radius: 8px; background: linear-gradient(90deg,#394138,#829263 53%,#40687a); overflow: hidden; }
.humidity-track span { display: block; width: 76%; height: 100%; border-right: 2px solid #e2f4e9; transition: width .4s; }
.humidity-labels { display: flex; justify-content: space-between; margin-top: 6px; color: var(--user-muted, #63747d); font-size: 7px; }
.air-score-row { display: flex; align-items: center; gap: 10px; margin-top: 17px; }
.air-grade { padding: 4px 7px; border: 1px solid #24463b; border-radius: 4px; background: #142a21; color: var(--mint); font-size: 7px; letter-spacing: .6px; font-weight: 700; }
.air-meter { position: relative; margin: 17px 1px 0; }
.meter-zones { display: flex; gap: 3px; height: 5px; }
.meter-zones span { flex: 1; border-radius: 4px; }
.meter-zones span:nth-child(1) { background: #64d5a5; }.meter-zones span:nth-child(2) { background: #d4ca68; }.meter-zones span:nth-child(3) { background: #edac65; }.meter-zones span:nth-child(4) { background: #e77b67; }.meter-zones span:nth-child(5) { background: #a96470; }
.meter-marker { position: absolute; top: -3px; left: 17%; width: 3px; height: 11px; border-radius: 2px; background: #fff; box-shadow: 0 0 4px #fff9; transition: left .4s; }
.air-scale { display: flex; justify-content: space-between; margin-top: 5px; color: var(--user-muted, #667780); font-size: 7px; }
.sensor-note { margin-top: 9px; color: var(--user-muted, #829099); font-size: 7px; }
.pressure-trend { display: flex; align-items: center; gap: 4px; margin-top: 9px; color: var(--mint); font-size: 8px; }
.trend-arrow { font-size: 13px; }
.trend-caption { color: var(--user-muted, #70808a); }
.pressure-chart { height: 38px; margin: 7px 0 2px; }
.pressure-chart svg { width: 100%; height: 100%; overflow: visible; }
.pressure-area { fill: url(#pressureGradient); }.pressure-line { fill: none; stroke: var(--purple); stroke-width: 2; vector-effect: non-scaling-stroke; }
.light-spectrum { display: flex; align-items: center; gap: 6px; height: 40px; margin-top: 7px; }
.spectrum-sun { color: #f2bf6a; font-size: 14px; }.spectrum-cloud { color: var(--user-muted, #8ca2aa); font-size: 14px; }.spectrum-night { color: var(--user-muted, #7788a0); font-size: 12px; }
.spectrum-line { height: 2px; flex: 1; border-radius: 3px; background: linear-gradient(90deg,#e7ae54,#8b9691,#59677d); }
.device-row { display: flex; align-items: center; gap: 8px; margin-top: 14px; }
.device-icon { display: grid; flex: 0 0 auto; width: 26px; height: 26px; place-items: center; border: 1px solid #2c3c46; border-radius: 6px; background: #192832; color: var(--user-muted, #91a8b1); font-size: 14px; }
.lora-icon { color: #b3a5ed; }
.device-copy { display: grid; gap: 3px; min-width: 0; }
.device-copy strong { overflow: hidden; color: #d9e2e4; font-size: 8px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.device-copy small { color: var(--user-muted, #798992); font-size: 7px; }
.device-status { display: flex; align-items: center; gap: 4px; margin-left: auto; color: #86dcb4; font-size: 7px; white-space: nowrap; }
.device-status i { width: 4px; height: 4px; border-radius: 50%; background: var(--mint); }
.signal-row { display: flex; align-items: center; gap: 6px; margin-top: 12px; padding-top: 9px; border-top: 1px solid #1b2a34; color: var(--user-muted, #7e8d96); font-size: 7px; }
.signal-row strong { margin-left: auto; color: #bdc9cb; font-size: 8px; font-weight: 500; }
.signal-bars { display: flex; align-items: end; gap: 2px; height: 10px; }
.signal-bars i { width: 3px; border-radius: 1px; background: var(--mint); }.signal-bars i:nth-child(1) { height: 4px; }.signal-bars i:nth-child(2) { height: 6px; }.signal-bars i:nth-child(3) { height: 8px; }.signal-bars i:nth-child(4) { height: 10px; }
.lower-grid { display: grid; grid-template-columns: minmax(0,1.8fr) minmax(260px,1fr); gap: 13px; margin-top: 13px; }
.chart-card, .power-card { min-height: 260px; }
.chart-heading { align-items: center; }
.chart-heading h2 { font-size: 14px; }
.chart-legend { display: flex; align-items: center; gap: 11px; color: var(--user-muted, #8e9ba1); font-size: 8px; }
.chart-legend > span { display: flex; align-items: center; gap: 5px; white-space: nowrap; }
.legend-temp, .legend-humidity { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--orange); }
.legend-humidity { background: var(--blue); }
.chart-legend select { padding: 5px 6px; border: 1px solid #293943; border-radius: 4px; background: #12212b; color: #b5c2c5; font-size: 8px; }
.chart-readouts { display: flex; gap: 17px; margin: 12px 0 3px; }
.chart-readouts > div { display: flex; align-items: baseline; gap: 5px; }
.chart-readouts strong { font-family: var(--display); font-size: 15px; font-weight: 500; }
.chart-readouts small { color: var(--user-muted, #84939a); font-size: 8px; }
.readout-dot { display: inline-block; width: 5px; height: 5px; border-radius: 50%; }
.temp-dot { background: var(--orange); }.humidity-dot { background: var(--blue); }
.chart-wrap { position: relative; height: 113px; padding-left: 22px; }
.chart-wrap svg { width: 100%; height: 100%; overflow: visible; }
.chart-y-labels { position: absolute; inset: 0 auto 0 0; display: flex; flex-direction: column; justify-content: space-between; color: var(--user-muted, #61727a); font-size: 7px; }
.chart-grid path { fill: none; stroke: #1b2c36; stroke-width: 1; vector-effect: non-scaling-stroke; }
.chart-temp-area { fill: url(#tempFill); }
.chart-temp-line, .chart-humidity-line { fill: none; stroke: var(--orange); stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linecap: round; stroke-linejoin: round; }
.chart-humidity-line { stroke: var(--blue); stroke-width: 1.7; stroke-dasharray: 4 4; }
.chart-point-temp { fill: var(--orange); stroke: #10202a; stroke-width: 2; vector-effect: non-scaling-stroke; }
.chart-point-humidity { fill: var(--blue); stroke: #10202a; stroke-width: 2; vector-effect: non-scaling-stroke; }
.chart-x-labels { display: flex; justify-content: space-between; padding: 7px 1px 0 22px; color: var(--user-muted, #687983); font-size: 7px; }
.chart-footnote { display: flex; justify-content: space-between; margin-top: 12px; color: var(--user-muted, #71818a); font-size: 7px; }
.chart-footnote .status-dot { width: 4px; height: 4px; }
.battery-display { display: flex; align-items: center; gap: 13px; margin-top: 23px; padding: 11px 12px; border: 1px solid #273533; border-radius: 7px; background: linear-gradient(110deg,#17261f,#14212a); }
.battery-icon { display: flex; align-items: center; }
.battery-body { width: 39px; height: 21px; padding: 3px; border: 1px solid #5b7767; border-radius: 4px; }
.battery-body span { display: block; width: 84%; height: 100%; border-radius: 1px; background: linear-gradient(90deg,#5fc98f,#a0dc83); transition: width .4s; }
.battery-tip { width: 3px; height: 8px; border-radius: 0 2px 2px 0; background: #6a8576; }
.battery-display > div:last-child { display: flex; align-items: baseline; gap: 3px; }
.battery-display strong { font-family: var(--display); font-size: 24px; font-weight: 500; }
.battery-display > div:last-child > span { color: #b4c1bd; font-size: 10px; }
.battery-display small { margin-left: auto; color: var(--user-muted, #82918b); font-size: 8px; }
.power-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 13px 10px; margin-top: 16px; }
.power-stats > div { display: grid; grid-template-columns: 17px 1fr; align-items: center; gap: 4px 5px; }
.power-icon { grid-row: span 2; font-size: 13px; }.solar-icon { color: #f0c46e; }.charge-icon { color: var(--mint); }.use-icon { color: #91b9d1; }
.power-stats > div > span:nth-child(2) { color: var(--user-muted, #83929a); font-size: 8px; }
.power-stats strong { font-family: var(--display); font-size: 12px; font-weight: 500; }
.power-stats strong small { color: var(--user-muted, #98a7ab); font-size: 8px; }
.power-status { display: flex; align-items: center; margin-top: 16px; padding-top: 10px; border-top: 1px solid #1c2b33; color: var(--user-muted, #a3b3ab); font-size: 8px; }
.power-foot { margin-top: 10px; color: var(--user-muted, #64757e); font-size: 7px; }.power-foot span { padding: 0 4px; color: var(--user-muted, #91a697); }
.footer { display: flex; justify-content: space-between; gap: 10px; padding: 19px 2px 0; color: var(--user-muted, #566872); font-size: 7px; letter-spacing: .3px; }
.footer > span:first-child { letter-spacing: 1px; }.footer-dot { color: var(--mint); }.footer span span:not(.footer-dot) { color: var(--user-muted, #70818a); }
@media (min-width: 1450px) { .main-content { padding-right: 52px; padding-left: 52px; }.overview-grid { gap: 16px; }.card { padding: 18px; }.overview-grid > .card { min-height: 216px; } }
@media (max-width: 1100px) { .sidebar { width: 205px; }.main-content { margin-left: 205px; padding-right: 24px; padding-left: 24px; }.overview-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }.hero-card { grid-column: span 2; }.system-card { grid-column: span 1; }.lower-grid { grid-template-columns: minmax(0,1.5fr) minmax(240px,1fr); }.card { padding: 14px; } }
@media (max-width: 760px) { .sidebar { transform: translateX(-100%); transition: transform .25s ease; box-shadow: 12px 0 28px #0005; }.sidebar.open { transform: translateX(0); }.main-content { margin-left: 0; padding: 0 20px 20px; }.mobile-menu { display: block; padding: 5px 8px; border: 1px solid #253640; border-radius: 5px; background: #10202a; color: #a9b8bd; cursor: pointer; }.topbar { height: 58px; }.breadcrumb { margin-right: auto; margin-left: 11px; }.top-date { display: none; }.page-heading { padding-top: 24px; }.overview-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }.hero-card { grid-column: span 2; }.lower-grid { grid-template-columns: 1fr; }.system-card { grid-column: span 1; }.chart-card { min-height: 250px; } }
@media (max-width: 470px) { .main-content { padding-right: 13px; padding-left: 13px; }.topbar-actions { gap: 7px; }.live-pill { padding: 7px; font-size: 7px; }.icon-button { width: 27px; height: 27px; }.page-heading { align-items: flex-start; }.heading-weather { gap: 6px; }.heading-weather strong { font-size: 16px; }.heading-weather div span { font-size: 8px; }.eyebrow { font-size: 7px; }.subtitle { max-width: 245px; line-height: 1.5; }.overview-grid { gap: 9px; }.card { padding: 12px; }.overview-grid > .card { min-height: 198px; }.hero-card { min-height: 219px!important; }.hero-details { gap: 2px; }.detail-label { font-size: 7px; }.hero-details strong { font-size: 8px; }.metric-value { font-size: 27px; }.card-heading h2 { font-size: 12px; }.section-kicker { font-size: 6px; letter-spacing: 1px; }.card-symbol { width: 23px; height: 23px; }.chart-legend { gap: 6px; }.chart-legend > span { gap: 3px; font-size: 7px; }.chart-legend select { padding: 4px 2px; font-size: 7px; }.chart-footnote { font-size: 6px; }.footer { flex-wrap: wrap; }.footer > span:last-child { margin-left: auto; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto!important; transition-duration: .01ms!important; } }

:root {
  color-scheme: light;
  --bg: #f3f7fc;
  --sidebar: #ffffff;
  --card: #ffffff;
  --card-2: #f7faff;
  --line: #e2eaf3;
  --text: #192f49;
  --muted: #647991;
  --subtle: #8193a8;
  --mint: #2386e8;
  --orange: #e99538;
  --blue: #399bd5;
  --purple: #7970d6;
}
body { background: var(--bg); color: var(--text); }
.sidebar { background: #fff; border-right-color: #e3eaf2; box-shadow: 3px 0 16px #27476b08; }
.brand-mark { color: #267fda; background: #eaf4ff; border-color: #d5e8fb; }
.brand-copy small, .nav-label { color: var(--user-muted, #8a9bb0); }
.nav-link { color: var(--user-muted, #63768e); }
.nav-link:hover, .nav-link.active { background: #edf5ff; color: #1c5f9e; }
.nav-link.active::before { background: #3188df; }
.nav-icon { color: var(--user-muted, #71859c); }
.nav-link.active .nav-icon { color: #3188df; }
.nav-indicator { background: #3188df; }
.station-mini { border-color: #dbe9f5; background: linear-gradient(140deg,#edf6ff,#f7fbff 70%); }
.mini-top { color: var(--user-muted, #587795); }
.pulse-dot { background: #399b73; box-shadow: 0 0 0 3px #399b731c; }
.mini-location { color: var(--user-muted, #58718a); }
.mini-coords { color: var(--user-muted, #71869b); }
.mini-coords span { color: #3488da; }
.avatar { border-color: #d8e4ef; color: #37658e; background: #edf4fb; }
.profile-copy small, .profile-more { color: var(--user-muted, #72859b); }
.topbar { border-bottom-color: #e3eaf2; }
.breadcrumb { color: var(--user-muted, #75879c); }
.breadcrumb span { color: var(--user-muted, #a4b2c1); }
.breadcrumb strong { color: #304c68; }
.top-date { color: var(--user-muted, #71849a); }
.icon-button { border-color: #dce6ef; background: #fff; color: var(--user-muted, #4a6781); }
.icon-button:hover { background: #eff6fd; }
.live-pill { border-color: #cce9dc; background: #effaf5; color: #25845c; }
.live-pill.paused { border-color: #eadcb8; background: #fff9eb; color: #9c7623; }
.live-pill.paused .pulse-dot { background: #c79b39; box-shadow: 0 0 0 3px #c79b391c; }
.eyebrow, .section-kicker { color: var(--user-muted, #6e849a); }
.heading-line { background: #b7c8d8; }
h1 span { color: #2f88dd; }
.subtitle { color: var(--user-muted, #71849a); }
.heading-weather div span { color: var(--user-muted, #73869b); }
.demo-notice { border-color: #d7e8f7; background: #edf6ff; color: var(--user-muted, #587694); }
.demo-notice strong { color: #275b89; }
.notice-icon { border-color: #77a6d2; }
.demo-notice button { color: var(--user-muted, #6684a0); }
.card { border-color: #e1e9f1; background: #fff; box-shadow: 0 3px 12px #29496708; }
.card-heading h2 { color: #233d58; }
.weather-tag { border-color: #cfe7dd; background: #f0faf5; color: #27845d; }
.hero-card { background: radial-gradient(ellipse at 82% 29%,#eaf4ff 0,#f1f7fd 28%,#fff 70%); }
.sun-halo { border-color: #e7bf6b42; box-shadow: 0 0 25px #f4c76b20,inset 0 0 20px #f4c76b10; }
.hero-temperature { color: #1e3954; }
.hero-temperature span { color: var(--user-muted, #55718b); }
.hero-condition, .detail-label { color: var(--user-muted, #74899d); }
.detail-symbol { color: #458ccd; }
.hero-details { border-top-color: #e2eaf1; }
.hero-details strong { color: #304b66; }
.card-foot { border-top-color: #e8eef4; color: var(--user-muted, #74879a); }
.updated-label { color: var(--user-muted, #7d8fa1); }
.wind-symbol, .rain-symbol, .humidity-symbol, .air-symbol, .pressure-symbol, .light-symbol, .system-symbol, .power-symbol { background: #eef5fc; }
.wind-symbol { color: #3488d1; }.rain-symbol { color: #359ac2; }.humidity-symbol { color: #398eb8; }
.air-symbol { color: #3a9977; }.pressure-symbol { color: #7970ce; }.light-symbol { color: #ca923a; }
.system-symbol { color: var(--user-muted, #5e7d99); }.power-symbol { color: #cb9133; }
.metric-unit, .metric-caption { color: var(--user-muted, #71859a); }
.wind-dial { border-color: #dbe6ef; background: radial-gradient(circle,#f5f9fd 0,#fff 71%); }
.wind-dial::before, .wind-dial::after { background: #e1eaf2; }
.wind-dial > span:not(.wind-arrow):not(.dial-center) { color: var(--user-muted, #8093a7); }
.wind-arrow { color: #398ed9; }
.dial-center { background: #51718e; }
.wind-info span, .wind-info small { color: var(--user-muted, #7a8ea2); }
.wind-info strong { color: #2b4660; }
.status-dot { background: #399b73; }
.rain-progress-head, .progress-scale, .humidity-labels { color: var(--user-muted, #71869a); }
.rain-progress-head strong { color: #318eae; }
.progress-track { background: #e8f0f6; }
.rain-fill { background: linear-gradient(90deg,#4b9fc5,#69c4dc); }
.humidity-track { background: linear-gradient(90deg,#d9e7d1,#b7cf8e 53%,#8bc2d2); }
.humidity-track span { border-right-color: #fff; }
.air-grade { border-color: #cfe7dc; background: #f0faf5; color: #27845d; }
.air-scale, .sensor-note { color: var(--user-muted, #788da0); }
.pressure-trend { color: #25875e; }
.trend-caption { color: var(--user-muted, #75899c); }
.pressure-area { fill: #8b81dc22; }
.pressure-line { stroke: #8178d0; }
.spectrum-cloud { color: var(--user-muted, #8299ab); }.spectrum-night { color: var(--user-muted, #7288a3); }
.device-icon { border-color: #dce7f0; background: #f1f6fb; color: var(--user-muted, #5b7d99); }
.lora-icon { color: #786dc9; }
.device-copy strong { color: #304960; }
.device-copy small { color: var(--user-muted, #7b8ea0); }
.device-status { color: #27845d; }
.device-status i { background: #399b73; }
.signal-row { border-top-color: #e4ecf3; color: var(--user-muted, #75899d); }
.signal-row strong { color: #38536b; }
.signal-bars i { background: #399b73; }
.chart-legend { color: var(--user-muted, #687f94); }
.chart-legend select { border-color: #dce6ef; background: #fff; color: #405d77; }
.chart-readouts small, .chart-y-labels, .chart-x-labels { color: var(--user-muted, #7a8da0); }
.chart-grid path { stroke: #e5edf4; }
.chart-point-temp { stroke: #fff; }
.chart-point-humidity { stroke: #fff; }
.chart-footnote { color: var(--user-muted, #778b9c); }
.chart-heading > div:first-child { position: relative; padding-left: 46px; }
.chart-heading-icon { position: absolute; top: 0; left: 0; display: grid; width: 36px; height: 36px; place-items: center; border: 1px solid #dceaf7; border-radius: 10px; background: #eff6fd; color: #4387c3; }
.chart-heading-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.battery-display { border-color: #dce9e0; background: linear-gradient(110deg,#f1faf4,#f6faff); }
.battery-body { border-color: #79a58b; }
.battery-body span { background: linear-gradient(90deg,#4fbd82,#91cf72); }
.battery-tip { background: #83a691; }
.battery-display > div:last-child > span, .battery-display small { color: var(--user-muted, #71877e); }
.power-stats > div > span:nth-child(2) { color: var(--user-muted, #74899c); }
.solar-icon { color: #d69a37; }.charge-icon { color: #319568; }.use-icon { color: #458bb1; }
.power-stats strong { color: #2c4860; }
.power-stats strong small { color: var(--user-muted, #758a9c); }
.power-status { border-top-color: #e4ecf1; color: var(--user-muted, #506b60); }
.power-foot { color: var(--user-muted, #778b9b); }.power-foot span { color: var(--user-muted, #678d77); }
.footer { color: var(--user-muted, #718498); }
.footer-dot { color: #3188d9; }
.footer span span:not(.footer-dot) { color: var(--user-muted, #718498); }
@media (max-width: 760px) {
  .sidebar { box-shadow: 12px 0 28px #29496718; }
  .mobile-menu { border-color: #dce6ef; background: #fff; color: var(--user-muted, #496984); }
}
.profile-button { cursor: pointer; border-radius: 8px; text-align: left; transition: background .18s ease; }
.profile-button:hover { background: #f0f6fc; }
.profile-button:focus-visible, .nav-link:focus-visible, button:focus-visible, select:focus-visible, input:focus-visible { outline: 3px solid #78b5f080; outline-offset: 2px; }
.overview-grid > .card { border-radius: 11px; }
.card-heading h2 { font-family: var(--font); font-weight: 650; }
.radio-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 13px; padding: 9px 0; border-top: 1px solid #e8eef4; border-bottom: 1px solid #e8eef4; }
.radio-stats > div { display: grid; gap: 4px; min-width: 0; }
.radio-stats span { color: var(--user-muted, #71869a); font-size: 8px; }
.radio-stats strong { overflow: hidden; color: #304b66; font-size: 9px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.radio-note { margin-top: 9px; color: var(--user-muted, #71869a); font-size: 8px; }
.device-status.demo-status, .device-status.radio-waiting { color: #91722e; }
.device-status.demo-status::before, .device-status.radio-waiting::before { width: 5px; height: 5px; border-radius: 50%; background: #d3a643; content: ""; }
.device-status.radio-received { color: #27845d; }
.device-status.radio-received::before { width: 5px; height: 5px; border-radius: 50%; background: #399b73; content: ""; }
.system-card .card-foot { align-items: flex-start; }
.system-card .card-foot > span:first-child { max-width: 75%; line-height: 1.4; }
.operator-dialog { width: min(440px, calc(100vw - 32px)); max-width: none; padding: 24px; border: 1px solid #dce6ef; border-radius: 14px; background: #fff; color: #233d58; box-shadow: 0 24px 80px #17345130; }
.operator-dialog::backdrop { background: #17314c66; backdrop-filter: blur(3px); }
.operator-dialog form { display: grid; gap: 15px; }
.dialog-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.dialog-heading h2 { margin: 5px 0 0; font-family: var(--font); font-size: 19px; font-weight: 700; }
.dialog-close { width: 30px; height: 30px; border: 1px solid #dce6ef; border-radius: 7px; background: #f7faff; color: var(--user-muted, #607890); cursor: pointer; font-size: 19px; }
.dialog-intro { margin: -5px 0 1px; color: var(--user-muted, #71849a); font-size: 12px; }
.form-field { display: grid; gap: 6px; color: var(--user-muted, #526b83); font-size: 11px; font-weight: 600; }
.form-field input { width: 100%; min-height: 40px; padding: 9px 11px; border: 1px solid #dce6ef; border-radius: 7px; background: #fbfdff; color: #233d58; font: 500 13px var(--font); }
.form-field input:focus { border-color: #6ca9e2; outline: 3px solid #78b5f02a; }
.dialog-feedback { min-height: 15px; margin: -4px 0 0; color: #a44949; font-size: 11px; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; padding-top: 3px; }
.button-primary, .button-secondary { min-height: 36px; padding: 0 13px; border: 1px solid transparent; border-radius: 7px; cursor: pointer; font-size: 11px; font-weight: 650; }
.button-primary { background: #347fce; color: #fff; }
.button-primary:hover { background: #276db5; }
.button-secondary { border-color: #dce6ef; background: #fff; color: var(--user-muted, #526b83); }
.button-secondary:hover { background: #f2f7fc; }
@media (max-width: 470px) {
  .operator-dialog { padding: 19px; }
  .system-card .card-foot { font-size: 7px; }
}

body {
  position: relative;
  isolation: isolate;
  background-color: #edf5fd;
  background-image: url("clouds.svg"), linear-gradient(180deg, #f8fbff 0%, #edf5fd 46%, #f8fbff 100%);
  background-repeat: no-repeat;
  background-position: center, center top;
  background-size: min(100vw, 1600px) auto, cover;
  background-attachment: fixed;
  font-size: 15px;
}
.app-shell { position: relative; z-index: 1; }
.sidebar { z-index: 10; width: 254px; padding: 28px 20px 20px; }
.main-content { max-width: 1520px; margin-left: 254px; padding: 0 clamp(22px, 4vw, 58px) 30px; }
.brand-copy strong { font-size: 19px; }
.brand-copy small { font-size: 10px; }
.nav-label { margin-top: 40px; font-size: 10px; }
.nav-link { min-height: 46px; gap: 12px; font-size: 14px; }
.nav-icon { font-size: 19px; }
.profile-button { min-height: 54px; margin-top: 5px; gap: 11px; }
.profile-copy strong { font-size: 13px; }
.profile-copy small { font-size: 11px; }
.avatar { width: 36px; height: 36px; font-size: 12px; }
.topbar { height: 70px; }
.breadcrumb { font-size: 13px; }
.top-date { font-size: 12px; }
.icon-button { width: 36px; height: 36px; font-size: 20px; }
.live-pill { min-height: 36px; padding: 8px 12px; font-size: 10px; }
.eyebrow, .section-kicker { font-size: 10px; }
.page-heading { padding-top: 32px; }
h1 { font-size: clamp(29px, 3.2vw, 38px); }
.subtitle { font-size: 14px; }
.heading-weather strong { font-size: 23px; }
.heading-weather div span { font-size: 12px; }
.demo-notice { min-height: 46px; gap: 11px; font-size: 13px; }
.notice-icon { width: 19px; height: 19px; font-size: 11px; }
.dashboard-section { margin: 30px 0 0; scroll-margin-top: 24px; }
.section-heading { display: flex; align-items: flex-start; gap: 14px; margin: 0 0 15px; }
.section-index { display: grid; width: 36px; height: 36px; flex: 0 0 auto; place-items: center; border: 1px solid #d5e6f5; border-radius: 10px; background: #eaf4ff; color: #4387c3; font: 600 12px var(--display); }
.section-heading h2 { margin: 0; color: #233d58; font: 700 21px/1.3 var(--font); letter-spacing: -.4px; }
.section-heading p { margin: 3px 0 0; color: var(--user-muted, #71849a); font-size: 13px; }
.sensor-list, .panel-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.sensor-list > .card, .panel-list > .card {
  min-width: 0;
  min-height: 150px;
  padding: clamp(19px, 3vw, 27px);
  border-color: #dce7f1;
  border-radius: 13px;
  background: #ffffffed;
  box-shadow: 0 6px 22px #274d7009;
}
.sensor-list > .card:not(.chart-card) {
  display: grid;
  grid-template-columns: minmax(210px, .9fr) minmax(200px, 1.15fr) minmax(180px, .9fr);
  align-items: center;
  column-gap: clamp(18px, 3vw, 42px);
  row-gap: 5px;
}
.card-heading { display: grid; grid-template-columns: 39px minmax(0, 1fr); align-items: center; justify-content: start; gap: 0 11px; }
.card-heading > div { grid-column: 2; grid-row: 1; }
.card-heading > .card-symbol, .card-heading > .weather-tag { grid-column: 1; grid-row: 1; justify-self: start; }
.card-heading .section-kicker { letter-spacing: 1px; }
.card-heading h2 { margin-top: 3px; font-size: 17px; font-weight: 700; }
.card-symbol { width: 36px; height: 36px; border: 1px solid #dceaf7; border-radius: 10px; background: #eff6fd; font-size: 20px; }
.section-heading .section-index { box-shadow: 0 3px 8px #2a6ca20a; }
.weather-tag { width: max-content; min-height: 28px; padding: 5px 8px; font-size: 9px; }
.hero-card .card-heading { grid-column: 1; grid-row: 1; }
.hero-weather { grid-column: 2; grid-row: 1 / span 2; height: auto; min-height: 85px; justify-content: center; gap: 20px; }
.hero-details { grid-column: 3; grid-row: 1 / span 2; gap: 12px; padding: 10px 0; border-top: 0; }
.hero-details > div { grid-template-columns: 20px auto; gap: 3px 7px; }
.detail-symbol { font-size: 17px; }
.detail-label { font-size: 11px; }
.hero-details strong { font-size: 12px; }
.hero-temperature { font-size: 49px; }
.hero-temperature span { font-size: 22px; vertical-align: 16px; }
.hero-condition { font-size: 13px; }
.sun-illustration { width: 78px; height: 78px; }
.sun-core { width: 41px; height: 41px; }
.sun-halo { width: 76px; height: 76px; }
.sensor-list > .card:not(.chart-card) .card-foot,
.panel-list > .card .card-foot { grid-column: 1 / -1; width: 100%; padding-top: 12px; font-size: 11px; }
.sensor-updated { color: var(--user-muted, #596f86); font-size: 12px; font-variant-numeric: tabular-nums; text-align: right; }
.sensor-list > .card > .metric-row { grid-column: 1; grid-row: 2; margin-top: 8px; }
.metric-value { font-size: 38px; }
.metric-unit { font-size: 16px; }
.metric-caption { grid-column: 1; grid-row: 3; margin-top: 0; font-size: 12px; }
.wind-card .wind-visual, .rain-card .rain-progress, .humidity-card .humidity-visual,
.pressure-card .pressure-chart, .light-card .light-spectrum { grid-column: 2; grid-row: 1 / span 3; width: 100%; }
.wind-card .wind-visual { justify-content: center; gap: 23px; }
.wind-dial { width: 64px; height: 64px; }
.wind-arrow { top: 14px; left: 26px; font-size: 22px; transform-origin: 50% 17px; }
.dial-center { top: 29px; left: 29px; width: 5px; height: 5px; }
.dial-n { left: 30px; }.dial-e { top: 29px; }.dial-s { left: 30px; }.dial-w { top: 29px; }
.wind-info span, .wind-info small { font-size: 11px; }
.wind-info strong { font-size: 14px; }
.rain-card .rain-progress { align-self: center; margin-top: 0; }
.rain-progress-head, .progress-scale { font-size: 11px; }
.rain-progress-head strong { font-size: 11px; }
.progress-track { height: 8px; margin-top: 11px; }
.humidity-card .humidity-visual { align-self: center; margin-top: 0; }
.humidity-track { height: 10px; }
.humidity-labels { font-size: 10px; }
.air-card .air-score-row { grid-column: 1; grid-row: 2; display: flex; align-items: center; gap: 12px; margin-top: 10px; }
.air-grade { font-size: 10px; }
.air-card .air-meter { grid-column: 2; grid-row: 1 / span 2; align-self: center; width: 100%; margin-top: 0; }
.air-card .air-scale { grid-column: 2; grid-row: 3; }
.air-card .sensor-note { grid-column: 3; grid-row: 1 / span 3; align-self: center; font-size: 11px; line-height: 1.6; }
.pressure-card .pressure-chart { height: 68px; align-self: center; margin: 0; }
.pressure-trend { grid-column: 3; grid-row: 1 / span 2; flex-wrap: wrap; align-self: center; font-size: 11px; }
.trend-caption { flex-basis: 100%; margin-left: 17px; }
.light-card .light-spectrum { align-self: center; height: 48px; margin: 0; }
.light-card .spectrum-sun, .light-card .spectrum-cloud { font-size: 21px; }
.sensor-list > .chart-card { min-height: 320px; }
.chart-heading { display: flex; align-items: center; justify-content: space-between; }
.chart-heading h2 { font-size: 17px; }
.chart-legend { gap: 15px; font-size: 11px; }
.chart-readouts { gap: 22px; margin-top: 18px; }
.chart-readouts strong { font-size: 18px; }
.chart-readouts small { font-size: 11px; }
.chart-wrap { height: 180px; }
.chart-y-labels, .chart-x-labels { font-size: 10px; }
.chart-footnote { margin-top: 15px; font-size: 10px; }
#power .power-card { display: grid; grid-template-columns: minmax(240px, .85fr) minmax(260px, 1.15fr); align-items: center; gap: 13px 35px; min-height: 240px; }
.power-card .card-heading { grid-column: 1; grid-row: 1; }
.battery-display { grid-column: 1; grid-row: 2; gap: 16px; margin: 0; padding: 15px; }
.battery-body { width: 47px; height: 25px; }
.battery-display strong { font-size: 29px; }
.battery-display small { font-size: 11px; }
.power-stats { grid-column: 2; grid-row: 1 / span 2; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 22px; margin: 0; }
.power-stats > div { grid-template-columns: 23px 1fr; gap: 5px 8px; }
.power-icon { font-size: 17px; }
.power-stats > div > span:nth-child(2) { font-size: 12px; }
.power-stats strong { font-size: 17px; }
.power-stats strong small { font-size: 12px; }
.power-stats .power-updated { grid-column: 1 / -1; }
.power-updated time { grid-column: 2; color: var(--user-muted, #596f86); font-size: 12px; }
.power-status { grid-column: 1; grid-row: 3; margin-top: 0; padding-top: 12px; font-size: 12px; }
#devices .system-card { display: grid; grid-template-columns: minmax(210px, .9fr) minmax(210px, 1fr) minmax(210px, 1fr); align-items: center; gap: 12px 30px; min-height: 220px; }
#devices .system-card .card-heading { grid-column: 1; grid-row: 1; }
#devices .device-row:nth-of-type(2) { grid-column: 1; grid-row: 2; }
#devices .device-row:nth-of-type(3) { grid-column: 1; grid-row: 3; }
.device-row { gap: 12px; margin-top: 0; }
.device-icon { width: 38px; height: 38px; font-size: 18px; }
.device-copy { gap: 4px; }
.device-copy strong { font-size: 12px; }
.device-copy small { font-size: 11px; }
.device-status { gap: 6px; font-size: 11px; }
.radio-stats { grid-column: 2; grid-row: 1 / span 2; gap: 15px; margin: 0; padding: 14px 0; }
.radio-stats span { font-size: 11px; }
.radio-stats strong { font-size: 13px; }
.radio-note { grid-column: 2; grid-row: 3; margin: 0; font-size: 12px; }
#devices .system-card .card-foot { grid-column: 3; grid-row: 1 / span 3; align-self: center; display: grid; gap: 10px; padding: 14px; border: 1px solid #e4edf5; border-radius: 9px; background: #f7faff; font-size: 11px; }
#devices .system-card .card-foot > span:first-child { max-width: none; }
#devices .system-card .card-foot .updated-label { font-size: 11px; }
.footer { padding-top: 22px; font-size: 10px; }
.sidebar-scrim { display: none; }
.mobile-menu { min-width: 40px; min-height: 40px; }
.operator-dialog { max-height: min(85dvh, 620px); overflow-y: auto; overscroll-behavior: contain; }
.operator-dialog form { gap: 16px; }
.dialog-heading h2 { font-size: 21px; }
.form-field { font-size: 13px; }
.form-field input { min-height: 46px; font-size: 15px; }
.dialog-feedback { font-size: 12px; }
.button-primary, .button-secondary { min-height: 42px; font-size: 13px; }
.logout-form { display: flex!important; justify-content: flex-start; padding-top: 13px; border-top: 1px solid #e4ecf3; }
.button-logout { min-height: 40px; padding: 0 12px; border: 1px solid #f0d7d4; border-radius: 7px; background: #fff8f7; color: #a74b43; cursor: pointer; font-size: 13px; font-weight: 650; }
.button-logout:hover { background: #fff0ee; }
body.menu-open { overflow: hidden; overscroll-behavior: none; }
.sidebar-scrim { position: fixed; inset: 0; z-index: 9; width: 100%; height: 100%; padding: 0; border: 0; background: #172f4766; backdrop-filter: blur(1.5px); }
body.menu-open .sidebar-scrim { display: block; }
.auth-page { min-height: 100vh; display: grid; place-items: center; padding: 24px; background-color: #edf5fd; background-image: url("clouds.svg"), linear-gradient(180deg, #f8fbff, #edf5fd); background-position: center, center; background-size: cover; background-attachment: fixed; }
.auth-layout { width: min(100%, 480px); }
.auth-card { overflow: hidden; border: 1px solid #dae7f2; border-radius: 18px; background: #fffffff0; box-shadow: 0 18px 60px #29496718; }
.auth-brand { display: flex; align-items: center; gap: 12px; padding: 22px 26px; border-bottom: 1px solid #e4ecf3; color: #203d58; text-decoration: none; }
.auth-brand-mark { display: grid; width: 42px; height: 42px; place-items: center; border: 1px solid #d6e8f8; border-radius: 12px; background: #edf6ff; color: #347fce; font-size: 23px; }
.auth-brand strong, .auth-brand small { display: block; }
.auth-brand strong { font-size: 17px; }
.auth-brand small { margin-top: 3px; color: var(--user-muted, #71869b); font-size: 9px; font-weight: 700; letter-spacing: 1px; }
.auth-content { padding: 30px 28px 22px; }
.auth-eyebrow { margin: 0 0 8px; color: var(--user-muted, #6987a1); font-size: 10px; font-weight: 700; letter-spacing: 1.3px; }
.auth-content h1 { margin: 0; color: #203b56; font-size: 26px; letter-spacing: -.7px; }
.auth-description { margin: 9px 0 0; color: var(--user-muted, #71849a); font-size: 14px; }
.auth-form { display: grid; gap: 15px; margin-top: 23px; }
.auth-form label { display: grid; gap: 7px; color: var(--user-muted, #425f79); font-size: 13px; font-weight: 650; }
.auth-form input { width: 100%; min-height: 47px; padding: 11px 12px; border: 1px solid #dce6ef; border-radius: 8px; background: #fbfdff; color: #203b56; font: 15px var(--font); }
.auth-form input:focus { border-color: #6ca9e2; outline: 3px solid #78b5f02a; }
.auth-submit { min-height: 47px; margin-top: 4px; border: 0; border-radius: 8px; background: #347fce; color: #fff; cursor: pointer; font-size: 14px; font-weight: 700; }
.auth-submit:hover { background: #276db5; }
.auth-help, .auth-footnote { margin: 0; color: var(--user-muted, #71849a); font-size: 12px; }
.auth-error, .auth-notice { margin: 16px 0 0; padding: 11px 12px; border: 1px solid #f0d1cc; border-radius: 8px; background: #fff7f5; color: #99453c; font-size: 13px; }
.auth-notice { border-color: #d5e6f5; background: #f2f8fe; color: var(--user-muted, #4a6986); }
.auth-footnote { margin-top: 20px; text-align: center; }
.auth-footer { display: flex; justify-content: space-between; padding: 15px 26px; border-top: 1px solid #e4ecf3; color: var(--user-muted, #788da0); font-size: 11px; }
@media (max-width: 900px) {
  .sidebar { width: 224px; }
  .main-content { margin-left: 224px; }
  .sensor-list > .card:not(.chart-card) { grid-template-columns: minmax(185px, .85fr) minmax(175px, 1fr); }
  .hero-details, .air-card .sensor-note { grid-column: 2; grid-row: 3 / span 2; }
  .wind-card .wind-visual, .rain-card .rain-progress, .humidity-card .humidity-visual, .pressure-card .pressure-chart, .light-card .light-spectrum, .air-card .air-meter { grid-column: 2; grid-row: 1 / span 3; }
  #devices .system-card { grid-template-columns: repeat(2,minmax(0,1fr)); }
  #devices .system-card .card-foot { grid-column: 1 / -1; grid-row: 4; }
}
@media (max-width: 760px) {
  .sidebar { z-index: 21; width: min(300px, 84vw); transform: translateX(-105%); transition: transform .24s ease; }
  .sidebar.open { transform: translateX(0); }
  .main-content { margin-left: 0; padding-right: 20px; padding-left: 20px; }
  .mobile-menu { display: grid; place-items: center; padding: 0; border-color: #dce6ef; background: #fff; color: var(--user-muted, #496984); }
  body.menu-open .sidebar-scrim { z-index: 20; }
  body.menu-open .main-content { pointer-events: none; }
  .sensor-list > .card:not(.chart-card) { grid-template-columns: minmax(150px, .8fr) minmax(150px, 1fr); }
  #power .power-card { grid-template-columns: 1fr 1fr; }
  #devices .system-card { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .main-content { padding-right: 15px; padding-left: 15px; }
  .topbar { height: 60px; }
  .top-date { display: none; }
  .topbar-actions { gap: 7px; }
  .page-heading { align-items: flex-start; gap: 10px; }
  h1 { font-size: 29px; }
  .subtitle { max-width: 280px; font-size: 13px; line-height: 1.55; }
  .heading-weather { gap: 6px; padding-right: 0; }
  .heading-weather strong { font-size: 18px; }
  .heading-weather div span { font-size: 10px; }
  .weather-icon { font-size: 22px; }
  .demo-notice { align-items: flex-start; font-size: 12px; line-height: 1.5; }
  .section-heading h2 { font-size: 19px; }
  .section-heading p { font-size: 12px; }
  .sensor-list > .card:not(.chart-card), #power .power-card, #devices .system-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 13px;
    min-height: 0;
    padding: 19px;
  }
  .sensor-list > .card:not(.chart-card):not(.sensor-card) > * { grid-column: 1!important; grid-row: auto!important; }
  .sensor-list > .card:not(.chart-card) .card-heading { grid-template-columns: 37px minmax(0,1fr); }
  .sensor-list > .card:not(.chart-card) .hero-weather { justify-content: flex-start; min-height: 86px; }
  .hero-details { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 7px; padding: 9px 0; border-top: 1px solid #e7eef4; }
  .hero-details > div { grid-template-columns: 18px auto; }
  .hero-details .detail-label { font-size: 10px; }
  .hero-details strong { font-size: 11px; }
  .wind-card .wind-visual { justify-content: flex-start; min-height: 70px; }
  .wind-dial { width: 64px; height: 64px; }
  .sensor-list > .card:not(.chart-card) .card-foot, .panel-list > .card .card-foot { align-items: flex-start; flex-direction: column; gap: 6px; font-size: 11px; }
  .sensor-updated { text-align: left; }
  .air-card .sensor-note { line-height: 1.5; }
  .pressure-chart { min-height: 60px; }
  .chart-card { min-height: 0!important; padding: 19px!important; }
  .chart-heading { align-items: flex-start; flex-direction: column; gap: 12px; }
  .chart-legend { flex-wrap: wrap; }
  .chart-wrap { height: 145px; }
  .chart-footnote { gap: 12px; line-height: 1.5; }
  .battery-display { width: 100%; }
  .power-stats { grid-template-columns: 1fr 1fr; gap: 16px 12px; }
  #devices .system-card .device-row:nth-of-type(2), #devices .system-card .device-row:nth-of-type(3),
  #devices .system-card .radio-stats, #devices .system-card .radio-note,
  #devices .system-card .card-foot { grid-column: 1!important; grid-row: auto!important; }
  #devices .system-card .card-foot { width: 100%; }
  .operator-dialog { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto!important; transition-duration: .01ms!important; }
}

body {
  position: relative;
  isolation: isolate;
  overflow-x: hidden;
  background: #edf5fd;
}
body::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  min-height: 100%;
  background: url("weather-landscape.svg") center top / 100% 100% no-repeat;
  content: "";
  pointer-events: none;
  transition: filter .6s ease;
}
body.weather-cloudy::before { filter: saturate(.72) brightness(.98); }
body.weather-rain::before { filter: saturate(.62) brightness(.92); }
.app-shell { position: relative; z-index: 1; }
.weather-effects { position: fixed; z-index: 0; inset: 0; overflow: hidden; opacity: 0; pointer-events: none; }
.weather-effects::before { position: absolute; inset: -10%; content: ""; }
body.weather-animation-active .weather-effects { opacity: 1; }
body.weather-rain.weather-animation-active .weather-effects::before {
  background-image: repeating-linear-gradient(105deg, transparent 0 17px, #76aee64a 18px 19px, transparent 20px 34px);
  background-size: 45px 54px;
  animation: rain-fall .65s linear infinite;
}
body.weather-clear.weather-animation-active .weather-effects::before {
  background: radial-gradient(ellipse at 82% 9%, #ffe49724 0, transparent 35%);
  animation: weather-glow 4.2s ease-out both;
}
body.weather-cloudy.weather-animation-active .weather-effects::before {
  background: linear-gradient(110deg, transparent 20%, #ffffff26 48%, transparent 76%);
  animation: cloud-glide 4.2s ease-out both;
}
@keyframes rain-fall { to { background-position: 0 54px; } }
@keyframes weather-glow { 0% { opacity: 0; } 35% { opacity: 1; } 100% { opacity: 0; } }
@keyframes cloud-glide { 0% { transform: translateX(-8%); opacity: 0; } 45% { opacity: 1; } 100% { transform: translateX(8%); opacity: 0; } }
.icon-library { position: absolute; width: 0; height: 0; overflow: hidden; }
.sensor-list > .hero-card { grid-column: 1; }
.card-symbol svg, .device-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.device-icon svg { width: 23px; height: 23px; }
.weather-icon { width: 34px; height: 34px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.sun-illustration { display: grid; place-items: center; }
.hero-weather-icon { width: 74px; height: 74px; fill: none; stroke: #e7a942; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 5px 9px #edbd6530); }
.hero-card .card-heading { display: flex; align-items: center; }
.weather-rain .hero-weather-icon, .weather-rain .weather-icon { color: #438fc7; stroke: #438fc7; }
.weather-rain .weather-tag { border-color: #c8dff2; background: #eff7ff; color: #3179ae; }
.weather-rain .weather-tag .pulse-dot { background: #438fc7; box-shadow: 0 0 0 3px #438fc71c; }
.admin-nav-link .nav-icon { font-size: 17px; }
.management-layout { width: min(100% - 32px, 920px); margin: 0 auto; padding: 28px 0 48px; }
.management-header { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 0 0 18px; border-bottom: 1px solid #dbe7f1; }
.management-header .auth-brand { padding: 0; border: 0; }
.management-header-actions { display: flex; align-items: center; gap: 12px; }
.admin-badge { display: inline-flex; align-items: center; min-height: 30px; padding: 6px 10px; border: 1px solid #cfe4f8; border-radius: 20px; background: #eff7ff; color: #386e9b; font-size: 11px; font-weight: 700; }
.management-header .button-secondary { display: inline-flex; align-items: center; text-decoration: none; }
.management-intro { padding: 28px 0 17px; }
.management-intro h1 { margin: 0; color: #203b56; font-size: clamp(26px, 4vw, 34px); }
.management-intro .auth-description { max-width: 670px; line-height: 1.6; }
.management-card { margin: 15px 0; padding: clamp(18px, 3vw, 26px); border: 1px solid #dce7f1; border-radius: 14px; background: #ffffffed; box-shadow: 0 6px 22px #274d7009; }
.management-card-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 17px; }
.management-card-heading h2 { margin: 0; color: #233d58; font-size: 19px; }
.management-card-heading .auth-eyebrow { margin-bottom: 5px; }
.operator-count { display: inline-grid; min-width: 26px; height: 26px; place-items: center; margin-left: 5px; border-radius: 50%; background: #edf5fd; color: #3e78ad; font-size: 12px; vertical-align: 2px; }
.operator-create-form { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: end; }
.operator-create-form .auth-help { grid-column: 1 / span 2; line-height: 1.5; }
.operator-create-form .auth-submit { min-height: 42px; margin: 0; }
.management-flash { margin: 0 0 14px; padding: 12px 14px; border: 1px solid #cfe7d9; border-radius: 9px; background: #f0faf4; color: #28714e; font-size: 13px; }
.management-flash.is-error { border-color: #f0d1cc; background: #fff7f5; color: #99453c; }
.operator-list { display: grid; }
.operator-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 18px; padding: 14px 0; border-top: 1px solid #e6edf4; }
.operator-account { display: flex; min-width: 0; align-items: center; gap: 11px; }
.operator-account > div { display: grid; gap: 4px; min-width: 0; }
.operator-account strong { overflow: hidden; color: #304960; font-size: 14px; text-overflow: ellipsis; }
.operator-account small, .management-security-note, .empty-operators { color: var(--user-muted, #71849a); font-size: 12px; }
.account-status { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; font-size: 12px; font-weight: 650; }
.account-status::before { width: 7px; height: 7px; border-radius: 50%; background: #36a276; content: ""; }
.account-status.is-inactive { color: #9c7623; }
.account-status.is-inactive::before { background: #d3a643; }
.operator-actions { display: flex; gap: 8px; }
.operator-actions form { margin: 0; }
.operator-actions .button-secondary, .button-danger { min-height: 36px; }
.button-danger { padding: 0 12px; border: 1px solid #f0d7d4; border-radius: 7px; background: #fff8f7; color: #a74b43; cursor: pointer; font-size: 12px; font-weight: 650; }
.button-danger:hover { background: #fff0ee; }
.management-security-note { line-height: 1.6; }
@media (max-width: 900px) {
  .sensor-list > .card:not(.chart-card) { grid-template-columns: minmax(0, .9fr) minmax(0, 1fr); }
  .sensor-list > .hero-card { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .hero-card .card-heading { grid-column: 1; grid-row: 1; }
  .hero-card .hero-weather { grid-column: 2; grid-row: 1; }
  .hero-card .hero-details { grid-column: 1 / -1; grid-row: 2; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pressure-card .pressure-trend { grid-column: 2; grid-row: 4 / span 2; }
  .air-card .air-meter { grid-row: 1 / span 2; }
  .air-card .air-scale { grid-row: 3; }
  .air-card .sensor-note { grid-column: 1 / -1; grid-row: 4; }
}
@media (max-width: 700px) {
  .management-header { align-items: flex-start; flex-direction: column; }
  .operator-create-form { grid-template-columns: 1fr; }
  .operator-create-form .auth-help { grid-column: 1; }
}
@media (max-width: 520px) {
  .management-layout { width: min(100% - 24px, 920px); padding-top: 16px; }
  .management-header-actions { width: 100%; justify-content: space-between; }
  .management-card-heading { align-items: flex-start; flex-direction: column; }
  .operator-row { grid-template-columns: minmax(0, 1fr) auto; gap: 12px; }
  .operator-actions { grid-column: 1 / -1; justify-content: flex-end; }
}
@media (prefers-reduced-motion: reduce) {
  .weather-effects, .weather-effects::before { animation: none!important; transition: none!important; }
}

/* Ikon SVG yang konsisten dengan fungsi panel */
.nav-icon { display: inline-grid; place-items: center; width: 22px; height: 22px; font-size: 20px; }
.nav-icon svg, .detail-symbol svg, .power-icon svg, .spectrum-icon svg, .section-index svg {
  width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round;
}
.section-index svg { width: 20px; height: 20px; }
.detail-symbol, .power-icon, .spectrum-icon { display: grid; place-items: center; }
.detail-symbol, .power-icon { font-size: 18px; }
.spectrum-icon { font-size: 22px; }
.spectrum-sun { color: #e0a23c; }
.spectrum-cloud { color: var(--user-muted, #8299ab); }
.spectrum-night { color: var(--user-muted, #7288a3); }

/* Label sumbu Y grafik suhu sejajar dengan garis grid (18-36 °C) */
.chart-y-labels { display: block; width: 22px; }
.chart-y-labels span { position: absolute; left: 0; transform: translateY(-50%); }
.chart-y-labels span:nth-child(1) { top: 7.9%; }
.chart-y-labels span:nth-child(2) { top: 34.2%; }
.chart-y-labels span:nth-child(3) { top: 60.5%; }
.chart-y-labels span:nth-child(4) { top: 86.8%; }

/* ===== Tampilan ponsel ===== */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
a, button, select { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.main-content { min-width: 0; }
.sidebar { overflow-y: auto; }
.form-field input, .auth-form input { font-size: 16px; }

@media (max-width: 760px) {
  .main-content { --pad: 20px; padding-left: max(var(--pad), env(safe-area-inset-left)); padding-right: max(var(--pad), env(safe-area-inset-right)); padding-bottom: calc(24px + env(safe-area-inset-bottom)); }
  .sidebar { padding-bottom: calc(20px + env(safe-area-inset-bottom)); }
  .topbar { position: sticky; top: 0; z-index: 8; height: auto; min-height: 60px; margin-left: calc(var(--pad) * -1); margin-right: calc(var(--pad) * -1); padding: env(safe-area-inset-top) var(--pad) 0; background: #f6faffe8; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
  .icon-button, .mobile-menu { width: 40px; height: 40px; min-height: 40px; }
  .live-pill { min-height: 40px; padding: 0 12px; }
  .dashboard-section { margin-top: 24px; scroll-margin-top: 76px; }
  .operator-dialog { width: calc(100vw - 24px); max-height: 88dvh; }
  .auth-page { padding: 16px; background-attachment: scroll; }
  .auth-brand { padding: 18px 20px; }
  .auth-content { padding: 24px 20px 18px; }
  .auth-footer { flex-wrap: wrap; gap: 6px; padding: 14px 20px; }
  .management-header-actions { flex-wrap: wrap; }
  .operator-actions .button-secondary, .button-danger { min-height: 40px; }
}

@media (max-width: 520px) {
  .main-content { --pad: 15px; }
  .page-heading { flex-direction: column; align-items: flex-start; gap: 12px; padding-bottom: 14px; }
  .heading-weather { padding: 0; }
  .hero-temperature { font-size: 44px; }
  .hero-weather-icon { width: 64px; height: 64px; }
  .hero-weather { gap: 14px; }
  .hero-card .hero-details { grid-template-columns: 1fr 1fr; gap: 12px 8px; }
  .hero-card .hero-details > div:last-child { grid-column: 1 / -1; }
  .metric-value { font-size: 34px; }
  .chart-legend { width: 100%; justify-content: space-between; }
  .chart-legend select { min-height: 36px; padding: 0 8px; font-size: 13px; }
  .chart-x-labels { font-size: 9px; }
  .radio-stats { grid-template-columns: 1fr 1fr; }
  .footer { flex-direction: column; gap: 6px; }
  .footer > span:last-child { margin-left: 0; }
}

/* Ponsel: paksa satu kolom (aturan lebar 900px di atas sebelumnya menimpa aturan ponsel) */
@media (max-width: 520px) {
  .sensor-list > .card:not(.chart-card), .sensor-list > .hero-card { grid-template-columns: minmax(0, 1fr); }
  .sensor-list > .card:not(.chart-card):not(.sensor-card) > * { grid-column: 1 !important; grid-row: auto !important; }
  #power .power-card, #devices .system-card { grid-template-columns: minmax(0, 1fr); }
  #power .power-card > *, #devices .system-card > * { grid-column: 1 !important; grid-row: auto !important; }
  .power-stats { grid-template-columns: 1fr 1fr; }
  .power-stats .power-updated { grid-column: 1 / -1 !important; }
  .battery-display { width: 100%; }
}


/* =====================================================================
   v2 — kartu sensor berbasis lebar kartu (container query),
   teks deskripsi lebih besar, diagram barometer, skala lux, peran akun
   ===================================================================== */
.sensor-list { container-type: inline-size; container-name: sensors; }
.panel-list { container-type: inline-size; container-name: panels; }

.sensor-list > .card.sensor-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "head" "reading" "visual" "desc" "foot";
  align-items: center;
  gap: 14px 32px;
  min-height: 0 !important;
  padding: clamp(18px, 3vw, 26px);
}
.sensor-card > .card-heading { grid-area: head; }
.sensor-card > .sensor-reading { grid-area: reading; margin: 0; min-width: 0; }
.sensor-card > .sensor-visual { grid-area: visual; width: 100%; min-width: 0; margin: 0; height: auto; align-self: center; }
.sensor-card > .sensor-desc { grid-area: desc; }
.sensor-list > .card.sensor-card > .card-foot { grid-area: foot; width: 100%; margin-top: 2px; padding-top: 12px; flex-wrap: wrap; gap: 4px 16px; font-size: 13px; }

@container sensors (min-width: 640px) {
  .sensor-list > .card.sensor-card {
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    grid-template-areas: "head visual" "reading visual" "desc desc" "foot foot";
  }
  .sensor-list > .card.sensor-card:not(:has(> .sensor-desc)) {
    grid-template-areas: "head visual" "reading visual" "foot foot";
  }
}

/* Teks: lebih besar dan lebih kontras */
.sensor-card .section-kicker, .panel-list .section-kicker { font-size: 12px; letter-spacing: .9px; color: var(--user-muted, #5f7a93); }
.sensor-card .card-heading h2, .panel-list .card-heading h2 { font-size: 19px; }
.sensor-card .metric-value { font-size: 40px; }
.sensor-card .metric-unit { font-size: 18px; }
.sensor-card .metric-caption { margin-top: 6px; font-size: 15px; line-height: 1.45; color: var(--user-muted, #52687e); }
.sensor-card .sensor-reading .metric-row { margin-top: 0; }
.sensor-desc { margin: 0; color: var(--user-muted, #4b6178); font-size: 15px; line-height: 1.6; }
.sensor-card .rain-progress-head, .sensor-card .progress-scale,
.sensor-card .humidity-labels, .sensor-card .air-scale { font-size: 14px; color: var(--user-muted, #5b7087); }
.sensor-card .rain-progress-head strong { font-size: 15px; }
.sensor-card .wind-info span, .sensor-card .wind-info small { font-size: 14px; color: var(--user-muted, #5b7087); }
.sensor-card .wind-info strong { font-size: 17px; }
.sensor-card .air-grade { font-size: 12px; padding: 5px 9px; }
.sensor-card .air-score-row { display: flex; align-items: center; gap: 12px; margin: 0; }
.sensor-card .air-scale, .sensor-card .humidity-labels, .sensor-card .progress-scale { margin-top: 8px; }
.sensor-card .air-meter { margin: 0 1px; }
.sensor-card .rain-progress, .sensor-card .humidity-visual { margin: 0; }
.sensor-card .wind-visual { display: flex; align-items: center; justify-content: flex-start; gap: 24px; }
.sensor-card .sensor-updated { font-size: 13px; color: var(--user-muted, #53697f); text-align: right; }

/* Kartu cuaca utama: detail membungkus, tidak terpotong */
.sensor-card .hero-weather { display: flex; align-items: center; justify-content: flex-start; gap: 18px; height: auto; min-height: 0; }
.sensor-card .hero-temperature { font-size: 52px; }
.sensor-card .hero-condition { margin-top: 4px; font-size: 16px; color: var(--user-muted, #52687e); }
.sensor-card .hero-details {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px 18px; padding: 0; border: 0;
}
.sensor-card .hero-details > div { display: grid; grid-template-columns: 24px minmax(0, 1fr); align-items: center; gap: 1px 10px; min-width: 0; }
.sensor-card .hero-details .detail-symbol { grid-row: span 2; font-size: 21px; }
.sensor-card .hero-details .detail-label { font-size: 14px; color: var(--user-muted, #5b7087); }
.sensor-card .hero-details strong { font-size: 16px; line-height: 1.3; overflow-wrap: anywhere; }
@container sensors (min-width: 640px) {
  .sensor-card .hero-details { grid-template-columns: minmax(0, 1fr); }
}

/* ===== Barometer: diagram bergaris ===== */
.pressure-gauge { max-width: 360px; justify-self: center; }
.pressure-gauge svg { display: block; width: 100%; height: auto; overflow: visible; }
.gauge-zone { fill: none; stroke-width: 5; stroke-linecap: butt; }
.gauge-zone-low { stroke: #e8a65e; }
.gauge-zone-normal { stroke: #5fbf9a; }
.gauge-zone-high { stroke: #7ea8e8; }
.gauge-tick { stroke: #8fa2b5; stroke-width: 1.2; stroke-linecap: round; }
.gauge-tick-major { stroke: #34506b; stroke-width: 2.4; }
.gauge-label { fill: #36506a; font: 600 12.5px var(--font, sans-serif); }
.gauge-unit { fill: #61778d; font: 600 13px var(--font, sans-serif); }
.gauge-needle { stroke: #3466c2; stroke-width: 3.2; stroke-linecap: round; fill: none; }
.gauge-hub { fill: #fff; stroke: #3466c2; stroke-width: 3.5; }
#gaugeNeedle { transition: transform .5s ease; }
.gauge-zone-legend { display: flex; justify-content: space-between; gap: 8px; margin-top: 8px; font-size: 14px; color: var(--user-muted, #5b7087); }
.gauge-zone-legend span { display: inline-flex; align-items: center; gap: 6px; }
.gauge-zone-legend span::before { width: 14px; height: 4px; border-radius: 3px; background: currentColor; content: ""; opacity: .85; }
.gauge-zone-legend .zone-low::before { background: #e8a65e; }
.gauge-zone-legend .zone-normal::before { background: #5fbf9a; }
.gauge-zone-legend .zone-high::before { background: #7ea8e8; }
.gauge-zone-legend .is-current { color: #1f3b5c; font-weight: 700; }
.sensor-card .pressure-trend { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-top: 8px; font-size: 15px; color: var(--user-muted, #52687e); }
.sensor-card .pressure-trend[data-trend="rising"] { color: #25875e; }
.sensor-card .pressure-trend[data-trend="falling"] { color: #bf5f2a; }
.sensor-card .trend-arrow { font-size: 18px; }
.sensor-card .trend-caption { flex-basis: auto; margin: 0; font-size: 14px; color: var(--user-muted, #5b7087); }

/* ===== Skala pencahayaan (lux) dengan penanda ===== */
.lux-scale { padding-top: 2px; }
.lux-flag-row { position: relative; height: 34px; }
.lux-flag { position: absolute; top: 0; left: 0; max-width: 100%; padding: 5px 11px; border-radius: 8px; background: #1f3b5c; color: #fff; font-size: 13.5px; font-weight: 700; white-space: nowrap; transform: translateX(-50%); transition: left .5s ease; }
.lux-track { position: relative; display: flex; height: 14px; }
.lux-zone { height: 100%; border-right: 2px solid #fff; }
.lux-zone:nth-child(1) { flex: 0 0 8%; }
.lux-zone:nth-child(2) { flex: 0 0 10%; }
.lux-zone:nth-child(3) { flex: 0 0 20%; }
.lux-zone:nth-child(4) { flex: 0 0 31%; }
.lux-zone:nth-child(5) { flex: 0 0 31%; border-right: 0; }
.zone-night { border-radius: 8px 0 0 8px; background: #45568c; }
.zone-dusk { background: #9d92c6; }
.zone-morning { background: #f4c871; }
.zone-day { background: #f8dd86; }
.zone-noon { border-radius: 0 8px 8px 0; background: #f0a24d; }
.lux-marker { position: absolute; top: -6px; bottom: -6px; left: 0; width: 4px; margin-left: -2px; border-radius: 3px; background: #1f3b5c; box-shadow: 0 0 0 2px #fff; transition: left .5s ease; }
.lux-marker i { position: absolute; top: -10px; left: 50%; border: 6px solid transparent; border-top-color: #1f3b5c; border-bottom: 0; transform: translateX(-50%); }
.lux-icons { position: relative; height: 26px; margin-top: 10px; }
.lux-icons > span { position: absolute; top: 0; display: grid; width: 24px; height: 24px; margin-left: -12px; place-items: center; color: var(--user-muted, #9aabbb); }
.lux-icons > span[data-zone="0"] { left: 4%; }
.lux-icons > span[data-zone="1"] { left: 13%; }
.lux-icons > span[data-zone="2"] { left: 28%; }
.lux-icons > span[data-zone="3"] { left: 53.5%; }
.lux-icons > span[data-zone="4"] { left: 84.5%; }
.lux-icons > span.is-current { color: #c9831f; transform: scale(1.18); }
.lux-icons svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.lux-zone-labels { display: none; }
.lux-ticks { position: relative; height: 18px; margin-top: 4px; font-size: 12.5px; color: var(--user-muted, #5f7489); font-variant-numeric: tabular-nums; }
.lux-ticks > span { position: absolute; top: 0; transform: translateX(-50%); }
.lux-ticks > span:first-child { transform: none; }
.lux-ticks > span::before { position: absolute; top: -5px; left: 50%; width: 1px; height: 5px; background: #a9b8c6; content: ""; }
.lux-ticks > span:first-child::before { left: 0; }

@container sensors (max-width: 420px) {
  .sensor-card .metric-value { font-size: 36px; }
  .sensor-card .hero-temperature { font-size: 46px; }
}

/* Panel daya & perangkat: satu kolom bila kartu sempit */
.panel-list .card-foot, .panel-list .radio-note { font-size: 13px; }
.panel-list .power-stats > div > span:nth-child(2), .panel-list .power-updated time { font-size: 14px; }
.panel-list .device-copy small, .panel-list .radio-stats span, .panel-list .device-status { font-size: 13px; }
.panel-list .device-copy strong, .panel-list .radio-stats strong { font-size: 15px; }
.panel-list .power-status { font-size: 14px; }
@container panels (max-width: 719px) {
  #devices .system-card, #power .power-card { grid-template-columns: minmax(0, 1fr); }
  #devices .system-card > *, #power .power-card > * { grid-column: 1 !important; grid-row: auto !important; }
}
.section-heading p { font-size: 15px; line-height: 1.5; }
.subtitle { font-size: 15px; line-height: 1.55; }
.demo-notice { font-size: 14px; line-height: 1.5; }
.chart-footnote, .chart-y-labels, .chart-x-labels { font-size: 12px; }
.chart-legend { font-size: 13px; }

/* ===== Peran akun: superadmin, operator, viewer ===== */
.role-badge { display: inline-flex; align-items: center; margin-left: 8px; padding: 2px 9px; border: 1px solid transparent; border-radius: 20px; font-size: 11px; font-weight: 700; vertical-align: 1px; }
.role-badge.is-superadmin { border-color: #e6d3f4; background: #f7eefd; color: #7b3fa6; }
.role-badge.is-operator { border-color: #cfe4f8; background: #eff7ff; color: #2f6fa6; }
.role-badge.is-viewer { border-color: #d8e6d3; background: #f2f9ef; color: #3f7a33; }
.form-field select { width: 100%; min-height: 46px; padding: 9px 11px; border: 1px solid #dce6ef; border-radius: 7px; background: #fbfdff; color: #233d58; font: 500 15px var(--font, sans-serif); }
.form-field select:focus { border-color: #6ca9e2; outline: 3px solid #78b5f02a; }
.operator-create-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.operator-create-form .auth-help { grid-column: 1; font-size: 13px; }
.operator-create-form .auth-submit { grid-column: 2; }
.operator-create-form .role-help { grid-column: 1 / -1; margin: 0; padding: 12px 14px; border: 1px solid #e0eaf3; border-radius: 9px; background: #f7fafe; color: var(--user-muted, #4b6178); font-size: 13.5px; line-height: 1.65; }
.role-help strong { color: #2c4962; }
.operator-group-title { margin: 20px 0 2px; color: var(--user-muted, #4b6178); font-size: 13px; font-weight: 700; letter-spacing: .4px; }
.operator-group-title:first-of-type { margin-top: 0; }
.operator-self { color: var(--user-muted, #71849a); font-size: 13px; white-space: nowrap; }
@media (max-width: 700px) {
  .operator-create-form { grid-template-columns: 1fr; }
  .operator-create-form .auth-help, .operator-create-form .auth-submit { grid-column: 1; }
}
.form-field input[readonly] { background: #f2f6fa; color: var(--user-muted, #5b7087); }

.role-change-form { display: flex; align-items: center; gap: 6px; }
.role-change-form select { min-height: 38px; padding: 0 8px; border: 1px solid #dce6ef; border-radius: 7px; background: #fbfdff; color: #233d58; font: 500 13px var(--font, sans-serif); }
.operator-actions { flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 520px) { .role-change-form { width: 100%; } .role-change-form select { flex: 1; min-height: 42px; } }

/* =====================================================================
   v3 — judul seksi terbaca jelas, bentuk seragam, menu ⋮, pengaturan pembaruan
   ===================================================================== */
:root { --radius-ctl: 8px; }
[hidden] { display: none !important; }

/* Judul seksi (Data Sensor, Sistem Daya, Perangkat): panel solid agar terbaca di latar apa pun */
.dashboard-section > .section-heading {
  align-items: center;
  padding: 14px 18px;
  border: 1px solid #cfdeed;
  border-radius: 12px;
  background: #fffffff5;
  box-shadow: 0 6px 22px #274d7016;
}
.section-heading h2 { color: #12304c; font-size: 22px; }
.section-heading p { color: #3a5169; font-weight: 500; }

/* Bentuk seragam: semua tombol, input, badge, dan label memakai radius yang sama */
.admin-badge, .role-badge, .live-pill, .weather-tag, .air-grade, .operator-count,
.button-primary, .button-secondary, .button-danger, .button-logout, .icon-button, .mobile-menu,
.dialog-close, .chart-legend select, .form-field input, .form-field select, .role-change-form select,
.auth-form input, .auth-submit, .management-flash, .auth-error, .auth-notice, .refresh-row select {
  border-radius: var(--radius-ctl);
}
.management-header .admin-badge { min-height: 42px; padding: 0 14px; font-size: 13px; }
.management-header .button-secondary { min-height: 42px; }
.role-badge { padding: 3px 9px; }

/* Menu titik tiga pada daftar akun */
.operator-actions { flex-wrap: nowrap; }
.row-menu { position: relative; }
.row-menu > summary {
  display: grid; width: 42px; height: 42px; place-items: center; list-style: none;
  border: 1px solid #dce6ef; border-radius: var(--radius-ctl); background: #fff; color: #3f5d78;
  cursor: pointer; font-size: 24px; font-weight: 700; line-height: 1; user-select: none;
}
.row-menu > summary::-webkit-details-marker { display: none; }
.row-menu > summary:hover, .row-menu[open] > summary { background: #eaf3fc; border-color: #bcd5ee; }
.row-menu-panel {
  position: absolute; z-index: 30; top: calc(100% + 6px); right: 0;
  display: grid; gap: 8px; width: min(250px, calc(100vw - 48px)); padding: 10px;
  border: 1px solid #d5e3f0; border-radius: 12px; background: #fff; box-shadow: 0 16px 44px #17345128;
}
.row-menu-panel.open-up { top: auto; bottom: calc(100% + 6px); }
.row-menu-panel form { margin: 0; }
.row-menu-panel .role-change-form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; width: 100%; }
.row-menu-panel .role-change-form select { width: 100%; min-height: 42px; }
.row-menu-panel .button-secondary, .row-menu-panel .button-danger { width: 100%; min-height: 42px; text-align: left; }
.menu-divider { height: 1px; margin: 2px 0; background: #e6edf4; }
@media (max-width: 520px) {
  .operator-row { grid-template-columns: minmax(0, 1fr) auto auto; gap: 10px; }
  .operator-actions { grid-column: auto; justify-content: flex-end; }
  .operator-account > div { min-width: 0; }
  .account-status { font-size: 12px; }
}

/* Pengaturan interval pembaruan */
.refresh-settings { display: grid; gap: 12px; min-width: 0; margin: 0; padding: 14px; border: 1px solid #dbe7f1; border-radius: 12px; background: #f7fafe; }
.refresh-settings legend { padding: 0 6px; color: #2f4d68; font-size: 13px; font-weight: 700; }
.refresh-panels { display: grid; gap: 8px; }
.refresh-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); align-items: center; gap: 10px; color: #3b5870; font-size: 13.5px; font-weight: 600; }
.refresh-row select { width: 100%; min-height: 42px; padding: 0 8px; border: 1px solid #dce6ef; background: #fff; color: #233d58; font: 500 14px var(--font, sans-serif); }
.refresh-help { margin: 0; color: var(--user-muted, #53697f); font-size: 12.5px; line-height: 1.55; }
.rain-card .sensor-desc strong { color: #1f3b5c; }

/* =====================================================================
   v4 — tombol bilah atas simetris, penanda terlihat, kompas angin,
   kartu perangkat rapi, footer terbaca, dialog viewer
   ===================================================================== */

/* Tombol refresh & menu: ikon SVG tepat di tengah kotak */
.icon-button, .mobile-menu { display: grid; place-items: center; padding: 0; line-height: 0; }
.icon-button svg, .mobile-menu svg { display: block; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 3.4; stroke-linecap: round; stroke-linejoin: round; }
.icon-button.is-refreshing { transform: none; }
.icon-button.is-refreshing svg { animation: refresh-spin .55s ease; }
@keyframes refresh-spin { to { transform: rotate(360deg); } }
.topbar-actions { align-items: center; }
.live-pill { align-items: center; line-height: 1; white-space: nowrap; }
.dialog-close, .demo-notice button { display: grid; place-items: center; padding: 0; line-height: 1; }
.demo-notice button { width: 28px; height: 28px; }

/* Penanda pada meter kualitas udara & kelembapan kini kontras (sebelumnya putih di atas putih) */
.air-meter { padding-top: 5px; }
.meter-marker { top: 0; left: 17%; width: 4px; height: 15px; margin-left: -2px; background: #1f3b5c; box-shadow: 0 0 0 2px #fff, 0 1px 4px #1f3b5c55; }
.humidity-track { position: relative; }
.humidity-track span { box-sizing: border-box; border-right: 4px solid #1f3b5c; }

/* Judul & angka pada kartu tinggi (barometer) menempel, bukan terpisah jauh */
@container sensors (min-width: 640px) {
  .sensor-card > .card-heading { align-self: end; }
  .sensor-card > .sensor-reading { align-self: start; }
}
.hero-symbol { color: #3488d1; }
.sensor-list > .card.hero-card > .card-heading { display: grid; }

/* Kompas angin: jarum penuh dari tengah ke tepi + huruf mata angin terbaca */
.wind-card .wind-dial { width: 84px; height: 84px; }
.wind-card .wind-dial::before { left: 12px; right: 12px; }
.wind-card .wind-dial::after { top: 12px; bottom: 12px; }
.wind-card .wind-dial > span:not(.wind-arrow):not(.dial-center) { z-index: 1; font-size: 11px; font-weight: 700; color: var(--user-muted, #5b7087); line-height: 1; }
.wind-card .dial-n { top: 3px; left: 50%; right: auto; bottom: auto; transform: translateX(-50%); }
.wind-card .dial-s { bottom: 3px; left: 50%; top: auto; right: auto; transform: translateX(-50%); }
.wind-card .dial-e { right: 4px; top: 50%; left: auto; bottom: auto; transform: translateY(-50%); }
.wind-card .dial-w { left: 4px; top: 50%; right: auto; bottom: auto; transform: translateY(-50%); }
.wind-card .wind-arrow { position: absolute; z-index: 2; inset: 0; top: 0; left: 0; font-size: 0; line-height: 0; transform-origin: 50% 50%; transition: transform .5s ease; }
.wind-card .wind-arrow::before { position: absolute; top: 19px; bottom: 50%; left: 50%; width: 4px; margin-left: -2px; border-radius: 3px; background: #398ed9; content: ""; }
.wind-card .wind-arrow::after { position: absolute; top: 12px; left: 50%; margin-left: -7px; border: 7px solid transparent; border-top: 0; border-bottom: 10px solid #398ed9; content: ""; }
.wind-card .dial-center { top: 50%; left: 50%; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; background: #1f3b5c; box-shadow: 0 0 0 2px #fff; }

/* Barometer: legenda & jarum */
.gauge-needle { stroke-width: 3.6; }

/* Grafik: teks legenda & pilihan rentang tidak mengecil di ponsel */
.chart-legend, .chart-legend > span { font-size: 13px; }
.chart-legend select { min-height: 34px; padding: 5px 10px; font-size: 13px; }
.chart-readouts strong { font-size: 20px; }

/* Sistem daya: waktu pembaruan di bawah labelnya, rata kiri */
.power-updated time { text-align: left; }

/* Kartu perangkat: nama LoRa tidak terpotong, dua kolom yang seimbang */
.device-copy strong { overflow: visible; text-overflow: clip; white-space: normal; }
.device-row .device-status { flex: 0 0 auto; }
@container panels (min-width: 720px) {
  #devices .system-card { grid-template-columns: minmax(300px, 1.15fr) minmax(0, 1fr); align-items: start; gap: 16px 40px; min-height: 0; }
  #devices .system-card .card-heading { grid-column: 1; grid-row: 1; }
  #devices .system-card .device-row:nth-of-type(2) { grid-column: 1; grid-row: 2; }
  #devices .system-card .device-row:nth-of-type(3) { grid-column: 1; grid-row: 3; }
  #devices .system-card .radio-stats { grid-column: 2; grid-row: 1 / span 2; align-self: start; }
  #devices .system-card .radio-note { grid-column: 2; grid-row: 3; align-self: start; }
  #devices .system-card .card-foot { grid-column: 1 / -1; grid-row: 4; align-self: stretch; grid-template-columns: 1fr 1fr; align-items: center; gap: 6px 40px; }
}

/* Footer: terbaca di atas latar bukit hijau */
.footer { margin-top: 28px; padding: 13px 18px; border: 1px solid #dce7f1; border-radius: 12px; background: #ffffffe8; color: var(--user-muted, #45607a); font-size: 12px; }
.footer, .footer span, .footer span span:not(.footer-dot) { color: var(--user-muted, #45607a); }
.footer-dot { color: #2f7fd0; }

/* Dialog viewer: hanya melihat dan keluar */
.viewer-panel { display: grid; gap: 16px; }
.viewer-summary { display: grid; gap: 0; margin: 0; padding: 4px 14px; border: 1px solid #dbe7f1; border-radius: 12px; background: #f7fafe; }
.viewer-summary > div { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid #e4ecf3; }
.viewer-summary > div:first-child { border-top: 0; }
.viewer-summary dt { color: var(--user-muted, #5b7087); font-size: 13px; font-weight: 600; }
.viewer-summary dd { margin: 0; color: #1f3b5c; font-size: 14px; font-weight: 650; text-align: right; overflow-wrap: anywhere; }
.operator-dialog .logout-form { margin-top: 16px; }

@media (max-width: 520px) {
  .live-pill { padding: 0 10px; gap: 6px; font-size: 10px; letter-spacing: .6px; }
  .breadcrumb { min-width: 0; margin-left: 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}
@media (prefers-reduced-motion: reduce) {
  .icon-button.is-refreshing svg { animation: none; }
}

/* ===== Warna tema (dipilih pengguna lewat Option) ===== */
.brand-mark, .auth-brand-mark { color: var(--accent); background: var(--accent-soft); border-color: var(--accent-line); }
.nav-link.active::before, .nav-indicator { background: var(--accent); }
.nav-link.active .nav-icon { color: var(--accent); }
.station-mini { border-color: var(--accent-line); background: linear-gradient(140deg, var(--accent-soft), var(--accent-softer) 70%); }
.icon-button:hover { background: var(--accent-soft); }
.demo-notice, .auth-notice { border-color: var(--accent-line); background: var(--accent-soft); color: var(--accent-ink); }
.hero-card { background: radial-gradient(ellipse at 82% 29%, var(--accent-soft) 0, var(--accent-softer) 28%, #fff 70%); }
.wind-symbol, .hero-symbol, .wind-arrow { color: var(--accent); }
.card-symbol, .chart-heading-icon { border-color: var(--accent-line); background: var(--accent-softer); }
.chart-heading-icon { color: var(--accent); }
.section-index { border-color: var(--accent-line); background: var(--accent-soft); color: var(--accent); }
.form-field input:focus, .form-field select:focus, .auth-form input:focus { border-color: var(--accent); outline: 3px solid var(--accent-ring); }
.button-primary, .auth-submit { background: var(--accent); }
.button-primary:hover, .auth-submit:hover { background: var(--accent-strong); }
.admin-badge, .role-badge.is-operator { border-color: var(--accent-line); background: var(--accent-soft); color: var(--accent-ink); }
.operator-count { background: var(--accent-soft); color: var(--accent-ink); }
.gauge-needle { stroke: var(--accent-strong); }
.gauge-hub { stroke: var(--accent-strong); }
.wind-card .wind-arrow::before { background: var(--accent); }
.wind-card .wind-arrow::after { border-bottom-color: var(--accent); }

/* ===== Latar cuaca 3D: awan, kabut, hujan, tanah datar, tanaman, burung ===== */
body::before { background: none; }
.weather-effects { display: none; }
.scene { position: fixed; z-index: 0; inset: 0; overflow: hidden; pointer-events: none; --ground-h: 30vh; --sway: 4s; --fog: .16;
  --sky1: #68b4ee; --sky2: #b9e1fa; --sky3: #eaf6ff; --cloud-mid: #e3edf8; --cloud-shade: #b9cde3; --o-far: .8; --o-mid: .6; --o-near: .3; --o-storm: 0; }
body.weather-cloudy .scene { --sky1: #8ea6ba; --sky2: #c3d1dc; --sky3: #e6ecf0; --cloud-mid: #d9e1ea; --cloud-shade: #a3b3c4; --o-far: .95; --o-mid: .95; --o-near: .9; --o-storm: .55; --fog: .32; }
body.weather-rain .scene { --sky1: #4a5f71; --sky2: #7a8e9f; --sky3: #aebbc6; --cloud-mid: #9eacba; --cloud-shade: #62768a; --o-far: 1; --o-mid: 1; --o-near: 1; --o-storm: 1; --fog: .5; }
body.weather-foggy .scene { --sky1: #b9c6cf; --sky2: #d9e1e6; --sky3: #eef1f3; --o-far: .5; --o-mid: .5; --o-near: .35; --o-storm: 0; --fog: .95; }
.scene * { position: absolute; }
.sky { inset: 0; background: linear-gradient(180deg, var(--sky1), var(--sky2) 55%, var(--sky3) 78%); }
.sun { top: 6%; right: 12%; width: 150px; height: 150px; border-radius: 50%; opacity: 0; transition: opacity 1s;
  background: radial-gradient(circle, #fffbe0 0, #ffeaa3 30%, #ffeaa300 70%); will-change: transform; }
body.weather-clear .sun { opacity: 1; }
.layer { left: 0; right: 0; top: 0; height: 62%; will-change: transform; transition: opacity 1s; }
.layer.far { opacity: var(--o-far); } .layer.mid { opacity: var(--o-mid); } .layer.near { opacity: var(--o-near); } .layer.storm { opacity: var(--o-storm); }
.track { top: 0; left: 0; width: 200%; height: 100%; animation: cloud-drift linear infinite; }
.half { top: 0; left: 0; width: 50%; height: 100%; }
@keyframes cloud-drift { to { transform: translateX(-50%); } }
.cloud { filter: blur(5px) drop-shadow(0 16px 18px #3e5f8a26); }
.layer.far .cloud { filter: blur(3px); }
.layer.storm .cloud { filter: blur(7px) brightness(.88); }
.puff { border-radius: 50%; background: radial-gradient(ellipse at 40% 24%, #fff 0, #fff 28%, var(--cloud-mid) 66%, var(--cloud-shade) 100%); }
.land { inset: 0; will-change: transform; }
.fog { left: 0; right: 0; bottom: calc(var(--ground-h) - 6vh); height: 28vh; opacity: var(--fog); transition: opacity 1.2s; filter: blur(16px); background-repeat: repeat-x; }
.fog.f1 { background-image: radial-gradient(ellipse 40% 50% at 25% 60%, #fff 0, #fff0 72%), radial-gradient(ellipse 34% 44% at 78% 50%, #fff 0, #fff0 72%); background-size: 60vw 100%; animation: fog-move 75s linear infinite; }
.fog.f2 { bottom: calc(var(--ground-h) - 10vh); height: 22vh; background-image: radial-gradient(ellipse 45% 50% at 50% 55%, #ffffffcc 0, #fff0 72%); background-size: 90vw 100%; animation: fog-move-back 110s linear infinite; }
@keyframes fog-move { to { background-position: 60vw 0; } }
@keyframes fog-move-back { to { background-position: -90vw 0; } }
.rain { inset: -10%; opacity: 0; transition: opacity 1s; animation: rain-fall .6s linear infinite;
  background-image: repeating-linear-gradient(105deg, transparent 0 17px, #d6e8f87a 18px 19px, transparent 20px 34px), repeating-linear-gradient(103deg, transparent 0 41px, #e9f3fb5c 42px 43px, transparent 44px 70px);
  background-size: 45px 54px, 73px 86px; }
body.weather-rain .rain { opacity: 1; }
@keyframes rain-fall { to { background-position: 0 54px, 0 86px; } }
.ground { left: 0; right: 0; bottom: -25vh; height: calc(var(--ground-h) + 25vh); overflow: hidden; perspective: 520px; background: linear-gradient(180deg, #b6df8d, #86c862); transition: filter 1s; }
.plane { left: -50%; right: -50%; top: 0; height: 150%; transform-origin: 50% 0; transform: rotateX(62deg);
  background: repeating-linear-gradient(180deg, #7cc058 0 56px, #8fd069 56px 112px); }
.haze { inset: 0; background: linear-gradient(180deg, #eaf6ffcc 0, #eaf6ff00 30%); }
.plants { left: 0; right: 0; bottom: 0; height: var(--ground-h); transition: filter 1s; }
body.weather-cloudy .ground, body.weather-cloudy .plants { filter: saturate(.88); }
body.weather-rain .ground, body.weather-rain .plants { filter: brightness(.78) saturate(.85); }
body.weather-foggy .ground, body.weather-foggy .plants { filter: saturate(.7) brightness(1.06); }
.plant { width: 0; height: 0; transform-origin: 50% 100%; }
.plant .sway { bottom: 0; transform-origin: 50% 100%; animation: plant-sway var(--sway) ease-in-out infinite alternate; }
.plant svg { position: static; display: block; width: 100%; height: 100%; overflow: visible; }
@keyframes plant-sway { from { transform: rotate(-1.6deg); } to { transform: rotate(1.8deg); } }
.birds { inset: 0; }
.bird { left: 0; will-change: transform; }
.bird svg { position: static; display: block; width: 100%; overflow: visible; fill: #3d4c5c; animation: bird-bob 2.2s ease-in-out infinite alternate; }
.bird .wing { transform-origin: 20px 11px; animation: wing-flap .45s ease-in-out infinite alternate; }
@keyframes wing-flap { from { transform: scaleY(1); } to { transform: scaleY(-.65); } }
@keyframes bird-bob { to { transform: translateY(8px); } }
body.fx-off .clouds, body.fx-off .fog, body.fx-off .rain, body.fx-off .sun { display: none; }
body.birds-off .birds { display: none; }
@media (prefers-reduced-motion: reduce) { .scene * { animation-play-state: paused !important; } }

/* ===== Warna tulisan: judul otomatis (terang = hitam, hujan = putih), kata "Cuaca" berdiri sendiri ===== */
body { --hero-ink: #0f1c2a; --hero-soft: #33485b; --cuaca-auto: #d9480f; }
body.weather-cloudy { --cuaca-auto: #1f5fa8; }
body.weather-foggy { --cuaca-auto: #23796a; }
body.weather-rain { --hero-ink: #ffffff; --hero-soft: #e6f0f8; --cuaca-auto: #8fdcff; }
.page-heading h1 { color: var(--user-hero, var(--hero-ink)); }
.page-heading h1 span { color: var(--user-cuaca, var(--cuaca-auto)); }
.breadcrumb, .breadcrumb strong { color: var(--user-hero, var(--hero-ink)); }
.breadcrumb span { color: var(--user-hero, var(--hero-ink)); opacity: .55; }
.page-heading .eyebrow, .page-heading .subtitle, .topbar .top-date { color: var(--user-muted, var(--hero-soft)); }
body.weather-rain .page-heading h1, body.weather-rain .breadcrumb, body.weather-rain .page-heading .subtitle, body.weather-rain .page-heading .eyebrow, body.weather-rain .topbar .top-date { text-shadow: 0 1px 10px #08182866; }
.text-target { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; padding: 10px 12px; border: 1px solid var(--accent-line); border-radius: 10px; background: var(--accent-softer); }
.text-target strong { display: block; font-size: 13px; }
.text-target small { display: block; margin-top: 2px; color: var(--muted); font-size: 11.5px; line-height: 1.45; }
.menu-wrap { position: relative; flex: 0 0 auto; }
.dots-btn { width: 36px; height: 36px; border: 1px solid var(--accent-line); border-radius: 9px; background: #fff; color: var(--accent-ink); font-size: 18px; line-height: 1; cursor: pointer; }
.dots-btn:hover { background: var(--accent-soft); }
.text-menu { position: absolute; z-index: 5; top: 40px; right: 0; display: grid; min-width: 220px; padding: 6px; border: 1px solid var(--line); border-radius: 10px; background: #fff; box-shadow: 0 12px 30px #1b3a5a26; }
.text-menu[hidden] { display: none; }
.text-menu button { padding: 9px 10px; border: 0; border-radius: 7px; background: none; color: var(--text); font: 500 12.5px var(--font); text-align: left; cursor: pointer; }
.text-menu button:hover, .text-menu button[aria-checked="true"] { background: var(--accent-soft); color: var(--accent-ink); }

/* ===== Tombol Option, dialog Option, pemberitahuan hujan ===== */
.option-button { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 38px; margin-bottom: 8px; padding: 0 12px; border: 1px solid var(--accent-line); border-radius: 9px; background: var(--accent-softer); color: var(--accent-ink); font: 600 12.5px var(--font); cursor: pointer; }
.option-button:hover { background: var(--accent-soft); }
.option-button .dots { font-size: 18px; line-height: 1; letter-spacing: 1px; }
.opt-section { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.opt-section h3 { margin: 0 0 4px; font-size: 14px; }
.opt-section > p { margin: 0 0 10px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.swatches { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.swatch { width: 32px; height: 32px; border: 3px solid #fff; border-radius: 50%; background: var(--sw); box-shadow: 0 0 0 1px var(--line); cursor: pointer; }
.swatch[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--accent); }
.swatch-custom { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; }
.swatch-custom input { width: 38px; height: 32px; padding: 0; border: 1px solid var(--line); border-radius: 8px; background: #fff; cursor: pointer; }
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 9px 0; cursor: pointer; }
.switch-row strong { display: block; font-size: 13px; }
.switch-row small { display: block; margin-top: 2px; color: var(--muted); font-size: 11.5px; line-height: 1.45; }
.switch-row input { appearance: none; position: relative; flex: 0 0 auto; width: 42px; height: 24px; margin: 0; border-radius: 12px; background: #c9d5e1; cursor: pointer; transition: background .2s; }
.switch-row input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px #0003; transition: transform .2s; }
.switch-row input:checked { background: var(--accent); }
.switch-row input:checked::after { transform: translateX(18px); }
.switch-row input:focus-visible, .swatch:focus-visible { outline: 3px solid var(--accent-ring); outline-offset: 2px; }
.notif-status { margin: 4px 0 10px; padding: 9px 11px; border-radius: 8px; background: var(--accent-softer); color: var(--accent-ink); font-size: 11.5px; line-height: 1.5; }
.rain-toast { position: fixed; z-index: 60; top: calc(14px + env(safe-area-inset-top, 0px)); left: 50%; max-width: min(92vw, 420px); padding: 12px 16px; transform: translateX(-50%); border-radius: 12px; background: #27506f; color: #fff; font-size: 13px; line-height: 1.45; box-shadow: 0 10px 30px #1b3a5a40; }
.rain-toast[hidden] { display: none; }

/* ===== Kompas arah angin pindah ke samping kanan saat layar melebar (HP landscape) ===== */
@container sensors (min-width: 430px) {
  .sensor-list > .card.sensor-card.wind-card { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "head visual" "reading visual" "foot foot"; column-gap: 20px; }
  .wind-card > .sensor-visual { width: auto; justify-self: end; }
}
@media (min-width: 560px) {
  .sensor-list > .card.sensor-card.wind-card { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "head visual" "reading visual" "foot foot"; column-gap: 20px; }
  .wind-card > .sensor-visual { width: auto; justify-self: end; }
}


/* ===== Panel samping tersembunyi di semua ukuran layar (desktop & landscape); dibuka lewat tombol menu ===== */
.sidebar { z-index: 21; width: min(300px, 84vw); transform: translateX(-105%); transition: transform .16s ease, visibility 0s linear .16s; visibility: hidden; padding-bottom: calc(20px + env(safe-area-inset-bottom)); }
.sidebar.open { transform: translateX(0); visibility: visible; transition: transform .16s ease, visibility 0s; }
.mobile-menu { display: grid; place-items: center; width: 40px; height: 40px; min-height: 40px; padding: 0; }
.main-content { margin-left: 0; }
body.menu-open .sidebar-scrim { display: block; z-index: 20; }
body.menu-open .main-content { pointer-events: none; }
@media (min-width: 761px) {
  .main-content { --pad: clamp(22px, 4vw, 58px); margin-left: auto; margin-right: auto; }
  .topbar { position: sticky; top: 0; z-index: 8; height: auto; min-height: 64px; margin-left: calc(var(--pad) * -1); margin-right: calc(var(--pad) * -1); padding: env(safe-area-inset-top) var(--pad) 0; background: #f6faffe8; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
}

.sidebar.no-anim { transition: none !important; }

/* =====================================================================
   v2 — Pemandangan: gunung, sawah bertingkat, rumah, hujan canvas
   + interaksi halus. Ditempel di akhir style.css agar menimpa aturan lama.
   ===================================================================== */
@property --mtn-far-top { syntax: "<color>"; inherits: true; initial-value: #86a9cf; }
@property --mtn-far-bot { syntax: "<color>"; inherits: true; initial-value: #b4cfe6; }
@property --mtn-mid-top { syntax: "<color>"; inherits: true; initial-value: #5f8fa8; }
@property --mtn-mid-bot { syntax: "<color>"; inherits: true; initial-value: #8fb4be; }
@property --hill-top { syntax: "<color>"; inherits: true; initial-value: #4f9a55; }
@property --hill-bot { syntax: "<color>"; inherits: true; initial-value: #6dae5f; }
@property --tree-dark { syntax: "<color>"; inherits: true; initial-value: #2f7a3a; }
@property --win { syntax: "<color>"; inherits: true; initial-value: #bcd8ea; }

.scene {
  --ground-h: 32vh;
  --mtn-far-top: #86a9cf; --mtn-far-bot: #b4cfe6; --mtn-mid-top: #5f8fa8; --mtn-mid-bot: #8fb4be;
  --hill-top: #4f9a55; --hill-bot: #6dae5f; --tree-dark: #2f7a3a; --win: #bcd8ea;
  --px: 0; --py: 0;
  transition: --mtn-far-top 1.4s ease, --mtn-far-bot 1.4s ease, --mtn-mid-top 1.4s ease, --mtn-mid-bot 1.4s ease,
    --hill-top 1.4s ease, --hill-bot 1.4s ease, --tree-dark 1.4s ease, --win 1.4s ease;
}
body.weather-cloudy .scene { --mtn-far-top: #8d9fb2; --mtn-far-bot: #b5c2cf; --mtn-mid-top: #6f8794; --mtn-mid-bot: #93a8b0; --hill-top: #4a8450; --hill-bot: #5f9757; --tree-dark: #2b6d36; --win: #ffe3a0; }
body.weather-rain .scene { --mtn-far-top: #66798c; --mtn-far-bot: #8a9bab; --mtn-mid-top: #4c6676; --mtn-mid-bot: #6f8794; --hill-top: #3b6b45; --hill-bot: #4d7e4f; --tree-dark: #245a30; --win: #ffd776; }
body.weather-foggy .scene { --mtn-far-top: #b8c6d2; --mtn-far-bot: #d3dde4; --mtn-mid-top: #9fb2bd; --mtn-mid-bot: #c2d0d8; --hill-top: #7fa68a; --hill-bot: #9ebba5; --tree-dark: #5e8f6a; --win: #ffe9b5; }

/* Pegunungan */
.mountains { left: 0; right: 0; bottom: calc(var(--ground-h) - 1.6vh); height: 0; }
.mtn-wrap { left: -3%; right: -3%; bottom: 0; will-change: transform; }
.mtn-wrap.far-wrap  { height: 36vh; transform: translate3d(calc(var(--px) * -10px), calc(var(--py) * -3px), 0); }
.mtn-wrap.mid-wrap  { height: 23vh; bottom: -.6vh; transform: translate3d(calc(var(--px) * -22px), calc(var(--py) * -4px), 0); }
.mtn-wrap.hill-wrap { height: 12vh; bottom: -1vh; transform: translate3d(calc(var(--px) * -38px), 0, 0); }
.mtn { position: static; display: block; width: 100%; height: 100%; overflow: visible; }

/* Sawah */
.paddies { inset: 0; }
.paddies svg { position: static; display: block; width: 100%; height: 100%; }
.paddies .rows { animation: rice-wave 7s linear infinite; }
.paddies .glint { animation: glint 5s ease-in-out infinite alternate; }
@keyframes rice-wave { to { stroke-dashoffset: 40; } }
@keyframes glint { from { opacity: .15; } to { opacity: .7; } }
.plant .still { bottom: 0; }
.scene .win { fill: var(--win); }
body.weather-cloudy .scene .win, body.weather-rain .scene .win { filter: drop-shadow(0 0 3px var(--win)); }

/* Hujan (canvas) */
.rain { display: none; }
.rain-canvas { inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1.1s ease; }
body.weather-rain .rain-canvas { opacity: 1; }
body.fx-off .rain-canvas, body.fx-off .lightning { display: none; }
.lightning { inset: 0; opacity: 0; background: radial-gradient(ellipse at 60% 6%, #fff 0, #dfeaff99 30%, transparent 70%); }
.lightning.go { animation: bolt 1.1s ease-out; }
@keyframes bolt { 0% { opacity: 0; } 6% { opacity: .75; } 14% { opacity: .1; } 22% { opacity: .55; } 100% { opacity: 0; } }

/* ---------- Interaksi halus ---------- */
.rv { opacity: 0; transform: translateY(18px); transition: opacity .75s cubic-bezier(.2,.7,.2,1), transform .75s cubic-bezier(.2,.7,.2,1); }
.rv.in { opacity: 1; transform: none; }

.sensor-list > .card, .panel-list > .card { position: relative; transition: transform .4s cubic-bezier(.2,.7,.2,1), box-shadow .4s ease, border-color .3s ease; }
.sensor-list > .card::after, .panel-list > .card::after {
  position: absolute; inset: 0; border-radius: inherit; content: ""; opacity: 0; pointer-events: none;
  background: radial-gradient(280px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--accent) 11%, transparent), transparent 70%);
  transition: opacity .35s ease;
}
@media (hover: hover) and (pointer: fine) {
  .sensor-list > .card:hover, .panel-list > .card:hover { transform: translateY(-3px); border-color: var(--accent-line); box-shadow: 0 16px 38px #274d7018; }
  .sensor-list > .card:hover::after, .panel-list > .card:hover::after { opacity: 1; }
  .nav-link:hover .nav-icon { transform: translateX(2px) scale(1.08); }
}
.nav-icon { transition: transform .25s cubic-bezier(.2,.8,.3,1.3), color .2s; }
.nav-link { transition: background .25s ease, color .25s ease, padding-left .25s ease; }
.nav-link:hover { padding-left: 15px; }

button, .nav-link, .swatch, .option-button, .dots-btn { transition-property: transform, background-color, border-color, box-shadow, color, padding-left; transition-duration: .2s; transition-timing-function: ease; }
button:active, .swatch:active, .option-button:active { transform: scale(.96); }
.button-primary:hover, .auth-submit:hover { box-shadow: 0 6px 16px #347fce40; transform: translateY(-1px); }
.live-pill { transition: background .25s, color .25s, border-color .25s, transform .2s; }
.live-pill:not(.paused) .pulse-dot { animation: dot-ping 2.2s ease-out infinite; }
@keyframes dot-ping { 0% { box-shadow: 0 0 0 0 #399b7366; } 70%, 100% { box-shadow: 0 0 0 7px #399b7300; } }

.sidebar { transition: transform .42s cubic-bezier(.22,.8,.2,1), visibility 0s linear .42s; }
.sidebar.open { transition: transform .42s cubic-bezier(.22,.8,.2,1), visibility 0s; }
.sidebar.no-anim { transition: none !important; }
body.menu-open .sidebar-scrim { animation: fade-in .35s ease both; }
.operator-dialog[open] { animation: dialog-in .32s cubic-bezier(.2,.9,.3,1.08) both; }
.operator-dialog[open]::backdrop { animation: fade-in .3s ease both; }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes dialog-in { from { opacity: 0; transform: translateY(14px) scale(.96); } to { opacity: 1; transform: none; } }

.rain-fill, .humidity-track span { transition: width .9s cubic-bezier(.22,.8,.2,1); }
.meter-marker { transition: left .9s cubic-bezier(.22,.8,.2,1); }
.battery-body span { transition: width .9s cubic-bezier(.22,.8,.2,1); }
.wind-arrow { transition: transform .9s cubic-bezier(.3,1.25,.5,1); }

.metric-value.tick, .hero-temperature.tick { animation: value-tick .9s cubic-bezier(.2,.7,.2,1); }
@keyframes value-tick { 0% { opacity: .35; transform: translateY(-4px); color: var(--accent); } 100% { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1; transform: none; transition: none; }
  .sensor-list > .card:hover, .panel-list > .card:hover { transform: none; }
  .paddies .rows, .paddies .glint, .live-pill .pulse-dot, .lightning { animation: none !important; }
  .metric-value.tick, .hero-temperature.tick { animation: none; }
}

/* ===== v3 — siang/malam, sinar matahari, kabut halus ===== */
.haze { opacity: .55; }
.stars, .moon, .rays, .tint { pointer-events: none; }
.stars { inset: 0; opacity: 0; transition: opacity 1.6s ease; }
.star { border-radius: 50%; background: #fff; box-shadow: 0 0 4px #fff; animation: twinkle 4s ease-in-out infinite alternate; }
@keyframes twinkle { from { opacity: .25; } to { opacity: 1; } }
.moon { top: 9%; left: 14%; width: 74px; height: 74px; border-radius: 50%; opacity: 0; transition: opacity 1.6s ease;
  background: radial-gradient(circle at 36% 34%, #fffef2 0, #f4efd2 55%, #d9d3b4 100%); box-shadow: 0 0 40px 12px #f4efd24d, 0 0 120px 40px #cfd9ff26; }
.rays { top: -30%; right: -10%; width: 90vmax; height: 90vmax; opacity: 0; transition: opacity 1.4s ease; transform-origin: 50% 50%; animation: rays-turn 90s linear infinite;
  background: repeating-conic-gradient(from 0deg at 83% 40%, #fff6c733 0 4deg, transparent 4deg 14deg); -webkit-mask-image: radial-gradient(circle at 83% 40%, #000 0, transparent 60%); mask-image: radial-gradient(circle at 83% 40%, #000 0, transparent 60%); }
@keyframes rays-turn { to { transform: rotate(8deg); } }
body.weather-clear.tod-day .rays, body.weather-clear.tod-dawn .rays { opacity: .55; }
.tint { inset: 0; opacity: 0; transition: opacity 1.6s ease, background 1.6s ease; mix-blend-mode: multiply; }
body.tod-dawn .tint { opacity: 1; background: linear-gradient(180deg, #ffd9c4, #ffeed8 60%, #fff); }
body.tod-dusk .tint { opacity: 1; background: linear-gradient(180deg, #f3a77a, #ffc79a 55%, #ffe3c4); }
body.tod-night .tint { opacity: .82; background: linear-gradient(180deg, #172a5c, #2b3f78 65%, #3b4f82); }
body.tod-night .stars { opacity: 1; }
body.tod-night.weather-clear .moon, body.tod-night.weather-cloudy .moon { opacity: 1; }
body.tod-night .sun, body.tod-dusk .sun { opacity: 0 !important; }
body.tod-dusk.weather-clear .sun { opacity: .6 !important; }
body.tod-night.weather-rain .stars, body.tod-night.weather-foggy .stars { opacity: .25; }
body.tod-night .scene { --win: #ffd776; }
body.tod-night .scene .win, body.tod-dusk .scene .win { filter: drop-shadow(0 0 4px #ffcf5a); }
body.tod-night { --hero-ink: #ffffff; --hero-soft: #dce6f7; --cuaca-auto: #8fdcff; }
body.tod-night .page-heading h1, body.tod-night .breadcrumb, body.tod-night .page-heading .subtitle, body.tod-night .topbar .top-date { text-shadow: 0 1px 10px #0a1430aa; }
body.fx-off .stars, body.fx-off .moon, body.fx-off .rays { display: none; }
@media (prefers-reduced-motion: reduce) { .rays, .star { animation: none !important; } }
.tint { z-index: 1; }
.moon, .stars { z-index: 2; }
.moon { top: 14px; left: auto; right: 14%; width: 56px; height: 56px; }

/* ===== Banner pasang aplikasi (PWA) ===== */
.install-bar { position: fixed; z-index: 70; left: 50%; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); display: flex; align-items: center; gap: 10px; max-width: min(92vw, 440px); padding: 10px 10px 10px 16px; border: 1px solid var(--accent-line, #d5e6f5); border-radius: 14px; background: #fffffff2; backdrop-filter: blur(10px); color: #233d58; font-size: 13px; line-height: 1.4; box-shadow: 0 14px 40px #1b3a5a33; transform: translate(-50%, 140%); transition: transform .5s cubic-bezier(.2,.9,.3,1.1); }
.install-bar.show { transform: translate(-50%, 0); }
.install-bar .ib-go { min-height: 36px; padding: 0 14px; border: 0; border-radius: 9px; background: var(--accent, #2f80d8); color: #fff; font-weight: 650; cursor: pointer; }
.install-bar .ib-x { width: 32px; height: 32px; border: 0; border-radius: 8px; background: none; color: #6b8197; font-size: 20px; cursor: pointer; }

/* ===== Mode performa: Penuh / Hemat / Mati ===== */
.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; border: 1px solid var(--accent-line, #d5e6f5); border-radius: 11px; background: var(--accent-softer, #f4f9ff); }
.seg button { min-height: 38px; border: 0; border-radius: 8px; background: none; color: var(--muted, #647991); font: 600 12.5px var(--font); cursor: pointer; }
.seg button[aria-checked="true"] { background: #fff; color: var(--accent-ink, #1c5f9e); box-shadow: 0 2px 8px #274d701f; }
.perf-note { display: block; margin-top: 8px; color: var(--muted, #647991); font-size: 11.5px; line-height: 1.45; }

/* Hemat & Mati: matikan animasi, blur, bayangan berat, dan efek hover/reveal */
body.perf-lite .scene *, body.perf-off .scene * { animation: none !important; transition: none !important; }
body.perf-lite .cloud, body.perf-off .cloud, body.perf-lite .fog, body.perf-off .fog { filter: none !important; }
body.perf-lite .layer.far, body.perf-lite .fog.f2 { display: none; }
body.perf-lite .rays, body.perf-off .rays, body.perf-lite .lightning, body.perf-off .lightning { display: none; }
body.perf-off .clouds, body.perf-off .fog, body.perf-off .rain-canvas, body.perf-off .birds, body.perf-off .stars { display: none !important; }
body.perf-lite .rv, body.perf-off .rv { opacity: 1 !important; transform: none !important; transition: none !important; }
body.perf-lite .sensor-list > .card, body.perf-off .sensor-list > .card, body.perf-lite .panel-list > .card, body.perf-off .panel-list > .card { box-shadow: none; transition: none; transform: none !important; }
body.perf-lite .sensor-list > .card::after, body.perf-off .sensor-list > .card::after, body.perf-lite .panel-list > .card::after, body.perf-off .panel-list > .card::after { display: none; }
body.perf-lite .tint, body.perf-off .tint, body.perf-lite .install-bar, body.perf-off .install-bar { transition: none; backdrop-filter: none; }
body.perf-lite .sidebar-scrim, body.perf-off .sidebar-scrim, body.perf-lite .operator-dialog::backdrop, body.perf-off .operator-dialog::backdrop { backdrop-filter: none; animation: none; }
body.perf-lite .metric-value.tick, body.perf-off .metric-value.tick, body.perf-lite .hero-temperature.tick, body.perf-off .hero-temperature.tick, body.perf-lite .live-pill .pulse-dot, body.perf-off .live-pill .pulse-dot { animation: none; }
body.perf-lite .plant .sway, body.perf-off .plant .sway { animation: none !important; will-change: auto; }
body.perf-lite .layer, body.perf-off .layer, body.perf-lite .land, body.perf-off .land, body.perf-lite .mtn-wrap, body.perf-off .mtn-wrap { will-change: auto; transform: none !important; }
