:root{--ink:#102b36;--teal:#087e88;--mint:#4fd1bf;--brass:#dcb777;--paper:#f1f6f6}
body{background:var(--paper);color:var(--ink)}aside{z-index:50;width:270px;padding:30px 18px;background:linear-gradient(155deg,#102c36,#071d28 80%);border-right:1px solid #284953;box-shadow:8px 0 30px #0d263a12;transition:transform .22s;flex-wrap:nowrap}.main{margin-left:270px;transition:margin-left .22s}aside .brand{margin:0 4px 44px;display:block}aside .brand .starlight-logo{width:230px!important}.navlabel{color:#79a6af;letter-spacing:2px;font-size:10px}.nav{padding:16px 13px;gap:12px;border:1px solid transparent;border-radius:12px;margin-bottom:12px;min-height:76px;display:flex!important;width:100%!important}.nav b{display:grid;place-items:center;background:#ffffff0c;border:1px solid #ffffff12;border-radius:9px;width:36px;height:36px;flex-shrink:0;color:#70d4cf}.navigation-copy{display:block;flex:1}.navigation-copy strong{font-size:14px;font-weight:600;display:block}.navigation-copy small{font-size:10px;display:block;color:#91b1bc;margin-top:5px}.nav.active{background:linear-gradient(100deg,#14616a,#193c49);border:1px solid #33848b;box-shadow:inset 3px 0 var(--mint),0 8px 18px #00101930;color:#fff}.nav.active b{color:#f4d797;background:#ffffff0d}.count{background:#dcb777;color:#18343c}.private{border-color:#33515b;color:#8fadb8}.account{border-radius:12px;background:#ffffff06}.topbar{position:sticky;top:0;z-index:20;background:#f8fbfbeF;backdrop-filter:blur(14px);border-color:#cfdddd;padding:0 28px;gap:18px}.crumb{margin-right:auto;font-size:12px}#navigationToggle{display:flex;align-items:center;gap:9px;padding:9px 12px;border:1px solid #c6d8da;border-radius:8px;color:#18505a;background:#fff;white-space:nowrap;font-size:12px}#navigationToggle>span:first-child{font-size:18px}.navigation-hidden aside{transform:translateX(-100%)}.navigation-hidden .main{margin-left:0}#navigationShade{position:fixed;inset:0;background:#05182480;z-index:40}main{padding:28px 30px}.starlight-banner,.rewrite-view .starlight-banner{background:radial-gradient(ellipse at right top,#277b82,#123641 55%,#102b36);border:1px solid #367782;border-bottom:3px solid var(--brass);box-shadow:0 12px 30px #103d4920;border-radius:16px}.banner-brand .starlight-logo{width:290px!important}.starlight-banner:before,.starlight-banner:after{opacity:.25}.starlight-banner h1{color:#fff;text-shadow:none}.starlight-banner .eyebrow{color:#8bddcf}.starlight-banner .primary,.primary{background:linear-gradient(130deg,#147c83,#0e5863);color:white;box-shadow:0 4px 10px #15576620;border:1px solid #32848c}.starlight-banner .primary{background:#e2c185;color:#163844;border-color:#f5dca9;box-shadow:0 4px 0 #987c45}.stat{background:linear-gradient(120deg,#fff,#e8f3f2);border:1px solid #c7dbda;box-shadow:0 6px 18px #0d465414}.stat:before{background:#1b9b9d}.stat:last-child{background:linear-gradient(130deg,#176772,#103240);border-color:#39727d}.panel{border-color:#ccdcdf}.client-card,.client-card:nth-child(n){--accent:#218e92;--dark:#123e49;--tint:#edf6f5;border-color:#78afb1}.file-head{background:linear-gradient(125deg,#103743,#1e6570);border-left-color:#dcba78}.client-banner-summary{background:linear-gradient(105deg,#fff,#e8f3f3)}.client-banner-summary small{color:#23747b}.client-visible-info{background:#e6efef}.client-visible-info>section{border-color:#c9dcdd;border-top-color:#258e94}.client-visible-info>section:nth-child(3n+2){border-top-color:#bb955a}.client-visible-info>section:nth-child(3n+3){border-top-color:#44758e}.client-banner-details summary{background:#153d49;color:#dfc493}.client-banner-details .file-section:nth-of-type(n){border-top-color:#1d9398}.secondary{border-color:#c6d9dc;color:#23515c}.view-switch{background:#dceceb;border-color:#c2d7d6}.view-switch button[aria-pressed=true]{background:#185865}.badge.IUL{background:#def3f0;color:#136b66}.badge.Term{background:#e4edf8;color:#355d8f}.badge.Whole{background:#fbefda;color:#87632d}.badge.Annuity{background:#eee6f5;color:#744c95}.auth-card>img{background:#102c36}.rewrite-view main{background:radial-gradient(ellipse at top right,#204550,#0b222d 65%)}.rewrite-view .topbar{background:#102e39}.rewrite-view #navigationToggle{background:#1c414c;color:#c6eee8;border-color:#3b6571}.rewrite-chart,.rewrite-view .po-panel{background:#102f3b;border-color:#335e6b}.rewrite-card{background:#193d49}.rewrite-view #policyDialog,.rewrite-view #addPolicyDialog{background:#102b36}#clientDialog .drawerhead{background:linear-gradient(120deg,#fff,#e4f1ef);border-color:#a4cbc5}#clientBody{background:#e6efef}#clientBody .section{background:#fff;border-color:#cadfdb;border-top:3px solid #2a9692}#clientName{color:#163e49;text-shadow:none;-webkit-text-stroke:0}#clientDialog .section h3{color:#16434e}#clientMeta{color:#4a6c77}.sync-status{border-color:#cadedd}.drawerhead .eyebrow{color:#297c80}
@media(max-width:900px){aside{position:fixed;inset:0 auto 0 0;width:270px;display:flex!important;flex-direction:column;padding:28px 18px;overflow-y:auto}.main,.navigation-hidden .main{margin-left:0}.brand,.private,.account,.navlabel{display:block!important}aside .brand{flex-basis:auto!important}aside .account{display:flex!important;margin-top:10px}.private{margin-top:auto}.topbar{padding:0 16px}.crumb{display:none}.sync-status{margin-left:auto}main{padding:20px 16px}.banner-brand{display:block}.banner-brand .starlight-logo{width:240px!important}.navigation-copy small{display:block!important}.nav{font-size:14px!important}.rewrite-view aside{flex-wrap:nowrap}aside .brand .starlight-logo{width:225px!important}}
@media(prefers-reduced-motion:reduce){aside,.main{transition:none}}
/* Navy, champagne and coordinated section accents */
:root{--ink:#172b46;--teal:#253d60;--mint:#d5b477;--brass:#c9a467;--paper:#edf1f7}body{background:#edf1f7}aside{background:linear-gradient(150deg,#182b44,#0d1a2e);border-color:#354765}.nav.active{background:linear-gradient(100deg,#314665,#22344d);border-color:#677893;box-shadow:inset 3px 0 #d9b775,0 5px 15px #020d1f25}.nav b{color:#dac69c}.navlabel{color:#8fa1bb}.navigation-copy small{color:#a8b5c8}.nav[data-view=clients] b{color:#e7c783}.nav[data-view=policies] b{color:#a9bce8}.nav[data-view=reminders] b{color:#e7ab99}.topbar{background:#fbfcfe;border-color:#d4deec}#navigationToggle{color:#243c5b;border-color:#c4d0e1}.starlight-banner,.rewrite-view .starlight-banner{background:radial-gradient(ellipse at right top,#344b6b,#1d304d 55%,#13243b);border-color:#4b607e;border-bottom-color:#d5b477}.starlight-banner .eyebrow{color:#c8d5e7}.primary{background:linear-gradient(120deg,#354e72,#182d49);border-color:#516989}.stat{background:linear-gradient(120deg,#fff,#e7edf7);border-color:#cad5e5}.stat:before{background:#c9a467}.stat:nth-child(2){border-top:3px solid #7793c1}.stat:nth-child(3){border-top:3px solid #b79b75}.stat:last-child{background:linear-gradient(130deg,#3e5473,#142840);border-color:#607693}.view-switch{background:#e2e8f1}.view-switch button[aria-pressed=true]{background:#263e5f}.client-card,.client-card:nth-child(n){--accent:#c8a96e;--dark:#223c5b;--tint:#f2f5fa;border-color:#b6c5db}.file-head{background:linear-gradient(135deg,#182c46,#30496a);border-left-color:#c9a467}.client-banner-summary{background:#f7f9fd}.client-banner-summary small{color:#7e6336}.client-banner-details summary{background:#263c59;color:#e6cc96}.client-visible-info{background:#e9eef6}.client-visible-info>section{border-top-color:#c9a467}.client-visible-info>section:nth-child(2){border-top-color:#809dc6}.client-visible-info>section:nth-child(3){border-top-color:#b9988b}.client-banner-details .file-section:nth-of-type(n){border-top-color:#a3b5cf}.badge.IUL{background:#e6eaf7;color:#4c5c91}.badge.Term{background:#e5eff6;color:#436d88}.badge.Whole{background:#f8edd9;color:#8c6b37}.rewrite-view main{background:radial-gradient(ellipse at top right,#2b3e5c,#0f1c30 65%)}.rewrite-chart,.rewrite-view .po-panel{background:#17273d;border-color:#3a4d69}.rewrite-card{background:#20334d}.rewrite-view .topbar{background:#18283e}.rewrite-view #navigationToggle{background:#263c59;border-color:#526b8d;color:#e5edf8}#clientBody{background:#e8edf4}#clientBody .section{border-top-color:#c9a467}#clientDialog .drawerhead{background:linear-gradient(120deg,#fff,#e7edf7)}#clientName{color:#233b5a}#clientMeta{color:#546b88}.auth-card>img{background:#14283f}.secondary{color:#2d4668;border-color:#c7d3e4}
/* Compact lateral files; full notes and custom sections remain in the dropdown. */
.client-card{grid-template-columns:210px minmax(0,1fr)}.file-head{grid-row:1/3;padding:18px}.client-banner-summary{padding:13px 17px;gap:12px}.client-banner-summary strong{font-size:13px}.client-visible-info{grid-column:2;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0;padding:0 12px 12px}.client-visible-info>section{padding:8px 12px;background:transparent;border:0;border-left:1px solid #cbd5e4;border-radius:0}.client-visible-info>section:nth-child(n+4){display:none}.client-visible-info h4{font-size:10px;text-transform:uppercase;letter-spacing:.5px;margin-bottom:5px;color:#526783}.client-visible-info p{font-size:12px;line-height:1.4;max-height:34px;overflow:hidden;margin:2px 0}.client-visible-info .compact-policy:nth-child(n+2){display:none}.compact-policy{padding:0;border:0}.client-visible-info .file-tags{margin:3px 0}.client-visible-info .file-tags span{padding:2px 5px;font-size:10px}.client-banner-details summary{padding:8px 16px;font-size:12px}.file-head h3{font-size:18px}.client-banner-details{grid-row:3;grid-column:1/-1}@media(max-width:1050px){.client-card{grid-template-columns:180px minmax(0,1fr)}}@media(max-width:650px){.client-card{grid-template-columns:1fr}.file-head{grid-row:auto;flex-wrap:nowrap;justify-content:space-between;padding:12px 16px}.client-visible-info{grid-column:1;padding-bottom:10px}.client-banner-details{grid-row:auto}.client-visible-info>section{padding:7px}.client-banner-summary{padding:12px}.client-banner-details summary span{display:none}}
.client-visible-info .compact-policy:nth-child(2){display:block}.client-visible-info .compact-policy~.compact-policy{display:none}

/* Client file sheet: continuous rows with aligned columns. */
.file-grid{gap:0;padding:0 0 20px;border-radius:9px;overflow:hidden}.client-card,.client-card:nth-child(n){grid-template-columns:185px minmax(0,1fr);border:1px solid #c3cfe0;border-radius:0;box-shadow:none;border-top:0}.client-card:first-child{border-top:1px solid #c3cfe0;border-radius:8px 8px 0 0}.client-card:last-child{border-radius:0 0 8px 8px}.file-head{padding:12px 14px;gap:6px;justify-content:flex-start;align-content:center;border-left-width:3px}.file-head h3{font-size:16px;letter-spacing:-.2px;line-height:1.3}.file-head small{font-size:9px;letter-spacing:1px}.file-head button{font-size:11px;padding:4px 9px;margin-top:3px}.client-banner-summary{padding:10px 12px;gap:0;grid-template-columns:1fr 1fr 1fr;border-bottom:1px solid #dae2ed}.client-banner-summary>div{padding:0 12px;border-left-width:1px}.client-banner-summary small{font-size:9px;margin-bottom:4px}.client-banner-summary strong{font-size:12px;line-height:1.3}.client-banner-summary span{font-size:10px;margin-top:3px}.client-banner-summary .badge{font-size:10px;padding:2px 5px;margin-bottom:0}.client-visible-info{padding:7px 12px;min-height:0;grid-template-columns:1fr 1fr 1fr;background:#f2f5fa;align-items:start}.client-card:nth-child(even) .client-banner-summary{background:#eef2f8}.client-card:nth-child(even) .client-visible-info{background:#e9eef6}.client-visible-info>section{padding:0 12px}.client-visible-info h4{font-size:9px;line-height:1.2;margin-bottom:3px}.client-visible-info p{font-size:11px;line-height:1.3;max-height:29px;margin:1px 0}.compact-policy strong{font-size:11px}.client-visible-info .file-tags{margin:2px 0}.client-banner-details summary{padding:5px 14px;font-size:11px;background:#dfe7f2;color:#28405f;line-height:1.5;border-top:1px solid #c9d4e4}.client-banner-details summary span{font-size:10px;color:#637792}.client-banner-details[open] summary{background:#263c59;color:#e4c991}.client-banner-details[open] summary span{color:#c3d2e5}.client-banner-details .file-content{padding:14px}.client-banner-details .file-section{padding:11px}.client-banner-details .file-edit{padding:9px;font-size:12px}.client-card:hover .client-banner-summary{background:#e7edf7}@media(max-width:650px){.client-card,.client-card:nth-child(n){grid-template-columns:1fr}.file-head{padding:9px 12px;justify-content:space-between}.file-head small{display:none}.file-head button{margin:0}.client-banner-summary{padding:9px 5px}.client-banner-summary>div{padding:0 8px}.client-visible-info{padding:7px 5px}.client-visible-info>section{padding:0 8px}.client-banner-details summary{padding:5px 12px}}
#sidebarHide{color:#d9c396;font-size:12px;text-align:left;padding:8px 14px;margin:-24px 0 22px;border:1px solid #445773;border-radius:6px;background:#ffffff05}
.file-head{flex-direction:column;align-items:flex-start;justify-content:center;flex-wrap:nowrap}.file-head button{margin-top:5px}@media(max-width:650px){.file-head{flex-direction:row;align-items:center;justify-content:space-between}.file-head button{margin-top:0}}

/* Clearly defined client file boundaries */
.client-card,.client-card:nth-child(n){border:2px solid #536b8b;border-top:0}.client-card:first-child{border-top:2px solid #536b8b}.client-card+.client-card{border-top:2px solid #536b8b;margin-top:-2px}.file-head{border-right:2px solid #536b8b;border-left:4px solid #c9a467}.client-banner-summary{border-bottom:1px solid #91a5bf}.client-banner-summary>div+div{border-left:1px solid #91a5bf}.client-visible-info>section{border-left:1px solid #91a5bf}.client-banner-details{border-top:1px solid #7189a8}.client-banner-details summary{border-top:0;border-bottom:1px solid #91a5bf}.client-banner-details[open] .file-section{border:1px solid #8ca2bd;border-top:3px solid #a3b5cf}@media(max-width:650px){.file-head{border-right:0;border-bottom:2px solid #536b8b}}
.client-carrier{display:block;font-size:10px;line-height:1.4;color:#e1c998;margin-top:4px;overflow-wrap:anywhere}.client-amount{display:grid;gap:2px;font-size:11px;line-height:1.3;margin-bottom:3px}.client-amount strong{font-size:10px;color:#526783}.client-amount span{display:block}.client-visible-info .client-amount:nth-child(n+3){display:none}.client-visible-info .client-amount{margin:0}.client-visible-info .client-amount strong{display:none}
