/* FoundHub dark theme. Generated from public baseline; appearance only. */
@media screen {
html[data-fh-theme="dark"]{color-scheme:dark;--bg:#10141d;--panel:#171d29;--ink:#edf1f9;--text:#edf1f9;--muted:#abb6ca;--line:#303a4d;--blue:#8aafff;--green:#79d8a7;--orange:#f6c276;--pink:#f298c6;--lilac:#b3a3ff;--cyan:#76d7e7;--red:#ff9ca5;--shadow:0 15px 45px #0005;}
/* warehouse.css */
html[data-fh-theme="dark"] .sidebar{background:rgba(23,29,41,0.940)}
html[data-fh-theme="dark"] .nav-link{color:#edf1f9}
html[data-fh-theme="dark"] .nav-link:hover,html[data-fh-theme="dark"] .nav-link.active{background:#202332;color:#edf1f9}
html[data-fh-theme="dark"] .chevron{color:#abb6ca}
html[data-fh-theme="dark"] .nav-count{background:#212531}
html[data-fh-theme="dark"] .sidebar-footer{color:#edf1f9}
html[data-fh-theme="dark"] .sidebar-footer small{color:#abb6ca}
html[data-fh-theme="dark"] .status-dot{background:#26503a;box-shadow:0 0 0 4px rgba(0,0,0,0.420)}
html[data-fh-theme="dark"] .topbar{border-bottom:1px solid rgba(49,51,64,0.850);background:rgba(23,29,41,0.840)}
html[data-fh-theme="dark"] .breadcrumbs{color:#abb6ca}
html[data-fh-theme="dark"] .breadcrumbs b{color:#abb6ca}
html[data-fh-theme="dark"] .breadcrumbs strong{color:#edf1f9}
html[data-fh-theme="dark"] .icon-button{background:#171d29}
html[data-fh-theme="dark"] .icon-button:hover{background:#171d29}
html[data-fh-theme="dark"] .avatar{background:#1f2735;color:#edf1f9}
html[data-fh-theme="dark"] .eyebrow{color:#abb6ca}
html[data-fh-theme="dark"] .primary{border:1px solid #33353e;background:#1f2735;color:#edf1f9}
html[data-fh-theme="dark"] .primary:hover{background:#1f2735}
html[data-fh-theme="dark"] .secondary{background:#171d29}
html[data-fh-theme="dark"] .danger{border:1px solid #6b2e33;background:#502628;color:#edf1f9}
html[data-fh-theme="dark"] .metric-card{box-shadow:0 8px 30px rgba(0,0,0,0.150)}
html[data-fh-theme="dark"] .metric-card em{color:#abb6ca}
html[data-fh-theme="dark"] .blue{background:#1a2337;color:#90b3f4}
html[data-fh-theme="dark"] .green{background:#1a3729;color:#9be9c6}
html[data-fh-theme="dark"] .orange{background:#372a1a;color:#eec396}
html[data-fh-theme="dark"] .pink{background:#371a29;color:#e4a0c0}
html[data-fh-theme="dark"] .lilac{background:#171d29;color:#a69ae9}
html[data-fh-theme="dark"] .cyan{background:#1a3337;color:#93e2f0}
html[data-fh-theme="dark"] .module-card{background:#171d29;box-shadow:0 7px 25px rgba(0,0,0,0.150)}
html[data-fh-theme="dark"] .module-card i{color:#abb6ca}
html[data-fh-theme="dark"] .toolbar select,html[data-fh-theme="dark"] .page-heading select{background:#171d29;color:#edf1f9}
html[data-fh-theme="dark"] .search{background:#171d29;color:#abb6ca}
html[data-fh-theme="dark"] .table-card{background:#171d29;box-shadow:0 8px 30px rgba(0,0,0,0.150)}
html[data-fh-theme="dark"] th,html[data-fh-theme="dark"] td{border-bottom:1px solid #303440}
html[data-fh-theme="dark"] th{background:#171d29;color:#abb6ca}
html[data-fh-theme="dark"] tbody tr:hover{background:#171d29}
html[data-fh-theme="dark"] .cell-sub{color:#abb6ca}
html[data-fh-theme="dark"] .badge{background:#202532;color:#edf1f9}
html[data-fh-theme="dark"] .badge.good{background:#1a3729;color:#98ebc6}
html[data-fh-theme="dark"] .badge.warn{background:#372b1a;color:#eec296}
html[data-fh-theme="dark"] .badge.bad{background:#371a1d;color:#e2a2a7}
html[data-fh-theme="dark"] .badge.info{background:#1a2337;color:#96b6ed}
html[data-fh-theme="dark"] .empty{color:#abb6ca}
html[data-fh-theme="dark"] .upload-card{background:#171d29}
html[data-fh-theme="dark"] label{color:#edf1f9}
html[data-fh-theme="dark"] input,html[data-fh-theme="dark"] select,html[data-fh-theme="dark"] textarea{border:1px solid #303440;background:#171d29;color:#edf1f9}
html[data-fh-theme="dark"] input:focus,html[data-fh-theme="dark"] select:focus,html[data-fh-theme="dark"] textarea:focus{border-color:#2e426b;box-shadow:0 0 0 3px rgba(0,0,0,0.150)}
html[data-fh-theme="dark"] .dropzone{border:1.5px dashed #2f3441;background:#171d29}
html[data-fh-theme="dark"] .dropzone.drag{background:#171d29}
html[data-fh-theme="dark"] .dropzone small{color:#abb6ca}
html[data-fh-theme="dark"] .upload-icon{background:#1c2635;color:#abb6ca}
html[data-fh-theme="dark"] .form-hint{color:#abb6ca}
html[data-fh-theme="dark"] .receipt-workspace{background:#171d29}
html[data-fh-theme="dark"] .receipt-line{border:1px solid #2e3543}
html[data-fh-theme="dark"] .flow{background:#171d29}
html[data-fh-theme="dark"] .flow b{background:#212431}
html[data-fh-theme="dark"] .flow i{color:#abb6ca}
html[data-fh-theme="dark"] .notice{background:#171d29}
html[data-fh-theme="dark"] .notice>span{background:#1c2635}
html[data-fh-theme="dark"] .supplier-card{background:#171d29}
html[data-fh-theme="dark"] .supplier-card dt{color:#abb6ca}
html[data-fh-theme="dark"] .plus-button{border:1px solid #303440;background:#171d29}
html[data-fh-theme="dark"] .plus-button:hover{background:#1c2635}
html[data-fh-theme="dark"] dialog{box-shadow:0 28px 80px rgba(0,0,0,0.250)}
html[data-fh-theme="dark"] dialog::backdrop{background:rgba(31,39,53,0.350)}
html[data-fh-theme="dark"] .toast{background:#1f2735;color:#edf1f9}
html[data-fh-theme="dark"] .toast.error{background:#502629}
html[data-fh-theme="dark"] .action-small{background:#171d29}
html[data-fh-theme="dark"] .action-small:hover{background:#171d29}
html[data-fh-theme="dark"] .muted-text{color:#abb6ca}
html[data-fh-theme="dark"] .positive{color:#99ebc5}
html[data-fh-theme="dark"] .negative{color:#e0a3a9}
html[data-fh-theme="dark"] .segmented{background:#202532}
html[data-fh-theme="dark"] .segmented button{color:#abb6ca}
html[data-fh-theme="dark"] .segmented button.active{background:#171d29;color:#edf1f9;box-shadow:0 3px 10px rgba(0,0,0,0.150)}
html[data-fh-theme="dark"] .manual-line{border:1px solid #2e3543;background:#171d29}
html[data-fh-theme="dark"] .low-row{background:#171d29}
html[data-fh-theme="dark"] .low-row:hover{background:#171d29!important}
html[data-fh-theme="dark"] .embedded-card{background:#171d29}
html[data-fh-theme="dark"] .manager-card{background:#171d29;box-shadow:0 7px 25px rgba(0,0,0,0.150)}
html[data-fh-theme="dark"] .manager-chip{background:#171d29}
html[data-fh-theme="dark"] .manager-chip button{background:#202532;color:#abb6ca}
html[data-fh-theme="dark"] .manager-chip button:hover{background:#371a1d;color:#e2a2a7}
html[data-fh-theme="dark"] .attribute-group{border:1px solid #2e3543;background:#171d29}
html[data-fh-theme="dark"] .receipt-mode{background:#212431}
html[data-fh-theme="dark"] .receipt-mode button{color:#abb6ca}
html[data-fh-theme="dark"] .receipt-mode button.active{background:#171d29;color:#edf1f9;box-shadow:0 3px 10px rgba(0,0,0,0.150)}
html[data-fh-theme="dark"] .size-tile{border:1px solid #2f3441;background:#171d29}
html[data-fh-theme="dark"] .size-tile small{color:#abb6ca}
html[data-fh-theme="dark"] .qty-stepper button{border:1px solid #303440;background:#171d29}
html[data-fh-theme="dark"] .danger-link{border:1px solid #6b2e36;background:#171d29;color:#e1a3a9}
html[data-fh-theme="dark"] .danger-link:hover{background:#371a1d}
html[data-fh-theme="dark"] .metric-link:hover{border-color:#2f3341}
html[data-fh-theme="dark"] .metric-link>i{color:#abb6ca}
html[data-fh-theme="dark"] .attribute-group{border:1px solid #2c3244;background:#171d29}
html[data-fh-theme="dark"] .attribute-group-head{border-bottom:1px solid #2e3543;background:#171d29}
html[data-fh-theme="dark"] .reference-row:hover{background:#171d29}
html[data-fh-theme="dark"] .delete-warning{background:#372b1a;color:#e9ca9a}
html[data-fh-theme="dark"] .force-delete{border:1px solid #6b2e35;background:#171d29}
html[data-fh-theme="dark"] .force-delete small{color:#abb6ca}
html[data-fh-theme="dark"] th.sortable:hover,html[data-fh-theme="dark"] th.sortable:focus{background:#1c2335;color:#edf1f9}
html[data-fh-theme="dark"] th.sortable::after{color:#abb6ca}
html[data-fh-theme="dark"] .task-metrics .metric-card.selected{border-color:#2e406b;box-shadow:0 0 0 3px rgba(0,0,0,0.150)}
html[data-fh-theme="dark"] .task-column{background:#202632}
html[data-fh-theme="dark"] .task-column.drag-over{border-color:#2e426b;background:#171d29;box-shadow:0 0 0 3px rgba(0,0,0,0.150)}
html[data-fh-theme="dark"] .task-column.status-done{background:#1b3627}
html[data-fh-theme="dark"] .task-column>header b{background:#171d29;color:#abb6ca}
html[data-fh-theme="dark"] .task-card{border:1px solid #2e3342;background:#171d29;box-shadow:0 5px 18px rgba(0,0,0,0.150)}
html[data-fh-theme="dark"] .task-card:hover,html[data-fh-theme="dark"] .task-card:focus{border-color:#2d3443;box-shadow:0 10px 25px rgba(0,0,0,0.150)}
html[data-fh-theme="dark"] .task-card::before{background:#1f2735}
html[data-fh-theme="dark"] .task-card.urgency-green{border-color:#30694a;background:#171d29}
html[data-fh-theme="dark"] .task-card.urgency-green::before{background:#26503b}
html[data-fh-theme="dark"] .task-card.urgency-yellow{border-color:#6b5f2e;background:#171d29}
html[data-fh-theme="dark"] .task-card.urgency-yellow::before{background:#504626}
html[data-fh-theme="dark"] .task-card.urgency-orange{border-color:#6b502e;background:#171d29}
html[data-fh-theme="dark"] .task-card.urgency-orange::before{background:#503a26}
html[data-fh-theme="dark"] .task-card.urgency-red{border-color:#6b2e33;background:#171d29}
html[data-fh-theme="dark"] .task-card.urgency-red::before{background:#502628}
html[data-fh-theme="dark"] .task-priority{color:#abb6ca}
html[data-fh-theme="dark"] .priority-urgent .task-priority{color:#e2a2a7}
html[data-fh-theme="dark"] .priority-high .task-priority{color:#eec296}
html[data-fh-theme="dark"] .task-comment-count{color:#abb6ca}
html[data-fh-theme="dark"] .task-card p{color:#abb6ca}
html[data-fh-theme="dark"] .task-card-meta{color:#abb6ca}
html[data-fh-theme="dark"] .task-avatar{background:#1e1a37;color:#aba2e1}
html[data-fh-theme="dark"] .task-card-footer{border-top:1px solid rgba(48,52,64,0.720);color:#abb6ca}
html[data-fh-theme="dark"] .task-due.overdue{color:#e3a1a6}
html[data-fh-theme="dark"] .task-due.today{color:#ebc399}
html[data-fh-theme="dark"] .task-column-empty{color:#abb6ca}
html[data-fh-theme="dark"] .task-detail-description{color:#abb6ca}
html[data-fh-theme="dark"] .task-detail-fields label small,html[data-fh-theme="dark"] .form-grid label small{color:#abb6ca}
html[data-fh-theme="dark"] .task-detail-section{border:1px solid #313440;background:#171d29}
html[data-fh-theme="dark"] .task-check{background:#171d29}
html[data-fh-theme="dark"] .task-check input:checked+span{color:#abb6ca}
html[data-fh-theme="dark"] .task-comment{background:#171d29}
html[data-fh-theme="dark"] .task-comment time,html[data-fh-theme="dark"] .task-activity-row small{color:#abb6ca}
html[data-fh-theme="dark"] .task-comment p{color:#edf1f9}
html[data-fh-theme="dark"] .task-comment-form textarea{background:#171d29}
html[data-fh-theme="dark"] .task-activity-row>span{background:#2b2650;box-shadow:0 0 0 3px rgba(0,0,0,0.420)}
html[data-fh-theme="dark"] .task-detail-actions{border-top:1px solid #313440}
html[data-fh-theme="dark"] .task-leaderboard-row{background:#171d29}
html[data-fh-theme="dark"] .task-leaderboard-row.current{border-color:#2e426b;background:#171d29}
html[data-fh-theme="dark"] .task-leaderboard-place{background:#171d29}
html[data-fh-theme="dark"] .task-complete-drop{border:1px dashed #274936;background:#171d29;color:#a3e0bd}
html[data-fh-theme="dark"] .task-leaderboard-popover{border:1px solid #2e426b;background:#171d29;box-shadow:0 16px 42px rgba(0,0,0,0.150)}
html[data-fh-theme="dark"] .stocktake-notice{background:#171d29;border-color:#6b552e}
html[data-fh-theme="dark"] .stocktake-notice>span{background:#372c1a;color:#ecc798}
html[data-fh-theme="dark"] .stocktake-workspace{border:1px solid #2b3445;background:#171d29;box-shadow:0 12px 36px rgba(0,0,0,0.150)}
html[data-fh-theme="dark"] .stocktake-summary>div{border:1px solid #313440;background:#171d29}
html[data-fh-theme="dark"] .stocktake-lines thead{background:#171d29}
html[data-fh-theme="dark"] .login-screen{background:radial-gradient(circle at 15% 10%,#171d29 0,transparent 34%),radial-gradient(circle at 90% 88%,#171d29 0,transparent 36%),#171d29}
html[data-fh-theme="dark"] .login-card{border:1px solid #2b3045;background:#171d29;box-shadow:0 28px 80px rgba(0,0,0,0.150)}
html[data-fh-theme="dark"] .login-error{color:#f19a93}
html[data-fh-theme="dark"] .logout-button{background:#171d29}
html[data-fh-theme="dark"] .logout-button:hover{border-color:#2e3342}
html[data-fh-theme="dark"] .active-return-box,html[data-fh-theme="dark"] .return-box-panel>div{background:#171d29;box-shadow:0 7px 25px rgba(0,0,0,0.150)}
html[data-fh-theme="dark"] .active-return-box{border-color:#2e406b;background:linear-gradient(145deg,#171d29,#171d29)}
html[data-fh-theme="dark"] .return-box-chip{background:#171d29}
html[data-fh-theme="dark"] .return-box-chip:hover{border-color:#283248;background:#171d29}
html[data-fh-theme="dark"] .return-box-chip.active{border-color:#2e426b;background:#171d29}
html[data-fh-theme="dark"] .filter-toolbar .search::before{color:#abb6ca}
html[data-fh-theme="dark"] .warehouse-actions{color:#abb6ca}
html[data-fh-theme="dark"] .warehouse-actions:hover{background:#212530;color:#edf1f9}
html[data-fh-theme="dark"] .stocktake-cost:invalid{border-color:#6b2e33;background:#171d29}
html[data-fh-theme="dark"] .client-account-row{border:1px solid #2e3543;background:#171d29}
html[data-fh-theme="dark"] .price-toolbar .search::before{color:#abb6ca}
html[data-fh-theme="dark"] .client-price-row{border:1px solid #2c3244;background:#171d29}
html[data-fh-theme="dark"] .picking-preview{border:1px solid #2b4535;background:#171d29}
html[data-fh-theme="dark"] .picking-preview span{background:#171d29}
html[data-fh-theme="dark"] .document-card{background:#171d29;box-shadow:0 8px 30px rgba(0,0,0,0.150)}
html[data-fh-theme="dark"] .sale-lines-table{border:1px solid #2c3244}
html[data-fh-theme="dark"] .sale-line-head{background:#171d29;color:#abb6ca}
html[data-fh-theme="dark"] .sale-line-row{border-top:1px solid #303440;background:#171d29}
html[data-fh-theme="dark"] .sale-line-row.price-missing{background:#171d29}
html[data-fh-theme="dark"] .sale-line-row.item-missing{background:#171d29}
html[data-fh-theme="dark"] .sale-source-switch{border:1px solid #2b3345;background:#171d29}
html[data-fh-theme="dark"] .sale-source-switch label:has(input:checked){background:#171d29;box-shadow:0 3px 12px rgba(0,0,0,0.150);color:#9cb8e7}
html[data-fh-theme="dark"] .sale-document-summary span{border:1px solid #2d3243;background:#171d29}
html[data-fh-theme="dark"] .sale-archive-x{border:1px solid #452b31;background:#171d29;color:#e0a3aa}
html[data-fh-theme="dark"] .sale-archive-x:hover{background:#171d29;color:#e2a2a8}
html[data-fh-theme="dark"] .price-category-card{border:1px solid #2c3244;background:#171d29}
html[data-fh-theme="dark"] .price-category-card:hover,html[data-fh-theme="dark"] .price-category-card.active{border-color:#2e416b;background:#171d29}
html[data-fh-theme="dark"] .price-category-actions .icon-button{border:1px solid #283148;background:#171d29;color:#a3b8e0}
html[data-fh-theme="dark"] .price-category-actions .icon-button:hover{border-color:#2e416b;background:#171d29;color:#93b1f0}
html[data-fh-theme="dark"] .compact-filters summary{background:#171d29;color:#edf1f9}
html[data-fh-theme="dark"] .compact-filters[open] summary{border-color:#2e426b;background:#171d29}
html[data-fh-theme="dark"] .compact-filters>div{background:#171d29;box-shadow:0 14px 36px rgba(0,0,0,0.160)}
html[data-fh-theme="dark"] .reconciliation-balance-table tbody tr:hover,html[data-fh-theme="dark"] .reconciliation-balance-table tbody tr:focus{background:#171d29}
html[data-fh-theme="dark"] .reconciliation-balance-table tbody tr.active{background:#171d29}
html[data-fh-theme="dark"] .reconciliation-balance-table .negative{color:#e7b19d}
html[data-fh-theme="dark"] .reconciliation-balance-table tfoot th{background:#171d29}
html[data-fh-theme="dark"] .reconciliation-metrics .negative{color:#a2e1c1}
html[data-fh-theme="dark"] .dialog-hint{background:#171d29;color:#abb6ca}
html[data-fh-theme="dark"] .sale-document-row:focus{outline:2px solid #2e426b}
html[data-fh-theme="dark"] .text-button{color:#9cb8e7}
html[data-fh-theme="dark"] .manager-task-strip button{background:#171d29}
html[data-fh-theme="dark"] .manager-task-strip button:hover{border-color:#2e426b;box-shadow:0 7px 20px rgba(0,0,0,0.150)}
html[data-fh-theme="dark"] .bonus-panel{background:linear-gradient(135deg,#171d29,#171d29)}
html[data-fh-theme="dark"] .podium-row,html[data-fh-theme="dark"] .leaderboard-row,html[data-fh-theme="dark"] .meeting-agenda-row,html[data-fh-theme="dark"] .admin-list-row{border:1px solid #2c3244;background:#171d29}
html[data-fh-theme="dark"] .podium-row .rank,html[data-fh-theme="dark"] .leaderboard-row .rank{background:#1a2337}
html[data-fh-theme="dark"] .reward-card{border:1px solid #6b5e2e;background:#171d29}
html[data-fh-theme="dark"] .reward-card small{color:#e0d1a3}
html[data-fh-theme="dark"] .calendar-card{background:#171d29}
html[data-fh-theme="dark"] .calendar-day{border-right:1px solid #2b3345;border-bottom:1px solid #2b3345;background:#171d29}
html[data-fh-theme="dark"] .calendar-day.outside{background:#171d29;color:#abb6ca}
html[data-fh-theme="dark"] .calendar-day.today .calendar-number{color:#edf1f9}
html[data-fh-theme="dark"] .calendar-event{background:#171d29;color:#a0b9e3}
html[data-fh-theme="dark"] .access-template,html[data-fh-theme="dark"] .access-login-toggle{background:#171d29}
html[data-fh-theme="dark"] .access-section{background:#171d29}
html[data-fh-theme="dark"] .access-module-matrix{background:#171d29}
html[data-fh-theme="dark"] .access-module-row{border-top:1px solid #2b3345}
html[data-fh-theme="dark"] .access-module-head{background:#171d29;color:#abb6ca}
html[data-fh-theme="dark"] .access-module-row>span,html[data-fh-theme="dark"] .access-module-row>label{border-left:1px solid #2b3345}
html[data-fh-theme="dark"] .access-na{color:#abb6ca}
html[data-fh-theme="dark"] .access-scope-card{background:#171d29}
html[data-fh-theme="dark"] .access-choice{background:#171d29}
html[data-fh-theme="dark"] .access-department-row{background:#171d29}
html[data-fh-theme="dark"] .access-actions{background:rgba(23,29,41,0.960)}
html[data-fh-theme="dark"] .org-node{background:#171d29;box-shadow:0 5px 16px rgba(0,0,0,0.150)}
html[data-fh-theme="dark"] .org-node.root{border-color:#2e426b;background:#171d29}
html[data-fh-theme="dark"] .org-children{border-left:2px solid #2e426b}
html[data-fh-theme="dark"] .org-node[type="button"]:hover{border-color:#2e406b;box-shadow:0 9px 24px rgba(0,0,0,0.150)}
html[data-fh-theme="dark"] .org-node-head i{color:#abb6ca}
html[data-fh-theme="dark"] .org-department-card{background:#171d29}
html[data-fh-theme="dark"] .org-department-manager{background:#171d29}
html[data-fh-theme="dark"] .org-member{border:1px solid #2c3244;background:#171d29}
html[data-fh-theme="dark"] .brand-button:hover{background:#171d29}
html[data-fh-theme="dark"] .breadcrumb-link:hover,html[data-fh-theme="dark"] .breadcrumb-current:hover{background:#202531;color:#edf1f9}
html[data-fh-theme="dark"] .breadcrumb-current{color:#edf1f9}
html[data-fh-theme="dark"] .calendar-link{border:1px solid #2e426b;background:#171d29;color:#a0b9e3}
html[data-fh-theme="dark"] .calendar-link:hover{border-color:#2e426b;background:#1a2437}
html[data-fh-theme="dark"] .meeting-agenda-row:hover{border-color:#2e416b;background:#171d29}
html[data-fh-theme="dark"] .meeting-agenda-row i{color:#abb6ca}
html[data-fh-theme="dark"] .bonus-kpi{border:1px solid #334266;background:linear-gradient(135deg,#171d29,#171d29)}
html[data-fh-theme="dark"] .bonus-kpi.earned{border-color:#2e6b4a;background:#171d29}
html[data-fh-theme="dark"] .bonus-kpi small{color:#abb6ca}
html[data-fh-theme="dark"] .leaderboard-page-row{border:1px solid #2c3244;background:#171d29}
html[data-fh-theme="dark"] .leaderboard-page-row.current{border-color:#2e426b;background:#171d29}
html[data-fh-theme="dark"] .leaderboard-place{background:#171d29}
html[data-fh-theme="dark"] .achievement-summary{background:#171d29}
html[data-fh-theme="dark"] .achievement-tile{border:1px solid #2c3244;background:#171d29}
html[data-fh-theme="dark"] .achievement-tile.earned{border-color:#6b602e;background:#171d29}
html[data-fh-theme="dark"] .achievement-icon{background:#171d29;color:#a79de6}
html[data-fh-theme="dark"] .achievement-tile em{color:#abb6ca}
html[data-fh-theme="dark"] .achievement-tile>strong{color:#e7d49d}
html[data-fh-theme="dark"] .attendee-chip{border:1px solid #2f3441;background:#171d29}
html[data-fh-theme="dark"] .attendee-chip:has(input:checked){border-color:#2e416b;background:#171d29}
html[data-fh-theme="dark"] .form-label{color:#edf1f9}
html[data-fh-theme="dark"] .field-help{color:#abb6ca}
html[data-fh-theme="dark"] .optional{color:#abb6ca}
html[data-fh-theme="dark"] .kpi-editor-note{background:#171d29;color:#abb6ca}
html[data-fh-theme="dark"] .kpi-editor-row{border:1px solid #2c3244;background:#171d29}
html[data-fh-theme="dark"] .kpi-bonus-inline{color:#e3d2a0}
html[data-fh-theme="dark"] .kpi-bonus-inline b{color:#edf1f9}
html[data-fh-theme="dark"] .achievement-person{border:1px solid #2c3344;background:#171d29}
html[data-fh-theme="dark"] .achievement-person:hover{border-color:#2e416b;background:#171d29}
html[data-fh-theme="dark"] .achievement-person.active{border-color:#2e426b;background:#171d29;box-shadow:0 0 0 2px rgba(0,0,0,0.150)}
html[data-fh-theme="dark"] .achievement-summary>span strong{color:#edf1f9}
html[data-fh-theme="dark"] .achievement-summary>b{color:#b1a3e0}
html[data-fh-theme="dark"] .attendee-dropdown>summary{border:1px solid #2e3442;background:#171d29;color:#edf1f9}
html[data-fh-theme="dark"] .attendee-dropdown>summary::after{color:#abb6ca}
html[data-fh-theme="dark"] .attendee-dropdown[open]>summary{border-color:#2e426b;box-shadow:0 0 0 3px rgba(0,0,0,0.150)}
html[data-fh-theme="dark"] .attendee-dropdown .attendee-picker{border:1px solid #2e3442;background:#171d29;box-shadow:0 16px 38px rgba(0,0,0,0.160)}
html[data-fh-theme="dark"] .turnover-item-list{background:#171d29}
html[data-fh-theme="dark"] .turnover-item-option:hover{background:#171d29}
/* returns.css */
html[data-fh-theme="dark"] .return-scope-bar{border:1px solid #314468;background:linear-gradient(135deg,#171d29,#171d29)}
html[data-fh-theme="dark"] .return-tabs span{background:#202532}
html[data-fh-theme="dark"] .return-tabs button.active span{background:#1a2337;color:#9eb6e6}
html[data-fh-theme="dark"] .return-box-card{background:#171d29;box-shadow:0 6px 22px rgba(0,0,0,0.150)}
html[data-fh-theme="dark"] .return-box-card.active{border-color:#2e426b;box-shadow:0 0 0 3px rgba(0,0,0,0.150)}
html[data-fh-theme="dark"] .return-box-toggle{background:#171d29}
html[data-fh-theme="dark"] .return-box-toggle:hover{background:#171d29}
html[data-fh-theme="dark"] .return-box-toggle i{color:#abb6ca}
html[data-fh-theme="dark"] .return-box-body{border-top:1px solid #2e3642}
html[data-fh-theme="dark"] .return-active-note{background:#171d29;color:#a3b9e0}
html[data-fh-theme="dark"] .return-unit-row{border:1px solid #2e3543;background:#171d29}
html[data-fh-theme="dark"] .return-pick-card{border:1px solid #2e426b;background:linear-gradient(145deg,#171d29,#171d29);box-shadow:0 10px 30px rgba(0,0,0,0.150)}
html[data-fh-theme="dark"] .return-pick-card form>span{color:#abb6ca}
html[data-fh-theme="dark"] .return-pick-group{background:#171d29}
html[data-fh-theme="dark"] .return-pick-group header{border-bottom:1px solid #2e3543;background:#171d29}
html[data-fh-theme="dark"] .return-pick-group header>strong{background:#171d29;color:#a2b7e1}
html[data-fh-theme="dark"] .return-pick-row{border-bottom:1px solid #2f3441}
html[data-fh-theme="dark"] #returnForm input[readonly]{background:#1e2534;color:#a3b7e0}
/* profit-view-r45.css */
html[data-fh-theme="dark"] .profit-report{color:#edf1f9}
html[data-fh-theme="dark"] .profit-report .eyebrow{color:#abb6ca}
html[data-fh-theme="dark"] .profit-report .subtitle{color:#abb6ca}
html[data-fh-theme="dark"] .profit-report button,html[data-fh-theme="dark"] .profit-report input,html[data-fh-theme="dark"] .profit-report select{border:1px solid #2c3144;background:#171d29}
html[data-fh-theme="dark"] .profit-report button.primary{background:#2e2650;color:#edf1f9;border-color:#392e6b}
html[data-fh-theme="dark"] .profit-report :focus-visible{outline:3px solid #382e6b}
html[data-fh-theme="dark"] .profit-report label{color:#abb6ca}
html[data-fh-theme="dark"] .profit-report input,html[data-fh-theme="dark"] .profit-report select{color:#edf1f9}
html[data-fh-theme="dark"] .pr-filters{background:#171d29;border:1px solid #2c2f44}
html[data-fh-theme="dark"] .pr-more{color:#abb6ca}
html[data-fh-theme="dark"] .pr-toolbar{color:#abb6ca}
html[data-fh-theme="dark"] .profit-report [data-status]{color:#abb6ca}
html[data-fh-theme="dark"] .pr-warning{background:#372e1a;border:1px solid #6b572e;color:#e3cca0}
html[data-fh-theme="dark"] .pr-scroll{border:1px solid #2b3045;background:#171d29}
html[data-fh-theme="dark"] .profit-report th,html[data-fh-theme="dark"] .profit-report td{border-bottom:1px solid #293147}
html[data-fh-theme="dark"] .profit-report thead th{color:#abb6ca;background:#171d29}
html[data-fh-theme="dark"] .profit-report tr.pr-group{background:#171d29}
html[data-fh-theme="dark"] .profit-report tr.pr-subgroup{background:#171d29}
html[data-fh-theme="dark"] .profit-report tfoot{background:#171d29}
html[data-fh-theme="dark"] .profit-report tbody button[data-doc]{color:#afa3e0}
html[data-fh-theme="dark"] .profit-report small{color:#abb6ca}
html[data-fh-theme="dark"] .pr-method{color:#abb6ca}
html[data-fh-theme="dark"] .pr-empty{color:#abb6ca}
html[data-fh-theme="dark"] .pr-document{border:1px solid #282d48;color:#edf1f9}
html[data-fh-theme="dark"] .pr-document::backdrop{background:rgba(39,43,78,0.467)}
/* profit-integration-r45.css */

/* Dynamically mounted FBO dialog */
html[data-fh-theme="dark"] .fbo49{background:#171d29;color:#a3a9e0}
html[data-fh-theme="dark"] .fbo49 header{background:#171d29;border-bottom:1px solid #292e47}
html[data-fh-theme="dark"] .fbo49 header strong{color:#a390f4}
html[data-fh-theme="dark"] .fbo49 button,html[data-fh-theme="dark"] .fbo49 input,html[data-fh-theme="dark"] .fbo49 select{border:1px solid #2a3046;background:#171d29}
html[data-fh-theme="dark"] .fbo49 button.primary{background:#2e2650;color:#edf1f9;border-color:#3a2e6b}
html[data-fh-theme="dark"] .fbo49 :focus-visible{outline:3px solid #392e6b}
html[data-fh-theme="dark"] .fbo49 .card{background:#171d29;border:1px solid #282f48}
html[data-fh-theme="dark"] .fbo49 .hint{color:#abb6ca}
html[data-fh-theme="dark"] .fbo49 .barcode{border:2px solid #3a2e6b}
html[data-fh-theme="dark"] .fbo49 .message{background:#1a3725;color:#a3e0ba}
html[data-fh-theme="dark"] .fbo49 .message.bad{background:#171d29;color:#e69dab}
html[data-fh-theme="dark"] .fbo49 td,html[data-fh-theme="dark"] .fbo49 th{border-bottom:1px solid #2a2f46}
html[data-fh-theme="dark"] .fbo49 .box{border:1px solid #2b3145}
html[data-fh-theme="dark"] .fbo49 .thumb{background:#1f2233}
html[data-fh-theme="dark"] .fbo49 .badge{background:#221a37;color:#b2a3e0}
html[data-fh-theme="dark"] .fbo49 details{border-top:1px solid #2a3046}
html[data-fh-theme="dark"] .fbo49 .confirm{background:rgba(46,42,75,0.467)}
html[data-fh-theme="dark"] .fbo49 .confirm>section{background:#171d29}
html[data-fh-theme="dark"] .fbo49 .tabs button[aria-pressed=true]{background:#211a37;color:#afa0e4;border-color:#3b2e6b}
html[data-fh-theme="dark"] .fbo49 .footer{background:#171d29;border-top:1px solid #383838}
html[data-fh-theme="dark"][data-fh-embedded="matcher"] body{background: #1f2735;color: #abb6ca}
html[data-fh-theme="dark"][data-fh-embedded="matcher"] header h1{color: #edf1f9}
html[data-fh-theme="dark"][data-fh-embedded="matcher"] .subtitle{color: #abb6ca}
html[data-fh-theme="dark"][data-fh-embedded="matcher"] .header-link-btn{color: #edf1f9;background: linear-gradient(135deg, #263f50, #263f50)}
html[data-fh-theme="dark"][data-fh-embedded="matcher"] .header-link-btn:hover{box-shadow: 0 6px 18px rgba(0,0,0,0.350)}
html[data-fh-theme="dark"][data-fh-embedded="matcher"] .upload-card{background: #1f2735;border: 2px solid #2f2f41}
html[data-fh-theme="dark"][data-fh-embedded="matcher"] .upload-card:hover{border-color: #2e2e42}
html[data-fh-theme="dark"][data-fh-embedded="matcher"] .upload-card.loaded{border-color: #2e6b4e;box-shadow: 0 0 20px rgba(0,0,0,0.150)}
html[data-fh-theme="dark"][data-fh-embedded="matcher"] .upload-card.error{border-color: #6b342e}
html[data-fh-theme="dark"][data-fh-embedded="matcher"] .upload-icon{background: linear-gradient(135deg, #2a2650, #3b2650);color: #edf1f9}
html[data-fh-theme="dark"][data-fh-embedded="matcher"] .upload-card h3{color: #edf1f9}
html[data-fh-theme="dark"][data-fh-embedded="matcher"] .upload-card p{color: #abb6ca}
html[data-fh-theme="dark"][data-fh-embedded="matcher"] .upload-btn{background: linear-gradient(135deg, #2a2650, #3b2650);color: #edf1f9}
html[data-fh-theme="dark"][data-fh-embedded="matcher"] .upload-btn:hover{box-shadow: 0 4px 16px rgba(0,0,0,0.400)}
html[data-fh-theme="dark"][data-fh-embedded="matcher"] .pick-order-toggle{border: 1px solid #2e2e42;background: #2f2f46}
html[data-fh-theme="dark"][data-fh-embedded="matcher"] .pick-order-toggle span{color: #abb6ca}
html[data-fh-theme="dark"][data-fh-embedded="matcher"] .pick-order-toggle input:checked + span{background: #1f2735;color: #edf1f9}
html[data-fh-theme="dark"][data-fh-embedded="matcher"] .upload-btn-test{border: 1px solid #2e2e42;background: #1f2735}
html[data-fh-theme="dark"][data-fh-embedded="matcher"] .upload-btn-test:hover{box-shadow: 0 4px 16px rgba(0,0,0,0.350)}
html[data-fh-theme="dark"][data-fh-embedded="matcher"] .file-status.success{color: #9aeac3}
html[data-fh-theme="dark"][data-fh-embedded="matcher"] .file-status.error{color: #f29b92}
html[data-fh-theme="dark"][data-fh-embedded="matcher"] .preview-section h2{color: #edf1f9}
html[data-fh-theme="dark"][data-fh-embedded="matcher"] .stat-item{background: #1f2735}
html[data-fh-theme="dark"][data-fh-embedded="matcher"] .stat-item span{color: #c390f4}
html[data-fh-theme="dark"][data-fh-embedded="matcher"] .table-wrap{border: 1px solid #2f2f41}
html[data-fh-theme="dark"][data-fh-embedded="matcher"] thead{background: #1f2735}
html[data-fh-theme="dark"][data-fh-embedded="matcher"] th{color: #abb6ca}
html[data-fh-theme="dark"][data-fh-embedded="matcher"] td{border-top: 1px solid #2c2c44}
html[data-fh-theme="dark"][data-fh-embedded="matcher"] tr:hover{background: rgba(42,38,80,0.050)}
html[data-fh-theme="dark"][data-fh-embedded="matcher"] tr.no-match{background: rgba(80,41,38,0.150)}
html[data-fh-theme="dark"][data-fh-embedded="matcher"] .badge-ok{background: rgba(38,80,59,0.150);color: #9aeac3}
html[data-fh-theme="dark"][data-fh-embedded="matcher"] .badge-fail{background: rgba(80,41,38,0.150);color: #f29b92}
html[data-fh-theme="dark"][data-fh-embedded="matcher"] .upload-card{box-shadow: 0 8px 24px rgba(0,0,0,0.150)}
html[data-fh-theme="dark"][data-fh-embedded="matcher"] .upload-card:hover{border-color: #2f426a}
html[data-fh-theme="dark"][data-fh-embedded="matcher"] .upload-card.loaded{border-color: #30694d;box-shadow: 0 8px 24px rgba(0,0,0,0.150)}
html[data-fh-theme="dark"][data-fh-embedded="matcher"] .upload-btn:hover{box-shadow: 0 7px 18px rgba(0,0,0,0.190)}
html[data-fh-theme="dark"][data-fh-embedded="matcher"] .upload-btn-test{background: #171d29}
html[data-fh-theme="dark"][data-fh-embedded="matcher"] .pick-order-toggle label span{background: #171d29}
html[data-fh-theme="dark"][data-fh-embedded="matcher"] .pick-order-toggle input:checked + span{color: #edf1f9}
html[data-fh-theme="dark"][data-fh-embedded="matcher"] th{background: #171d29}
html[data-fh-theme="dark"][data-fh-embedded="matcher"] .uat-safety-banner{border: 1px solid #6b592e;background: #37301a;color: #f4d390}
html[data-fh-theme="dark"][data-fh-embedded="matcher"] .fbs-combined-option{border: 1px solid #2e2e42;background: #1f2735;color: #edf1f9}
html[data-fh-theme="dark"][data-fh-embedded="matcher"] .fbs-combined-option small{color: #abb6ca}
html[data-fh-theme="dark"][data-fh-embedded="matcher"] .generate-btn{background: linear-gradient(135deg, #2a2650, #3b2650);color: #edf1f9}
html[data-fh-theme="dark"][data-fh-embedded="matcher"] .generate-btn:hover{box-shadow: 0 6px 24px rgba(0,0,0,0.400)}
html[data-fh-theme="dark"][data-fh-embedded="matcher"] .progress-bar{background: #1f2735}
html[data-fh-theme="dark"][data-fh-embedded="matcher"] .progress-fill{background: linear-gradient(90deg, #2a2650, #3b2650)}
html[data-fh-theme="dark"][data-fh-embedded="matcher"] .progress-text{color: #abb6ca}
html[data-fh-theme="dark"][data-fh-embedded="matcher"] .download-btn{background: linear-gradient(135deg, #26503b, #265037);color: #edf1f9}
html[data-fh-theme="dark"][data-fh-embedded="matcher"] .clear-btn{color: #f29b92;border: 1px solid rgba(107,52,46,0.400)}
html[data-fh-theme="dark"][data-fh-embedded="matcher"] .clear-btn:hover{background: rgba(80,41,38,0.100)}
html[data-fh-theme="dark"][data-fh-embedded="matcher"] .download-btn-alt{background: linear-gradient(135deg, #263f50, #263f50) !important}
html[data-fh-theme="dark"][data-fh-embedded="matcher"] .kis-cell{color: #abb6ca}
html[data-fh-theme="dark"][data-fh-embedded="matcher"] .error-msg{background: rgba(80,41,38,0.100);border: 1px solid rgba(107,52,46,0.300);color: #f29b92}
html[data-fh-theme="dark"][data-fh-embedded="matcher"] #scroll-bottom-btn{background: #1f2735;color: #edf1f9;box-shadow: 0 8px 25px rgba(0,0,0,0.250)}
html[data-fh-theme="dark"][data-fh-embedded="matcher"] #scroll-bottom-btn:hover{box-shadow: 0 12px 30px rgba(0,0,0,0.350)}
html[data-fh-theme="dark"][data-fh-embedded="matcher"] .chz-inspect-modal{background: rgba(31,39,53,0.720)}
html[data-fh-theme="dark"][data-fh-embedded="matcher"] .chz-inspect-panel{background: #2f2f46;border: 1px solid #2f2f41;box-shadow: 0 20px 60px rgba(0,0,0,0.420)}
html[data-fh-theme="dark"][data-fh-embedded="matcher"] .chz-inspect-header h2{color: #edf1f9}
html[data-fh-theme="dark"][data-fh-embedded="matcher"] .chz-inspect-close{background: #1f2735;color: #abb6ca}
html[data-fh-theme="dark"][data-fh-embedded="matcher"] .chz-inspect-close:hover{background: #1f2735;color: #edf1f9}
html[data-fh-theme="dark"][data-fh-embedded="matcher"] .chz-inspect-filter{border: 1px solid #2e2e42;background: #1f2735;color: #abb6ca}
html[data-fh-theme="dark"][data-fh-embedded="matcher"] .chz-inspect-filter.active{border-color: #352e6b;background: rgba(42,38,80,0.180);color: #edf1f9}
html[data-fh-theme="dark"][data-fh-embedded="matcher"] .chz-inspect-tabs{border: 1px solid #2f2f41;background: #2f2f46}
html[data-fh-theme="dark"][data-fh-embedded="matcher"] .chz-inspect-tab{color: #abb6ca}
html[data-fh-theme="dark"][data-fh-embedded="matcher"] .chz-inspect-tab.active{background: #1f2735;border-color: #2e2e42;color: #edf1f9}
html[data-fh-theme="dark"][data-fh-embedded="matcher"] .chz-inspect-delete-btn{border: 1px solid #6b2e2e;background: rgba(80,41,38,0.150);color: #f49c90}
html[data-fh-theme="dark"][data-fh-embedded="matcher"] .chz-inspect-delete-btn:hover:not(:disabled){background: rgba(80,41,38,0.280);color: #edf1f9}
html[data-fh-theme="dark"][data-fh-embedded="matcher"] .chz-inspect-summary{color: #abb6ca}
html[data-fh-theme="dark"][data-fh-embedded="matcher"] .chz-inspect-status{color: #abb6ca}
html[data-fh-theme="dark"][data-fh-embedded="matcher"] .chz-inspect-status.error{color: #f29b92}
html[data-fh-theme="dark"][data-fh-embedded="matcher"] .badge-uploaded{background: rgba(38,63,80,0.180);color: #97caed}
html[data-fh-theme="dark"][data-fh-embedded="matcher"] .badge-original{background: rgba(59,38,80,0.150);color: #c390f4}
html[data-fh-theme="dark"][data-fh-embedded="matcher"] .chz-inspect-page-btn{border: 1px solid #2e2e42;background: #1f2735;color: #abb6ca}
html[data-fh-theme="dark"][data-fh-embedded="matcher"] .chz-inspect-page-info{color: #abb6ca}
html[data-fh-theme="dark"][data-fh-embedded="matcher"] .chz-pdf-status-box{background: #2f2f46;border: 1px solid #2f2f41;color: #90caf4}
html[data-fh-theme="dark"][data-fh-embedded="matcher"] .chz-import-report-note{color: #abb6ca}
html[data-fh-theme="dark"][data-fh-embedded="matcher"] .chz-stock-filters input,html[data-fh-theme="dark"][data-fh-embedded="matcher"] .chz-stock-filters select{border: 1px solid #2e2e42;background: #2e2e47;color: #abb6ca}
html[data-fh-theme="dark"][data-fh-embedded="matcher"] .chz-stock-filters input:focus,html[data-fh-theme="dark"][data-fh-embedded="matcher"] .chz-stock-filters select:focus{border-color: #352e6b}
html[data-fh-theme="dark"][data-fh-embedded="matcher"] .chz-stock-row.stock-count-low{background: rgba(80,41,38,0.080)}
html[data-fh-theme="dark"][data-fh-embedded="matcher"] .stock-count.stock-count-low{color: #f49c90}
html[data-fh-theme="dark"][data-fh-embedded="matcher"] .chz-stock-expand{border: 1px solid #2e2e42;background: #1f2735;color: #abb6ca}
html[data-fh-theme="dark"][data-fh-embedded="matcher"] .chz-stock-expand:hover{border-color: #352e6b;color: #edf1f9}
html[data-fh-theme="dark"][data-fh-embedded="matcher"] .chz-stock-detail-row{background: rgba(23,29,41,0.025)}
html[data-fh-theme="dark"][data-fh-embedded="matcher"] .chz-stock-expandable:hover{background: rgba(42,38,80,0.080)}
html[data-fh-theme="dark"][data-fh-embedded="matcher"] .chz-stock-detail-row td{color: #abb6ca}
html[data-fh-theme="dark"][data-fh-embedded="matcher"] .stock-row-note{color: #abb6ca}
html[data-fh-theme="dark"][data-fh-embedded="matcher"] .stock-detail-prefix{color: #abb6ca}
html[data-fh-theme="dark"][data-fh-embedded="matcher"] .chz-inspect-table-wrap thead th,html[data-fh-theme="dark"][data-fh-embedded="matcher"] .chz-stock-table-wrap thead th,html[data-fh-theme="dark"][data-fh-embedded="matcher"] .chz-history-table-wrap thead th{background: #1f2735}
html[data-fh-theme="dark"][data-fh-embedded="matcher"] .chz-stock-card{border: 1px solid #2f2f41;background: #2f2f46}
html[data-fh-theme="dark"][data-fh-embedded="matcher"] .chz-stock-card-label{color: #abb6ca}
html[data-fh-theme="dark"][data-fh-embedded="matcher"] .chz-stock-card-value{color: #edf1f9}
html[data-fh-theme="dark"][data-fh-embedded="matcher"] .chz-stock-card-note{color: #abb6ca}
html[data-fh-theme="dark"][data-fh-embedded="matcher"] .stock-status-deficit{background: rgba(80,41,38,0.160);color: #f49c90}
html[data-fh-theme="dark"][data-fh-embedded="matcher"] .stock-status-ok{background: rgba(38,80,59,0.140);color: #95eec1}
html[data-fh-theme="dark"][data-fh-embedded="matcher"] .stock-status-surplus{background: rgba(38,63,80,0.160);color: #90c8f4}
html[data-fh-theme="dark"][data-fh-embedded="matcher"] .stock-delta-deficit{color: #f49c90}
html[data-fh-theme="dark"][data-fh-embedded="matcher"] .stock-delta-ok{color: #95eec1}
html[data-fh-theme="dark"][data-fh-embedded="matcher"] .stock-delta-surplus{color: #90c8f4}
html[data-fh-theme="dark"][data-fh-embedded="matcher"] .chz-history-empty{color: #abb6ca}
html[data-fh-theme="dark"][data-fh-embedded="matcher"] .chz-history-legacy{color: #abb6ca}
html[data-fh-theme="dark"][data-fh-embedded="matcher"] .chz-history-day{border: 1px solid #2f2f41;background: #2f2f46}
html[data-fh-theme="dark"][data-fh-embedded="matcher"] .chz-history-day strong{color: #edf1f9}
html[data-fh-theme="dark"][data-fh-embedded="matcher"] .chz-history-day span{color: #95eec1}
html[data-fh-theme="dark"][data-fh-embedded="matcher"] .chz-history-day small{color: #abb6ca}
html[data-fh-theme="dark"] body{background:var(--bg);color:var(--ink)}
html[data-fh-theme="dark"] .sidebar{background:#141a25;border-color:var(--line)}
html[data-fh-theme="dark"] .topbar{background:#10141de8;border-color:var(--line)}
html[data-fh-theme="dark"] .nav-link{color:#b0bbcf}
html[data-fh-theme="dark"] .nav-link:hover,html[data-fh-theme="dark"] .nav-group-head:hover{background:#202838;color:#f2f4fc}
html[data-fh-theme="dark"] .nav-link.active{background:#2b2547;color:#c8bdff}
html[data-fh-theme="dark"] .nav-link.active .nav-count{background:#413563;color:#e5ddff}
html[data-fh-theme="dark"] .primary,html[data-fh-theme="dark"] .fbo49 button.primary{background:#b5a3ff;color:#181326;border-color:#b5a3ff}
html[data-fh-theme="dark"] .primary:hover,html[data-fh-theme="dark"] .fbo49 button.primary:hover{background:#c7baff;border-color:#c7baff}
html[data-fh-theme="dark"] .danger{background:#a93145;border-color:#d5566b;color:#fff}
html[data-fh-theme="dark"] .danger:hover{background:#bc3e52}
html[data-fh-theme="dark"] .badge.good,html[data-fh-theme="dark"] .green{color:#8ce0b5;background:#17392e}
html[data-fh-theme="dark"] .badge.warn,html[data-fh-theme="dark"] .orange{color:#f4c784;background:#3c2e1c}
html[data-fh-theme="dark"] .badge.bad,html[data-fh-theme="dark"] .pink{color:#ffa7b5;background:#3f2533}
html[data-fh-theme="dark"] .badge.info,html[data-fh-theme="dark"] .blue{color:#a9c5ff;background:#202e4b}
html[data-fh-theme="dark"] .lilac{color:#c5b8ff;background:#31294c}
html[data-fh-theme="dark"] .cyan{color:#8bdcea;background:#19353e}
html[data-fh-theme="dark"] .positive{color:#8ce0b5}
html[data-fh-theme="dark"] .negative,html[data-fh-theme="dark"] .login-error{color:#ffa7b5}
html[data-fh-theme="dark"] .login-screen{background:radial-gradient(ellipse at 18% 8%,#282045 0,transparent 46%),radial-gradient(ellipse at 92% 90%,#152c40 0,transparent 42%),#10141d}
html[data-fh-theme="dark"] .login-card{background:#171d29;border-color:#354057;box-shadow:0 24px 90px #0005}
html[data-fh-theme="dark"] dialog{background:var(--panel);color:var(--ink);border-color:var(--line)}
html[data-fh-theme="dark"] dialog::backdrop{background:#040711b3}
html[data-fh-theme="dark"] input::placeholder,html[data-fh-theme="dark"] textarea::placeholder{color:#95a2b9;opacity:1}
html[data-fh-theme="dark"] input,html[data-fh-theme="dark"] select,html[data-fh-theme="dark"] textarea{accent-color:#b5a3ff;caret-color:#edf1f9}
html[data-fh-theme="dark"] :focus-visible{outline:2px solid #b5a3ff;outline-offset:3px}
html[data-fh-theme="dark"] ::selection{background:#59488a;color:#fff}
html[data-fh-theme="dark"] #materialDebts{background:#30281a!important;color:#efd5a4!important;border-color:#776038!important}
html[data-fh-theme="dark"] .avatar{background:#34304e;color:#e5ddff}
html[data-fh-theme="dark"] .toast{background:#283249;color:#f5f7fc;border:1px solid #46536b}
html[data-fh-theme="dark"] .toast.error{background:#632b39;color:#fff}
html[data-fh-theme="dark"] .calendar-day.today .calendar-number{background:#b5a3ff;color:#181326}
html[data-fh-theme="dark"] .search input{background:transparent}
html[data-fh-theme="dark"] img,html[data-fh-theme="dark"] canvas{filter:none}
html[data-fh-theme="dark"][data-fh-embedded="numerator"]{--paper:#171d29;--line-strong:#58677f;--color-red-600:#ffa7b5;--color-emerald-700:#8ce0b5}
html[data-fh-theme="dark"][data-fh-embedded="matcher"]{--fh-blue:#b5a3ff;--fh-blue-soft:#31294c;--fh-ink:#edf1f9;--fh-muted:#abb6ca;--fh-line:#303a4d;--fh-surface:#171d29;--fh-canvas:#10141d}
html[data-fh-theme="dark"][data-fh-embedded="matcher"] body{background:#10141d;color:#edf1f9}
html[data-fh-theme="dark"][data-fh-embedded="matcher"] .upload-card{background:#171d29;border-color:#303a4d}
html[data-fh-theme="dark"][data-fh-embedded="matcher"] .upload-btn{background:#b5a3ff;color:#181326}

}
.fh-theme-toggle{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:36px;padding:0 12px;border:1px solid #d9dce5;border-radius:11px;background:#fff;color:#4b5160;font:600 12px/1.2 system-ui;cursor:pointer;flex-shrink:0}
.fh-theme-toggle [data-fh-theme-icon]{font-size:19px;line-height:1}
.fh-theme-toggle:hover{background:#f0edf9;border-color:#9f8bdd}
.fh-theme-toggle:focus-visible{outline:2px solid #8261c7;outline-offset:3px}
.fh-login-theme{position:absolute;right:24px;top:24px}
@media screen{html[data-fh-theme="dark"] .fh-theme-toggle{background:#222a3b;border-color:#3c465c;color:#d8d1ef}html[data-fh-theme="dark"] .fh-theme-toggle:hover{background:#302841;border-color:#9381be}}
@media(max-width:600px){.top-actions{gap:7px}.topbar .fh-theme-toggle{min-width:36px;padding:0 8px}.topbar .fh-theme-toggle [data-fh-theme-label]{display:none}.fh-login-theme{right:16px;top:16px}.login-screen{padding-top:76px}}
@media print{.fh-theme-toggle,.fh-login-theme{display:none!important}html[data-fh-theme]{color-scheme:light}}
@media screen{html[data-fh-theme="light"]{color-scheme:light}html[data-fh-theme="light"][data-fh-embedded="numerator"]{--bg:#f5f5f4;--paper:#fff;--ink:#0a0a0a;--muted:#6b6b6b;--line:#0a0a0a1f;--line-strong:#0a0a0a3d}}
@media(max-width:600px){.topbar .breadcrumbs{min-width:0;overflow:hidden;gap:6px}.topbar .breadcrumb-current{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.topbar .top-actions{flex-shrink:0}.topbar{gap:8px}}
@media(max-width:380px){.topbar .breadcrumb-link,.topbar .breadcrumbs>b{display:none}.topbar{padding-inline:12px}.topbar .top-actions{gap:5px}}
