.theme-button{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-width:40px;min-height:40px;padding:8px 12px;border:1px solid var(--line);background:var(--paper);border-radius:11px;font-size:11px;font-weight:650;color:var(--ink)}
.theme-button .icon{width:17px;height:17px}.auth-theme{position:absolute;right:24px;top:20px;z-index:2}
@media(max-width:760px){.theme-button{padding:8px;min-height:38px;min-width:38px}.theme-button span{display:none}.topbar-actions{gap:7px}.auth-theme{right:20px;top:22px}}
:root[data-theme=dark]{color-scheme:dark;--ink:#e0e9f6;--muted:#a9b9cf;--blue:#96bdff;--navy:#18345a;--red:#ff8290;--paper:#17273e;--ground:#0e192b;--line:#30435e;--green:#7edab9;--shadow:0 10px 30px #00000012;background:var(--ground)}
[data-theme=dark] body{background:var(--ground)}
[data-theme=dark] :is(.panel,.sidebar,.topbar,.stat,.document-card,.quick-action,.search,.tabs button,.mobile-menu,.offer-popup,.photo-tile footer,dialog,.secondary){background:var(--paper);border-color:var(--line);color:var(--ink)}
[data-theme=dark] :is(.field input,.field select,.field textarea){background:#111f33;color:var(--ink);border-color:#3a4c67}
[data-theme=dark] .field{color:#bfcee1}[data-theme=dark] .field input[readonly]{background:#20314a}
[data-theme=dark] :is(.primary,.tabs button.active){background:#2f67b8;color:#fff;border-color:#2f67b8}
[data-theme=dark] .primary:hover{background:#3a76ca}
[data-theme=dark] :is(.sidebar-help,.empty,.file-symbol,.code-line,.campaign-preview,.file-drop,.upload-tile,.photo-tile){background:#122139;border-color:#344b69;color:#b3d0fa}
[data-theme=dark] .upload-tile:hover{background:#203652}
[data-theme=dark] .nav a{color:#b3c2d6}[data-theme=dark] .nav a:hover{background:#213550}[data-theme=dark] .nav a.active{background:#253f65;color:#c0d9ff}
[data-theme=dark] .sidebar .brand img,[data-theme=dark] .mobile-brand img,[data-theme=dark] .auth-mobile-logo{background:#fff;border-radius:5px;padding:3px}
[data-theme=dark] .sidebar .brand img{width:141px}
[data-theme=dark] :is(.avatar,.tile-icon,.date-tile){background:#253d5e;color:#b9d6fc;border-color:#354b67}
[data-theme=dark] :is(.badge,.timeline-item:before){background:#284565;color:#c1daff}
[data-theme=dark] :is(.green,.tile-icon.mint,.bubble.mine,.form-success,.notice.success){background:#183b39;color:#9fe5ca;border-color:#2f5b50}
[data-theme=dark] :is(.red,.tile-icon.rose,.danger-button,.form-error,.notice.danger){background:#492c3c;color:#ffb7c4;border-color:#714457}
[data-theme=dark] .amber{background:#493c26;color:#f0cb80}
[data-theme=dark] .slate{background:#303e55;color:#c2cbd9}
[data-theme=dark] :is(.notice,.bubble){background:#233959;border-color:#344e73;color:#c3d9f8}
[data-theme=dark] .help-card{background:linear-gradient(120deg,#372637,#25243a);border-color:#54364c}
[data-theme=dark] .help-card p{color:#d1aebb}[data-theme=dark] .help-card .link{color:#ffb1be}
[data-theme=dark] .help-card .tile-icon{background:#512e41;color:#ffb1be}
[data-theme=dark] .offer-card{background:linear-gradient(125deg,#233a5b,#182840);border-color:#365079}
[data-theme=dark] .offer-card p{color:#c1cfe2}[data-theme=dark] .offer-card .offer-symbol{color:#6c90c0}
[data-theme=dark] .contract-banner{background:linear-gradient(100deg,#263e60,#1c2c45);border-color:#385374}
[data-theme=dark] :is(th,.field input[readonly]){background:#1b2d47}
[data-theme=dark] :is(td,.list-item,button.list-item,.soft-row,.sidebar-bottom,.topbar,.pagination){border-color:var(--line)}
[data-theme=dark] :is(.breadcrumb b,.detail-value,.search input,button.list-item){color:var(--ink)}
[data-theme=dark] :is(.breadcrumb,.brand span,.workspace-label,.sidebar .brand span,.stat small,th,.bottom-note,.date-tile span){color:#a7b9d1}
[data-theme=dark] .equipment-mini .equipment-art,[data-theme=dark] .equipment-visual{background:#243753}
[data-theme=dark] .mobile-nav{background:#15253af5;border-color:var(--line)}
[data-theme=dark] .mobile-nav :is(a,button){color:#b0bfd2}[data-theme=dark] .mobile-nav .active{color:#c2daff;background:#263f61}
[data-theme=dark] .topbar-actions>.icon-button{background:#20334f;border-color:var(--line);color:var(--ink)}
[data-theme=dark] .auth-main{background:var(--ground)}
[data-theme=dark] .auth-tabs{background:#17273e;border-color:var(--line)}
[data-theme=dark] .auth-tabs button{color:#bacbe2}[data-theme=dark] .auth-tabs button.active{background:#294669;color:#e4eeff}
[data-theme=dark] .auth-bottom{border-color:var(--line)}
[data-theme=dark] .timeline-item{border-color:#496180}[data-theme=dark] .timeline-item:before{border-color:var(--paper)}
[data-theme=dark] #toast{background:#d8e7fc;color:#162944}[data-theme=dark] #toast.error{background:#f4afbe;color:#51243a}
[data-theme=dark] :is(.hero,.auth-story){border-color:#375d8f}
