/* Match the desktop's black surfaces, silver branding, and white text. */
:root {
  color-scheme: dark;
  --ink: #f2f2f2;
  --muted: #acacac;
  --accent: #dedede;
  --line: #363636;
  --paper: #090909;
  --red: #ff9292;
  font-family: Arial, system-ui, sans-serif;
}

h1, h2, h3, .stat strong { font-family: Arial, system-ui, sans-serif; }
body { background: var(--paper); }
button { background: #303030; }
button:hover { filter: brightness(1.12); }
button:focus-visible, a:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible {
  outline-color: #dedede;
}
input, select, textarea {
  background: #1c1c1c;
  border-color: #4c4c4c;
}
label { color: #d0d0d0; }
.primary {
  background: linear-gradient(#3d3d3d, #292929);
  border: 1px solid #686868;
  color: #fff;
}
.quiet { background: transparent; }
.danger { background: #361d1d; }
.card {
  background: #161616;
  box-shadow: 0 4px 20px #0004;
}
.brand-logo {
  display: block;
  width: 94px;
  height: 105px;
  object-fit: contain;
  margin-bottom: 25px;
}
.header-logo {
  display: block;
  width: 36px;
  height: 41px;
  object-fit: contain;
  flex-shrink: 0;
}
header { background: #111; }
.notice {
  background: #19261e;
  border-color: #365443;
  color: #c7e5d1;
}
.notice.test {
  background: #2c2517;
  border-color: #685432;
  color: #efd5a1;
}
nav { background: #111111f2; }
nav button.active {
  background: #373737;
  color: #fff;
}
.calendar .day { background: #242424; }
.calendar .day.selected {
  background: #cfcfcf;
  color: #111;
}
.day .count { background: #3b3b3b; color: #eee; }
.day.selected .count { background: #0002; color: #111; }
.pill { background: #353535; color: #e5e5e5; }
.empty { background: #131313; border-color: #484848; }
.staff-avatar { background: #353535; color: #eee; }
.segmented { background: #171717; border: 1px solid var(--line); }
.segmented button.active { background: #444; box-shadow: 0 2px 6px #0003; }
table { background: #161616; }
th { background: #252525; color: #c0c0c0; }
dialog { background: #141414; border-color: #505050; }
dialog::backdrop { background: #000b; }
#toast { background: #343434; border: 1px solid #666; }

input[readonly] { background: #252525; color: #aaa; cursor: default; }
input[aria-invalid="true"] { border-color: var(--red); }
.field-error { display: block; margin-top: 6px; color: var(--red); line-height: 1.4; }
.color-swatch { display: block; width: 32px; height: 32px; flex-shrink: 0; border: 1px solid #777; border-radius: 7px; }
.color-preview { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 110px; margin-top: 22px; border: 1px solid #777; border-radius: 12px; }
.color-preview span { font-size: 20px; }
.rgb-label { display: flex; justify-content: space-between; margin-bottom: 0; }
.rgb-label output { font-variant-numeric: tabular-nums; }
.rgb-sliders input[type="range"] { padding: 0; border: 0; accent-color: #ddd; background: transparent; }
.setting-checklist { padding: 0; margin: 22px 0 0; border: 0; min-width: 0; }
.setting-checklist legend { font-size: 14px; font-weight: 600; }
.choice-list { max-height: 340px; overflow-y: auto; border: 1px solid var(--line); border-radius: 10px; padding: 4px 12px; }
.choice-list .checkbox { min-height: 44px; margin: 0; border-bottom: 1px solid var(--line); }
.choice-list .checkbox:last-child { border-bottom: 0; }
.checkbox input { flex-shrink: 0; accent-color: #ddd; }
.select-all { min-height: 44px; }
.setting-checklist .meta { margin-bottom: 10px; }
.settings-group summary { min-height: 32px; line-height: 32px; }
.settings-group summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 4px; }
.settings-description { margin: 6px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }

/* Preserve the original desktop data colors in schedule cells. */
@media print {
  :root {
    color-scheme: light;
    --ink: #111;
    --muted: #555;
    --line: #ccc;
    --paper: #fff;
    --red: #ab3434;
  }
  body, .card, table { background: #fff; color: #111; }
  th { background: #eee; color: #444; }
}
