#themeToggle{display:inline-grid;place-items:center;flex:none;width:32px;min-height:30px;padding:5px;border:0;background:transparent;color:#596675;border-radius:4px;line-height:1}
#themeToggle svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
#themeToggle:hover{background:var(--sea-tint);color:var(--sea-accent)}
.brand-logo,img.mark.logo-mark{width:40px;height:30px;object-fit:contain;flex:none;background:transparent;padding:0;border-radius:0;vertical-align:middle}
.auth-page .login::before{background:url('/assets/hengchuang-logo.png') no-repeat left center / 44px auto;padding-left:56px}
body:not(.back-office) #themeToggle{order:1;margin-left:auto}
body:not(.back-office) header nav{order:2}
.auth-page #themeToggle{position:absolute;right:24px;top:23px}
html[data-theme="dark"]{color-scheme:dark;background:#14181f;color:#dbe4ef}
[data-theme="dark"] .brand-logo,[data-theme="dark"] .logo-mark{content:url('/assets/hengchuang-logo-dark.png')}
[data-theme="dark"] .auth-page .login::before{background-image:url('/assets/hengchuang-logo-dark.png')}
[data-theme="dark"] .auth-page .login label small{color:#ffc1ba!important}
html[data-theme="dark"] body{
  background:#14181f;color:#dbe4ef;
  --sea-background:#14181f;--sea-surface:#1c232d;--sea-text:#dbe4ef;
  --sea-muted:#a4b1c3;--sea-field:#202833;--sea-tint:#243a54;
  --sea-accent:#83baff;--green:#347dc7;--line:#354151;
}
[data-theme="dark"] header,[data-theme="dark"] .back-office header,
[data-theme="dark"] .back-office .console-sidebar,
[data-theme="dark"] .back-office .order-tools,
[data-theme="dark"] .back-office .personal-overview .card,
[data-theme="dark"] .back-office .mobile-order-card,
[data-theme="dark"] .back-office .console-tabbar>button,
[data-theme="dark"] .console-tab{background:var(--sea-surface);color:var(--sea-text);border-color:var(--line)}
[data-theme="dark"] .auth-page header{background:transparent}
[data-theme="dark"] .card,[data-theme="dark"] dialog,[data-theme="dark"] .auth-page .login,
[data-theme="dark"] .back-office .card{border-color:var(--line);box-shadow:none}
[data-theme="dark"] .back-office .console-toolbar,[data-theme="dark"] .back-office .console-tabbar,
[data-theme="dark"] .console-brand,[data-theme="dark"] .provider-management,
[data-theme="dark"] .personal-profile .personal-heading,[data-theme="dark"] .profile-line{border-color:var(--line)}
[data-theme="dark"] .console-brand,[data-theme="dark"] .back-office h2,
[data-theme="dark"] .personal-metric strong,[data-theme="dark"] .auth-page .login::before,
[data-theme="dark"] .auth-page header{color:var(--sea-text)}
[data-theme="dark"] .console-sidebar a.sidebar-item,
[data-theme="dark"] .back-office .console-tab a,[data-theme="dark"] .back-office header a,
[data-theme="dark"] #themeToggle,[data-theme="dark"] .back-office #sidebarToggle,
[data-theme="dark"] .back-office #consoleRefresh{color:#b7c7dc}
[data-theme="dark"] .console-sidebar a.sidebar-item:hover,
[data-theme="dark"] .console-sidebar a.sidebar-item.selected,
[data-theme="dark"] .console-tab.active{background:var(--sea-tint);color:var(--sea-accent)}
[data-theme="dark"] .back-office .console-tab.active a,
[data-theme="dark"] .back-office #agentWallet strong,
[data-theme="dark"] .back-office #adminWallet strong{color:var(--sea-accent)}
[data-theme="dark"] input,[data-theme="dark"] select,[data-theme="dark"] textarea,
[data-theme="dark"] .auth-page .login input{background:var(--sea-field);color:var(--sea-text);border-color:var(--line)}
[data-theme="dark"] input::placeholder,[data-theme="dark"] textarea::placeholder{color:#93a3b8}
[data-theme="dark"] button.secondary{background:var(--sea-surface);color:var(--sea-accent);border-color:var(--line)}
[data-theme="dark"] .back-office .orders-table th{background:var(--sea-field);color:#b7c7dc}
[data-theme="dark"] .back-office .orders-table td,[data-theme="dark"] .back-office .orders-table th{border-color:var(--line)}
[data-theme="dark"] .auth-page .login h2,[data-theme="dark"] .auth-page .login label,
[data-theme="dark"] .personal-metric span,[data-theme="dark"] .profile-line span,
[data-theme="dark"] .personal-totals,[data-theme="dark"] .provider-management small,
[data-theme="dark"] .sidebar-group-label{color:var(--sea-muted)}
[data-theme="dark"] .error,[data-theme="dark"] .status.error,[data-theme="dark"] .notice-popup.error{background:#41262c;color:#ffc1ba;border-color:#97525b}
[data-theme="dark"] .notice-popup.error p{color:#ffc1ba}
[data-theme="dark"] .processing-badge.processed,[data-theme="dark"] .orders-table .report-pill.on,
[data-theme="dark"] .mobile-order-reports .report-pill.on{background:#183d37;color:#8fe0c5;border-color:#376c5b}
[data-theme="dark"] .processing-badge.paused,[data-theme="dark"] .mobile-order-card .processing-badge.paused,
[data-theme="dark"] .mobile-order-actions .order-pause{background:#48391f;color:#f4cf84;border-color:#94753f}
[data-theme="dark"] .mobile-order-actions button{border-color:var(--line)}
[data-theme="dark"] .processing-badge.ended{background:#303947;color:#b8c4d5;border-color:#536174}
[data-theme="dark"] .copy-order-warnings{color:#f4cf84}
[data-theme="dark"] dialog::backdrop{background:#0009}
