:root {
  --paper: #f7f3ea;
  --card: #fffdf8;
  --ink: #1c1714;
  --muted: #5c564f;
  --line: #e4d9c4;
  --accent: #e0231a;
}
* { box-sizing: border-box; }
html, body { margin: 0; overflow-x: hidden; max-width: 100%; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: "Segoe UI", system-ui, sans-serif;
  line-height: 1.45;
}
.top {
  background: #1c1714;
  color: #fff;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 10px 16px;
}
.top p { margin: 0; font-size: 14px; }
.top a { color: #fff; font-weight: 700; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 16px; }
h1 { font-size: 32px; line-height: 1.15; margin: 8px 0 12px; }
h2 { font-size: 22px; margin: 28px 0 10px; }
h3 { margin: 0 0 8px; font-size: 18px; }
a { color: var(--accent); }
.brand { letter-spacing: 0.08em; text-transform: uppercase; font-size: 12px; font-weight: 700; color: var(--accent); margin: 0; }
.nav { margin: 6px 0 0; }
.card, .picks .pick, button, .btn, select, input {
  font: inherit;
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  margin: 0 0 12px;
}
label { display: block; font-size: 13px; font-weight: 700; margin: 10px 0 4px; }
input, select {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  background: #fff;
  color: var(--ink);
}
button, .btn, .pick {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 14px;
  border-radius: 8px;
  border: 0;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
button[disabled] { opacity: 0.35; cursor: not-allowed; }
button.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); margin-top: 8px; }
.actions { display: grid; gap: 8px; }
.picks { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.picks .pick { width: 100%; }
.notice { background: #fff4f2; border: 1px solid var(--accent); padding: 10px 12px; border-radius: 8px; }
.state { font-size: 28px; font-weight: 700; margin: 4px 0; }
.hours, .fine, .muted { color: var(--muted); }
.demo-pins { font-size: 14px; }
.board, .shifts, .qrs, .staff-form { display: grid; gap: 12px; }
.week { display: grid; gap: 8px; max-width: 320px; }
.exports { display: flex; flex-wrap: wrap; gap: 8px; }
.check { font-weight: 600; display: flex; gap: 8px; align-items: center; }
.check input { width: auto; min-height: 0; }
.sum { font-size: 20px; font-weight: 700; }
.qrcode { width: 180px; height: 180px; }
.qrcode img, .qrcode canvas { max-width: 100%; height: auto; }
.keep { margin-top: 28px; }
ul { padding-left: 18px; }
@media (min-width: 800px) {
  .actions { grid-template-columns: 1fr 1fr; }
  .board, .qrs { grid-template-columns: repeat(3, 1fr); }
  .shifts { grid-template-columns: 1fr 1fr; }
  .staff-form { grid-template-columns: 1fr 1fr 140px 120px auto; align-items: end; }
  .staff-form label { margin-top: 0; }
  .staff-form .check { grid-column: 1 / -1; }
}
@media print {
  .top, .nav, .week, .exports, .staff-form, h2, .keep, form { display: none; }
  .qrs, .qr { display: block; }
  .qr { break-inside: avoid; page-break-inside: avoid; }
}
.top .price { font-weight: 700; color: #ffd9d6; }
