/* AVTOMATIK GENERATSIYA — qo'lda tahrirlamang.
   Manba: tools/build_dark_css.py + tools/dark_theme_base.css */

html[data-theme="dark"] body{background:#162034;color:#e2e1db}
html[data-theme="dark"] a{color:#64a1ec}
html[data-theme="dark"] .side{background:#26251f;color:#c9c7bd}
html[data-theme="dark"] .brand{color:#ffffff}
html[data-theme="dark"] .brand-mark{background:#d97757;color:#ffffff}
html[data-theme="dark"] .brand small{color:#918f87}
html[data-theme="dark"] .nav-label{color:#a3a19a}
html[data-theme="dark"] .side a{color:#c9c7bd}
html[data-theme="dark"] .side a:hover{background:#34332b;color:#ffffff}
html[data-theme="dark"] .side a.on{background:#423c33;color:#ffffff;box-shadow:inset 3px 0 #d97757}
html[data-theme="dark"] .nav-group summary{color:#c9c7bd}
html[data-theme="dark"] .nav-group summary:hover{background:#34332b;color:#ffffff}
html[data-theme="dark"] .nav-group.has-active summary{color:#ffffff;background:#302f29}
html[data-theme="dark"] .nav-children{border-left:1px solid #47463e}
html[data-theme="dark"] .nav-children a.on{box-shadow:none;background:#423c33;color:#ffffff}
html[data-theme="dark"] .side-account{border-top:1px solid #3f3e34}
html[data-theme="dark"] .account-name{color:#ffffff}
html[data-theme="dark"] .account-role{color:#918f87}
html[data-theme="dark"] .logout-btn{background:transparent;border-color:#49483f;color:#c9c7bd}
html[data-theme="dark"] .logout-btn:hover{background:#34332b;color:#ffffff}
html[data-theme="dark"] .platform-banner{background:#7f1d22;color:#ffffff;box-shadow:0 2px 10px rgba(0,0,0,0.54)}
html[data-theme="dark"] .platform-banner.suspended{background:#5b1418}
html[data-theme="dark"] .platform-banner-tag{background:rgba(17,26,44,0.18)}
html[data-theme="dark"] .platform-banner-state{background:#321e30;color:#e16f75}
html[data-theme="dark"] .platform-banner-note{color:rgba(255,255,255,0.72)}
html[data-theme="dark"] .platform-banner a{color:#ffffff}
html[data-theme="dark"] .platform-banner-exit{border:1px solid rgba(255,255,255,.06);background:transparent;color:#ffffff}
html[data-theme="dark"] .platform-banner-exit:hover{background:rgba(17,26,44,0.14)}
html[data-theme="dark"] .card{background:#111a2c;border:1px solid #2c3c5a}
html[data-theme="dark"] th{color:#a5a49c;border-bottom:1px solid #2c3c5a}
html[data-theme="dark"] td{border-bottom:1px solid #2c3c5a}
html[data-theme="dark"] tr:last-child td{border-bottom:none}
html[data-theme="dark"] .btn{border:1px solid #2c3c5a;background:#111a2c;color:#e2e1db}
html[data-theme="dark"] .btn:hover{background:#1b2740}
html[data-theme="dark"] .btn.pri{background:#26251f;color:#ffffff;border-color:#26251f}
html[data-theme="dark"] .btn.pri:hover{background:#3f3e34}
html[data-theme="dark"] .metric{background:#111a2c;border:1px solid #2c3c5a}
html[data-theme="dark"] .metric .l{color:#a5a49c}
html[data-theme="dark"] .t-paid{background:#163535;color:#71e09f}
html[data-theme="dark"] .t-partial{background:#38352e;color:#ffc352}
html[data-theme="dark"] .t-issued{background:#1b2740;color:#b9b7b0}
html[data-theme="dark"] .t-void{background:#2e1e2d;color:#d77979}
html[data-theme="dark"] .red{color:#e96e67}
html[data-theme="dark"] .green{color:#71e09f}
html[data-theme="dark"] .muted{color:#a5a49c}
html[data-theme="dark"] .input{border:1px solid #2c3c5a;background:#111a2c}
html[data-theme="dark"] label{color:#b9b7b0}
html[data-theme="dark"] .help{color:#96948b}
html[data-theme="dark"] .msg{background:#163535;color:#71e09f;border:1px solid #286257}
html[data-theme="dark"] .err{background:#2f1e2d;color:#e56c6c;border-color:#583244}
html[data-theme="dark"] .att label{border:1px solid #2c3c5a;color:#e2e1db;background:#111a2c}
html[data-theme="dark"] .att input:checked+label{color:#ffffff;border-color:transparent}
html[data-theme="dark"] .att .p input:checked+label{background:#1a6b3c}
html[data-theme="dark"] .att .l input:checked+label{background:#8a5a00}
html[data-theme="dark"] .att .a input:checked+label{background:#b3261e}
html[data-theme="dark"] .att .s input:checked+label{background:#8a5a00}
html[data-theme="dark"] .att .v input:checked+label{background:#5c5a52}
html[data-theme="dark"] .att .c input:checked+label{background:#53657d}
html[data-theme="dark"] .bar{background:#1b2740}
html[data-theme="dark"] .bar span{background:#1a6b3c}
html[data-theme="dark"] .sub{color:#a5a49c}
html[data-theme="dark"] .tabs{border-bottom:1px solid #2c3c5a}
html[data-theme="dark"] .tabs button{color:#b9b7b0;border:0;border-bottom:2px solid transparent;background:transparent}
html[data-theme="dark"] .tabs button:hover{color:#e2e1db}
html[data-theme="dark"] .tabs button.active{color:#e2e1db;border-bottom-color:#e28b6f}
html[data-theme="dark"] .warn{background:#38352e;border:1px solid #f2da9e;color:#ffc352}
html[data-theme="dark"] .warn b{color:#ffbb52}
html[data-theme="dark"] .cal .h{color:#a5a49c}
html[data-theme="dark"] .cal label{border:1px solid #2c3c5a;background:#162034}
html[data-theme="dark"] .cal input:checked+label{background:#163535;border-color:#9dd0b3;color:#71e09f}
html[data-theme="dark"] .tab td,html[data-theme="dark"] .tab th{border:none}
html[data-theme="dark"] .c-present{background:#5dcaa5}
html[data-theme="dark"] .c-late{background:#fac775}
html[data-theme="dark"] .c-unexcused{background:#f09595}
html[data-theme="dark"] .c-sick{background:#fac775}
html[data-theme="dark"] .c-family{background:#c9c7bd}
html[data-theme="dark"] .c-vacation{background:#2b302d}
html[data-theme="dark"] .c-none{background:#1b2740;border:1px dashed #2c3c5a}
html[data-theme="dark"] .c-x{background:transparent}
html[data-theme="dark"] .legend{color:#a5a49c}
html[data-theme="dark"] .empty-state{color:#a5a49c}
html[data-theme="dark"] .empty-state b{color:#d1d0c7}
html[data-theme="dark"] .error-page{background:#111a2c;border:1px solid #2c3c5a}
html[data-theme="dark"] .error-page .error-code{color:#e28b6f}
html[data-theme="dark"] .modal-backdrop{background:rgba(2,6,16,0.7)}
html[data-theme="dark"] .modal{background:#111a2c;box-shadow:0 18px 60px rgba(0,0,0,0.55)}
html[data-theme="dark"] .modal p{color:#b9b7b0}
@media(max-width:760px){
html[data-theme="dark"] .mobile-bar{background:#26251f;color:#ffffff;box-shadow:0 2px 12px rgba(0,0,0,0.54)}
html[data-theme="dark"] .mobile-bar button{border:0;background:transparent;color:#ffffff}
html[data-theme="dark"] .side{box-shadow:12px 0 34px rgba(0,0,0,0.55)}
html[data-theme="dark"] .nav-shade{background:rgba(2,6,16,0.73)}
}
html[data-theme="dark"] *{scrollbar-color:#353275 transparent}
html[data-theme="dark"]{background:var(--canvas)}
html[data-theme="dark"] body{color:var(--text);background:var(--canvas)}
html[data-theme="dark"] a{color:var(--violet-700)}
html[data-theme="dark"] a:hover{color:var(--violet-600)}
html[data-theme="dark"] .layout>.main:only-child{background:transparent;border:0;box-shadow:none}
html[data-theme="dark"] .side{background:rgba(17,26,44,0.9);color:var(--muted);border:1px solid rgba(30,24,48,0.06);box-shadow:var(--shadow-sm)}
html[data-theme="dark"] .brand{color:var(--ink)}
html[data-theme="dark"] .brand-mark{background:linear-gradient(145deg,#8b6cf4,#6748dc);box-shadow:0 7px 18px rgba(108,78,216,0.28)}
html[data-theme="dark"] .brand small{color:#817d8c}
html[data-theme="dark"] .nav-label{color:#827d8d}
html[data-theme="dark"] .side a,html[data-theme="dark"] .nav-group summary{color:#a7a4ae}
html[data-theme="dark"] .side a:hover,html[data-theme="dark"] .nav-group summary:hover{background:#162034;color:var(--ink)}
html[data-theme="dark"] .side a.on,html[data-theme="dark"] .nav-children a.on{background:var(--violet-50);color:var(--violet-700);box-shadow:inset 0 0 0 1px var(--violet-100)}
html[data-theme="dark"] .nav-group.has-active summary{background:transparent;color:var(--ink)}
html[data-theme="dark"] .nav-group summary::after{color:#817990}
html[data-theme="dark"] .nav-icon{color:#8e8a98}
html[data-theme="dark"] .side a.on .nav-icon{color:var(--violet-600)}
html[data-theme="dark"] .nav-children{border-left:1px solid var(--line)}
html[data-theme="dark"] .side-account{border-top:1px solid var(--line)}
html[data-theme="dark"] .command-trigger{border:1px solid var(--line);background:#162034;color:#98949f}
html[data-theme="dark"] .command-trigger:hover{border-color:var(--violet-200);background:var(--violet-50);color:var(--violet-700)}
html[data-theme="dark"] kbd{border:1px solid #2c3c5a;background:#111a2c;color:#837d8c}
html[data-theme="dark"] .account-name{color:var(--ink)}
html[data-theme="dark"] .account-role{color:#827d8c}
html[data-theme="dark"] .logout-btn{border-color:var(--line);color:#9e9aa5;background:var(--surface-soft)}
html[data-theme="dark"] .logout-btn:hover{background:var(--danger-bg);border-color:#58324a;color:var(--danger)}
html[data-theme="dark"] .version-link{background:transparent!important;box-shadow:none!important;color:#837c8d!important}
html[data-theme="dark"] .main{background:rgba(17,26,44,0.82);border:1px solid rgba(30,24,48,0.055);box-shadow:var(--shadow-sm)}
html[data-theme="dark"] .data-freshness{color:#817b8e}
html[data-theme="dark"] .data-freshness::first-letter{color:var(--success)}
html[data-theme="dark"] .global-language select{border:1px solid var(--line);outline:0;background:#111a2c;color:var(--ink);box-shadow:0 1px 3px rgba(0,0,0,0.105)}
html[data-theme="dark"] .global-language select:hover{border-color:#353275;background:#111a2c}
html[data-theme="dark"] .global-language select:focus{border-color:var(--violet-300);box-shadow:0 0 0 3px rgba(124,92,231,0.09)}
html[data-theme="dark"] .help-tip{background:var(--violet-50);color:var(--violet-700)}
html[data-theme="dark"] h2{color:var(--ink)}
html[data-theme="dark"] h3{color:var(--ink)}
html[data-theme="dark"] .sub,html[data-theme="dark"] .muted{color:var(--muted)}
html[data-theme="dark"] .card,html[data-theme="dark"] .metric{background:var(--surface);border:1px solid var(--line);box-shadow:var(--shadow-sm)}
html[data-theme="dark"] .metric::before{background:var(--violet-500)}
html[data-theme="dark"] .metric .l{color:#8b8794}
html[data-theme="dark"] .metric .v{color:var(--ink)}
html[data-theme="dark"] .metric .v.green,html[data-theme="dark"] .green{color:var(--success)}
html[data-theme="dark"] .metric .v.red,html[data-theme="dark"] .red{color:var(--danger)}
html[data-theme="dark"] th{border-bottom:1px solid var(--line);color:#87838f;background:transparent}
html[data-theme="dark"] td{border-bottom:1px solid #22304a}
html[data-theme="dark"] tbody tr:hover{background:#111a2c}
html[data-theme="dark"] tr:last-child td{border-bottom:0}
html[data-theme="dark"] .btn{border:1px solid var(--line-strong);background:#111a2c;color:#b7b4c0;box-shadow:0 1px 2px rgba(0,0,0,0.075)}
html[data-theme="dark"] .btn:hover{background:#162034;border-color:#2c3c5a;color:var(--ink)}
html[data-theme="dark"] .btn.pri{color:#ffffff;border-color:var(--violet-600);background:linear-gradient(180deg,#8465ea,#6d4fda);box-shadow:0 5px 14px rgba(108,78,216,0.2)}
html[data-theme="dark"] .btn.pri:hover{background:linear-gradient(180deg,#7656df,#6041cb);color:#ffffff}
html[data-theme="dark"] .input{border:1px solid var(--line-strong);background:#111a2c;color:var(--text);outline:0}
html[data-theme="dark"] .input:hover{border-color:#2c3c5a}
html[data-theme="dark"] .input:focus{border-color:#9076eb;box-shadow:0 0 0 3px rgba(124,92,231,0.11)}
html[data-theme="dark"] label{color:#9e9aa5}
html[data-theme="dark"] .help{color:#827d8c}
html[data-theme="dark"] .t-paid{background:var(--success-bg);color:var(--success)}
html[data-theme="dark"] .t-partial{background:var(--warning-bg);color:var(--warning)}
html[data-theme="dark"] .t-issued{background:#1b2740;color:#a39faa}
html[data-theme="dark"] .t-void{background:var(--danger-bg);color:var(--danger)}
html[data-theme="dark"] .msg,html[data-theme="dark"] .warn{box-shadow:none}
html[data-theme="dark"] .msg{background:var(--success-bg);color:var(--success);border:1px solid #286261}
html[data-theme="dark"] .err{background:var(--danger-bg);color:var(--danger);border-color:#58324a}
html[data-theme="dark"] .warn{background:var(--warning-bg);color:var(--warning);border:1px solid #585844}
html[data-theme="dark"] .layout.no-side{background:none!important}
html[data-theme="dark"] .kind-chip span{border:1.5px solid var(--line);background:var(--card,#111a2c)}
html[data-theme="dark"] .kind-chip input:checked+span{border-color:var(--brand);background:var(--brand-soft,#162345);color:var(--brand)}
html[data-theme="dark"] .kind-chip input:focus-visible+span,html[data-theme="dark"] .kid-chip input:focus-visible+span{outline:2px solid var(--brand)}
html[data-theme="dark"] .kid-chip span{border:1.5px solid var(--line);background:var(--card,#111a2c)}
html[data-theme="dark"] .kid-chip span small{color:var(--muted)}
html[data-theme="dark"] .kid-chip input:checked+span{border-color:var(--success,#63ee96);background:var(--success-bg,#16353a)}
html[data-theme="dark"] .photo-pick span{border:2px dashed var(--brand);color:var(--brand)}
html[data-theme="dark"] .journal-timeline li{border-bottom:1px solid var(--line)}
html[data-theme="dark"] .journal-timeline li:last-child{border-bottom:0}
html[data-theme="dark"] .journal-timeline time{color:var(--muted)}
html[data-theme="dark"] .pay-cell{color:inherit}
html[data-theme="dark"] .pay-cell small{color:var(--muted,#7d7d8e)}
html[data-theme="dark"] a.pay-cell:hover .tag{outline:2px solid var(--brand-soft,#283d75)}
html[data-theme="dark"] .estimate-card{border:1px solid var(--violet-200,#303275)}
html[data-theme="dark"] .estimate-grid small{color:var(--muted,#7d7d8e)}
html[data-theme="dark"] .estimate-amount{color:var(--brand,#9a69e8)}
html[data-theme="dark"] .proof-image{background:var(--bg,#162034);border:1px solid var(--line,#2c3c5a)}
html[data-theme="dark"] .proof-pdf{color:var(--muted,#7d7d8e)}
html[data-theme="dark"] .msg.msg-warn{background:var(--warning-bg);color:var(--warning);border-color:#585844}
html[data-theme="dark"] .input:disabled,html[data-theme="dark"] .input[readonly]{background:var(--bg,#162034);color:var(--muted,#7d7d8e)}
html[data-theme="dark"] .tabs{border:1px solid var(--line);background:#162034}
html[data-theme="dark"] .tabs button{border:0;color:#98949f}
html[data-theme="dark"] .tabs button:hover{color:var(--ink);background:rgba(17,26,44,0.65)}
html[data-theme="dark"] .tabs button.active{color:var(--violet-700);background:#111a2c;border:0;box-shadow:0 1px 4px rgba(0,0,0,0.24)}
html[data-theme="dark"] .bar{background:#1b2740}
html[data-theme="dark"] .bar span{background:linear-gradient(90deg,var(--violet-600),#957af0)}
html[data-theme="dark"] .cal .h{color:#827e8c}
html[data-theme="dark"] .cal label{border-color:var(--line);background:#162034}
html[data-theme="dark"] .cal label:hover{border-color:var(--violet-200);background:var(--violet-50)}
html[data-theme="dark"] .cal input:checked+label{background:var(--violet-50);border-color:var(--violet-200);color:var(--violet-700)}
html[data-theme="dark"] .pager{color:var(--muted)}
html[data-theme="dark"] .pager-number,html[data-theme="dark"] .pager-arrow{border:1px solid var(--line);background:#111a2c;color:var(--text)}
html[data-theme="dark"] .pager-number:hover,html[data-theme="dark"] .pager-arrow:hover{border-color:var(--violet-200);background:var(--violet-50);color:var(--violet-700)}
html[data-theme="dark"] .pager-number.current{border-color:var(--violet-600);background:var(--violet-600);color:#ffffff}
html[data-theme="dark"] .clickable-row{outline:0}
html[data-theme="dark"] .clickable-row:hover{background:var(--violet-50)}
html[data-theme="dark"] .clickable-row:focus-visible{box-shadow:inset 0 0 0 2px var(--violet-500);background:var(--violet-50)}
html[data-theme="dark"] .empty-state{color:#827e8b}
html[data-theme="dark"] .empty-state b{color:var(--ink)}
html[data-theme="dark"] .insight-panel::after{background:radial-gradient(circle,rgba(124,92,231,0.182),transparent 68%)}
html[data-theme="dark"] .progress-head{color:var(--muted)}
html[data-theme="dark"] .section-title{color:var(--ink)}
html[data-theme="dark"] .eyebrow{color:#827a8f}
html[data-theme="dark"] .metric-icon.violet{color:var(--violet-700);background:var(--violet-50);border:1px solid var(--violet-100)}
html[data-theme="dark"] .metric-icon.green-bg{color:var(--success);background:var(--success-bg)}
html[data-theme="dark"] .metric-icon.red-bg{color:var(--danger);background:var(--danger-bg)}
html[data-theme="dark"] .metric-icon.blue-bg{color:#7495dd;background:#162645}
html[data-theme="dark"] .metric-foot{color:#827d8c}
html[data-theme="dark"] .metric-foot .positive{color:var(--success)}
html[data-theme="dark"] .chart-total span{color:#827d8c}
html[data-theme="dark"] .chart-total b{color:var(--ink)}
html[data-theme="dark"] .chart-legend button{border:1px solid var(--line);background:#111a2c;color:#b7b2be}
html[data-theme="dark"] .chart-legend button:hover{background:#162034}
html[data-theme="dark"] .chart-legend button.off{background:#162034}
html[data-theme="dark"] .violet-dot{background:#6657e8}
html[data-theme="dark"] .green-dot{background:#079b72}
html[data-theme="dark"] .red-dot{background:#e43e46}
html[data-theme="dark"] .chart-grid i{border-bottom:1px dashed #22304a}
html[data-theme="dark"] .chart-labels b{color:#98949f}
html[data-theme="dark"] .chart-labels small{color:#827d8d}
html[data-theme="dark"] .chart-line{fill:none}
html[data-theme="dark"] .chart-line.planned{stroke:#7163ed}
html[data-theme="dark"] .chart-line.collected{stroke:#55fbcd}
html[data-theme="dark"] .chart-line.debt{stroke:#ed646a}
html[data-theme="dark"] .chart-interaction{fill:transparent}
html[data-theme="dark"] .chart-cursor{stroke:#847d8f}
html[data-theme="dark"] .hover-point{fill:#111a2c}
html[data-theme="dark"] .hover-point.planned{stroke:#7163ed}
html[data-theme="dark"] .hover-point.collected{stroke:#55fbcd}
html[data-theme="dark"] .hover-point.debt{stroke:#ed646a}
html[data-theme="dark"] .chart-hit line{stroke:transparent}
html[data-theme="dark"] .chart-hit:hover line{stroke:#938aa0}
html[data-theme="dark"] .point{fill:#111a2c}
html[data-theme="dark"] .point.planned{stroke:#7163ed}
html[data-theme="dark"] .point.collected{stroke:#55fbcd}
html[data-theme="dark"] .point.debt{stroke:#ed646a}
html[data-theme="dark"] .chart-tooltip{border:1px solid var(--line);background:rgba(17,26,44,0.9);box-shadow:0 12px 30px rgba(0,0,0,0.45)}
html[data-theme="dark"] .chart-tooltip span{color:#9995a0}
html[data-theme="dark"] .chart-tooltip strong{color:var(--ink)}
html[data-theme="dark"] .donut{background:conic-gradient(var(--violet-600) 0 calc(var(--active)*1%),#43a6d8 calc(var(--active)*1%) calc((var(--active) + var(--reserved))*1%),#f2b94b calc((var(--active) + var(--reserved))*1%) calc((var(--active) + var(--reserved) + var(--paused))*1%),#1b2740 0)}
html[data-theme="dark"] .donut::before,html[data-theme="dark"] .radial::before{background:#111a2c}
html[data-theme="dark"] .donut strong{color:var(--ink)}
html[data-theme="dark"] .donut span,html[data-theme="dark"] .radial span{color:#827d8c}
html[data-theme="dark"] .legend-stack b{color:var(--ink)}
html[data-theme="dark"] .legend-stack em{color:#827d8c}
html[data-theme="dark"] .dot.active{background:var(--violet-600)}
html[data-theme="dark"] .dot.reserved{background:#43a6d8}
html[data-theme="dark"] .dot.paused{background:#f2b94b}
html[data-theme="dark"] .dot.archived{background:#2a3854}
html[data-theme="dark"] .radial{background:conic-gradient(var(--violet-600) calc(var(--value)*1%),#1b2740 0)}
html[data-theme="dark"] .radial b{color:var(--ink)}
html[data-theme="dark"] .attendance-stats>div{background:#162034;border:1px solid #22304a}
html[data-theme="dark"] .attendance-stats span{color:#827e8b}
html[data-theme="dark"] .violet-text{color:var(--violet-600)}
html[data-theme="dark"] .live-pill{background:var(--success-bg);color:var(--success)}
html[data-theme="dark"] .live-pill i{background:var(--success);box-shadow:0 0 0 3px rgba(22,131,95,0.12)}
html[data-theme="dark"] .occupancy-row{color:inherit}
html[data-theme="dark"] .occupancy-row:hover{background:#162034}
html[data-theme="dark"] .occupancy-top span{color:var(--ink)}
html[data-theme="dark"] .occupancy-top small{color:#827d8c}
html[data-theme="dark"] .rich-bar span{background:linear-gradient(90deg,#7657e6,#a38df1)}
html[data-theme="dark"] .occupancy-meta{color:#827d8c}
html[data-theme="dark"] .group-status-card{border:1px solid var(--line);color:var(--text);background:#111a2c}
html[data-theme="dark"] .group-status-card:hover{border-color:var(--violet-200);box-shadow:0 7px 20px rgba(0,0,0,0.21)}
html[data-theme="dark"] .group-card-head strong{color:var(--ink)}
html[data-theme="dark"] .group-state{background:var(--success-bg);color:var(--success)}
html[data-theme="dark"] .group-state.near{background:var(--warning-bg);color:var(--warning)}
html[data-theme="dark"] .group-state.full{background:var(--danger-bg);color:var(--danger)}
html[data-theme="dark"] .group-card-meta{color:#85818e}
html[data-theme="dark"] .group-card-meta b{color:var(--ink)}
html[data-theme="dark"] .group-card-bottom{border-top:1px solid #22304a;color:#98949f}
html[data-theme="dark"] .group-debt b{color:var(--danger)}
html[data-theme="dark"] .modal-backdrop{background:rgba(2,6,16,0.67)}
html[data-theme="dark"] .modal{border:1px solid rgba(255,255,255,.06);box-shadow:var(--shadow-md)}
html[data-theme="dark"] .modal p{color:var(--muted)}
html[data-theme="dark"] .error-page{border-color:var(--line);box-shadow:var(--shadow-md)}
html[data-theme="dark"] .error-page .error-code{color:var(--violet-600)}
html[data-theme="dark"] .command-overlay{background:rgba(2,6,16,0.63)}
html[data-theme="dark"] .command-box{border:1px solid rgba(255,255,255,.06);background:#111a2c;box-shadow:0 28px 80px rgba(0,0,0,0.55)}
html[data-theme="dark"] .command-input-row{border-bottom:1px solid var(--line)}
html[data-theme="dark"] .command-input-row input{border:0;outline:0;background:transparent;color:var(--ink)}
html[data-theme="dark"] .command-input-row input::placeholder{color:#837c8d}
html[data-theme="dark"] .command-item{color:var(--text)}
html[data-theme="dark"] .command-item:hover,html[data-theme="dark"] .command-item.selected{background:var(--violet-50);color:var(--violet-700)}
html[data-theme="dark"] .command-emoji{border:1px solid var(--line);background:#111a2c}
html[data-theme="dark"] .command-item small{color:#827d8c}
html[data-theme="dark"] .command-item em{color:#837c8d}
html[data-theme="dark"] .command-empty{color:#827d8c}
html[data-theme="dark"] .command-empty>b{color:var(--ink)}
html[data-theme="dark"] .command-footer{border-top:1px solid var(--line);background:#162034;color:#837c8d}
html[data-theme="dark"] .page-loading::after{background:linear-gradient(90deg,var(--violet-600),#b49ff7);box-shadow:0 1px 8px rgba(108,78,216,0.3)}
html[data-theme="dark"] .timeline .card::before{background:var(--violet-200)}
html[data-theme="dark"] .timeline p{color:var(--muted)}
html[data-theme="dark"] .onboarding-card{border:1px solid var(--violet-200);background:linear-gradient(135deg,#162034,#111a2c);box-shadow:var(--shadow-sm)}
html[data-theme="dark"] .onboarding-card summary b{color:var(--ink)}
html[data-theme="dark"] .onboarding-card summary small{color:#837c8f}
html[data-theme="dark"] .onboarding-progress{background:#1d1e45}
html[data-theme="dark"] .onboarding-progress i{background:linear-gradient(90deg,var(--violet-600),#a58df4)}
html[data-theme="dark"] .onboarding-steps a{background:#111a2c;border:1px solid var(--line);color:var(--text)}
html[data-theme="dark"] .onboarding-steps a:hover{border-color:var(--violet-200)}
html[data-theme="dark"] .onboarding-steps a>i{background:var(--violet-50);color:var(--violet-700)}
html[data-theme="dark"] .onboarding-steps a.done>i{background:var(--success-bg);color:var(--success)}
html[data-theme="dark"] .onboarding-steps em{color:#837c8d}
html[data-theme="dark"] .status-grid small{color:var(--muted)}
html[data-theme="dark"] .status-light{background:var(--danger);box-shadow:0 0 0 4px var(--danger-bg)}
html[data-theme="dark"] .status-light.ok{background:var(--success);box-shadow:0 0 0 4px var(--success-bg)}
@media(max-width:980px){
html[data-theme="dark"] .main{border:0}
}
@media(max-width:760px){
html[data-theme="dark"] body{background:#162034}
html[data-theme="dark"] .mobile-bar{background:rgba(17,26,44,0.9);color:var(--ink);border-bottom:1px solid var(--line);box-shadow:0 4px 18px rgba(0,0,0,0.18)}
html[data-theme="dark"] .mobile-bar button{color:var(--violet-600)}
html[data-theme="dark"] .side{box-shadow:18px 0 50px rgba(0,0,0,0.48)}
html[data-theme="dark"] .nav-shade{background:rgba(2,6,16,0.63)}
html[data-theme="dark"] .main{background:transparent}
}
html[data-theme="dark"] .metric-icon,html[data-theme="dark"] .metric-icon.violet,html[data-theme="dark"] .metric-icon.green-bg,html[data-theme="dark"] .metric-icon.red-bg,html[data-theme="dark"] .metric-icon.blue-bg{border:1px solid var(--line);background:#162034;color:#9d9aa3}
html[data-theme="dark"] .metric.rich .v.green,html[data-theme="dark"] .metric.rich .v.red{color:var(--ink)}
html[data-theme="dark"] .metric-foot .negative{color:var(--danger)}
html[data-theme="dark"] .card-heading small{color:#827d8c}
html[data-theme="dark"] .chart-axis{color:#827d8c}
html[data-theme="dark"] .children-total{border-bottom:1px solid var(--line)}
html[data-theme="dark"] .children-total strong{color:var(--ink)}
html[data-theme="dark"] .children-total span{color:var(--muted)}
html[data-theme="dark"] .attendance-empty>span{background:#162034;color:#8f8a96}
html[data-theme="dark"] .attendance-empty>span svg{fill:none;stroke:currentColor}
html[data-theme="dark"] .attendance-empty p{color:var(--muted)}
html[data-theme="dark"] .account-language select{border:1px solid var(--line);outline:0;background:#111a2c;color:#a8a5af}
html[data-theme="dark"] .account-language select:focus{border-color:var(--violet-200);box-shadow:0 0 0 3px rgba(124,92,231,0.08)}
html[data-theme="dark"] .nav-icon{color:#868190}
html[data-theme="dark"] .account-language{border:1px solid var(--line);background:#111a2c}
html[data-theme="dark"] .account-language:focus-within{border-color:var(--violet-200);box-shadow:0 0 0 3px rgba(124,92,231,0.08)}
html[data-theme="dark"] .account-language select{border:0!important;box-shadow:none!important;background-color:transparent}
html[data-theme="dark"] .chart-unit{color:#857e8e}
html[data-theme="dark"] .dashboard-freshness{border:1px solid var(--line);background:#162034;color:#8c8894}
html[data-theme="dark"] .metric-icon svg{fill:none;stroke:currentColor}
html[data-theme="dark"] .metric-action{border-color:#58324a}
html[data-theme="dark"] .metric-action:hover{border-color:#daadb2}
html[data-theme="dark"] .metric-action .metric-foot a{color:var(--danger)}
html[data-theme="dark"] .dot.unassigned{background:#9b96a5}
html[data-theme="dark"] .chart-axis{color:#a29eaa}
html[data-theme="dark"] .chart-grid i{border-color:#2c3c5a}
html[data-theme="dark"] .sub,html[data-theme="dark"] .muted,html[data-theme="dark"] .help,html[data-theme="dark"] .metric-foot,html[data-theme="dark"] .group-card-meta,html[data-theme="dark"] .group-card-bottom,html[data-theme="dark"] .card-heading small{color:#9399a5}
html[data-theme="dark"] .metric .l{color:#a5a3ad}
html[data-theme="dark"] th{color:#a5a1ad}
html[data-theme="dark"] .neutral-tag{background:#162034;color:#a7a4ad}
html[data-theme="dark"] .danger-outline{border-color:#583249;color:var(--danger)}
html[data-theme="dark"] .segment-tabs{border:1px solid var(--line);background:#162034}
html[data-theme="dark"] .segment-tabs a{color:#a5a1ad}
html[data-theme="dark"] .segment-tabs a.on{background:#111a2c;color:var(--violet-700);box-shadow:0 1px 5px rgba(0,0,0,0.24)}
html[data-theme="dark"] .contact-phone{color:#9399a5}
html[data-theme="dark"] .debt-value{color:var(--danger)}
html[data-theme="dark"] .credit-value{color:var(--success)}
html[data-theme="dark"] .mini-action{border:1px solid var(--line);color:#b0acb8}
html[data-theme="dark"] .mini-action:hover{border-color:var(--violet-200);background:var(--violet-50)}
html[data-theme="dark"] .checkdesk-table .table-group th{background:#162034;color:var(--ink)}
html[data-theme="dark"] .table-group span{color:#98949f}
html[data-theme="dark"] .action-popover{border:1px solid var(--line);background:#111a2c;box-shadow:var(--shadow-md)}
html[data-theme="dark"] .icon-note{border:0;background:var(--danger-bg);color:var(--danger)}
html[data-theme="dark"] .message-preview{background:#162034;border:1px solid #2c3c5a}
html[data-theme="dark"] .message-preview>span{color:#9399a5}
html[data-theme="dark"] .message-preview p{color:#aab0bb}
html[data-theme="dark"] .localized-date-value{border:1px solid var(--line);background:#111a2c;color:var(--text)}
html[data-theme="dark"] .localized-date::after{color:#98949f}
html[data-theme="dark"] body{background:var(--canvas)}
html[data-theme="dark"] .main{background:rgba(17,26,44,0.7)}
html[data-theme="dark"] .card,html[data-theme="dark"] .metric{border-color:var(--line);box-shadow:var(--shadow-sm)}
html[data-theme="dark"] .btn.pri{background:var(--brand);border-color:var(--brand);box-shadow:none}
html[data-theme="dark"] .btn.pri:hover{background:var(--brand-dark);border-color:var(--brand-dark)}
html[data-theme="dark"] .side{border-color:var(--line);box-shadow:var(--shadow-sm)}
html[data-theme="dark"] .brand-mark{background:#111a2c;color:var(--brand);border:1px solid #303275;box-shadow:none}
html[data-theme="dark"] .brand-mark svg{fill:none;stroke:currentColor}
html[data-theme="dark"] .brand-mark svg circle{fill:#111a2c}
html[data-theme="dark"] .brand small{color:#979c96}
html[data-theme="dark"] .side a.on,html[data-theme="dark"] .nav-children a.on{background:var(--brand-soft);color:var(--brand-dark);box-shadow:inset 3px 0 var(--brand)}
html[data-theme="dark"] .nav-group.has-active>summary{color:var(--brand-dark)}
html[data-theme="dark"] .nav-icon,html[data-theme="dark"] .side .nav-icon{color:#979c96}
html[data-theme="dark"] .nav-icon svg{fill:none;stroke:currentColor}
html[data-theme="dark"] .nav-icon svg path:first-child:not(:last-child){fill:none}
html[data-theme="dark"] .side a[href="/"] .nav-icon svg path{fill:currentColor;stroke:none}
html[data-theme="dark"] .side a.on .nav-icon,html[data-theme="dark"] .nav-group.has-active>summary .nav-icon{color:var(--brand)}
html[data-theme="dark"] .metric-income{border-top:3px solid var(--brand)}
html[data-theme="dark"] .metric-debt{border-top:3px solid var(--danger)}
html[data-theme="dark"] .metric.rich{background:#111a2c}
html[data-theme="dark"] .metric-icon{background:var(--surface-soft)!important;color:#a5aaa4!important;border-color:var(--line)!important}
html[data-theme="dark"] .metric-debt .metric-icon{color:var(--danger)!important;background:var(--danger-bg)!important;border-color:#58324a!important}
html[data-theme="dark"] .metric-income .metric-icon{color:var(--brand)!important;background:var(--brand-soft)!important;border-color:#343275!important}
html[data-theme="dark"],html[data-theme="dark"] body{background:var(--canvas)}
html[data-theme="dark"] body{color:var(--text)}
html[data-theme="dark"] a{color:var(--brand)}
html[data-theme="dark"] a:hover{color:var(--brand-dark)}
html[data-theme="dark"] .main{background:transparent;border:0;box-shadow:none}
@media(min-width:761px){
html[data-theme="dark"] .side{background:#111a2c;border:0;border-right:1px solid var(--line);box-shadow:none}
}
html[data-theme="dark"] .bibo-brand{background:transparent!important;box-shadow:none!important;border-bottom:1px solid var(--line)}
html[data-theme="dark"] .nav-label{color:#96a5bb}
html[data-theme="dark"] .side a,html[data-theme="dark"] .nav-group summary{color:#b5c1d2}
html[data-theme="dark"] .side a:hover,html[data-theme="dark"] .nav-group summary:hover{background:#162034;color:var(--ink)}
html[data-theme="dark"] .side a.on,html[data-theme="dark"] .nav-children a.on{background:var(--brand-soft);color:var(--brand);box-shadow:none}
html[data-theme="dark"] .nav-group.has-active>summary{background:transparent;color:var(--ink)}
html[data-theme="dark"] .nav-icon,html[data-theme="dark"] .side .nav-icon{color:#a5b1c2}
html[data-theme="dark"] .side a.on .nav-icon,html[data-theme="dark"] .nav-group.has-active>summary .nav-icon{color:var(--brand)}
html[data-theme="dark"] .nav-group summary::after{color:#96a5bb}
html[data-theme="dark"] .nav-children{border-left:1px solid var(--line)}
html[data-theme="dark"] .side-account{border-top:1px solid var(--line)}
html[data-theme="dark"] .logout-btn svg{fill:none;stroke:currentColor}
html[data-theme="dark"] .account-row{border:1px solid var(--line);background:#111a2c}
html[data-theme="dark"] .account-role{color:var(--muted)}
html[data-theme="dark"] .logout-btn{background:#111a2c;color:#b5c1d2}
html[data-theme="dark"] .version-link{color:#96a5bb!important}
html[data-theme="dark"] .topbar{background:rgba(17,26,44,0.9);border-bottom:1px solid var(--line)}
html[data-theme="dark"] .topbar svg{fill:none;stroke:currentColor}
html[data-theme="dark"] .topbar-search{border:1px solid var(--line);background:#162034;color:#99a6b7}
html[data-theme="dark"] .topbar-search:hover{border-color:var(--violet-200);background:#111a2c}
html[data-theme="dark"] .topbar-period{border:1px solid var(--line);background:#111a2c;color:var(--brand)}
html[data-theme="dark"] .topbar-period select{border:0;outline:0;background:transparent;color:var(--ink)}
html[data-theme="dark"] .topbar-bell{color:#a5b1c2}
html[data-theme="dark"] .topbar-bell:hover{background:#162034;color:var(--ink)}
html[data-theme="dark"] .topbar-bell b{border:2px solid #22304a;background:var(--danger);color:#ffffff}
html[data-theme="dark"] .topbar-user{border-left:1px solid var(--line)}
html[data-theme="dark"] .topbar-avatar{background:var(--brand-soft);color:var(--brand)}
html[data-theme="dark"] .topbar-user-text b{color:var(--ink)}
html[data-theme="dark"] .topbar-user-text small{color:var(--muted)}
html[data-theme="dark"] h2{color:var(--ink)}
html[data-theme="dark"] .eyebrow{color:#99a6b7}
html[data-theme="dark"] .dashboard-head .sub{color:var(--muted)}
html[data-theme="dark"] .btn{border-color:var(--line);color:#cbd4e2}
html[data-theme="dark"] .btn:hover{background:#162034;border-color:var(--line-strong)}
html[data-theme="dark"] .btn svg{fill:none;stroke:currentColor}
html[data-theme="dark"] .btn.pri{background:var(--brand);border-color:var(--brand);color:#ffffff;box-shadow:0 6px 16px rgba(29,111,224,0.22)}
html[data-theme="dark"] .btn.pri:hover{background:var(--brand-dark);border-color:var(--brand-dark);color:#ffffff}
html[data-theme="dark"] .input:focus{border-color:var(--violet-300);box-shadow:0 0 0 3px rgba(29,111,224,0.12)}
html[data-theme="dark"] .card,html[data-theme="dark"] .metric{border-color:var(--line)}
html[data-theme="dark"] .card-heading small{color:var(--muted)}
html[data-theme="dark"] th{color:#99a6b7}
html[data-theme="dark"] .dashboard-actions .btn{box-shadow:0 1px 2px rgba(0,0,0,0.12)}
html[data-theme="dark"] .dashboard-actions .btn:not(.pri) svg{color:var(--brand)}
html[data-theme="dark"] .metric.rich{border-top:1px solid var(--line)}
html[data-theme="dark"] .metric.rich .l{color:#cbd4e2}
html[data-theme="dark"] .metric.rich .v,html[data-theme="dark"] .metric-income .v,html[data-theme="dark"] .metric-debt .v{color:var(--ink)}
html[data-theme="dark"] .metric-foot{color:#99a6b7}
html[data-theme="dark"] .metric-foot>*+*{border-left:1px solid var(--line)}
html[data-theme="dark"] .metric-foot .positive{color:var(--bibo-green)}
html[data-theme="dark"] .metric-foot .negative{color:var(--danger)}
html[data-theme="dark"] .metric-plan{background:linear-gradient(160deg,#162743,#111a2c 70%)!important;border-color:#284575!important}
html[data-theme="dark"] .metric-plan .metric-icon{background:#172a49!important;color:var(--brand)!important;border-color:#284475!important}
html[data-theme="dark"] .metric-income{background:linear-gradient(160deg,#163337,#111a2c 70%)!important;border-color:#28625a!important}
html[data-theme="dark"] .metric-income .metric-icon{background:#173939!important;color:var(--bibo-green)!important;border-color:#28625a!important}
html[data-theme="dark"] .metric-debt{background:linear-gradient(160deg,#2b1e2d,#111a2c 70%)!important;border-color:#583247!important}
html[data-theme="dark"] .metric-debt .l{color:#ee6d63!important}
html[data-theme="dark"] .metric-debt .metric-icon{background:#331f2f!important;color:var(--danger)!important;border-color:#583247!important}
html[data-theme="dark"] .metric-children{background:linear-gradient(160deg,#2f302d,#111a2c 70%)!important;border-color:#585544!important}
html[data-theme="dark"] .metric-children .metric-icon{background:#3f3c2e!important;color:#ffbf52!important;border-color:#585544!important}
html[data-theme="dark"] .violet-dot{background:var(--brand)}
html[data-theme="dark"] .green-dot{background:var(--bibo-green)}
html[data-theme="dark"] .red-dot{background:var(--danger)}
html[data-theme="dark"] .chart-legend button{color:#cbd4e2}
html[data-theme="dark"] .chart-line.planned,html[data-theme="dark"] .hover-point.planned,html[data-theme="dark"] .point.planned{stroke:var(--brand)}
html[data-theme="dark"] .chart-line.collected,html[data-theme="dark"] .hover-point.collected,html[data-theme="dark"] .point.collected{stroke:var(--bibo-green)}
html[data-theme="dark"] .chart-line.debt,html[data-theme="dark"] .hover-point.debt,html[data-theme="dark"] .point.debt{stroke:var(--danger)}
html[data-theme="dark"] .chart-labels b{color:#99a6b7}
html[data-theme="dark"] .chart-axis,html[data-theme="dark"] .chart-unit{color:#96a5bb}
html[data-theme="dark"] .dot.active{background:var(--bibo-indigo)}
html[data-theme="dark"] .dot.reserved{background:var(--bibo-sky)}
html[data-theme="dark"] .dot.paused{background:var(--bibo-sun)}
html[data-theme="dark"] .dot.unassigned{background:#94a3b8}
html[data-theme="dark"] .dot.archived{background:#162a47}
html[data-theme="dark"] .radial{background:conic-gradient(var(--bibo-indigo) calc(var(--value)*1%),#191e48 0)}
html[data-theme="dark"] .attendance-stats>div{background:#162034;border-color:#284675}
html[data-theme="dark"] .attendance-stats>div.stat-present{background:#163337;border-color:#28625a}
html[data-theme="dark"] .attendance-stats>div.stat-absent{background:#2b1d2d;border-color:#583246}
html[data-theme="dark"] .attendance-stats span{color:#99a6b7}
html[data-theme="dark"] .violet-text{color:var(--brand)}
html[data-theme="dark"] .group-row{border:1px solid var(--line);color:var(--text)}
html[data-theme="dark"] .group-row:hover{border-color:var(--violet-200);box-shadow:0 6px 18px rgba(0,0,0,0.18)}
html[data-theme="dark"] .group-row-name strong{color:var(--ink)}
html[data-theme="dark"] .group-row-name small{color:#99a6b7}
html[data-theme="dark"] .group-row-name small b{color:var(--ink)}
html[data-theme="dark"] .group-row .rich-bar{background:#191e46}
html[data-theme="dark"] .group-row .rich-bar span{background:linear-gradient(90deg,var(--bibo-indigo),#8f86f1)}
html[data-theme="dark"] .group-row-debt{color:#99a6b7}
html[data-theme="dark"] .group-row-debt b{color:var(--danger)}
html[data-theme="dark"] .debt-card .row-no{color:#96a5bb}
html[data-theme="dark"] .onboarding-card{border-color:var(--violet-200);background:linear-gradient(135deg,#162743,#111a2c)}
html[data-theme="dark"] .login-card{box-shadow:var(--shadow-md)}
@media(max-width:760px){
html[data-theme="dark"] .mobile-bar{background:#111a2c}
}
@media(min-width:761px){
html[data-theme="dark"] .layout{background:linear-gradient(90deg,#111a2c 247px,var(--line) 247px 248px,transparent 248px)}
}
html[data-theme="dark"] .payment-page-head h2{color:#cdd4e3}
html[data-theme="dark"] .payment-page-head p{color:#98a5b9}
html[data-theme="dark"] .payment-summary-grid article{border:1px solid #284775;background:#111a2c;box-shadow:0 5px 18px rgba(22,49,82,0.03)}
html[data-theme="dark"] .payment-summary-grid small{color:#98a5b9}
html[data-theme="dark"] .payment-summary-grid strong{color:#cbd4e2}
html[data-theme="dark"] .payment-summary-grid span{color:#98a5b8}
html[data-theme="dark"] .payment-summary-grid .received strong{color:#55fbb0}
html[data-theme="dark"] .payment-summary-grid .reversed strong{color:#e96875}
html[data-theme="dark"] .payment-filter-form label>span{color:#94a5bc}
html[data-theme="dark"] .payment-filter-form input,html[data-theme="dark"] .payment-filter-form select{border:1px solid #284775;outline:0;background:#111a2c;color:#bec9da}
html[data-theme="dark"] .payment-filter-form input:focus,html[data-theme="dark"] .payment-filter-form select:focus{border-color:#72aef6;box-shadow:0 0 0 3px rgba(20,119,237,0.1)}
html[data-theme="dark"] .payment-search svg{fill:none;stroke:#99a5b8}
html[data-theme="dark"] .payment-register-card>header{border-bottom:1px solid #2c3c5a}
html[data-theme="dark"] .payment-register-card h3{color:#cbd4e2}
html[data-theme="dark"] .payment-register-card header p{color:#98a5b8}
html[data-theme="dark"] .payment-register-table th{background:#162034;color:#98a5b9}
html[data-theme="dark"] .payment-register-table td>small{color:#9aa6b7}
html[data-theme="dark"] .payment-register-table td:nth-child(4) strong{color:#cdd4e3}
html[data-theme="dark"] .payment-method{background:#162743;color:#95a4bc}
html[data-theme="dark"] .method-cash{background:#163739;color:#56fbaf}
html[data-theme="dark"] .method-payme{background:#1d1e47;color:#8c6ce4}
html[data-theme="dark"] .method-click{background:#172a48;color:#54a1fc}
html[data-theme="dark"] .method-uzum{background:#173448;color:#56d9fa}
html[data-theme="dark"] .method-transfer{background:#37332e;color:#ffb752}
html[data-theme="dark"] .payment-advance{color:#ffba52}
html[data-theme="dark"] .payment-note{color:#95a5bc}
html[data-theme="dark"] .debt-summary-grid .debt-total strong,html[data-theme="dark"] .debt-register-table .debt-balance{color:#e96875}
html[data-theme="dark"] .debt-summary-grid .debt-warning strong{color:#ffc352}
html[data-theme="dark"] .debt-summary-grid .debt-danger strong{color:#e96875}
html[data-theme="dark"] .debt-register-table td:nth-child(5),html[data-theme="dark"] .debt-register-table td:nth-child(6){color:#95a5bc}
html[data-theme="dark"] .expense-summary-grid .expense-total strong,html[data-theme="dark"] .expense-register-table .expense-amount{color:#e96875}
html[data-theme="dark"] .expense-summary-grid .expense-void strong{color:#7d8899}
html[data-theme="dark"] .expense-register-table td:nth-child(2) strong{color:#cbd4e2}
html[data-theme="dark"] .expense-kind{background:#162743;color:#95a4bc}
html[data-theme="dark"] .kind-food{background:#37332e;color:#ffba52}
html[data-theme="dark"] .kind-rent{background:#172747;color:#569ffb}
html[data-theme="dark"] .kind-utilities{background:#163246;color:#57e0fa}
html[data-theme="dark"] .kind-household{background:#1c352d;color:#83e56b}
html[data-theme="dark"] .kind-salary{background:#1f1e46;color:#906ce5}
html[data-theme="dark"] .kind-education{background:#172847;color:#649cec}
html[data-theme="dark"] .kind-other{background:#162743;color:#95a4bc}
html[data-theme="dark"] .method-card{background:#172847;color:#5f9ef1}
html[data-theme="dark"] .finance-page-head h2{color:#cdd4e3}
html[data-theme="dark"] .finance-page-head p{color:#97a5ba}
html[data-theme="dark"] .finance-period-picker{border:1px solid #284775;background:#111a2c;color:#bcc7d9;box-shadow:0 2px 8px rgba(31,57,90,0.03)}
html[data-theme="dark"] .finance-period-picker svg,html[data-theme="dark"] .finance-export svg{fill:none;stroke:currentColor}
html[data-theme="dark"] .finance-period-picker select{border:0;outline:0;background:transparent;color:#bcc7d9}
html[data-theme="dark"] .finance-export{border-color:#284775;color:#bcc7d9}
html[data-theme="dark"] .finance-kpi{border:1px solid #284775;background:#111a2c;box-shadow:0 5px 20px rgba(22,49,82,0.035)}
html[data-theme="dark"] .finance-kpi-icon svg{fill:none;stroke:currentColor}
html[data-theme="dark"] .finance-kpi.plan .finance-kpi-icon{background:#172948;color:#5a9bf6}
html[data-theme="dark"] .finance-kpi.income .finance-kpi-icon{background:#17393a;color:#56faaf}
html[data-theme="dark"] .finance-kpi.expense .finance-kpi-icon{background:#311e30;color:#f55b6b}
html[data-theme="dark"] .finance-kpi.profit .finance-kpi-icon{background:#1d1e47;color:#8862ef}
html[data-theme="dark"] .finance-kpi small{color:#9faec7}
html[data-theme="dark"] .finance-kpi strong{color:#cdd4e3}
html[data-theme="dark"] .finance-kpi p{color:#98a5b9}
html[data-theme="dark"] .finance-kpi p span{color:#98a5b9}
html[data-theme="dark"] .finance-kpi .positive{color:#56fbaf}
html[data-theme="dark"] .finance-kpi .negative,html[data-theme="dark"] .finance-kpi strong.negative{color:#e96875}
html[data-theme="dark"] .finance-progress{background:#162743}
html[data-theme="dark"] .finance-progress i{background:#1477ed}
html[data-theme="dark"] .finance-tabs a{border:1px solid #284775;background:#111a2c;color:#a9b8cf}
html[data-theme="dark"] .finance-tabs a:hover{border-color:#284675;color:#5a9bf6}
html[data-theme="dark"] .finance-tabs a.active{border-color:#284575;background:#162034;color:#539efd;box-shadow:inset 0 -2px #1477ed}
html[data-theme="dark"] .finance-panel{border:1px solid #284775;background:#111a2c;box-shadow:0 5px 20px rgba(22,49,82,0.03)}
html[data-theme="dark"] .finance-panel h3{color:#d0d7e5}
html[data-theme="dark"] .finance-panel header p{color:#97a5b9}
html[data-theme="dark"] .finance-panel header>a{border:1px solid #284775;color:#539efd}
html[data-theme="dark"] .finance-chart-legend{color:#98a5b8}
html[data-theme="dark"] .finance-chart-legend i.income{background:#17b86c}
html[data-theme="dark"] .finance-chart-legend i.expense{background:#ff6373}
html[data-theme="dark"] .finance-chart-legend b{border:1px solid #284775;color:#a1b0c8}
html[data-theme="dark"] .finance-chart{border-bottom:1px solid #284975}
html[data-theme="dark"] .finance-gridlines i{border-top:1px dashed #284775}
html[data-theme="dark"] .finance-bar-pair i.income{background:linear-gradient(#23ca7d,#12ad64)}
html[data-theme="dark"] .finance-bar-pair i.expense{background:#ff7481}
html[data-theme="dark"] .finance-bar-day>span{color:#98a5b8}
html[data-theme="dark"] .finance-donut{background:conic-gradient(var(--segments));box-shadow:inset 0 0 0 1px rgba(18,43,75,0.04)}
html[data-theme="dark"] .finance-donut:after{background:#111a2c}
html[data-theme="dark"] .finance-donut strong{color:#d1d8e5}
html[data-theme="dark"] .finance-donut small{color:#90a2c0}
html[data-theme="dark"] .method-list>div{color:#abb9d0}
html[data-theme="dark"] .method-list i.green{background:#16b76a}
html[data-theme="dark"] .method-list i.blue{background:#1477ed}
html[data-theme="dark"] .method-list i.violet{background:#7854e8}
html[data-theme="dark"] .method-list i.cyan{background:#38bdf8}
html[data-theme="dark"] .method-list i.orange{background:#f59e0b}
html[data-theme="dark"] .method-list em{color:#97a5b9}
html[data-theme="dark"] .method-list strong{color:#c9d2e1}
html[data-theme="dark"] .profitability-panel th{background:#162034;color:#98a5b9}
html[data-theme="dark"] .profitability-panel td:first-child a{color:#c2cddd}
html[data-theme="dark"] .operation-list article{border-top:1px solid #22304a}
html[data-theme="dark"] .operation-icon.income{background:#163839;color:#58f9b0}
html[data-theme="dark"] .operation-icon.expense{background:#301e30;color:#e96876}
html[data-theme="dark"] .operation-list article>div strong{color:#bec9da}
html[data-theme="dark"] .operation-list article>div small{color:#97a5ba}
html[data-theme="dark"] .operation-list aside b.income{color:#56fbb0}
html[data-theme="dark"] .operation-list aside b.expense{color:#e96876}
html[data-theme="dark"] .operation-list time{color:#97a5ba}
html[data-theme="dark"] .finance-empty{color:#97a5b9}
html[data-theme="dark"] .side-head{border-bottom:1px solid var(--line)}
html[data-theme="dark"] .side-head .bibo-brand{border-bottom:0}
html[data-theme="dark"] .side-toggle{border:1px solid var(--line);background:#111a2c;color:#a5b1c2}
html[data-theme="dark"] .side-toggle:hover{background:var(--brand-soft);color:var(--brand);border-color:var(--violet-200)}
html[data-theme="dark"] .side-toggle svg{fill:none;stroke:currentColor}
@media(min-width:761px){
html[data-theme="dark"] .side-collapsed .layout{background:linear-gradient(90deg,#111a2c 79px,var(--line) 79px 80px,transparent 80px)}
html[data-theme="dark"] .side-collapsed .nav-label{background:var(--line)}
html[data-theme="dark"] .side-collapsed .nav-group.has-active>summary{background:var(--brand-soft)}
}
html[data-theme="dark"] .page-breadcrumb{color:#9ca5b5}
html[data-theme="dark"] .page-breadcrumb a{color:var(--brand)}
html[data-theme="dark"] .page-breadcrumb span[aria-hidden]{color:#718098}
html[data-theme="dark"] .child-form-head p{color:#9ba6b6}
html[data-theme="dark"] .child-form-card{border:1px solid #284675;background:rgba(17,26,44,0.9);box-shadow:0 1px 3px rgba(15,38,68,0.025)}
html[data-theme="dark"] .child-form-section-head h3{color:#d0d7e5}
html[data-theme="dark"] .child-form-section-head p{color:#96a3bb}
html[data-theme="dark"] .child-form-icon{background:#162846;color:#5a98f6}
html[data-theme="dark"] .child-form-icon.green{background:#163538;color:#5af7ad}
html[data-theme="dark"] .child-form-icon.violet{background:#1e1e46;color:#8662ef}
html[data-theme="dark"] .child-form-icon svg{fill:none;stroke:currentColor}
html[data-theme="dark"] .child-form-field label{color:#b9c4d8}
html[data-theme="dark"] .child-form-field label span{color:#ec6570}
html[data-theme="dark"] .child-form-field .input{border-color:#284575}
html[data-theme="dark"] .child-form-field input[type=file].input{background:#162034}
html[data-theme="dark"] .child-form-field .help{color:#93a3bd}
html[data-theme="dark"] .child-form-field.has-error .input{border-color:#e16f79;box-shadow:0 0 0 3px rgba(220,55,70,0.08)}
html[data-theme="dark"] .field-error{color:#e36e79}
html[data-theme="dark"] .child-document-upload-row{border:1px solid #284475;background:#162034}
html[data-theme="dark"] .child-document-existing div{border:1px solid #2c3c5a;background:#111a2c}
html[data-theme="dark"] .child-document-existing strong{color:#cbd4e2}
html[data-theme="dark"] .child-document-existing span{color:#96a4ba}
html[data-theme="dark"] .child-form-actions{border-top:1px solid #22304a}
@media(max-width:760px){
html[data-theme="dark"] .child-form-actions{background:rgba(17,26,44,0.9)}
}
html[data-theme="dark"] .settings-page-head h2{color:#cdd4e3}
html[data-theme="dark"] .settings-page-head p{color:#97a5ba}
html[data-theme="dark"] .settings-head-actions svg,html[data-theme="dark"] .settings-form-actions svg{fill:none;stroke:currentColor}
html[data-theme="dark"] .settings-panel,html[data-theme="dark"] .settings-table-card{border:1px solid #284775;background:#111a2c;box-shadow:0 5px 20px rgba(22,49,82,0.032)}
html[data-theme="dark"] .settings-panel-head h3,html[data-theme="dark"] .settings-card-head h3{color:#d0d7e5}
html[data-theme="dark"] .settings-panel-head p,html[data-theme="dark"] .settings-card-head p{color:#96a4ba}
html[data-theme="dark"] .settings-icon svg{fill:none;stroke:currentColor}
html[data-theme="dark"] .settings-icon.blue{background:#162947;color:#5a9bf6}
html[data-theme="dark"] .settings-icon.violet,html[data-theme="dark"] .settings-icon.purple{background:#1b1e46;color:#8164ed}
html[data-theme="dark"] .settings-icon.green{background:#163839;color:#56faaf}
html[data-theme="dark"] .settings-field label{color:#b7c3d6}
html[data-theme="dark"] .settings-field .input{border-color:#284575}
html[data-theme="dark"] .settings-field .help{color:#93a3bd}
html[data-theme="dark"] .settings-field.has-error .input{border-color:#e16f79;box-shadow:0 0 0 3px rgba(220,55,70,0.08)}
html[data-theme="dark"] .settings-table th{background:#162034;color:#98a5b9}
html[data-theme="dark"] .settings-table td strong{color:#cbd4e2}
html[data-theme="dark"] .settings-table td small{color:#9aa6b7}
html[data-theme="dark"] .settings-note{border-top:1px solid #22304a;color:#96a4ba}
html[data-theme="dark"] .settings-note:before{border:1px solid #99b8dd;color:#6fa4e2}
html[data-theme="dark"] .person-contact-stack>div{border-bottom:1px solid #22304a}
html[data-theme="dark"] .person-contact-stack>div:last-child{border-bottom:0}
html[data-theme="dark"] .person-contact-stack span{color:#99a5b7}
html[data-theme="dark"] .person-merge-modal{background:rgba(2,6,16,0.69)}
html[data-theme="dark"] .person-merge-dialog{border:1px solid rgba(255,255,255,.06);background:#111a2c;box-shadow:0 24px 70px rgba(0,0,0,0.55)}
html[data-theme="dark"] .person-merge-dialog>header{border-bottom:1px solid #2c3c5a}
html[data-theme="dark"] .person-merge-dialog h3{color:#d0d7e5}
html[data-theme="dark"] .person-merge-dialog p{color:#96a4ba}
html[data-theme="dark"] .person-merge-search span{color:#b7c3d6}
html[data-theme="dark"] .person-merge-choice{border:1px solid #284775;background:#111a2c}
html[data-theme="dark"] .person-merge-choice:hover,html[data-theme="dark"] .person-merge-choice.selected{border-color:#8ebef8;background:#162034}
html[data-theme="dark"] .person-merge-choice b{color:#cbd4e2}
html[data-theme="dark"] .person-merge-choice span{color:#95a5bc}
html[data-theme="dark"] .person-merge-choice small{color:#98a5b8}
html[data-theme="dark"] .person-merge-empty{border:1px dashed #284775;color:#98a5b8}
@media(max-width:760px){
html[data-theme="dark"] .settings-form-actions{background:rgba(17,26,44,0.9);border-top:1px solid #22304a}
}
html[data-theme="dark"] .child-back-link{color:#97a4ba}
html[data-theme="dark"] .child-back-link span{border:1px solid var(--line);background:#111a2c;color:#84a5cd}
html[data-theme="dark"] .child-back-link:hover{color:var(--brand)}
html[data-theme="dark"] .child-avatar{background:linear-gradient(145deg,#172947,#182b4c);color:#5a98f6}
html[data-theme="dark"] .child-avatar.has-photo{background:#162645}
html[data-theme="dark"] .child-profile-title h2{color:#d4d9e7}
html[data-theme="dark"] .child-profile-meta{color:#97a4ba}
html[data-theme="dark"] .child-profile-meta i{color:#6e809b}
html[data-theme="dark"] .profile-status b{background:currentColor}
html[data-theme="dark"] .status-active{background:#17393b;color:#55fbb1}
html[data-theme="dark"] .status-paused{background:#3e3c2e;color:#ffc652}
html[data-theme="dark"] .status-enrolled{background:#162645;color:#96a4bb}
html[data-theme="dark"] .status-ended{background:#1b2740;color:#959ca7}
html[data-theme="dark"] .child-detail-tabs{border-bottom:1px solid #284775}
html[data-theme="dark"] .child-detail-tabs button{border:0;background:transparent;color:#94a4bd}
html[data-theme="dark"] .child-detail-tabs button:hover{color:var(--brand)}
html[data-theme="dark"] .child-detail-tabs button.active{color:#549afd}
html[data-theme="dark"] .child-detail-tabs button.active::after{background:#1677ff}
html[data-theme="dark"] .child-summary-card{border:1px solid #284775;background:#111a2c}
html[data-theme="dark"] .summary-icon svg,html[data-theme="dark"] .detail-card-head svg,html[data-theme="dark"] .detail-empty svg{fill:none;stroke:currentColor}
html[data-theme="dark"] .summary-balance .summary-icon{background:#2f1e30;color:#f65a6a}
html[data-theme="dark"] .summary-today .summary-icon{background:#17383a;color:#59f7b4}
html[data-theme="dark"] .summary-birthday .summary-icon{background:#1c1e46;color:#8661ef}
html[data-theme="dark"] .child-summary-card small{color:#97a3ba}
html[data-theme="dark"] .child-summary-card strong{color:#cdd4e3}
html[data-theme="dark"] .child-summary-card strong.red{color:#f45c6f}
html[data-theme="dark"] .child-summary-card strong.green,html[data-theme="dark"] .child-summary-card strong .green{color:#55fcb6}
html[data-theme="dark"] .child-summary-card em{color:#95a3bc}
html[data-theme="dark"] .child-detail-card{border:1px solid #284775;background:#111a2c}
html[data-theme="dark"] .detail-card-head{border-bottom:1px solid #2c3c5a}
html[data-theme="dark"] .detail-card-head h3{color:#d0d6e4}
html[data-theme="dark"] .detail-card-head h3 svg{color:#579af9}
html[data-theme="dark"] .health-detail-grid dl+dl{border-left:1px solid #22304a}
html[data-theme="dark"] .health-detail-grid dt{color:#9eaec8}
html[data-theme="dark"] .health-detail-grid dd{color:#b5c0d5}
html[data-theme="dark"] .health-detail-grid .health-alert{color:#e76976}
html[data-theme="dark"] .detail-table thead th{background:#162034;border-bottom-color:#284775;color:#97a4ba}
html[data-theme="dark"] .detail-table td strong{color:#5fa0f1}
html[data-theme="dark"] .permission-finance{background:#1c1e46;color:#8e6ce4}
html[data-theme="dark"] .mini-action{background:#111a2c}
html[data-theme="dark"] .mini-action.danger-action{border-color:#58324a;color:#ec6572}
html[data-theme="dark"] .mini-action.danger-action:hover{background:#2c1e2f;border-color:#f0848f}
html[data-theme="dark"] .detail-empty{color:#92a2be}
html[data-theme="dark"] .detail-empty b{color:#94a3bd}
html[data-theme="dark"] .child-note{color:#a9b7ce}
@media(max-width:1050px){
html[data-theme="dark"] .health-detail-grid dl+dl{border-left:0;border-top:1px solid #22304a}
}
html[data-theme="dark"] .design-form-head p{color:#99a5b7}
html[data-theme="dark"] .design-form-card{border:1px solid #284775;background:#111a2c;box-shadow:0 8px 28px rgba(24,47,78,0.045)}
html[data-theme="dark"] .design-section-head h3{color:#d0d7e5}
html[data-theme="dark"] .design-section-head p{color:#96a4ba}
html[data-theme="dark"] .design-section-icon svg{fill:none;stroke:currentColor}
html[data-theme="dark"] .design-section-icon.blue{background:#162947;color:#5a9bf6}
html[data-theme="dark"] .design-section-icon.green{background:#163838;color:#58f8ad}
html[data-theme="dark"] .design-section-icon.violet{background:#1b1e46;color:#8164ed}
html[data-theme="dark"] .design-form-field label{color:#b7c3d6}
html[data-theme="dark"] .design-form-field label span{color:#ec6570}
html[data-theme="dark"] .design-form-field .input{border-color:#284575}
html[data-theme="dark"] .design-form-field input[type=file].input{background:#111a2c}
html[data-theme="dark"] .design-form-field .help{color:#93a3bd}
html[data-theme="dark"] .design-form-field.has-error .input{border-color:#e16f79;box-shadow:0 0 0 3px rgba(220,55,70,0.08)}
html[data-theme="dark"] .design-section-divider{background:#162843}
html[data-theme="dark"] .permission-choice{border:1px solid #284775;background:#111a2c}
html[data-theme="dark"] .permission-choice:hover{border-color:#284675;background:#111a2c;box-shadow:0 4px 14px rgba(24,60,105,0.05)}
html[data-theme="dark"] .permission-choice b{color:#cdd5e3}
html[data-theme="dark"] .permission-choice small{color:#96a4ba}
html[data-theme="dark"] .permission-choice em{color:#e46d79}
html[data-theme="dark"] .design-form-actions{border-top:1px solid #2c3c5a}
html[data-theme="dark"] .generic-grid ul{border:1px solid #284775}
@media(max-width:760px){
html[data-theme="dark"] .design-form-actions{background:rgba(17,26,44,0.9)}
}
html[data-theme="dark"] .generic-grid>.design-form-field>div[id]{border:1px solid #284775}
html[data-theme="dark"] .group-breadcrumb{color:#98a5b8}
html[data-theme="dark"] .group-breadcrumb a{color:#5c9ef5}
html[data-theme="dark"] .group-breadcrumb span{color:#6f819a}
html[data-theme="dark"] .groups-page-head p{color:#99a5b8}
html[data-theme="dark"] .group-metrics-panel{border:1px solid #284775;background:#111a2c}
html[data-theme="dark"] .group-stat{border:1px solid #284775}
html[data-theme="dark"] .group-stat-icon svg,html[data-theme="dark"] .group-roster-icon svg,html[data-theme="dark"] .group-list-icon svg{fill:none;stroke:currentColor}
html[data-theme="dark"] .group-stat-icon.children{background:#162947;color:#579df9}
html[data-theme="dark"] .group-stat-icon.present{background:#163839;color:#58f8b1}
html[data-theme="dark"] .group-stat-icon.occupancy{background:#37342e;color:#ffc052}
html[data-theme="dark"] .group-stat-icon.language{background:#1e1e46;color:#8662ef}
html[data-theme="dark"] .group-stat small{color:#98a5b9}
html[data-theme="dark"] .group-stat strong{color:#cdd4e3}
html[data-theme="dark"] .group-stat strong.state-full,html[data-theme="dark"] .group-stat strong.state-over{color:#e76976}
html[data-theme="dark"] .group-stat em{color:#96a4ba}
html[data-theme="dark"] .group-info-card{border:1px solid #284775;background:#111a2c}
html[data-theme="dark"] .group-info-card header{border-bottom:1px solid #2c3c5a}
html[data-theme="dark"] .group-info-card h3{color:#d0d6e4}
html[data-theme="dark"] .group-info-card header span{color:#95a5bc}
html[data-theme="dark"] .group-info-card dl div{border-bottom:1px solid #22304a}
html[data-theme="dark"] .group-info-card dl div:last-child{border-bottom:0}
html[data-theme="dark"] .group-info-card dt{color:#97a5b9}
html[data-theme="dark"] .group-info-card dd{color:#c4cdde}
html[data-theme="dark"] .group-info-card dd small{color:#9aa5b7}
html[data-theme="dark"] .group-roster-card{border:1px solid #284775;background:#111a2c}
html[data-theme="dark"] .group-roster-icon{background:#162947;color:#5a9bf6}
html[data-theme="dark"] .group-roster-head h3{color:#d0d7e5}
html[data-theme="dark"] .group-roster-head p{color:#96a4ba}
html[data-theme="dark"] .group-roster-table thead th{background:#162034}
html[data-theme="dark"] .group-roster-table .row-index{color:#97a4b9}
html[data-theme="dark"] .group-roster-table td a{color:#53a0fd}
html[data-theme="dark"] .group-list-card{border:1px solid #284775;background:#111a2c}
html[data-theme="dark"] .group-list-card:hover,html[data-theme="dark"] .group-list-card:focus-visible{border-color:#284675;box-shadow:0 10px 30px rgba(24,55,95,0.08);outline:0}
html[data-theme="dark"] .group-list-icon{background:#162947;color:#5a9bf6}
html[data-theme="dark"] .group-list-card header a{color:#d0d7e5}
html[data-theme="dark"] .group-list-card header small{color:#96a4ba}
html[data-theme="dark"] .group-list-stats{border-top:1px solid #2c3c5a;border-bottom:1px solid #2c3c5a}
html[data-theme="dark"] .group-list-stats div{border-right:1px solid #2c3c5a}
html[data-theme="dark"] .group-list-stats div:last-child{border-right:0}
html[data-theme="dark"] .group-list-stats small{color:#96a4ba}
html[data-theme="dark"] .group-list-stats strong{color:#bcc7d9}
html[data-theme="dark"] .group-capacity{background:#1b2740}
html[data-theme="dark"] .group-capacity span{background:linear-gradient(90deg,#1677ef,#68a8fa)}
@media(max-width:760px){
html[data-theme="dark"] .group-list-stats div:nth-child(2){border-right:0}
html[data-theme="dark"] .group-list-stats div:last-child{border-top:1px solid #2c3c5a}
}
html[data-theme="dark"] .kpi-card{border:1px solid #22304a;background:#111a2c;box-shadow:0 1px 2px rgba(0,0,0,0.12),0 8px 20px rgba(0,0,0,0.105)}
html[data-theme="dark"] .kpi-card h3{color:#bcc2cd}
html[data-theme="dark"] .kpi-icon svg{fill:none;stroke:currentColor}
html[data-theme="dark"] .kpi-plan .kpi-icon{color:#5c98f4}
html[data-theme="dark"] .kpi-income .kpi-icon{color:#63ee96}
html[data-theme="dark"] .kpi-debt .kpi-icon{color:#ec6570}
html[data-theme="dark"] .kpi-children .kpi-icon{color:#f8bf58}
html[data-theme="dark"] .kpi-more{color:#708199}
html[data-theme="dark"] .kpi-more:hover{background:#162034;color:#8e97a5}
html[data-theme="dark"] .kpi-more svg{stroke:none}
html[data-theme="dark"] .kpi-more svg circle{fill:currentColor;stroke:none}
html[data-theme="dark"] .kpi-value{color:#dce1eb}
html[data-theme="dark"] .kpi-rate b{color:#63ee96}
html[data-theme="dark"] .kpi-rate small{color:#63ee96}
html[data-theme="dark"] .kpi-bar{background:#1b2740}
html[data-theme="dark"] .kpi-bar i{background:#16a34a}
html[data-theme="dark"] .kpi-foot{color:#768293}
html[data-theme="dark"] .kpi-foot>*+*{border-left:1px solid #22304a}
html[data-theme="dark"] .kpi-foot.stacked>*+*{border-left:0}
html[data-theme="dark"] .kpi-trend.up{color:#63ee96}
html[data-theme="dark"] .kpi-period svg{fill:none;stroke:currentColor;color:#758194}
html[data-theme="dark"] .kpi-flag i{background:currentColor}
html[data-theme="dark"] .kpi-flag.ok{color:#63ee96}
html[data-theme="dark"] .kpi-flag.danger{color:#ec6570}
html[data-theme="dark"] .kpi-flag.muted{color:#768293}
html[data-theme="dark"] .kpi-link{color:#ec6570}
html[data-theme="dark"] .theme-toggle{border:0;background:transparent;color:#a5b1c2}
html[data-theme="dark"] .theme-toggle:hover{background:#162034;color:var(--ink)}
html[data-theme="dark"][data-theme="dark"] .theme-toggle .icon-sun{color:#ffc452}
html[data-theme="dark"] .side-tip{background:#0f1b2d;color:#ffffff;box-shadow:0 8px 24px rgba(0,0,0,0.55)}
html[data-theme="dark"] .side-tip::before{background:inherit}
html[data-theme="dark"] .period-picker svg{fill:none;stroke:currentColor}
html[data-theme="dark"] .period-trigger{border:1px solid var(--line);background:#111a2c;color:var(--ink)}
html[data-theme="dark"] .period-trigger:hover{border-color:var(--violet-200);background:#111a2c}
html[data-theme="dark"] .period-trigger[aria-expanded="true"]{border-color:var(--brand);box-shadow:0 0 0 3px rgba(29,111,224,0.12)}
html[data-theme="dark"] .period-picker .period-trigger-icon{color:var(--brand)}
html[data-theme="dark"] .period-trigger-text small{color:var(--muted)}
html[data-theme="dark"] .period-picker .period-chevron{color:var(--muted)}
html[data-theme="dark"] .period-picker.is-field .period-trigger{border-color:#284775}
html[data-theme="dark"] .period-pop{border:1px solid var(--line);background:#111a2c;color:var(--text);box-shadow:0 20px 50px rgba(0,0,0,0.48),0 2px 6px rgba(0,0,0,0.15)}
html[data-theme="dark"] .period-year-label{color:var(--ink)}
html[data-theme="dark"] .period-year-nav{border:1px solid var(--line);background:#111a2c;color:var(--text)}
html[data-theme="dark"] .period-year-nav:hover:not(:disabled){border-color:var(--violet-200);background:var(--brand-soft);color:var(--brand)}
html[data-theme="dark"] .period-month{border:0;background:transparent;color:var(--text)}
html[data-theme="dark"] .period-month:hover,html[data-theme="dark"] .period-month:focus-visible{background:var(--brand-soft);color:var(--brand);outline:0}
html[data-theme="dark"] .period-month.is-future{color:#707f99}
html[data-theme="dark"] .period-month.is-current{box-shadow:inset 0 0 0 1.5px var(--violet-300)}
html[data-theme="dark"] .period-month.is-selected{background:var(--brand);color:#ffffff;box-shadow:0 6px 16px rgba(29,111,224,0.3)}
html[data-theme="dark"] .period-month.is-selected:hover,html[data-theme="dark"] .period-month.is-selected:focus-visible{background:var(--brand-dark);color:#ffffff}
html[data-theme="dark"] .period-dot{background:var(--bibo-green);box-shadow:0 0 0 2px rgba(34,160,107,0.15)}
html[data-theme="dark"] .period-month.is-selected .period-dot{background:#111a2c;box-shadow:none}
html[data-theme="dark"] .period-pop-foot{border-top:1px solid var(--line);color:var(--muted)}
html[data-theme="dark"] .period-foot-btn{border:0;background:transparent;color:var(--muted)}
html[data-theme="dark"] .period-foot-btn.is-primary{color:var(--brand)}
html[data-theme="dark"] .period-foot-btn:hover{background:var(--brand-soft);color:var(--brand)}
html[data-theme="dark"] .period-empty{border:1px dashed #284675;background:linear-gradient(135deg,#162034,#111a2c)}
html[data-theme="dark"] .period-empty-icon{background:var(--brand-soft);color:var(--brand)}
html[data-theme="dark"] .period-empty-icon svg{fill:none;stroke:currentColor}
html[data-theme="dark"] .period-empty-text b{color:var(--ink)}
html[data-theme="dark"] .period-empty-text small{color:var(--muted)}
html[data-theme="dark"] .onboarding-steps .onboarding-step-locked{border:1px dashed var(--line);color:var(--muted)}
html[data-theme="dark"] .onboarding-step-locked>i{background:var(--surface-soft)}
html[data-theme="dark"] .onboarding-step-locked.done>i{background:var(--success-bg);color:var(--success)}
html[data-theme="dark"] select.bselect{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E")!important}
html[data-theme="dark"] select.bselect[aria-expanded="true"]{border-color:var(--brand)!important;box-shadow:0 0 0 3px rgba(29,111,224,0.12)!important}
html[data-theme="dark"] .bpop{border:1px solid var(--line);background:#111a2c;color:var(--text);box-shadow:0 20px 50px rgba(0,0,0,0.48),0 2px 6px rgba(0,0,0,0.15)}
html[data-theme="dark"] .bpop svg{fill:none;stroke:currentColor}
html[data-theme="dark"] .bselect-search svg{color:var(--muted)}
html[data-theme="dark"] .bselect-search input{border:1px solid var(--line);outline:0;background:var(--surface-soft);color:var(--ink)}
html[data-theme="dark"] .bselect-search input:focus{border-color:var(--brand);box-shadow:0 0 0 3px rgba(29,111,224,0.12)}
html[data-theme="dark"] .bselect-list{outline:0}
html[data-theme="dark"] .bselect-opt{color:var(--text)}
html[data-theme="dark"] .bselect-opt.is-active{background:var(--brand-soft);color:var(--brand)}
html[data-theme="dark"] .bselect-opt.is-selected{color:var(--brand)}
html[data-theme="dark"] .bselect-opt.is-empty{color:var(--muted)}
html[data-theme="dark"] .bselect-group{color:var(--muted)}
html[data-theme="dark"] .bselect-none{color:var(--muted)}
html[data-theme="dark"] .bdate-nav{border:1px solid var(--line);background:#111a2c;color:var(--text)}
html[data-theme="dark"] .bdate-nav:hover{border-color:var(--violet-200);background:var(--brand-soft);color:var(--brand)}
html[data-theme="dark"] .bdate-title{border:0;background:transparent;color:var(--ink)}
html[data-theme="dark"] .bdate-title:hover{background:var(--brand-soft);color:var(--brand)}
html[data-theme="dark"] .bdate-title.is-static:hover{background:transparent;color:var(--ink)}
html[data-theme="dark"] .bdate-week span{color:var(--muted)}
html[data-theme="dark"] .bdate-week span.is-weekend{color:#e3767c}
html[data-theme="dark"] .bdate-day{border:0;background:transparent;color:var(--text)}
html[data-theme="dark"] .bdate-day:hover,html[data-theme="dark"] .bdate-day:focus-visible{background:var(--brand-soft);color:var(--brand);outline:0}
html[data-theme="dark"] .bdate-day.is-weekend{color:#dc757b}
html[data-theme="dark"] .bdate-day.is-out{color:#6e7f9c}
html[data-theme="dark"] .bdate-day.is-today{box-shadow:inset 0 0 0 1.5px var(--violet-300)}
html[data-theme="dark"] .bdate-day.is-selected,html[data-theme="dark"] .bdate-cell.is-selected,html[data-theme="dark"] .bdate-tick.is-selected{background:var(--brand);color:#ffffff;box-shadow:0 5px 14px rgba(29,111,224,0.28)}
html[data-theme="dark"] .bdate-day:disabled{background:transparent}
html[data-theme="dark"] .bdate-cell{border:0;background:transparent;color:var(--text)}
html[data-theme="dark"] .bdate-cell:hover{background:var(--brand-soft);color:var(--brand)}
html[data-theme="dark"] .bdate-cell.is-today{box-shadow:inset 0 0 0 1.5px var(--violet-300)}
html[data-theme="dark"] .bdate-time{border-top:1px solid var(--line)}
html[data-theme="dark"] .bdate-pop.is-time-only .bdate-time{border-top:0}
html[data-theme="dark"] .bdate-col-label{color:var(--muted)}
html[data-theme="dark"] .bdate-col{border:1px solid var(--line)}
html[data-theme="dark"] .bdate-tick{border:0;background:transparent;color:var(--text)}
html[data-theme="dark"] .bdate-tick:hover{background:var(--brand-soft);color:var(--brand)}
html[data-theme="dark"] .bdate-foot{border-top:1px solid var(--line)}
html[data-theme="dark"] .bdate-foot-btn{border:0;background:transparent;color:var(--muted)}
html[data-theme="dark"] .bdate-foot-btn.is-primary{color:var(--brand)}
html[data-theme="dark"] .bdate-foot-btn:hover{background:var(--brand-soft);color:var(--brand)}
html[data-theme="dark"] .localized-date .ld-icon{color:var(--muted)}
html[data-theme="dark"] .localized-date .ld-icon svg{fill:none;stroke:currentColor}
html[data-theme="dark"] .localized-date-value.is-placeholder{color:#707f99}
html[data-theme="dark"] .localized-date:hover .localized-date-value{border-color:var(--line-strong)}
html[data-theme="dark"] .localized-date:focus-within .localized-date-value,html[data-theme="dark"] .localized-date.is-open .localized-date-value{border-color:var(--brand);box-shadow:0 0 0 3px rgba(29,111,224,0.12)}
html[data-theme="dark"] .localized-date:focus-within .ld-icon,html[data-theme="dark"] .localized-date.is-open .ld-icon{color:var(--brand)}
html[data-theme="dark"] .bmulti{border:1px solid var(--line-strong);background:#111a2c}
html[data-theme="dark"] .bmulti-head{border-bottom:1px solid var(--line);background:var(--surface-soft)}
html[data-theme="dark"] .bmulti-search svg{fill:none;stroke:var(--muted)}
html[data-theme="dark"] .bmulti-search input{border:1px solid var(--line);outline:0;background:#111a2c;color:var(--ink)}
html[data-theme="dark"] .bmulti-search input:focus{border-color:var(--brand);box-shadow:0 0 0 3px rgba(29,111,224,0.12)}
html[data-theme="dark"] .bmulti-count{color:var(--muted)}
html[data-theme="dark"] .bmulti-bulk{border:0;background:transparent;color:var(--brand)}
html[data-theme="dark"] .bmulti-bulk:hover{background:var(--brand-soft)}
html[data-theme="dark"] .bmulti-opt{color:var(--text)!important}
html[data-theme="dark"] .bmulti-opt:hover{background:var(--brand-soft)}
html[data-theme="dark"] .bmulti-opt.is-on{color:var(--ink)!important}
html[data-theme="dark"] .bmulti .bmulti-opt>span{color:inherit}
html[data-theme="dark"] :where(input[type=checkbox],input[type=radio]){border:1.5px solid #284675;background:#111a2c}
html[data-theme="dark"] :where(input[type=checkbox])::before{background:#111a2c}
html[data-theme="dark"] :where(input[type=radio])::before{background:#111a2c}
html[data-theme="dark"] :where(input[type=checkbox],input[type=radio]):checked{border-color:var(--brand);background:var(--brand)}
html[data-theme="dark"] :where(input[type=checkbox],input[type=radio]):hover:not(:disabled){border-color:var(--brand)}
html[data-theme="dark"] :where(input[type=checkbox],input[type=radio]):focus-visible{outline:0;box-shadow:0 0 0 3px rgba(29,111,224,0.2)}
html[data-theme="dark"] input[type=file]{color:var(--muted)}
html[data-theme="dark"] input[type=file]::file-selector-button{border:1px solid var(--violet-200);background:var(--brand-soft);color:var(--brand)}
html[data-theme="dark"] input[type=file]::file-selector-button:hover{background:var(--brand);color:#ffffff}
html[data-theme="dark"] .today-kpi{border:1px solid var(--line);border-left:4px solid var(--line-strong);background:#111a2c;color:var(--text);box-shadow:var(--shadow-sm)}
html[data-theme="dark"] .today-kpi:hover{box-shadow:0 8px 22px rgba(0,0,0,0.21);color:var(--text)}
html[data-theme="dark"] .today-kpi span{color:var(--muted)}
html[data-theme="dark"] .today-kpi b{color:var(--ink)}
html[data-theme="dark"] .today-kpi small{color:var(--muted)}
html[data-theme="dark"] .today-kpi.is-ok{border-left-color:var(--success)}
html[data-theme="dark"] .today-kpi.is-warn{border-left-color:var(--bibo-sun)}
html[data-theme="dark"] .today-kpi.is-danger{border-left-color:var(--danger)}
html[data-theme="dark"] .today-kpi.is-info{border-left-color:var(--brand)}
html[data-theme="dark"] .today-group{border-top:1px solid var(--line)}
html[data-theme="dark"] .today-group:first-of-type{border-top:0}
html[data-theme="dark"] .today-group-head b{color:var(--ink)}
html[data-theme="dark"] .today-group-head span{color:var(--muted)}
html[data-theme="dark"] .warn-text{color:#ffc352}
html[data-theme="dark"] .today-label{color:var(--danger)}
html[data-theme="dark"] .chip{border:1px solid var(--line);background:var(--surface-soft);color:var(--text)}
html[data-theme="dark"] .chip:hover{border-color:var(--violet-200);background:var(--brand-soft);color:var(--brand)}
html[data-theme="dark"] .chip-danger{border-color:#583248;background:var(--danger-bg);color:var(--danger)}
html[data-theme="dark"] .chip.muted{color:var(--muted)}
html[data-theme="dark"] .today-list li:hover{background:var(--surface-soft)}
html[data-theme="dark"] .today-list li>a{color:var(--ink)}
html[data-theme="dark"] .today-list li>span{color:var(--muted)}
html[data-theme="dark"] .today-list li.is-late{background:var(--danger-bg)}
html[data-theme="dark"] .today-list li.is-today{background:var(--brand-soft)}
html[data-theme="dark"] .today-ok{color:var(--success)}
html[data-theme="dark"] .today-more{color:var(--muted)}
html[data-theme="dark"] .today-money a{border:1px solid var(--line);background:var(--surface-soft);color:var(--text)}
html[data-theme="dark"] .today-money a:hover{border-color:var(--violet-200)}
html[data-theme="dark"] .today-money span{color:var(--muted)}
html[data-theme="dark"] .today-money b{color:var(--ink)}
html[data-theme="dark"] .today-money b.red{color:var(--danger)}
html[data-theme="dark"] .today-money small{color:var(--muted)}
html[data-theme="dark"] .nav-badge{background:var(--danger);color:#ffffff}
html[data-theme="dark"] button.topbar-bell{border:0;background:transparent}
html[data-theme="dark"] .bell-panel{border:1px solid var(--line);background:#111a2c;box-shadow:0 20px 50px rgba(0,0,0,0.48)}
html[data-theme="dark"] .bell-panel header{color:var(--ink)}
html[data-theme="dark"] .bell-item{color:var(--text)}
html[data-theme="dark"] .bell-item:hover{background:var(--surface-soft);color:var(--ink)}
html[data-theme="dark"] .bell-item.tone-danger b{background:var(--danger-bg);color:var(--danger)}
html[data-theme="dark"] .bell-item.tone-warn b{background:var(--warning-bg);color:var(--warning)}
html[data-theme="dark"] .bell-item.tone-info b{background:var(--brand-soft);color:var(--brand)}
html[data-theme="dark"] .bell-empty{color:var(--success)}
html[data-theme="dark"] .bell-panel footer{border-top:1px solid var(--line)}
html[data-theme="dark"] .debt-bulk .btn svg{fill:none;stroke:currentColor}
html[data-theme="dark"] .debt-bulk .btn b{background:var(--brand-soft);color:var(--brand)}
html[data-theme="dark"] .debt-register-table td.num small{color:#9aa6b7}
html[data-theme="dark"] .debt-register-table .table-actions button.mini-action{border:1px solid var(--line);background:transparent}
html[data-theme="dark"] .promise-chip+small{color:var(--muted)}
html[data-theme="dark"] .promise-waiting{background:var(--brand-soft);color:var(--brand)}
html[data-theme="dark"] .promise-today{background:var(--warning-bg);color:var(--warning)}
html[data-theme="dark"] .promise-overdue{background:var(--danger-bg);color:var(--danger)}
html[data-theme="dark"] .debt-note-form header p{color:var(--muted)}
html[data-theme="dark"] .debt-note-kinds span{border:1px solid var(--line);color:var(--text)}
html[data-theme="dark"] .debt-note-kinds input:checked+span{border-color:var(--brand);background:var(--brand-soft);color:var(--brand)}
html[data-theme="dark"] .debt-note-kinds input:focus-visible+span{box-shadow:0 0 0 3px rgba(29,111,224,0.2)}
html[data-theme="dark"] .debt-note-form label>span{color:var(--muted)}
html[data-theme="dark"] .debt-timeline li{border-bottom:1px solid var(--line)}
html[data-theme="dark"] .debt-timeline li:last-child{border-bottom:0}
html[data-theme="dark"] .debt-note-icon{background:var(--surface-soft)}
html[data-theme="dark"] .debt-timeline b{color:var(--ink)}
html[data-theme="dark"] .debt-timeline p{color:var(--text)}
html[data-theme="dark"] .debt-timeline small{color:var(--muted)}
html[data-theme="dark"] .debt-note-promise .debt-note-icon{background:var(--brand-soft)}
html[data-theme="dark"] .debt-note-reminder .debt-note-icon{background:var(--success-bg)}
html[data-theme="dark"] .debt-timeline-empty{color:var(--muted)}
html[data-theme="dark"] .apply-lead{color:var(--muted)}
html[data-theme="dark"] .apply-form fieldset{border:0}
html[data-theme="dark"] .apply-form legend{color:var(--ink)}
html[data-theme="dark"] .apply-privacy{color:var(--muted)}
html[data-theme="dark"] .apply-done-icon{background:var(--success-bg);color:var(--success)}
html[data-theme="dark"] .apply-share p{color:var(--muted)}
html[data-theme="dark"] .apply-share-qr{border:1px solid var(--line);background:#111a2c}
html[data-theme="dark"] .occ-bar{background:#1b2740}
html[data-theme="dark"] .occ-bar span{background:var(--bibo-green)}
html[data-theme="dark"] .occ-bar.is-near span{background:var(--bibo-sun)}
html[data-theme="dark"] .occ-bar.is-full span{background:var(--danger)}
html[data-theme="dark"] .occ-pct{color:var(--muted)}
html[data-theme="dark"] .fc-cell b{color:var(--ink)}
html[data-theme="dark"] .fc-cell span{color:var(--muted)}
html[data-theme="dark"] .green{color:var(--success)}
html[data-theme="dark"] .bar-in{background:var(--bibo-green)}
html[data-theme="dark"] .bar-out{background:var(--danger)}
html[data-theme="dark"] .churn-col small{color:var(--muted)}
html[data-theme="dark"] .legend-chip{color:var(--muted)}
html[data-theme="dark"] .reason-name{color:var(--ink)!important}
html[data-theme="dark"] .reason-count{color:var(--ink)}
html[data-theme="dark"] .occ-subhead{color:var(--muted)}
html[data-theme="dark"] .import-steps li{border:1px solid var(--line);background:#111a2c;color:var(--muted)}
html[data-theme="dark"] .import-steps li b{background:var(--surface-soft);color:var(--muted)}
html[data-theme="dark"] .import-steps li.is-current{border-color:var(--brand);color:var(--brand)}
html[data-theme="dark"] .import-steps li.is-current b{background:var(--brand);color:#ffffff}
html[data-theme="dark"] .import-steps li.is-done{color:var(--success)}
html[data-theme="dark"] .import-steps li.is-done b{background:var(--success-bg);color:var(--success)}
html[data-theme="dark"] .import-start .btn svg{fill:none;stroke:currentColor}
html[data-theme="dark"] .import-tips{color:var(--text)}
html[data-theme="dark"] .import-drop{border:2px dashed var(--line-strong);background:var(--surface-soft)}
html[data-theme="dark"] .import-drop:hover,html[data-theme="dark"] .import-drop.is-over{border-color:var(--brand);background:var(--brand-soft)}
html[data-theme="dark"] .import-drop.has-file{border-color:var(--success)}
html[data-theme="dark"] .import-drop span{color:var(--ink)}
html[data-theme="dark"] .import-drop small{color:var(--muted)}
html[data-theme="dark"] .import-billing>span{color:var(--ink)}
html[data-theme="dark"] .import-billing>small{color:var(--muted)}
html[data-theme="dark"] .import-table td small{color:var(--muted)}
html[data-theme="dark"] .import-table tr.import-bad td{background:var(--danger-bg)}
html[data-theme="dark"] .import-table tr.import-warn td{background:var(--warning-bg)}
html[data-theme="dark"] .holiday-hint{color:var(--muted)}
html[data-theme="dark"] .cal-mark{color:var(--bibo-sun)}
html[data-theme="dark"] .cal label.is-holiday::after{background:var(--danger)}
html[data-theme="dark"] .holiday-list{color:var(--text)}
html[data-theme="dark"] .holiday-list b{color:var(--danger)}
html[data-theme="dark"] .geo-pill{background:#1b2740;color:#9c9aa7;border:1px solid #2c3c5a}
html[data-theme="dark"] .geo-pill[data-state="ok"]{background:#163536;color:#67ea98;border-color:#286257}
html[data-theme="dark"] .geo-pill[data-state="denied"],html[data-theme="dark"] .geo-pill[data-state="unavailable"]{background:#2f242d;color:#f98758;border-color:#584044}
html[data-theme="dark"] .geo-wall{background:rgba(2,6,16,0.78)}
html[data-theme="dark"] .geo-wall-card{background:#111a2c;color:#d2d0da;box-shadow:0 20px 60px rgba(0,0,0,0.55)}
html[data-theme="dark"] .staff-person{border:1px solid #2c3c5a;background:#111a2c;color:inherit}
html[data-theme="dark"] .staff-person:hover:not(:disabled){border-color:#323275;background:#162034}
html[data-theme="dark"] .staff-person.on{border-color:#876ee2;box-shadow:0 0 0 2px rgba(108,78,216,0.15)}
html[data-theme="dark"] .staff-dot{background:#2a3854}
html[data-theme="dark"] .staff-dot.fresh{background:#16a34a;box-shadow:0 0 0 3px rgba(22,163,74,0.18)}
html[data-theme="dark"] .staff-dot.stale{background:#9ca3af}
html[data-theme="dark"] .child-delete-form .btn.danger-outline:not(:disabled){background:#2c1e2f}
html[data-theme="dark"] .tag.t-overdue{background:var(--danger-bg);color:var(--danger)}
html[data-theme="dark"] .staff-att-chips span{color:var(--muted)}
html[data-theme="dark"] .staff-att-chips .ok,html[data-theme="dark"] b.ok{color:var(--success)}
html[data-theme="dark"] .staff-att-chips .late,html[data-theme="dark"] b.late{color:#f98758}
html[data-theme="dark"] .staff-att-chips .absent,html[data-theme="dark"] b.absent{color:var(--danger)}
html[data-theme="dark"] .staff-reject{color:#f98758}
html[data-theme="dark"] .staff-place-map{border:1px solid var(--line)}

/* ===== Tungi mavzu: qo'lda sozlangan qism (generatsiyadan keyin, ustun turadi) ===== */
html[data-theme="dark"]{
  color-scheme:dark;
  --canvas:#0b1220;--surface:#111a2c;--surface-soft:#162034;
  --ink:#eef3fb;--text:#c5d0e0;--muted:#8796ad;
  --line:#22304a;--line-strong:#2c3c5a;
  --brand:#4f8ff7;--brand-dark:#3b7ce8;--brand-soft:rgba(79,143,247,.14);
  --violet-50:rgba(79,143,247,.12);--violet-100:rgba(79,143,247,.2);--violet-200:rgba(79,143,247,.34);
  --violet-300:rgba(79,143,247,.55);--violet-500:#5b9bff;--violet-600:#4f8ff7;--violet-700:#8ab8ff;
  --bibo-sky:#4fb4f5;--bibo-green:#34d399;--bibo-sun:#fbbf4a;--bibo-indigo:#8b7ff7;
  --success:#34d399;--success-bg:rgba(52,211,153,.12);
  --warning:#fbbf4a;--warning-bg:rgba(251,191,74,.12);
  --danger:#ff6b72;--danger-bg:rgba(255,107,114,.12);
  --info:#6aa8ff;
  --shadow-sm:0 1px 2px rgba(0,0,0,.35),0 8px 24px rgba(0,0,0,.18);
  --shadow-md:0 20px 56px rgba(0,0,0,.55);
  --side-bg:#0d1526;
}
html[data-theme="dark"],html[data-theme="dark"] body{background-color:var(--canvas)}
html[data-theme="dark"] body{
  background-image:
    radial-gradient(1100px 560px at 88% -12%,rgba(79,143,247,.11),transparent 62%),
    radial-gradient(900px 520px at 20% 115%,rgba(139,127,247,.08),transparent 60%);
  background-attachment:fixed;
}
html[data-theme="dark"] ::selection{background:rgba(79,143,247,.4);color:#fff}
html[data-theme="dark"] ::placeholder{color:#5f6f89}

/* Logotip: to'q ko'k yozuv qorong'i fonda ko'rinsin */
html[data-theme="dark"] .bibo-wordmark,html[data-theme="dark"] .mobile-brand img+img{filter:brightness(1.4)}
html[data-theme="dark"] .login-logo{filter:brightness(1.12)}

/* Yon panel — kartalardan biroz to'qroq, faol bo'lim porlaydi */
html[data-theme="dark"] .side,html[data-theme="dark"] .mobile-bar{background:var(--side-bg)}
@media(min-width:761px){
  html[data-theme="dark"] .layout{background:linear-gradient(90deg,var(--side-bg) 247px,var(--line) 247px 248px,transparent 248px)}
  html[data-theme="dark"] .side-collapsed .layout{background:linear-gradient(90deg,var(--side-bg) 79px,var(--line) 79px 80px,transparent 80px)}
  html[data-theme="dark"] .layout:not(:has(>.side)){background:none}
}
html[data-theme="dark"] .side a:hover,html[data-theme="dark"] .nav-group summary:hover{background:rgba(255,255,255,.045);color:var(--ink)}
html[data-theme="dark"] .side a.on,html[data-theme="dark"] .nav-children a.on{
  background:linear-gradient(90deg,rgba(79,143,247,.24),rgba(79,143,247,.05));color:#d6e6ff;
  box-shadow:inset 2px 0 0 var(--brand);
}
html[data-theme="dark"] .side a.on .nav-icon,html[data-theme="dark"] .nav-group.has-active>summary .nav-icon{color:#7fb0ff;filter:drop-shadow(0 0 6px rgba(79,143,247,.55))}
html[data-theme="dark"] .account-row,html[data-theme="dark"] .logout-btn,html[data-theme="dark"] .side-toggle,html[data-theme="dark"] .account-language{background:var(--surface)}
html[data-theme="dark"] .logout-btn:hover{background:var(--danger-bg);border-color:rgba(255,107,114,.35);color:var(--danger)}

/* Yuqori panel — shisha effekti */
html[data-theme="dark"] .topbar{background:rgba(11,18,32,.72);backdrop-filter:blur(14px) saturate(1.4);border-bottom-color:var(--line)}
html[data-theme="dark"] .topbar-search,html[data-theme="dark"] .topbar-period{background:rgba(255,255,255,.035);border-color:var(--line)}
html[data-theme="dark"] .topbar-search:hover{background:rgba(255,255,255,.06);border-color:var(--violet-200)}
html[data-theme="dark"] .topbar-bell b{border-color:var(--canvas)}
html[data-theme="dark"] .topbar-avatar{background:linear-gradient(145deg,#2f6fe0,#6a5cf0);color:#fff;box-shadow:0 0 0 2px rgba(79,143,247,.25)}

/* Kartalar — yumshoq ichki yorug'lik */
html[data-theme="dark"] :is(.card,.metric,.kpi-card,.finance-kpi,.finance-panel,.payment-summary-grid article,.child-summary-card,.child-detail-card,.design-form-card){
  box-shadow:var(--shadow-sm),inset 0 1px 0 rgba(255,255,255,.035);
}
html[data-theme="dark"] .kpi-card{
  background:radial-gradient(200px circle at 100% 0,var(--kpi-glow,rgba(79,143,247,.2)),transparent 70%),var(--surface);
}
html[data-theme="dark"] .kpi-plan{--kpi-glow:rgba(79,143,247,.22)}
html[data-theme="dark"] .kpi-income{--kpi-glow:rgba(52,211,153,.17)}
html[data-theme="dark"] .kpi-debt{--kpi-glow:rgba(255,107,114,.17)}
html[data-theme="dark"] .kpi-children{--kpi-glow:rgba(251,191,74,.16)}
html[data-theme="dark"] .kpi-bar i{box-shadow:0 0 12px rgba(52,211,153,.45)}

/* Tugmalar */
html[data-theme="dark"] .btn{background:var(--surface-soft);border-color:var(--line-strong);color:var(--text)}
html[data-theme="dark"] .btn:hover{background:#1d2a45;border-color:#3a4d73;color:var(--ink)}
html[data-theme="dark"] .btn.pri{
  background:linear-gradient(180deg,#5b9bff,#3b7ce8);border-color:#4f8ff7;color:#fff;
  box-shadow:0 6px 20px rgba(79,143,247,.32),inset 0 1px 0 rgba(255,255,255,.18);
}
html[data-theme="dark"] .btn.pri:hover{background:linear-gradient(180deg,#6aa6ff,#4586f0);color:#fff;box-shadow:0 8px 26px rgba(79,143,247,.45),inset 0 1px 0 rgba(255,255,255,.2)}

/* Formalar — kartadan chuqurroq maydonlar */
html[data-theme="dark"] :is(.input,.localized-date-value){background-color:#0d1526;border-color:var(--line-strong);color:var(--ink)}
html[data-theme="dark"] .input:hover{border-color:#3a4d73}
html[data-theme="dark"] .input:focus{border-color:var(--brand);box-shadow:0 0 0 3px rgba(79,143,247,.2)}
html[data-theme="dark"] input:-webkit-autofill{-webkit-box-shadow:0 0 0 1000px #0d1526 inset;-webkit-text-fill-color:var(--ink)}

/* Jadvallar */
html[data-theme="dark"] tbody tr:hover{background:rgba(255,255,255,.025)}
html[data-theme="dark"] .clickable-row:hover{background:var(--violet-50)}

/* Modal va tezkor qidiruv */
html[data-theme="dark"] :is(.modal,.command-box,.person-merge-dialog,.action-popover){background:#131d31;border-color:var(--line)}
html[data-theme="dark"] .command-footer{background:#0f1829}

/* Oxirgi jilo: grafik chiziqlari biroz porlaydi */
html[data-theme="dark"] .chart-line{filter:drop-shadow(0 0 4px currentColor)}
html[data-theme="dark"] .chart-line.planned{color:rgba(79,143,247,.5)}
html[data-theme="dark"] .chart-line.collected{color:rgba(52,211,153,.45)}
html[data-theme="dark"] .chart-line.debt{color:rgba(255,107,114,.45)}

/* Yig'ilgan menyu yorlig'i */
html[data-theme="dark"] .side-tip{background:#25355a;color:var(--ink);box-shadow:0 10px 28px rgba(0,0,0,.5)}

/* Oy tanlagich */
html[data-theme="dark"] .period-trigger{background:rgba(255,255,255,.035);border-color:var(--line)}
html[data-theme="dark"] .period-trigger:hover{background:rgba(255,255,255,.06);border-color:var(--violet-200)}
html[data-theme="dark"] .period-trigger[aria-expanded="true"]{border-color:var(--brand);box-shadow:0 0 0 3px rgba(79,143,247,.22)}
html[data-theme="dark"] .period-pop{background:#131d31;border-color:var(--line-strong);box-shadow:0 24px 60px rgba(0,0,0,.6),0 0 0 1px rgba(79,143,247,.06)}
html[data-theme="dark"] .period-year-nav{background:var(--surface-soft);border-color:var(--line-strong)}
html[data-theme="dark"] .period-month.is-selected{background:linear-gradient(180deg,#5b9bff,#3b7ce8);box-shadow:0 6px 18px rgba(79,143,247,.4)}
html[data-theme="dark"] .period-dot{box-shadow:0 0 6px rgba(52,211,153,.7)}
html[data-theme="dark"] .period-empty{background:linear-gradient(135deg,rgba(79,143,247,.08),rgba(79,143,247,.02));border-color:rgba(79,143,247,.3)}
html[data-theme="dark"] .period-month.is-selected .period-dot{background:#fff;box-shadow:0 0 6px rgba(255,255,255,.6)}
html[data-theme="dark"] .period-picker.is-field .period-trigger{background:#0d1526;border-color:var(--line-strong)}
html[data-theme="dark"] .period-picker.is-field .period-trigger:hover{border-color:#3a4d73}

/* Boshqaruv elementlari (ui.js) */
html[data-theme="dark"] .bpop{background:#131d31;border-color:var(--line-strong);box-shadow:0 24px 60px rgba(0,0,0,.6),0 0 0 1px rgba(79,143,247,.05)}
html[data-theme="dark"] .bselect-search input,html[data-theme="dark"] .bmulti-search input{background:#0d1526;border-color:var(--line-strong)}
html[data-theme="dark"] .bdate-nav{background:var(--surface-soft);border-color:var(--line-strong)}
html[data-theme="dark"] .bdate-day.is-out{color:#4a5872}
html[data-theme="dark"] .bdate-day.is-weekend,html[data-theme="dark"] .bdate-week span.is-weekend{color:#ff8a90}
html[data-theme="dark"] .bdate-day.is-selected,html[data-theme="dark"] .bdate-cell.is-selected,html[data-theme="dark"] .bdate-tick.is-selected{background:linear-gradient(180deg,#5b9bff,#3b7ce8);color:#fff;box-shadow:0 6px 16px rgba(79,143,247,.4)}
html[data-theme="dark"] .bmulti{background:#0d1526;border-color:var(--line-strong)}
html[data-theme="dark"] .bmulti-head{background:var(--surface)}
html[data-theme="dark"] :where(input[type=checkbox],input[type=radio]){border-color:#3a4d73;background:#0d1526}
html[data-theme="dark"] :where(input[type=checkbox],input[type=radio]):checked{border-color:var(--brand);background:var(--brand)}
html[data-theme="dark"] .localized-date-value.is-placeholder{color:#5f6f89}
/* Telefonda qoladigan tizim ro'yxati ham qorong'i bo'lsin */
html[data-theme="dark"] select option{background:#131d31;color:#eef3fb}

/* Bugun sahifasi va qo'ng'roqcha */
html[data-theme="dark"] .today-kpi,html[data-theme="dark"] .bell-panel{background:var(--surface)}
html[data-theme="dark"] .bell-panel{background:#131d31;border-color:var(--line-strong);box-shadow:0 24px 60px rgba(0,0,0,.6)}
html[data-theme="dark"] .chip-danger{border-color:rgba(255,107,114,.35)}

/* Onlayn ariza va bandlik */
html[data-theme="dark"] .apply-share-qr{background:#fff}
html[data-theme="dark"] .occ-bar{background:#1b2740}

/* Import */
html[data-theme="dark"] .import-steps li{background:var(--surface)}
