#insurance-screen .insurance-add-panel[hidden]{display:none}
#insurance-screen [data-add-insurance][hidden]{display:none}
#insurance-policy-screen .insurance-policy-saved[hidden]{display:none}
#insurance-screen .insurance-add-panel{display:flex;flex-wrap:wrap;align-items:end;gap:12px;padding:18px;margin-bottom:18px;background:#fff;border:1px solid #cfe3d5;border-radius:14px}
.insurance-add-panel label{display:grid;gap:7px;flex:1 1 280px;font-weight:700;font-size:13px}
.insurance-add-panel select{width:100%;padding:11px;border:1px solid #cfe3d5;border-radius:8px;background:#fff;font:inherit}
.insurance-add-panel button{padding:11px 14px;border:1px solid #cfe3d5;border-radius:8px;background:#f0f8f3;color:#164b2c;cursor:pointer}
.insurance-add-panel small{flex-basis:100%;color:#687d70}
.insurance-summary-strip{display:flex;flex-wrap:wrap;gap:12px 26px;padding:14px 18px;border:1px solid #dce8df;border-radius:12px;background:#fff;font-size:13px;color:#61766a}
.insurance-summary-strip b{color:#173b28;margin-right:3px}
#insurance-screen [data-insurance-status]{color:#61766a;font-size:13px;line-height:1.5;margin:14px 0}
.insurance-saved-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;padding:0 20px 20px}
.insurance-saved-card{min-width:0;border:1px solid #dce8df;border-radius:12px;background:#fff;padding:17px}
.insurance-saved-card header{position:static;display:flex;justify-content:flex-start;align-items:center;gap:12px;margin:0;padding:0;border:0;background:none;text-align:left}
.insurance-saved-card header>i{display:grid;place-items:center;width:38px;height:38px;border-radius:10px;background:#edf7f0;color:#177a3c;flex-shrink:0}
.insurance-saved-card svg{width:22px;height:22px}
.insurance-saved-card header>div{min-width:0;overflow-wrap:anywhere}
.insurance-saved-card h2{font-size:16px;line-height:1.4;margin:0;color:#173b28}
.insurance-saved-card header p{margin:3px 0 0;font-size:12px;color:#62796d}
.insurance-renewal-badge{display:inline-block;margin-top:14px;padding:5px 9px;border-radius:6px;background:#edf5f0;color:#355d45;font-size:11px;font-weight:700}
.insurance-renewal-badge.overdue{background:#fff0ed;color:#a02c23}
.insurance-renewal-badge.soon{background:#fff6dc;color:#806014}
.insurance-renewal-badge.missing{background:#f2f3f2;color:#66776c}
.insurance-saved-card dl{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:15px 0}
.insurance-saved-card dt{font-size:10px;letter-spacing:.04em;text-transform:uppercase;color:#6c8174}
.insurance-saved-card dd{font-size:13px;margin:5px 0 0;overflow-wrap:anywhere}
.insurance-saved-card footer{display:flex;justify-content:space-between;flex-wrap:wrap;gap:8px;padding-top:12px;border-top:1px solid #e3ece6}
.insurance-saved-card footer button{padding:8px 10px;border:1px solid #cfe3d5;border-radius:7px;background:#fff;color:#176c35;font:700 12px 'DM Sans',sans-serif;cursor:pointer}
.insurance-saved-card footer button:last-child{background:#edf7f0}
#insurance-screen button:focus-visible,#insurance-screen select:focus-visible{outline:2px solid #176c35;outline-offset:3px}
#insurance-screen button:disabled{opacity:.55;cursor:not-allowed}
.insurance-archive-tab{margin:0 0 16px;padding:10px 14px;border:1px solid #cfe3d5;border-radius:8px;background:#fff;color:#176c35;cursor:pointer}
.insurance-saved-card footer button[data-archive-id]{background:#f5f6f5;color:#586b60}
@media(max-width:650px){.insurance-saved-grid{grid-template-columns:1fr;padding:0 12px 12px}.insurance-saved-card{padding:14px}.insurance-summary-strip{gap:9px 18px}.insurance-add-panel button{flex:1 1 auto}}

/* Compact the saved-policy overview only; leave policy editors and other hubs unchanged. */
#insurance-screen .insurance-categories{gap:12px}
#insurance-screen .insurance-category-card{border-radius:12px!important;box-shadow:0 4px 12px rgba(30,73,49,.035)}
#insurance-screen .insurance-category-card>summary{grid-template-columns:36px minmax(0,1fr) auto 18px!important;min-height:0!important;gap:12px!important;padding:12px 16px!important}
#insurance-screen .insurance-category-icon{width:36px;height:36px;border-radius:10px}
#insurance-screen .insurance-category-icon svg{width:22px;height:22px}
#insurance-screen .insurance-category-copy b{font-size:17px!important;line-height:1.2!important}
#insurance-screen .insurance-category-copy small{margin-top:3px;font-size:12px}
#insurance-screen .insurance-category-count{padding:6px 10px}
#insurance-screen .insurance-saved-grid{gap:12px;padding:0 14px 14px;align-items:start}
#insurance-screen .insurance-saved-card{padding:12px;border-radius:10px;min-height:0}
#insurance-screen .insurance-saved-card header{height:auto;min-height:0;gap:10px;padding:0;margin:0}
#insurance-screen .insurance-saved-card header>i{width:32px;height:32px;border-radius:8px}
#insurance-screen .insurance-saved-card svg{width:19px;height:19px}
#insurance-screen .insurance-saved-card h2{font-size:15px;line-height:1.3;margin:0}
#insurance-screen .insurance-saved-card header p{margin:2px 0 0}
#insurance-screen .insurance-renewal-badge{margin-top:8px;padding:4px 7px}
#insurance-screen .insurance-saved-card dl{gap:10px;margin:9px 0}
#insurance-screen .insurance-saved-card dd{margin-top:3px}
#insurance-screen .insurance-saved-card footer{justify-content:flex-start;gap:6px;padding-top:8px;margin:0}
#insurance-screen .insurance-saved-card footer button{min-height:36px;padding:6px 9px}
@media(max-width:650px){
 #insurance-screen .insurance-category-card>summary{grid-template-columns:32px minmax(0,1fr) auto!important;gap:9px!important;padding:10px 12px!important}
 #insurance-screen .insurance-category-icon{width:32px;height:32px}
 #insurance-screen .insurance-category-copy b{font-size:16px!important}
 #insurance-screen .insurance-saved-grid{padding:0 10px 10px;gap:10px}
 #insurance-screen .insurance-saved-card footer button{min-height:44px}
}
