#dialog:has(.ct-panel){width:min(820px,calc(100vw - 40px))}
.ct-panel{color:#31523a}.ct-panel button{cursor:pointer}.ct-panel button:disabled{cursor:default;opacity:.5}
.ct-back,.ct-link{min-height:44px;border:0;background:transparent;color:#56774a;font:600 14px/1.5 var(--ui-font);padding:8px 0}
.ct-back{margin-bottom:4px;padding-right:40px}.ct-back:hover,.ct-link:hover{text-decoration:underline}
.ct-hub{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-top:24px}
.ct-tool{display:flex;flex-direction:column;text-align:left;align-items:start;gap:10px;padding:20px;border:1px solid #d6e3c1;border-radius:18px;background:#f1f7e4;color:#315d36;min-height:180px;transition:background .15s,border-color .15s}
.ct-tool:hover{border-color:#8caa70;background:#e8f1d4}.ct-tool strong{font-size:17px;font-weight:650;line-height:1.5}.ct-tool small{font-size:13px;line-height:1.7;color:#5a6c53}
.ct-tool-icon{display:grid;place-items:center;width:42px;height:42px;background:#fffdf7;border-radius:12px}.ct-tool-icon svg{width:25px;height:25px}
.ct-timer{background:#fff2de;border-color:#edd7b4}.ct-quiet{background:#eeeffb;border-color:#d8d9ef}.ct-report{background:#eaf6fb;border-color:#c4e0eb}.ct-build{background:#f5f1dd;border-color:#e3dcb7}.ct-challenge{background:#fff0e9;border-color:#efd2c3}
.ct-footnote{font-size:12px;line-height:1.7;color:#68775e;margin:22px 0 0}
.ct-toolbar,.ct-report-filters{display:flex;align-items:end;gap:12px;flex-wrap:wrap}.ct-toolbar .field,.ct-report-filters .field{flex:1;min-width:140px;margin-block:12px!important}.ct-toolbar>button{margin-bottom:12px;padding:10px 14px}
.ct-actions{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:10px;margin-top:22px}.ct-actions button{padding:11px 18px;min-height:46px!important}
.ct-secondary-actions{margin-top:12px}.ct-secondary-actions button{font-size:13px!important;background:transparent;border-color:transparent}
.ct-center{text-align:center}.ct-info{padding:16px 18px;border:1px solid #d8e3be;background:#f2f7e5;border-radius:12px;font-size:14px;line-height:1.8;margin:18px 0}.ct-info p{margin:6px 0 0}
.ct-pick-stage{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:300px;padding:24px;border-radius:20px;background:radial-gradient(ellipse at 50% 30%,#fffdf2 10%,#eaf3d7 100%);text-align:center;margin-top:16px}
.ct-pick-stage>img{width:180px;height:180px;object-fit:contain;filter:drop-shadow(0 8px 8px #44652a20)}.ct-pick-stage>strong{font-size:28px;line-height:1.4;margin:8px 0;overflow-wrap:anywhere}.ct-pick-stage>small{color:#65824d;font-size:13px}.ct-pick-stage>p{font-size:14px;color:#627354;line-height:1.6}.ct-pick-placeholder{padding:16px}.ct-pick-placeholder svg{width:68px;height:68px;color:#7b9c5c}
.ct-presets{display:flex;gap:10px;flex-wrap:wrap;margin:20px 0}.ct-presets button{padding:10px 14px}
.ct-step-row{border:1px solid #dce5ce;border-radius:14px;padding:8px 16px 10px;margin:18px 0;background:#fcfdf7}.ct-step-row legend{font-size:13px;font-weight:600;padding:0 6px}.ct-step-row .field{margin-block:8px!important}
.ct-two-fields{display:flex;gap:12px}.ct-two-fields>.field{flex:1;min-width:0}.ct-two-fields>.ct-duration{flex:0 0 105px}
.ct-stepper{display:flex;flex-wrap:wrap;gap:8px;margin:18px 0}.ct-stepper span{font-size:12px;line-height:1.5;background:#f0f2e7;border:1px solid #dfe5d3;color:#68785e;padding:7px 10px;border-radius:8px}.ct-stepper .current{background:#e6f2ce;border-color:#9ebb7d;color:#356030;font-weight:650}.ct-stepper .done{opacity:.65}
.ct-focus{padding:30px 24px;border-radius:20px;background:linear-gradient(155deg,#f7fae9,#e9f2d8);text-align:center;margin-top:14px}.ct-eyebrow{font-size:13px;line-height:1.7;color:#658054}.ct-focus h3{font-size:24px!important;line-height:1.4!important;margin:14px 0!important;overflow-wrap:anywhere}
.ct-clock{display:block;font-size:clamp(48px,8vw,84px);line-height:1.25;font-weight:650;letter-spacing:.02em;font-variant-numeric:tabular-nums;color:#2d643d;margin:12px 0}.ct-focus>p{font-size:14px;line-height:1.7;color:#5e7651}
.ct-criterion{border-top:1px solid #cedeb5;padding-top:18px;margin-top:24px}.ct-criterion small{font-size:12px;color:#6f805f}.ct-criterion p{font-size:17px;line-height:1.8;margin:6px 0;overflow-wrap:anywhere}
.ct-quiet-focus{background:linear-gradient(145deg,#f2f1fc,#ecf2e5)}.ct-quiet-companion{position:relative;width:140px;margin:0 auto}.ct-quiet-companion img{width:140px;height:140px;object-fit:contain;transform:rotate(-4deg);filter:saturate(.8)}.ct-quiet-companion>span{position:absolute;right:-12px;top:20px;color:#6c78a3;font:600 20px Georgia;letter-spacing:5px}
.ct-noise-meter{height:12px;background:#dfe5da;border-radius:8px;position:relative;margin:24px 0 16px}.ct-noise-meter>i{display:block;height:100%;width:0;background:#7ea568;border-radius:8px;transition:width .15s}.ct-noise-meter>span{position:absolute;top:-4px;height:20px;width:2px;background:#a17c52}.ct-noise-meter.over>i{background:#c9925c}
.ct-quiet-stats{display:flex;justify-content:space-between;gap:10px;font-size:13px;line-height:1.8;color:#617451}.ct-details{margin-top:22px;border-top:1px solid #dde5ce;padding-top:10px}.ct-details summary{font-size:14px;line-height:1.6;min-height:44px;padding:10px 0;cursor:pointer}.ct-details .field{text-align:left}.ct-details input[type=range]{padding:0;accent-color:#6b8d57}
.ct-summary-art{display:grid;place-items:center;margin:20px auto;width:80px;height:80px;border-radius:50%;background:#edf3dd;color:#718d59}.ct-summary-art svg{width:42px;height:42px}
.ct-summary-grid{display:flex;flex-wrap:wrap;justify-content:space-around;gap:16px;background:#edf4df;border-radius:16px;padding:24px 16px;margin:18px 0}.ct-summary-grid>div{text-align:center;flex:1;min-width:110px}.ct-summary-grid strong{display:block;font-size:30px;line-height:1.3;color:#386a40;font-variant-numeric:tabular-nums}.ct-summary-grid span{display:block;font-size:12px;color:#607452;margin-top:7px}
.ct-projects{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:22px 0}.ct-project{display:flex;flex-direction:column;align-items:center;gap:8px;border:1px solid #d9dfbf;border-radius:16px;background:#f7f7e9;padding:12px 12px 18px;color:#49633e}.ct-project .ct-landmark-art{width:100%;max-width:210px}.ct-project strong{font-size:16px}.ct-project small{font-size:12px;color:#768362}.ct-project:disabled{opacity:.8;background:#ecf3dd}.ct-project:hover:not(:disabled){border-color:#7e9f65;background:#eef4d9}
.ct-project-preview{width:180px;margin:auto}.ct-project-preview .ct-landmark-art{width:100%}.ct-build-hero{padding:22px;background:#f3f6e4;border-radius:20px;text-align:center;margin-top:18px}.ct-build-hero>.ct-landmark-art{display:block;width:200px;margin:auto}.ct-build-hero h3{font-size:20px!important;margin:12px 0!important}.ct-build-hero p{font-size:14px;color:#5c7550}.ct-build-progress{height:12px;border-radius:8px;overflow:hidden;background:#dfe6c9;margin:22px 0 12px}.ct-build-progress i{display:block;height:100%;background:#83a85c;border-radius:8px}.ct-success{background:#e9f3d6;border:1px solid #b9d698;padding:16px;line-height:1.8;border-radius:12px}.ct-success button{display:block;background:transparent;border:0;padding:10px 0;color:#677650;font-size:12px!important}
.ct-history{padding:0;list-style:none;margin:12px 0}.ct-history li{display:flex;align-items:start;justify-content:space-between;gap:16px;padding:14px 0;border-bottom:1px solid #e4e9d9;font-size:14px;line-height:1.7;overflow-wrap:anywhere}.ct-history time,.ct-history small{display:block;font-size:12px;color:#778269}.ct-history strong,.ct-history span{display:block}.ct-history b{flex-shrink:0;color:#477b44}.ct-history li>div{min-width:0}.ct-history .ct-empty{padding:24px;background:#f6f8ef;border:0;border-radius:12px;justify-content:center}.ct-reversed{opacity:.6}.ct-reversed strong{text-decoration:line-through}.ct-report-trend{font-size:13px;line-height:1.8;color:#68765b}
.ct-challenge-clock{text-align:center;padding:18px;background:#f5f5e7;border-radius:18px;margin:18px 0}.ct-challenge-clock>span,.ct-challenge-clock>small{display:block;font-size:13px;color:#77805d}.ct-challenge-clock .ct-clock{font-size:54px;margin:6px 0}
.ct-challenge-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.ct-team{padding:16px;background:var(--group-wash);border:1px solid var(--group-border);border-radius:16px}.ct-team>div:first-child{display:flex;justify-content:space-between;align-items:center;gap:8px;color:var(--group-color)}.ct-team>div:first-child strong{font-size:16px;overflow-wrap:anywhere}.ct-team>div:first-child span{font-size:12px;white-space:nowrap}.ct-team-score{display:block;text-align:center;font-size:40px;line-height:1.4;color:var(--group-color);margin:10px 0}.ct-team-score small{font-size:12px;margin-left:6px;font-weight:500}.ct-team-buttons{display:flex;flex-direction:column;gap:7px}.ct-team-buttons button{min-height:44px;font:600 13px var(--ui-font);border:1px solid var(--group-border);border-radius:9px;background:#fffdf7;color:var(--group-color)}.ct-team-buttons button:hover{background:#ffffff}
.ct-result-team{display:flex;align-items:center;gap:12px;background:var(--group-wash);border:1px solid var(--group-border);padding:14px;border-radius:12px;margin:10px 0;min-height:66px;cursor:pointer}.ct-result-team input{width:20px;height:20px;accent-color:#457744}.ct-result-team>span{flex:1;min-width:0}.ct-result-team strong{display:block;font-size:15px;overflow-wrap:anywhere}.ct-result-team small{display:block;font-size:12px;color:#67745c}.ct-result-team b{white-space:nowrap;color:var(--group-color)}
#ct-activity-dock{position:fixed;z-index:4;bottom:82px;left:50%;transform:translateX(-50%);display:flex;gap:6px;max-width:calc(100vw - 24px);overflow:auto;padding:4px;border-radius:12px;background:#fffef5ed;box-shadow:0 3px 18px #3d5c2820}
#ct-activity-dock button{display:flex;align-items:center;gap:8px;min-height:44px;padding:7px 12px;background:#edf3df;border:1px solid #d9e3c7;border-radius:9px;font:600 12px var(--ui-font);color:#45613c;white-space:nowrap}#ct-activity-dock svg{width:18px;height:18px;flex:none}#ct-activity-dock button>span{max-width:130px;overflow:hidden;text-overflow:ellipsis}#ct-activity-dock strong{font-variant-numeric:tabular-nums}
#ct-activity-dock[hidden],#ct-landmarks[hidden]{display:none}#ct-landmarks{position:absolute;left:6%;top:13%;display:flex;align-items:end;gap:10px;pointer-events:none;z-index:1}.ct-landmark{display:block;width:clamp(85px,10vw,150px);text-align:center;filter:saturate(.8);opacity:.94}.ct-landmark>.ct-landmark-art{display:block;width:100%;filter:drop-shadow(2px 4px 3px #4c643329)}.ct-landmark>span{font-size:11px;color:#4f683e;text-shadow:0 1px #ffffcf}
.ct-quiet-rest #residents .resident .pet-body{transform:rotate(-3deg) scaleY(.94)!important;transform-origin:50% 100%;animation-duration:7s!important}.ct-quiet-rest #residents .resident .animal{filter:saturate(.8) brightness(.95)}
@media(min-width:960px){#hint [data-action=tools]{background:#e6f1ce;border-color:#b8ce94;color:#345e36}}
@media(max-width:600px){
 #dialog:has(.ct-panel){width:calc(100vw - 24px);padding:20px}.ct-hub{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:18px}.ct-tool{padding:14px;min-height:168px;gap:8px}.ct-tool strong{font-size:16px}.ct-tool small{font-size:12px}.ct-tool-icon{width:36px;height:36px}.ct-tool-icon svg{width:22px;height:22px}
 .ct-toolbar{align-items:stretch;gap:6px}.ct-toolbar>.field{flex:1 1 100%;margin-top:0!important}.ct-toolbar>button{margin:0 0 10px}.ct-pick-stage{min-height:250px;padding:18px}.ct-pick-stage>img{width:150px;height:150px}.ct-pick-stage>strong{font-size:25px}
 .ct-actions{gap:8px}.ct-actions button{flex:1;padding-inline:12px}.ct-secondary-actions button{flex:auto}.ct-focus{padding:24px 16px}.ct-criterion p{font-size:16px}.ct-stepper span{font-size:11px;padding:6px 8px}.ct-two-fields{gap:8px}.ct-two-fields>.ct-duration{flex-basis:86px}
 .ct-projects{grid-template-columns:1fr;gap:10px}.ct-project{display:grid;grid-template-columns:100px 1fr;gap:6px 14px;text-align:left;justify-items:start;padding:10px}.ct-project .ct-landmark-art{grid-row:span 2;width:100px}.ct-project strong{align-self:end}.ct-project small{align-self:start}
 .ct-challenge-grid{grid-template-columns:1fr}.ct-summary-grid{padding:18px 12px;gap:18px 10px}.ct-summary-grid strong{font-size:26px}.ct-summary-grid>div{min-width:90px}.ct-report-filters{gap:8px}.ct-report-filters>.field{min-width:100px}
 #hint,#hint:has(#toast button){display:flex;gap:5px;max-width:calc(100vw - 20px);width:max-content}#hint .glass{font-size:12px;gap:4px;min-width:44px;padding:8px}#hint .glass svg{width:16px;height:16px}
 #hint #toast:has(button){position:absolute;top:auto;bottom:calc(100% + 8px);left:50%;transform:translateX(-50%);max-width:calc(100vw - 24px);width:max-content;height:auto;min-height:44px;background:#fffdf4;border:1px solid #d7e1c4;padding:6px 10px;display:flex;flex-wrap:nowrap}
 #hint #toast span{position:static;width:auto;height:auto;clip:auto;overflow:hidden;white-space:normal;font-size:12px}#hint #toast button{flex-shrink:0}
 #hint:has(#toast button) :is([data-action=search],#ranking){font-size:12px;gap:4px;width:auto;padding:8px}#hint:has(#unlock:not([hidden])) [data-action=search]{font-size:0;gap:0}
 #ct-landmarks{top:120px;left:8%;gap:5px}.ct-landmark{width:80px}
}
@media(prefers-reduced-motion:reduce){.ct-tool,.ct-noise-meter>i{transition:none}.ct-quiet-rest #residents .resident .pet-body{animation:none!important}}
@media(max-height:500px){#dialog:has(.ct-panel){max-height:calc(100dvh - 16px)}#ct-activity-dock{bottom:72px}.ct-focus{padding:16px}.ct-clock{font-size:48px}}

.ct-tool small{font-weight:400}.ct-quiet-rest #residents .pet-body,.ct-quiet-rest #residents .pet-body *{animation-play-state:paused!important}

.ct-landmark-art{object-fit:contain;aspect-ratio:4/3}.ct-landmark-treehouse{width:clamp(110px,12vw,180px)}.ct-landmark-treehouse>.ct-landmark-art{aspect-ratio:1}.ct-landmark{filter:saturate(.8) brightness(.97)}
@media(min-width:601px) and (max-height:850px){.ct-focus{padding:18px 24px}.ct-criterion{padding-top:12px;margin-top:14px}.ct-clock{font-size:64px;margin:8px 0}.ct-secondary-actions{margin-top:8px}.ct-panel>.ct-stepper{margin:12px 0}}

/* Completed projects belong to the landscape, rather than a row of trophies. */
#ct-landmarks{inset:0;display:block;z-index:0;pointer-events:none}
#ct-landmarks .ct-landmark{position:absolute;transform:translate(-50%,-100%);opacity:1;filter:none}
#ct-landmarks .ct-landmark>.ct-landmark-art{position:relative;z-index:1;width:100%;display:block;filter:sepia(.12) saturate(.72) brightness(.96) contrast(.88);mask-image:linear-gradient(to bottom,#000 0%,#000 77%,#000b 90%,transparent 100%)}
#ct-landmarks .ct-landmark::before{content:"";position:absolute;z-index:0;left:14%;right:5%;bottom:4%;height:12%;border-radius:50%;background:radial-gradient(ellipse,#50573055,transparent 70%);transform:skewX(-22deg);filter:blur(2px)}
#ct-landmarks .ct-landmark-bridge>.ct-landmark-art{mask-image:radial-gradient(ellipse 53% 47% at 50% 54%,#000 52%,#000b 72%,transparent 100%);filter:sepia(.12) saturate(.64) brightness(.99) contrast(.86)}
#ct-landmarks .ct-landmark-flowers>.ct-landmark-art{filter:sepia(.08) saturate(.72) brightness(.98) contrast(.89)}
/* Keep names available to assistive technology; project management retains full labels. */
#ct-landmarks .ct-landmark>span{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
