.coverage-panel { padding:24px; margin:18px 0; line-height:1.55; min-width:0; }
.coverage-panel h3,.coverage-panel h4 { margin:8px 0 14px; }
.coverage-panel p { margin:12px 0; }
.coverage-controls { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:18px 20px; margin:20px 0; align-items:start; }
.coverage-controls > label:first-child { grid-column:1 / -1; }
.coverage-panel label { display:flex; flex-direction:column; gap:8px; min-width:0; margin:16px 0; }
.coverage-controls > label { margin:0; }
.coverage-panel .aq { display:block; box-sizing:border-box; width:100%; min-width:0; margin:0; padding:10px 12px; border:1px solid var(--border); border-radius:6px; background:var(--card); color:inherit; font:inherit; }
.coverage-panel input.aq,.coverage-panel select.aq { height:44px; }
.coverage-panel textarea.aq { min-height:100px; resize:vertical; }
.coverage-panel .btn { margin-top:4px; }
.coverage-reviews { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,320px),1fr)); gap:20px; }
.coverage-reviews article { min-width:0; padding:18px; border:1px solid var(--border); border-radius:8px; }
.coverage-panel details { padding:14px 0; border-top:1px solid var(--border); }
.coverage-panel summary { cursor:pointer; }
@media(max-width:760px) { .coverage-controls { grid-template-columns:minmax(0,1fr); } .coverage-panel { padding:18px; } }

.package-workbench{margin:16px 0;padding:18px;border:1px solid var(--line);border-radius:10px;min-width:0}.package-workbench details{margin:14px 0;padding:12px;border:1px solid var(--line);border-radius:8px}.package-workbench summary{font-weight:700;cursor:pointer;line-height:1.5}.package-fields,.package-totals{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:12px;margin:14px 0}.package-workbench label{display:flex;flex-direction:column;gap:6px;margin:10px 0;font-size:13px}.package-workbench input,.package-workbench select,.package-workbench textarea,.package-workbench input{box-sizing:border-box;width:100%;min-width:0;padding:10px;background:var(--card);color:inherit;border:1px solid var(--line);border-radius:6px}.package-workbench input[type=checkbox]{width:auto;align-self:flex-start}.package-workbench textarea{min-height:76px}.package-totals article{padding:14px;background:var(--card);border:1px solid var(--line);border-radius:8px;overflow-wrap:anywhere}.package-alert{padding:10px;border-left:4px solid #e5ad36;background:#bf8d1618}.package-actions{display:flex;flex-wrap:wrap;gap:8px;margin:14px 0}.package-condition{border-bottom:1px solid var(--line);padding:10px 0}

/* Keep inputs on a common baseline when field labels wrap. */
.package-fields{align-items:stretch}.package-fields>label{justify-content:flex-end}.package-fields input:not([type=checkbox]),.package-fields select{height:44px}
@media(max-width:520px){.package-fields,.package-totals{grid-template-columns:minmax(0,1fr)}}

/* Use the workbench typeface for narrative fields as well as single-line controls. */
.package-workbench{font-family:Poppins,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
.package-workbench input,.package-workbench select,.package-workbench textarea{font-family:inherit;font-size:13px;font-weight:400;line-height:1.5}
.package-workbench button{font-family:inherit}

/* The coverage worksheet opens with essential inputs; evidence stays on demand. */
.worksheet-coverage-row{padding:18px;margin:14px 0;border:1px solid var(--line);border-radius:9px;background:var(--card)}
.worksheet-coverage-head{display:flex;justify-content:space-between;align-items:flex-start;gap:16px}
.worksheet-coverage-head strong{display:block;font-size:15px;line-height:1.5;overflow-wrap:anywhere}
.worksheet-coverage-head span{display:block;font-size:12px;line-height:1.6;opacity:.85}
.worksheet-coverage-head .worksheet-line-status{white-space:nowrap;border:1px solid var(--line);border-radius:12px;padding:3px 10px;opacity:1}
.worksheet-essential-fields{grid-template-columns:minmax(180px,2fr) repeat(4,minmax(110px,1fr));gap:12px}
.worksheet-essential-fields label{margin:4px 0}
.worksheet-calculated{display:flex;flex-direction:column;justify-content:center;gap:8px;font-size:13px}
.worksheet-calculated strong{font-size:17px}
.package-workbench .worksheet-line-details{padding:10px 0;border:0;border-top:1px solid var(--line);border-radius:0;margin:14px 0 4px}
.worksheet-line-details>summary{font-size:12px;font-weight:500}
.worksheet-needs-review{font-size:13px;border-left:3px solid #e5ad36;padding:8px 12px;background:#bf8d1610}
.worksheet-scope-note{font-size:12px;opacity:.8}
.worksheet-include{font-size:12px;margin-top:8px}
@media(max-width:1000px){.worksheet-essential-fields{grid-template-columns:repeat(2,minmax(0,1fr))}.worksheet-essential-fields>label:first-child{grid-column:1/-1}}
@media(max-width:520px){.worksheet-essential-fields{grid-template-columns:minmax(0,1fr)}.worksheet-coverage-head{flex-direction:column;gap:6px}}

.app>div:has(.uw-simple-nav):not(:has(.uw-review-head)) .uw-workbench-context{position:relative;top:auto;max-height:none;overflow:visible}
.app>div:has(.uw-simple-nav) .uw-simple-nav{display:flex;flex-wrap:wrap;align-items:center;gap:10px;position:relative;top:auto}
.uw-more-sections{position:relative}.uw-more-sections>summary{cursor:pointer;font-size:12px;padding:8px}
.uw-more-sections[open]{flex-basis:100%}.uw-more-sections .uw-grouped-nav{display:flex;flex-wrap:wrap;gap:16px;padding:12px 0}
.app>div:has(.uw-simple-nav) .stat.pricing .n{font-size:14px;line-height:1.6;white-space:normal;overflow-wrap:anywhere}

.uw-pricing-summary{font-size:13px;font-weight:600;line-height:1.6;max-width:420px;text-align:right;white-space:normal;overflow-wrap:anywhere}
@media(max-width:760px){.uw-pricing-summary{max-width:100%;text-align:left}}

/* Coverage selection and the applicable schedules share one pricing section. */
#pricing>.coverage-panel{margin:12px 0;padding:16px;border:1px solid var(--line);border-radius:8px}
.coverage-selection-head{display:flex;justify-content:space-between;align-items:center;gap:16px}
.coverage-selection-head h4{margin:0 0 6px}.coverage-selection-head p{margin:0;font-size:13px}
.coverage-selection-head>.btn{flex-shrink:0}.coverage-edit{margin-top:16px}
#pricing .coverage-source-details{margin-top:12px;padding-top:10px;font-size:12px}
.package-workbench>.uw-rate-derivation{margin:18px 0}
@media(max-width:600px){.coverage-selection-head{align-items:flex-start;flex-direction:column}}

.coverage-controls .coverage-layer-fields{grid-column:1/-1;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px 18px;border:1px solid var(--line);border-radius:8px;padding:12px 16px;min-width:0}
.coverage-layer-fields legend{font-size:13px;font-weight:600;padding:0 6px}.coverage-layer-fields label{margin:0}
@media(max-width:760px){.coverage-controls .coverage-layer-fields{grid-template-columns:minmax(0,1fr)}}

.package-workbench .excess-components{margin:12px 0;padding:10px 12px;background:var(--card)}
.excess-components>summary{font-size:13px}.excess-component-row{padding:12px 0;border-top:1px solid var(--line)}
