/* Kitchen board. Page-only styles, Day Dot look. Wall mode is 1500px wide and 900px high or more: no scrolling.
   Below that (a tablet) the board scrolls and the temperature sheet slides over it. */
:root{--dock:84px}
html,body{height:100%}
body.kb{margin:0;background:#0e0e0e;color:#fff;overflow:hidden}
.k-wall{display:grid;grid-template-columns:minmax(0,1fr);height:100vh;height:100dvh}
.k-wall.has-sheet{grid-template-columns:minmax(0,1fr) 480px}

/* ---------- the board ---------- */
.k-board{display:flex;flex-direction:column;min-width:0;min-height:0;padding:0 24px;background:#0e0e0e;color:#fff}
.k-head{display:flex;align-items:center;justify-content:space-between;gap:24px;height:104px;flex:none}
.k-clock{display:flex;align-items:center;gap:18px;flex:none}
.k-clock b{font:800 96px/.8 var(--f-label);letter-spacing:.01em;font-variant-numeric:tabular-nums;padding-top:8px}
.k-clock span{font:600 28px/1.1 var(--f-label);text-transform:uppercase;letter-spacing:.03em;color:#c4c4c4}
.k-clock span i{display:block;font-style:normal;font-weight:800;font-size:34px;color:#fff}
.k-van{height:66px;font-size:38px;border-radius:6px;flex:none}
.k-van>*{padding:0 18px;gap:14px}
.k-van .i{font-size:36px}
.k-prog{display:flex;flex-direction:column;align-items:flex-end;gap:10px;min-width:0}
.k-prog p{font:700 38px/1 var(--f-label);text-transform:uppercase;letter-spacing:.02em;white-space:nowrap}
.k-dots{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:5px;max-width:520px}
.k-dots .dot{width:22px;height:22px;border-width:2px}

/* ---------- bands ---------- */
.k-bands{flex:1;min-height:0;display:flex;flex-direction:column;gap:8px}
.k-band{flex:1 1 0;min-height:0;display:grid;grid-template-columns:168px minmax(0,1fr);gap:14px;align-items:stretch}
.k-band.is-one{flex:0 1 auto}
.k-st{display:flex;flex-direction:column;justify-content:center;align-items:flex-start;gap:6px;min-height:56px;padding:0 8px 0 0;border:0;background:transparent;color:#fff;text-align:left}
.k-stn{font:800 48px/1 var(--f-label);text-transform:uppercase;letter-spacing:.02em}
.k-stc{font:600 26px/1.05 var(--f-label);text-transform:uppercase;letter-spacing:.03em;color:#c4c4c4}
.k-st:hover .k-stn{text-decoration:underline;text-underline-offset:6px}
.k-main{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px 14px;min-height:0;grid-template-rows:minmax(0,1fr)}
.k-band.is-one .k-main{grid-template-rows:minmax(0,420px)}

/* ---------- a card that still needs doing ---------- */
.k-card{display:flex;flex-direction:column;justify-content:space-between;gap:10px;min-height:0;min-width:0;padding:12px 16px;text-align:left;background:#1c1c1c;color:#fff;border:3px solid #3a3a3a;border-radius:8px;font:inherit}
.k-card:hover{background:#242424}
.k-card:active{background:#2c2c2c}
.k-card.is-todo{border-style:dashed;border-color:#8a8a8a}
.k-card.is-live{border-color:var(--butter)}
.k-top{display:flex;align-items:flex-start;gap:18px;min-height:0;min-width:0}
.k-q{flex:none;font:800 var(--qd,128px)/.72 var(--f-label);letter-spacing:.005em;font-variant-numeric:tabular-nums;padding-top:6px}
.k-nmb{display:flex;flex-direction:column;gap:8px;min-width:0;padding-top:2px}
.k-nm{font:700 var(--nd,36px)/1.02 var(--f-label);text-transform:uppercase;letter-spacing:.02em;overflow-wrap:anywhere}
.k-card .strip{height:46px;font-size:27px;border-radius:5px}
.k-card .strip>*{padding:0 14px;gap:12px}
.k-card .strip.sub{height:auto;min-height:36px;font-size:23px;align-self:flex-start;max-width:100%;flex-wrap:wrap;white-space:normal}
.k-card .strip.sub>*{white-space:normal;min-height:34px;line-height:1.05}
.k-board .strip .dot{width:26px;height:26px;border-width:2px}
.k-board .strip .dot .i{stroke-width:3.4}
.k-card .strip--wide{margin-top:auto}
.k-card .strip--wide>.grow{overflow:hidden;text-overflow:ellipsis}

/* ---------- what is done: a small strip ---------- */
.k-dones{display:flex;flex-wrap:wrap;gap:8px;align-content:center;min-width:0}
.k-dn{display:inline-flex;align-items:center;gap:10px;min-height:44px;padding:0 14px 0 8px;background:#161616;border:2px solid #333;border-radius:6px;color:#d6d6d6;font:600 26px/1 var(--f-label);text-transform:uppercase;letter-spacing:.02em;white-space:nowrap;max-width:100%}
/* the Pack band holds up to ten crates and boxes: smaller chips keep them on one row so the pack cards keep their height */
.k-band[aria-label="Pack"] .k-dn{font-size:21px;min-height:40px;padding:0 10px 0 6px;gap:8px}
.k-band[aria-label="Pack"] .k-dn .dot{width:22px;height:22px}
.k-dn b{font:800 30px/1 var(--f-label);font-variant-numeric:tabular-nums;color:#fff}
.k-dn .dot{width:26px;height:26px;border-width:2px}
.k-dn span{overflow:hidden;text-overflow:ellipsis}
.k-alldone{display:flex;align-items:center;gap:14px;font:800 40px/1 var(--f-label);text-transform:uppercase;letter-spacing:.02em;color:#e8e8e8;min-height:56px}
.k-alldone .dot{width:36px;height:36px;border-width:3px}

/* ---------- footer: legend, notes, station buttons ---------- */
.k-foot{display:flex;align-items:center;gap:28px;height:80px;flex:none}
.k-legend{display:flex;align-items:center;gap:30px;font:600 24px/1 var(--f-label);text-transform:uppercase;letter-spacing:.03em;color:#d0d0d0;white-space:nowrap}
.k-legend span{display:inline-flex;align-items:center;gap:10px}
.k-legend .dot{width:24px;height:24px;border-width:2px}
.k-foot [data-act-notes]{background:#1c1c1c;color:#e8e8e8;border-color:#6c6c6c;min-height:56px}
.k-foot [data-act-notes]:hover{background:#262626}
.k-show{margin-left:auto;display:flex;align-items:center;gap:10px}
.k-show>span{font:600 24px/1 var(--f-label);text-transform:uppercase;letter-spacing:.03em;color:#c4c4c4;margin-right:4px}
.k-sb{min-height:64px;min-width:64px;padding:0 22px;border:2px solid #8a8a8a;border-radius:8px;background:#1c1c1c;color:#fff;font:800 30px/1 var(--f-label);text-transform:uppercase;letter-spacing:.03em}
.k-sb:hover{background:#2a2a2a}
.k-sb[aria-pressed="true"]{background:var(--butter);color:var(--ink);border-color:var(--butter)}

/* a single station is read from further away: bigger digits and names */
.k-wall.is-one{--qd:176px;--nd:52px}
.k-wall.is-one .k-card .strip{height:56px;font-size:32px}
.k-wall.is-one .k-card .strip.sub{height:44px;font-size:28px}
.k-wall.is-one .k-stn{font-size:64px}

/* while the sheet is open the board is 480px narrower: the same cards, a little more compact, digits still large */
.k-wall.has-sheet{--qd:112px;--nd:30px}
.k-wall.is-one.has-sheet{--qd:148px;--nd:36px}
.k-wall.has-sheet .k-clock b{font-size:84px}
.k-wall.has-sheet .k-van{height:56px;font-size:30px}
.k-wall.has-sheet .k-van .i{font-size:30px}
.k-wall.has-sheet .k-van>*{padding:0 14px;gap:10px}
.k-wall.has-sheet .k-prog p{font-size:32px}
.k-wall.has-sheet .k-card .strip{height:40px;font-size:22px}
.k-wall.has-sheet .k-card .strip.sub{display:none}
.k-wall.has-sheet .k-dn{min-height:38px;font-size:22px}
.k-wall.has-sheet .k-dn b{font-size:24px}
.k-wall.has-sheet .k-dn .dot{width:22px;height:22px}
.k-card.is-active{border-width:5px;padding:10px 14px;background:#262626}

/* ---------- the docked temperature sheet ---------- */
.k-sheet{background:var(--white);color:var(--ink);padding:24px 28px 22px;display:flex;flex-direction:column;gap:14px;min-height:0;overflow:auto}
.k-sheet[hidden]{display:none}
.k-sh-top{display:flex;align-items:center;justify-content:space-between;gap:12px}
.k-sh-top .strip{height:34px;font-size:20px}
.k-x{display:grid;place-items:center;width:56px;height:56px;flex:none;border:2px solid var(--ink);border-radius:50%;background:var(--white);font-size:26px}
.k-x:hover{background:var(--mist)}
.k-sheet h2{font:800 34px/1.02 var(--f-label);text-transform:uppercase;letter-spacing:.02em}
.k-reading{display:flex;align-items:baseline;gap:6px;border-top:1px solid var(--line-2);border-bottom:1px solid var(--line-2);padding:10px 0 8px;min-height:160px}
.k-reading output{font:800 168px/.78 var(--f-label);font-variant-numeric:tabular-nums;letter-spacing:.005em;padding-top:28px;padding-bottom:8px}
.k-reading output.is-empty{color:var(--ink-3)}
.k-reading span{font:700 80px/1 var(--f-label)}
.k-tgt{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px 12px;font:600 24px/1.1 var(--f-ui)}
.k-sheet .k-verdict{height:46px;font-size:26px;border-color:var(--ink-3);background:var(--mist);color:var(--ink)}
.k-sheet .k-verdict.pass{border-color:var(--done-t);background:#e7f5ea;color:var(--done-t)}
.k-sheet .k-verdict.bad{border-color:var(--late-t);background:#fbe9e7;color:var(--late-t)}
.k-sheet .k-verdict .dot{width:26px;height:26px;border-color:currentColor}
.k-keys{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}
.k-sheet h2 small{display:block;margin-top:4px;font:700 24px/1.1 var(--f-label);letter-spacing:.03em;color:var(--ink-2)}
.k-covers{font:500 20px/1.25 var(--f-ui);color:var(--ink-2)}
.k-keys button{height:80px;border:1px solid var(--ink);border-radius:8px;background:var(--mist);font:700 52px/1 var(--f-label);display:grid;place-items:center}
.k-keys button:active{background:var(--butter)}
.k-keys button .i{font-size:40px}
.k-log{height:92px;font-size:38px;border-radius:8px;border-width:2px;width:100%}
.k-log[disabled]{opacity:.45}
.k-who{font:500 22px/1.2 var(--f-ui);color:var(--ink-2);text-align:center}
.k-who b{color:var(--ink);font-weight:700}
.k-acts{display:flex;flex-direction:column;gap:10px}
.k-acts button{min-height:92px;padding:10px 18px;border:2px solid var(--ink);border-radius:8px;background:var(--mist);font:700 30px/1.08 var(--f-label);text-transform:uppercase;letter-spacing:.02em;text-align:left}
.k-acts button:active,.k-acts button:hover{background:var(--butter)}
.k-acts-h{font:600 22px/1.3 var(--f-ui);color:var(--ink-2)}
.k-back{min-height:64px;width:100%;font-size:22px}

/* ---------- a tablet: scroll, sheet slides over ---------- */
@media (max-width:1499px),(max-height:899px){
  body.kb{overflow:auto}
  .k-wall,.k-wall.has-sheet{display:block;height:auto;min-height:100dvh}
  .k-board{padding:0 16px;min-height:100dvh}
  .k-head{height:auto;flex-wrap:wrap;gap:12px 20px;padding:14px 0}
  .k-clock b{font-size:72px}
  .k-clock span{font-size:24px}
  .k-clock span i{font-size:28px}
  .k-van{height:56px;font-size:30px}
  .k-van>*{padding:0 12px;gap:10px}
  .k-prog{margin-left:auto}
  .k-prog p{font-size:30px}
  .k-bands{flex:none;gap:16px}
  .k-band{flex:none;grid-template-columns:minmax(0,1fr);gap:8px}
  .k-st{flex-direction:row;align-items:baseline;justify-content:flex-start;gap:14px;min-height:56px}
  .k-stn{font-size:40px}
  .k-stc{font-size:24px}
  .k-main{grid-template-columns:repeat(auto-fill,minmax(330px,1fr));grid-template-rows:none!important;grid-auto-rows:auto}
  .k-main>.k-dones{grid-column:1/-1!important;grid-row:auto!important}
  .k-card{min-height:190px}
  .k-card .strip{height:40px;font-size:22px}
  .k-card .strip.sub{height:auto;min-height:36px}
  .k-card .strip>*{padding:0 10px;gap:8px}
  .k-wall,.k-wall.has-sheet{--qd:112px;--nd:32px}
  .k-wall.is-one,.k-wall.is-one.has-sheet{--qd:148px;--nd:40px}
  .k-foot{height:auto;flex-wrap:wrap;gap:14px 20px;padding:14px 0 18px}
  .k-legend{gap:8px 20px;font-size:22px;flex-wrap:wrap}
  .k-show{margin-left:0;flex-wrap:wrap}
  .k-sheet{position:fixed;right:0;top:0;bottom:0;width:min(480px,100vw);z-index:150;border-left:4px solid var(--ink);overflow:auto}
  .k-sheet[hidden]{display:none}
}
@media (max-width:640px){
  .k-clock b{font-size:56px}
  .k-van{font-size:24px;height:48px}
  .k-main{grid-template-columns:minmax(0,1fr)}
  .k-sheet{border-left:0}
}

@media (prefers-reduced-motion:reduce){.k-card{transition:none}}
