#coverageView{min-width:0}#coverageView .cf-heading,#coverageView .cf-workspace-head,#coverageView .cf-actions,#coverageView .cf-sheet-meta{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}#coverageView .cf-heading{margin-bottom:20px}#coverageView .cf-heading h2{margin:0;font-size:26px}#coverageView .cf-heading p,#coverageView .cf-muted,#coverageView .cf-grid-hint{color:var(--crm-muted);font-size:13px;line-height:1.6}#coverageView .cf-heading p{margin:5px 0 0}#coverageView .cf-layout{display:grid;grid-template-columns:210px minmax(0,1fr);gap:20px}#coverageView .cf-folders{background:var(--crm-card);border:1px solid var(--crm-line);border-radius:12px;padding:15px;align-self:start}#coverageView .cf-folders h3{margin:0 0 15px;font-size:14px;color:var(--crm-text)}#coverageView .cf-folders h3 small{color:var(--crm-muted);margin-left:8px}#coverageView .cf-folder-list{display:grid;gap:7px}#coverageView .cf-folder-list button{display:flex;gap:10px;text-align:left;padding:12px;border:1px solid transparent;background:transparent;width:100%;border-radius:8px;color:var(--crm-text)}#coverageView .cf-folder-list button.active{border-color:var(--crm-gold-line);background:var(--crm-gold-soft);color:var(--crm-gold)}#coverageView .cf-folder-list button>span:first-child{font-size:23px}#coverageView .cf-folder-list button>span:last-child{overflow-wrap:anywhere;min-width:0}#coverageView .cf-folder-list small{display:block;font-size:11px;margin-top:5px;color:var(--crm-muted)}#coverageView .cf-main{min-width:0;background:var(--crm-card);color:var(--crm-text);border:1px solid var(--crm-line);border-radius:12px;padding:22px}#coverageView .cf-main button,#coverageView .cf-heading button,.cf-dialog button{border:1px solid var(--crm-line);border-radius:6px;background:var(--crm-card);color:var(--crm-text);padding:8px 12px;cursor:pointer;min-height:36px;font-size:13px}#coverageView .cf-primary{background:var(--crm-gold)!important;color:var(--crm-card)!important;border-color:var(--crm-gold)!important}#coverageView .cf-main button:disabled{opacity:.5;cursor:not-allowed}#coverageView .cf-workspace-head h3{font-size:22px;margin:0 0 6px}#coverageView .cf-workspace-head>div:first-child>button{padding:3px 0;border:0;font-size:12px;text-decoration:underline;min-height:24px}#coverageView .cf-status{min-height:22px;font-size:12px;color:var(--crm-muted);padding:9px 0}#coverageView .cf-sheet-tabs{display:flex;gap:6px;flex-wrap:wrap;border-bottom:1px solid var(--crm-line);padding-bottom:10px;margin-bottom:18px}#coverageView .cf-sheet-tabs .active{color:var(--crm-gold);border-color:var(--crm-gold-line);background:var(--crm-gold-soft)}#coverageView .cf-sheet-meta{justify-content:flex-start;margin-bottom:18px}#coverageView .cf-sheet-meta label{display:grid;gap:6px;font-size:12px;font-weight:600}#coverageView .cf-sheet-meta span{margin-left:auto;color:var(--crm-muted);font-size:12px}#coverageView .cf-main input,#coverageView .cf-main textarea,.cf-dialog input{font:inherit;background:var(--crm-card)!important;color:var(--crm-text)!important;border:1px solid var(--crm-line);border-radius:4px;padding:8px;box-sizing:border-box;min-width:0;max-width:100%}#coverageView .cf-main textarea{width:100%;resize:vertical;min-height:100px;line-height:1.5}#coverageView .cf-main input:focus,#coverageView .cf-main textarea:focus{outline:2px solid var(--crm-gold);outline-offset:-2px;background:var(--crm-gold-soft)!important}#coverageView .cf-summary-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}#coverageView .cf-side{border:1px solid var(--crm-line)}#coverageView .cf-side h3{font-size:20px;text-align:center;padding:19px;margin:0;color:var(--crm-text)}#coverageView .cf-before h3{background:var(--crm-gold-soft)}#coverageView .cf-after h3{background:var(--crm-navy)}#coverageView .cf-side>label{display:grid;gap:5px;padding:12px 12px 0;font-size:12px;font-weight:600}#coverageView .cf-premiums{display:grid;grid-template-columns:1fr 1.5fr 1.5fr;gap:8px;padding:12px}#coverageView .cf-premiums label{font-size:11px;display:grid;gap:6px}#coverageView .cf-premiums input{width:100%;text-align:right}#coverageView .cf-summary-footer{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;font-size:12px;padding:14px 0}#coverageView .cf-summary-footer label{display:flex;align-items:center;gap:8px}#coverageView .cf-summary-footer input{width:130px}#coverageView .cf-summary-footer strong{display:inline-block;min-width:55px;margin-left:8px}#coverageView .cf-grid-hint{margin:4px 0 10px;color:var(--crm-muted)}#coverageView .cf-grid-scroll{overflow:auto;max-width:100%;border:1px solid var(--crm-line)}#coverageView .cf-grid{width:100%;min-width:1120px;border-collapse:collapse;table-layout:fixed;font-size:12px}#coverageView .cf-grid .cf-cat{width:85px}#coverageView .cf-grid .cf-label{width:130px}#coverageView .cf-grid .cf-value{width:90px}#coverageView .cf-grid .cf-gap{width:14px}#coverageView .cf-grid th,#coverageView .cf-grid td{border:1px solid var(--crm-line);padding:0;text-align:center;vertical-align:middle}#coverageView .cf-grid thead th{padding:9px 5px;background:var(--crm-raised);font-weight:700;color:var(--crm-text)}#coverageView .cf-grid thead .cf-before-band{background:var(--crm-gold-soft)}#coverageView .cf-grid thead .cf-after-band{background:var(--crm-navy)}#coverageView .cf-grid th.cf-gap-cell,#coverageView .cf-grid td.cf-gap-cell{background:var(--crm-card);border-top:0;border-bottom:0}#coverageView .cf-grid .cf-category{background:var(--crm-raised);font-weight:600;padding:5px;overflow-wrap:anywhere}#coverageView .cf-category small{display:block;font-size:10px;font-weight:400;color:var(--crm-muted);margin-top:3px}#coverageView .cf-grid .cf-benefit{background:var(--crm-card);font-weight:500;padding:5px;line-height:1.5;overflow-wrap:anywhere}#coverageView .cf-grid input{display:block;width:100%;min-height:35px;border:0;border-radius:0;padding:6px 3px;text-align:center;font-size:12px}#coverageView .cf-group-start>*{border-top:2px solid var(--crm-gold-line)!important}#coverageView .cf-main .cf-plus{color:var(--crm-success-text)!important;font-weight:700}#coverageView .cf-main .cf-minus{color:var(--crm-danger-text)!important;font-weight:700}#coverageView .cf-notes{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-top:18px}#coverageView .cf-notes label{display:grid;gap:7px;font-size:13px;font-weight:600}#coverageView .cf-tools{margin-top:22px;border-top:1px solid var(--crm-line);padding-top:12px}#coverageView .cf-tools summary{font-size:12px;color:var(--crm-muted);cursor:pointer}#coverageView .cf-tools .cf-actions{justify-content:flex-start;margin-top:12px}#coverageView .cf-tools p{font-size:12px;color:var(--crm-muted)}#coverageView .cf-empty{text-align:center;padding:70px 20px}#coverageView .cf-empty h3{font-size:20px}#coverageView .cf-empty p{color:var(--crm-muted);font-size:14px}#coverageView .cf-folder-symbol{font-size:60px;color:var(--crm-gold)}.cf-dialog{max-width:400px;width:calc(100% - 40px);background:var(--crm-card);color:var(--crm-text);border:1px solid var(--crm-line);border-radius:12px;padding:24px}.cf-dialog::backdrop{background:#0008}.cf-dialog label{display:grid;gap:10px;font-size:13px}.cf-dialog input{width:100%}.cf-dialog h3{margin:0 0 20px}.cf-dialog footer{display:flex;justify-content:flex-end;gap:9px;margin-top:20px}.cf-dialog [role=alert]{color:var(--crm-danger-text);font-size:12px}
@media(max-width:1100px){#coverageView .cf-layout{grid-template-columns:160px minmax(0,1fr);gap:12px}#coverageView .cf-main{padding:16px}#coverageView .cf-premiums{grid-template-columns:1fr 1fr}#coverageView .cf-premiums label:first-child{grid-column:1/-1}#coverageView .cf-premiums label:first-child input{max-width:100px}#coverageView .cf-summary-grid{gap:12px}}
@media(max-width:700px){#coverageView .cf-layout{grid-template-columns:1fr}#coverageView .cf-folders{padding:12px}#coverageView .cf-folder-list{display:flex;overflow-x:auto;padding-bottom:4px}#coverageView .cf-folder-list button{min-width:150px;max-width:220px;flex:none}#coverageView .cf-folders>.cf-muted{margin:8px 0 0}#coverageView .cf-main{padding:12px}#coverageView .cf-heading h2{font-size:23px}#coverageView .cf-heading button{padding:8px}#coverageView .cf-summary-grid{grid-template-columns:1fr}#coverageView .cf-sheet-meta label{flex:1;min-width:120px}#coverageView .cf-sheet-meta input{width:100%}#coverageView .cf-sheet-meta span{margin:0;flex-basis:100%}#coverageView .cf-summary-footer{align-items:flex-start;flex-direction:column}#coverageView .cf-notes{grid-template-columns:1fr}#coverageView .cf-workspace-head{align-items:flex-start}#coverageView .cf-actions{gap:5px}#coverageView .cf-main button{padding:8px}#coverageView .cf-empty{padding:40px 12px}}

#coverageView .cf-main h3,#coverageView .cf-main label,#coverageView .cf-main td,#coverageView .cf-main th{color:var(--crm-text)}#coverageView .cf-workspace-head{display:flex}#coverageView .cf-main{font-size:14px}#coverageView .cf-heading h2{color:var(--crm-text)}
/* Isolate the document from the application's generic main/input skin. */
#coverageView .cf-main{display:block;position:static;height:auto;max-height:none;overflow:visible;gap:0;grid-template-columns:none}
#coverageView .cf-main input,#coverageView .cf-main textarea{color:var(--crm-text)!important;-webkit-text-fill-color:var(--crm-text)!important;opacity:1;box-shadow:none}
#coverageView .cf-main input::placeholder,#coverageView .cf-main textarea::placeholder{color:var(--crm-muted)!important;-webkit-text-fill-color:var(--crm-muted)!important}
#coverageView .cf-side{display:block;position:static;height:auto;overflow:visible}
#coverageView .cf-folders{height:auto;min-height:0;max-height:none;position:static;overflow:visible;width:auto}
#coverageView .cf-layout{height:auto;min-height:0;align-items:start}
dialog.cf-dialog{background:var(--crm-card)!important;color:var(--crm-text)!important}dialog.cf-dialog h3,dialog.cf-dialog label{color:var(--crm-text)!important}dialog.cf-dialog input{color:var(--crm-text)!important;-webkit-text-fill-color:var(--crm-text)!important}dialog.cf-dialog button{color:var(--crm-text)!important;-webkit-text-fill-color:var(--crm-text)!important}

/* CENTRAL screen skin only. Print/export document and all calculations stay unchanged. */
@media screen {
#coverageView{color:var(--crm-text);color-scheme:dark}
#coverageView .cf-main,#coverageView .cf-folders{border-radius:var(--crm-radius);box-shadow:var(--crm-shadow)}
#coverageView .cf-main button,#coverageView .cf-heading button,dialog.cf-dialog button{background:var(--crm-raised);border-radius:var(--crm-control-radius);color:var(--crm-text)}
#coverageView .cf-primary{background:var(--crm-gold)!important;color:var(--crm-bg)!important;border-color:var(--crm-gold)!important}
#coverageView button:hover,dialog.cf-dialog button:hover{border-color:var(--crm-gold)}
#coverageView .cf-side{border-radius:10px;overflow:hidden;background:var(--crm-bg)}
#coverageView .cf-side h3{font-size:18px;letter-spacing:.02em;color:var(--crm-beige);border-bottom:1px solid var(--crm-line)}
#coverageView .cf-after h3{color:var(--crm-gold)}
#coverageView .cf-grid-scroll{border-radius:10px}
#coverageView .cf-grid thead th{color:var(--crm-beige)}
#coverageView .cf-grid thead .cf-after-band{color:var(--crm-gold)}
#coverageView .cf-grid .cf-gap-cell{background:var(--crm-bg)}
#coverageView .cf-main input,#coverageView .cf-main textarea,dialog.cf-dialog input{background:var(--crm-bg)!important;color:var(--crm-text)!important;-webkit-text-fill-color:var(--crm-text)!important;border-color:var(--crm-line);border-radius:var(--crm-control-radius);color-scheme:dark}
#coverageView .cf-grid input{border-radius:0;background:var(--crm-card)!important}
#coverageView .cf-grid tr:hover input{background:var(--crm-raised)!important}
#coverageView .cf-main input:focus,#coverageView .cf-main textarea:focus{background:var(--crm-gold-soft)!important}
dialog.cf-dialog{background:var(--crm-card)!important;color:var(--crm-text)!important;border-color:var(--crm-line);box-shadow:var(--crm-shadow);color-scheme:dark}
dialog.cf-dialog h3,dialog.cf-dialog label,dialog.cf-dialog button{color:var(--crm-text)!important;-webkit-text-fill-color:var(--crm-text)!important}
}
/* Reference image: coral BEFORE / cyan AFTER neon frames. Static, restrained glow. */
@media screen {
#coverageView{--cf-coral:#ff9478;--cf-cyan:#32d9f4;--cf-before-line:#956052;--cf-after-line:#247b88}
#coverageView .cf-summary-grid{position:relative;gap:32px}
#coverageView .cf-summary-grid::after{content:'➜';position:absolute;left:50%;top:30px;transform:translateX(-50%);font-size:24px;line-height:1;color:var(--cf-cyan);text-shadow:0 0 10px #16cdea55;pointer-events:none}
#coverageView .cf-before{border-color:var(--cf-before-line);background:linear-gradient(135deg,#281b1b,#141316);box-shadow:0 0 14px #ff896b12,inset 0 0 14px #ff896b08}
#coverageView .cf-after{border-color:var(--cf-after-line);background:linear-gradient(135deg,#10282d,#10161b);box-shadow:0 0 14px #16cdea16,inset 0 0 14px #16cdea08}
#coverageView .cf-before h3{color:var(--cf-coral);background:#2b1c1c;border-color:var(--cf-before-line);text-shadow:0 0 12px #ff896b33}
#coverageView .cf-after h3{color:var(--cf-cyan);background:#102a31;border-color:var(--cf-after-line);text-shadow:0 0 12px #16cdea44}
#coverageView .cf-grid-scroll{border-color:#3d555d;box-shadow:0 0 15px #16cdea0c}
#coverageView .cf-grid thead .cf-before-band{background:#2b1c1c;color:var(--cf-coral);border:1px solid var(--cf-coral);text-shadow:0 0 10px #ff896b33}
#coverageView .cf-grid thead .cf-after-band{background:#102a31;color:var(--cf-cyan);border:1px solid var(--cf-cyan);text-shadow:0 0 10px #16cdea44}
#coverageView .cf-grid tbody tr:hover input{filter:brightness(1.12)}
#coverageView .cf-grid input:focus{outline:2px solid var(--cf-cyan);outline-offset:-2px;filter:none}
}
@media screen and (max-width:700px){#coverageView .cf-summary-grid{gap:16px}#coverageView .cf-summary-grid::after{content:none}}
@media (prefers-reduced-motion:reduce){#coverageView .cf-side,#coverageView .cf-grid{animation:none;transition:none}}
/* Row-spanned category groups keep the original value rows/IDs intact. */
#coverageView .cf-category-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:12px 0;color:var(--crm-muted);font-size:12px}
#coverageView .cf-category-content{display:grid;gap:8px;justify-items:center;padding:8px 2px}
#coverageView .cf-category-content strong{font-size:13px}
#coverageView .cf-category-content button{font-size:10px;padding:4px 5px;min-height:28px;width:100%;max-width:70px}
#coverageView .cf-category-content [data-cf-action="delete-category"]{color:var(--crm-muted);background:transparent;border-color:transparent}
#coverageView .cf-grid .cf-benefit small{display:block;color:var(--crm-muted);font-size:10px;margin-top:3px}
#coverageView .cf-grid tbody tr>.cf-before-cell{background:#211a1c!important;border-color:var(--cf-before-line)!important}
#coverageView .cf-grid tbody tr>.cf-after-cell{background:#14242a!important;border-color:var(--cf-after-line)!important}
#coverageView .cf-grid tbody tr>.cf-before-cell input{background:#211a1c!important}
#coverageView .cf-grid tbody tr>.cf-after-cell input{background:#14242a!important}
#coverageView .cf-grid tbody tr>.cf-delta-cell,#coverageView .cf-grid tbody tr>.cf-delta-cell input{background:#25353d!important}
#coverageView .cf-grid tbody tr>.cf-gap-cell{background:var(--crm-bg)!important;border-top:0!important;border-bottom:0!important}
#coverageView .cf-grid .cf-group-start>.cf-before-cell{border-top-color:var(--cf-coral)!important}
#coverageView .cf-grid .cf-group-start>.cf-after-cell{border-top-color:var(--cf-cyan)!important}
#coverageView .cf-grid .cf-before-cell input:focus{outline-color:var(--cf-coral)}
#coverageView .cf-grid .cf-after-cell input:focus{outline-color:var(--cf-cyan)}
#coverageView .cf-grid .cf-header-edit{font:inherit;color:inherit;background:transparent;border:0;border-radius:4px;min-height:32px;padding:4px;width:100%;line-height:1.5;overflow-wrap:anywhere;white-space:normal}
#coverageView .cf-grid .cf-header-edit span{opacity:.65;font-size:10px}
#coverageView .cf-grid .cf-header-edit:hover{background:#ffffff0a;color:var(--crm-text)}
#coverageView .cf-grid .cf-header-edit:focus-visible{outline:2px solid var(--crm-gold);outline-offset:1px}
#coverageView .cf-grid .cf-header-edit:disabled{opacity:1;cursor:default}
#coverageView .cf-grid .cf-header-edit:disabled span{display:none}
/* Category actions live in the left tools panel, never inside coverage cells. */
#coverageView .cf-category-manager{margin-top:20px;padding-top:16px;border-top:1px solid var(--crm-line)}
#coverageView .cf-category-manager summary{cursor:pointer;font-size:13px;font-weight:700;color:var(--crm-text);padding:6px 0}
#coverageView .cf-category-manager summary small{color:var(--crm-muted);font-weight:400;margin-left:6px}
#coverageView .cf-category-manager-body{padding-top:12px}
#coverageView .cf-category-manager-body>button{width:100%;font-size:12px}
#coverageView .cf-category-manager-list{display:grid;gap:10px}
#coverageView .cf-category-manager-item{border-top:1px solid var(--crm-line);padding-top:12px}
#coverageView .cf-category-manager-item>strong{display:block;font-size:12px;overflow-wrap:anywhere;margin-bottom:8px}
#coverageView .cf-category-manager-actions{display:flex;gap:4px;flex-wrap:wrap}
#coverageView .cf-category-manager-actions button{font-size:10px;padding:6px;min-height:30px;white-space:nowrap}
#coverageView .cf-category-manager-actions [data-cf-action="delete-category"]{color:var(--crm-muted);background:transparent;border-color:transparent}
#coverageView .cf-category-content{padding:8px 2px}
@media screen and (max-width:700px){
 #coverageView .cf-category-manager-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
 #coverageView .cf-category-manager-actions button{min-height:36px}
}
@media print{#coverageView .cf-category-manager{display:none!important}}

#coverageView .cf-category-manager button{border:1px solid var(--crm-line);border-radius:6px;background:var(--crm-card);color:var(--crm-text);cursor:pointer}
#coverageView .cf-category-manager button:disabled{opacity:.5;cursor:not-allowed}
/* One collapsible root keeps large customer collections within the sidebar. */
#coverageView .cf-folder-tree summary{cursor:pointer;font-size:13px;font-weight:700;color:var(--crm-text);padding:6px 0;line-height:1.6}
#coverageView .cf-folder-tree summary small{color:var(--crm-muted);margin-left:4px;font-weight:400}
#coverageView .cf-folder-tree summary:focus-visible{outline:2px solid var(--crm-gold);outline-offset:3px;border-radius:4px}
#coverageView .cf-folder-tree .cf-folder-list{display:grid;max-height:320px;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;scrollbar-gutter:stable;margin-top:12px;padding:2px}
#coverageView .cf-folder-tree .cf-folder-list button{min-width:0;max-width:none;width:100%;min-height:56px}
#coverageView .cf-selected-folder{font-size:11px;color:var(--crm-gold);line-height:1.6;overflow-wrap:anywhere;margin:10px 0 0}
@media screen and (max-width:700px){#coverageView .cf-folder-tree .cf-folder-list{max-height:240px}#coverageView .cf-folder-tree summary{min-height:36px;align-content:center}}
/* Brighter gold/cyan accents are scoped to the category tools only. */
@media screen{
 #coverageView .cf-category-manager summary{color:#f4d47d;text-shadow:0 0 12px #e6b94d24}
 #coverageView .cf-category-manager summary small{background:#443821;color:#ffe5a0;padding:2px 7px;border-radius:12px}
 #coverageView .cf-category-manager-body>button{background:linear-gradient(135deg,#e4bc58,#c99b38);border-color:#f3d681;color:#191711;font-weight:700;box-shadow:0 0 13px #d5ac4320}
 #coverageView .cf-category-manager-item{padding:12px 8px;border:1px solid #39494e;border-left:3px solid #62d4df;border-radius:8px;background:linear-gradient(120deg,#203039,#1c2028)}
 #coverageView .cf-category-manager-item>strong{color:#f5e5b4}
 #coverageView .cf-category-manager-actions [data-cf-action="insert-category"]{background:#3b3422;border-color:#8c7841;color:#ffe1a0}
 #coverageView .cf-category-manager-actions [data-cf-action="add-rider"]{background:#183e46;border-color:#43858e;color:#9beef3}
 #coverageView .cf-category-manager-actions [data-cf-action="delete-category"]{color:#efb2a8}
 #coverageView .cf-category-manager button:hover:not(:disabled){filter:brightness(1.13)}
 #coverageView .cf-category-manager button:focus-visible{outline:2px solid #9beef3;outline-offset:2px}
}
#coverageView .cf-grid{min-width:var(--cf-grid-width,1120px)}
#coverageView .cf-column-actions{display:flex;gap:8px;flex-wrap:wrap}
#coverageView .cf-column-actions [data-cf-side="before"]{color:var(--cf-coral);border-color:var(--cf-before-line)}
#coverageView .cf-column-actions [data-cf-side="after"]{color:var(--cf-cyan);border-color:var(--cf-after-line)}
@media screen{
 #coverageView .cf-grid thead tr:nth-child(2)>.cf-before-header{border-color:var(--cf-before-line);background:#302124}
 #coverageView .cf-grid thead tr:nth-child(2)>.cf-after-header{border-color:var(--cf-after-line);background:#173039}
}
#coverageView .cf-header-tools{display:grid;justify-items:center;gap:3px}
#coverageView .cf-grid .cf-column-delete{font-size:10px;min-height:26px;padding:3px 9px;border:1px solid #8d655c;color:#efbaad;background:#35282a;border-radius:5px}
#coverageView .cf-grid .cf-column-delete:disabled{opacity:.4;cursor:not-allowed}
#coverageView .cf-fixed-column{font-size:10px;color:var(--crm-muted);font-weight:400;line-height:26px}
@media(max-width:700px){#coverageView .cf-grid .cf-column-delete{min-height:34px;padding:5px 10px}}
/* Readable comparison controls; view mode never changes stored values. */
#coverageView{width:100%;max-width:none}
#coverageView .cf-main{padding:18px}
#coverageView .cf-grid,#coverageView .cf-grid input{font-size:15px;line-height:1.6}
#coverageView .cf-grid input{min-height:42px;padding:8px 4px}
#coverageView .cf-grid .cf-header-edit,#coverageView .cf-category-content strong{font-size:14px}
#coverageView.cf-wide .cf-layout{grid-template-columns:minmax(0,1fr)}
#coverageView.cf-wide .cf-folders,#coverageView.cf-wide .cf-sheet-overview{display:none}
#coverageView .cf-comparison{border:1px solid #52646c;border-radius:12px;background:linear-gradient(125deg,#1c2932,#20232b);padding:20px;margin:18px 0 24px}
#coverageView .cf-compare-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;flex-wrap:wrap}
#coverageView .cf-compare-heading h3{margin:0;font-size:20px;color:#f4d47d}
#coverageView .cf-compare-heading p,#coverageView .cf-compare-help,#coverageView .cf-compare-audit{font-size:13px;line-height:1.7;color:#b9c4ca}
#coverageView .cf-comparison label{display:grid;gap:8px;font-size:14px;font-weight:600}
#coverageView .cf-comparison select{width:100%;min-height:44px;max-width:100%;background:#121b22;color:#f3eee2;border:1px solid #58717e;border-radius:7px;padding:10px;font:inherit}
#coverageView .cf-comparison select:focus{outline:2px solid #dabe6b;outline-offset:1px}
#coverageView .cf-comparison input{min-height:44px;width:100%;font-size:16px;text-align:right;background:#111a21!important}
#coverageView .cf-compare-basis,#coverageView .cf-compare-optionals{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin-top:18px}
#coverageView .cf-compare-optionals>div{background:#15212a;border:1px solid #3f5662;border-radius:9px;padding:14px;display:grid;gap:14px;align-content:start}
#coverageView .cf-comparison [hidden]{display:none!important}
#coverageView .cf-compare-values{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-top:20px}
#coverageView .cf-compare-values>div{border:1px solid #4c636e;background:#111b24;border-radius:9px;padding:16px;overflow-wrap:anywhere}
#coverageView .cf-compare-values span,#coverageView .cf-compare-values small{display:block;font-size:13px;color:#bdc8cc;line-height:1.5}
#coverageView .cf-compare-values strong{display:block;font-size:24px;margin:8px 0;color:#faf5e9;font-variant-numeric:tabular-nums}
#coverageView .cf-compare-values .cf-compare-saving{background:#1e342f;border-color:#598772}
#coverageView .cf-compare-saving strong{color:#b1efcb}
#coverageView .cf-compare-formula{font-size:14px;line-height:1.7;color:#ead99e;overflow-wrap:anywhere}
#coverageView .cf-compare-pending{margin-top:18px;padding:16px;border:1px dashed #637580;border-radius:9px;color:#eee5c9;font-size:14px;line-height:1.6}
#coverageView .cf-compare-pending p{margin-bottom:0;color:#bdc8cc}
@media(max-width:700px){#coverageView .cf-comparison{padding:14px}#coverageView .cf-compare-basis,#coverageView .cf-compare-optionals,#coverageView .cf-compare-values{grid-template-columns:1fr}#coverageView .cf-compare-heading>label{width:100%}#coverageView .cf-main{padding:12px}#coverageView .cf-grid,#coverageView .cf-grid input{font-size:16px}}
#coverageView .cf-delta-controls{border:1px solid #53616c;background:#17232b;padding:14px;border-radius:9px;margin:18px 0;display:flex;gap:14px;align-items:center;flex-wrap:wrap}
#coverageView .cf-delta-controls label{font-size:14px;display:flex;gap:8px;align-items:center;flex-wrap:wrap}
#coverageView .cf-delta-controls select{background:#101a21;color:#eee6d6;padding:9px;border:1px solid #607885;border-radius:6px;font:inherit}
#coverageView .cf-delta-controls input[type=checkbox]{width:20px;height:20px;min-height:20px;accent-color:#d7b55f}
#coverageView .cf-delta-controls p{width:100%;margin:0;font-size:13px;line-height:1.7;color:#b9c4ca}
#coverageView .cf-delta-controls [hidden]{display:none!important}
#coverageView .cf-grid output{display:block;font-size:15px;padding:8px 3px;font-variant-numeric:tabular-nums}
#coverageView .cf-delta-pending{font-size:13px;color:#e6c994;display:block;padding:8px 3px}
#coverageView .cf-legacy-deltas{font-size:13px;margin:12px 0;color:var(--crm-muted)}
#coverageView .cf-rider-manager{margin-top:12px;border-top:1px solid #3d515a;padding-top:7px}
#coverageView .cf-category-manager .cf-rider-manager summary{font-size:12px;color:#b6d4dc;font-weight:400;text-shadow:none}
#coverageView .cf-rider-manager ul{list-style:none;margin:8px 0 0;padding:0;display:grid;gap:7px;max-height:280px;overflow:auto;overscroll-behavior:contain}
#coverageView .cf-rider-manager li{display:flex;align-items:center;justify-content:space-between;gap:6px;font-size:12px;color:#e7e4dc;line-height:1.5}
#coverageView .cf-rider-manager li span{min-width:0;overflow-wrap:anywhere}
#coverageView .cf-rider-manager [data-cf-action="delete-rider"]{flex:none;color:#efb2a8;font-size:11px;min-height:30px;padding:4px 6px;border-color:#74554e;background:#2d2425}
/* Prior-contract payments stay with the before-policy inputs. */
.cf-before-payments{display:grid;grid-template-columns:1fr 1fr;gap:14px;padding-top:18px;margin-top:16px;border-top:1px solid #b9856438}.cf-before-payments label{min-width:0}.cf-before-payments small{display:block;color:#cbbeb3;font-size:12px;line-height:1.6;margin-top:7px;font-weight:400}.cf-before-payments input{width:100%;box-sizing:border-box}
@media(max-width:700px){.cf-before-payments{grid-template-columns:1fr;gap:16px}.cf-before-payments small{font-size:13px}}
@media print{.cf-before-payments small{color:#333}.cf-before-payments{break-inside:avoid}}
.cf-side>.cf-before-payments{margin:16px 12px 0}.cf-side>.cf-compare-help{margin:12px;line-height:1.7}
@media(max-width:1100px){.cf-before-payments{grid-template-columns:1fr}}
.cf-delta-cell .cf-plus{color:#75e69a!important}.cf-delta-cell .cf-minus{color:#ff8585!important}

.cf-comparison[hidden]{display:none!important}
.cf-card-comparison{margin:18px 12px 12px;padding:18px;border:1px solid #48c8bd55;border-radius:12px;background:linear-gradient(135deg,#173b3e88,#10262b66);display:flex;flex-direction:column;gap:9px}.cf-card-caption{color:#83ddd2;font-size:14px;font-weight:700}.cf-card-amount{font-size:30px;line-height:1.25;font-variant-numeric:tabular-nums}.cf-card-comparison small,.cf-total-basis{font-size:12px;line-height:1.6;color:#b9c9c9;font-weight:400;display:block}.cf-card-comparison p{margin:0;line-height:1.7}.cf-card-comparison button{align-self:flex-start}.cf-total-basis{margin-top:6px}@media(max-width:700px){.cf-card-amount{font-size:27px}.cf-card-comparison small{font-size:13px}}
.cf-category-filter{min-width:200px;max-width:640px;flex:1;border:1px solid #a88c4655;border-radius:10px;background:#191e26}.cf-category-filter summary{padding:10px 12px;color:#e8ca80;cursor:pointer;font-weight:600}.cf-filter-body{padding:0 12px 12px}.cf-filter-actions,.cf-filter-options{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:10px}.cf-filter-options label{display:flex;align-items:center;gap:6px;padding:7px 10px;background:#26303a;border-radius:7px;cursor:pointer;overflow-wrap:anywhere}.cf-filter-options input{width:16px;height:16px;accent-color:#dfb954}.cf-filter-body small{display:block;color:#b8bdc7;font-size:12px;line-height:1.6}.cf-category-toolbar{align-items:flex-start;flex-wrap:wrap}@media(max-width:700px){.cf-category-filter{flex-basis:100%;order:3}.cf-filter-options label{min-height:40px}}
@media(max-width:1100px){#coverageView .cf-summary-grid{grid-template-columns:minmax(0,1fr)}}
.cf-card-amount{overflow-wrap:anywhere}
#coverageView .cf-filter-options{gap:8px;align-items:flex-start}#coverageView .cf-filter-options label{margin:0;padding:8px 10px;min-height:40px;line-height:1.4}#coverageView .cf-filter-options input{margin:0;flex:0 0 16px}
#coverageView .cf-category-toolbar{align-items:flex-start;flex-wrap:wrap}@media(max-width:1100px){#coverageView .cf-category-filter{flex-basis:100%;order:3;max-width:none}}
.cf-products{padding:12px}.cf-products-heading,.cf-product-title{display:flex;justify-content:space-between;align-items:center;gap:10px}.cf-product-help,.cf-products>small,.cf-product-item>small{display:block;font-size:12px;color:#bac4c8;line-height:1.6;margin:10px 0}.cf-product-item{border:1px solid #71939444;border-radius:10px;padding:12px;margin:12px 0;background:#0e141a55}.cf-product-fields{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px;margin-top:12px}#coverageView .cf-product-fields label{margin:0;min-width:0}#coverageView .cf-product-fields input,#coverageView .cf-product-fields select{width:100%;box-sizing:border-box;margin-top:6px}.cf-product-fields output{display:block;margin-top:6px;min-height:40px;padding:10px;background:#152b2e;border-radius:8px;color:#83dcca;font-weight:700;font-variant-numeric:tabular-nums}.cf-product-sums{padding:12px;border:1px solid #bba05255;border-radius:10px;display:flex;flex-wrap:wrap;gap:10px}.cf-product-sums small{flex-basis:100%;font-size:12px;line-height:1.6;color:#bdc4ca}.cf-product-sums strong{color:#efd28b}.cf-legacy-products{margin-top:12px;font-size:12px;color:#b7bfc9}.cf-legacy-products summary{cursor:pointer}.cf-product-title button{font-size:12px}@media(max-width:700px){.cf-product-fields{grid-template-columns:minmax(0,1fr)}.cf-product-help,.cf-products>small,.cf-product-item>small{font-size:13px}}
#coverageView .cf-trash-button{color:#b42318}
#coverageView .cf-trash-status:empty{display:none}
#coverageView .cf-product-compact-label{margin:14px 0 6px;font-size:12px;font-weight:600;color:#d6dde5}
#coverageView .cf-product-compact{display:grid;grid-template-columns:minmax(0,1fr);align-content:start;gap:0;min-width:0;min-height:50px;max-height:120px;box-sizing:border-box;margin:0 0 8px;padding:8px 10px;border:1px solid #48515d;border-radius:8px;background:#090d12;overflow:auto;overscroll-behavior-x:contain}
#coverageView .cf-product-compact .cf-muted{margin:0;color:#aab4bf}
#coverageView .cf-product-line{display:flex;align-items:baseline;gap:8px;width:max-content;min-width:100%;white-space:nowrap;padding:8px 0;border-bottom:1px solid #48515d;font-size:12px;line-height:1.5}
#coverageView .cf-product-line:last-child{border-bottom:0}
#coverageView .cf-product-manual{border-top:1px solid #48515d;padding-top:8px;color:#d6dde5;white-space:pre-wrap;overflow-wrap:anywhere;font-size:12px;line-height:1.5}
#coverageView .cf-product-manual p{margin:4px 0 0}
#coverageView .cf-product-line strong,#coverageView .cf-product-line span{display:inline}
#coverageView .cf-product-save{margin:10px 0 4px;min-width:100px}
#coverageView .cf-product-save-help{display:block;color:#b9c4ca;line-height:1.5;margin-bottom:10px}
#coverageView .cf-product-editor>summary{cursor:pointer;font-size:12px;padding:6px 0;font-weight:600}
#coverageView .cf-product-editor:not([open])>.cf-product-list,#coverageView .cf-product-editor:not([open])>.cf-product-help{display:none}
@media print{.cf-product-editor{display:none!important}.cf-product-line{border-bottom:1px solid #ccc;padding:4px;break-inside:avoid}.cf-product-line strong,.cf-product-line span{display:block}}
#coverageView .cf-workspace-head [data-cf-action="delete-folder"]{margin-left:10px;padding:6px 10px;border:1px solid #b76d6966;border-radius:7px;background:#4b252544;color:#ffb3aa;min-height:34px}
#coverageView .cf-trash-list small{color:#b4bdc9}
#coverageView .cf-trash-list button{background:#20312f;color:#b7eee0;border:1px solid #5c918466;border-radius:8px;padding:9px 12px;min-height:40px}
