/* Layout idea: green brand band on top, then a 2x2 board of large tap tiles (one per section).
   Each tile opens its own full section view. Single brand theme by choice. */
:root {
  --green: #2D5245;
  --green-deep: #234137;
  --cream: #F1EBDF;
  --cream-raised: #F8F4EC;
  --black: #1C1B1B;
  --ink-soft: #4E534F;
  --line: #D9D1C0;
  --red: #A6301C;    /* broken / not working */
  --amber: #A9690B;  /* completely out */
  --slate: #4E534F;  /* other / general note */
  --font-display: "Archivo", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Archivo", "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { height: 100%; margin: 0; }
body {
  background: var(--cream);
  color: var(--black);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.45;
  display: flex;
  flex-direction: column;
  -webkit-text-size-adjust: 100%;
}
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { text-wrap: balance; }

/* ---------- Brand band ---------- */
.band {
  background: var(--green);
  color: var(--cream);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding: 18px clamp(16px, 4vw, 40px);
  border-bottom: 6px solid var(--black);
}
.brand {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.5vw, 28px);
  color: inherit;
  text-decoration: none;
  border-radius: 8px;
}
.brand img { height: clamp(56px, 9vw, 84px); width: auto; display: block; }
.brand-title {
  font-family: var(--font-display);
  font-stretch: 112%;
  font-weight: 700;
  font-size: clamp(15px, 2vw, 20px);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding-left: clamp(14px, 2.5vw, 28px);
  border-left: 2px solid rgba(241, 235, 223, 0.35);
  line-height: 1.3;
}
.clock { text-align: right; font-variant-numeric: tabular-nums; }
.clock-time {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1;
}
.clock-date {
  font-size: 14px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.85;
  margin-top: 6px;
}

/* ---------- Main ---------- */
main {
  flex: 1;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(20px, 4vw, 40px) clamp(16px, 4vw, 40px) 40px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.eyebrow {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--green);
}
.board {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: minmax(200px, 1fr);
  gap: 20px;
}
.tile {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  padding: clamp(20px, 3vw, 30px);
  background: var(--cream-raised);
  border: 2px solid var(--black);
  border-radius: 14px;
  color: var(--black);
  text-decoration: none;
  box-shadow: 0 5px 0 var(--black);
  transition: transform 0.08s ease, box-shadow 0.08s ease;
}
.tile:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--black); }
.tile-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.tile-icon {
  width: 60px; height: 60px; flex: none;
  display: grid; place-items: center;
  background: var(--green);
  color: var(--cream);
  border-radius: 12px;
}
.tile-icon svg { width: 32px; height: 32px; }
.pill {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 12px;
  border: 1.5px dashed var(--ink-soft);
  border-radius: 999px;
  color: var(--ink-soft);
  white-space: nowrap;
}
.tile h2 {
  font-family: var(--font-display);
  font-stretch: 88%;
  font-weight: 800;
  font-size: clamp(26px, 3.6vw, 38px);
  line-height: 1.05;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}
.tile p { color: var(--ink-soft); margin-top: 8px; max-width: 38ch; }
.tile-open {
  display: flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: 14px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--green);
}
.tile-open svg { width: 18px; height: 18px; }

/* ---------- Section view ---------- */
.view[hidden] { display: none; }
.view { display: flex; flex-direction: column; gap: 24px; flex: 1; }
.section-head { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.back {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 48px; padding: 0 18px;
  background: var(--black); color: var(--cream);
  border-radius: 999px;
  font-weight: 700; font-size: 14px; letter-spacing: 0.12em; text-transform: uppercase;
  text-decoration: none;
}
.back svg { width: 18px; height: 18px; }
.section-head h1 {
  font-family: var(--font-display);
  font-stretch: 88%;
  font-weight: 800;
  font-size: clamp(30px, 5vw, 46px);
  line-height: 1;
  text-transform: uppercase;
}
.placeholder {
  flex: 1;
  min-height: 260px;
  display: grid; place-items: center;
  text-align: center;
  padding: 32px 20px;
  border: 2px dashed var(--line);
  border-radius: 14px;
  color: var(--ink-soft);
}
.placeholder strong { display: block; color: var(--black); font-size: 22px; margin-bottom: 6px; }

/* ---------- Staff Alert ---------- */
.lede { color: var(--ink-soft); max-width: 65ch; }
.alert-layout {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: 20px;
  align-items: start;
}
.panel {
  background: var(--cream-raised);
  border: 2px solid var(--black);
  border-radius: 14px;
  padding: clamp(18px, 2.5vw, 26px);
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}
.panel h2 {
  font-family: var(--font-display);
  font-stretch: 88%;
  font-weight: 800;
  font-size: 24px;
  line-height: 1.1;
  text-transform: uppercase;
}
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.field { display: flex; flex-direction: column; gap: 8px; }
.label, legend.label {
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0;
}
.label .optnote { font-weight: 400; letter-spacing: 0.04em; color: var(--ink-soft); text-transform: none; font-size: 14px; }
legend.label { margin-bottom: 8px; }
.squares { display: grid; gap: 10px; }
.squares.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.squares.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.type { position: relative; display: block; --dot: var(--green); }
.type input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.type span {
  aspect-ratio: 1 / 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  padding: 8px;
  border: 2px solid var(--black);
  border-radius: 12px;
  background: var(--cream);
  font-weight: 800;
  font-size: 13px;
  line-height: 1.2;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
  box-shadow: 0 3px 0 var(--black);
}
.type svg { width: 38%; max-width: 46px; height: auto; aspect-ratio: 1; flex: none; color: var(--dot); }
.type input:checked + span { background: var(--green); color: var(--cream); transform: translateY(3px); box-shadow: none; }
.type input:checked + span svg { color: var(--cream); }
.type input:focus-visible + span { outline: 3px solid var(--black); outline-offset: 3px; }
.squares.invalid .type span { border-color: var(--red); background: #FBEDE8; }
@media (max-width: 480px) { .squares.four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.t-broken { --dot: var(--red); }
.t-out { --dot: var(--amber); }
.t-other { --dot: var(--slate); }
input[type="text"], textarea {
  width: 100%;
  font: inherit;
  color: var(--black);
  background: #FFFDF8;
  border: 2px solid var(--black);
  border-radius: 10px;
  padding: 13px 14px;
  min-height: 54px;
}
textarea { min-height: 110px; resize: vertical; }
input[type="text"]:focus-visible, textarea:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }
input.invalid { border-color: var(--red); background: #FBEDE8; }
.btn {
  font: inherit; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; font-size: 16px;
  min-height: 58px; padding: 0 24px;
  background: var(--green); color: var(--cream);
  border: 2px solid var(--black); border-radius: 12px;
  box-shadow: 0 4px 0 var(--black);
  cursor: pointer;
}
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--black); }
.btn:disabled { opacity: 0.55; cursor: default; }
.btn:focus-visible, .tab:focus-visible, .mini:focus-visible { outline: 3px solid var(--black); outline-offset: 3px; }
.form-msg { min-height: 1.45em; font-weight: 700; }
.form-msg.ok { color: var(--green); }
.form-msg.err { color: var(--red); }
.log-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.tabs { display: flex; gap: 6px; }
.tab {
  font: inherit; font-weight: 700; font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase;
  min-height: 44px; padding: 0 16px;
  border: 2px solid var(--black); border-radius: 999px;
  background: transparent; color: var(--black); cursor: pointer;
  font-variant-numeric: tabular-nums;
}
.tab[aria-pressed="true"] { background: var(--black); color: var(--cream); }
.log-status { color: var(--ink-soft); }
.log-status:empty { display: none; }
.alert-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.alert {
  background: var(--cream);
  border: 1.5px solid var(--line);
  border-left: 8px solid var(--dot);
  border-radius: 10px;
  padding: 14px 16px;
  display: flex; flex-direction: column; gap: 8px;
}
.alert-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.chip {
  font-size: 12px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--dot);
}
.alert-time { font-size: 14px; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.alert-item { font-weight: 800; font-size: 21px; line-height: 1.2; overflow-wrap: anywhere; }
.alert-notes { overflow-wrap: anywhere; white-space: pre-wrap; }
.alert-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.alert-by { font-size: 15px; color: var(--ink-soft); overflow-wrap: anywhere; }
.mini {
  font: inherit; font-weight: 700; font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase;
  min-height: 44px; padding: 0 14px;
  border: 2px solid var(--black); border-radius: 999px;
  background: var(--cream-raised); color: var(--black); cursor: pointer;
}
.mini:disabled { opacity: 0.5; }
.pill.live { border-style: solid; border-color: var(--red); background: var(--red); color: #fff; }
.pill.clear { border-style: solid; border-color: var(--green); color: var(--green); }

/* ---------- Manager Write Ups ---------- */
.wu-stack { display: flex; flex-direction: column; gap: 20px; max-width: 940px; width: 100%; }
.wu-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.wu-tabs .tab { min-height: 50px; padding: 0 22px; font-size: 15px; }
.help { color: var(--ink-soft); font-size: 16px; max-width: 68ch; margin-top: -8px; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.span2 { grid-column: 1 / -1; }
input[type="date"], input[type="time"] {
  width: 100%;
  font: inherit;
  color: var(--black);
  background: #FFFDF8;
  border: 2px solid var(--black);
  border-radius: 10px;
  padding: 13px 14px;
  min-height: 54px;
  -webkit-appearance: none;
  appearance: none;
}
input[type="date"]:focus-visible, input[type="time"]:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }
input.invalid, textarea.invalid { border-color: var(--red); background: #FBEDE8; }
.opts { display: flex; flex-direction: column; gap: 8px; }
.opts.cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.opt {
  display: flex; align-items: flex-start; gap: 12px;
  min-height: 54px; padding: 13px 14px;
  border: 2px solid var(--black);
  border-radius: 10px;
  background: var(--cream);
  cursor: pointer;
  font-weight: 600;
  line-height: 1.3;
}
.opt input { width: 24px; height: 24px; flex: none; margin: 0; accent-color: var(--green); }
.opt:has(input:checked) { background: #DCE6DD; border-color: var(--green); box-shadow: inset 0 0 0 1px var(--green); }
.opt:has(input:focus-visible) { outline: 3px solid var(--black); outline-offset: 3px; }
.opts.invalid .opt { border-color: var(--red); }
.notice {
  border-left: 6px solid var(--amber);
  background: #F6ECD6;
  padding: 12px 14px;
  border-radius: 8px;
  font-weight: 600;
  max-width: 68ch;
}
.notice[hidden] { display: none; }
.prior { display: grid; grid-template-columns: 1.1fr 2fr 1.3fr; gap: 8px; }
.prior .label { align-self: end; }
.guide summary {
  font-family: var(--font-display);
  font-stretch: 88%;
  font-weight: 800;
  font-size: 22px;
  text-transform: uppercase;
  cursor: pointer;
  min-height: 44px;
  display: flex; align-items: center; gap: 10px;
}
.guide summary::marker, .guide summary::-webkit-details-marker { display: none; content: ""; }
.guide summary::after { content: "Show"; margin-left: auto; font-family: var(--font-body); font-stretch: 100%; font-size: 13px; letter-spacing: 0.12em; color: var(--green); }
.guide[open] summary::after { content: "Hide"; }
.guide ol { margin: 0; padding-left: 1.4em; display: flex; flex-direction: column; gap: 8px; max-width: 70ch; }
.guide ol strong { font-weight: 800; }
.sig { display: flex; flex-direction: column; gap: 12px; padding-top: 18px; border-top: 1.5px solid var(--line); }
.sig:first-child { border-top: 0; padding-top: 0; }
.sig[hidden] { display: none; }
.sig h3 { font-size: 18px; font-weight: 800; }
.sig h3 span { font-weight: 400; color: var(--ink-soft); font-size: 15px; }
.pad { position: relative; }
.pad canvas {
  display: block; width: 100%; aspect-ratio: 800 / 220;
  background: #FFFDF8;
  border: 2px solid var(--black);
  border-radius: 10px;
  touch-action: none;
  cursor: crosshair;
}
.pad.invalid canvas { border-color: var(--red); background: #FBEDE8; }
.pad .hint { position: absolute; left: 16px; bottom: 12px; right: 16px; padding-top: 6px; border-top: 1.5px solid var(--line); color: var(--ink-soft); font-size: 14px; pointer-events: none; }
.pad .mini { position: absolute; right: 10px; top: 10px; min-height: 40px; }
.errors { color: var(--red); font-weight: 700; margin: 0; padding-left: 1.2em; display: flex; flex-direction: column; gap: 4px; }
.errors:empty { display: none; }
.confirm { display: flex; flex-direction: column; gap: 14px; }
.confirm[hidden] { display: none; }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.btn.ghost { background: var(--cream-raised); color: var(--black); }
.rec-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.rec-row {
  width: 100%; text-align: left; font: inherit; color: var(--black); cursor: pointer;
  background: var(--cream-raised);
  border: 2px solid var(--black); border-radius: 12px;
  padding: 16px 18px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  box-shadow: 0 3px 0 var(--black);
}
.rec-row:focus-visible { outline: 3px solid var(--black); outline-offset: 3px; }
.rec-name { font-weight: 800; font-size: 21px; overflow-wrap: anywhere; }
.rec-meta { color: var(--ink-soft); font-size: 15px; overflow-wrap: anywhere; }
.rec-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.tag { font-size: 12px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; padding: 6px 10px; border-radius: 999px; border: 1.5px solid var(--black); white-space: nowrap; }
.tag.warn { background: var(--amber); border-color: var(--amber); color: #fff; }
.tag.done { border-color: var(--green); color: var(--green); }
.tag.term { background: var(--red); border-color: var(--red); color: #fff; }
.record h3 { font-family: var(--font-display); font-stretch: 88%; font-weight: 800; font-size: 19px; text-transform: uppercase; padding-top: 16px; border-top: 1.5px solid var(--line); }
.record dl { margin: 0; display: grid; grid-template-columns: minmax(120px, max-content) minmax(0, 1fr); gap: 8px 20px; }
.record dt { font-weight: 700; font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); padding-top: 3px; }
.record dd { margin: 0; overflow-wrap: anywhere; white-space: pre-wrap; }
.record ul { margin: 0; padding-left: 1.2em; }
.record .body { white-space: pre-wrap; overflow-wrap: anywhere; max-width: 70ch; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.thumbs:empty { display: none; }
.thumb { position: relative; border: 2px solid var(--black); border-radius: 10px; overflow: hidden; background: #FFFDF8; aspect-ratio: 1; }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb .mini { position: absolute; right: 6px; bottom: 6px; min-height: 40px; }
.rec-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.rec-photos img { width: 100%; height: auto; display: block; border: 1.5px solid var(--line); border-radius: 8px; background: #FFFDF8; }
.tips { columns: 2; column-gap: 20px; }
.tips .panel { break-inside: avoid; margin-bottom: 20px; gap: 12px; }
.tips ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.tips li { padding-left: 22px; position: relative; font-size: 19px; line-height: 1.35; }
.tips li::before { content: ""; position: absolute; left: 0; top: 0.5em; width: 10px; height: 10px; border-radius: 50%; background: var(--green); }
@media (max-width: 760px) { .tips { columns: 1; } }
/* ---------- Monthly Inventory Checklist ---------- */
.inv-progress {
  position: sticky; top: 8px; z-index: 5;
  background: var(--green); color: var(--cream);
  border: 2px solid var(--black); border-radius: 14px;
  padding: 14px 18px;
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  box-shadow: 0 4px 0 var(--black);
}
.inv-count { font-family: var(--font-display); font-weight: 800; font-size: 22px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.inv-bar { flex: 1; min-width: 140px; height: 12px; border-radius: 999px; background: rgba(241, 235, 223, 0.25); overflow: hidden; }
.inv-bar span { display: block; height: 100%; width: 0; background: var(--cream); border-radius: 999px; transition: width 0.2s ease; }
.inv-progress .mini { background: var(--cream); }
.inv-cat { gap: 0; padding: 0; overflow: hidden; }
.inv-cat summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px clamp(16px, 2.5vw, 24px);
  min-height: 60px;
}
.inv-cat summary::-webkit-details-marker { display: none; }
.inv-cat summary h2 { font-size: 22px; }
.inv-cat summary:focus-visible { outline: 3px solid var(--black); outline-offset: -3px; }
.inv-tally { font-weight: 800; font-size: 14px; letter-spacing: 0.08em; padding: 6px 12px; border-radius: 999px; border: 1.5px solid var(--black); font-variant-numeric: tabular-nums; white-space: nowrap; }
.inv-tally.full { background: var(--green); border-color: var(--green); color: var(--cream); }
.inv-rows { border-top: 2px solid var(--black); }
.inv-row {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 10px clamp(16px, 2.5vw, 24px);
  border-top: 1.5px solid var(--line);
}
.inv-row:first-child { border-top: 0; }
.inv-row.done { background: #E9EFE6; }
.inv-info { min-width: 0; }
.inv-name { font-weight: 700; font-size: 18px; line-height: 1.25; overflow-wrap: anywhere; }
.inv-pack { color: var(--ink-soft); font-size: 14px; }
.inv-pack b { color: var(--amber); font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; font-size: 12px; }
.inv-ctl { display: flex; align-items: center; gap: 6px; flex: none; }
.step {
  width: 50px; height: 50px; flex: none;
  font: inherit; font-size: 26px; font-weight: 700; line-height: 1;
  background: var(--cream); color: var(--black);
  border: 2px solid var(--black); border-radius: 10px; cursor: pointer;
}
.step:active { background: var(--line); }
.step:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }
.inv-ctl input {
  width: 84px; height: 50px;
  font: inherit; font-weight: 800; font-size: 20px; text-align: center; font-variant-numeric: tabular-nums;
  color: var(--black); background: #FFFDF8;
  border: 2px solid var(--black); border-radius: 10px;
  -moz-appearance: textfield; appearance: textfield;
}
.inv-ctl { flex-wrap: wrap; justify-content: flex-end; }
.inv-ctl select {
  height: 50px; width: 118px; padding: 0 10px;
  font: inherit; font-weight: 700; font-size: 16px;
  color: var(--black); background: #FFFDF8;
  border: 2px solid var(--black); border-radius: 10px;
}
.inv-ctl select:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }
.inv-ctl select.invalid { border-color: var(--red); background: #FBEDE8; }
.inv-ctl input::-webkit-outer-spin-button, .inv-ctl input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.inv-ctl input:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }
.inv-ctl input.invalid { border-color: var(--red); background: #FBEDE8; }
.inv-table { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 18px; }
.inv-table > div { padding: 7px 0; border-top: 1.5px solid var(--line); overflow-wrap: anywhere; }
.inv-table .q { font-weight: 800; text-align: right; font-variant-numeric: tabular-nums; }
.inv-table .p { color: var(--ink-soft); font-size: 15px; }
@media (max-width: 520px) {
  .inv-row { flex-direction: column; align-items: stretch; }
  .inv-ctl { justify-content: flex-end; }
  .inv-table { grid-template-columns: minmax(0, 1fr) auto; }
  .inv-table .p { display: none; }
}
.sigimg { display: block; width: 100%; max-width: 340px; background: #FFFDF8; border: 1.5px solid var(--line); border-bottom: 2px solid var(--black); border-radius: 6px; }
.sigrow { display: flex; flex-direction: column; gap: 6px; }
@media (max-width: 640px) {
  .grid2, .opts.cols, .prior { grid-template-columns: 1fr; }
  .prior .label { display: none; }
}

/* ---------- Passcode lock ---------- */
body.locked main { display: none; }
body:not(.locked) .lock { display: none; }
.lock { flex: 1; display: grid; place-items: start center; padding: clamp(24px, 6vw, 56px) 16px 40px; }
.lock-card { width: 100%; max-width: 420px; align-items: center; text-align: center; gap: 16px; }
.lock-card h1 { font-family: var(--font-display); font-stretch: 88%; font-weight: 800; font-size: 32px; text-transform: uppercase; line-height: 1.05; }
.lock-prompt { color: var(--ink-soft); min-height: 2.9em; max-width: 30ch; }
.lock-dots { display: flex; gap: 12px; justify-content: center; min-height: 22px; align-items: center; }
.lock-dots i { width: 18px; height: 18px; border-radius: 50%; background: var(--black); }
.lock-dots:empty::before { content: ""; width: 120px; border-bottom: 2px solid var(--line); }
.keypad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; width: 100%; }
.key {
  font: inherit; font-weight: 800; font-size: 28px; font-variant-numeric: tabular-nums;
  min-height: 72px;
  background: var(--cream); color: var(--black);
  border: 2px solid var(--black); border-radius: 12px; cursor: pointer;
  box-shadow: 0 3px 0 var(--black);
}
.key:active { transform: translateY(3px); box-shadow: none; }
.key.word { font-size: 15px; letter-spacing: 0.1em; text-transform: uppercase; }
.key.go { background: var(--green); color: var(--cream); }
.key:disabled { opacity: 0.5; }
.key:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }
.band-right { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.band-tools { display: flex; gap: 8px; }
.band-btn {
  font: inherit; font-weight: 700; font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase;
  min-height: 40px; padding: 0 14px;
  background: transparent; color: var(--cream);
  border: 1.5px solid rgba(241, 235, 223, 0.6); border-radius: 999px; cursor: pointer;
}
.band-btn:focus-visible { outline: 3px solid var(--cream); outline-offset: 3px; }
.setup-note { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; max-width: none; }
@media (max-width: 640px) { .band-right { align-items: flex-start; } }

/* ---------- Announcements, incident reports, waste log ---------- */
.board { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.ann { gap: 14px; }
.ann-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.ann-list:empty { display: none; }
.ann-item { background: var(--cream); border: 1.5px solid var(--line); border-left: 8px solid var(--green); border-radius: 10px; padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; }
.ann-item h3 { font-size: 21px; font-weight: 800; line-height: 1.2; overflow-wrap: anywhere; }
.ann-body { white-space: pre-wrap; overflow-wrap: anywhere; max-width: 75ch; }
.ann-meta { font-size: 14px; color: var(--ink-soft); overflow-wrap: anywhere; }
.inline-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.inline-row input[type="text"] { flex: 1 1 200px; min-height: 46px; padding: 9px 12px; width: auto; }
.inline-row .mini { min-height: 46px; }
.mini.solid { background: var(--green); color: var(--cream); }
.ann form { display: flex; flex-direction: column; gap: 12px; padding-bottom: 14px; border-bottom: 1.5px solid var(--line); }
.alert-update { background: #DCE6DD; border-radius: 8px; padding: 8px 12px; font-size: 16px; overflow-wrap: anywhere; }
.alert-update b { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--green); display: block; }

/* ---------- Employee Portal ---------- */
body.staff main, body.staff .lock, body.staff .band-tools { display: none !important; }
body:not(.staff) .staff { display: none; }
.staff { flex: 1; width: 100%; max-width: 1180px; margin: 0 auto; padding: clamp(20px, 4vw, 40px) clamp(16px, 4vw, 40px) 40px; display: flex; flex-direction: column; gap: 24px; }
body.staff .brand-title .for-mgr, body:not(.staff) .brand-title .for-staff { display: none; }
.lock { display: flex; flex-direction: column; align-items: center; gap: 22px; }
.staff-door { width: 100%; max-width: 420px; display: flex; flex-direction: column; gap: 8px; align-items: stretch; text-align: center; }
.staff-door .btn { min-height: 76px; font-size: 19px; }
.lock:not(.pad) .lock-card, .lock.pad .staff-door { display: none; }
.lock { padding-top: clamp(32px, 8vw, 80px); }
.staff-door span { color: var(--ink-soft); font-size: 15px; }
.staff .board { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 640px) { .staff .board { grid-template-columns: 1fr; } }
button.tile { font: inherit; text-align: left; cursor: pointer; width: 100%; }
.sview[hidden] { display: none; }
.sview { display: flex; flex-direction: column; gap: 24px; flex: 1; }
button.back { border: 0; font: inherit; font-weight: 700; font-size: 14px; letter-spacing: 0.12em; text-transform: uppercase; cursor: pointer; }
.staff-foot { display: flex; justify-content: flex-end; }
.check-count { font-weight: 800; font-variant-numeric: tabular-nums; }
.posters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.posters img { width: 100%; height: auto; display: block; border: 2px solid var(--black); border-radius: 12px; background: #fff; }
@media (max-width: 560px) { .posters { grid-template-columns: 1fr; } }
.dc-list { display: flex; flex-direction: column; gap: 10px; }
.dc-row { background: var(--cream-raised); border: 2px solid var(--black); border-left-width: 10px; border-radius: 12px; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.dc-row.done { border-left-color: var(--amber); }
.dc-row.verified { border-left-color: var(--green); background: #E9EFE6; }
.dc-head { display: flex; gap: 14px; align-items: center; }
.dc-num { flex: none; width: 38px; height: 38px; border-radius: 50%; background: var(--black); color: var(--cream); display: grid; place-items: center; font-size: 16px; font-variant-numeric: tabular-nums; }
.dc-row.verified .dc-num { background: var(--green); }
.dc-text { font-weight: 700; font-size: 19px; line-height: 1.3; overflow-wrap: anywhere; }
.dc-form { display: flex; flex-direction: column; gap: 14px; padding-top: 12px; border-top: 1.5px solid var(--line); }
.dc-photo:empty { display: none; }
.dc-photo img { display: block; width: 100%; max-width: 420px; height: auto; border: 2px solid var(--black); border-radius: 10px; background: #fff; }
.dy-list { display: flex; flex-direction: column; gap: 8px; }
.dy-row { display: flex; gap: 8px; align-items: stretch; }
.dy-btn {
  flex: 1; min-width: 0; display: flex; align-items: center; gap: 14px; text-align: left;
  font: inherit; color: var(--black); cursor: pointer;
  min-height: 60px; padding: 12px 14px;
  background: var(--cream); border: 2px solid var(--black); border-radius: 10px;
}
.dy-btn:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }
.dy-btn:disabled { opacity: 0.6; }
.dy-box { flex: none; width: 30px; height: 30px; border: 2.5px solid var(--black); border-radius: 7px; background: #FFFDF8; display: grid; place-items: center; }
.dy-text { flex: 1; min-width: 0; font-weight: 600; font-size: 18px; line-height: 1.3; overflow-wrap: anywhere; }
.dy-who { flex: none; max-width: 40%; font-size: 15px; font-weight: 800; color: var(--green); text-align: right; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.dy-row.done .dy-btn { background: #DCE6DD; border-color: var(--green); cursor: default; }
.dy-row.done .dy-box { background: var(--green); border-color: var(--green); }
.dy-row.done .dy-box::after { content: ""; width: 8px; height: 15px; border: solid var(--cream); border-width: 0 3.5px 3.5px 0; transform: rotate(45deg) translate(-1px, -2px); }
.dy-row .mini { align-self: center; }
.dy-missed summary { cursor: pointer; font-weight: 700; min-height: 40px; display: flex; align-items: center; color: var(--green); }
@media (max-width: 560px) { .dy-btn { flex-wrap: wrap; } .dy-who { max-width: none; width: 100%; text-align: left; padding-left: 44px; } }
.policy { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; }
.policy li { display: flex; gap: 14px; align-items: baseline; font-size: 20px; line-height: 1.35; }
.policy li b { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--green); color: var(--cream); display: grid; place-items: center; font-size: 16px; align-self: center; }
.team-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.team-list:empty { display: none; }
.team-item { background: var(--cream); border: 1.5px solid var(--line); border-left: 8px solid var(--dot, var(--slate)); border-radius: 10px; padding: 12px 16px; display: flex; flex-direction: column; gap: 6px; }
.team-item.ok { --dot: var(--green); }
.team-item.warn { --dot: var(--amber); }
.team-item.bad { --dot: var(--red); }
.team-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: center; }
.team-title { font-weight: 800; font-size: 19px; overflow-wrap: anywhere; }
.team h3 { font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--green); }
.portal-link { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
input[type="password"] { font: inherit; color: var(--black); background: #FFFDF8; border: 2px solid var(--black); border-radius: 10px; padding: 13px 14px; min-height: 54px; width: 100%; max-width: 260px; }
input[type="password"]:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }

a:focus-visible { outline: 3px solid var(--black); outline-offset: 4px; }
@media (max-width: 860px) { .alert-layout { grid-template-columns: 1fr; } }
.band a:focus-visible { outline-color: var(--cream); }

@media (max-width: 640px) {
  .board { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .brand-title { border-left: 0; padding-left: 0; }
  .clock { text-align: left; }
}
@media (prefers-reduced-motion: reduce) { .tile { transition: none; } }

/* The Lock button in the green header is red, so it is easy to find when walking away from the tablet. */
#lock-now { background: var(--red); border-color: var(--red); color: #fff; font-weight: 700; }
#lock-now:hover, #lock-now:focus-visible { background: #8A2716; border-color: #8A2716; color: #fff; }

/* When only one store is offered (a manager's own store), it is a small label-sized bar, not a giant square. */
.squares.one { grid-template-columns: minmax(0, 340px); }
.squares.one .type span { aspect-ratio: auto; flex-direction: row; justify-content: flex-start; gap: 12px; padding: 14px 18px; font-size: 14px; }
.squares.one .type svg { width: 26px; max-width: 26px; }

/* No "Open Employee Portal" button on the manager side: managers lock, and staff start from the first screen. */
#staff-enter-2 { display: none; }

/* Warehouse Orders (manager side): this store's orders from the warehouse. Filled in by warehouse.js. */
.wo-bar { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; }
.wo-bar .notice { margin: 0; flex: 1; min-width: 240px; }
.wo-store { font-family: var(--font-display); font-size: 26px; font-weight: 800; margin-top: 10px; }
.wo-meta { color: var(--ink-soft); font-size: 16px; }
.wo-empty { margin-top: 0; }
.wo-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; max-width: 420px; }
.wo-steps span { height: 8px; border-radius: 999px; background: var(--line); }
.wo-steps span.on { background: var(--green); }
.wo-lines { list-style: none; margin: 2px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 4px 22px; font-size: 16px; }
.wo-lines li { display: flex; gap: 10px; align-items: baseline; overflow-wrap: anywhere; }
.wo-lines b { flex: none; min-width: 2.2em; text-align: right; }
.wo-more summary { cursor: pointer; font-weight: 700; font-size: 15px; color: var(--green); padding: 6px 0; }
.wo-more[open] summary { margin-bottom: 4px; }
