*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:#f6f7f2;color:#1b3028;font:16px/1.45 "Inter",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}aside{position:fixed;inset:0 auto 0 0;width:232px;padding:34px 22px;background:#173e35;color:white;display:flex;flex-direction:column}.brand{display:flex;gap:10px;align-items:center;color:white;font-size:23px;font-weight:720;letter-spacing:-1px;text-decoration:none}.mark{display:grid;place-items:center;border-radius:13px;background:#c6efaa;color:#173e35;width:41px;height:41px}nav{display:grid;gap:8px;margin:54px 0}nav a{color:#e3eee6;text-decoration:none;padding:12px;border-radius:12px}nav a:hover,nav a:focus-visible{background:#305849}aside small{margin-top:auto;color:#c3d5c7}main{margin-left:232px;max-width:1390px;padding:42px clamp(24px,5vw,90px) 70px}header,.section,.settings{display:flex;align-items:center;justify-content:space-between;gap:12px}.over,header a{color:#587060}h1,h2,p{margin:0}h1{font-size:clamp(34px,4.5vw,58px);letter-spacing:-.06em}.refresh,.close{border:1px solid #cbd7cc;border-radius:50%;background:white;width:44px;height:44px;display:grid;place-items:center;text-decoration:none;font-size:24px}.hero{background:linear-gradient(115deg,#d3e9c0,#e3efd9 60%,#bfd9bc);border-radius:28px;margin:24px 0 36px;padding:32px clamp(20px,4vw,54px);display:flex;align-items:center;justify-content:space-between;gap:18px;overflow:hidden}.hero h2{font-size:clamp(25px,3vw,44px);letter-spacing:-.05em;margin:14px 0 6px}.hero p,.empty{color:#496253}.status{display:inline-flex;align-items:center;gap:8px;font-size:14px}.status b{width:10px;height:10px;border-radius:50%;background:#829181}.status .on{background:#25804c}.device{flex:none;width:88px;height:143px;background:#365848;border:4px solid #183a2b;border-radius:18px;transform:rotate(8deg);padding:9px 5px;box-shadow:10px 12px 0 #aac8a3}.device i{display:block;margin:0 auto 12px;background:#172d22;border-radius:9px;width:25px;height:4px}.minigrid{display:grid;grid-template-columns:1fr 1fr;gap:3px}.minigrid span{height:35px;background:#658471;text-align:center;border-radius:5px;overflow:hidden;color:white}.minigrid img,.card img{width:100%;height:100%;object-fit:cover}.section{justify-content:flex-start;margin:22px 0 15px}.section h2{letter-spacing:-.04em}.section>span{background:#e1eadb;border-radius:20px;padding:2px 10px}.cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(148px,1fr));gap:12px}.card{position:relative;padding:0;overflow:hidden;border:0;border-radius:18px;background:#4e7565;color:white;aspect-ratio:1.13;cursor:pointer}.card:hover{outline:3px solid #669d81}.card strong{font-size:44px;font-weight:500}.card span{position:absolute;inset:auto 0 0;padding:30px 9px 12px;background:linear-gradient(transparent,#14281ef2);font-weight:650;font-size:17px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.empty{grid-column:1/-1;border:1px dashed #afc1ad;border-radius:16px;padding:25px}.settings,dialog{background:white;border:1px solid #d3dfd2;border-radius:18px;padding:18px}.settings label{display:flex;align-items:center;gap:16px}input,select,button{font:inherit}input,select{border:1px solid #bcccbf;border-radius:10px;padding:9px;background:white;width:100%}.action{border:0;background:#215f4f;border-radius:12px;padding:12px 17px;color:white;cursor:pointer}.action:disabled{opacity:.4}dialog{width:min(420px,94vw);color:inherit;padding:24px}dialog::backdrop{background:#10271ec0}dialog label{display:grid;gap:5px;margin:15px 0}dialog .section{justify-content:space-between;margin-top:0}.notice{margin:12px 0;background:#fff0c3;padding:10px;border-radius:12px}
@media(max-width:740px){aside{position:static;width:auto;padding:12px 16px;gap:10px}aside small{display:none}nav{display:flex;margin:0;gap:0;justify-content:space-between}nav a{padding:6px;font-size:14px}.brand{font-size:20px}.mark{width:32px;height:32px}main{margin:0;padding:22px 16px 42px}.hero{padding:22px 16px;border-radius:20px}.device{width:64px;height:101px}.minigrid span{height:24px}.cards{grid-template-columns:repeat(2,minmax(0,1fr))}.settings{flex-wrap:wrap}.settings select{width:auto}}
dialog:has(.crop-tools:not([hidden])){max-height:94dvh;overflow:auto}.crop{margin:14px 0}.crop-toggle,.crop-reset{background:#e4efe4;border:0;color:#174b3b;border-radius:10px;padding:10px 12px;cursor:pointer}.crop-tools canvas{display:block;height:min(38dvh,350px);max-width:100%;width:auto;margin:auto;border-radius:6px;outline:2px solid #789283;touch-action:none;cursor:grab}.crop-tools canvas:active{cursor:grabbing}.crop-tools small{display:block;margin:8px 0;color:#496253}.crop-tools input[type=range]{padding:0;accent-color:#215f4f}
.cards{grid-template-columns:repeat(var(--columns),minmax(0,1fr));max-width:calc(var(--columns)*190px)}.card{aspect-ratio:var(--tile-ratio)}.crop-tools canvas{height:auto;width:min(100%,calc(36dvh * var(--crop-aspect,.75)));max-height:38dvh}
.prefhead{margin:28px 0 12px;letter-spacing:-.035em}.prefgroup{background:white;border:1px solid #d3dfd2;border-radius:18px;padding:0 18px}.prefrow{display:grid;grid-template-columns:minmax(180px,1fr) minmax(120px,190px) auto;align-items:center;gap:12px;padding:18px 0}.prefrow+.prefrow{border-top:1px solid #e3ebe2}.prefrow small,.report{display:block;color:#526a5e}.prefrow strong{font-size:17px}.prefrow .wide{grid-column:1/-1}.level{display:flex;align-items:center;gap:8px}.level input{padding:0;accent-color:#215f4f;min-width:0}.level output{min-width:2ch}.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.report{margin-top:14px}
@media(max-width:850px){.prefrow{grid-template-columns:minmax(0,1fr) auto}.prefrow>div{grid-column:1/-1}.prefrow .action{padding:10px 12px}}

.phone-map { margin: 24px 0; padding: clamp(18px, 3vw, 32px); border: 1px solid #cbdccd; border-radius: 24px; background: #edf3e9; }
.map-heading { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 4px 18px; }
.map-heading h2 { letter-spacing: -.04em; }
.map-heading small, .map-info small { color: #425e50; }
.map-body { margin-top: 22px; display: grid; grid-template-columns: minmax(200px, 1fr) 1.15fr; align-items: center; gap: 28px; }
.map-device { position: relative; margin: 0 auto; width: 190px; min-width: 0; height: 278px; padding: 0; border: 5px solid #234237; border-radius: 30px; background: linear-gradient(145deg, #b5d4b6, #6b9c88 68%, #467363); box-shadow: 3px 5px 0 #d0decf; }
.map-device::before { content: ''; position: absolute; top: 5px; left: calc(50% - 14px); width: 28px; height: 4px; border-radius: 4px; background: #234237; }
.map-device::after { content: ''; position: absolute; right: -8px; top: 70px; height: 35px; width: 4px; border-radius: 3px; background: #234237; }
.map-spot { position: absolute; display: flex; align-items: center; min-height: 44px; cursor: pointer; }
.map-spot input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.map-spot span { display: flex; align-items: center; gap: 7px; background: #f6faf3; color: #183c2e; padding: 6px 10px; border-radius: 20px; font-size: 14px; font-weight: 640; }
.map-spot span::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #789384; }
.map-spot input:checked + span { background: #173e35; color: white; }
.map-spot input:checked + span::before { background: #c6efaa; }
.map-spot input:focus-visible + span { outline: 3px solid #133d45; outline-offset: 3px; }
.spot-shade { top: 16px; left: 12px; }
.spot-volume { top: 66px; right: 8px; }
.spot-screen { top: 133px; left: 18px; }
.spot-wake { bottom: 18px; right: 10px; }
.map-info { min-width: 0; }
.map-info > div { display: none; }
.map-body:has(input[value=screen]:checked) #map-screen,
.map-body:has(input[value=shade]:checked) #map-shade,
.map-body:has(input[value=volume]:checked) #map-volume,
.map-body:has(input[value=wake]:checked) #map-wake { display: block; }
.map-info h3 { font-size: 17px; margin: 0 0 8px; }
.map-info p { font-size: clamp(22px, 3vw, 32px); font-weight: 650; letter-spacing: -.04em; line-height: 1.15; }
.map-info small { display: block; margin: 12px 0; }
.map-info a { display: inline-block; padding: 8px 0; color: #215f4f; text-underline-offset: 3px; }
@media(max-width: 620px) {
  .map-body { grid-template-columns: minmax(0,1fr); gap: 20px; }
  .map-info { min-height: 150px; padding-top: 16px; border-top: 1px solid #cbdccd; }
}
main.access{margin:6vh auto;max-width:480px;padding:32px 20px}.account-form{display:grid;gap:16px;background:white;border:1px solid #d3dfd2;border-radius:20px;padding:24px;margin:20px 0;max-width:580px}.account-form label{display:grid;gap:6px}.account-form a{justify-self:start}.pair-code{font:600 1.6rem monospace;letter-spacing:.07em}.signout{background:transparent;border:0;color:#e3eee6;padding:10px;cursor:pointer}nav{flex-wrap:wrap}

.caller-options {border-top:1px solid #d3dfd2;margin-top:18px;padding-top:4px}
.caller-options form {background:#f2f6ef;padding:14px;border-radius:14px;margin-bottom:10px}
.caller-options .caller-check {display:flex;align-items:center;gap:10px;font-weight:650}
.caller-check input[type=checkbox] {width:20px;height:20px;accent-color:#215f4f}
.card .answer-mark {position:absolute;top:8px;left:8px;padding:2px 7px;border-radius:8px;background:#173e35;color:white;font-size:12px}
