/* Keep the everyday reader (including the free example) visually unchanged. */
html[data-view="settings"] {
  --paper: #fffbf6;
  --ink: #332a24;
  --line: #decbbd;
  --navy: #57392b;
  --blue: #823b26;
  --setup-light: #fff2e3;
  --setup-dark: #7c3927;
}
html[data-view="settings"] #settings > .settings-head {
  display: block;
  margin: 0;
  padding: clamp(.85rem, 4vw, 1.3rem);
  background: var(--setup-light);
  color: var(--ink);
  border: 1px solid #e8c8b1;
  border-inline-start: 5px solid #a75135;
  border-radius: 12px;
}
#settings .settings-head h1 {
  margin: 0;
  font-size: clamp(1.45rem, 6vw, 2rem);
  line-height: 1.35;
}
#settings .settings-head p { margin: .2rem 0 0; font-size: .95rem; color: #674a3b; }
#settings .setup-tabs { border-color: var(--line); }
#settings .setup-tabs a[aria-current="page"] {
  color: var(--setup-dark);
  border-bottom-color: #a75135;
  background: #fcf3ea;
}
#settings .weekday-switch a[aria-current="page"] {
  background: var(--setup-dark);
  border-color: var(--setup-dark);
}
#settings #week-open {
  color: var(--setup-dark);
  background: #f6e8dc;
}
#settings #item-links .order-head { background: #f9eee3; }
#settings #item-links .order-head h2 { border-inline-start-color: #b4684c; }
#settings #item-links .setting-row { background: #fffefa; }
#settings #item-links .order-grip { background: #f6efe8; }
html[data-view="settings"] #panel .panel-head,
html[data-view="settings"] #week-panel header,
html[data-view="settings"] #settings .draft-bar { background: var(--setup-light); }

/* Explicitly re-theme styles whose original reader colours were hard-coded. */
html[data-view="settings"] {
  --setup-soft: #f6e8dc;
  --setup-text: #57392b;
}
#settings #open-day { background: #124bbb; color: white; }
#settings #open-day:hover { background: #123c93; }
#settings .setup-tabs a:not([aria-current]) { color: var(--setup-text); }
#settings #item-links .order-head h2 {
  color: var(--setup-text);
  background: #f1e2d5;
}
#settings #item-links .toggle-gaps,
#settings #item-links .plus-symbol {
  color: var(--setup-dark);
  border-color: #be9b83;
}
#settings #item-links .first-trigger,
#settings #item-links .order-grip { color: var(--setup-text); }
#settings #item-links .setting-meta time {
  color: var(--setup-dark);
  background: #f4e3d7;
}
#settings #item-links .setting-row:hover,
#settings #item-links .setting-row:focus-visible { background: #faf1e8; }
html[data-view="settings"] :is(#settings,#week-panel,#week-empty,#panel,#guide-book,#leave-settings,#insert-leave) button:not(.primary,.setting-row,.order-grip,.toggle-gaps,.gap-trigger,.first-trigger,.clear-time,.reset-link),
html[data-view="settings"] #book-body .book-row {
  color: var(--setup-text);
  background: var(--setup-soft);
}
#settings #book-host .book-head { color: var(--setup-text); border-color: var(--line); }
html[data-view="settings"] #book-body,
html[data-view="settings"] #week-panel { color: var(--ink); }
html[data-view="settings"] #book-body .book-collections {
  background: #fbf3e9;
}
html[data-view="settings"] #book-body .book-collections button {
  background: transparent;
  color: var(--setup-text);
}
html[data-view="settings"] #book-body .book-collections button[aria-current="page"] {
  background: white;
  border-color: #be9b83;
  color: var(--setup-dark);
}
html[data-view="settings"] #book-body .guide-origin,
html[data-view="settings"] #first-setup p { color: #674a3b; }
html[data-view="settings"] #book-body .guide-search,
html[data-view="settings"] #insert-form { background: #fbf5ee; border-color: var(--line); }
html[data-view="settings"] #insert-templates summary,
html[data-view="settings"] #saved-guide-choices summary,
html[data-view="settings"] #week-location summary,
html[data-view="settings"] #panel .clear-time { color: var(--setup-dark); }
html[data-view="settings"] #week-presets button[aria-pressed="true"],
html[data-view="settings"] #commit-day { background: var(--setup-dark); color: white; }
html[data-view="settings"] :is(button, input, textarea, select):focus-visible { outline-color: #9b4a28; }
html[data-view="settings"] input[type="checkbox"] { accent-color: var(--setup-dark); }

html[data-view="settings"] #week-presets button:disabled { opacity: .56; cursor: default; }

.clock-weekdays { margin-top: .6rem; }
.clock-weekdays summary { cursor: pointer; padding: .55rem 0; font-weight: 700; }
.clock-weekday-options { display: grid; grid-template-columns: repeat(auto-fit,minmax(8rem,1fr)); gap: .15rem .5rem; }
.clock-weekday-options label { display: flex; align-items: center; gap: .45rem; min-height: 44px; margin: 0; }
.clock-weekday-options input[type="checkbox"] { width: 1.1rem; height: 1.1rem; padding: 0; margin: 0; }
.clock-weekday-actions { margin-top: .4rem; }
