.ps-stage{border:1px solid #9bb4dd88;border-radius:13px;background:#344367aa;margin:10px 0;overflow:hidden}.ps-stage[open]{border-color:#92f8dc;box-shadow:0 0 9px #83eed533}.ps-stage summary{display:flex;align-items:center;gap:9px;padding:12px;cursor:pointer;list-style:none}.ps-stage summary::-webkit-details-marker{display:none}.ps-stage summary>span:nth-child(2){flex:1;min-width:0}.ps-stage b{font-size:12px;display:block}.ps-stage small{font-size:10px;display:block;color:#c1d0ed;margin-top:4px}.ps-number{border-radius:50%;border:1px solid #a3b8e4;background:#435b82;padding:4px 8px}.ps-stage em{font-size:10px;font-style:normal;color:#9af1dc}.ps-collapse{display:none}.ps-stage[open] .ps-collapse{display:block}.ps-stage[open] .ps-expand{display:none}.ps-tasks{padding:0 10px 8px}.ps-task{display:flex;gap:8px;align-items:center;border-top:1px solid #a9b9d944;padding:10px 0}.ps-task>div{flex:1;min-width:0}.ps-task .check{flex-shrink:0}.ps-task button{font-size:10px;padding:5px}.ps-adjust{margin:7px 0;width:100%;background:#435d8ce6;border:1px solid #9ebceb;font-size:13px;padding:10px}.ps-scope-list{max-height:33vh;overflow:auto;margin:12px 0}.ps-scope-row{display:flex;gap:10px;align-items:center;padding:11px 8px;border:1px solid #9bb4dd77;border-radius:10px;margin:6px 0;background:#35476b}.ps-scope-row input{width:19px;height:19px;accent-color:#75ebca;flex-shrink:0}.ps-scope-row b{font-size:12px}.ps-scope-row small,.ps-review small{display:block;font-size:10px;color:#b8c8e5;margin-top:4px}.ps-scope-row.locked{opacity:.5}.ps-review p{font-size:12px;line-height:1.6}.ps-review h4{color:#93f9d9;margin-top:12px}
.dialog:has(#scope-form){display:flex;flex-direction:column;max-height:86dvh;padding:18px;overflow:hidden}.dialog:has(#scope-form)>h2{flex-shrink:0;margin-bottom:12px}.dialog:has(#scope-form)>footer{flex-shrink:0;display:flex;gap:6px;margin-top:12px}.dialog:has(#scope-form)>footer button{font-size:11px;padding:9px 6px}#scope-form{min-height:0;overflow-y:auto;padding-right:3px}#scope-form .ps-scope-list{max-height:27dvh}#scope-form .field{font-size:11px;margin:8px 0}#scope-form input,#scope-form select{font-size:11px}#scope-form .caption{font-size:10px;line-height:1.6}
/* Scope screen: only the task list scrolls; controls remain fixed. */
.dialog-backdrop:has(#scope-form){padding:0;background:linear-gradient(#17274435,#17274450),url('assets/wardrobe/room-clean.png') center/cover;backdrop-filter:none;align-items:stretch}
.dialog:has(#scope-form){position:relative;box-sizing:border-box;width:100%;height:100%;max-height:100%;max-width:none;margin:0;padding:7% 5% 4%;border:0;border-radius:0;background:none;box-shadow:none;display:grid;grid-template-rows:auto minmax(0,1fr) auto;gap:10px;overflow:hidden}
.dialog:has(#scope-form)>.close{position:absolute;top:1%;left:4%;right:auto;width:auto;padding:3px 9px;font-size:0;background:#344569d9;border:1px solid #9eaddc;border-radius:20px}.dialog:has(#scope-form)>.close:after{content:'‹ 返回';font-size:11px}
.dialog:has(#scope-form)>h2{text-align:center;font-size:25px;margin:13px 0 0;text-shadow:0 2px 3px #14254e,0 0 12px #a7d3ff}.dialog:has(#scope-form)>h2:before{content:'▤ ';color:#e0edff}
#scope-form{box-sizing:border-box;display:grid;grid-template-rows:auto auto minmax(70px,1fr) auto auto auto;gap:10px;min-height:0;overflow:hidden;padding:12px;border:1px solid #a6b9ed;border-radius:23px;background:linear-gradient(140deg,#3a4c79ed,#303f65e8);box-shadow:inset 0 0 24px #c2d4ff20}
.ps-subtitle{font-size:12px;text-align:center;color:#d0e0ff;margin:0;background:#819aca22;border-radius:20px;padding:4px}
.ps-goal{display:flex;align-items:center;gap:8px;padding:10px;background:linear-gradient(100deg,#758bc066,#e8b87855);border:1px solid #aabce8;border-radius:15px;min-width:0}.ps-goal>span:nth-child(2){min-width:0;flex:1}.ps-goal-icon{font-size:32px;color:#ffdc98}.ps-goal small{display:block;font-size:10px;color:#d8e4ff}.ps-goal svg{width:32px;height:32px}#scope-form .ps-goal select{width:100%;font-size:12px;font-weight:bold;color:#fff0bd;background:transparent;padding:3px 0;border:0;min-width:0}.ps-goal option{background:#344569}
.ps-task-picker{display:flex;flex-direction:column;min-height:0;border:1px solid #8ea5d488;border-radius:14px;overflow:hidden;background:#40547b66}.ps-task-picker h3{font-size:12px;padding:9px;margin:0;flex-shrink:0;display:flex;align-items:center;justify-content:space-between}.ps-task-picker h3 small{font-size:10px;font-weight:normal;color:#c3d0ec}
#scope-form .ps-scope-list{min-height:0;max-height:none;overflow-y:auto;overscroll-behavior:contain;touch-action:pan-y;margin:0;padding:0 5px 4px;scrollbar-width:thin;scrollbar-color:#98aed6 transparent}
#scope-form .ps-scope-row{padding:9px 6px;gap:7px;margin:0 0 5px;border-radius:11px;min-height:55px;box-sizing:border-box}#scope-form .ps-scope-row>span{flex:1;min-width:0}#scope-form .ps-scope-row b{font-size:11px;line-height:1.4}#scope-form .ps-scope-row small{font-size:9px}#scope-form .ps-scope-row input{width:17px;height:17px;margin:0}#scope-form .ps-scope-row svg{width:23px;height:27px;flex-shrink:0}.ps-scope-row em{font-style:normal;font-size:9px;color:#ffdaa5;border:1px solid #dfa56899;background:#a36c4444;border-radius:6px;padding:3px;white-space:nowrap}.ps-scope-row:has(input:checked){border-color:#9dffe0;background:#45bda244}
.ps-reasons{border:1px solid #8ea5d488;border-radius:12px;padding:9px;margin:0;min-width:0}.ps-reasons legend{font-size:12px;font-weight:bold;padding:0 4px}.ps-reasons>div{display:grid;grid-template-columns:1fr 1fr;gap:6px}.ps-reasons label{display:flex;gap:5px;align-items:center;font-size:10px;border:1px solid #8b9ecf80;border-radius:8px;padding:7px 5px}.ps-reasons label:has(input:checked){border-color:#8af5d8;background:#49bca040;box-shadow:0 0 8px #70ffe433}#scope-form .ps-reasons input{width:15px;height:15px;margin:0;accent-color:#7beacd;flex-shrink:0}
.ps-time{display:block;font-size:12px;font-weight:bold}.ps-time small{display:block;color:#b9c9e9;font-size:9px;font-weight:normal;margin:3px 0 5px}#scope-form .ps-time input{font-size:11px;padding:9px;width:100%;box-sizing:border-box;border:1px solid #9fb6e4;border-radius:10px;background:#344768;color:#e3edff}.ps-assurance{font-size:9px;color:#ceddf2;line-height:1.4;margin:0;text-align:center}
.dialog:has(#scope-form)>footer{display:grid;grid-template-columns:1fr 1.35fr;gap:8px;margin:0}.dialog:has(#scope-form)>footer button{min-height:44px;font-size:11px;border-radius:15px;border:1px solid #a4b9eb;background:#3d4e7ce8}.dialog:has(#scope-form)>footer .primary{background:linear-gradient(140deg,#a5ffe0,#5bd8c7);box-shadow:0 0 14px #8fffe077;color:#123f4b;font-weight:bold}
@media(max-height:660px){.dialog:has(#scope-form){gap:6px;padding-top:6%}#scope-form{gap:6px;padding:9px}.ps-goal{padding:6px}.ps-reasons{padding:6px}.ps-reasons label{padding:5px 3px}.ps-assurance{font-size:8px}.ps-time small{display:none}.dialog:has(#scope-form)>h2{font-size:22px}}
#scope-form .ps-assurance{font-size:9px;line-height:1.4;margin:0}#scope-form .ps-time{font-size:12px;line-height:1.4;margin:0}#scope-form .ps-time small{font-size:9px;line-height:1.4;margin:3px 0 5px}#scope-form .ps-subtitle{font-size:12px;line-height:1.4;margin:0}#scope-form .ps-reasons label{margin:0;line-height:1.4}#scope-form .ps-reasons{min-height:0}
/* Discussion stays in the topic strip instead of occupying chat history. */
.agent-topic.ps-discussion-topic{align-self:stretch;justify-content:space-between;border-radius:12px;padding:6px 8px;gap:6px;max-width:100%;min-width:0}.agent-topic.ps-discussion-topic span{flex:1;min-width:0;max-width:none;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px}.agent-topic.ps-discussion-topic button{flex-shrink:0;white-space:nowrap;font-size:10px;padding:3px 5px;color:#ffe2c7}.ps-proposal-link{padding:4px 0 8px 14cqw}.ps-proposal-link button{font-size:12px;padding:9px 14px}
.dialog-backdrop:has(.pc-body){background:linear-gradient(#24304e40,#24304e70),url('assets/wardrobe/room-clean.png') center/cover;backdrop-filter:none;padding:3%}
.dialog:has(.pc-body){box-sizing:border-box;width:100%;height:94%;max-height:94%;max-width:none;display:flex;flex-direction:column;overflow:hidden;padding:16px 10px 12px;border:1px solid #b1c4ee;border-radius:20px;background:linear-gradient(140deg,#3c4c74ed,#293858ed)}.dialog:has(.pc-body)>h2{font-size:21px;margin:14px 0 10px;padding-right:12px}.dialog:has(.pc-body)>.close{position:absolute;right:10px;top:8px;left:auto}.pc-body{min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;padding:0 2px}.pc-goal{font-size:12px!important;line-height:1.5!important;margin:0 0 10px!important}.pc-goal span{display:block;width:fit-content;font-size:10px;color:#ffe3b8;border:1px solid #d8b181;background:#84634499;padding:3px 6px;border-radius:7px;margin-top:6px}.pc-columns{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px;align-items:start}.pc-column{padding:7px;border-radius:13px;color:#2c395d}.pc-before{background:linear-gradient(135deg,#cdd7f1,#a8b7dc)}.pc-after{background:linear-gradient(135deg,#fff0d7,#f4daba);box-shadow:0 0 12px #ffe6ab33;color:#684532}.pc-column h3{font-size:15px;margin:0 0 8px;padding:6px;border-radius:8px;color:white;background:#637aa7}.pc-after h3{background:#51a38f}.pc-column article{background:#ffffff70;border-radius:9px;padding:7px;margin-bottom:7px;overflow-wrap:anywhere}.pc-column h4{font-size:11px;line-height:1.5;margin:0 0 7px}.pc-column p{font-size:10px!important;line-height:1.5!important;margin:7px 0!important;color:inherit}.pc-column small{display:block;font-size:9px;opacity:.7;margin-bottom:2px}.pc-preserved,.pc-budget{border:1px solid #9bafd177;border-radius:12px;padding:9px;margin-top:10px}.pc-preserved h3,.pc-budget h3{font-size:12px;margin:0 0 8px}.pc-preserved>div{display:grid;grid-template-columns:repeat(3,1fr);gap:5px}.pc-preserved span{font-size:9px;line-height:1.6;border:1px solid #9bafd155;border-radius:8px;background:#8193b933;text-align:center;padding:6px 2px}.pc-body .pc-preserved p,.pc-budget p{font-size:10px!important;line-height:1.6!important;margin:5px 0 0!important}.pc-body .pc-notice{font-size:10px;line-height:1.6;margin:10px 0;color:#ffe2b2;background:#80654277;border-radius:9px;padding:7px}.dialog:has(.pc-body)>footer{display:flex;gap:8px;flex-shrink:0;margin:10px 0 0}.dialog:has(.pc-body)>footer button{flex:1;min-height:43px;font-size:13px;border-radius:13px}
.dialog:has(.pc-body){position:relative}.pc-column small{color:#45516c;opacity:1}.pc-after small{color:#80624b}
.pc-column .pc-summary-row{display:flex;gap:6px;align-items:flex-start;padding:8px 6px;margin:0 0 6px;min-height:50px}.pc-row-icon{font-size:20px;line-height:1.3;flex-shrink:0}.pc-summary-row>div{min-width:0}.pc-summary-row b{font-size:10px;line-height:1.5;display:block;overflow-wrap:anywhere}.pc-summary-row.is-changed b{color:#b74b20}.pc-summary-row small{font-size:9px;margin:0 0 3px}.pc-column{padding:6px}.pc-column h3{font-size:14px;padding:5px;margin-bottom:6px}.pc-preserved,.pc-budget{padding:7px;margin-top:7px}.pc-preserved h3,.pc-budget h3{font-size:11px;margin-bottom:5px}.pc-preserved span{padding:4px 2px}.pc-full{font-size:10px;margin-top:7px;color:#cbdaf4}.pc-full summary{cursor:pointer}.pc-full p{font-size:10px!important;line-height:1.5!important}.pc-body .pc-notice{font-size:9px;margin:5px 0;padding:5px}.dialog:has(.pc-body)>h2{font-size:20px;margin:10px 0 8px}
.dialog:has(.pc-body){height:98%;max-height:98%;padding:10px 9px}.pc-column .pc-summary-row{padding:6px 5px;min-height:40px;margin-bottom:4px}.pc-summary-row b{font-size:10px;line-height:1.35}.pc-summary-row small{font-size:8px;margin-bottom:2px}.pc-row-icon{font-size:17px}.pc-preserved>p{display:none}.pc-preserved span{font-size:8px;line-height:1.4}.pc-preserved,.pc-budget{margin-top:6px;padding:6px}.pc-body .pc-goal{font-size:10px!important;margin-bottom:6px!important}.pc-column h3{margin-bottom:4px}.dialog:has(.pc-body)>h2{margin:8px 0 6px}.dialog:has(.pc-body)>footer{margin-top:6px}
/* Equal comparison panels and a content-sized dialog. */
.dialog-backdrop:has(.pc-body){align-items:center}
.dialog:has(.pc-body){height:auto;max-height:94%;flex:0 1 auto;min-height:0;padding:16px 12px 12px}
.dialog:has(.pc-body)>.pc-body{flex:0 1 auto;min-height:0}
.dialog:has(.pc-body)>h2{display:flex;align-items:center;gap:8px;padding-right:30px;margin:0 0 10px;font-size:20px;flex-shrink:0}
.dialog:has(.pc-body)>h2 svg{width:29px;height:34px;flex-shrink:0;filter:drop-shadow(0 2px 2px #12213c66)}
.pc-columns{align-items:stretch;grid-template-rows:auto repeat(3,auto);gap:0 10px}
.pc-column{display:grid;grid-row:1 / span 4;grid-template-rows:subgrid;row-gap:6px;padding:7px}
.pc-before{grid-column:1}.pc-after{grid-column:2}
.pc-column h3{margin:0}.pc-column .pc-summary-row{margin:0;min-height:44px}
.dialog:has(.pc-body)>footer{margin-top:9px;margin-bottom:0}
@supports not (grid-template-rows:subgrid){.pc-columns{grid-template-rows:auto}.pc-column{grid-row:auto;grid-template-rows:auto repeat(3,1fr)}}
/* Center the review entry and emphasize changed dates. */
.ps-proposal-link{display:flex;justify-content:center;width:100%;box-sizing:border-box;padding:8px 0 12px;margin:0}
.pc-after .pc-summary-row.is-changed{background:#fff8e9;border:1px solid #e5a554;box-shadow:0 0 8px #ffd38b44}
.pc-after .pc-summary-row.is-changed b{color:#b94816;font-size:12px;font-weight:800;line-height:1.45}
.pc-after .pc-summary-row.is-changed small{color:#945124;font-weight:700}
.ps-adjusted-tag{display:inline-block;margin-left:5px;padding:1px 5px;font-size:9px;font-weight:normal;white-space:nowrap;color:#abffe0;border:1px solid #7bd4b688;border-radius:5px;background:#339b8244}
.room-today-complete{font-size:3.1cqw;color:#a2ffda;font-weight:bold;padding:1.5cqw 0 2cqw}.room-today-complete small{display:block;font-size:2.2cqw;color:#c5d8ed;font-weight:normal;margin-top:1cqw}.room-tomorrow{border-top:1px solid #9badd755;padding-top:2cqw;margin-bottom:2cqw}.room-tomorrow h3{font-size:2.8cqw;margin:0 0 1.5cqw}.room-tomorrow h3 small{font-size:2.2cqw;color:#c0d0ec}.room-next-task{display:block;width:100%;padding:1.5cqw;text-align:left;background:#788fb333;border:1px solid #91a9d355;border-radius:1.5cqw;margin:1cqw 0}.room-next-task b{display:block;font-size:2.4cqw;line-height:1.5}.room-next-task small{display:block;font-size:2cqw;color:#b8c9e5;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;margin-top:.6cqw}.room-tomorrow p{font-size:2.5cqw;color:#c0cee3;margin:1cqw 0}
