/* Page chrome around the sheet (sheet.css styles the sheet itself). Screen only; print shows just the sheet. */
:root {
  --wp-ink: #0f172a;
  --wp-muted: #475569;
  --wp-accent: #17406b;
  --wp-bg: #eef2f6;
  --wp-line: #cbd5e1;
  --wp-good: #14532d;
  --wp-good-bg: #dcfce7;
  color-scheme: light;
  font: 400 1rem/1.55 "Atkinson Hyperlegible", "Nunito", system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--wp-bg); color: var(--wp-ink); }
.skip-link { position: absolute; left: -999px; top: 0; background: #fff; padding: 0.5rem 1rem; z-index: 10; }
.skip-link:focus { left: 0.5rem; top: 0.5rem; }

.wp-bar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 0.75rem 1rem; background: #fff; border-bottom: 1px solid var(--wp-line); }
.wp-back { color: var(--wp-accent); font-weight: 700; text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; gap: 0.35rem; }
.wp-lang { display: flex; border: 2px solid var(--wp-accent); border-radius: 0.6rem; overflow: hidden; }
.wp-lang button { border: 0; background: #fff; color: var(--wp-accent); font: inherit; font-weight: 700; padding: 0 1rem; min-height: 44px; cursor: pointer; }
.wp-lang button[aria-pressed="true"] { background: var(--wp-accent); color: #fff; }

.wp-main { max-width: 52rem; margin: 0 auto; padding: 1rem 1rem 3rem; }
.wp-controls h1 { margin: 0.5rem 0 0.25rem; font-size: clamp(1.6rem, 5vw, 2.2rem); line-height: 1.15; }
.wp-row { display: flex; gap: 0.75rem; align-items: center; margin: 1rem 0 0.75rem; flex-wrap: wrap; }
.wp-row label { font-weight: 700; }
.wp-row select { flex: 1 1 14rem; min-height: 48px; font: inherit; padding: 0 0.75rem; border: 2px solid var(--wp-line); border-radius: 0.6rem; background: #fff; }

.wp-progress { padding: 0.75rem 1rem; border-radius: 0.8rem; background: #fff; border: 2px solid var(--wp-line); font-weight: 700; }
.wp-progress[data-met="true"] { background: var(--wp-good-bg); border-color: var(--wp-good); color: var(--wp-good); }
.wp-dots { display: flex; gap: 0.4rem; margin-top: 0.4rem; }
.wp-dot { width: 1.1rem; height: 1.1rem; border-radius: 50%; border: 2px solid currentColor; }
.wp-dot[data-on="true"] { background: currentColor; }

.wp-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 1rem 0 0.5rem; }
.wp-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 1.1rem; border-radius: 0.7rem; border: 2px solid var(--wp-accent); background: #fff; color: var(--wp-accent); font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; }
.wp-primary { background: var(--wp-accent); color: #fff; }
.wp-btn:focus-visible { outline: 3px solid #f59e0b; outline-offset: 2px; }
.wp-privacy { color: var(--wp-muted); font-size: 0.95rem; margin: 0.25rem 0 1rem; }

.wp-sheetwrap { overflow-x: auto; padding: 0.25rem; }
.wp-sheetwrap:focus { outline: none; }
.wp-sheetwrap .ws-sheet { padding: 0.5in; border-radius: 0.5rem; box-shadow: 0 6px 24px rgba(15, 23, 42, 0.15); min-width: 7.5in; }

.wp-friday { border: 0; border-radius: 1rem; padding: 1.5rem; width: min(30rem, 94vw); box-shadow: 0 20px 60px rgba(15, 23, 42, 0.4); }
.wp-friday::backdrop { background: rgba(15, 23, 42, 0.6); }
.wp-friday h2 { margin: 0 0 0.25rem; font-size: 1.6rem; }
.wp-friday ul { list-style: none; margin: 1rem 0; padding: 0; }
.wp-friday li { display: flex; gap: 0.6rem; padding: 0.5rem 0; border-bottom: 1px solid var(--wp-line); font-size: 1.1rem; }
.wp-friday li[data-on="false"] { color: var(--wp-muted); }
.wp-big { font-size: 1.4rem; font-weight: 700; }

@media (max-width: 640px) {
  .wp-actions .wp-btn { flex: 1 1 100%; }
  .wp-sheetwrap { margin: 0 -0.5rem; }
  .wp-sheetwrap .ws-sheet { min-width: 0; padding: 1rem 0.75rem; font-size: 11pt; }
  .wp-sheetwrap .ws-head, .wp-sheetwrap .ws-name, .wp-sheetwrap .ws-sign { flex-wrap: wrap; }
  .wp-sheetwrap .ws-where { text-align: left; }
  .wp-sheetwrap .ws-table th, .wp-sheetwrap .ws-table td { padding: 4pt; }
  .wp-sheetwrap .ws-table thead th:nth-child(1) { width: 5.3rem; }
  .wp-sheetwrap .ws-table thead th:nth-child(3) { width: 3.4rem; }
  .wp-sheetwrap .ws-table thead th:nth-child(4) { width: 4.2rem; font-size: 10pt; }
  .wp-sheetwrap .ws-check { width: 30pt; height: 30pt; }
  .wp-sheetwrap .ws-check:checked::after { left: 9pt; top: 2pt; }
  .wp-sheetwrap .ws-url { display: none; }
}

@media print {
  .wp-screen, .skip-link, .wp-friday { display: none !important; }
  body { background: #fff; }
  .wp-main { max-width: none; padding: 0; }
  .wp-sheetwrap { overflow: visible; padding: 0; margin: 0; }
  .wp-sheetwrap .ws-sheet { width: 8.5in; min-width: 0; height: 11in; padding: 0.5in; box-shadow: none; border-radius: 0; overflow: hidden; }
}
@page { size: Letter; margin: 0; }
