:root { color-scheme: dark; }
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: #111; color: #eee; font-family: -apple-system, "Segoe UI", sans-serif; user-select: none; -webkit-user-select: none; }
header { display: flex; align-items: center; gap: 8px; padding: 10px 12px 0; position: relative; }
#status { flex: 1; font-size: 14px; color: #aaa; }
#status.ok { color: #4caf50; } #status.warn { color: #ff9800; } #status.err { color: #f44336; }
#cloud { font-size: 13px; color: #888; white-space: nowrap; }
#cloud.ok { color: #4caf50; } #cloud.warn { color: #ff9800; } #cloud.err { color: #f44336; }
#menuBtn { background: none; border: 0; color: #888; font-size: 20px; padding: 6px 10px; }
#menu { position: absolute; right: 12px; top: 44px; background: #222; border-radius: 10px; overflow: hidden; z-index: 5; box-shadow: 0 4px 16px #000a; }
#menu button { display: block; width: 100%; text-align: left; background: none; border: 0; color: #eee; font-size: 17px; padding: 14px 18px; }
#menu button:active { background: #333; }
main { flex: 1; display: flex; flex-direction: column; padding: 0 12px 12px; }
#live { text-align: center; font-size: 26px; color: #666; margin-top: 4px; }
#big { text-align: center; font-size: 64px; font-weight: 700; line-height: 1.1; min-height: 70px; }
#sub { text-align: center; font-size: 22px; color: #4caf50; min-height: 30px; }
.pick { margin: 24px 0; padding: 28px 16px; font-size: 24px; font-weight: 700; border: 0; border-radius: 14px; background: #1565c0; color: #fff; }
#grid { flex: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 8px; }
.col { background: #1c1c1c; border-radius: 10px; padding: 8px 6px; display: flex; flex-direction: column; align-items: center; }
.col h2 { margin: 0; font-size: 16px; color: #ddd; }
.pallet { font-size: 11px; color: #999; text-align: center; }
.count { font-size: 40px; font-weight: 700; }
.hint { font-size: 10px; color: #777; }
.full { flex: 1; width: 100%; margin-top: 8px; min-height: 110px; border: 0; border-radius: 10px; color: #fff; font-size: 20px; font-weight: 700; }
.full:active { filter: brightness(1.25); }
.save { margin-top: 10px; padding: 16px; font-size: 18px; font-weight: 700; border: 0; border-radius: 12px; background: #333; color: #fff; }
footer { font-size: 11px; color: #555; text-align: center; padding: 6px 12px 10px; }
