@font-face{font-family:StarlightSans;src:url("assets/dm-sans-400.ttf") format("truetype");font-style:normal;font-weight:400;font-display:swap}
@font-face{font-family:StarlightSans;src:url("assets/dm-sans-500.ttf") format("truetype");font-style:normal;font-weight:500;font-display:swap}
@font-face{font-family:StarlightSans;src:url("assets/dm-sans-600.ttf") format("truetype");font-style:normal;font-weight:600;font-display:swap}
@font-face{font-family:StarlightSans;src:url("assets/dm-sans-700.ttf") format("truetype");font-style:normal;font-weight:700;font-display:swap}
/* Visual refresh only: typography, color, photographic sky and restrained motion.
   Existing dimensions, component structure and record workflows are retained. */
html{--f-ui:StarlightSans,"Segoe UI",system-ui,sans-serif;--f-display:StarlightSans,"Segoe UI",system-ui,sans-serif}
html:not([data-theme=ivory]):not([data-theme=graphite]){--bg:#0b1728;--rail:#071323;--surface:#102238;--surface-2:#162c43;--line:#20364d;--line-2:#32475d;--ink:#f1f5fb;--ink-2:#bccbdc;--ink-3:#91a5be;--accent:#e0c58d;--accent-ink:#142033;--s1:#d5b77d;--s2:#79b3e5;--s3:#66c8b1;--s4:#b09ad8;--s5:#e39e83;--grid:#24394f;--bar-muted:#344d69;--card-title:#f1f5fb;--description:#b2c3d6;--kpi-label:#ddcda8;--table-label:#c0d0e2;--list-label:#c5d3e3;--axis:#9aafc6}
html[data-theme=graphite]{--bg:#111820;--rail:#0b1119;--surface:#18222e;--surface-2:#202d3c;--line:#2b3948;--line-2:#3a4a5b;--ink-2:#c4cdd8;--ink-3:#9caabd;--accent:#e4cfaa}
html body{font-family:var(--f-ui)!important;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;font-feature-settings:"ss01","cv11";font-synthesis:none}
html :is(h1,h2,h3,h4,.apb-big,.apb-mid,.fin-kpi strong,.rd-kpi strong){font-family:var(--f-display)!important;letter-spacing:-.025em}
html :is(input,textarea,select,button){font-family:var(--f-ui)!important}
html :is(.apb-big,.apb-mid,.fin-kpi strong,td,.rd-kpi strong){font-variant-numeric:tabular-nums lining-nums}
html:not([data-theme=ivory]) :is(.apb-big,.apb-mid){color:#f2dfb5!important;-webkit-text-fill-color:#f2dfb5!important}
html:not([data-theme=ivory]) body.ui-rail aside{background:linear-gradient(180deg,#102137,#081421 65%)!important}
html:not([data-theme=ivory]) .topbar{background:linear-gradient(90deg,#112238f5,#0c192bf5)!important}
html:not([data-theme=ivory]) :is(.panel,.sc-card,.fin-ledger,.dc-card,.dc-wrap,.rewrite-card,.client-card,.apb,.fin-kpi,.rd-kpis,.auth-card){background:linear-gradient(145deg,var(--surface-2),var(--surface) 65%)!important;border-color:var(--line-2)!important}
html:not([data-theme=ivory]) body.ui-rail .nav.active{background:linear-gradient(100deg,#b5d5f51b,#92bee508)!important;box-shadow:inset 2px 0 var(--accent)!important}
html:not([data-theme=ivory]) .ui-ico{color:#9cafc5!important}
html:not([data-theme=ivory]) .nav.active .ui-ico{color:#f0dab0!important}
html:not([data-theme=ivory]) :is(.secondary,.textbtn,.book-actions button){background:linear-gradient(145deg,#223c54,#132a40)!important;color:#e4edf8!important;border-color:#476078!important}
html:not([data-theme=ivory]) .primary{background:linear-gradient(125deg,#ecdbb1,#d2b782)!important;color:#132034!important;border-color:#e8d3a7!important}
html:not([data-theme=ivory]) :is(input,select,textarea){background:#0c1b2c!important;border-color:#3c536b!important;color:#f1f5fb!important}
html:not([data-theme=ivory]) :is(input,textarea)::placeholder{color:#96abc2!important}
html:not([data-theme=ivory]) :is(.section,.rn-file-hero,.client-visible-info,.client-banner-summary){background:var(--surface)!important}
html:not([data-theme=ivory]) table tbody tr:hover{background:#adcdec0a}
html:not([data-theme=ivory]) :is(.apb-label,.eyebrow,.rd-kpi-label){color:#e2cda5!important}
/* Detailed photographic backdrop stays in the existing banner. */
html main>.heading.starlight-banner,html .rewrite-view main>.heading.starlight-banner{background:linear-gradient(90deg,#071523b8,#0b17285c 58%,#0b17287a),url("assets/starlight-sky.png") center 44%/cover!important;animation:crm-sky-drift 42s ease-in-out infinite alternate}
html main>.heading.starlight-banner canvas.sky{opacity:.24;mix-blend-mode:screen}
html .banner-copy>h1{font-weight:600;text-shadow:0 2px 12px #020a16b3!important}
html .banner-copy>p{color:#e0e9f6!important;text-shadow:0 1px 6px #020a16}
html .rd-periods{background:#0615249c;border-color:#c4def03d}
html .rd-periods button[aria-pressed=true]{background:linear-gradient(135deg,#b4d5f02e,#7896b91c);color:#fff}
html #authScreen{background:radial-gradient(ellipse at 50% 0%,#33577345,transparent 66%),#0b1728!important}
html #authScreen .auth-card{background:linear-gradient(155deg,#17324beF,#102238fa 55%)!important;border-color:#718299!important;color:#f1f5fb!important}
html #authScreen .auth-card h1{color:#f1f5fb!important}
html #authScreen .auth-card p,html #authScreen .auth-links button,html #authScreen label{color:#c3d0e0!important}
html .starlight-logo,html .auth-card>img{filter:drop-shadow(0 0 10px #e1c89228) drop-shadow(0 2px 2px #0006)!important}
html :is(button,a,input,select,textarea){transition:background-color .18s ease,border-color .18s ease,color .18s ease,filter .18s ease}
html button:hover{filter:brightness(1.08)}
@keyframes crm-sky-drift{from{background-position:center,48% 42%}to{background-position:center,52% 48%}}
@media(prefers-reduced-motion:reduce){html main>.heading.starlight-banner{animation:none}html :is(button,a,input,select,textarea){transition:none}}
