:root {
  --bg: #ffffff;
  --text: #111827;
  --muted: #4b5563;
  --line: #d1d5db;
  --soft: #f3f4f6;
  --accent: #1f2937;
  --accent-text: #ffffff;
  --focus: #1d4ed8;
  --error: #b91c1c;
  --gap: 16px;
  font-size: 100%;
}
* { box-sizing: border-box; }
html { scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1.0625rem/1.55 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
.wrap { max-width: 760px; margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--accent); color: var(--accent-text); padding: 8px 12px; border-radius: 6px; z-index: 20; }
.skip:focus { left: 16px; }
.site-header { position: sticky; top: 0; z-index: 10; background: var(--bg); border-bottom: 1px solid transparent; transition: box-shadow .2s, border-color .2s; }
.site-header.scrolled { box-shadow: 0 2px 8px rgba(17, 24, 39, .08); border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; min-height: 56px; }
.brand { font-weight: 600; font-size: 1rem; }
.dot { color: var(--muted); padding: 0 4px; }
main { padding-top: 24px; padding-bottom: 64px; outline: none; }
h1 { font-size: 2rem; line-height: 1.2; margin: 8px 0 8px; letter-spacing: -0.01em; }
h2 { font-size: 1.25rem; line-height: 1.3; margin: 32px 0 12px; }
.lede { color: var(--muted); margin: 0 0 24px; font-size: 1.125rem; }
.row { display: flex; gap: 12px; flex-wrap: wrap; }
button, select, input { font: inherit; color: inherit; }
button { cursor: pointer; }
.choice {
  min-height: 44px; padding: 10px 18px; border: 1px solid var(--line); border-radius: 8px;
  background: var(--bg); font-size: 1rem; font-weight: 500;
}
.choice:hover { border-color: var(--accent); }
.choice[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-text); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.zone-line { margin: 20px 0 0; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; color: var(--muted); font-size: 1rem; }
select { min-height: 44px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); max-width: 100%; font-size: 1rem; color: var(--text); }
.status { color: var(--muted); margin: 20px 0 0; font-size: 1rem; }
.status.warn { color: var(--text); background: var(--soft); padding: 12px 14px; border-radius: 8px; }
.step-title { margin-top: 28px; }
.days { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 8px; }
.days .choice { display: flex; flex-direction: column; align-items: flex-start; padding: 8px 12px; text-align: left; }
.days .choice small { font-size: 1rem; font-weight: 400; }
.times { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 8px; }
.chosen { font-weight: 600; margin: 0 0 16px; }
form { display: grid; gap: 6px; max-width: 480px; }
label { font-weight: 500; margin-top: 10px; font-size: 1rem; }
.opt { color: var(--muted); font-weight: 400; }
input { min-height: 44px; padding: 10px 12px; border: 1px solid #9ca3af; border-radius: 8px; background: var(--bg); font-size: 1rem; }
input:focus { border-color: var(--accent); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.actions { display: flex; gap: 16px; align-items: center; margin-top: 20px; flex-wrap: wrap; }
.primary { min-height: 48px; padding: 12px 24px; border: 0; border-radius: 8px; background: var(--accent); color: var(--accent-text); font-weight: 600; font-size: 1rem; }
.primary[disabled] { opacity: .6; cursor: progress; }
.link { background: none; border: 0; padding: 8px 0; text-decoration: underline; color: var(--text); font-size: 1rem; }
.error { color: var(--error); margin: 12px 0 0; font-size: 1rem; }
#done h2 { font-size: 1.75rem; margin-top: 8px; }

/* admin */
.admin h1 { font-size: 1.75rem; }
.card { border: 1px solid var(--line); border-radius: 10px; padding: 16px; margin: 16px 0; }
.card h2 { margin-top: 0; }
.day-row { display: grid; grid-template-columns: 110px 1fr; gap: 8px; padding: 10px 0; border-top: 1px solid var(--soft); align-items: start; }
.day-row:first-of-type { border-top: 0; }
.day-name { font-weight: 600; padding-top: 10px; }
.win { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 6px; }
.win input { width: 130px; }
.small-btn { min-height: 40px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); font-size: 1rem; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.grid2 label { display: grid; gap: 6px; }
textarea { font: inherit; font-size: 1rem; width: 100%; min-height: 88px; padding: 10px 12px; border: 1px solid #9ca3af; border-radius: 8px; }
.ok { color: #166534; }
.muted { color: var(--muted); }
ul.plain { padding-left: 20px; margin: 8px 0; }
@media (max-width: 480px) {
  h1 { font-size: 1.75rem; }
  .day-row { grid-template-columns: 1fr; }
  .day-name { padding-top: 0; }
}
.btn-link { display: inline-flex; align-items: center; text-decoration: none; }
.sub { margin-top: 16px; }
.check { display: flex; gap: 8px; align-items: center; font-weight: 400; }
.check input { min-height: auto; width: 20px; height: 20px; }
.flush { margin: 0; }
