/* Cost workspace and housing comparison. Keep all additions scoped. */
.cost-workspace.payment-panel{border:0;background:transparent;border-radius:0;margin:0 0 24px;padding:0;overflow:visible}
.cost-workspace *,.housing-panel *{box-sizing:border-box}
.cost-workspace-heading,.cost-list-heading,.cost-detail-heading,.payment-record-heading{display:flex;justify-content:space-between;gap:16px;align-items:center}
.cost-workspace-heading{margin:0 0 20px;align-items:flex-end}
.cost-workspace .eyebrow{font-size:12px;color:var(--muted,#68746f);margin:0 0 6px;font-weight:500}
.cost-workspace h2{font-size:clamp(22px,2.4vw,30px);line-height:1.3;letter-spacing:-.035em;margin:0}
.cost-workspace h3,.housing-panel h3{font-size:18px;line-height:1.35;margin:0}
.cost-workspace h4,.housing-panel h4{font-size:14px;line-height:1.4;margin:0}
.cost-workspace .micro,.housing-panel .micro{font-size:12px;line-height:1.65;color:var(--muted,#68746f)}
.cost-workspace .payment-overview{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;background:transparent;border:0;margin:0 0 24px;padding:0}
.cost-metric{display:flex;flex-direction:column;min-width:0;gap:9px;background:#fff;border:1px solid #e4e8e6;border-radius:20px;padding:22px}
.cost-metric>span{font-size:13px;color:#64716b}
.cost-metric strong{font-size:clamp(21px,2.3vw,30px);line-height:1.25;letter-spacing:-.035em;color:#183f32;overflow-wrap:anywhere}
.cost-metric strong.cost-date{font-size:clamp(19px,2.1vw,27px)}
.cost-metric small{font-size:11px;line-height:1.6;color:#64716b}
.cost-metric-primary{background:#eef5f1;border-color:#dce9e2}
.cost-workspace-body{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);align-items:start;gap:20px}
.cost-workspace-items,.cost-workspace-detail{min-width:0;background:#fff;border:1px solid #e4e8e6;border-radius:22px;padding:22px}
.cost-list-heading{margin:0 0 20px;gap:8px}
.cost-list-heading .micro{font-size:11px;white-space:nowrap}
.cost-row-head,.cost-item-row{display:grid;grid-template-columns:minmax(90px,1.25fr) repeat(4,minmax(0,1fr));gap:8px;text-align:right;align-items:center}
.cost-row-head{color:#68746f;font-size:10px;padding:0 10px 10px}
.cost-row-head>:first-child{text-align:left}
.cost-workspace .cost-item-row{width:100%;border:1px solid transparent;border-radius:14px;background:transparent;color:#223b31;padding:16px 10px;min-height:80px;margin:0 0 6px;font-size:11px;line-height:1.5;cursor:pointer;box-shadow:none;overflow-wrap:anywhere}
.cost-workspace .cost-item-row:hover{background:#f6f8f7}
.cost-workspace .cost-item-row.selected{background:#eef5f1;border-color:#d3e2d9}
.cost-item-name{font-size:13px;font-weight:650;text-align:left}
.cost-item-row small{display:block;font-size:10px;font-weight:400;line-height:1.5;color:#68746f;margin-top:4px}
.cost-item-row [data-label]:before{display:none}
.cost-workspace .cost-deposit-button{width:100%;display:flex;align-items:center;justify-content:space-between;gap:16px;background:#fafbfa;border:1px solid #e4e8e6;border-radius:14px;text-align:left;padding:17px 14px;color:#304e40;margin-top:18px;font-size:12px;line-height:1.5}
.cost-deposit-button strong{display:block;font-size:14px}.cost-deposit-button small{display:block;font-size:11px;color:#68746f;margin-top:5px}
.cost-workspace .cost-deposit-button.selected{border-color:#a9c5b6;background:#eef5f1}
.cost-workspace .cost-list-note{margin:15px 0 0;font-size:11px}
.cost-detail-heading{margin-bottom:12px}.cost-workspace-detail{scroll-margin-top:100px}
.cost-workspace .payment-form fieldset,.housing-panel fieldset{border:0;margin:0;padding:0;min-width:0}
.cost-workspace .payment-enrollment{margin:0 0 18px}
.cost-workspace .payment-amounts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.cost-workspace label,.housing-panel label{display:flex;flex-direction:column;gap:7px;font-size:12px;line-height:1.5;color:#53655b;min-width:0}
.cost-workspace input,.housing-panel input{display:block;width:100%;min-width:0;max-width:100%;height:44px;border:1px solid #dce3df;border-radius:10px;padding:10px 11px;background:#fafbfa;color:#17392c;font:inherit;font-size:14px;box-shadow:none}
.cost-workspace input[type=checkbox],.housing-panel input[type=checkbox]{width:18px;min-width:18px;height:18px;margin:0;accent-color:#2d5a47}
.cost-workspace .check-label{display:flex;flex-direction:row;align-items:center;gap:8px;font-size:12px;line-height:1.5}
.cost-workspace .payment-confirm{margin:14px 0 24px;min-height:32px}
.payment-record-heading{margin:0 0 12px;gap:8px;align-items:baseline}.payment-record-heading .micro{font-size:10px}
.cost-workspace .payment-rows{display:grid;gap:10px}
.cost-workspace .payment-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:14px;border:1px solid #e6ebe8;background:#fafbfa;border-radius:14px;align-items:end;margin:0}
.cost-workspace .payment-row-name{grid-column:1/-1}.cost-workspace .payment-row-paid{min-height:36px;align-self:center}
.cost-workspace .payment-row-remove{justify-self:end;min-height:36px;padding:4px 2px;color:#7a6a68}
.cost-workspace .payment-empty{margin:0;background:#f7f9f8;padding:18px;border-radius:12px}
.cost-workspace .payment-add-actions{display:flex;flex-wrap:wrap;gap:6px 18px;margin:10px 0 4px}
.cost-workspace .text-button,.housing-panel .text-button{min-height:40px;font-size:12px;line-height:1.4;padding:7px 0;background:transparent;border:0;color:#2a5a45;box-shadow:none}
.cost-workspace .payment-item-summary{background:#f3f7f4;padding:12px;border-radius:10px;margin:12px 0 0;line-height:1.8}
.cost-workspace .form-bottom,.housing-panel .form-bottom{display:flex;justify-content:space-between;gap:12px;align-items:center;margin:18px 0 0;flex-wrap:wrap}
.cost-workspace .primary,.housing-panel .primary{min-height:44px;padding:12px 18px;font-size:13px;border-radius:12px;white-space:normal;line-height:1.4}
.cost-workspace .error:empty,.housing-panel .error:empty,.cost-workspace .inline-feedback:empty,.housing-panel .inline-feedback:empty{display:none}
.cost-workspace .error,.housing-panel .error{font-size:12px;line-height:1.6;margin:12px 0 0}
.cost-workspace .inline-feedback,.housing-panel .inline-feedback{font-size:12px;margin:14px 0 0;line-height:1.6}
.cost-workspace [hidden]{display:none!important}
.cost-workspace button:focus-visible,.housing-panel summary:focus-visible{outline:3px solid #92b6a3;outline-offset:3px}
.housing-panel{margin:16px 0 24px;border:1px solid #e4e8e6;border-radius:20px;background:#fff;padding:0;overflow:hidden}
.housing-panel>summary{display:flex;justify-content:space-between;gap:16px;align-items:center;padding:20px 22px;cursor:pointer;list-style:none;font-size:15px;font-weight:600}
.housing-panel>summary::-webkit-details-marker{display:none}.housing-panel>summary::after{content:'＋';font-size:18px;color:#476858;font-weight:400}
.housing-panel[open]>summary::after{content:'−'}
.housing-summary-text{margin-left:auto;color:#69786f;font-size:11px;font-weight:400;text-align:right}
.housing-content{padding:0 22px 22px}.housing-content>.micro{margin:0 0 18px}
.housing-overview{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;background:#f4f7f5;padding:16px;border-radius:14px;margin-bottom:24px}
.housing-overview>div{min-width:0}.housing-overview span{display:block;font-size:11px;color:#68746f;margin-bottom:8px}.housing-overview strong{display:block;font-size:15px;line-height:1.5;color:#2b4e3e;overflow-wrap:anywhere}
.housing-columns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}.housing-columns section{min-width:0}.housing-columns h3{margin-bottom:16px}.housing-columns label{margin:0 0 12px}
.housing-panel dl{margin:0}.housing-panel dl>div{display:flex;align-items:baseline;justify-content:space-between;gap:14px;padding:12px 0;border-bottom:1px solid #eef1ef;font-size:13px;line-height:1.5}.housing-panel dt{color:#68746f}.housing-panel dd{margin:0;text-align:right;overflow-wrap:anywhere;color:#244332}
.housing-shared-values{margin-bottom:18px}.housing-deposit-comparison{margin-top:24px;padding:18px;background:#fafbfa;border:1px solid #e6ebe8;border-radius:14px}.housing-deposit-comparison h4{margin-bottom:8px}
.housing-panel .housing-caution{margin:12px 0 0}
@media(max-width:1080px){.cost-workspace-body{grid-template-columns:minmax(0,1fr)}.cost-workspace-detail{padding:24px}.cost-workspace .payment-row{grid-template-columns:minmax(0,1.15fr) minmax(0,1fr) minmax(0,1.2fr) auto auto;align-items:end}.cost-workspace .payment-row-name{grid-column:auto}.cost-workspace .payment-row-paid{align-self:end}.cost-workspace .payment-row-remove{align-self:end}.cost-item-name{font-size:14px}.cost-workspace .cost-item-row{font-size:13px}.cost-row-head{font-size:11px}}
@media(max-width:600px){.cost-workspace-heading{display:block;margin-bottom:16px}.cost-workspace-heading>.micro{margin:8px 0 0}.cost-workspace .payment-overview{gap:8px;grid-template-columns:repeat(2,minmax(0,1fr));margin-bottom:16px}.cost-metric{padding:17px 14px;border-radius:16px;gap:8px}.cost-metric:last-child{grid-column:1/-1;display:grid;grid-template-columns:1fr auto;gap:4px 12px;align-items:center}.cost-metric:last-child>span{grid-column:1}.cost-metric:last-child>strong{grid-row:1/3;grid-column:2;font-size:21px}.cost-metric:last-child>small{grid-column:1}.cost-metric strong{font-size:23px}.cost-metric small{font-size:10px}.cost-workspace-items,.cost-workspace-detail{padding:18px 14px;border-radius:18px}.cost-workspace-body{gap:16px}.cost-list-heading{margin-bottom:14px}.cost-row-head{display:none}.cost-workspace .cost-item-row{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px 6px;text-align:left;font-size:11px;padding:14px 10px;margin-bottom:8px}.cost-item-name{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;gap:6px;font-size:14px}.cost-item-name small{margin:0}.cost-item-row [data-label]:before{content:attr(data-label);display:block;font-size:9px;color:#68746f;margin-bottom:5px;font-weight:400}.cost-item-row small{font-size:9px}.cost-workspace .cost-deposit-button{gap:10px;padding:15px 12px;font-size:11px}.cost-workspace .payment-row{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:12px}.cost-workspace .payment-row-name{grid-column:1/-1}.cost-workspace .payment-row-paid{align-self:center}.cost-workspace .payment-row-remove{align-self:center}.cost-workspace .payment-amounts{gap:10px}.cost-workspace label{font-size:11px}.cost-workspace input,.housing-panel input{font-size:16px;padding:9px}.cost-workspace .payment-record-heading{display:block}.payment-record-heading .micro{display:block;margin-top:4px}.cost-workspace .form-bottom,.housing-panel .form-bottom{gap:10px}.cost-workspace .primary,.housing-panel .primary{padding:12px 15px;font-size:12px}.housing-panel>summary{padding:18px 14px;font-size:14px;gap:10px;flex-wrap:wrap}.housing-summary-text{font-size:10px}.housing-content{padding:0 14px 18px}.housing-overview{gap:12px;padding:14px;grid-template-columns:repeat(2,minmax(0,1fr))}.housing-overview>div:last-child{grid-column:1/-1;border-top:1px solid #e1e9e4;padding-top:12px}.housing-overview>div:last-child span,.housing-overview>div:last-child strong{display:inline;margin-right:12px}.housing-overview strong{font-size:14px}.housing-columns{gap:20px;grid-template-columns:1fr}.housing-columns section+section{border-top:1px solid #e6ebe8;padding-top:20px}.housing-deposit-comparison{padding:14px}.housing-panel dl>div{font-size:12px}.housing-panel label{font-size:12px}}
@media(prefers-reduced-motion:reduce){.cost-workspace *{scroll-behavior:auto!important}}
