:root{color-scheme:light}.theme-toggle{display:inline-flex;align-items:center;justify-content:center;flex:none;width:44px;height:44px;padding:10px;border:1px solid #89939c;border-radius:7px;background:#242a2f;color:#f3f5f7;cursor:pointer}.theme-toggle svg{flex:none}.theme-toggle:hover{background:#353e45}.theme-toggle:focus-visible{outline:3px solid #e2bf65;outline-offset:3px}.site-header,.admin-header{position:relative}.site-header>.theme-toggle,.admin-header>.theme-toggle{position:absolute;left:12px;top:50%;transform:translateY(-50%);z-index:2}.site-header .nav,.admin-header .shell{padding-left:44px}.theme-tools{display:flex;justify-content:flex-end;padding:10px 20px;background:#15191a}.admin-header .shell{gap:12px}
html[data-theme] :is(.btn,.pension-choice,.rent-tool .rent-choices label,.practice-card,.practice-row,.dossier-overview>a){transition-property:transform,box-shadow}
@media screen{
html[data-theme="dark"]{color-scheme:dark;--paper:#1b1f22;--line:#505b65;--muted:#b5bec6;--theme-bg:#111315;--theme-surface:#1b1f22;--theme-raised:#272d31;--theme-text:#eef1f4;--theme-muted:#b5bec6;--theme-border:#66717c;--theme-link:#f0cf83;--theme-success:#a0e2bd;--theme-error:#ffb8bd}
html[data-theme="dark"] body{background:var(--theme-bg);color:var(--theme-text)}
html[data-theme="dark"] :is(.admin-page,.portal-page,.library-page,.consult-page,.privacy-page,.cassation-search-page,.approach,.contact){background:var(--theme-bg);color:var(--theme-text)}
html[data-theme="dark"] :is(.admin-panel,.admin-login,.admin-metric,.portal-panel,.portal-login-wrap,.portal-login,.portal-login-copy,.portal-dialog,.record,.library-tools,.searchbox,.cassation-search-panel,.receipt-preview,.payment-stage,.pension-row,.pension-service,.document-meta span,.ql-toolbar,.ql-tooltip){background:var(--theme-surface);color:var(--theme-text);border-color:var(--theme-border)}
html[data-theme="dark"] :is(#articleEditor,#articlePreview){background:var(--theme-surface);color:var(--theme-text);border-color:var(--theme-border)}
html[data-theme="dark"] .library-page .records:not(.gazette-records){background:var(--theme-surface)}
html[data-theme="dark"] :is(.form,.page-button,.dossier-execution,.consult-terms,.collection-card,.cassation-collection){background:var(--theme-surface);color:var(--theme-text);border-color:var(--theme-border)}
html[data-theme="dark"] .cassation-result mark{background:#f2d885;color:#211b0c}
html[data-theme="dark"] :is(.practice-rail,.practice-card,.practice-row:hover,.practice-row:focus-within,.scope-item,.approach-title,.principle,.regulation-document-status){background:var(--theme-surface);color:var(--theme-text)}
html[data-theme="dark"] :is(main h1,main h2,main h3,main h4,.pension-row h3,.pension-steps [aria-current],.tab,.portal-tabs button,.inline-document-trigger,.secondary-inline-trigger){color:var(--theme-text)}
html[data-theme="dark"] :is(.eyebrow,.page-code,.section-kicker,.practice-row .number,.practice-card small,.legal-node small,.contact-row small,.record-meta,.source-link,.useful-menu a:after,.article-admin-status){color:var(--theme-link)}
html[data-theme="dark"] .practice-card>span{color:var(--theme-link)}
html[data-theme="dark"] .record .status{color:var(--theme-link)}
html[data-theme="dark"] .law-topic>span{color:var(--theme-link)}
html[data-theme="dark"] :is(.dossier-hero,.dossier-overview){background:var(--theme-surface);color:var(--theme-text);border-color:var(--theme-border)}
html[data-theme="dark"] :is(.dossier-overview>a>span,.review-pill,.dossier-badge,.dossier-nav a:hover){color:var(--theme-link);border-color:var(--theme-link)}
html[data-theme="dark"] :is(.submenu,.mobile-panel,.fallback-navigation){background:var(--theme-surface);color:var(--theme-text)}
html[data-theme="dark"] .submenu a{color:var(--theme-text)!important}
html[data-theme="dark"] :is(.submenu a:hover,.tab.active,.portal-tabs button.active,.admin-tabs button.active){background:var(--theme-raised);color:var(--theme-text);border-color:#d9bd75}
html[data-theme="dark"] :is(input,select,textarea,option){background-color:#181d21!important;color:var(--theme-text)!important;caret-color:var(--theme-text);border-color:var(--theme-border)}
html[data-theme="dark"] :is(input,textarea)::placeholder{color:#b5bec6;opacity:1}
html[data-theme="dark"] :is(input[type="radio"],input[type="checkbox"]){accent-color:#dabd79}
html[data-theme="dark"] :is(input,select,textarea):disabled,html[data-theme="dark"] #pension-form :is(input,select):disabled{background:#2b3238!important;color:#c9d0d6!important;opacity:1}
html[data-theme="dark"] :is(button,a):focus-visible{outline-color:#f1d080}
html[data-theme="dark"] :is(.admin-tabs button,.admin-table button,.password-tools button,.promo-controls button,.rent-promo-close){background:var(--theme-raised);color:var(--theme-text);border-color:var(--theme-border)}
html[data-theme="dark"] :is(.admin-table th,.rent-tool th){background:#303940;color:var(--theme-text)}
html[data-theme="dark"] :is(.admin-table td,.admin-table th,.rent-tool td,.rent-tool th){border-color:var(--theme-border)}
html[data-theme="dark"] .admin-metrics{background:var(--theme-border);border-color:var(--theme-border)}
html[data-theme="dark"] :is(.status-pill,.status-closed){background:#354049;color:#f0f3f5}html[data-theme="dark"] .status-new{background:#544721;color:#ffedb2}html[data-theme="dark"] .status-reviewing{background:#233f57;color:#c3e7ff}html[data-theme="dark"] .status-replied{background:#244a35;color:#bcf3cb}
html[data-theme="dark"] :is(.password-notice,.credential-result,.agency-route[data-status="review"],.agency-route[data-status="incomplete"]){background:#3a321e;color:#f6dfac;border-color:#d8bc79}html[data-theme="dark"] .password-notice p{color:#f6dfac}
html[data-theme="dark"] :is(.form-message,.agency-route[data-status="blocked"]){color:var(--theme-error)}html[data-theme="dark"] :is(#pension-error,#rent-error){color:var(--theme-error)}html[data-theme="dark"] .agency-route[data-status="blocked"]{background:#3a2025;border-color:#e29aa4}html[data-theme="dark"] .form-message.success{color:var(--theme-success)}
html[data-theme="dark"] :is(.analytics-note,.pension-disclaimer,.rent-promo small,.pension-breadcrumb,.viewer-note){color:var(--theme-muted)}
html[data-theme="dark"] :is(.analytics-calculator,.pension-estimate-card,.agency-route,.hypothetical-consent,.pension-notice){background:#1b3025;color:var(--theme-text);border-color:#789d87}
html[data-theme="dark"] :is(.analytics-kpis>div,.analytics-advice){background:var(--theme-surface);color:var(--theme-text);border-color:var(--theme-border)}
html[data-theme="dark"] #estimate-legacy{background:#1b3025;color:var(--theme-text);border-color:#789d87}
html[data-theme="dark"] .analytics-calculator.analytics-calculator-rent{background:#34252c;border-color:#c18c9c}
html[data-theme="dark"] :is(.analytics-kpis strong,.analytics-calculator dd){color:#a6e7c6}html[data-theme="dark"] .analytics-calculator-rent dd{color:#f4bdcc}html[data-theme="dark"] .analytics-bar{background:#83d0b3}
html[data-theme="dark"] :is(.pension-scenarios>section,.pension-service-art,.pension-choice-art){background:#2a4637;color:#c0ead1}
html[data-theme="dark"] :is(.pension-icon,.pension-steps [aria-current],.pension-service-art){color:#b1e4c7}
html[data-theme="dark"] .pension-page .pension-choice,html[data-theme="dark"] .rent-tool .rent-choices label{background:var(--theme-surface);color:var(--theme-text);border-color:var(--theme-border)}
html[data-theme="dark"] .pension-page .pension-choice:has(:checked){background:#2b503c;color:#fff;border-color:#a6d7b9}
html[data-theme="dark"] .rent-tool .rent-choices label:has(input:checked){background:#512d39;color:#fff;border-color:#e4aabb}
html[data-theme="dark"] .rent-tool .rent-choices label:hover{background:#3d2b32}
html[data-theme="dark"] .rent-tool .rent-choices img{background:#f1f5f2;border-radius:10px;padding:8px}
html[data-theme="dark"] .pension-page .pension-actions [type="reset"]{background:#2b3238!important;color:#e8edf1!important;border-color:#8baf97}
html[data-theme="dark"] :is(.rent-promo,.analytics-consent){background:var(--theme-surface);color:var(--theme-text)}html[data-theme="dark"] .rent-promo h2{color:var(--theme-link)}html[data-theme="dark"] .promo-controls .promo-dot{color:#adb8c1}html[data-theme="dark"] .promo-controls .promo-dot[aria-current]{color:#ffe19a}
html[data-theme="dark"] .pension-medical-crescent{background:#fff3f3!important}
html[data-theme="dark"] .ql-snow .ql-stroke{stroke:var(--theme-text)}html[data-theme="dark"] .ql-snow .ql-fill{fill:var(--theme-text)}html[data-theme="dark"] :is(.ql-picker,.ql-picker-label){color:var(--theme-text)}html[data-theme="dark"] .ql-picker-options{background:var(--theme-raised)}
}
@media print{.theme-toggle,.theme-tools{display:none!important}:root{color-scheme:light}}
