*{box-sizing:border-box}body{margin:0;background:#faf8ef;color:#173c31;font:1.1rem/1.6 system-ui,sans-serif}main{max-width:38rem;margin:auto;padding:clamp(1rem,4vw,2rem)}h1{line-height:1.25}label,dt{display:block;font-weight:700}label{margin-top:1rem}select,button{width:100%;min-height:48px;padding:.65rem;border-radius:.6rem;border:1px solid #436552;font:inherit}button{background:#20573e;color:white;font-weight:bold;margin-top:1.25rem;cursor:pointer}section{background:white;padding:1.2rem;border:1px solid #a8bcab;border-radius:.75rem}a{color:inherit}dd{margin:0 0 .75rem}select:focus-visible,button:focus-visible,a:focus-visible{outline:3px solid #a05409;outline-offset:3px}

.room-counts{width:100%;border-collapse:collapse;table-layout:fixed;font-size:clamp(.94rem,2vw,1.1rem)}.room-counts caption{text-align:left;font-weight:bold;margin-bottom:.4rem}.room-counts th,.room-counts td{text-align:left;padding:.5rem .25rem;border-bottom:1px solid #afc5b4;overflow-wrap:anywhere}.room-counts :is(th,td):first-child{width:32%}.room-counts :is(th,td):last-child{width:17%;text-align:right}.room-links{display:flex;flex-wrap:wrap;gap:.5rem 1rem;margin-top:1rem}.room-links a{display:inline-flex;align-items:center;min-height:44px}

.room-activities{margin:1.25rem 0}.room-activities figcaption{font-weight:bold}.room-activities ul{list-style:none;padding:0}.room-activities li{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:0 .5rem;margin:.5rem 0}.room-activities meter{grid-column:1/-1;width:100%;height:.85rem}

/* MaJuBom operator workspace; resident form is deliberately unchanged. */
.room-operator{--ink:#193f33;--muted:#52675d;--line:#d4dfd5;--paper:#fffefa;background:#f4f5ef;color:var(--ink);font:1rem/1.55 system-ui,sans-serif;word-break:keep-all;overflow-wrap:anywhere}
.room-operator main{max-width:66rem;padding:clamp(1rem,3vw,2.4rem);margin:auto}
.room-operator .room-mast{display:flex;align-items:center;justify-content:space-between;gap:10px;background:#173d32;color:white;padding:12px max(1rem,calc((100vw - 61rem)/2));border-bottom:4px solid #b6ca96}
.room-operator .room-mast div{display:flex;gap:.6rem;align-items:center}.room-operator .room-seal{display:grid;place-items:center;border-radius:50% 50% 45% 30%;background:#d6e5ba;color:#1a4030;width:2.2rem;height:2.2rem;font-weight:850}
.room-operator .room-mast small{color:#dae7de}.room-operator .room-mast a,.room-operator footer a{display:inline-flex;align-items:center;min-height:44px;text-underline-offset:.25em;font-size:.9rem}
.room-operator .room-intro p{margin:0;color:var(--muted);font-size:.9rem}.room-operator h1{margin:.35rem 0 1.2rem;font-size:clamp(1.85rem,4vw,2.7rem);letter-spacing:-.045em}
.room-operator .room-filter,.room-operator .room-surface,.room-operator .room-kpi{border:1px solid var(--line);border-radius:16px;padding:clamp(1rem,2.6vw,1.6rem);min-width:0}
.room-operator .room-filter,.room-operator .room-kpi{display:flex;align-items:center;justify-content:space-between;gap:1rem}.room-operator .room-filter,.room-operator .room-surface{background:var(--paper)}
.room-operator .room-filter small{display:block;color:var(--muted)}.room-operator .room-period{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:3px;padding:3px;background:#e9eee7;border-radius:12px}
.room-operator .room-period a{display:grid;place-items:center;padding:.4rem .85rem;min-height:44px;text-decoration:none;border-radius:9px;white-space:nowrap}.room-operator .room-period [aria-current]{background:#245742;color:white;font-weight:750}
.room-operator .room-kpi{margin:.85rem 0;background:#e4efdf;border-color:#c7d7c3}.room-operator .room-kpi span{font-weight:650}.room-operator .room-kpi strong{display:block;font-size:clamp(2.65rem,5vw,3.8rem);letter-spacing:-.06em;line-height:1.1;font-variant-numeric:tabular-nums}.room-operator .room-kpi small{font-size:1.2rem;margin-left:.3em}.room-operator .room-kpi p{color:var(--muted);margin:0;max-width:22em}
.room-operator .room-empty{display:flex;align-items:center;justify-content:center;gap:clamp(1.2rem,4vw,3rem);padding-block:clamp(1.7rem,4vw,2.8rem)}.room-operator .room-art{width:clamp(6.5rem,15vw,10rem);height:auto;flex:none}.room-operator h2{margin:0;font-size:1.35rem}.room-operator .room-empty p{margin:.35rem 0 .8rem;color:var(--muted)}
.room-operator .room-cta,.room-operator .room-error a{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:.55rem 1rem;border-radius:9px;background:#245742;color:white;text-decoration:none;font-weight:650}
.room-operator .room-data{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.2fr);gap:.85rem;align-items:start}.room-operator .room-activities,.room-operator .room-activities ul{margin:0}.room-operator .room-activities li{margin:.85rem 0}.room-operator meter{accent-color:#397051}.room-operator .room-counts th{background:#edf2eb}.room-operator .room-counts caption,.room-operator figcaption{font-size:1.12rem;margin-bottom:.7rem}.room-operator footer{margin:1rem 0;color:var(--muted)}.room-operator .room-error{border-left:5px solid #ab7440}.room-operator a:focus-visible{outline:3px solid #cc8f35;outline-offset:3px}
@media(max-width:44rem){.room-operator .room-data{grid-template-columns:minmax(0,1fr)}.room-operator .room-filter{align-items:stretch;flex-direction:column}.room-operator .room-kpi{align-items:flex-start;flex-direction:column}.room-operator .room-empty{flex-direction:column;text-align:center}.room-operator .room-mast small{display:none}}

.room-review{margin:1rem 0}
.room-review h2{margin-top:0}
.room-review ul{padding:0;list-style:none;display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,14rem),1fr));gap:.55rem}
.room-review li{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:.2rem .5rem;padding:.6rem .75rem;border:1px solid #c8dacd;border-radius:.55rem;background:#f3f7f2;overflow-wrap:anywhere}
.room-review li span{grid-row:2;grid-column:1}
.room-review li b{grid-row:1 / span 2;grid-column:2;align-self:center;white-space:nowrap}

.room-operator .room-draft{margin:0 0 .85rem}
.room-draft summary{cursor:pointer;font-size:1.15rem;font-weight:750}
.room-draft summary:focus-visible,.room-draft input:focus-visible,.room-draft select:focus-visible,.room-draft button:focus-visible{outline:3px solid #cc8f35;outline-offset:3px}
.room-draft-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.75rem}
.room-draft-fields label{display:grid;align-content:start;gap:.25rem;margin:0;min-width:0}
.room-draft-fields label:first-child{grid-column:1/-1}
.room-draft-fields input,.room-draft-fields select{box-sizing:border-box;width:100%;min-width:0;min-height:44px;font:inherit;padding:.5rem;border:1px solid var(--line);border-radius:.5rem;background:white}
.room-draft button{min-height:44px;margin-top:.85rem}
@media(max-width:36rem){.room-draft-fields{grid-template-columns:minmax(0,1fr)}}

.room-proposal-field{min-width:0}
.room-proposal-field select[aria-invalid="true"]{border:2px solid #a34626}
.room-field-error[hidden]{display:none}
.room-field-error{color:#8b351a;font-size:.95rem;font-weight:650;line-height:1.45;margin:.3rem 0 .75rem;overflow-wrap:anywhere}

.room-proposal-summary{margin-top:1rem;padding:.75rem .9rem;border:1px solid #c8d8cd;border-radius:.7rem;background:#eef4ec;color:#173c31}
.room-proposal-summary dl{margin:.35rem 0 0}
.room-proposal-summary dl>div{display:grid;grid-template-columns:minmax(0,5.5rem) minmax(0,1fr);gap:.2rem .7rem;padding:.18rem 0}
.room-proposal-summary dd,.room-proposal-summary dt{min-width:0;margin:0;overflow-wrap:anywhere;word-break:keep-all}
.room-proposal-summary dd{font-weight:600}
@media(max-width:21rem){.room-proposal-summary dl>div{grid-template-columns:minmax(0,1fr);gap:0}.room-proposal-summary dl>div+div{margin-top:.35rem}}

.room-resident-choices{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(0,1fr);gap:.55rem;margin:1rem 0}
.room-resident-choices a{min-height:48px;display:grid;place-items:center;text-align:center;word-break:keep-all;padding:.4rem .5rem;border:1px solid #567565;border-radius:.6rem;background:#fff;text-decoration:none;font-weight:700;line-height:1.3}
.room-resident-choices .room-proposal-start{background:#20573e;color:white}
#room-proposal-start,#sokpuri-meeting-place{scroll-margin-top:1rem}

.room-review .room-draft-start{grid-column:1/-1;justify-self:start;min-height:44px;margin-top:.35rem;padding:.42rem .8rem;font-size:.92rem}
.room-review .room-draft-start:focus-visible{outline:3px solid #a96d19;outline-offset:2px}
.room-review .room-draft-start[hidden]{display:none}

.room-proposal-received:not([hidden]){padding:1rem;margin:.7rem 0 1rem;border:1px solid #9cb9a6;border-radius:.75rem;background:#eff6ec;color:#173c31}
.room-proposal-received h2{margin:0 0 .35rem}
.room-proposal-received p{margin:0 0 .55rem;overflow-wrap:anywhere}
.room-proposal-received a{display:inline-flex;align-items:center;min-height:44px;font-weight:700}

.room-received-actions{display:flex;gap:.55rem .8rem;align-items:stretch;flex-wrap:wrap}
.room-received-actions a,.room-received-actions button{justify-content:center;flex:1 1 10.5rem;text-align:center;min-height:46px;margin:0;padding:.42rem .65rem;border-radius:.55rem;line-height:1.35;word-break:keep-all}
.room-received-actions a{background:#20573e;color:white;text-decoration:none}
.room-received-actions button{background:#fff;color:#20573e;border:1px solid #658575;width:auto}

.room-operator .room-table-filter:not([hidden]){display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.65rem;margin:0 0 .8rem}
.room-operator .room-table-filter label{margin:0;min-width:0}
.room-operator .room-table-filter select{margin:.25rem 0 0;width:100%;min-width:0}
.room-operator .room-table-filter button{grid-column:1/-1;margin:0;justify-self:start}
.room-operator #room-table-state{font-weight:650;color:var(--muted);margin:.2rem 0 .8rem}
@media(max-width:24rem){.room-operator .room-table-filter:not([hidden]){grid-template-columns:minmax(0,1fr)}}

#proposal-clear-draft:not([hidden]){background:#fff;color:#20573e;margin:.5rem 0 0}
#proposal-custom-field[hidden]{display:none}
#custom-name{width:100%;min-height:48px;padding:.65rem;border-radius:.6rem;border:1px solid #436552;background:white;color:inherit;font:inherit}
#custom-name[aria-invalid="true"]{border:2px solid #a34626}
#custom-name:focus-visible{outline:3px solid #a05409;outline-offset:3px}
#proposal-custom-hint{margin:.35rem 0 0;font-size:.92rem}

/* Resident proposal: the form is the first action, with details on request. */
main:has(#proposal-form) h1{margin-bottom:.45rem;font-size:clamp(1.55rem,5vw,2.2rem)}
#room-proposal-start{font-size:1.2rem;margin:0 0 .6rem}
.room-resident-fields{display:grid;gap:.65rem;grid-template-columns:minmax(0,1fr)}
.room-resident-fields label{margin:0 0 .2rem;font-size:1rem}
.room-resident-fields select,.room-resident-fields input{margin:0}
.room-resident-fields #proposal-custom-field{grid-column:1/-1}
.room-send-note{margin:.65rem 0;font-size:.95rem;word-break:keep-all}
.room-proposal-summary summary{cursor:pointer;font-weight:700;font-size:1rem;min-height:44px;display:list-item;align-content:center}
.room-proposal-summary:has(summary){margin-top:.65rem;padding:0 .8rem}
.room-proposal-summary[open]{padding-bottom:.65rem}
.room-proposal-summary summary:focus-visible{outline:3px solid #a05409;outline-offset:2px}
@media(min-width:36rem){.room-resident-fields{grid-template-columns:repeat(2,minmax(0,1fr))}.room-resident-fields .room-proposal-field:first-child{grid-column:1/-1}}
