/* 자동 생성 — scripts/build_dark_css.py. 직접 고치지 말고 원본 CSS를 고친 뒤 다시 생성한다. */
/* 다크 기본 — 문서 색 체계와 폼 컨트롤 */
html:where([data-theme="dark"]){color-scheme:dark}
:where(html[data-theme="dark"]) body{background:var(--bg);color:var(--ink)}
:where(html[data-theme="dark"]) a{color:var(--accent-text);text-decoration:none}
:where(html[data-theme="dark"]) a:focus-visible,:where(html[data-theme="dark"]) button:focus-visible,:where(html[data-theme="dark"]) input:focus-visible,:where(html[data-theme="dark"]) select:focus-visible,:where(html[data-theme="dark"]) textarea:focus-visible{outline:3px solid #395fef;outline-offset:2px}
:where(html[data-theme="dark"]) .topbar{background:var(--paper);border-bottom:1px solid var(--line)}
:where(html[data-theme="dark"]) .brand{color:var(--ink)}
:where(html[data-theme="dark"]) .account{color:var(--muted)}
:where(html[data-theme="dark"]) .link{border:0;background:none;color:var(--accent-text)}
:where(html[data-theme="dark"]) .sidebar{background:var(--nav)}
:where(html[data-theme="dark"]) .sidebar a{color:#c7cfdf;border-radius:8px}
:where(html[data-theme="dark"]) .sidebar a:hover{background:#1e1e1e;color:#fff}
:where(html[data-theme="dark"]) .eyebrow{color:var(--accent-text)}
:where(html[data-theme="dark"]) .muted{color:var(--muted)}
:where(html[data-theme="dark"]) .button,:where(html[data-theme="dark"]) button{border:1px solid #3b485e;border-radius:8px;background:#131313;color:var(--ink)}
:where(html[data-theme="dark"]) .primary{border-color:var(--accent);background:var(--accent);color:#fff}
:where(html[data-theme="dark"]) .danger{color:var(--danger-600)}
:where(html[data-theme="dark"]) .cards article,:where(html[data-theme="dark"]) .panel{background:var(--paper);border:1px solid var(--line);border-radius:14px;box-shadow:0 1px 2px #1018280a}
:where(html[data-theme="dark"]) .cards span{color:var(--muted)}
:where(html[data-theme="dark"]) th,:where(html[data-theme="dark"]) td{border-bottom:1px solid var(--line)}
:where(html[data-theme="dark"]) th{color:var(--muted)}
:where(html[data-theme="dark"]) .badge{border-radius:999px;background:#0e0e0e;color:var(--info-600)}
:where(html[data-theme="dark"]) input,:where(html[data-theme="dark"]) select,:where(html[data-theme="dark"]) textarea{border:1px solid #3b485e;border-radius:8px;background:#131313;color:var(--ink)}
:where(html[data-theme="dark"]) .helptext{color:var(--muted)}
:where(html[data-theme="dark"]) .errorlist{color:var(--danger-600)}
:where(html[data-theme="dark"]) .notice{border-radius:10px;background:var(--success-50);color:var(--success-600)}
:where(html[data-theme="dark"]) .notice.error,:where(html[data-theme="dark"]) .notice.is-error,:where(html[data-theme="dark"]) .notice:has(>.failure-state){background:var(--danger-50);color:var(--danger-600)}
:where(html[data-theme="dark"]) .login-page{background:linear-gradient(145deg,#0d0d0d 0 58%,#232323 58% 61%,#141414 61%)}
:where(html[data-theme="dark"]) .login-card{background:#131313;border-radius:18px;box-shadow:0 24px 80px #0005}
:where(html[data-theme="dark"]) .auth-links{border-top:1px solid var(--line)}
:where(html[data-theme="dark"]) .auth-note{background:#0f0f0f;color:var(--ink);border:1px solid var(--line)}
:where(html[data-theme="dark"]) .account-result{border-left:4px solid var(--accent);background:#0e0e0e}
:where(html[data-theme="dark"]) .account-summary dl div{border-top:1px solid var(--line)}
:where(html[data-theme="dark"]) .account-summary dt{color:var(--muted)}
:where(html[data-theme="dark"]) .account a:hover{color:var(--accent-text)}
:where(html[data-theme="dark"]) .leave-calendar-grid label{border:1px solid var(--line);border-radius:8px}
:where(html[data-theme="dark"]) .account-page-lead{color:var(--muted)}
:where(html[data-theme="dark"]) .account-identity{border-radius:16px;background:linear-gradient(135deg,#111111 0%,#1d1d1d 72%,#24469e 100%);color:#fff;box-shadow:0 14px 36px #1018281f}
:where(html[data-theme="dark"]) .account-identity::after{color:#ffffff0d}
:where(html[data-theme="dark"]) .account-identity .account-avatar{border:1px solid #ffffff38;border-radius:24px;background:#ffffff17;color:#fff;box-shadow:inset 0 1px 0 #ffffff26}
:where(html[data-theme="dark"]) .account-profile-label{color:#acacac}
:where(html[data-theme="dark"]) .account-identity .account-profile-label{color:#aabbe9}
:where(html[data-theme="dark"]) .account-identity-copy>p:not(.account-profile-label){color:#ced7eb}
:where(html[data-theme="dark"]) .account-status{border:1px solid #ffffff24;border-radius:999px;background:#ffffff12;color:#e8edfa}
:where(html[data-theme="dark"]) .account-status span{border-radius:50%;background:#59d69c;box-shadow:0 0 0 4px #59d69c1f}
:where(html[data-theme="dark"]) .account-security{border:1px solid var(--line);border-radius:16px;background:var(--paper);box-shadow:0 1px 2px #1018280a}
:where(html[data-theme="dark"]) .account-security>p:not(.account-profile-label){color:var(--muted)}
:where(html[data-theme="dark"]) .account-security-action{border-color:var(--accent);background:var(--accent);color:#fff}
:where(html[data-theme="dark"]) .account-security-action:hover{background:#2949b8}
:where(html[data-theme="dark"]) .account-theme{border-top:1px solid var(--line)}
:where(html[data-theme="dark"]) .account-section-head>p{color:var(--muted)}
:where(html[data-theme="dark"]) .account-page .account-data-grid>div{border-top:1px solid var(--line)}
:where(html[data-theme="dark"]) .account-data-grid dt{color:var(--muted)}
:where(html[data-theme="dark"]) .account-data-grid dd{color:var(--ink)}
:where(html[data-theme="dark"]) .account-help{color:var(--muted)}
:where(html[data-theme="dark"]) .ledger-pagination p{color:var(--muted)}
:where(html[data-theme="dark"]) .amount-positive{color:var(--success-600)}
:where(html[data-theme="dark"]) .amount-negative{color:var(--danger-600)}
:where(html[data-theme="dark"]) .ledger-policy>summary::marker{color:var(--accent-text)}
:where(html[data-theme="dark"]) .ledger-facts div{border:1px solid var(--line);border-radius:10px}
:where(html[data-theme="dark"]) .ledger-facts dt{color:var(--muted)}
:where(html[data-theme="dark"]) #balance-table th[scope=row],:where(html[data-theme="dark"]) #ledger-body th{color:var(--ink)}
:where(html[data-theme="dark"]) .skip-link{border-radius:0 0 8px 8px;background:#000000;color:#fff}
:where(html[data-theme="dark"]) .permission-fieldset{border:1px solid var(--line);border-radius:10px}
:where(html[data-theme="dark"]) a:focus-visible,:where(html[data-theme="dark"]) button:focus-visible,:where(html[data-theme="dark"]) input:focus-visible,:where(html[data-theme="dark"]) select:focus-visible,:where(html[data-theme="dark"]) textarea:focus-visible,:where(html[data-theme="dark"]) summary:focus-visible{outline-color:#1d4ed8}
:where(html[data-theme="dark"]) .primary:focus-visible,:where(html[data-theme="dark"]) .account-security-action:focus-visible{outline-color:#fff;box-shadow:0 0 0 5px #1d4ed8}
:where(html[data-theme="dark"]) .sidebar a:focus-visible,:where(html[data-theme="dark"]) .skip-link:focus-visible{outline-color:#fff}
:where(html[data-theme="dark"]) .sidebar a[aria-current=page]{background:#252525;color:#fff}
:where(html[data-theme="dark"]) .leave-filter-grid select{border-color:#4e4e4e}
:where(html[data-theme="dark"]) .leave-request-panel input,:where(html[data-theme="dark"]) .leave-request-panel select,:where(html[data-theme="dark"]) .leave-request-panel textarea{border-color:#4e4e4e}
:where(html[data-theme="dark"]) .leave-monthly-status{color:var(--muted)}
:where(html[data-theme="dark"]) .leave-summary-cards small{color:var(--muted)}
:where(html[data-theme="dark"]) .leave-summary-cards .leave-summary-granted{border-top-color:#3157d5}
:where(html[data-theme="dark"]) .leave-summary-cards .leave-summary-used{border-top-color:#d97706}
:where(html[data-theme="dark"]) .leave-summary-cards .leave-summary-remaining{border-top-color:#039855}
:where(html[data-theme="dark"]) .leave-employee-name{color:var(--ink)}
:where(html[data-theme="dark"]) .leave-granted{color:#6f8ae2}
:where(html[data-theme="dark"]) .leave-used{color:#ee9968}
:where(html[data-theme="dark"]) .leave-remaining{color:var(--success-600)}
:where(html[data-theme="dark"]) .leave-adjustment{color:var(--muted)}
:where(html[data-theme="dark"]) .leave-type-chip{border:1px solid #303030;border-radius:999px;background:#0f0f0f}
:where(html[data-theme="dark"]) .leave-status-ended{background:#0d0d0d;color:#9facbd}
:where(html[data-theme="dark"]) #monthly-table th:first-child{background:var(--paper)}
:where(html[data-theme="dark"]) #monthly-table thead th:first-child{background:#0f0f0f}
:where(html[data-theme="dark"]) .leave-month-detail{border-top:1px solid var(--line)}
:where(html[data-theme="dark"]) .leave-month-detail>summary::marker,:where(html[data-theme="dark"]) .leave-reference>summary::marker{color:var(--accent-text)}
:where(html[data-theme="dark"]) .leave-ledger-notice{background:var(--warning-50);color:var(--warning-600);border:1px solid #734f26}
:where(html[data-theme="dark"]) .leave-reference>section+section{border-top:1px solid var(--line)}
:where(html[data-theme="dark"]) .table-scroll-hint{color:var(--muted)}
:where(html[data-theme="dark"]) .health-check-application-notice{border:1px solid #a7d7bd;border-radius:18px;background:linear-gradient(135deg,#143b20,#133822)}
:where(html[data-theme="dark"]) .health-check-application-notice p:last-child{color:#a2c1b3}
:where(html[data-theme="dark"]) .health-check-eligibility{background:linear-gradient(145deg,#202020,#2447bd);color:#fff;border:0}
:where(html[data-theme="dark"]) .health-check-eligibility .eyebrow{color:#bfdbfe}
:where(html[data-theme="dark"]) .health-check-eligibility-message{color:#dbeafe}
:where(html[data-theme="dark"]) .health-check-date-facts div{border:1px solid #ffffff26;border-radius:12px;background:#ffffff10}
:where(html[data-theme="dark"]) .health-check-date-facts dt{color:#bfdbfe}
:where(html[data-theme="dark"]) .health-check-process li::before{border-radius:50%;background:#0e0e0e;color:#6d88e3}
:where(html[data-theme="dark"]) .health-check-process li:not(:last-child)::after{background:#262626}
:where(html[data-theme="dark"]) .health-check-process span{color:var(--muted)}
:where(html[data-theme="dark"]) .health-check-policy-grid section{border:1px solid var(--line);border-radius:13px;background:#0f0f0f}
:where(html[data-theme="dark"]) .health-check-action-form{border-top:1px solid var(--line)}
:where(html[data-theme="dark"]) .button,:where(html[data-theme="dark"]) button,:where(html[data-theme="dark"]) input,:where(html[data-theme="dark"]) select,:where(html[data-theme="dark"]) textarea{border-color:#565656}
:where(html[data-theme="dark"]) .primary{border-color:var(--accent)}
:where(html[data-theme="dark"]) .sidebar-label{color:#9a9a9a}
:where(html[data-theme="dark"]) .nav-backdrop{border:0;border-radius:0;background:#11111180}
:where(html[data-theme="dark"]) .badge{background:#0d0d0d;color:#9facbd}
:where(html[data-theme="dark"]) .badge-info{background:#0e0e0e;color:var(--info-600)}
:where(html[data-theme="dark"]) .badge-success{background:var(--success-50);color:var(--success-600)}
:where(html[data-theme="dark"]) .badge-warning{background:var(--warning-50);color:var(--warning-600)}
:where(html[data-theme="dark"]) .badge-danger{background:var(--danger-50);color:var(--danger-600)}
:where(html[data-theme="dark"]) .badge-neutral{background:#0d0d0d;color:#9facbd}
:where(html[data-theme="dark"]) .table-state{color:var(--muted)}
:where(html[data-theme="dark"]) .table-state-error{color:var(--danger-600)}
:where(html[data-theme="dark"]) .failure-state{color:#cbcbcb}
:where(html[data-theme="dark"]) .failure-state strong{color:var(--danger-600)}
:where(html[data-theme="dark"]) .failure-state p{color:#aeaeae}
:where(html[data-theme="dark"]) .failure-request-id{color:#aeaeae}
:where(html[data-theme="dark"]) .metric-card{border:1px solid var(--line);border-radius:14px;background:var(--paper);color:var(--ink);box-shadow:0 1px 2px #1018280a}
:where(html[data-theme="dark"]) .metric-card::after{color:var(--accent-text)}
:where(html[data-theme="dark"]) .metric-card:hover{border-color:#263973;box-shadow:0 4px 14px #10182812}
:where(html[data-theme="dark"]) .metric-card span{color:var(--muted)}
:where(html[data-theme="dark"]) .field-error{color:var(--danger-600)}
:where(html[data-theme="dark"]) .dashboard-loading{color:var(--muted)}
:where(html[data-theme="dark"]) .order-status-dialog{border:0;border-radius:16px;box-shadow:0 24px 80px #1018284d}
:where(html[data-theme="dark"]) .order-status-dialog::backdrop{background:#11111199}
:where(html[data-theme="dark"]) .employee-search{color:var(--muted)}
:where(html[data-theme="dark"]) .employee-search input{border-color:#4e4e4e;background:var(--paper)}
:where(html[data-theme="dark"]) .employee-grid-state{border:1px dashed #3a485f;border-radius:14px;background:#13131380;color:var(--muted)}
:where(html[data-theme="dark"]) .employee-grid-error{color:var(--danger-600)}
:where(html[data-theme="dark"]) .employee-card-button{border-color:var(--line);border-radius:18px;background:var(--paper);box-shadow:0 1px 2px #1018280a}
:where(html[data-theme="dark"]) .employee-card-button:hover{border-color:#263873;box-shadow:0 10px 28px #10182814}
:where(html[data-theme="dark"]) .employee-card-button:focus-visible{outline-color:#1d4ed8;box-shadow:0 0 0 5px #263973}
:where(html[data-theme="dark"]) .employee-card-media{background:linear-gradient(145deg,#1d1d1d,#3157d5)}
:where(html[data-theme="dark"]) .employee-card-avatar{border:1px solid #ffffff2e;border-radius:24px;background:#ffffff14;color:#fff;box-shadow:inset 0 1px 0 #ffffff30}
:where(html[data-theme="dark"]) .employee-card-status{border-radius:999px;background:#131313f2;box-shadow:0 2px 9px #10182829}
:where(html[data-theme="dark"]) .employee-card-name{color:var(--ink)}
:where(html[data-theme="dark"]) .employee-card-organization{color:#9facbd}
:where(html[data-theme="dark"]) .employee-card-title{color:var(--ink)}
:where(html[data-theme="dark"]) .employee-card-email{color:var(--muted)}
:where(html[data-theme="dark"]) .employee-card-facts{border-top:1px solid var(--line)}
:where(html[data-theme="dark"]) .employee-card-facts small{color:var(--muted)}
:where(html[data-theme="dark"]) .employee-card-facts strong{color:#cbcbcb}
:where(html[data-theme="dark"]) .employee-card-action{color:var(--accent-text)}
:where(html[data-theme="dark"]) .employee-dialog{border:0;border-radius:20px;background:var(--paper);box-shadow:0 30px 90px #10182859}
:where(html[data-theme="dark"]) .employee-dialog::backdrop{background:#111111b3}
:where(html[data-theme="dark"]) .employee-dialog-head{border-bottom:1px solid var(--line);background:#131313f5}
:where(html[data-theme="dark"]) .employee-dialog-email{color:var(--muted)}
:where(html[data-theme="dark"]) .employee-dialog-loading{color:var(--muted)}
:where(html[data-theme="dark"]) .employee-dialog-error{color:var(--danger-600)}
:where(html[data-theme="dark"]) .employee-profile-summary{border-radius:16px;background:linear-gradient(135deg,#111111 0%,#1d1d1d 72%,#24469e 100%);color:#fff}
:where(html[data-theme="dark"]) .employee-profile-photo{border:1px solid #ffffff30;border-radius:20px;background:#ffffff14;box-shadow:inset 0 1px 0 #ffffff25}
:where(html[data-theme="dark"]) .employee-profile-avatar{border:1px solid #ffffff30;border-radius:22px;background:#ffffff14}
:where(html[data-theme="dark"]) .employee-profile-facts dt{color:#aab6cf}
:where(html[data-theme="dark"]) .employee-profile-facts dd{color:#fff}
:where(html[data-theme="dark"]) .employee-section-head p{color:var(--muted)}
:where(html[data-theme="dark"]) .employee-profile-editor-group,:where(html[data-theme="dark"]) .employee-access-editor{border:1px solid var(--line);border-radius:14px;background:#0f0f0f}
:where(html[data-theme="dark"]) .employee-subsection-head p{color:var(--muted)}
:where(html[data-theme="dark"]) .employee-photo-field small{color:var(--muted)}
:where(html[data-theme="dark"]) .employee-photo-field input{background:var(--paper)}
:where(html[data-theme="dark"]) .employee-active-field{border:1px solid #4e4e4e;border-radius:10px;background:#0f0f0f}
:where(html[data-theme="dark"]) .employee-active-field small{color:var(--muted)}
:where(html[data-theme="dark"]) .employee-permissions-editor{border-top:1px solid var(--line)}
:where(html[data-theme="dark"]) .employee-permission-group{border:1px solid var(--line);border-radius:12px;background:#111111}
:where(html[data-theme="dark"]) .employee-permission-group legend{color:var(--ink)}
:where(html[data-theme="dark"]) .employee-permission-count{color:var(--muted)}
:where(html[data-theme="dark"]) .employee-permission-choice:hover{background:#0e0e0e}
:where(html[data-theme="dark"]) .employee-permission-choice code,:where(html[data-theme="dark"]) .employee-permission-summary-group code{color:var(--muted)}
:where(html[data-theme="dark"]) .employee-form-status{border:1px solid #267345;border-radius:9px;background:var(--success-50);color:var(--success-600)}
:where(html[data-theme="dark"]) .employee-form-error{border-color:#732b26;background:var(--danger-50);color:var(--danger-600)}
:where(html[data-theme="dark"]) .employee-editor #employee-form>.employee-dialog-actions{border-top:1px solid var(--line);background:#131313f2}
:where(html[data-theme="dark"]) .employee-security{border-top:1px solid var(--line)}
:where(html[data-theme="dark"]) .employee-security>summary{color:var(--danger-600)}
:where(html[data-theme="dark"]) .employee-password-form{border:1px solid #732626;border-radius:12px;background:#371212}
:where(html[data-theme="dark"]) .employee-readonly-notice{border:1px solid #303030;border-radius:10px;background:#0f0f0f;color:#9facbd}
:where(html[data-theme="dark"]) .employee-readonly-notice strong{color:var(--ink)}
:where(html[data-theme="dark"]) .employee-permission-summary-group{border:1px solid var(--line);border-radius:12px;background:#111111}
:where(html[data-theme="dark"]) .employee-permission-summary-group>div>span{color:var(--muted)}
:where(html[data-theme="dark"]) .employee-permission-summary-group li{border-top:1px solid var(--line)}
:where(html[data-theme="dark"]) body{background:linear-gradient(180deg,#101010 0,#0e0e0e 360px)}
:where(html[data-theme="dark"]) .topbar{border-bottom:1px solid #2b2b2b;background:#131313ed;box-shadow:0 1px 0 #10182805}
:where(html[data-theme="dark"]) .brand{border-right:1px solid #ffffff0d;background:var(--nav);color:#fff}
:where(html[data-theme="dark"]) .brand:hover{color:#fff}
:where(html[data-theme="dark"]) .brand-mark{border:1px solid #ffffff24;border-radius:11px;background:linear-gradient(145deg,#3f6cff,#2348c7);box-shadow:inset 0 1px 0 #ffffff35,0 7px 20px #0003}
:where(html[data-theme="dark"]) .brand-copy small{color:#95a3bb}
:where(html[data-theme="dark"]) .menu{border:0;background:#0d0d0d;color:var(--ink)}
:where(html[data-theme="dark"]) .menu:hover{background:#212121}
:where(html[data-theme="dark"]) .account-profile{border:1px solid var(--line);border-radius:14px;background:#0f0f0f;color:var(--ink)}
:where(html[data-theme="dark"]) .account-profile:hover{border-color:#273c72;background:#0f0f0f;color:var(--ink)}
:where(html[data-theme="dark"]) .account-copy small{color:var(--muted)}
:where(html[data-theme="dark"]) .account-logout{border:1px solid transparent;border-radius:10px;color:#9facbd}
:where(html[data-theme="dark"]) .account-logout:hover{border-color:var(--line);background:#131313;color:var(--danger-600)}
:where(html[data-theme="dark"]) .sidebar{background:linear-gradient(180deg,#0e0e0e 0%,#121212 100%);scrollbar-color:#33415d transparent}
:where(html[data-theme="dark"]) .sidebar-label{color:#a3a3a3}
:where(html[data-theme="dark"]) .sidebar a{border:1px solid transparent;border-radius:12px;color:#b9c3d5}
:where(html[data-theme="dark"]) .sidebar a:hover{border-color:#ffffff0d;background:#ffffff0a;color:#fff}
:where(html[data-theme="dark"]) .sidebar a[aria-current=page]{border-color:#ffffff12;background:#131313;color:#dddddd;box-shadow:0 10px 24px #0003}
:where(html[data-theme="dark"]) .sidebar-icon{border:1px solid #ffffff0d;border-radius:8px;background:#ffffff08;color:#97a3ba}
:where(html[data-theme="dark"]) .sidebar a:hover .sidebar-icon{color:#cbd5e5}
:where(html[data-theme="dark"]) .sidebar a[aria-current=page] .sidebar-icon{border-color:#263673;background:#0c0c0c;color:#6f8ae2}
:where(html[data-theme="dark"]) .nav-backdrop{background:#0b0b0bc4}
:where(html[data-theme="dark"]) .eyebrow{color:#6382ee}
:where(html[data-theme="dark"]) .cards article,:where(html[data-theme="dark"]) .panel,:where(html[data-theme="dark"]) .metric-card{border-color:var(--line);border-radius:18px;box-shadow:0 1px 2px #10182808,0 10px 26px #10182806}
:where(html[data-theme="dark"]) th{color:#adadad;background:#101010}
:where(html[data-theme="dark"]) td{border-bottom-color:#2b2b2b}
@media(max-width:900px){
:where(html[data-theme="dark"]) .brand{border-right:0;background:transparent;color:var(--ink)}
:where(html[data-theme="dark"]) .brand:hover{color:var(--ink)}
:where(html[data-theme="dark"]) .brand-mark{border-color:#3157d533;border-radius:9px}
:where(html[data-theme="dark"]) .brand-copy small{color:#a3a3a3}
:where(html[data-theme="dark"]) .sidebar{box-shadow:24px 0 60px #07101f5c}
}
:where(html[data-theme="dark"]) .product-view-tabs{border:1px solid var(--line);border-radius:13px;background:#1f1f1f}
:where(html[data-theme="dark"]) .product-view-tabs a{border-radius:9px;color:#b2b2b2}
:where(html[data-theme="dark"]) .product-view-tabs a:hover{background:#131313a8;color:var(--ink)}
:where(html[data-theme="dark"]) .product-view-tabs a[aria-current=page]{background:#131313;color:#6d88e3;box-shadow:0 1px 3px #10182814}
:where(html[data-theme="dark"]) .product-image-source{color:#a3a3a3}
:where(html[data-theme="dark"]) .product-card{border:1px solid var(--line);border-radius:18px;background:#131313;box-shadow:0 1px 2px #10182808,0 10px 26px #10182806}
:where(html[data-theme="dark"]) .product-image-shell{border-bottom:1px solid var(--line);background:linear-gradient(145deg,#0f0f0f,#0c0c0c)}
:where(html[data-theme="dark"]) .product-image-shell img{background:#0f0f0f}
:where(html[data-theme="dark"]) .product-image-fallback{color:#9b9b9b}
:where(html[data-theme="dark"]) .product-card-kicker{color:#adadad}
:where(html[data-theme="dark"]) .product-card h3 a{color:var(--ink)}
:where(html[data-theme="dark"]) .product-card h3 a:hover{color:var(--accent-text)}
:where(html[data-theme="dark"]) .product-card-meta{color:#a3a3a3}
:where(html[data-theme="dark"]) .product-facts dt,:where(html[data-theme="dark"]) .product-stock dt{color:#9b9b9b}
:where(html[data-theme="dark"]) .product-stock{border-top:1px solid #282828}
:where(html[data-theme="dark"]) .payment-request-category-tabs a{border:1px solid var(--line);border-radius:13px;background:#131313;color:var(--ink);box-shadow:0 1px 2px #1018280a}
:where(html[data-theme="dark"]) .payment-request-category-tabs a:hover{border-color:#263573;background:#101010}
:where(html[data-theme="dark"]) .payment-request-category-tabs a[aria-current=page]{border-color:#7390ff;background:#0e0e0e;color:#6c8ae9;box-shadow:0 0 0 1px #7390ff}
:where(html[data-theme="dark"]) .payment-request-category-tabs small{color:var(--muted)}
:where(html[data-theme="dark"]) .payment-upload-dropzone{border:1px dashed #4e4e4e;border-radius:12px;background:#0f0f0f}
:where(html[data-theme="dark"]) .payment-upload-dropzone.is-dragging{border-color:var(--accent);background:#0e0e0e}
:where(html[data-theme="dark"]) .payment-upload-dropzone input{background:#131313}
:where(html[data-theme="dark"]) .payment-upload-summary{color:var(--muted)}
:where(html[data-theme="dark"]) .payment-request-subtext{color:var(--muted)}
:where(html[data-theme="dark"]) .payment-request-pager span{color:var(--muted)}
:where(html[data-theme="dark"]) .payment-request-dialog{border:0;border-radius:16px;box-shadow:0 24px 80px #10182840}
:where(html[data-theme="dark"]) .payment-request-dialog::backdrop{background:#11111199}
:where(html[data-theme="dark"]) .payment-request-detail div{border-top:1px solid var(--line)}
:where(html[data-theme="dark"]) .payment-request-detail dt{color:var(--muted)}
:where(html[data-theme="dark"]) .payment-request-decision{border-top:1px solid var(--line)}
:root:where([data-theme="dark"]){--ink:#e2e2e2;--muted:#aeaeae;--line:#2c2c2c;--paper:#131313;--bg:#0e0e0e;--accent-text:#637fee;--nav:#0d0d0d;--nav-soft:#141414;--surface-shadow:0 1px 2px #10182808,0 14px 38px #10182808;--success-50:#143c24;--success-600:#80f1c2;--warning-50:#3b2914;--warning-600:#ee8f6f;--danger-50:#3a1613;--danger-600:#eb6f66;--info-50:#0e0e0e;--info-600:#7a89d7}
:where(html[data-theme="dark"]) body{background:radial-gradient(circle at 72% -10%,#21212180 0,transparent 33rem),
    linear-gradient(180deg,#101010 0,#0e0e0e 38rem);color:var(--ink)}
:where(html[data-theme="dark"]) ::selection{background:#172245;color:#8ca2e9}
:where(html[data-theme="dark"]) .topbar{border-bottom:1px solid #2c2c2ccc;background:#131313d9;box-shadow:0 1px 0 #10182805,0 10px 32px #10182804}
:where(html[data-theme="dark"]) .brand{border-right:1px solid #ffffff0d;background:linear-gradient(135deg,#0c0c0c,#121212);color:#fff}
:where(html[data-theme="dark"]) .brand:hover{color:#fff}
:where(html[data-theme="dark"]) .brand-mark{border:1px solid #ffffff26;border-radius:12px;background:linear-gradient(145deg,#5278ff,#274ed4);color:#fff;box-shadow:inset 0 1px 0 #ffffff45,0 9px 24px #02061766}
:where(html[data-theme="dark"]) .brand-copy small{color:#98a4b8}
:where(html[data-theme="dark"]) .menu{border:1px solid #2c2c2c;border-radius:12px;background:#131313;color:#a1aec3;box-shadow:0 1px 2px #1018280a}
:where(html[data-theme="dark"]) .menu:hover{border-color:#384b61;background:#0f0f0f;color:var(--accent-text)}
:where(html[data-theme="dark"]) .topbar-context{color:#adadad}
:where(html[data-theme="dark"]) .topbar-context>span{border-radius:50%;background:#22c55e;box-shadow:0 0 0 4px #267341}
:where(html[data-theme="dark"]) .topbar-context strong{color:#cbcbcb}
:where(html[data-theme="dark"]) .account-profile{border:1px solid transparent;border-radius:14px;background:transparent;color:var(--ink)}
:where(html[data-theme="dark"]) .account-profile:hover{border-color:#2e2e2e;background:#0f0f0f;color:var(--ink)}
:where(html[data-theme="dark"]) .account .account-avatar{border:1px solid #263973;border-radius:11px;background:linear-gradient(145deg,#0d0d0d,#212121);color:#6f88e2}
:where(html[data-theme="dark"]) .account-copy small{color:#a3a3a3}
:where(html[data-theme="dark"]) .account-logout{border:1px solid transparent;border-radius:10px;color:#adadad}
:where(html[data-theme="dark"]) .account-logout:hover{border-color:#732626;background:#381313;color:var(--danger-600)}
:where(html[data-theme="dark"]) .sidebar{border-right:1px solid #ffffff0a;background:radial-gradient(circle at 10% 0,#1c315d55 0,transparent 18rem),
    linear-gradient(180deg,#0d0d0d 0%,#101010 100%);box-shadow:12px 0 34px #0f172a0b}
:where(html[data-theme="dark"]) .sidebar-navigation{scrollbar-color:#34415a transparent}
:where(html[data-theme="dark"]) .sidebar-label{color:#96a3bb}
:where(html[data-theme="dark"]) .sidebar a{border:1px solid transparent;border-radius:12px;color:#b8c3d6}
:where(html[data-theme="dark"]) .sidebar-navigation a:hover{border-color:#ffffff0d;background:#ffffff0a;color:#fff}
:where(html[data-theme="dark"]) .sidebar-navigation a[aria-current=page]{border-color:#ffffff16;background:linear-gradient(135deg,#131313,#0e0e0e);color:#dddddd;box-shadow:0 10px 28px #02061755}
:where(html[data-theme="dark"]) .sidebar-icon{border:1px solid #ffffff0d;border-radius:9px;background:#ffffff08;color:#97a4b9}
:where(html[data-theme="dark"]) .sidebar-navigation a:hover .sidebar-icon{background:#ffffff0d;color:#dbe6fb}
:where(html[data-theme="dark"]) .sidebar-navigation a[aria-current=page] .sidebar-icon{border-color:#263973;background:#1f1f1f;color:#6f8ae2}
:where(html[data-theme="dark"]) .sidebar-profile{border:1px solid #ffffff10;border-radius:16px;background:#ffffff08;box-shadow:inset 0 1px 0 #ffffff08}
:where(html[data-theme="dark"]) .sidebar-profile-link{border:0!important;background:transparent!important;color:#fff!important}
:where(html[data-theme="dark"]) .sidebar-profile-avatar{border:1px solid #ffffff1f;border-radius:12px;background:linear-gradient(145deg,#3e64ee,#2443ae);color:#fff;box-shadow:0 8px 18px #02061755}
:where(html[data-theme="dark"]) .sidebar-profile-copy small{color:#91a0ba}
:where(html[data-theme="dark"]) .sidebar-profile-arrow{color:#a5a5a5}
:where(html[data-theme="dark"]) .sidebar-profile-meta{border-top:1px solid #ffffff0d;color:#98a4b8}
:where(html[data-theme="dark"]) .sidebar-profile-meta i{border-radius:50%;background:#34d399;box-shadow:0 0 0 3px #34d3991f}
:where(html[data-theme="dark"]) .sidebar-profile-meta strong{color:#aeb9cc}
:where(html[data-theme="dark"]) .nav-backdrop{background:#0b0b0bc4}
:where(html[data-theme="dark"]) .eyebrow{color:#6482ec}
:where(html[data-theme="dark"]) .panel,:where(html[data-theme="dark"]) .cards article,:where(html[data-theme="dark"]) .metric-card{border-color:#2c2c2c;border-radius:18px;background:#131313ed;box-shadow:var(--surface-shadow)}
:where(html[data-theme="dark"]) .cards article::after{border-radius:0 0 0 74px;background:linear-gradient(135deg,transparent,#0c0c0c99)}
:where(html[data-theme="dark"]) .button:hover,:where(html[data-theme="dark"]) button:hover{box-shadow:0 5px 14px #10182810}
:where(html[data-theme="dark"]) .primary{border-color:var(--accent);background:linear-gradient(135deg,#4168ff,#2e55e7);box-shadow:0 7px 18px #3157d526}
:where(html[data-theme="dark"]) .primary:hover{border-color:var(--accent-strong);background:linear-gradient(135deg,#345df4,#2448cf)}
:where(html[data-theme="dark"]) input,:where(html[data-theme="dark"]) select,:where(html[data-theme="dark"]) textarea{border-color:#384661;border-radius:11px;background:#131313;box-shadow:inset 0 1px 2px #10182805}
:where(html[data-theme="dark"]) input:hover,:where(html[data-theme="dark"]) select:hover,:where(html[data-theme="dark"]) textarea:hover{border-color:#384861}
:where(html[data-theme="dark"]) input:focus,:where(html[data-theme="dark"]) select:focus,:where(html[data-theme="dark"]) textarea:focus{border-color:#7390ff;box-shadow:0 0 0 4px #3157d512}
:where(html[data-theme="dark"]) .table-wrap[tabindex]:focus-visible{outline:3px solid #1d4ed8;outline-offset:2px}
:where(html[data-theme="dark"]) th{background:#0f0f0f;color:#aeaeae}
:where(html[data-theme="dark"]) tbody tr:hover{background:#101010}
@media(max-width:900px){
:where(html[data-theme="dark"]) .brand{border-right:0;background:transparent;color:var(--ink)}
:where(html[data-theme="dark"]) .brand:hover{color:var(--ink)}
:where(html[data-theme="dark"]) .brand-copy strong{color:var(--ink)}
:where(html[data-theme="dark"]) .brand-copy small{color:#a3a3a3}
:where(html[data-theme="dark"]) .sidebar{box-shadow:24px 0 60px #07101f66}
}
:where(html[data-theme="dark"]) .notification-toggle,:where(html[data-theme="dark"]) .theme-toggle{border-radius:12px;color:var(--ink)}
:where(html[data-theme="dark"]) .notification-toggle:hover,:where(html[data-theme="dark"]) .theme-toggle:hover{border-color:#273c72;background:#0f0f0f}
:where(html[data-theme="dark"]) .notification-badge{border:2px solid var(--paper);border-radius:999px;background:var(--danger-600);color:#fff}
:where(html[data-theme="dark"]) .notifications-panel{border:1px solid var(--line);border-radius:16px;background:var(--paper);box-shadow:0 20px 48px #1018282e}
:where(html[data-theme="dark"]) .notifications-head{border-bottom:1px solid var(--line)}
:where(html[data-theme="dark"]) .notifications-status{color:var(--muted)}
:where(html[data-theme="dark"]) .notification-item.is-unread{border-color:#263773;background:#0f0f0f}
:where(html[data-theme="dark"]) .notification-link{color:var(--ink)}
:where(html[data-theme="dark"]) .notification-link:hover{background:#0f0f0f;color:var(--ink)}
:where(html[data-theme="dark"]) .notification-link span{color:var(--muted)}
:where(html[data-theme="dark"]) .notifications-empty{color:var(--muted)}
:where(html[data-theme="dark"]) .ai-chat-toggle{border-radius:12px;color:var(--ink)}
:where(html[data-theme="dark"]) .ai-chat-toggle:hover{border-color:#273c72;background:#0f0f0f}
:where(html[data-theme="dark"]) .ai-chat-toggle span{border-radius:8px;background:#293d7a;color:#fff}
:where(html[data-theme="dark"]) .ai-chat-dialog{border:1px solid var(--line);border-radius:18px;background:var(--paper);box-shadow:0 24px 80px #10182840}
:where(html[data-theme="dark"]) .ai-chat-dialog::backdrop{background:#11111173}
:where(html[data-theme="dark"]) .ai-chat-head p{color:var(--muted)}
:where(html[data-theme="dark"]) .ai-chat-device,:where(html[data-theme="dark"]) .ai-chat-status{color:var(--muted)}
:where(html[data-theme="dark"]) .ai-chat-log{border:1px solid var(--line);border-radius:12px;background:#0f0f0f}
:where(html[data-theme="dark"]) .ai-chat-message.is-user{background:#293d7a;color:#fff}
:where(html[data-theme="dark"]) .ai-chat-message.is-assistant{background:#131313;color:var(--ink);box-shadow:0 1px 2px #10182814}
:where(html[data-theme="dark"]) .ai-chat-message.is-error{border:1px solid #732f26;color:var(--danger-600)}
:where(html[data-theme="dark"]) .ai-chat-empty{color:var(--muted)}
:where(html[data-theme="dark"]) #leave-body tr.is-deep-linked,:where(html[data-theme="dark"]) #leave-body tr.is-deep-linked:focus{outline:3px solid #7f99f8;outline-offset:-3px;background:#0f0f0f}
:where(html[data-theme="dark"]) .table-tools label{color:var(--muted)}
:where(html[data-theme="dark"]) .table-tools-status{color:var(--muted)}
:where(html[data-theme="dark"]) .table-sort-button::after{color:#aeaeae}
:where(html[data-theme="dark"]) .table-sort-button[data-direction="ascending"]::after{color:var(--accent-text)}
:where(html[data-theme="dark"]) .table-sort-button[data-direction="descending"]::after{color:var(--accent-text)}
:where(html[data-theme="dark"]) .table-sort-button:focus-visible{outline:2px solid var(--primary);outline-offset:3px;border-radius:3px}
:where(html[data-theme="dark"]) th[aria-sort="ascending"],:where(html[data-theme="dark"]) th[aria-sort="descending"]{background:#0e0e0e;color:#84a9e6}
:where(html[data-theme="dark"]) .weekly-report-source-row{border-radius:11px;background:#0f0f0f}
:where(html[data-theme="dark"]) .weekly-report-content{border:1px solid #384661;border-radius:13px;background:#131313}
:where(html[data-theme="dark"]) .weekly-report-content[contenteditable=true]:focus{border-color:#7390ff;outline:0;box-shadow:0 0 0 4px #3157d512}
:where(html[data-theme="dark"]) .weekly-report-content[contenteditable=true]:empty::before{color:#98a2b3}
:where(html[data-theme="dark"]) .weekly-report-content blockquote{border-left:4px solid #4e4e4e;color:#9facbd}
:where(html[data-theme="dark"]) .weekly-report-content pre{border-radius:9px;background:#111111;color:#f2f4f7}
:where(html[data-theme="dark"]) .weekly-report-content hr{border:0;border-top:1px solid #384661}
:where(html[data-theme="dark"]) .weekly-report-content th,:where(html[data-theme="dark"]) .weekly-report-content td{border:1px solid #2d2d2d}
:where(html[data-theme="dark"]) .weekly-report-slash-menu{border:1px solid #384661;border-radius:12px;background:#131313;box-shadow:0 18px 45px #1018282e}
:where(html[data-theme="dark"]) .weekly-report-slash-menu p{color:#aeaeae}
:where(html[data-theme="dark"]) .weekly-report-slash-menu button{border:0;border-radius:8px;background:transparent;color:#cbcbcb}
:where(html[data-theme="dark"]) .weekly-report-slash-menu button:hover,:where(html[data-theme="dark"]) .weekly-report-slash-menu button.is-active{background:#0d0d0d;color:#e2e2e2}
:where(html[data-theme="dark"]) .sidebar-search{border:1px solid #ffffff14;border-radius:11px;background:#ffffff0a;color:#8ea0c0}
:where(html[data-theme="dark"]) .sidebar-search:hover{border-color:#ffffff24;background:#ffffff10;color:#dbe6fb;box-shadow:none}
:where(html[data-theme="dark"]) .sidebar-search kbd{border:1px solid #ffffff1f;border-radius:5px;background:transparent;color:#a9b7d2}
:where(html[data-theme="dark"]) .command-palette{border:0;border-radius:16px;background:var(--paper);box-shadow:0 30px 90px #10182859}
:where(html[data-theme="dark"]) .command-palette::backdrop{background:#11111180}
:where(html[data-theme="dark"]) .command-palette-input{border:0;border-bottom:1px solid var(--line);border-radius:16px 16px 0 0;box-shadow:none}
:where(html[data-theme="dark"]) .command-palette-input:focus{border-color:var(--line);outline:0;box-shadow:none}
:where(html[data-theme="dark"]) .command-palette-list li[role=option]:hover{background:#0e0e0e}
:where(html[data-theme="dark"]) .command-palette-list li.is-active{background:var(--info-50)}
:where(html[data-theme="dark"]) .command-palette-icon{border:1px solid var(--line);border-radius:9px;background:#0f0f0f;color:#98a5b8}
:where(html[data-theme="dark"]) .command-palette-list li.is-active .command-palette-icon{border-color:#263973;background:#1f1f1f;color:#6f8ae2}
:where(html[data-theme="dark"]) .command-palette-copy small{color:var(--muted)}
:where(html[data-theme="dark"]) .command-palette-empty{color:var(--muted)}
:where(html[data-theme="dark"]) .command-palette-help{border-top:1px solid var(--line);color:var(--muted)}
:where(html[data-theme="dark"]) .command-palette-help kbd{border:1px solid var(--line);border-radius:4px;background:#0f0f0f}
:where(html[data-theme="dark"]) .erp-dialog{border:1px solid var(--line);border-radius:16px;background:var(--paper);box-shadow:0 24px 64px #10182838}
:where(html[data-theme="dark"]) .erp-dialog::backdrop{background:#11111191}
:where(html[data-theme="dark"]) .erp-dialog-head,:where(html[data-theme="dark"]) .erp-dialog-actions{border-bottom:1px solid var(--line)}
:where(html[data-theme="dark"]) .erp-dialog-actions{border-top:1px solid var(--line);border-bottom:0;background:#111111}
:where(html[data-theme="dark"]) .erp-dialog fieldset{border:1px solid var(--line);border-radius:12px}
:where(html[data-theme="dark"]) .raw-data-meta,:where(html[data-theme="dark"]) .raw-data-policy{border:1px solid #263773;border-radius:10px;background:#0f0f0f;color:#cbcbcb}
:where(html[data-theme="dark"]) .erp-dialog-form{border:0;border-radius:16px;background:var(--paper);box-shadow:0 24px 80px #1018284d}
:where(html[data-theme="dark"]) .erp-dialog-form::backdrop{background:#11111199}
:where(html[data-theme="dark"]) .sidebar-count{border-radius:999px;background:#ffffff14;color:#c8d3e8}
:where(html[data-theme="dark"]) .sidebar-navigation a[aria-current=page] .sidebar-count{background:var(--info-50);color:var(--info-600)}
:where(html[data-theme="dark"]) .erp-filterbar{border:1px solid var(--line);border-radius:12px;background:#111111}
:where(html[data-theme="dark"]) .erp-filterbar label{color:var(--ink)}
:where(html[data-theme="dark"]) .sidebar-label.sidebar-label-divided::before{border-top:1px solid #ffffff24}
:where(html[data-theme="dark"]) .notifications-browser{border:1px dashed var(--border,#363636);border-radius:10px}
:where(html[data-theme="dark"]) .notifications-browser small{color:var(--muted,#aeaeae)}
:where(html[data-theme="dark"]) .alerts-summary{color:var(--muted)}
:where(html[data-theme="dark"]) .alerts-summary b{color:var(--ink)}
:where(html[data-theme="dark"]) .alerts-card{border:1px solid var(--line);border-radius:12px}
:where(html[data-theme="dark"]) .alerts-dot{border-radius:50%;background:#4f4f4f}
:where(html[data-theme="dark"]) .alerts-dot.tone-red{background:#e5484d}
:where(html[data-theme="dark"]) .alerts-dot.tone-amber{background:#f5a524}
:where(html[data-theme="dark"]) .alerts-count{color:var(--muted)}
:where(html[data-theme="dark"]) .alerts-chip{border:1px solid var(--line);border-radius:999px;color:var(--ink)}
:where(html[data-theme="dark"]) a.alerts-chip:hover{border-color:var(--accent);color:var(--accent-text)}
:where(html[data-theme="dark"]) .alerts-chip small{color:var(--muted)}
:where(html[data-theme="dark"]) .alerts-chip.is-more{color:var(--accent-text)}
:where(html[data-theme="dark"]) .alerts-footer{border-top:1px solid var(--line)}
:where(html[data-theme="dark"]) .alerts-footer-note{color:var(--muted)}
:where(html[data-theme="dark"]) .erp-tip{border-radius:6px;background:var(--erp-tip-fill,#232323);color:#fff}
:where(html[data-theme="dark"]) .erp-tip{--erp-tip-fill:#232323}
