:root { --ink:#1d2433; --muted:#5b6578; --ok:#1f7a4d; --bad:#a23b3b; --accent:#7a3cff; --bg:#f7f5f0; }
* { box-sizing: border-box; }
body { margin:0; font: 17px/1.5 system-ui, sans-serif; color:var(--ink); background:var(--bg); }
header, main, footer { max-width: 1100px; margin: 0 auto; padding: 1rem; }
h1 { margin: .2rem 0; font-size: 2rem; }
.tag { color: var(--muted); margin-top: 0; }
.disclaimer { background:#fff6e0; border-left:4px solid #e0a100; padding:.6rem .8rem; font-size:.95rem; }
.mode { font-size:.85rem; color:var(--muted); margin-top:.4rem; }
.card { background:#fff; border-radius:10px; padding:1rem 1.2rem; margin:1rem 0; box-shadow:0 1px 3px #0001; }
label { display:block; margin:.5rem 0; }
label.inline { display:inline-block; margin-right:1rem; }
input:not([type=checkbox]), select { width:100%; padding:.5rem; font-size:1rem; border:1px solid #ccd; border-radius:6px; }
.sample { display:flex; gap:.6rem; margin-bottom:.8rem; }
.sample select { flex:1; }
button { font-size:1rem; padding:.6rem 1rem; border-radius:6px; border:1px solid var(--accent); background:#fff; color:var(--accent); cursor:pointer; }
button.primary, form button { background:var(--accent); color:#fff; }
.cols { display:grid; grid-template-columns:1fr 1fr; gap:1rem; align-items:start; }
@media (max-width: 760px) { .cols { grid-template-columns:1fr; } }
.grounded { border-top:4px solid var(--ok); }
.baseline { border-top:4px solid #999; }
ol li { margin-bottom:.8rem; }
.why { color:var(--muted); font-size:.92rem; }
.badge { white-space:nowrap; display:inline-block; font-size:.75rem; padding:.1rem .4rem; border-radius:4px; background:#eee; margin-left:.3rem; }
.badge.ok { background:#e2f4ea; color:var(--ok); } .badge.bad { background:#f8e3e3; color:var(--bad); }
table { width:100%; border-collapse:collapse; } th, td { text-align:left; padding:.4rem; border-bottom:1px solid #eee; }
fieldset { margin:.6rem 0 1rem; border:1px solid #ccd; border-radius:6px; }
.mono { font-family: ui-monospace, monospace; font-size:.82rem; }
footer { color:var(--muted); font-size:.85rem; }
button:disabled { cursor:not-allowed; opacity:.55; }
button:focus-visible, select:focus-visible, input:focus-visible, summary:focus-visible { outline:3px solid #39236b; outline-offset:3px; }
.week-range { color:var(--muted); margin-top:-.6rem; }
.week-controls { display:flex; gap:.8rem; align-items:end; flex-wrap:wrap; margin:1rem 0; }
.week-controls label { flex:1 1 180px; margin:0; }
.week-controls button { min-height:44px; }
.week-days { list-style:none; margin:1rem 0; padding:0; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1rem; }
.week-day { border:1px solid #d8dfdc; border-radius:8px; margin:0; padding:.9rem; min-width:0; break-inside:avoid; }
.week-day h3 { display:flex; gap:.5rem; flex-wrap:wrap; justify-content:space-between; align-items:baseline; font-size:1.05rem; margin:0 0 .8rem; }
.week-day time { font-size:.85rem; font-weight:normal; color:var(--muted); }
.scheduled-pick + .scheduled-pick { border-top:1px solid #dde3df; margin-top:1rem; padding-top:1rem; }
.scheduled-pick h4 { margin:.3rem 0; font-size:1rem; overflow-wrap:anywhere; }
.scheduled-pick .why { margin:.45rem 0; overflow-wrap:anywhere; }
.scheduled-pick .badge { margin:0 .3rem .1rem 0; }
.pick-control { margin-bottom:0; color:var(--muted); font-size:.85rem; }
.pick-control select { margin-top:.25rem; }
.open-day { color:var(--muted); margin:.3rem 0; }
.open-day span { display:block; font-size:.85rem; }
.omitted-picks { list-style:none; padding:0; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1rem; }
.omitted-picks li { border:1px dashed #9da9a1; border-radius:8px; padding:.8rem; min-width:0; break-inside:avoid; }
.handoff-note { font-size:.9rem; padding:.7rem; border-left:3px solid #e0a100; background:#fff6e0; }
.error { color:var(--bad); font-weight:600; }
.error:empty, #weekStatus:empty { display:none; }
.original-evidence > summary { cursor:pointer; padding:.6rem; color:var(--muted); }
@media (max-width: 600px) {
  .week-days, .omitted-picks { grid-template-columns:1fr; }
  .sample { flex-wrap:wrap; }
  .sample select { flex-basis:100%; }
  .week-controls button { flex:1 1 140px; }
}
@media print {
  @page { margin:14mm; }
  body { background:#fff; color:#111; font-size:10pt; }
  header, main, footer { max-width:none; padding:0; }
  header h1 { font-size:20pt; }
  header .tag, header #mode, .taste-form, .original-evidence, .week-controls, .pick-control, .organizer-help { display:none !important; }
  .card { box-shadow:none; border-radius:0; margin:.7rem 0; padding:0; }
  #weekOrganizer { border-top:0; }
  #weekTitle { margin-bottom:.4rem; }
  .week-days, .omitted-picks { display:block; }
  .week-day, .omitted-picks li { margin-bottom:.6rem; padding:.55rem; break-inside:avoid; }
  .week-day h3 { margin-bottom:.3rem; }
  .week-day .why, .handoff-note { font-size:9pt; }
  .disclaimer { font-size:9pt; }
  #weekSource { color:#111; font-weight:600; }
  footer { margin-top:.7rem; font-size:8pt; }
}
