/* Cold Storage = blue theme, deliberately different from the Orders pages. */
:root {
  --bg: #e8f2fa; --card: #ffffff; --ink: #10222f; --muted: #4d6170; --line: #bcd3e4;
  --primary: #0b4f7a; --primary-ink: #fff; --ok: #146b34; --ok-bg: #d8f1df;
  --warn: #7a4a00; --warn-bg: #ffe9b8; --bad: #9e1c14; --bad-bg: #fbdad6; --skip-bg: #e3e3ea;
  --radius: 14px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 18px/1.4 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; overflow-x: hidden; }
#app { min-height: 100vh; display: flex; flex-direction: column; }
.loading { padding: 32px 16px; color: var(--muted); }
.hidden { display: none !important; }
.practice { background: #ffd84d; color: #3d2f00; font-weight: 700; font-size: 14px; text-align: center; padding: 6px 10px; }
header.top { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 14px;
  background: var(--primary); color: #fff; position: sticky; top: 0; z-index: 5; }
.brandbtn { all: unset; cursor: pointer; }
.brand { font-weight: 800; font-size: 22px; letter-spacing: .5px; }
.who .link { all: unset; cursor: pointer; font-size: 15px; background: rgba(255,255,255,.15); padding: 6px 10px; border-radius: 10px; }
main { flex: 1; padding: 12px 14px 40px; width: 100%; max-width: 640px; margin: 0 auto; }
h1 { font-size: 26px; margin: 6px 0 10px; }
h2 { font-size: 19px; margin: 16px 0 8px; }
p { margin: 6px 0; }
.muted { color: var(--muted); }
.small { font-size: 15px; }
.center { text-align: center; }
.en { display: block; }
.bm { display: block; font-size: .8em; font-weight: 500; opacity: .85; }
button { font: inherit; font-weight: 600; min-height: 56px; padding: 10px 16px; border-radius: var(--radius);
  border: 2px solid var(--primary); background: #fff; color: var(--primary); cursor: pointer; touch-action: manipulation; }
button.primary { background: var(--primary); color: #fff; }
button.big { width: 100%; min-height: 66px; font-size: 20px; margin: 8px 0; display: block; }
button.ghost { border-style: dashed; background: transparent; }
button.danger { border-color: var(--bad); color: var(--bad); width: 100%; margin-top: 10px; }
button:disabled { opacity: .4; cursor: not-allowed; }
button.back { min-height: 44px; border: none; background: none; padding: 4px 0; font-size: 17px; }
.stack { display: flex; flex-direction: column; }
.banner { padding: 10px 14px; font-weight: 600; font-size: 15px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.banner.off { background: #3a3a3a; color: #fff; }
.banner.pend { background: var(--warn-bg); color: var(--warn); }
.banner.pend button { min-height: 48px; font-size: 16px; }
.banner.err { background: var(--bad); color: #fff; }

.guidelink { display: block; text-align: right; font-size: 15px; font-weight: 600; color: var(--primary); margin: 0 0 6px; }
.rounds { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 4px 0 10px; }
.round { min-height: 52px; padding: 6px; font-size: 16px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.round.sel { background: var(--primary); color: #fff; }
.round small { font-size: 12px; font-weight: 700; }
.progress { position: relative; height: 44px; border-radius: 12px; background: #fff; border: 2px solid var(--line); overflow: hidden;
  display: flex; align-items: center; justify-content: center; font-weight: 700; }
.progress .bar { position: absolute; left: 0; top: 0; bottom: 0; background: #b9dcf3; }
.progress.full .bar { background: #9fdcb1; }
.progress span { position: relative; font-size: 16px; }
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 8px; }
.dev { min-height: 92px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; text-align: left;
  border-width: 2px; border-color: var(--line); color: var(--ink); background: #fff; }
.dev .id { font-size: 26px; font-weight: 800; }
.dev .st { font-size: 16px; font-weight: 600; }
.dev.ok { background: var(--ok-bg); border-color: #7ccb93; }
.dev.warm { background: var(--warn-bg); border-color: #e0b550; }
.dev.skip { background: var(--skip-bg); border-color: #b5b5c4; }
.dev.bad { background: var(--bad-bg); border-color: #e48a82; }
.dev.pending { border-style: dashed; border-color: var(--warn); }

.devtitle { font-size: 40px; margin: 0; }
.devtitle small { font-size: 18px; color: var(--muted); font-weight: 600; }
.tempdisp { font-size: 54px; font-weight: 800; text-align: center; background: #fff; border: 3px solid var(--primary); border-radius: var(--radius);
  padding: 6px; margin: 10px 0; font-variant-numeric: tabular-nums; }
.tempdisp.pos { border-color: var(--bad); color: var(--bad); }
.keypad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.keypad button { min-height: 64px; font-size: 28px; }
.keypad .sign { font-size: 20px; }
.keypad .del { grid-column: 1 / -1; min-height: 52px; font-size: 18px; }
.photo { margin: 12px 0 4px; text-align: center; }
.photo.working { opacity: .5; }
.thumb { max-width: 100%; max-height: 260px; border-radius: 12px; border: 2px solid var(--line); display: block; margin: 8px auto; }
.card { background: #fff; border: 2px solid var(--line); border-radius: var(--radius); padding: 12px 14px; margin: 10px 0; }
.reading { font-size: 46px; font-weight: 800; text-align: center; }
.reading.small { font-size: 26px; }
.struck { text-decoration: line-through; color: var(--muted); }
.reason { text-align: left; }
.reason.sel { background: var(--primary); color: #fff; }
.notebox textarea { width: 100%; font: inherit; padding: 10px; border-radius: 12px; border: 2px solid var(--line); }
.warnhead { background: var(--warn-bg); border-radius: var(--radius); padding: 10px 14px; margin: 6px 0; }
.warnhead.alert { background: var(--bad-bg); color: var(--bad); }
.sticky { border-radius: var(--radius); padding: 14px; margin: 10px 0; background: var(--skip-bg); }
.sticky.breakdown { background: var(--bad-bg); }
.sticky .big { font-size: 24px; font-weight: 800; }
.msgs { margin-top: 18px; }
.msg { background: #fff; border-left: 6px solid #3a8fd0; border-radius: 10px; padding: 8px 12px; margin: 8px 0; }
.msg.to-boss { border-left-color: var(--bad); }
.msg .to { font-size: 13px; color: var(--muted); font-weight: 700; }
.msg pre { margin: 4px 0 0; white-space: pre-wrap; font: 15px/1.35 system-ui, sans-serif; }
.msghint { margin-top: 16px; }
.tools { margin-top: 20px; background: #fff; border-radius: 12px; padding: 8px 12px; }
.tools summary { font-weight: 700; padding: 6px 0; cursor: pointer; }
.check { display: flex; gap: 10px; align-items: center; font-size: 16px; padding: 8px 0; }
.check input { width: 26px; height: 26px; }
.toast { position: fixed; left: 12px; right: 12px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 20; background: #10222f; color: #fff;
  padding: 14px 16px; border-radius: 14px; font-weight: 600; box-shadow: 0 6px 20px rgba(0,0,0,.3); }
.toast.alert { background: var(--bad); font-size: 19px; padding: 18px 16px; }
