.appearance-options { display:flex;flex-wrap:wrap;gap:8px;border:0;padding:0;margin:0; }
.appearance-options legend { margin-bottom:8px;font-weight:600; }
.settings-card .appearance-options label { display:flex;align-items:center;gap:8px;flex:1;min-width:85px;min-height:44px;border:1px solid var(--border-subtle);border-radius:4px;padding:8px;cursor:pointer; }
.settings-card .appearance-options input { width:16px;height:16px;flex:0 0 16px;margin:0; }
.appearance-options label:has(:checked) { background:var(--accent-soft);color:var(--text-primary);border-color:var(--accent); }
[data-appearance-status]:empty, [data-font-size-status]:empty { display:none; }
:root[data-theme="dark"] {
  color-scheme:dark;
  --bg-primary:#212121;--bg-surface:#2f2f2f;--bg-hover:#383838;
  --text-primary:#ececec;--text-secondary:#b4b4b4;--border-subtle:#666666;
  --accent:#78b5ed;--accent-strong:#a3cffe;--accent-soft:#263e52;
  --danger:#ff9690;--urgent:#ff9690;--warning:#e7bc72;--success:#8bd3aa;
}
:root[data-theme="dark"] :is(dialog,input,textarea,select,.app-menu,.auth-card,.detail-card,.work-card,.knowledge-note-tile,.knowledge-note-footer,.detail-actions,.splash-screen,.swipe-row,.candidate-file-section,.candidate-archive .candidate-file-section) { background-color:var(--bg-surface);color:var(--text-primary); }
:root[data-theme="dark"] :is(body,.splash-screen,.topbar) { background-color:var(--bg-primary); }
:root[data-theme="dark"] .app-menu .view-tab { background-color:transparent;color:var(--text-primary); }
:root[data-theme="dark"] .app-menu .view-tab:hover { background-color:var(--bg-hover);color:var(--text-primary); }
:root[data-theme="dark"] .inline-tag-menu button { background-color:var(--bg-hover);color:var(--text-primary);border-color:var(--border-subtle); }
:root[data-theme="dark"] .inline-tag-menu button:hover, :root[data-theme="dark"] .inline-tag-menu button:focus-visible { background-color:var(--accent-soft);color:var(--text-primary); }
:root[data-theme="dark"] .app-menu .auth-menu-item { border-color:var(--border-subtle); }
:root[data-theme="dark"] :is(input,textarea,select)::placeholder { color:var(--text-secondary);opacity:1; }
:root[data-theme="dark"] :is(.topbar,.settings-card,.settings-position-row+.settings-position-row,.candidate-file-section,.candidate-file-section .candidate-row,.knowledge-note-tile) { border-color:var(--border-subtle); }
:root[data-theme="dark"] :is(.ghost-button,.tag-option,.filter-button,.toolbar-icon-button,.menu-button,.icon-button,.icon-action-button,.timer-icon-button,.flag-icon-button) { background-color:transparent;color:var(--text-primary);border-color:var(--border-subtle); }
:root[data-theme="dark"] :is(.ghost-button,.tag-option,.filter-button,.toolbar-icon-button,.menu-button,.icon-button,.icon-action-button,.knowledge-note-tile):hover { background-color:var(--bg-hover); }
:root[data-theme="dark"] :is(.primary-button,.time-stepper .time-step-plus-strong) { background:#2d587e;color:#eff7ff;border-color:#78b5ed; }
:root[data-theme="dark"] .time-stepper .time-step-plus-soft { background:#253f55;color:#acd4ff; }
:root[data-theme="dark"] .time-stepper .time-step-minus-strong { background:#703a38;color:#ffe9e7; }
:root[data-theme="dark"] .time-stepper .time-step-minus-soft { background:#4a3030;color:#ffb9b4; }
:root[data-theme="dark"] :is(.tag-option.is-selected,.settings-position-row .tag-option.is-selected,.flag-icon-button.is-active,.app-menu .view-tab.is-active,.filter-button.is-active) { background:var(--accent-soft);color:var(--accent-strong);border-color:var(--accent); }
:root[data-theme="dark"] :is(.calendar-entry,.empty-state,.work-notes-label textarea,.candidate-field,.candidate-memo-preview) { background-color:var(--bg-hover);color:var(--text-primary); }
:root[data-theme="dark"] :is(.settings-card-heading svg,.candidate-file-icon) { color:var(--text-secondary); }
:root[data-theme="dark"] a { color:#a3cffe; }
:root[data-theme="dark"] :is(.icon-button,.menu-button,.toolbar-icon-button,.filter-button,.flag-icon-button,.timer-icon-button) img,
:root[data-theme="dark"] .task-title-button img { filter:invert(1); }
:root[data-theme="dark"] .task-card.is-overdue { border-left-color:var(--danger); }
:root[data-theme="dark"] .skeleton-line { background:#3b3b3b; }
:root[data-theme="dark"] .skeleton-line::after { background:linear-gradient(100deg,transparent,rgb(255 255 255 / .08),transparent); }
:root[data-theme="dark"] dialog::backdrop { background:rgb(0 0 0 / .6); }
:root[data-theme="dark"] .badge { background:#3b3b3b;color:#d8d8d8; }
:root[data-theme="dark"] :is(.badge.urgent,.badge.due-today,.badge.due-overdue) { background:#563232;color:#ffbbb5; }
:root[data-theme="dark"] :is(.badge.asap,.badge.due-tomorrow) { background:#493c27;color:#f5d294; }
:root[data-theme="dark"] :is(.badge.category-private,.inline-tag-button.category-private,.filter-private.is-active,.filter-private[data-mode="only"]) { background:#453650;color:#e0c3fa;border-color:#b690d1; }
:root[data-theme="dark"] .filter-private[data-mode="only"]::after { color:#e0c3fa; }
:root[data-theme="dark"] .badge.timer-running { background:#254638;color:#a6e4be; }
:root[data-theme="dark"] :is(button,input,textarea,select,a):focus-visible { outline:2px solid var(--accent-strong);outline-offset:2px; }
