.toggle { display: inline-flex; width: 49px; min-width: 49px; height: 44px; align-items: center; padding: 9px 3px; border-radius: 30px; background: none; }
.toggle > span { position: relative; display: block; width: 43px; height: 26px; border-radius: 20px; background: #ccd2c5; transition: background var(--motion-control); }
.toggle > span::after { content: ''; position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: white; box-shadow: 0 1px 3px #2630261a; transition: transform var(--motion-control); }
.toggle[aria-checked=true] > span { background: var(--sage); }
.toggle[aria-checked=true] > span::after { transform: translateX(17px); }
.toggle:disabled { opacity: .5; }
.control-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 55px; margin-bottom: 16px; }
.control-row > span { font-size: 13px; font-weight: 550; }
.range-control { display: block; padding-block: 15px 10px; }
.range-control > span:first-child { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.range-control strong { font-size: 12px; font-weight: 550; }
.range-control output { font-size: 13px; color: var(--sage-dark); }
input[type=range] { appearance: none; display: block; width: 100%; height: 44px; margin: 6px 0 0; padding: 0; border: 0; border-radius: 0; background: transparent; accent-color: var(--sage); cursor: pointer; }
input[type=range]::-webkit-slider-runnable-track { height: 6px; border-radius: 10px; background: #d8e1ce; }
input[type=range]::-webkit-slider-thumb { appearance: none; width: 23px; height: 23px; margin-top: -8.5px; border: 3px solid white; border-radius: 50%; background: var(--sage); box-shadow: 0 0 0 1px #bdcbb0; }
input[type=range]::-moz-range-track { height: 6px; border-radius: 10px; background: #d8e1ce; }
input[type=range]::-moz-range-thumb { width: 18px; height: 18px; border: 3px solid white; border-radius: 50%; background: var(--sage); }
input[type=range]:disabled { opacity: .5; cursor: default; }
.range-ends { display: flex; align-items: center; justify-content: space-between; color: var(--muted); }
.range-ends small { font-size: 9px; }
.control-hint { margin: 8px 0 13px; color: var(--muted); font-size: 10px; line-height: 1.8; }
.segmented { display: flex; gap: 3px; padding: 4px; border-radius: 12px; background: var(--stone); }
.segmented button { display: inline-flex; flex: 1; min-width: 0; min-height: 44px; align-items: center; justify-content: center; gap: 5px; padding: 6px; border-radius: 9px; background: none; font-size: 10px; }
.segmented button[aria-pressed=true] { background: var(--surface); color: var(--sage-dark); box-shadow: var(--shadow-small); font-weight: 650; }
.segmented button:disabled { opacity: .5; }
.mode-field { margin: 24px 0 0; padding: 0; border: 0; }
.mode-field legend { margin-bottom: 10px; font-size: 12px; font-weight: 550; }
.temperature-control { display: flex; align-items: center; justify-content: center; gap: 25px; padding: 16px 0 18px; }
.temperature-control > button { display: grid; width: 44px; height: 44px; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); }
.temperature-control > button:disabled { opacity: .4; }
.temperature-control > span { min-width: 130px; text-align: center; }
.temperature-control strong { display: block; color: var(--sage-dark); font-size: 58px; font-weight: 500; letter-spacing: -3px; line-height: 1.2; }
.temperature-control strong small { font-size: 21px; letter-spacing: -1px; vertical-align: top; padding-top: 10px; display: inline-block; }
.temperature-control > span > span { display: block; color: var(--muted); font-size: 10px; }
.room-temperature { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 19px; padding-block: 13px; border-block: 1px solid var(--line); color: var(--muted); font-size: 10px; }
.room-temperature strong { color: var(--ink); font-size: 12px; font-weight: 550; }
.curtain-illustration { position: relative; width: 78%; height: 120px; margin: 12px auto 9px; overflow: hidden; border: 6px solid #dbe2d3; border-radius: 6px; background: #fdfefa; }
.curtain-illustration > span { position: absolute; top: 0; bottom: 0; width: calc((100% - var(--curtain-open))/2); min-width: 4px; background: #8da27d; transition: width var(--motion-fast) linear; }
.curtain-illustration > span:first-child { left: 0; border-right: 2px solid #718764; }
.curtain-illustration > span:nth-child(2) { right: 0; border-left: 2px solid #718764; }
.curtain-illustration > i { position: absolute; inset: 0; border: 1px solid #bac7af; }
.curtain-buttons { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin-top: 13px; }
.curtain-buttons button { display: flex; min-height: 48px; align-items: center; justify-content: center; gap: 6px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); color: var(--sage-dark); font-size: 11px; }
.curtain-buttons svg { width: 15px; height: 15px; }
.curtain-buttons button:disabled { opacity: .4; }
.lock-control { display: flex; width: 166px; min-height: 166px; flex-direction: column; align-items: center; justify-content: center; gap: 10px; margin: 12px auto 27px; border: 1px solid #cdd8c4; border-radius: 50%; background: var(--stone); color: var(--sage-dark); }
.lock-control.is-locked { background: var(--sage-soft); }
.lock-control > svg { width: 35px; height: 35px; }
.lock-control strong { font-size: 20px; font-weight: 550; }
.lock-control > span { font-size: 10px; }
.lock-history > div { display: flex; align-items: center; gap: 10px; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 11px; }
.lock-history svg { width: 16px; height: 16px; color: var(--sage); }
.lock-history time { margin-left: auto; color: var(--muted); font: 9px/1.5 var(--mono); }
.small-heading { display: flex; align-items: center; justify-content: space-between; gap: 13px; margin-bottom: 13px; font-size: 14px; }
.small-heading > span { color: var(--muted); font-size: 9px; font-weight: 400; }
.sample-camera { position: relative; height: 210px; overflow: hidden; border-radius: 15px; background: var(--stone); margin-bottom: 15px; }
.sample-camera > img { width: 100%; height: 100%; object-fit: cover; }
.sample-footage-label { position: absolute; left: 10px; right: 10px; top: 10px; padding: 7px 9px; border-radius: 7px; color: white; background: #283924d9; font-size: 8px; text-align: center; }
.privacy-cover { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 13px; background: #e8ece2; }
.privacy-cover > svg { width: 30px; height: 30px; color: var(--sage); }
.privacy-cover strong { font-size: 15px; }
.privacy-cover > span { font-size: 10px; color: var(--muted); }
.sensor-reading { padding: 20px 0 25px; text-align: center; }
.sensor-reading > svg { display: block; width: 40px; height: 40px; margin: 5px auto 20px; color: var(--sage); }
.sensor-reading > strong { display: block; color: var(--sage-dark); font-size: 38px; font-weight: 500; letter-spacing: -1.8px; }
.sensor-reading > strong small { font-size: 20px; }
.sensor-reading > p { margin-top: 8px; color: var(--muted); font-size: 12px; }
.sensor-reading .read-only { justify-content: center; margin-top: 20px; }
.sensor-chart { padding: 17px; border: 1px solid var(--line); border-radius: 15px; background: var(--surface); }
.sensor-chart h3 { font-size: 12px; }
.sensor-chart > span { display: block; margin-top: 5px; color: var(--muted); font-size: 9px; }
.sensor-chart svg { display: block; width: 100%; height: auto; margin-top: 17px; overflow: visible; }
.chart-grid { stroke: #e6eadd; fill: none; stroke-width: 1; }
.chart-line { stroke: var(--sage); fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.sensor-chart > div { display: flex; justify-content: space-between; margin-top: 7px; font-size: 8px; color: var(--muted); }
.device-panel-summary { display: flex; align-items: center; gap: 9px; margin-bottom: 13px; color: var(--muted); font-size: 12px; }
.device-panel-summary > svg { width: 16px; height: 16px; }
.device-model { margin-top: 25px; padding-top: 15px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; text-align: center; }
.device-model small { display: block; margin-top: 4px; font-size: 9px; }
