@font-face{font-family:'Roboto';font-style:normal;font-weight:400;font-display:swap;src:url(/static/fonts/roboto-latin-ext-400-normal.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'Roboto';font-style:normal;font-weight:400;font-display:swap;src:url(/static/fonts/roboto-latin-400-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Roboto';font-style:normal;font-weight:500;font-display:swap;src:url(/static/fonts/roboto-latin-ext-500-normal.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'Roboto';font-style:normal;font-weight:500;font-display:swap;src:url(/static/fonts/roboto-latin-500-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Roboto';font-style:normal;font-weight:700;font-display:swap;src:url(/static/fonts/roboto-latin-ext-700-normal.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'Roboto';font-style:normal;font-weight:700;font-display:swap;src:url(/static/fonts/roboto-latin-700-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
/* Kiosk (tablet, landscape first) in the WMS look: light grey ground, white cards, blue primary, big touch targets. */
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
:root {
  --pri: #2450C8; --pri-h: #1A3C9C; --tint: #EAF0FD; --tint-fg: #1E46B4;
  --ink: #14212B; --ink2: #3B4A58; --muted: #5B6B7A; --faint: #8796A5;
  --line: #E1E6EE; --line2: #C9D2DE; --bg: #F5F7FB; --card: #FFFFFF;
  --red: #B42318; --green: #1F8A4C; --green-d: #067647; --green-bg: #DCFAE6; --amber: #B54708; --amber-bg: #FEF0C7;
  --f: "Roboto", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}
html, body { margin: 0; height: 100%; }
body { background: var(--bg); color: var(--ink); font-family: var(--f); user-select: none; -webkit-user-select: none; overflow: hidden; display: flex; flex-direction: column; -webkit-font-smoothing: antialiased; }
button { font: inherit; cursor: pointer; }

/* top bar */
.k-top { flex: 0 0 76px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 24px; background: var(--card); border-bottom: 1px solid var(--line); }
.k-loc { display: flex; align-items: center; gap: 12px; }
.k-loc b { display: block; font-size: 20px; }
.k-loc > div > span { display: block; font-size: 13px; color: var(--muted); }
.k-loc .lt-lock { --h: 46px; }
.k-sep { border-left: 1px solid var(--line, #E3E8EF); padding-left: 14px; margin-left: 4px; }
.k-time { text-align: center; }
.k-clock { font-size: 34px; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.k-date { font-size: 13px; color: var(--muted); margin-top: 4px; }
.k-tr { display: flex; justify-content: flex-end; align-items: center; gap: 12px; }
.k-net { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 16px; font-size: 13px; font-weight: 500; }
.k-net.on { background: var(--green-bg); color: var(--green-d); } .k-net.off { background: var(--amber-bg); color: var(--amber); }
.k-lang { height: 40px; min-width: 48px; padding: 0 12px; border: 1px solid var(--line2); border-radius: 10px; background: var(--card); color: var(--ink); font-weight: 700; font-size: 14px; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; }

/* main: camera left, content right */
.k-main { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 24px; padding: 24px; }
.k-left, .k-right { min-height: 0; display: flex; flex-direction: column; }
.k-left { justify-content: center; }
.k-right { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 28px; overflow-y: auto; }
.cam-box { position: relative; width: 100%; max-height: 100%; aspect-ratio: 4 / 3; border-radius: 16px; overflow: hidden; background: #1E2630; box-shadow: 0 12px 32px rgba(20, 33, 43, .12); }
.cam-box video { width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); display: block; }
.cam-frame { position: absolute; inset: 20%; pointer-events: none; }
.cam-frame i { position: absolute; width: 44px; height: 44px; border: 5px solid #fff; opacity: .9; }
.cam-frame i:nth-child(1) { top: 0; left: 0; border-right: 0; border-bottom: 0; border-radius: 12px 0 0 0; }
.cam-frame i:nth-child(2) { top: 0; right: 0; border-left: 0; border-bottom: 0; border-radius: 0 12px 0 0; }
.cam-frame i:nth-child(3) { bottom: 0; left: 0; border-right: 0; border-top: 0; border-radius: 0 0 0 12px; }
.cam-frame i:nth-child(4) { bottom: 0; right: 0; border-left: 0; border-top: 0; border-radius: 0 0 12px 0; }
.cam-off { position: absolute; inset: 0; display: flex; flex-direction: column; gap: 10px; align-items: center; justify-content: center; color: #9AA7B5; font-size: 16px; background: #1E2630; }
.screen { display: flex; flex-direction: column; flex: 1; }
#scan { position: absolute; left: -9999px; opacity: 0; }
.k-lab { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }

/* idle */
#idle { justify-content: center; align-items: flex-start; }
.k-ic { width: 72px; height: 72px; border-radius: 18px; background: var(--tint); color: var(--tint-fg); display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.k-title { font-size: 34px; line-height: 1.15; margin: 0; font-weight: 700; letter-spacing: -.01em; }
.k-demo { margin-top: 32px; width: 100%; }
.k-demo-g { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; }
.k-demo-b { height: 48px; padding: 0 12px; border: 1px dashed var(--line2); border-radius: 10px; background: var(--bg); color: var(--ink); font-size: 15px; font-weight: 500; text-align: left; }
.k-demo-b:hover { border-color: var(--pri); color: var(--pri); }

/* person */
.k-person { margin-bottom: 22px; }
#who h1 { font-size: 34px; line-height: 1.15; margin: 0 0 10px; font-weight: 700; }
.k-pl { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.k-stat { display: inline-flex; align-items: center; height: 32px; padding: 0 12px; border-radius: 8px; font-size: 15px; font-weight: 700; background: #F1F4F8; color: var(--ink2); }
.k-stat.s-work { background: var(--green-bg); color: var(--green-d); }
.k-stat.s-break, .k-stat.s-private { background: var(--amber-bg); color: var(--amber); }
.k-sched { font-size: 15px; color: var(--muted); }
.k-sched:empty { display: none; }

/* actions */
.act { height: 72px; border: 0; border-radius: 12px; color: #fff; font-size: 21px; font-weight: 700; padding: 0 16px; }
.act:active { filter: brightness(.9); }
.act:disabled { opacity: .55; }
.a-work, .a-break_end, .a-private_end { background: var(--green); } .a-break { background: var(--amber); } .a-private { background: var(--pri); } .a-stop { background: var(--red); }
.sug { margin-bottom: 18px; }
.sug-b { width: 100%; height: 96px; font-size: 28px; }
.acts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 18px; }

/* numbers */
.k-info { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.k-info:empty { display: none; }
.k-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 12px 16px; font-size: 16px; color: var(--ink2); background: var(--card); }
.k-row + .k-row { border-top: 1px solid var(--line); }
.k-row b { color: var(--ink); font-size: 18px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.k-row.warn { background: #FFFAEB; } .k-row.warn, .k-row.warn b { color: var(--amber); }

/* countdown + secondary buttons */
.cd { margin-top: 18px; font-size: 15px; color: var(--ink2); font-weight: 500; }
.cd-bar { height: 8px; background: var(--tint); border-radius: 4px; overflow: hidden; margin-top: 8px; }
.cd-bar i { display: block; height: 100%; background: var(--pri); width: 100%; border-radius: 4px; }
.k-btns { display: flex; gap: 12px; margin-top: auto; padding-top: 20px; }
.k-cancel { flex: 1; height: 56px; border-radius: 12px; border: 1.5px solid var(--line2); background: var(--card); color: var(--ink); font-size: 18px; font-weight: 500; }
#change { border-color: var(--pri); color: var(--pri); font-weight: 700; }

/* full-screen confirmation and error (as in WMS) */
.k-done, .k-err { position: fixed; inset: 0; z-index: 20; display: flex; align-items: center; justify-content: center; color: #fff; padding: 32px; animation: kin .18s ease-out; }
.k-done { background: var(--green); }
.k-err { background: var(--red); }
.k-done-in, .k-err-in { width: min(640px, 100%); display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; }
.k-ok, .k-err-ic { width: 88px; height: 88px; border-radius: 44px; background: rgba(255, 255, 255, .2); display: flex; align-items: center; justify-content: center; font-size: 48px; font-weight: 700; }
.k-done h1 { font-size: 40px; margin: 6px 0 0; line-height: 1.1; }
.k-done-t { font-size: 22px; margin: 0; font-weight: 500; opacity: .95; }
#errText { font-size: 30px; font-weight: 700; line-height: 1.2; }
.k-done .k-info { width: 100%; margin-top: 10px; border: 0; background: rgba(0, 0, 0, .16); }
.k-done .k-row { background: transparent; color: rgba(255, 255, 255, .9); }
.k-done .k-row + .k-row { border-top-color: rgba(255, 255, 255, .18); }
.k-done .k-row b, .k-done .k-row.warn, .k-done .k-row.warn b { color: #fff; }
.k-done .k-row.warn { background: rgba(0, 0, 0, .12); }
@keyframes kin { from { opacity: 0; } to { opacity: 1; } }
.k-flash { position: fixed; inset: 0; background: #fff; opacity: .7; pointer-events: none; z-index: 30; }

/* portrait tablets and phones: stack */
@media (max-width: 900px), (orientation: portrait) {
  body { overflow: auto; }
  .k-top { flex-basis: 64px; padding: 0 14px; }
  .k-loc > div > span, .k-date { display: none; }
  .k-main { align-content: start; } .k-left { justify-content: flex-start; } #idle { justify-content: flex-start; }
  .k-clock { font-size: 28px; }
  .k-main { grid-template-columns: 1fr; gap: 14px; padding: 14px; }
  .cam-box { max-width: 520px; margin: 0 auto; }
  body.who .cam-box { max-width: 280px; }
  .k-right { padding: 20px; }
  .k-title, #who h1 { font-size: 28px; }
}
@media (prefers-reduced-motion: reduce) { .k-done, .k-err { animation: none; } }

/* LogicTime lockup (logo C1): mark + LOGIC over "time" */
.lt-lock { --h: 40px; display: inline-flex; align-items: center; gap: calc(var(--h) * .2); line-height: 1; }
.lt-lock .lt-mark { width: var(--h); height: var(--h); display: block; flex: 0 0 auto; }
.lt-st { display: flex; flex-direction: column; align-items: flex-start; }
.lt-logic { height: calc(var(--h) * .5); width: auto; display: block; }
.lt-t { font-family: var(--f); font-weight: 500; color: #5DC1CD; font-size: calc(var(--h) * .46); line-height: .78; letter-spacing: -.01em; margin-top: calc(var(--h) * .1); }
/* start the kiosk with a one-time code */
.k-act-body { overflow: auto; align-items: center; justify-content: center; min-height: 100vh; user-select: text; -webkit-user-select: text; }
.k-act { width: min(460px, 92vw); background: #fff; border-radius: 20px; padding: 32px 28px; text-align: center; box-shadow: 0 10px 40px rgba(28, 26, 59, .08); }
.k-act-logo { font-size: 26px; margin-bottom: 18px; }
.k-act h1 { font-size: 22px; margin: 0 0 6px; }
.k-act-loc { font-weight: 700; color: var(--pri); margin: 0 0 14px; }
.k-act-hint { color: var(--muted); font-size: 14px; line-height: 1.45; margin: 0 0 16px; }
.k-act-err { background: #FEE4E2; color: var(--red); border-radius: 10px; padding: 10px 12px; margin-bottom: 14px; font-weight: 600; }
.k-act-form { display: flex; flex-direction: column; gap: 12px; margin-bottom: 12px; }
.k-act-form input { height: 60px; font-size: 22px; text-align: center; letter-spacing: .1em; text-transform: uppercase; border: 1px solid #D0D5DD; border-radius: 12px; font-family: inherit; }
.k-act-form button { height: 56px; border: 0; border-radius: 12px; background: var(--pri); color: #fff; font-size: 18px; font-weight: 700; font-family: inherit; cursor: pointer; }
.k-act a { color: var(--pri); text-decoration: none; }

/* idle: the camera takes the whole screen, hint on the image; the side panel only shows demo test cards */
.cam-hint { display: none; }
body.idle .k-main { display: flex; flex-direction: column; gap: 14px; }
body.idle .k-left { flex: 1; min-height: 0; justify-content: stretch; }
body.idle .cam-box { flex: 1; width: 100%; max-width: none; max-height: none; height: auto; aspect-ratio: auto; margin: 0; }
body.idle .k-right { display: none; }
body.idle.has-demo .k-right { display: flex; flex: 0 0 auto; padding: 16px 20px; }
body.idle #idle .k-ic, body.idle #idle .k-title { display: none; }
body.idle .k-demo { margin-top: 0; }
body.idle .cam-hint { display: flex; flex-direction: column; align-items: center; gap: 6px; position: absolute; left: 0; right: 0; bottom: 0; padding: 60px 24px 28px; text-align: center; color: #fff; background: linear-gradient(to top, rgba(10, 16, 24, .78), rgba(10, 16, 24, 0)); pointer-events: none; }
.cam-hint b { font-size: 34px; line-height: 1.15; font-weight: 700; letter-spacing: -.01em; }
.cam-hint span { font-size: 17px; opacity: .9; }
/* scan target: a square in the middle, whatever the screen shape */
.cam-frame { inset: auto; left: 50%; top: 46%; width: min(56%, 46vh); aspect-ratio: 1; transform: translate(-50%, -50%); }
body.who .cam-frame { display: none; }
/* portrait: after the scan the camera shrinks to a band on top, the person panel takes the rest */
@media (max-width: 900px), (orientation: portrait) {
  body.idle .k-main { padding: 0; gap: 0; }
  body.idle .cam-box { border-radius: 0; box-shadow: none; }
  body.idle.has-demo .k-right { border-radius: 0; border-width: 1px 0 0; }
  .cam-hint b { font-size: 30px; }
  body.who .k-main { display: flex; flex-direction: column; }
  body.who .cam-box { max-width: none; height: 32vh; aspect-ratio: auto; }
  body.who .k-right { flex: 1; }
}

/* person screen after the scan: big, readable, one obvious choice */
#who h1 { font-size: 40px; margin-bottom: 12px; }
.k-stat { height: 38px; padding: 0 14px; font-size: 18px; border-radius: 10px; }
.k-sched { font-size: 18px; }
.sug { margin-bottom: 22px; }
.sug-b { height: 128px; font-size: 38px; border-radius: 16px; box-shadow: 0 8px 20px rgba(20, 33, 43, .14); }
.cd { margin-top: 10px; display: flex; align-items: center; gap: 12px; font-size: 17px; }
.cd-bar { flex: 1; height: 10px; margin: 0; border-radius: 5px; }
.cd-t { white-space: nowrap; font-weight: 600; }
#altLab { margin-bottom: 10px; font-size: 13px; }
.acts { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin-bottom: 22px; }
.acts .act { height: 96px; font-size: 26px; border-radius: 14px; }
/* other options: outlined in their colour so the suggested one stays the obvious choice */
.acts.alt .act { height: 84px; font-size: 24px; background: var(--card); border: 3px solid currentColor; }
.acts.alt .a-work, .acts.alt .a-break_end, .acts.alt .a-private_end { color: var(--green-d, #16794A); }
.acts.alt .a-break { color: var(--amber); } .acts.alt .a-private { color: var(--pri); } .acts.alt .a-stop { color: var(--red); }
.k-row { padding: 14px 18px; font-size: 18px; }
.k-row b { font-size: 21px; }
.k-btns { padding-top: 22px; }
.k-cancel { height: 76px; font-size: 24px; font-weight: 600; border-width: 2px; border-radius: 14px; }
@media (max-width: 900px), (orientation: portrait) {
  #who h1 { font-size: 38px; }
  body.who .cam-box { height: 26vh; }
}
@media (orientation: landscape) and (min-width: 901px) {
  body.who .k-main { grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); }
  .k-right { padding: 22px 24px; }
  #who h1 { font-size: 36px; margin-bottom: 8px; } .k-person { margin-bottom: 16px; }
  .sug { margin-bottom: 16px; } .sug-b { height: 104px; font-size: 34px; }
  .acts { margin-bottom: 16px; } .acts.alt .act { height: 72px; font-size: 22px; }
  .k-row { padding: 9px 16px; font-size: 16px; } .k-row b { font-size: 18px; }
  .k-btns { padding-top: 16px; } .k-cancel { height: 64px; font-size: 22px; }
}
