.theme-toggle{flex-shrink:0;width:38px;height:38px;background:var(--white);border:1px solid var(--line);border-radius:8px;color:var(--ink);font-size:21px}
.resilience-bar{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:16px 0;border-bottom:1px solid var(--line)}.connection-copy{display:flex;align-items:center;gap:10px;min-width:0}.connection-copy b{display:block;font-size:11px;font-weight:600;line-height:1.6}.connection-copy small{display:block;color:var(--muted);font-size:10px;line-height:1.6}.connection-dot{width:9px;height:9px;flex-shrink:0;border-radius:50%;background:#9cabb4}.connection-dot[data-status=ok]{background:#128468}.connection-dot[data-status=checking]{background:#008dc3}.connection-dot[data-status=problem],.connection-dot[data-status=offline]{background:#b84b38}.connection-dot[data-status=stale]{background:#b17c21}.resilience-actions{display:flex;align-items:center;gap:16px;flex-shrink:0}.resilience-actions .text-button{margin:0;font-size:11px}.local-backup-state{font-size:11px;line-height:1.7;color:#4e7565;margin:12px 0 0;padding:10px 12px;background:#edf5ef;border-radius:7px}.local-backup-state.warning{color:#8e502b;background:#fff0df;border:1px solid #efcfac}
#backup-dialog,#help-dialog{width:min(700px,calc(100vw - 28px));max-height:calc(100dvh - 28px);overflow:auto}#backup-dialog p{font-size:12px;line-height:1.7;margin:12px 0}#backup-dialog label{margin-top:15px}.backup-text{font-size:12px;line-height:1.65;resize:vertical;min-height:180px;max-height:42dvh;white-space:pre-wrap;overflow-wrap:anywhere}.backup-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:12px}.backup-actions button{flex:1;font-size:12px}.help-steps li{margin-bottom:18px}.help-steps b{display:block}.help-steps{padding-left:23px}.topbar-actions{gap:14px}
:root[data-theme=dark]{color-scheme:dark;--ink:#e5edf2;--muted:#a6b7c1;--line:#344650;--paper:#121d24;--white:#1b2a34;--soft:#203541;--rose:#533c36;--blue-dark:#71d3f6}
[data-theme=dark] .sidebar,[data-theme=dark] .participant-card,[data-theme=dark] .access-card,[data-theme=dark] .action-bar,[data-theme=dark] .empty,[data-theme=dark] dialog,[data-theme=dark] .search-dropdown,[data-theme=dark] .language-switch{background:var(--white);border-color:var(--line);color:var(--ink)}
[data-theme=dark] .field,[data-theme=dark] .inventory-toolbar select,[data-theme=dark] .import-columns select,[data-theme=dark] .role-select,[data-theme=dark] .search-wrap input,[data-theme=dark] .entry-fact,[data-theme=dark] .secondary,[data-theme=dark] .mobile-nav button,[data-theme=dark] .demo-switch button{background:#192b36;color:var(--ink);border-color:#405765}
[data-theme=dark] input::placeholder,[data-theme=dark] textarea::placeholder{color:#a5b7c2;opacity:1}
[data-theme=dark] .search-card{background:linear-gradient(110deg,#332c2d,#443536);border-color:#644b45}[data-theme=dark] .search-copy h2{color:#f2e7e1}[data-theme=dark] .search-copy p,[data-theme=dark] .search-hint,[data-theme=dark] .search-copy .eyebrow{color:#d3beb4}
[data-theme=dark] .side-note,[data-theme=dark] .auth-card .auth-approval,[data-theme=dark] .root-note,[data-theme=dark] .import-preview{background:#352d2b;color:#e0c9b9}[data-theme=dark] .side-note p{color:#d0bbb0}
[data-theme=dark] .message,[data-theme=dark] .auth-card .auth-feedback,[data-theme=dark] .demo-note,[data-theme=dark] .import-columns{background:#153648;color:#b9e6f8;border-color:#28556c}
[data-theme=dark] .locked,[data-theme=dark] .local-backup-state,[data-theme=dark] .status-pill{background:#193b33;border-color:#315a4f;color:#b5e9d8}
[data-theme=dark] .message.error,[data-theme=dark] .modal-error,[data-theme=dark] .auth-card .auth-feedback.error,[data-theme=dark] .import-preview.error{background:#432e2c;color:#ffd2bd;border-color:#7e4d41}
[data-theme=dark] .local-backup-state.warning{background:#3e3123;color:#ffd5a0;border-color:#705634}
[data-theme=dark] .help-steps,[data-theme=dark] .help-steps b,[data-theme=dark] .team-description,[data-theme=dark] dialog p,[data-theme=dark] .auth-card p{color:var(--muted)}
[data-theme=dark] .language-switch button[aria-pressed=true],[data-theme=dark] .mobile-nav button[aria-pressed=true],[data-theme=dark] .nav-current.active,[data-theme=dark] .side-link.active,[data-theme=dark] .review-edit,[data-theme=dark] .demo-switch button[aria-pressed=true],[data-theme=dark] .participant-state{color:#a4e5ff;background:#16445c;border-color:#306883}
[data-theme=dark] .search-dropdown li:hover,[data-theme=dark] .search-dropdown li[aria-selected=true]{background:#254858}
[data-theme=dark] .count-badge{background:#2c4543;color:#d0e8e0}[data-theme=dark] .avatar{color:#f0d3c5}[data-theme=dark] .text-button,[data-theme=dark] .help-button,[data-theme=dark] .auth-forgot,[data-theme=dark] .access-option b,[data-theme=dark] .access-enabled,[data-theme=dark] .file-field{color:#acd6e8}
[data-theme=dark] .danger-button{color:#ffc0a7}[data-theme=dark] .entry-fact:disabled{color:#b9cbd5}[data-theme=dark] .suggestion-unit{color:#aee6fb;border-color:#486778}[data-theme=dark] .file-field::file-selector-button{background:#233e4d;color:#c2e8f6;border-color:#456475}
[data-theme=dark] .breadcrumb,[data-theme=dark] .breadcrumb b,[data-theme=dark] .person,[data-theme=dark] .form-tools .muted,[data-theme=dark] .participant-card p,[data-theme=dark] .access-heading p,[data-theme=dark] .access-option small,[data-theme=dark] .action-bar p,[data-theme=dark] .list-footer,[data-theme=dark] .page-bottom,[data-theme=dark] .entry-code,[data-theme=dark] .entry-unit,[data-theme=dark] .suggestion-code,[data-theme=dark] .search-feedback,[data-theme=dark] .muted{color:#a6b7c1}
[data-theme=dark] .connection-dot[data-status=ok]{background:#5ae0ad}[data-theme=dark] .connection-dot[data-status=problem],[data-theme=dark] .connection-dot[data-status=offline]{background:#ff997f}[data-theme=dark] .connection-dot[data-status=stale]{background:#f3c272}
[data-theme=dark] .primary{background:#0078a8;color:#fff}[data-theme=dark] .primary:hover:not(:disabled){background:#00678f}
@media(max-width:760px){.resilience-bar{align-items:flex-start;flex-direction:column;gap:12px;padding:14px 0}.resilience-actions{width:100%;justify-content:space-between}.connection-copy b{font-size:12px}.connection-copy small{font-size:10px}.topbar-actions{gap:8px}.person #user-name{max-width:85px}.language-switch{gap:0}.language-switch button{min-width:36px}.theme-toggle{width:36px;height:40px}.local-backup-state{font-size:11px}#backup-dialog,#help-dialog{padding:21px}#backup-dialog h2,#help-dialog h2{font-size:24px}.backup-text{font-size:16px}.backup-actions{flex-direction:column}.backup-actions button{min-height:44px}.help-steps{font-size:13px;line-height:1.75}}
