* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: #101d1a; color: #eafaf6; font-family: system-ui, -apple-system, sans-serif; }
main { display: grid; gap: 10px; padding: 12px; max-width: 640px; margin: auto; min-height: 100vh; align-content: start; position: relative; }
header { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
h1 { margin: 0; font-size: 22px; letter-spacing: -.02em; }
header p { margin: 3px 0 0; color: #9ed2c5; font-size: 13px; line-height: 1.4; }
.clock { text-align: end; display: grid; }
.clock b { font-size: 24px; font-variant-numeric: tabular-nums; }
.clock span { font-size: 11px; color: #ffd27a; font-weight: 700; min-height: 14px; }
canvas { width: 100%; height: 150px; border-radius: 16px; background: #0b1513; border: 1px solid #25423b; display: block; }
.counters { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.counter { background: #172b27; border: 1px solid #2c4d45; border-radius: 14px; padding: 10px; display: grid; gap: 7px; text-align: center; }
.counter h2 { margin: 0; font-size: 13px; color: #9ed2c5; }
.counter .staff { font-size: 22px; letter-spacing: 3px; min-height: 28px; }
.counter .busy { height: 6px; border-radius: 6px; background: #0b1513; overflow: hidden; }
.counter .busy i { display: block; height: 100%; width: 0; background: #2fe0b0; transition: width .2s; }
.counter .pm { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
button { font: 700 15px system-ui, sans-serif; color: inherit; border: 1px solid #3a6358; background: #1d3a33; border-radius: 10px; min-height: 44px; cursor: pointer; padding: 0 12px; }
button:disabled { opacity: .35; cursor: default; }
button[aria-pressed=true] { background: #f3a847; color: #2a1900; border-color: #ffd27a; }
.primary { background: #2fe0b0; color: #04251d; border: 0; min-height: 52px; font-size: 16px; }
.row { display: flex; gap: 10px; align-items: center; justify-content: space-between; font-size: 13px; color: #9ed2c5; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.stats div { background: #172b27; border-radius: 12px; padding: 10px; display: grid; text-align: center; }
.stats b { font-size: 22px; font-variant-numeric: tabular-nums; }
.stats small { color: #9ed2c5; font-size: 11px; }
.result { position: absolute; inset: 12px; z-index: 2; background: #0e1a17f5; border: 1px solid #2fe0b0; border-radius: 18px; padding: 20px; display: grid; align-content: center; gap: 10px; text-align: center; }
.result[hidden] { display: none; }
.result .grade { font-size: 72px; font-weight: 900; line-height: 1; color: #2fe0b0; }
.result p { margin: 0; color: #c1e7dd; line-height: 1.45; }
:focus-visible { outline: 2px solid #ffd27a; outline-offset: 3px; }
