.ac-study fieldset{border:1px solid var(--border,#555);padding:18px;margin:18px 0;min-width:0}
.ac-study legend{padding:0 8px;font-weight:600}
.ac-study-room{border-bottom:1px solid var(--border,#555);padding:14px 0}
.ac-study summary,#ac-study-results summary{cursor:pointer;padding:8px 0;font-weight:600}
.ac-study .fields{align-items:start}
.ac-study select,.ac-study input{width:100%;min-width:0}
.ac-study .fields>label{min-width:0}
.ac-study [data-ac-progress]{white-space:pre-wrap;overflow-wrap:anywhere}
#ac-study-results{overflow-wrap:anywhere}
#ac-study-results h3{margin-top:28px}
#ac-study-results caption{text-align:left;padding:12px 0;color:inherit}
#ac-study-results th{white-space:normal}
#ac-study-results tbody th{text-transform:none;letter-spacing:normal}
#ac-study-results table{min-width:760px}
#ac-study-results details table{min-width:360px}
.advance-plans dt{margin-top:20px;font-weight:600}
.advance-plans dd{margin:6px 0 0;max-width:80ch;line-height:1.6}
.ac-study summary:focus-visible,#ac-study-results summary:focus-visible{outline:2px solid #83baff;outline-offset:4px}
@media(max-width:700px){.ac-study fieldset{padding:12px}.ac-study .fields.three{grid-template-columns:1fr}.ac-study button{min-height:44px}}

/* Match the workspace palette; spacing separates setup, room entry and the action. */
#ac-study{padding:0;overflow:hidden;--ac-line:#48525b;--ac-muted:#bdc7cf;--ac-inset:#252c32}
.ac-study-heading{display:flex;justify-content:space-between;align-items:start;gap:24px;padding:28px 28px 24px}
#ac-study .ac-study-heading h2{font-size:22px;line-height:1.3;margin:0 0 8px}
#ac-study p{line-height:1.6}
.ac-study-heading p{margin:0;max-width:64ch;color:var(--ac-muted)}
.ac-study-basis{font-size:12px;color:var(--ac-muted);white-space:nowrap;padding-top:5px}
#ac-study .ac-study-form{border:0;padding:0;margin:0;min-width:0}
.ac-sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.ac-setup-section{padding:24px 28px;border-top:1px solid var(--ac-line)}
.ac-step-heading{display:flex;gap:12px;align-items:baseline;margin-bottom:22px}
.ac-step-number{color:#9dcaff;font-weight:700;font-size:14px}
#ac-study .ac-step-heading h3{font-size:16px;margin:0 0 5px;line-height:1.4}
.ac-step-heading p{margin:0;font-size:13px;color:var(--ac-muted)}
.ac-study-options{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:20px}
.ac-study-options label{display:flex;flex-direction:column;gap:9px;min-width:0;font-size:13px;color:var(--ac-muted)}
.ac-fresh-air{grid-column:1 / -1}
#ac-study select,#ac-study input{min-height:46px;font-size:14px}
#ac-study .ac-help{margin-top:18px;color:var(--ac-muted)}
#ac-study .ac-help summary{min-height:44px;align-content:center;font-size:13px;font-weight:500;color:#a9d0ff}
.ac-help p{max-width:76ch;font-size:13px;margin:8px 0 12px}
.ac-comparison-note{max-width:76ch;font-size:13px;color:var(--ac-muted)}
.ac-alternative{margin-top:20px;padding:18px;background:var(--ac-inset)}
.ac-alternative>label{display:flex;flex-direction:column;justify-content:space-between;gap:8px}
#ac-study .ac-alternative{align-items:stretch}
.ac-room-list{border:1px solid var(--ac-line);border-radius:6px;overflow:hidden}
#ac-study .ac-study-room{padding:0;border-bottom:1px solid var(--ac-line)}
#ac-study .ac-study-room:last-child{border-bottom:0}
#ac-study .ac-study-room>summary{display:flex;align-items:center;gap:16px;min-height:76px;padding:16px 20px;list-style:none;background:var(--ac-inset)}
.ac-study-room>summary::-webkit-details-marker{display:none}
.ac-study-room>summary::before{content:'›';font-size:22px;color:var(--ac-muted);flex:none}
.ac-study-room[open]>summary::before{transform:rotate(90deg)}
.ac-room-name{display:flex;flex-direction:column;gap:5px;font-size:14px;min-width:0;overflow-wrap:anywhere}
.ac-room-name small{font-size:12px;font-weight:400;color:var(--ac-muted)}
.ac-room-state{margin-left:auto;color:var(--ac-muted);font-size:12px;font-weight:400;white-space:nowrap}
.ac-room-body{padding:22px 20px 8px}
#ac-study .ac-room-body label{font-size:13px}
#ac-study .ac-room-body .hint{margin-top:16px;font-size:12px;color:var(--ac-muted)}
#ac-study .ac-study-actions{display:flex;align-items:center;justify-content:space-between;gap:24px;margin:0;padding:22px 28px;border-top:1px solid var(--ac-line);background:var(--ac-inset);color:inherit}
.ac-study-actions>div{display:flex;flex-direction:column;gap:6px}
.ac-study-actions strong{font-size:14px;font-weight:600}
.ac-study-actions span{font-size:12px;color:var(--ac-muted)}
.ac-study-actions button{min-height:46px;flex:none}
#ac-study [data-ac-progress]:empty{display:none}
#ac-study [data-ac-progress]{margin:0;padding:16px 28px;border-top:1px solid var(--ac-line)}
#ac-study [data-ac-progress][role=alert]{color:#ffd0c6}
#ac-study>[data-ac-cancel]{margin:16px 28px}
@media(max-width:900px){.ac-study-basis{display:none}.ac-study .fields.three{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.ac-study-heading,.ac-setup-section{padding:20px}#ac-study .ac-study-heading h2{font-size:20px}.ac-study-options,.ac-study .fields.three{grid-template-columns:1fr}.ac-room-state{white-space:normal;text-align:right;max-width:72px}#ac-study .ac-study-room>summary{padding:14px 12px}.ac-room-body{padding:18px 12px 6px}#ac-study .ac-study-actions{padding:20px;align-items:stretch;flex-direction:column;gap:16px}#ac-study input,#ac-study select{font-size:16px}}
