/* Theme controls share the same layout and keyboard affordances in both modes. */
.theme-toggle{color:var(--action);background:#f9eadd}
.theme-toggle:hover{background:#f4dcc9}
.theme-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:3px 0 18px;padding:0;border:0;min-width:0}
.theme-option{position:relative;display:block;min-width:0;cursor:pointer}
.theme-option>input{position:absolute;width:1px;height:1px;margin:0;opacity:0;clip-path:inset(50%)}
.theme-option-card{display:flex;flex-direction:column;align-items:flex-start;gap:10px;min-height:157px;padding:17px 15px;border:1px solid var(--line);border-radius:13px;background:#f9fbf6;transition:background .18s,border-color .18s,box-shadow .18s}
.theme-option-icon{display:inline-grid;place-items:center;width:35px;height:35px;border-radius:10px;background:#eaf0e3;color:#738166}
.theme-option-card strong{font-size:13px;line-height:1.5}
.theme-option-card small{font-size:11px;color:#77876d;line-height:1.6}
.theme-option:hover .theme-option-card{border-color:#b5c3aa}
.theme-option>input:checked+.theme-option-card{background:#fff0e4;border-color:#c94f27;box-shadow:0 0 0 1px #c94f27}
.theme-option>input:checked+.theme-option-card .theme-option-icon{background:#f6d9c2;color:#a74425}
.theme-option>input:focus-visible+.theme-option-card{outline:3px solid #478778;outline-offset:4px}
.theme-status{font-size:12px;color:var(--muted);line-height:1.8;margin-top:15px}
.login-form-panel{position:relative}
.login-form-panel>.back-link{padding-right:52px;align-self:flex-start}
.login-theme-control{position:absolute;top:49px;right:55px}

/* Forest charcoal surfaces retain Simku's warm orange and mint identity. */
html[data-theme="dark"]{--ink:#e8eee6;--muted:#a5b4a8;--orange:#f49b70;--action:#c94f27;--mint:#26392e;--line:#35483c;--paper:#1b2922;--dark-canvas:#111b17;--dark-panel:#1b2922;--dark-raised:#24352b;--dark-field:#15231c;--dark-border:#35483c;--dark-muted:#a5b4a8;--dark-soft:#bfcdc1;--dark-accent:#f1ac85;color-scheme:dark;background:var(--dark-canvas);scrollbar-color:#516957 #16231c}
html[data-theme="dark"] body{background:radial-gradient(ellipse at 98% 0,#3b61412b,transparent 53%),radial-gradient(ellipse at 5% 5%,#b66e3920,transparent 45%),var(--dark-canvas)}
html[data-theme="dark"] :focus-visible{outline-color:#98c0a2}
html[data-theme="dark"] :is(input,select,textarea):focus{outline-color:#e49b75}
html[data-theme="dark"] input::placeholder{color:#8b9e90}
html[data-theme="dark"] :is(input,select,textarea){caret-color:#f2a37a}
html[data-theme="dark"] option{background:#1b2922;color:var(--ink)}
html[data-theme="dark"] input[type="checkbox"]{accent-color:#e18b5d}
html[data-theme="dark"] .skip{background:#dce9dc;color:#15231c}
html[data-theme="dark"] .sidebar{background:linear-gradient(160deg,#253126f5,#182b22f0 65%,#193329ed);border-right-color:#35483c;box-shadow:12px 0 35px #050c0814}
html[data-theme="dark"] .brand>span>span{color:#f18d61}
html[data-theme="dark"] .workspace-switch{background:#1b2a22a6;border-color:#3b503f}
html[data-theme="dark"] .workspace-icon{background:#2b4130;color:#b4cba7}
html[data-theme="dark"] :is(.workspace-switch small,.nav-label,.admin-profile small){color:#a6b69e}
html[data-theme="dark"] .sidebar nav>a{color:#b9c9b4}
html[data-theme="dark"] .sidebar nav>a:hover{background:#314832;color:#e4eddf}
html[data-theme="dark"] .sidebar nav>a.active{background:linear-gradient(110deg,#72462e8c,#724e292e);color:#ffb990;border-color:#98674480}
html[data-theme="dark"] .sidebar nav>a.active:hover{background:#754a329c}
html[data-theme="dark"] .sidebar nav>a b{background:#344b36;color:#b7cda7}
html[data-theme="dark"] .sidebar nav>a.active b{background:#7e5337;color:#ffe0c4}
html[data-theme="dark"] .sidebar-tip{background:linear-gradient(135deg,#294031,#243d2c);border-color:#3c5640}
html[data-theme="dark"] .tip-icon{color:#a9c38e}
html[data-theme="dark"] .sidebar-tip p{color:#b0c2a3}
html[data-theme="dark"] .sidebar-tip a{color:#d0dfc3}
html[data-theme="dark"] .admin-profile{border-top-color:#3a503b}
html[data-theme="dark"] .admin-profile>.icon{color:#b0c09f}
html[data-theme="dark"] .avatar{background:#334b36;color:#c4d8b4}
html[data-theme="dark"] :is(.avatar.orange,.small-avatar){background:#694c32;color:#f3d3ab}
html[data-theme="dark"] .topbar{background:#17251ed9;border-bottom-color:#314437;backdrop-filter:blur(24px) saturate(1.25)}
html[data-theme="dark"] .breadcrumb{color:#a3b199}
html[data-theme="dark"] .breadcrumb strong{color:#d2deca}
html[data-theme="dark"] .breadcrumb>.icon{color:#8ca083}
html[data-theme="dark"] .global-search{color:#b6c4ad}
html[data-theme="dark"] .global-search kbd{background:#24352a;border-color:#41533a;color:#b4c4a9}
html[data-theme="dark"] .environment{background:#2b4028;border-color:#47603a;color:#bfd3a7}
html[data-theme="dark"] :is(.icon-btn,.mobile-menu){color:#b7caaa}
html[data-theme="dark"] .icon-btn:hover{background:#304632}
html[data-theme="dark"] .notification-button>i{background:#f2a97a;border-color:#17251e}
html[data-theme="dark"] .topbar-divider{background:#3b503b}
html[data-theme="dark"] .nav-overlay{background:#06130ea3}
html[data-theme="dark"] :is(.eyebrow,.greeting-dot){color:#edb18a}
html[data-theme="dark"] .page-intro p:not(.eyebrow){color:var(--dark-muted)}
html[data-theme="dark"] .btn.primary{border-color:#df794f;box-shadow:0 3px 9px #0003;color:#fff}
html[data-theme="dark"] .btn.primary:hover{background:#b94722}
html[data-theme="dark"] .btn.secondary{background:#25372b;border-color:#4a6047;color:#d2dfc7}
html[data-theme="dark"] .btn.secondary:hover{background:#324b35}
html[data-theme="dark"] .btn.ghost{color:#eab68b}
html[data-theme="dark"] .btn.ghost:hover{background:#59412c73}
html[data-theme="dark"] .btn.danger{background:#542f29;border-color:#8b5547;color:#f1b39e}
html[data-theme="dark"] .text-link{color:#f0ba8f}
html[data-theme="dark"] .period-control{background:#1c2e23;border-color:#3c533c;color:#b9cfa7}
html[data-theme="dark"] .overview-strip>span{color:#b8cba8}
html[data-theme="dark"] :is(.overview-strip p,.overview-strip time){color:#a8b89e;border-color:#394e36}
html[data-theme="dark"] :is(.metric,.stat-mini,.product-card){background:var(--dark-panel);border-color:var(--dark-border);box-shadow:0 5px 15px #0000000d}
html[data-theme="dark"] .metric-label{color:#b9cbb1}
html[data-theme="dark"] .metric-icon.peach{background:#5e3d28;color:#f0b283}
html[data-theme="dark"] .metric-icon.mint{background:#34482c;color:#c0d29d}
html[data-theme="dark"] .metric-icon.lavender{background:#41374b;color:#cab8df}
html[data-theme="dark"] :is(.metric>strong small,.metric-caption,.metric-bottom>small){color:#adbf9f}
html[data-theme="dark"] .trend-pill.soft{background:#2c442d;color:#b2d09c}
html[data-theme="dark"] .metric.featured{background:linear-gradient(120deg,#355c43,#49653e);border-color:#658650;color:#fffcea}
html[data-theme="dark"] .metric.featured .metric-label{color:#e6edd8}
html[data-theme="dark"] .metric.featured .metric-bottom>small{color:#d7e4c8}
html[data-theme="dark"] .metric-decoration{color:#789861;opacity:.4}
html[data-theme="dark"] .metric-decoration.lavender-text{color:#a28dad}
html[data-theme="dark"] .panel{background:#1b2922ed;border-color:var(--dark-border);box-shadow:0 4px 16px #0000000d}
html[data-theme="dark"] :is(.panel-head p,.panel-head>.icon,.chart-total,.chart-legend,.chart-y,.chart-x){color:#a8bfa0}
html[data-theme="dark"] .chart-legend i{background:#efaa70}
html[data-theme="dark"] .chart-plot path[stroke="#e7ece4"]{stroke:#3d523e}
html[data-theme="dark"] .chart-plot path[stroke="#e47b47"]{stroke:#f6a46e}
html[data-theme="dark"] .chart-plot circle{fill:#24382b;stroke:#f6a46e}
html[data-theme="dark"] .chart-plot #chart-fill stop{stop-color:#eba262}
html[data-theme="dark"] .destination-ranking li{border-bottom-color:#354935}
html[data-theme="dark"] .rank{color:#9eaf91}
html[data-theme="dark"] .flag{background:#344730;color:#b9caa9;box-shadow:0 0 0 1px #e2eedf1c}
html[data-theme="dark"] .destination-ranking div>span{color:#a9bea0}
html[data-theme="dark"] .rank-total b{color:#bed1b1}
html[data-theme="dark"] .progress-track{background:#354a33}
html[data-theme="dark"] .progress-track>span{background:#d7a96f}
html[data-theme="dark"] .panel-link{border-top-color:#354935;color:#dac196}
html[data-theme="dark"] .attention-strip{background:linear-gradient(105deg,#58462a80,#403e244a);border-color:#66583a}
html[data-theme="dark"] .attention-icon{background:#675030;color:#e7c184}
html[data-theme="dark"] .attention-strip p{color:#cabb94}
html[data-theme="dark"] .attention-strip>button{color:#d3c49e;border-color:#6b5c3d}
html[data-theme="dark"] .attention-strip>button b{color:#efd29a}
html[data-theme="dark"] th{background:#223328;border-bottom-color:#3b503b;color:#b0c4a4}
html[data-theme="dark"] td{border-bottom-color:#344835;color:#bfceba}
html[data-theme="dark"] tbody tr:hover{background:#2c412d66}
html[data-theme="dark"] .cell-main{color:#deead6}
html[data-theme="dark"] .cell-sub{color:#a5bc98}
html[data-theme="dark"] .badge{background:#344332;color:#c3ceb8}
html[data-theme="dark"] :is(.badge.paid,.badge.active,.badge.approved,.badge.ready,.badge.success){background:#304b30;color:#b2d89b}
html[data-theme="dark"] :is(.badge.pending,.badge.requested,.badge.waiting){background:#524425;color:#edcf83}
html[data-theme="dark"] :is(.badge.failed,.badge.rejected){background:#58362d;color:#efb39c}
html[data-theme="dark"] .badge.refunded{background:#43364d;color:#d4b9e8}
html[data-theme="dark"] :is(.badge.inactive,.badge.expired){background:#354332;color:#b8c4ad}
html[data-theme="dark"] :is(.dashboard-foot,.admin-footer){color:#a7bb9c;border-color:#334835}
html[data-theme="dark"] :is(.stat-mini>span,.stat-mini strong small){color:#aabd9d}
html[data-theme="dark"] .toolbar{border-bottom-color:#354935}
html[data-theme="dark"] .search-field{background:var(--dark-field);border-color:#40573d;color:#afc29f}
html[data-theme="dark"] .search-field:focus-within{outline-color:#e49b75}
html[data-theme="dark"] .filter-select{background:var(--dark-field);border-color:#40573d}
html[data-theme="dark"] :is(.toolbar-count,.pagination){color:#a9bf9a}
html[data-theme="dark"] .pagination{border-top-color:#354935}
html[data-theme="dark"] .pagination button{border-color:#4a603f}
html[data-theme="dark"] .pagination button:hover:not(:disabled){background:#304632}
html[data-theme="dark"] .empty-state>span{background:#50432a;color:#e1c391}
html[data-theme="dark"] .page-caption{color:#aabf9b}
html[data-theme="dark"] .ref-code{background:#443f29;border-color:#76633c;color:#e6cf98}
html[data-theme="dark"] .product-card:hover{box-shadow:0 10px 25px #030b0540}
html[data-theme="dark"] .product-meta{border-color:#354935}
html[data-theme="dark"] .product-meta>div>span{color:#a8bd9a}
html[data-theme="dark"] .toggle-label{color:#bbcfaa}
html[data-theme="dark"] .settings-tabs .active{background:#60432d;color:#f2bc8d}
html[data-theme="dark"] .field{color:#c3d3b6}
html[data-theme="dark"] :is(.field input,.field select,.field textarea){background:var(--dark-field);border-color:#40573d}
html[data-theme="dark"] .field small{color:#a5bd96}
html[data-theme="dark"] :is(input[readonly],.field input[readonly],input:disabled,.field input:disabled,.field select:disabled){background:#2b382a;color:#a9b99f}
html[data-theme="dark"] .form-note{background:#293b2a;border-color:#42583d;color:#b7cbaa}
html[data-theme="dark"] .form-error{color:#f4ad8e}
html[data-theme="dark"] .text-muted{color:#afc3a0}
html[data-theme="dark"] .tabs>button{color:#b5c5a9}
html[data-theme="dark"] .tabs>button.active{background:#5b412a;color:#efc193}
html[data-theme="dark"] .modal{background:#1b2922;border-color:#486144;box-shadow:0 28px 100px #0009}
html[data-theme="dark"] .modal::backdrop{background:#050e0bcc}
html[data-theme="dark"] .modal-head{background:linear-gradient(110deg,#3c3527,#263a2a);border-bottom-color:#41543a}
html[data-theme="dark"] .modal-head p:not(.eyebrow){color:#b5c6a7}
html[data-theme="dark"] .modal-head .icon-btn{background:#27372a;border-color:#4c6041}
html[data-theme="dark"] .modal-head .icon-btn:hover{background:#364b34}
html[data-theme="dark"] .modal-footer{background:#203025;border-top-color:#3d533a}
html[data-theme="dark"] .detail-banner{background:linear-gradient(110deg,#4a3b2980,#2b402b);border-color:#506041}
html[data-theme="dark"] .detail-item>span{color:#adbf9f}
html[data-theme="dark"] :is(.modal-body ul,.modal-body ol){color:#bed1b0}
html[data-theme="dark"] :is(.notification-list>button,.search-result-list>button){border-bottom-color:#3a4f36}
html[data-theme="dark"] :is(.notification-list>button,.search-result-list>button):hover{background:#2a3e2b}
html[data-theme="dark"] :is(.notification-icon,.search-result-list>button>span:first-child){background:#564429;color:#e8c493}
html[data-theme="dark"] :is(.notification-list small,.search-result-list small){color:#a9bf99}
html[data-theme="dark"] :is(.notification-list>button>.icon,.search-result-list>button>.icon){color:#b0c79e}
html[data-theme="dark"] .activity-list i{background:#8aaa71}
html[data-theme="dark"] .activity-list strong{color:#c8d7bc}
html[data-theme="dark"] .activity-list time{color:#a7bd97}
html[data-theme="dark"] .search-hint{color:#b0c19f}
html[data-theme="dark"] #toast{background:#344c37;border-color:#77966a;color:#f2f6e8;box-shadow:0 12px 40px #0005}
html[data-theme="dark"] .login-story{background:radial-gradient(ellipse at 0 0,#a2633533,transparent 64%),linear-gradient(140deg,#363124,#1d3929);border-right-color:#42523a}
html[data-theme="dark"] .login-story-foot{color:#b0c799}
html[data-theme="dark"] .login-orbit{border-color:#bdd3b41a}
html[data-theme="dark"] .login-form-panel{background:#18271f}
html[data-theme="dark"] .back-link{color:#b7cbaa}
html[data-theme="dark"] .login-badge{background:#58422b;color:#e8bc92}
html[data-theme="dark"] :is(.login-demo-note,.login-copyright){color:#a8bd98}
html[data-theme="dark"] .theme-toggle{color:#f2b78f;background:#5a3e2880}
html[data-theme="dark"] .theme-toggle:hover{background:#75502f9c}
html[data-theme="dark"] .theme-option-card{background:#223429;border-color:#435a3d}
html[data-theme="dark"] .theme-option-icon{background:#344b34;color:#bfd4af}
html[data-theme="dark"] .theme-option-card small{color:#aabd9d}
html[data-theme="dark"] .theme-option:hover .theme-option-card{border-color:#8ca576}
html[data-theme="dark"] .theme-option>input:checked+.theme-option-card{background:#60422c;border-color:#f0a875;box-shadow:0 0 0 1px #f0a875}
html[data-theme="dark"] .theme-option>input:checked+.theme-option-card .theme-option-icon{background:#8d5b35;color:#ffe0b9}
html[data-theme="dark"] .theme-option>input:checked+.theme-option-card small{color:#e6cfb9}
html[data-theme="dark"] .theme-option>input:focus-visible+.theme-option-card{outline-color:#98c0a2}

@media(max-width:1000px){.login-theme-control{top:39px;right:35px}}
@media(max-width:760px){.login-theme-control{top:24px;right:24px}html[data-theme="dark"] .destination-ranking li:nth-last-child(2){border-bottom-color:#354935}}
@media(max-width:430px){.theme-options{grid-template-columns:1fr;gap:11px}.theme-option-card{display:grid;grid-template-columns:35px minmax(0,1fr);gap:3px 13px;min-height:78px;padding:13px 15px;align-items:center}.theme-option-icon{grid-row:1/3}.theme-option-card strong{align-self:end}.theme-option-card small{grid-column:2;align-self:start}}
@media(prefers-reduced-transparency:reduce){html[data-theme="dark"] .sidebar{background:#1e3025;backdrop-filter:none}html[data-theme="dark"] .topbar{background:#1b2c22;backdrop-filter:none}}
