/* Incident Clock theme: tokens first, then components. Loaded after styles.css. */
:root {
  --accent: #2456e6;
  --accent-text: #1f4bd1;
  --surface: #ffffff;
  --surface-quiet: #f3f5f9;
  --border: #d3d9e4;
  --line: #8884;
  --muted: color-mix(in srgb, CanvasText 62%, Canvas);
  --fs-base: 1.0625rem;
  --fs-small: .9rem;
  --fs-result: 1.25rem;
  --fs-mono: .875rem;
  --sp-1: 6px; --sp-2: 12px; --sp-3: 20px; --sp-4: 24px; --sp-5: 28px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --shadow-card: 0 2px 4px #0f1b3a14, 0 8px 24px #0f1b3a1a;
}
@media (prefers-color-scheme: dark) {
  :root {
    --accent-text: #9bb4ff;
    --surface: #1b1f27;
    --surface-quiet: #14171d;
    --border: #3a4252;
    --shadow-card: 0 2px 4px #0006, 0 8px 24px #0005;
  }
}

/* Secondary button look, shared by the file chooser and Download CSV. */
.file input[type=file] { font: inherit; color: inherit; max-width: 100%; }
.file input[type=file]::file-selector-button,
.actions button.secondary {
  min-height: 44px; padding: 8px 16px; margin-right: 12px;
  border: 2px solid var(--accent); border-radius: var(--radius-sm);
  background: transparent; color: inherit;
  font: inherit; font-weight: 600; cursor: pointer;
}
.actions button.secondary { margin-right: 0; }
.file input[type=file]::file-selector-button:hover,
.actions button.secondary:hover { background: #2456e61a; }
.file input[type=file]::file-selector-button:active,
.actions button.secondary:active { background: #2456e633; }

/* Result card: the biggest thing on the screen. */
#output:not(:empty) {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: var(--sp-4);
  margin-top: var(--sp-2);
}
#status { font-size: var(--fs-result); line-height: 1.35; }
#status.error { font-size: var(--fs-base); }
#output .actions { margin: var(--sp-2) 0 0; }

/* Plain-text copy: quiet block under the table. */
.plain-label { margin: var(--sp-3) 0 var(--sp-1); font-size: var(--fs-small); color: var(--muted); }
#timeline {
  margin: 0 0 var(--sp-2);
  background: var(--surface-quiet);
  color: var(--muted);
  font-size: .75rem;
  tab-size: 24;
}
