.theme-toggle{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:36px;padding:7px 11px;border:1px solid var(--line);border-radius:9px;background:var(--card);color:var(--ink);font-size:11px;font-weight:800;white-space:nowrap;cursor:pointer}.theme-toggle:hover{border-color:var(--teal);color:var(--teal)}.theme-toggle:focus-visible{outline:2px solid var(--gold);outline-offset:2px}.theme-toggle-icon{font-size:17px;line-height:1}.topbar-actions{display:flex;align-items:center;gap:16px}.theme-login-actions{display:flex;align-items:center;justify-content:center;gap:16px;margin-top:16px}.theme-login-actions .platform-language{margin:0}.theme-login-actions .theme-toggle{flex:none}@media(max-width:760px){.topbar-actions{margin-inline-start:auto;gap:9px}.topbar-actions .profile>span:first-child{display:none}.topbar-actions .theme-toggle-text{display:none}.topbar-actions .theme-toggle{width:36px;padding:6px}}
.language-toggle{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:36px;padding:7px 11px;border:1px solid var(--line);border-radius:9px;background:var(--card);color:var(--ink);font-size:11px;font-weight:800;white-space:nowrap}.language-toggle:hover{border-color:var(--teal);color:var(--teal)}.language-toggle:focus-visible{outline:2px solid var(--gold);outline-offset:2px}.language-toggle-icon{font-size:19px;line-height:1}@media(max-width:760px){.topbar-actions .language-toggle-text{display:none}.topbar-actions .language-toggle{width:36px;padding:6px}}
.theme-toggle,.language-toggle{width:40px;min-width:40px;height:40px;min-height:40px;padding:0;gap:0}
.theme-toggle-text,.language-toggle-text{display:none!important}
.topbar-actions{gap:10px}
.sidebar-language-icon-only{display:inline-flex!important;align-items:center;justify-content:center;width:40px!important;min-width:40px;height:40px;padding:0!important;gap:0!important}
html[data-theme="dark"]{color-scheme:dark;--ink:#e8f1ee;--muted:#9eafa9;--line:#344942;--bg:#101b19;--card:#1a2a26;--teal:#6bd2b4;--teal-dark:#49b69a;--teal-soft:#214438;--nav:#0a1e1d;--gold:#e1bc74;--shadow:0 10px 30px rgba(0,0,0,.2)}
html[data-theme="dark"] body,html[data-theme="dark"] .platform-body,html[data-theme="dark"] .platform-login-page,html[data-theme="dark"] .login-page{background:var(--bg);color:var(--ink)}
html[data-theme="dark"] .sidebar{background:#0a1e1d}html[data-theme="dark"] .platform-sidebar{background:linear-gradient(180deg,#0d2028,#09191f)}html[data-theme="dark"] .topbar,html[data-theme="dark"] .platform-topbar,html[data-theme="dark"] .login-panel,html[data-theme="dark"] .platform-login-panel{background:#15231f;color:var(--ink);border-color:var(--line)}
html[data-theme="dark"] .card,html[data-theme="dark"] .stat-card,html[data-theme="dark"] .form-card,html[data-theme="dark"] .gov-form-section,html[data-theme="dark"] .gov-form-footer,html[data-theme="dark"] .gov-summary,html[data-theme="dark"] .client-form-section,html[data-theme="dark"] .client-form-footer,html[data-theme="dark"] .plan-card,html[data-theme="dark"] .service-flow-step{background:var(--card);color:var(--ink);border-color:var(--line);box-shadow:var(--shadow)}
html[data-theme="dark"] .gov-form-section>header,html[data-theme="dark"] .client-form-section>header,html[data-theme="dark"] .integration-section-head,html[data-theme="dark"] .summary-heading,html[data-theme="dark"] .service-flow-heading,html[data-theme="dark"] .choice-search,html[data-theme="dark"] .filters,html[data-theme="dark"] th,html[data-theme="dark"] .moj-connection-grid{background:#20322c;color:var(--ink);border-color:var(--line)}
html[data-theme="dark"] :is(input,select,textarea,.search-box,.global-search,.choice-trigger,.choice-panel,.choice-option,.service-flow-list .service-entry,.btn.secondary,.service-flow-back,.service-pane-search,.service-workspace-ui,.service-picker-trigger,.service-picker-panel,.service-picker-option){background:#172723;color:var(--ink);border-color:#3a5147}html[data-theme="dark"] :is(input,textarea)::placeholder{color:#879c91}html[data-theme="dark"] :is(input,select,textarea):focus{border-color:var(--teal)}html[data-theme="dark"] :is(input,select,textarea):disabled{background:#1d2a27;color:#83958d}
html[data-theme="dark"] .choice-trigger:disabled{background:#1d2a27}html[data-theme="dark"] .choice-caption strong,html[data-theme="dark"] .gov-choice.has-value .choice-caption strong,html[data-theme="dark"] .service-flow-heading h3,html[data-theme="dark"] .service-flow-waiting strong,html[data-theme="dark"] .service-option-copy strong,html[data-theme="dark"] .service-picker-value strong,html[data-theme="dark"] .service-pane-title,html[data-theme="dark"] .service-workspace-intro h3{color:var(--ink)}html[data-theme="dark"] .service-flow-waiting,html[data-theme="dark"] .service-flow-empty,html[data-theme="dark"] .service-pane-empty,html[data-theme="dark"] .service-workspace-intro{background:#1b2b25;border-color:var(--line)}
html[data-theme="dark"] .service-flow-list .service-entry:hover,html[data-theme="dark"] .choice-option:hover,html[data-theme="dark"] .whatsapp-thread-item:hover{background:#254034}html[data-theme="dark"] .service-flow-list .service-entry.is-selected,html[data-theme="dark"] .choice-option.is-selected,html[data-theme="dark"] .whatsapp-thread-item.active{background:#234b38;border-color:#63b78a;color:#e9f4ec}html[data-theme="dark"] .service-entry-copy strong,html[data-theme="dark"] .choice-option-title{color:inherit}html[data-theme="dark"] .service-entry-fee{background:#254938;color:#aee2b6}
html[data-theme="dark"] .gov-field,html[data-theme="dark"] .form-grid label,html[data-theme="dark"] .client-fields-grid label,html[data-theme="dark"] .platform-login-panel label,html[data-theme="dark"] .login-panel label{color:var(--ink)}html[data-theme="dark"] .gov-steps,html[data-theme="dark"] .demo-box,html[data-theme="dark"] .attachment-drop,html[data-theme="dark"] .architecture-note code,html[data-theme="dark"] .whatsapp-settings-side code{background:#1b2b26;border-color:var(--line);color:var(--ink)}html[data-theme="dark"] .client-type-options label>span{background:#1b2b26;border-color:var(--line)}html[data-theme="dark"] .client-type-options input:checked+span{background:#214739;border-color:var(--teal)}
html[data-theme="dark"] .gov-summary dl>div,html[data-theme="dark"] td,html[data-theme="dark"] .subservice-list>div,html[data-theme="dark"] .whatsapp-thread-item{border-color:var(--line)}html[data-theme="dark"] .integration-test-card li{border-color:var(--line)}html[data-theme="dark"] .status,html[data-theme="dark"] .role-chip{background:#283d36;color:#d1e3d6}html[data-theme="dark"] .status.completed,html[data-theme="dark"] .status.paid{background:#204b31;color:#a9e1b5}html[data-theme="dark"] .status.in-review,html[data-theme="dark"] .status.submitted{background:#233d50;color:#b4d6eb}html[data-theme="dark"] .status.awaiting-client,html[data-theme="dark"] .status.unpaid{background:#4a3b25;color:#efd09b}
html[data-theme="dark"] .platform-login-panel form>p,html[data-theme="dark"] .login-panel p,html[data-theme="dark"] .gov-form-section header p,html[data-theme="dark"] .service-flow-heading p{color:var(--muted)}html[data-theme="dark"] .platform-login-panel,html[data-theme="dark"] .login-panel{box-shadow:none}html[data-theme="dark"] .platform-body{background:var(--bg)}html[data-theme="dark"] .plan-card.disabled{background:#182521}
html[data-theme="dark"] .whatsapp-chat,html[data-theme="dark"] .whatsapp-chat-head,html[data-theme="dark"] .whatsapp-compose,html[data-theme="dark"] .whatsapp-bubble{background:#1a2a26;border-color:var(--line)}html[data-theme="dark"] .whatsapp-chat-messages{background-color:#14231e;background-image:radial-gradient(#2b4739 .8px,transparent .8px)}html[data-theme="dark"] .whatsapp-bubble.outgoing{background:#254c37;border-color:#356448}html[data-theme="dark"] .whatsapp-send-form textarea{background:#172723;border-color:var(--line);color:var(--ink)}html[data-theme="dark"] .whatsapp-qr-visual{background:#fff;color:#17252f}
html[data-theme="dark"] .btn.primary{background:#167b67;border-color:#167b67;color:#fff}html[data-theme="dark"] .btn.primary:hover{background:#1b917a}html[data-theme="dark"] .theme-toggle{background:#22372f;border-color:#476254;color:#e7f3eb}html[data-theme="dark"] .theme-toggle:hover{border-color:#8acda9;color:#baf0cc}
html[data-theme="dark"] .language-toggle{background:#22372f;border-color:#476254;color:#e7f3eb}html[data-theme="dark"] .language-toggle:hover{border-color:#8acda9;color:#baf0cc}
html[data-theme="dark"] :is(.statement-modal,.statement-summary>div,.reconcile-footer,.subscription-popover,.service-workspace-count,.office-isolation-note>b){background:var(--card);border-color:var(--line);color:var(--ink)}html[data-theme="dark"] :is(.statement-options,.invoice-period,.invoice-footer,.integration-form-footer,.plan-prices,.plan-card>footer,.service-workspace-pane:first-child){background:#20322c;border-color:var(--line);color:var(--ink)}html[data-theme="dark"] .office-isolation-note{background:#1d392e;border-color:#3a6247}html[data-theme="dark"] .office-isolation-note p{color:#a5c3ab}html[data-theme="dark"] .reconcile-note{background:#3d3424;border-color:#6b5633;color:#f0d499}
html[data-theme="dark"] :is(.choice-index,.service-entry-number,.client-type-options b,.service-picker-chevron,.gov-help>span,.integration-reference-card>span,.office-admin-stats>div.inactive>span,.office-admin-stats>div.expiring>span){background:#284235;color:#c4dfc7;border-color:#42664b}html[data-theme="dark"] :is(.choice-option:hover,.choice-option:focus-visible,.service-picker-option:hover,.service-flow-list .service-entry:hover){background:#294735;color:#eef7ee}html[data-theme="dark"] .service-workspace-count{color:#bbdec0}
html[data-theme="dark"] .whatsapp-alert.warning,html[data-theme="dark"] .connection-badge.pending,html[data-theme="dark"] .email-config-state.pending{background:#493b26;border-color:#735a34;color:#f0d09a}html[data-theme="dark"] .whatsapp-alert.error,html[data-theme="dark"] .whatsapp-send-error,html[data-theme="dark"] .form-error{background:#482c2c;border-color:#704040;color:#ffc1c1}html[data-theme="dark"] .whatsapp-alert.success,html[data-theme="dark"] .toast{background:#214635;border-color:#38674b;color:#b2e2bf}
@media print{html[data-theme="dark"] .statement-modal,html[data-theme="dark"] .statement-modal *{background:#fff!important;color:#17252f!important;border-color:#dce2df!important;box-shadow:none!important}html[data-theme="dark"] .statement-modal-head,html[data-theme="dark"] .statement-summary .total{background:#123c3a!important;color:#fff!important}}
