/* Screen-only theme. PDF generation owns its light paper palette. */
@media screen {
  :root[data-theme=dark] { color-scheme:dark; --page:#000; --surface:#000; --ink:#fff; --muted:#e0e0e0; --line:#383d47; --accent:#9ab8ff; --accent-dark:#b9ccff; --accent-soft:#222e49; --sidebar:#000; --shadow:none; }
  [data-theme=dark] body { background:#000; color:#fff; }
  [data-theme=dark] :is(.main,.main-topbar,.main-body,.workspace-card,.board-header,.toolbar,.view-tabs,.view-content,.stat-card,.modal,.modal-header,.modal-body,.modal-footer,.auth-panel,.auth-card,.data-menu-panel,.task-table,.task-table td,.task-table th,.calendar-cell,.schedule-brand,.timeline-name,.timeline-track,.task-card,.hidden-section,.trade-picker,.hidden-task-toggle,.member-entry,.history-entry) { background:#000; color:#fff; border-color:#383d47; }
  [data-theme=dark] :is(.sidebar,.sidebar-note,.sidebar-footer,.workspace-avatar,.brand-icon) { background:#000; color:#fff; border-color:#383d47; }
  [data-theme=dark] :is(.kanban-column,.hidden-tasks,.calendar-weekday,.calendar-cell.muted,.timeline-head,.timeline-day,.group-header,.inline-add,.sample-banner,.cloud-notice) { background:#080808; color:#e5e7eb; border-color:#383d47; }
  [data-theme=dark] :is(input,select,textarea,.button.secondary,.button.ghost,.icon-button,.chip,.kanban-add,.data-menu summary) { background:#080808; color:#fff; border-color:#555e6e; }
  [data-theme=dark] :is(input,textarea)::placeholder { color:#aeb6c4; opacity:1; }
  [data-theme=dark] :is(.button.primary,.auth-submit) { background:#3156a6; color:#fff; border-color:#5579ca; }
  [data-theme=dark] :is(h1,h2,h3,.board-title,.task-title-button,.group-heading,.trade-picker legend,.schedule-brand strong,.about-content strong,.modal h2,.day-number) { color:#fff; }
  [data-theme=dark] :is(p,.field-hint,.attribution,.modal-subtitle,.board-description,.card-date,.card-group,.card-owner,.calendar-header-copy p,.timeline-header-copy p,.timeline-name span,.timeline-legend,.schedule-brand>div,.hidden-task-toggle small,.hidden-task .task-card span,.stat-label,.stat-detail,.filter-count,.breadcrumb,.tabs-note,.helper-row,.cloud-notice,.data-menu-panel p,.about-content p,.timeline-outside,.group-count,.calendar-cell.muted .day-number) { color:#e0e0e0!important; }
  [data-theme=dark] :is(.project-link.active,.view-tab.active) { background:#242f49; color:#fff; box-shadow:inset 3px 0 #9ab8ff; }
  [data-theme=dark] .view-tab { color:#c1c8d4; }
  [data-theme=dark] :is(button,summary):hover { filter:brightness(1.16); }
  [data-theme=dark] :focus-visible { outline:3px solid #aec7ff; outline-offset:3px; }
  [data-theme=dark] .timeline-track { background-image:linear-gradient(to right,#383d47 1px,transparent 1px); }
  [data-theme=dark] :is(.timeline-day.today,.calendar-cell.today) { background:#202c43; color:#fff; }
  [data-theme=dark] .calendar-cell.today .day-number { background:#3156a6; color:#fff; }
  [data-theme=dark] .schedule-brand img { background:#fff; border-radius:4px; padding:6px; }
  [data-theme=dark] :is(.calendar-task,.timeline-bar,.status-select,.priority-select) { background:#2a303b; color:#f3f4f6; border-color:#667183; }
  [data-theme=dark] :is(.calendar-task,.timeline-bar)[data-status=active], [data-theme=dark] .status-select[data-value=active] { background:#493a16; color:#ffe6a3; }
  [data-theme=dark] :is(.calendar-task,.timeline-bar)[data-status=blocked], [data-theme=dark] .status-select[data-value=blocked] { background:#48262d; color:#ffc7cd; }
  [data-theme=dark] :is(.calendar-task,.timeline-bar)[data-status=done], [data-theme=dark] .status-select[data-value=done], [data-theme=dark] .complete-toggle[aria-pressed=true] { background:#173e2c; color:#c4f7d6; border-color:#4baf78; }
  [data-theme=dark] .trade-badge { background:var(--trade-color); color:#fff!important; }
  [data-theme=dark] :is(.stat-value,.stat-denominator,.stat-top,.board-title-row,.breadcrumb-project,.status-pill,.priority-pill,.owner-badge,.filter-label,.data-menu-panel button) { color:#fff; }
  [data-theme=dark] .status-pill,[data-theme=dark] .priority-pill { color:#fff; background:#343a46; }
  [data-theme=dark] .danger { color:#ffbac3!important; }
  [data-theme=dark] .toast { background:#2a303b; color:#fff; }
}
.trade-badge { display:inline-block; padding:2px 7px; border-left:4px solid var(--trade-color); border-radius:3px; background:var(--trade-color); color:#fff; font-size:10px; font-weight:600; line-height:1.5; white-space:normal; }
.task-trade-line { display:block; margin:4px 0 3px; }
.topbar-actions { flex-wrap:wrap; }
@media print { #theme-toggle,.hidden-tasks,.day-add,.schedule-actions,.trade-picker { display:none!important; } }
