:root{--teal:#087f72;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-synthesis:none;background:#f2f6f6;color:#18313f}*{box-sizing:border-box}[hidden]{display:none!important}body{margin:0;min-height:100vh;display:flex;flex-direction:column}.terminal-header{background:#112d3d;color:#fff;min-height:100px;padding:24px 42px;display:flex;align-items:center;justify-content:space-between;gap:20px}.terminal-brand{display:flex;align-items:center;gap:15px}.brand-mark{display:grid;place-items:center;border:1px solid #66848a;background:#ffffff0d;width:48px;height:48px;border-radius:13px;font-size:26px;font-weight:800}.terminal-brand strong{font-size:23px;display:block;letter-spacing:-.02em}.terminal-brand span:not(.brand-mark){font-size:12px;color:#a7bcc3;display:block;margin-top:4px}.connection{display:flex;align-items:center;gap:8px;font-size:12px;color:#ccd9dd}#connection-dot{width:8px;height:8px;border-radius:50%;background:#d7a348}#connection-dot.online{background:#6adcbb}#connection-dot.offline{background:#f38779}main{flex:1;display:grid;place-items:center;padding:24px}.panel{width:100%;max-width:720px;text-align:center}.time-block{display:flex;flex-direction:column;gap:6px;margin-bottom:32px}#local-time{font-size:50px;font-weight:300;font-variant-numeric:tabular-nums;letter-spacing:-.05em}#local-date{color:#74878d;font-size:14px}.scan-symbol{width:130px;height:130px;position:relative;margin:0 auto 28px;color:var(--teal);display:grid;place-items:center;background:#e1eeeb;border-radius:32px}.scan-symbol b{font-size:62px;font-weight:400}.scan-symbol span{width:19px;height:19px;position:absolute;border:2px solid #0b8578}.scan-symbol span:nth-child(1){top:19px;left:19px;border-right:0;border-bottom:0}.scan-symbol span:nth-child(2){top:19px;right:19px;border-left:0;border-bottom:0}.scan-symbol span:nth-child(3){bottom:19px;left:19px;border-right:0;border-top:0}.scan-symbol span:nth-child(4){bottom:19px;right:19px;border-left:0;border-top:0}.eyebrow{font-size:12px;font-weight:750;letter-spacing:.15em;color:#407c75;margin:12px 0}h1{font-size:34px;letter-spacing:-.035em;margin:0 0 14px}.description{color:#697f87;line-height:1.6;margin:0 auto;max-width:500px;font-size:17px}.small{font-size:13px;color:#75898f;line-height:1.5;min-height:18px}button{border:0;background:var(--teal);color:#fff;padding:20px 26px;border-radius:14px;font:inherit;font-weight:650;cursor:pointer;min-height:64px}button:disabled{cursor:wait;opacity:.55}button:hover:not(:disabled){background:#09685f}button:focus-visible{outline:3px solid #6abab0;outline-offset:4px}.actions{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-top:30px}.actions button{font-size:20px;padding:25px 15px;min-height:92px}.secondary{background:#183c50}.secondary:hover:not(:disabled){background:#102e3e}.quiet{background:none;color:#647f88;font-size:14px;padding:12px;min-height:48px;margin-top:12px}.quiet:hover:not(:disabled){background:#e6eeef}.result-icon{display:grid;place-items:center;width:90px;height:90px;background:#e0eeeb;border-radius:50%;color:var(--teal);font-size:42px;margin:0 auto 24px}.result-icon.error{background:#fce5df;color:#b54430}.result-icon.pending{background:#e4edf1;color:#24475a}footer{display:flex;justify-content:space-between;align-items:center;padding:18px 36px;font-size:12px;color:#86979c;border-top:1px solid #dde8e9}footer div{display:flex;gap:16px}footer button{background:none;color:#73898f;padding:6px 0;min-height:32px;font-size:12px;font-weight:400}footer button:hover:not(:disabled){color:#214956;background:none}label{display:block;text-align:left;font-size:13px;font-weight:650;margin:24px 0 9px}input{font:inherit;padding:15px;border:1px solid #bfcfd3;border-radius:12px;width:100%;background:#fff}input:focus{outline:3px solid #15918030;border-color:#159180}#pair-panel{max-width:440px}#pair-panel button{width:100%;margin-top:18px}#pair-error{color:#a53b2c;font-size:14px}#manual-panel{margin:24px auto 0;max-width:450px}.manual-row{display:flex;gap:8px}.manual-row button{min-height:50px;padding:10px 18px}.noscript{text-align:center;color:#b54430}@media(max-width:650px){.terminal-header{padding:20px;min-height:90px}.terminal-brand strong{font-size:19px}.connection{font-size:11px}h1{font-size:28px}.description{font-size:15px}.actions{gap:12px}.actions button{font-size:17px}.time-block{margin-bottom:22px}#local-time{font-size:42px}.scan-symbol{width:110px;height:110px;margin-bottom:22px}footer{padding:15px;gap:12px;flex-wrap:wrap}}@media(max-height:650px) and (min-width:700px){main{padding:20px}.panel{max-width:820px}.time-block{margin-bottom:15px}#local-time{font-size:35px}.scan-symbol{width:90px;height:90px;margin-bottom:15px}.scan-symbol b{font-size:40px}.terminal-header{min-height:75px;padding:15px 32px}.result-icon{width:64px;height:64px;font-size:30px;margin-bottom:14px}h1{font-size:29px}.actions{margin-top:16px}.actions button{min-height:70px;padding:15px}}

.brand-logo{max-width:150px;max-height:54px;object-fit:contain}

.web-test-note{padding:12px 24px;background:#fff4d7;color:#553d0b;text-align:center;font-size:14px;border-bottom:1px solid #ecdba9}.web-test-note a{color:inherit;text-decoration:underline;white-space:nowrap}

.demo-controls{margin:24px auto 0;max-width:420px;display:grid;gap:12px;padding-top:18px;border-top:1px solid #dae4e8}.demo-controls>span{font-size:14px;font-weight:650}.demo-controls #demo-scan{width:100%;min-height:60px}.demo-controls .quiet{margin:auto}

html[data-demo="1"] main{padding:18px}html[data-demo="1"] .time-block{margin-bottom:14px}html[data-demo="1"] .scan-symbol{width:82px;height:82px;margin-bottom:14px}html[data-demo="1"] .demo-controls{margin-top:16px;padding-top:12px;gap:8px}

/* Square POS displays, including a 480px Z80 with Android display scaling. */
@media(max-width:650px) and (max-height:600px){
  .terminal-header{min-height:48px;padding:6px 12px;gap:8px}
  .terminal-brand{gap:6px}.terminal-brand>div{display:none}
  body .terminal-header .terminal-brand .brand-logo{max-width:150px;max-height:32px;height:32px}
  .connection{font-size:10px;gap:5px}main{padding:8px 12px}
  .time-block{gap:1px;margin-bottom:6px}#local-time{font-size:28px;line-height:1.1}#local-date{font-size:10px}
  .scan-symbol{width:42px;height:42px;margin-bottom:6px;border-radius:10px}.scan-symbol b{font-size:24px}
  .scan-symbol span{width:8px;height:8px}.scan-symbol span:nth-child(1){top:7px;left:7px}.scan-symbol span:nth-child(2){top:7px;right:7px}.scan-symbol span:nth-child(3){bottom:7px;left:7px}.scan-symbol span:nth-child(4){bottom:7px;right:7px}
  .eyebrow{font-size:9px;margin:4px 0}h1{font-size:20px;line-height:1.2;margin-bottom:6px}.description{font-size:12px;line-height:1.25}
  .result-icon{width:40px;height:40px;font-size:20px;margin-bottom:8px}
  .actions{gap:8px;margin-top:8px}.actions button{min-height:40px;padding:8px;font-size:13px}
  .quiet{min-height:32px;padding:6px;margin-top:5px}.small{font-size:10px;margin:6px 0;min-height:0}
  #terminal-notice:empty,#choice-countdown:empty{display:none}
  footer{padding:4px 12px;font-size:9px;gap:6px}
  label{margin:8px 0 4px}input{padding:8px}#pair-panel button{min-height:40px;padding:8px;margin-top:8px}
}
@media(max-width:650px) and (min-height:400px) and (max-height:600px){
  main{place-items:start center;padding-top:16px}
  .time-block{gap:4px;margin-bottom:18px}#local-time{font-size:64px;line-height:1.05}#local-date{font-size:12px}
  .scan-symbol{width:56px;height:56px;margin-bottom:12px}.scan-symbol b{font-size:30px}
  h1{font-size:24px}
}
body[data-feedback="in"]{--confirmation-background:#087b3e}
body[data-feedback="out"]{--confirmation-background:#0756ad}
body[data-feedback="in"],body[data-feedback="out"]{background:var(--confirmation-background);color:#fff}
body[data-feedback] .terminal-header{background:var(--confirmation-background);color:#fff;border-bottom-color:#ffffff50}
body[data-feedback] .terminal-header .connection,body[data-feedback] .eyebrow,body[data-feedback] .description,body[data-feedback] #local-date,body[data-feedback] footer{color:#fff}
body[data-feedback] .result-icon{background:#ffffff20;color:#fff}

#kiosk-unlock{min-height:28px;padding:6px 10px;margin-left:8px;font-size:11px;background:transparent;color:inherit;border:1px solid currentColor;border-radius:5px}

/* Use the available square screen for the clock and scan instruction. */
@media(max-width:650px) and (min-height:400px) and (max-height:600px){
  #local-time{font-size:80px}#local-date{font-size:14px}
  .time-block{margin-bottom:24px}
  .scan-symbol{width:80px;height:80px;margin-bottom:16px;border-radius:18px}.scan-symbol b{font-size:42px}
  .scan-symbol span{width:13px;height:13px}.scan-symbol span:nth-child(1){top:12px;left:12px}.scan-symbol span:nth-child(2){top:12px;right:12px}.scan-symbol span:nth-child(3){bottom:12px;left:12px}.scan-symbol span:nth-child(4){bottom:12px;right:12px}
  .eyebrow{font-size:11px;margin:6px 0}h1{font-size:28px;margin-bottom:10px}.description{font-size:14px;line-height:1.4}
  .result-icon{width:64px;height:64px;font-size:34px;margin-bottom:16px}
  #clock-panel:has(#action-buttons:not([hidden])) #local-time{font-size:48px}
  #clock-panel:has(#action-buttons:not([hidden])) .time-block{margin-bottom:8px}
  #clock-panel:has(#action-buttons:not([hidden])) .result-icon{width:36px;height:36px;font-size:22px;margin-bottom:6px}
}

/* Employee identity is the primary confirmation at a busy clock terminal. */
#employee-name{font-size:clamp(26px,7vw,40px);font-weight:750;line-height:1.15;letter-spacing:normal;overflow-wrap:anywhere;margin:6px 0 10px}
#employee-name:empty{display:none}
@media(max-height:600px){
  #clock-panel:has(#result-content:not([hidden])):not(:has(#action-buttons:not([hidden]))) .time-block{margin-bottom:12px}
  #clock-panel:has(#result-content:not([hidden])):not(:has(#action-buttons:not([hidden]))) #local-time{font-size:56px}
  #clock-panel:has(#result-content:not([hidden])) .result-icon{width:40px;height:40px;font-size:24px;margin-bottom:8px}
}
