/* Dompet Kerja theme preference: additive appearance layer.
   Existing dark workspace is retained. No access, navigation or record logic. */
@media screen {
  #appView .dk-theme-picker {position:relative;flex:0 0 auto}
  #appView .dk-theme-toggle {
    display:inline-flex;align-items:center;justify-content:center;gap:8px;
    min-width:112px;min-height:48px;padding:10px 12px;
    border:1px solid var(--dk-line);border-radius:11px;
    background:var(--dk-surface);color:var(--dk-text);
    font:500 12px/1.5 Manrope,Arial,sans-serif;
    cursor:pointer;box-shadow:none;white-space:nowrap;
  }
  #appView .dk-theme-toggle:hover {border-color:#58735e;background:var(--dk-raised)}
  #appView .dk-theme-toggle[aria-expanded="true"] {border-color:#57a477;box-shadow:0 0 0 3px #3cda9410}
  #appView .dk-theme-toggle>span:first-child {font-size:17px;line-height:1;width:19px;text-align:center;color:var(--dk-green)}
  #appView .dk-theme-toggle>span:last-child:not(#dkThemeLabel) {font-size:11px;color:var(--dk-muted)}
  #appView .dk-theme-menu {
    position:absolute;z-index:95;right:0;top:calc(100% + 9px);
    width:192px;max-width:calc(100vw - 36px);padding:6px;
    border:1px solid #3a4f40;border-radius:12px;
    background:var(--dk-surface);color:var(--dk-text);
    box-shadow:0 18px 50px #0006;
  }
  #appView .dk-theme-menu>button {
    display:grid;grid-template-columns:20px minmax(0,1fr) 16px;
    gap:10px;align-items:center;width:100%;min-height:43px;padding:10px;
    background:transparent;border:1px solid transparent;border-radius:8px;
    color:var(--dk-text);font:500 12px/1.5 Manrope,Arial,sans-serif;
    text-align:left;cursor:pointer;
  }
  #appView .dk-theme-menu>button:hover {background:#25382b}
  #appView .dk-theme-menu>button[aria-checked="true"] {background:#213c2b;border-color:#3c6249;color:#bbf4ce}
  #appView .dk-theme-menu>button>span:first-child {font-size:17px;line-height:1;text-align:center}
  #appView .dk-theme-menu>button>span:last-child {color:var(--dk-green);font-weight:700;text-align:center}
  #appView .dk-theme-menu .dk-theme-check {opacity:0}
  #appView .dk-theme-menu>button[aria-checked="true"] .dk-theme-check {opacity:1}
  #appView .dk-theme-menu>button:focus-visible,
  #appView .dk-theme-toggle:focus-visible {outline:2px solid #63e5a4;outline-offset:3px}

  /* Light tokens override only the authenticated workspace and its overlays. */
  html[data-dk-theme="light"] #appView,
  html[data-dk-theme="light"] body:has(#appView:not(.hidden)) {
    --dk-bg:#f5f7f3;
    --dk-surface:#ffffff;
    --dk-raised:#f0f5ed;
    --dk-input:#ffffff;
    --dk-line:#d8e3d8;
    --dk-text:#193c2a;
    --dk-muted:#5c7163;
    --dk-subtle:#59724e;
    --dk-green:#196b46;
    --dk-green-ink:#ffffff;
    --dk-green-soft:#e7f3e7;
    --dk-warning:#805a21;
    --dk-danger:#a43d33;
    --work-green:#205b3c;
    color:var(--dk-text);color-scheme:light;
  }
  html[data-dk-theme="light"] body:has(#appView:not(.hidden)) {background:var(--dk-bg)}
  html[data-dk-theme="light"] #appView {background:radial-gradient(ellipse at 65% 0,#e7f1e155 0,transparent 52%),var(--dk-bg)}
  html[data-dk-theme="light"] #appView a {color:#206c46}
  html[data-dk-theme="light"] #appView .sidebar {border-right-color:#d4e1d4;background:linear-gradient(180deg,#edf4e9,#f7f9f4 180px,#f2f6ef);box-shadow:1px 0 24px #223d2004}
  html[data-dk-theme="light"] #appView .side-brand b {color:#193d28}
  html[data-dk-theme="light"] #appView .side-brand small {color:#59724e}
  html[data-dk-theme="light"] #appView .sidebar .nav {background:transparent;color:#54705b}
  html[data-dk-theme="light"] #appView .sidebar .nav:hover {background:#eaf1e5;color:#234e33;border-color:#d3e1ce}
  html[data-dk-theme="light"] #appView .sidebar .nav.active {color:#1c5834;border-color:#b8d2b4;background:linear-gradient(100deg,#dbeed5,#e8f3e3);box-shadow:inset 3px 0 0 #39774c}
  html[data-dk-theme="light"] #appView .sidebar .nav-label {color:#59724e}
  html[data-dk-theme="light"] #appView .sidebar .logout {color:#986258}
  html[data-dk-theme="light"] #appView .sidebar .logout:hover {background:#f7eae4;color:#8e4037}
  html[data-dk-theme="light"] #appView .topbar>div:first-child>.muted {color:#59724e}
  html[data-dk-theme="light"] #appView .user-badge {background:#fff;border-color:#d9e4d7}
  html[data-dk-theme="light"] #appView .user-badge b {color:#254b32}
  html[data-dk-theme="light"] #appView .user-badge small {color:#59724e}
  html[data-dk-theme="light"] #appView .user-badge>span {background:#e4efdc;color:#39663e}
  html[data-dk-theme="light"] #appView .user-badge .profile-chevron {background:transparent;color:#59724e}
  html[data-dk-theme="light"] #appView .profile-button:hover {border-color:#a5bea0}
  html[data-dk-theme="light"] #appView .profile-menu {background:#fff;border-color:#d2dfcb;box-shadow:0 18px 50px #29451c18}
  html[data-dk-theme="light"] #appView .profile-menu button {color:#31583a}
  html[data-dk-theme="light"] #appView .profile-menu button:hover {background:#edf5e8;color:#245f37}
  html[data-dk-theme="light"] #appView .profile-menu .danger-link {color:var(--dk-danger)}
  html[data-dk-theme="light"] #appView :is(button,a,input,select,textarea,summary):focus-visible,
  html[data-dk-theme="light"] body:has(#appView:not(.hidden)) #modal :is(button,a,input,select,textarea,summary):focus-visible {outline-color:#39864d}
  html[data-dk-theme="light"] #appView .primary,
  html[data-dk-theme="light"] body:has(#appView:not(.hidden)) #modal .primary {background:#216944;color:#fff;border-color:#216944}
  html[data-dk-theme="light"] #appView .primary:hover,
  html[data-dk-theme="light"] body:has(#appView:not(.hidden)) #modal .primary:hover {background:#185333;border-color:#185333}
  html[data-dk-theme="light"] #appView :is(.ghost,.btn-sm,.work-light),
  html[data-dk-theme="light"] body:has(#appView:not(.hidden)) #modal :is(.ghost,.btn-sm,.work-light) {background:#fff;color:#42664a;border-color:#cbdcc5}
  html[data-dk-theme="light"] #appView :is(.ghost,.btn-sm,.work-light):hover,
  html[data-dk-theme="light"] body:has(#appView:not(.hidden)) #modal :is(.ghost,.btn-sm,.work-light):hover {background:#edf5e7;border-color:#99bb90;color:#214c2d}
  html[data-dk-theme="light"] #appView .btn-danger,
  html[data-dk-theme="light"] body:has(#appView:not(.hidden)) #modal .btn-danger {color:var(--dk-danger)}
  html[data-dk-theme="light"] #appView :is(input,select,textarea),
  html[data-dk-theme="light"] body:has(#appView:not(.hidden)) #modal :is(input,select,textarea) {border-color:#cbdac5;background:#fff;color:#254b32}
  html[data-dk-theme="light"] #appView :is(input,textarea)::placeholder,
  html[data-dk-theme="light"] body:has(#appView:not(.hidden)) #modal :is(input,textarea)::placeholder {color:#59724e}
  html[data-dk-theme="light"] #appView :is(input,select,textarea):focus,
  html[data-dk-theme="light"] body:has(#appView:not(.hidden)) #modal :is(input,select,textarea):focus {border-color:#5c935b;box-shadow:0 0 0 3px #598b4712}
  html[data-dk-theme="light"] #appView :is(input,select,textarea):disabled,
  html[data-dk-theme="light"] body:has(#appView:not(.hidden)) #modal :is(input,select,textarea):disabled {background:#edf1e9;color:#59724e}
  html[data-dk-theme="light"] #appView :is(.form label,.filter-grid label,.revenue-filters label),
  html[data-dk-theme="light"] body:has(#appView:not(.hidden)) #modal .form label {color:#456448}
  html[data-dk-theme="light"] #appView :is(.card,.work-record,.work-stat,.work-access-intro,.work-member) {background:#fff;border-color:#d9e3d4;box-shadow:0 4px 20px #28421d04}
  html[data-dk-theme="light"] #appView :is(.work-record,.work-stat):hover {background:#fafdf7;border-color:#a5c197;box-shadow:0 6px 24px #2c4d1b0a}
  html[data-dk-theme="light"] #appView :is(.work-kicker,.kpi-label) {color:#59724e}
  html[data-dk-theme="light"] #appView :is(.work-tag,.pill,.status-paid,.google-linked) {background:#e8f2df;color:#3e6e39;border-color:#c5ddb9}
  html[data-dk-theme="light"] #appView .work-stat>span {background:#e9f1e0;color:#59724e}
  html[data-dk-theme="light"] #appView :is(.work-empty,.business-empty) {background:#f9fbf5;border-color:#cbdcc0;color:#59724e}
  html[data-dk-theme="light"] #appView :is(.work-empty,.business-empty)>span {color:#59724e}
  html[data-dk-theme="light"] #appView :is(.work-empty h3,.business-empty h2) {color:#3d6536}
  html[data-dk-theme="light"] #appView :is(.work-search,.business-search) {background:#fff;border-color:#cfdccb}
  html[data-dk-theme="light"] #appView :is(.work-search,.business-search)>span {color:#59724e}
  html[data-dk-theme="light"] #appView :is(.work-search,.business-search) input {color:#2e5135}
  html[data-dk-theme="light"] #appView .business-intro h1 {color:#244b31}
  html[data-dk-theme="light"] #appView .business-intro p {color:#59724e}
  html[data-dk-theme="light"] #appView .business-intro .work-kicker {color:#59724e}
  html[data-dk-theme="light"] #appView .business-overview {border-color:#d0dfc7;background:linear-gradient(115deg,#ebf4e3,#f8fbf3 75%);color:#59724e}
  html[data-dk-theme="light"] #appView .business-overview strong {color:#345d32}
  html[data-dk-theme="light"] #appView .business-overview-note {color:#59724e}
  html[data-dk-theme="light"] #appView .business-tabs {background:#edf3e6;border-color:#d1dfc6}
  html[data-dk-theme="light"] #appView .business-tabs button {color:#59724e}
  html[data-dk-theme="light"] #appView .business-tabs [aria-current] {background:#fff;color:#356333;box-shadow:inset 0 0 0 1px #bfd7b0}
  html[data-dk-theme="light"] #appView .business-card {background:linear-gradient(145deg,#fff,#fcfdf9 65%);border-color:#d6e2cc;box-shadow:0 5px 20px #324a2005}
  html[data-dk-theme="light"] #appView .business-card:hover {border-color:#a0bf8c;background:linear-gradient(145deg,#fff,#f6fbf0)}
  html[data-dk-theme="light"] #appView .business-monogram {background:#e8f2de;border-color:#d0e2bf;color:#4b723d}
  html[data-dk-theme="light"] #appView .business-status {background:#edf5e5;border-color:#d2e5c4;color:#46733a}
  html[data-dk-theme="light"] #appView .business-status.is-archived {background:#f5f0e2;border-color:#e2d6b4;color:#7c6938}
  html[data-dk-theme="light"] #appView .business-card h2 {color:#2d5034}
  html[data-dk-theme="light"] #appView .business-type {color:#59724e}
  html[data-dk-theme="light"] #appView .business-site {color:#4e7050}
  html[data-dk-theme="light"] #appView .business-admins {color:#59724e}
  html[data-dk-theme="light"] #appView .business-card-actions>a.primary {background:#e3efd9;border-color:#bbd5ac;color:#3a6634}
  html[data-dk-theme="light"] #appView .business-card-actions>a.primary:hover {background:#d4e9c5;border-color:#9cc58b;color:#254f25}
  html[data-dk-theme="light"] #appView .business-no-dashboard {background:#f7faf1;border-color:#d0debf;color:#59724e}
  html[data-dk-theme="light"] #appView .business-owner-actions {border-top-color:#e1e9d8}
  html[data-dk-theme="light"] #appView .business-text-button {color:#59724e}
  html[data-dk-theme="light"] #appView .business-text-button:hover {color:#2f652d}
  html[data-dk-theme="light"] #appView .business-owner-actions .business-text-button:last-child {color:#59724e}
  html[data-dk-theme="light"] #appView .business-footnote {color:#59724e}
  html[data-dk-theme="light"] #appView :is(.business-record-tag,.business-record-filter) {color:#59724e}
  html[data-dk-theme="light"] #appView .business-record-scope {background:#f0f7e8;border-color:#d1e2c4}
  html[data-dk-theme="light"] #appView .business-record-scope>strong {color:#456c39}
  html[data-dk-theme="light"] #appView .business-record-scope>span,
  html[data-dk-theme="light"] #appView .business-record-scope>small {color:#59724e}
  html[data-dk-theme="light"] #appView .table th {background:#f2f7ec;color:#59724e;border-bottom-color:#ccdabe}
  html[data-dk-theme="light"] #appView .table td {color:#3d5b3a}
  html[data-dk-theme="light"] #appView .table tbody tr:hover {background:#f4f9ed}
  html[data-dk-theme="light"] #appView :is(.tabs,.security-tabs,.finance-tabs) {background:#edf3e5}
  html[data-dk-theme="light"] #appView :is(.tabs,.security-tabs,.finance-tabs) .tab {background:transparent;color:#59724e}
  html[data-dk-theme="light"] #appView :is(.tabs,.security-tabs,.finance-tabs) .tab.active {background:#d9ebcd;color:#3c6633}
  html[data-dk-theme="light"] #appView :is(.security-icon,.health-check>span) {background:#e1f0d5;color:#44743b}
  html[data-dk-theme="light"] #appView :is(.recovery-grid code,.totp-secret,.backup-counts>div) {background:#f1f7e8;border-color:#cfdfc0;color:#426339}
  html[data-dk-theme="light"] #appView :is(.amount.income,.mini-link,.google-linked) {color:#59724e}
  html[data-dk-theme="light"] #appView .amount.expense {color:#aa493a}
  html[data-dk-theme="light"] #appView .amount.transfer {color:#386f9b}
  html[data-dk-theme="light"] #appView :is(.notice,.status-due_soon) {background:#fff8e8;border-color:#e6d2a3;color:#87642c}
  html[data-dk-theme="light"] #appView :is(.danger-notice,.status-overdue) {background:#fff0eb!important;border-color:#e5b6a8;color:#a14a3b}
  html[data-dk-theme="light"] #appView .danger-text {color:#a43d33!important}
  html[data-dk-theme="light"] #appView .danger-button {background:#a4473a!important;color:#fff}
  html[data-dk-theme="light"] #appView .bottom-nav {background:#fbfdf6f5;border-top-color:#d1dfc5;box-shadow:0 -10px 30px #314a2010}
  html[data-dk-theme="light"] #appView .bottom-nav button {color:#59724e}
  html[data-dk-theme="light"] #appView .bottom-nav button.active {background:#e3efd7;color:#376b32}

  /* Revenue, separate cash metrics and integration states. */
  html[data-dk-theme="light"] #appView #page .revenue-filters {background:#fff;border-color:#d0dfc7}
  html[data-dk-theme="light"] #appView #page .revenue-filters>label {color:#59724e}
  html[data-dk-theme="light"] #appView #page .revenue-filters :is(input,select) {background:#fff;color:#355b36;border-color:#c6dab9}
  html[data-dk-theme="light"] #appView #page .revenue-filters>.ghost {color:#507747;border-color:#bed4b0}
  html[data-dk-theme="light"] #appView #page .revenue-actions>.primary {background:#216944;color:#fff;border-color:#216944}
  html[data-dk-theme="light"] #appView #page .revenue-actions>.ghost {background:#fff;color:#507747;border-color:#c2d6b5}
  html[data-dk-theme="light"] #appView #page .revenue-rr-refresh p,
  html[data-dk-theme="light"] #appView #page .revenue-rr-refresh small {color:#59724e}
  html[data-dk-theme="light"] #appView #page .revenue-rr-refresh button {border-color:#c7dcbc;color:#4d7544}
  html[data-dk-theme="light"] #appView #page .revenue-rr-status {background:#eef6e7;border-color:#c4dcb7}
  html[data-dk-theme="light"] #appView #page .revenue-rr-status h3 {color:#3d6938}
  html[data-dk-theme="light"] #appView #page .revenue-rr-status p {color:#59724e}
  html[data-dk-theme="light"] #appView #page .revenue-rr-status .revenue-rr-action {background:#fff;border-color:#b6d2a7;color:#4c7842}
  html[data-dk-theme="light"] #appView #page .revenue-rr-badge {background:#dfeecf;color:#4b733b;border-color:#bfd7ac}
  html[data-dk-theme="light"] #appView #page .revenue-rr-status[data-state="unavailable"] {background:#fff7e9;border-color:#e7ce9b}
  html[data-dk-theme="light"] #appView #page .revenue-rr-status[data-state="unavailable"] :is(h3,p,.revenue-rr-badge) {color:#87612b}
  html[data-dk-theme="light"] #appView #page .revenue-rr-status[data-state="unavailable"] .revenue-rr-badge {background:#f7e8c9;border-color:#e4c58c}
  html[data-dk-theme="light"] #appView #page :is(.revenue-rr-warning,.revenue-rr-list-note) {color:#89652b}
  html[data-dk-theme="light"] #appView #page .revenue-rr-legacy {background:#fff9eb;border-color:#ead6ab;color:#856b3b}
  html[data-dk-theme="light"] #appView #page :is(.revenue-total,.revenue-count) {background:linear-gradient(145deg,#fff,#f8fbf1);border-color:#ccdebf;color:#3b6034}
  html[data-dk-theme="light"] #appView #page .revenue-total {background:radial-gradient(ellipse at 100% 100%,#d5e9c355,transparent 72%),linear-gradient(145deg,#edf6e4,#fbfdf7);border-color:#b6d2a6;border-left-color:#b6d2a6}
  html[data-dk-theme="light"] #appView #page .revenue-total .work-kicker {color:#59724e}
  html[data-dk-theme="light"] #appView #page .revenue-total>strong {color:#2d5f2e}
  html[data-dk-theme="light"] #appView #page .revenue-total>small {color:#59724e}
  html[data-dk-theme="light"] #appView #page .revenue-count>span {color:#59724e}
  html[data-dk-theme="light"] #appView #page .revenue-count>strong {color:#3c6935}
  html[data-dk-theme="light"] #appView #page .revenue-count>small {color:#59724e}
  html[data-dk-theme="light"] #appView #page .revenue-business-summary>div[data-tone] {--revenue-bg:#fff;--revenue-ink:#315c30;background:linear-gradient(145deg,#fff,#fafcf6);color:#355b34;border-color:#d0e0c4}
  html[data-dk-theme="light"] #appView #page .revenue-business-summary>.revenue-jk-card {background:linear-gradient(145deg,#fff,#fafcf6)!important;border-color:#d0e0c4!important;color:#355b34!important}
  html[data-dk-theme="light"] #appView #page .revenue-business-summary .revenue-business-body {color:#3b6738}
  html[data-dk-theme="light"] #appView #page .revenue-business-summary .revenue-business-name {color:#4a6b40}
  html[data-dk-theme="light"] #appView #page .revenue-business-summary .revenue-business-body>b {color:#376732}
  html[data-dk-theme="light"] #appView #page .revenue-business-summary .revenue-business-body>small:not(.revenue-rr-cost-note) {color:#59724e}
  html[data-dk-theme="light"] #appView #page .revenue-business-summary .revenue-business-icon {background:#ecf4e2;color:#59724e;border-color:#d6e6c7}
  html[data-dk-theme="light"] #appView #page .revenue-business-summary .revenue-rr-source {background:#eff6e6;border-color:#d2e3be;color:#59724e}
  html[data-dk-theme="light"] #appView #page .revenue-business-summary .revenue-rr-card-label {color:#59724e}
  html[data-dk-theme="light"] #appView #page .revenue-business-summary .revenue-rr-card-metrics {border-top-color:#dfe9d2}
  html[data-dk-theme="light"] #appView #page .revenue-business-summary .revenue-rr-card-metrics span {color:#59724e}
  html[data-dk-theme="light"] #appView #page .revenue-business-summary .revenue-rr-card-metrics strong {color:#547448}
  html[data-dk-theme="light"] #appView #page .revenue-business-summary .revenue-business-body>.revenue-rr-cost-note {color:#8b6a31}
  html[data-dk-theme="light"] #appView #page .revenue-business-summary .revenue-business-link {background:#f0f6e6;color:#59724e;border-top-color:#d9e6ca}
  html[data-dk-theme="light"] #appView #page .revenue-business-summary>.revenue-jk-card .revenue-business-link {background:#f0f6e6!important;color:#59724e!important}
  html[data-dk-theme="light"] #appView #page .revenue-business-summary .revenue-business-link>span {color:#59724e}
  html[data-dk-theme="light"] #appView #page .revenue-business-summary .revenue-business-link:hover {background:#e2efd4;color:#3b6c32}
  html[data-dk-theme="light"] #appView #page:has(>#revenueFilters)>.work-section-title h2 {color:#456e3a}
  html[data-dk-theme="light"] #appView #page:has(>#revenueFilters)>.work-section-title .work-check {color:#59724e}
  html[data-dk-theme="light"] #appView #page .revenue-sale {background:#fff;border-color:#d2e1c6;color:#355e33}
  html[data-dk-theme="light"] #appView #page .revenue-sale:hover {background:#f8fcf2;border-color:#a2c28c}
  html[data-dk-theme="light"] #appView #page .revenue-sale-main>b {color:#4b7340}
  html[data-dk-theme="light"] #appView #page :is(.revenue-sale-main>small,.revenue-sale-main>span,.revenue-sale-amount>small) {color:#59724e}
  html[data-dk-theme="light"] #appView #page .revenue-sale-amount {color:#47763b}
  html[data-dk-theme="light"] #appView #page .revenue-rr-sale {border-left-color:#86ae6f}
  html[data-dk-theme="light"] #appView #page .revenue-pagination {color:#59724e}
  html[data-dk-theme="light"] #appView #page .revenue-pagination>.ghost {border-color:#c8dcb8;color:#59724e}
  html[data-dk-theme="light"] #appView #page:has(>#revenueFilters)>.work-hint {color:#59724e}
  html[data-dk-theme="light"] #appView #page>.revenue-rr-cash-metrics {background:#fff;border-color:#cedfc1;color:#59724e}
  html[data-dk-theme="light"] #appView #page>.revenue-rr-cash-metrics :is(.work-kicker,dt,dd small,header p,p.revenue-rr-cash-note) {color:#59724e}
  html[data-dk-theme="light"] #appView #page>.revenue-rr-cash-metrics :is(h3,dd strong) {color:#49713b}
  html[data-dk-theme="light"] #appView #page>.revenue-rr-cash-metrics dl>div,
  html[data-dk-theme="light"] #appView #page>.revenue-rr-cash-metrics p.revenue-rr-cash-note {border-color:#dbe7ce}

  /* Global modal and toast remain gated by the authenticated application. */
  html[data-dk-theme="light"] body:has(#appView:not(.hidden)) #modal {background:#263a2a70}
  html[data-dk-theme="light"] body:has(#appView:not(.hidden)) #modal .modal-card {background:#fff;border-color:#cbdcbd;box-shadow:0 24px 90px #19351935;color:#365b35}
  html[data-dk-theme="light"] body:has(#appView:not(.hidden)) #modal :is(h2,h3,h4) {color:#2e5731}
  html[data-dk-theme="light"] body:has(#appView:not(.hidden)) #modal .close {color:#59724e}
  html[data-dk-theme="light"] body:has(#appView:not(.hidden)) #modal .close:hover {background:#edf5e3;color:#3e6b34}
  html[data-dk-theme="light"] body:has(#appView:not(.hidden)) #modal :is(.muted,.work-form-note,.business-editor>p,.work-detail dt,.work-sharing p,.work-vault-note) {color:#59724e}
  html[data-dk-theme="light"] body:has(#appView:not(.hidden)) #modal :is(.work-sharing,.business-admin-picker,.work-password-block) {background:#f3f8ec;border-color:#d0e2c1;color:#507344}
  html[data-dk-theme="light"] body:has(#appView:not(.hidden)) #modal .business-record-scope {background:#f2f8e9;border-color:#cfe3be}
  html[data-dk-theme="light"] body:has(#appView:not(.hidden)) #modal .business-record-scope>strong {color:#4e7540}
  html[data-dk-theme="light"] body:has(#appView:not(.hidden)) #modal .business-record-scope>span,
  html[data-dk-theme="light"] body:has(#appView:not(.hidden)) #modal .business-record-scope>small {color:#59724e}
  html[data-dk-theme="light"] body:has(#appView:not(.hidden)) #modal .business-record-tag {color:#59724e}
  html[data-dk-theme="light"] body:has(#appView:not(.hidden)) #modal .business-admin-picker label {border-top-color:#dce8cf}
  html[data-dk-theme="light"] body:has(#appView:not(.hidden)) #modal :is(.business-admin-picker>p,.business-admin-picker small) {color:#59724e}
  html[data-dk-theme="light"] body:has(#appView:not(.hidden)) #modal .business-admin-picker strong {color:#507543}
  html[data-dk-theme="light"] body:has(#appView:not(.hidden)) #modal .business-editor :is([role=alert],#businessRecordError) {color:#a44b38}
  html[data-dk-theme="light"] body:has(#appView:not(.hidden)) #modal :is(.work-vault-modal,.work-vault-modal>p) {color:#59724e}
  html[data-dk-theme="light"] body:has(#appView:not(.hidden)) #modal .work-vault-warning {background:#fff8e9;border-color:#ead5a4;color:#8d6a2f}
  html[data-dk-theme="light"] body:has(#appView:not(.hidden)) #modal .work-vault-recovery {background:#edf6e1;border-color:#c1daab;color:#456f34}
  html[data-dk-theme="light"] body:has(#appView:not(.hidden)) #modal :is([data-vault-error],[role=alert]) {color:#a54735}
  html[data-dk-theme="light"] body:has(#appView:not(.hidden)) #modal #workVaultMigrationStatus {color:#59724e}
  html[data-dk-theme="light"] body:has(#appView:not(.hidden)) #modal .work-vault-export {border-top-color:#d7e5c9}
  html[data-dk-theme="light"] body:has(#appView:not(.hidden)) #modal .work-password-status {color:#59724e}
  html[data-dk-theme="light"] body:has(#appView:not(.hidden)) #modal .work-password-eye {background:transparent;color:#59724e}
  html[data-dk-theme="light"] body:has(#appView:not(.hidden)) #modal .work-password-eye:hover {background:#e7f1dc}
  html[data-dk-theme="light"] body:has(#appView:not(.hidden)) #modal .revenue-rr-modal-note {background:#f0f7e7;border-color:#d1e3c0;color:#59724e}
  html[data-dk-theme="light"] body:has(#appView:not(.hidden)) #modal .revenue-rr-modal-note a {color:#59724e}
  html[data-dk-theme="light"] body:has(#appView:not(.hidden)) #modal .notice {background:#fff7e3;border-color:#e5cc93;color:#8b6627}
  html[data-dk-theme="light"] body:has(#appView:not(.hidden)) #modal .revenue-rr-detail .revenue-rr-action {background:#507f41;border-color:#507f41;color:#fff}
  html[data-dk-theme="light"] #appView .work-vault-toolbar {background:#eff6e6;border-color:#c5deaf;color:#51753e}
  html[data-dk-theme="light"] #appView .work-vault-toolbar p {color:#59724e}
  html[data-dk-theme="light"] #appView .work-vault-toolbar p span {color:#8c692e}
  html[data-dk-theme="light"] body:has(#appView:not(.hidden)) #toast .toast {background:#e3f1d8;color:#416b34;border-color:#b2d09b;box-shadow:0 12px 40px #2f4d231c}
  html[data-dk-theme="light"] body:has(#appView:not(.hidden)) #toast .toast.error {background:#ffede6;color:#9b4b39;border-color:#e0b7a5}
  html[data-dk-theme="light"] #appView *,
  html[data-dk-theme="light"] body:has(#appView:not(.hidden)) #modal * {scrollbar-color:#adbea1 #f0f5e9}
  html[data-dk-theme="light"] #appView .sidebar>nav {scrollbar-width:none}

  html[data-dk-theme="light"] #appView .dk-theme-toggle:hover {border-color:#a5bea0}
  html[data-dk-theme="light"] #appView .dk-theme-toggle[aria-expanded="true"] {border-color:#64915a;box-shadow:0 0 0 3px #598b4712}
  html[data-dk-theme="light"] #appView .dk-theme-menu {border-color:#ccdcbc;box-shadow:0 18px 50px #29451c1c}
  html[data-dk-theme="light"] #appView .dk-theme-menu>button:hover {background:#eff6e7}
  html[data-dk-theme="light"] #appView .dk-theme-menu>button[aria-checked="true"] {background:#e0efcf;border-color:#bad4a5;color:#3f6b33}
  html[data-dk-theme="light"] #appView .dk-theme-menu>button:focus-visible,
  html[data-dk-theme="light"] #appView .dk-theme-toggle:focus-visible {outline-color:#39864d}
}
@media screen and (max-width:760px) {
  #appView .dk-theme-toggle {min-height:42px;min-width:100px;padding:8px 10px;border-radius:10px;font-size:11px;gap:7px}
  html[data-dk-theme="light"] #appView #page .revenue-sale-amount {border-top-color:#d7e5c9}
}
@media screen and (max-width:460px) {
  #appView .dk-theme-toggle {min-width:44px;width:44px;padding:8px 7px;gap:3px}
  #appView .dk-theme-menu {left:0;right:auto}
  #appView #dkThemeLabel {display:none}
  #appView .dk-theme-toggle>span:first-child {width:18px;font-size:17px}
  #appView .dk-theme-toggle>span:last-child:not(#dkThemeLabel) {font-size:9px}
  #appView .top-actions {gap:7px}
}
