:root{--navy:#0e213f;--navy-2:#17355f;--navy-3:#254d7d;--ink:#172033;--muted:#6b778c;--line:#e5eaf1;--soft:#f5f7fa;--soft-blue:#eef4fb;--white:#fff;--success:#16835b;--warning:#b36b00;--danger:#c43d4b;--shadow:0 12px 34px rgba(14,33,63,.08);--radius:18px}
*{box-sizing:border-box}html{background:var(--soft)}body{margin:0;background:var(--soft);color:var(--ink);font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-size:15px}.stamps-app{min-height:100vh}.stamps-topbar{height:74px;position:sticky;top:0;z-index:1030;background:rgba(255,255,255,.96);border-bottom:1px solid var(--line);backdrop-filter:blur(14px)}.stamps-topbar-inner{height:100%;display:flex;align-items:center;gap:14px;padding:0 24px}.brand-link{display:flex;align-items:center;gap:11px;color:var(--navy);text-decoration:none}.brand-logo{width:45px;height:45px;object-fit:cover;border-radius:12px}.brand-copy{display:flex;flex-direction:column;line-height:1.15}.brand-copy strong{font-size:.94rem;letter-spacing:.02em}.brand-copy small{font-size:.68rem;color:var(--muted);margin-top:3px}.topbar-spacer{flex:1}.icon-button{width:42px;height:42px;border:1px solid var(--line);background:white;color:var(--navy);border-radius:12px;display:grid;place-items:center;font-size:1.15rem}.nav-toggle{display:none}.connection-pill{display:flex;align-items:center;gap:7px;background:#eaf7f1;color:var(--success);font-weight:700;font-size:.72rem;padding:8px 11px;border-radius:999px}.connection-pill.offline{background:#fff0f1;color:var(--danger)}.user-chip{display:flex;align-items:center;gap:9px;padding-left:4px}.user-avatar{width:38px;height:38px;border-radius:12px;background:var(--navy);color:white;display:grid;place-items:center;font-weight:800}.user-copy{display:flex;flex-direction:column;line-height:1.18}.user-copy strong{font-size:.8rem}.user-copy small{font-size:.67rem;color:var(--muted)}
.stamps-layout{display:grid;grid-template-columns:260px minmax(0,1fr);min-height:calc(100vh - 74px)}.stamps-sidebar{background:var(--navy);padding:18px 14px 20px;display:flex;flex-direction:column;min-height:calc(100vh - 74px);position:sticky;top:74px;height:calc(100vh - 74px);overflow-y:auto}.sidebar-mobile-head{display:none}.stamps-nav{display:flex;flex-direction:column;gap:4px}.nav-group-label{padding:15px 13px 7px;color:rgba(255,255,255,.42);font-size:.61rem;font-weight:800;text-transform:uppercase;letter-spacing:.12em}.stamps-nav-link{display:flex;align-items:center;gap:11px;min-height:42px;border-radius:12px;padding:9px 12px;color:rgba(255,255,255,.72);text-decoration:none;font-size:.82rem;font-weight:650;transition:.16s}.stamps-nav-link i{width:21px;text-align:center;font-size:1rem}.stamps-nav-link:hover{background:rgba(255,255,255,.08);color:white}.stamps-nav-link.active{background:white;color:var(--navy);box-shadow:0 8px 24px rgba(0,0,0,.14)}.signout-link{margin-top:8px;border-top:1px solid rgba(255,255,255,.1)}.sidebar-footer{margin-top:auto;border-top:1px solid rgba(255,255,255,.1);padding:17px 8px 2px;display:flex;gap:9px;align-items:center;color:white}.sidebar-footer img{width:36px;height:36px;border-radius:10px;object-fit:cover}.sidebar-footer div{display:flex;flex-direction:column}.sidebar-footer strong{font-size:.72rem}.sidebar-footer small{font-size:.61rem;color:rgba(255,255,255,.5)}.stamps-main{min-width:0;padding:28px clamp(18px,3vw,42px) 60px}.stamps-content{max-width:1540px;margin:auto}.stamps-nav-overlay{display:none}
.page-head{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;margin-bottom:24px}.page-head h1{font-size:clamp(1.55rem,3vw,2rem);font-weight:750;color:var(--navy);margin:0 0 4px}.page-head p{margin:0;color:var(--muted)}.page-actions{display:flex;flex-wrap:wrap;gap:9px}.eyebrow{font-size:.65rem;text-transform:uppercase;letter-spacing:.12em;font-weight:800;color:var(--navy-3)}
.stamps-card,.card.stamps-card{border:1px solid var(--line);border-radius:var(--radius);background:white;box-shadow:var(--shadow);overflow:hidden}.stamps-card .card-header,.stamps-card .card-footer{background:white;border-color:var(--line);padding:17px 20px}.stamps-card .card-body{padding:20px}.minimal-card{box-shadow:none}.stat-card .card-body{display:flex;justify-content:space-between;align-items:center}.stat-label{font-size:.73rem;color:var(--muted);font-weight:650}.stat-value{font-size:1.85rem;font-weight:780;color:var(--navy);line-height:1.1;margin-top:6px}.stat-icon{width:46px;height:46px;border-radius:14px;background:var(--soft-blue);color:var(--navy);display:grid;place-items:center;font-size:1.15rem}.hero-panel{background:linear-gradient(125deg,var(--navy),var(--navy-2));border-radius:22px;color:white;padding:25px 27px;position:relative;overflow:hidden}.hero-panel:after{content:"";position:absolute;right:-60px;top:-90px;width:240px;height:240px;border-radius:50%;border:42px solid rgba(255,255,255,.07)}.hero-panel>*{position:relative;z-index:1}.hero-panel p{color:rgba(255,255,255,.68);max-width:720px}.hero-panel .eyebrow{color:#b9cbe1}
.btn{border-radius:11px;font-weight:700;min-height:40px;font-size:.83rem}.btn-sm{min-height:33px;border-radius:9px}.btn-lg{min-height:48px;border-radius:13px}.btn-primary{background:var(--navy);border-color:var(--navy);color:white}.btn-primary:hover{background:var(--navy-2);border-color:var(--navy-2);color:white}.btn-outline-primary{border-color:#b8c6d7;color:var(--navy);background:white}.btn-outline-primary:hover{background:var(--navy);border-color:var(--navy);color:white}.btn-outline-secondary{border-color:#d8dee8;color:#566277}.btn-light{background:white;border-color:var(--line);color:var(--navy)}
.form-control,.form-select,.input-group-text{min-height:43px;border-radius:11px;border-color:#dce3ec;font-size:.88rem}.form-control:focus,.form-select:focus{border-color:#7d98ba;box-shadow:0 0 0 .2rem rgba(37,77,125,.12)}.input-group>.input-group-text{background:var(--soft);color:var(--muted);border-radius:11px 0 0 11px}.input-group>.form-control,.input-group>.form-select{border-radius:0 11px 11px 0}.form-label{font-size:.76rem;font-weight:750;color:#40506a}.form-label.required:after,.required:after{content:" *";color:var(--danger)}.form-text{font-size:.7rem;color:var(--muted)}
.table{--bs-table-hover-bg:#f8fafc;margin:0}.table>:not(caption)>*>*{padding:13px 16px;border-bottom-color:var(--line);vertical-align:middle}.table thead th{background:#f7f9fc;color:#66748a;font-size:.66rem;text-transform:uppercase;letter-spacing:.055em;font-weight:800;white-space:nowrap}.table td{font-size:.84rem}.table-responsive{scrollbar-width:thin}.badge{border-radius:999px;font-weight:750;padding:.46em .72em}.text-bg-primary{background:#eaf0f8!important;color:var(--navy)!important}.text-bg-success{background:#e8f6f0!important;color:var(--success)!important}.text-bg-warning{background:#fff4df!important;color:var(--warning)!important}.text-bg-danger{background:#fdecef!important;color:var(--danger)!important}.text-bg-secondary{background:#eef1f5!important;color:#5f6b7d!important}.bg-theme-subtle{background:var(--soft-blue)!important}.text-theme{color:var(--navy)!important}
.nav-tabs{border:0;gap:5px;padding:5px;background:#e9edf3;border-radius:13px;overflow-x:auto;flex-wrap:nowrap}.nav-tabs .nav-link{border:0;border-radius:9px;color:#66748a;font-weight:700;font-size:.8rem;white-space:nowrap}.nav-tabs .nav-link.active{background:white;color:var(--navy);box-shadow:0 4px 12px rgba(14,33,63,.08)}.modal-content{border:0;border-radius:19px;box-shadow:0 30px 80px rgba(14,33,63,.2)}.modal-header,.modal-footer{border-color:var(--line);padding:16px 20px}.modal-body{padding:20px}.alert{border:0;border-radius:12px}.pagination .page-link{border:0;border-radius:8px!important;margin:0 2px;color:var(--navy)}.pagination .page-item.active .page-link{background:var(--navy)}
.chart-wrap{height:300px;position:relative}.chart-wrap canvas{width:100%;height:100%;display:block}.chart-legend{display:flex;flex-wrap:wrap;gap:12px;font-size:.72rem;color:var(--muted)}.chart-legend span:before{content:"";display:inline-block;width:9px;height:9px;border-radius:50%;background:var(--navy);margin-right:5px}.attendance-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(270px,1fr));gap:12px}.attendance-card{border:1px solid var(--line);border-radius:14px;background:white;padding:14px;display:flex;flex-direction:column;gap:11px}.attendance-card.checked{border-color:#8aa2bf;background:#f8fbff}.attendance-person{display:flex;align-items:center;gap:11px}.person-avatar{width:42px;height:42px;border-radius:12px;background:var(--soft-blue);color:var(--navy);display:grid;place-items:center;font-weight:800}.status-buttons{display:grid;grid-template-columns:repeat(3,1fr);gap:6px}.status-btn{border:1px solid var(--line);background:white;border-radius:9px;padding:7px 4px;font-size:.68rem;font-weight:750;color:#5d6a7e}.status-btn.active[data-status=present]{background:#e8f6f0;border-color:#91d4b9;color:#116a4a}.status-btn.active[data-status=late]{background:#fff4df;border-color:#efc878;color:#8f5700}.status-btn.active[data-status=absent]{background:#fdecef;border-color:#e8a2aa;color:#a92d3a}.status-btn.active[data-status=excused]{background:#eaf0f8;border-color:#a9bad0;color:var(--navy)}.offline-banner{background:#fff4df;color:#7b4e00;border-radius:12px;padding:10px 13px;font-size:.78rem}.sync-counter{display:inline-flex;align-items:center;gap:5px;padding:6px 9px;border-radius:999px;background:var(--soft-blue);color:var(--navy);font-size:.69rem;font-weight:800}.empty-state{text-align:center;padding:44px 20px;color:var(--muted)}.empty-state i{font-size:2rem;color:#9aabc0}.filter-bar{display:grid;grid-template-columns:minmax(220px,2fr) repeat(3,minmax(140px,1fr)) auto;gap:10px;align-items:end}.metric-strip{display:flex;gap:10px;flex-wrap:wrap}.metric-pill{padding:8px 11px;border-radius:10px;background:var(--soft);font-size:.72rem;color:var(--muted)}.metric-pill strong{color:var(--navy)}
.auth-shell{min-height:100vh;background:var(--soft);display:grid;place-items:center;padding:24px}.auth-grid{width:min(980px,100%);display:grid;grid-template-columns:1fr 1fr;background:white;border-radius:24px;overflow:hidden;box-shadow:0 30px 90px rgba(14,33,63,.15)}.auth-brand-panel{background:var(--navy);color:white;padding:48px;display:flex;flex-direction:column;justify-content:space-between}.auth-brand-panel img{width:88px;height:88px;border-radius:20px}.auth-brand-panel p{color:rgba(255,255,255,.66)}.auth-form-panel{padding:48px}.install-shell{min-height:100vh;background:var(--soft);padding:30px}.install-card{max-width:960px;margin:auto}.install-logo{width:80px;height:80px;border-radius:18px;object-fit:cover}.mobile-bottom-nav{display:none}
@media(max-width:1199px){.filter-bar{grid-template-columns:repeat(2,minmax(0,1fr))}.filter-bar>div:first-child{grid-column:span 2}}
@media(max-width:991.98px){.stamps-app{padding-bottom:76px}.stamps-topbar{height:68px}.stamps-topbar-inner{padding:0 14px}.nav-toggle{display:grid}.stamps-layout{display:block;min-height:calc(100vh - 68px)}.stamps-sidebar{position:fixed;z-index:1060;top:0;left:0;width:min(84vw,310px);height:100dvh;min-height:0;transform:translateX(-105%);transition:transform .22s;padding-top:12px}.stamps-sidebar.open{transform:translateX(0)}.sidebar-mobile-head{display:flex;align-items:center;justify-content:space-between;color:white;padding:2px 8px 10px}.sidebar-mobile-head .icon-button{background:rgba(255,255,255,.08);border-color:rgba(255,255,255,.1);color:white}.stamps-nav-overlay{display:block;position:fixed;inset:0;background:rgba(14,33,63,.48);opacity:0;visibility:hidden;z-index:1050;transition:.2s}.stamps-nav-overlay.open{opacity:1;visibility:visible}.stamps-main{padding:20px 14px 36px}.user-copy{display:none}.connection-pill span{display:none}.mobile-bottom-nav{display:grid;grid-template-columns:repeat(4,1fr);position:fixed;left:10px;right:10px;bottom:9px;z-index:1040;background:rgba(255,255,255,.97);border:1px solid var(--line);border-radius:18px;padding:7px;box-shadow:0 16px 45px rgba(14,33,63,.17);backdrop-filter:blur(14px)}.mobile-bottom-nav a{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;min-height:48px;text-decoration:none;color:#748197;font-size:.61rem;font-weight:800;border-radius:12px}.mobile-bottom-nav a i{font-size:1rem}.mobile-bottom-nav a.active{background:var(--navy);color:white}.auth-grid{grid-template-columns:1fr}.auth-brand-panel{padding:30px}.auth-form-panel{padding:32px}}
@media(max-width:767.98px){.brand-copy small{display:none}.page-head{flex-direction:column}.page-actions{width:100%}.page-actions .btn{flex:1}.desktop-only{display:none!important}.stamps-card .card-body{padding:16px}.stamps-card .card-header,.stamps-card .card-footer{padding:14px 16px}.hero-panel{padding:21px}.filter-bar{grid-template-columns:1fr}.filter-bar>div:first-child{grid-column:auto}.attendance-grid{grid-template-columns:1fr}.chart-wrap{height:255px}.table>:not(caption)>*>*{padding:11px 12px}.auth-brand-panel{display:none}.auth-form-panel{padding:28px 22px}}
@media(max-width:430px){.brand-logo{width:40px;height:40px}.brand-copy strong{font-size:.82rem}.connection-pill{padding:7px}.user-avatar{width:35px;height:35px}.stat-value{font-size:1.55rem}.status-buttons{grid-template-columns:repeat(2,1fr)}}
@media print{.stamps-topbar,.stamps-sidebar,.mobile-bottom-nav,.page-actions,.no-print{display:none!important}.stamps-layout{display:block}.stamps-main{padding:0}.stamps-card{box-shadow:none!important;break-inside:avoid}.stamps-content{max-width:none}.table{font-size:10px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}


/* v1.1.0 usability and field-operations refinements */
:root{--navy:#0e213f;--navy-2:#17355f;--navy-3:#2a527f;--ink:#142033;--muted:#647287;--line:#e2e8f0;--soft:#f6f8fb;--soft-blue:#edf3fa;--focus:#5d83b2;--radius:16px}
html{font-size:16px;scroll-behavior:smooth}body{font-family:"Segoe UI Variable Text","Aptos","Segoe UI",Roboto,Helvetica,Arial,sans-serif;font-size:.9375rem;line-height:1.55;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
h1,h2,h3,h4,h5,h6,.brand-copy strong{font-family:"Segoe UI Variable Display","Aptos Display","Segoe UI",sans-serif;letter-spacing:-.018em;line-height:1.2}p{line-height:1.62}.text-secondary{color:var(--muted)!important}
button,a,input,select,textarea{touch-action:manipulation}.btn,.form-control,.form-select,.input-group-text{min-height:44px}.btn-sm{min-height:36px}.form-control,.form-select{font-size:.92rem}.form-control::placeholder{color:#929dad}.form-label{font-size:.78rem;letter-spacing:.005em}
:focus-visible{outline:3px solid rgba(93,131,178,.32)!important;outline-offset:2px}.btn:focus-visible,.form-control:focus-visible,.form-select:focus-visible{box-shadow:0 0 0 .22rem rgba(93,131,178,.18)!important}
.stamps-card,.card.stamps-card{box-shadow:0 8px 28px rgba(16,39,70,.065)}.page-head h1{font-weight:760}.page-head p{max-width:780px}.brand-logo{background:white;border:1px solid rgba(16,39,70,.08)}
.segmented-control{display:grid;grid-template-columns:1fr 1fr;gap:4px;padding:4px;background:#edf1f6;border-radius:12px;min-height:44px}.segmented-control button{border:0;border-radius:9px;background:transparent;color:var(--muted);font-size:.76rem;font-weight:750;padding:7px 8px}.segmented-control button.active{background:white;color:var(--navy);box-shadow:0 3px 10px rgba(16,39,70,.09)}
.attendance-control-card{position:sticky;top:88px;z-index:1010}.attendance-progress{height:8px;background:rgba(255,255,255,.18);border-radius:999px;overflow:hidden}.attendance-progress>span{display:block;height:100%;width:0;background:white;border-radius:inherit;transition:width .22s}.stamps-card+.attendance-progress{background:#e7edf4}.stamps-card+.attendance-progress>span{background:var(--navy)}
.roster-toolbar{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px}.attendance-card{min-width:0;transition:border-color .16s,box-shadow .16s,transform .16s}.attendance-card:hover{border-color:#c8d4e2;box-shadow:0 8px 22px rgba(16,39,70,.07)}.attendance-card.sync-pending,.attendance-card.sync-syncing,.attendance-card.sync-failed{border-left:4px solid #d59a2c}.attendance-card.sync-conflict{border-left:4px solid var(--danger);background:#fffafb}.attendance-card.sync-review{border-left:4px solid var(--warning)}.attendance-card-foot{display:flex;align-items:center;justify-content:space-between;gap:8px;min-width:0}.attendance-card-foot small{min-width:0}.icon-button-sm{width:34px;height:34px;min-width:34px;border-radius:10px;font-size:.86rem}.attendance-note{padding:8px 10px;border-radius:9px;background:var(--soft);color:#4c5b70;font-size:.75rem;white-space:pre-wrap}.status-btn{min-height:38px;font-size:.71rem}.status-btn:disabled{opacity:.55}
.attendance-grid.compact{display:block}.attendance-grid.compact .attendance-card{display:grid;grid-template-columns:minmax(230px,1.25fr) minmax(390px,2fr) minmax(170px,.8fr);align-items:center;gap:12px;border-radius:11px;margin-bottom:7px;padding:10px 12px}.attendance-grid.compact .attendance-card-foot{justify-content:flex-end}.attendance-grid.compact .attendance-note{grid-column:1/-1}.attendance-grid.compact .status-buttons{grid-template-columns:repeat(6,minmax(54px,1fr))}
.queue-stat{display:flex;flex-direction:column;gap:3px;border:1px solid var(--line);background:var(--soft);border-radius:13px;padding:13px}.queue-stat span{font-size:.7rem;color:var(--muted);font-weight:700}.queue-stat strong{font-size:1.35rem;color:var(--navy)}.sync-conflict-list{display:grid;gap:10px}.sync-conflict-item{display:flex;align-items:center;justify-content:space-between;gap:14px;border:1px solid #f0c7cc;background:#fffafb;border-radius:13px;padding:12px}.sync-counter.has-conflict{background:#fdecef;color:var(--danger)}
.progress{height:12px;border-radius:999px;background:#edf1f5}.progress-bar{background:var(--navy);font-size:.63rem;font-weight:800}
.data-quality-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.quality-card{border:1px solid var(--line);border-radius:13px;padding:14px;background:white}.quality-card span{display:block;color:var(--muted);font-size:.72rem;font-weight:700}.quality-card strong{display:block;color:var(--navy);font-size:1.45rem;margin-top:4px}.quality-card.warning strong{color:var(--warning)}.quality-card.danger strong{color:var(--danger)}
.report-matrix td,.report-matrix th{text-align:right}.report-matrix td:first-child,.report-matrix th:first-child{text-align:left;position:sticky;left:0;background:inherit}.report-toolbar{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:10px}.report-pagination{display:flex;align-items:center;justify-content:flex-end;gap:8px}.filter-preset-bar{display:flex;flex-wrap:wrap;gap:8px;align-items:end}
.sr-live{position:fixed;left:-9999px;width:1px;height:1px;overflow:hidden}
@media(max-width:1199px){.attendance-control-card{position:static}.data-quality-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.attendance-grid.compact .attendance-card{grid-template-columns:minmax(210px,1fr) minmax(350px,1.8fr)}.attendance-grid.compact .attendance-card-foot{grid-column:1/-1;justify-content:space-between}}
@media(max-width:767.98px){html{font-size:15px}.stamps-main{padding-left:12px;padding-right:12px}.page-head{gap:14px;margin-bottom:18px}.page-actions{display:grid;grid-template-columns:1fr 1fr}.page-actions .sync-counter{grid-column:1/-1;justify-content:center}.attendance-grid.compact .attendance-card{display:flex;margin-bottom:8px}.attendance-grid.compact .status-buttons{grid-template-columns:repeat(3,1fr);width:100%}.attendance-control-card .card-body{padding:14px}.roster-toolbar>div:last-child{width:100%}.roster-toolbar .dropdown,.roster-toolbar .btn{flex:1}.sync-conflict-item{align-items:flex-start;flex-direction:column}.sync-conflict-item>div:last-child{width:100%}.sync-conflict-item .btn{flex:1}.data-quality-grid{grid-template-columns:1fr 1fr}.table-responsive{border-radius:0 0 var(--radius) var(--radius)}.report-pagination{justify-content:space-between}.mobile-bottom-nav{padding-bottom:max(7px,env(safe-area-inset-bottom))}}
@media(max-width:430px){.page-actions{grid-template-columns:1fr}.page-actions .sync-counter{grid-column:auto}.data-quality-grid{grid-template-columns:1fr 1fr}.status-btn{min-height:42px}.attendance-card{padding:12px}.person-avatar{width:40px;height:40px}.stat-value{font-size:1.45rem}}
@media print{body{font-size:11px;background:white}.data-quality-grid{grid-template-columns:repeat(4,1fr)}.attendance-control-card,#syncPanel{display:none!important}}

/* v1.2.0 engagement and kiosk enhancements */
.sound-toggle[aria-pressed="false"]{color:#718096;background:#f1f5f9}.sound-toggle[aria-pressed="true"]{color:#0e213f;background:#eaf0f8}
.announcement-banner{border:1px solid #dbe5f1;border-left:4px solid #17355f;border-radius:14px;background:#fff;padding:1rem 1.1rem;display:flex;gap:.9rem;align-items:flex-start}.announcement-banner.important{border-left-color:#d89415;background:#fffaf0}.announcement-banner.urgent{border-left-color:#b42318;background:#fff5f5}.announcement-banner .announcement-icon{width:38px;height:38px;border-radius:12px;background:#edf3fa;color:#0e213f;display:grid;place-items:center;flex:0 0 auto}.announcement-banner h3{font-size:1rem;margin:0 0 .2rem}.announcement-banner p{margin:0;color:#5e6b7d;white-space:pre-line}.announcement-meta{font-size:.78rem;color:#748197;margin-top:.4rem}
.kiosk-shell{min-height:calc(100vh - 118px);display:grid;grid-template-columns:minmax(280px,380px) 1fr;gap:1.25rem}.kiosk-controls{position:sticky;top:92px;align-self:start}.kiosk-scanner{min-height:470px;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;padding:clamp(1.5rem,4vw,4rem);border:1px solid #dce5ef;border-radius:24px;background:radial-gradient(circle at top,#f9fbfe,#fff 62%);box-shadow:0 20px 60px rgba(14,33,63,.08)}.kiosk-scanner.ready{border-color:#9fb4cd}.kiosk-scanner.success{border-color:#79b995;background:#f5fcf8}.kiosk-scanner.warning{border-color:#e1b25e;background:#fffaf0}.kiosk-scanner.error{border-color:#d99994;background:#fff7f6}.kiosk-scan-icon{width:92px;height:92px;border-radius:28px;background:#0e213f;color:white;display:grid;place-items:center;font-size:2.4rem;margin-bottom:1.3rem;box-shadow:0 16px 35px rgba(14,33,63,.2)}.kiosk-result-name{font-size:clamp(1.6rem,4vw,3rem);font-weight:800;letter-spacing:-.035em;color:#0e213f;line-height:1.08}.kiosk-result-status{font-size:clamp(1rem,2.2vw,1.35rem);font-weight:750;margin-top:.6rem}.kiosk-history{display:grid;gap:.65rem;max-height:390px;overflow:auto}.kiosk-history-item{display:flex;align-items:center;justify-content:space-between;gap:1rem;border:1px solid #e3e9f0;border-radius:12px;padding:.8rem .9rem;background:#fff}.kiosk-history-item strong{display:block}.kiosk-clock{font-variant-numeric:tabular-nums;font-weight:800;font-size:1.12rem;color:#0e213f}.kiosk-fullscreen .stamps-topbar,.kiosk-fullscreen .stamps-sidebar,.kiosk-fullscreen .mobile-bottom-nav{display:none!important}.kiosk-fullscreen .stamps-layout,.kiosk-fullscreen .stamps-main{display:block;margin:0!important}.kiosk-fullscreen .stamps-content{max-width:none;padding:1rem}
.device-card{border:1px solid #e0e7ef;border-radius:16px;padding:1rem;background:#fff;display:flex;gap:1rem;align-items:flex-start}.device-icon{width:44px;height:44px;border-radius:14px;background:#edf3fa;color:#0e213f;display:grid;place-items:center;font-size:1.2rem;flex:0 0 auto}.device-card.revoked{opacity:.72;background:#fafafa}.device-meta{font-size:.82rem;color:#6d7a8d}.device-actions{margin-left:auto;display:flex;gap:.4rem;flex-wrap:wrap;justify-content:flex-end}.preset-chip{display:inline-flex;align-items:center;gap:.45rem;border:1px solid #d9e2ec;background:#fff;border-radius:999px;padding:.45rem .7rem;font-size:.84rem;font-weight:650}.preset-chip.default{background:#edf3fa;border-color:#bfd0e2;color:#0e213f}
.sound-settings-preview{display:flex;align-items:center;gap:.75rem;padding:.9rem;border:1px solid #e0e7ef;border-radius:14px;background:#f8fafc}.sound-settings-preview i{width:38px;height:38px;border-radius:12px;background:#0e213f;color:#fff;display:grid;place-items:center}
@media(max-width:991.98px){.kiosk-shell{grid-template-columns:1fr}.kiosk-controls{position:static}.kiosk-scanner{min-height:400px}}
@media(max-width:575.98px){.kiosk-scanner{min-height:340px;border-radius:18px;padding:1.25rem}.kiosk-scan-icon{width:74px;height:74px;border-radius:22px;font-size:2rem}.device-card{flex-wrap:wrap}.device-actions{width:100%;margin-left:0;justify-content:flex-start}}

/* v1.3.0 local-first responsive design and typography */
:root{
 --font-sans:"Aptos","Segoe UI Variable","Segoe UI",Roboto,Helvetica,Arial,sans-serif;
 --font-display:"Aptos Display","Segoe UI Variable Display","Segoe UI",Roboto,Helvetica,Arial,sans-serif;
 --type-xs:clamp(.72rem,.69rem + .1vw,.78rem);
 --type-sm:clamp(.80rem,.76rem + .14vw,.88rem);
 --type-base:clamp(.91rem,.87rem + .16vw,1rem);
 --type-lg:clamp(1.03rem,.96rem + .28vw,1.18rem);
 --type-xl:clamp(1.28rem,1.12rem + .6vw,1.62rem);
 --type-2xl:clamp(1.65rem,1.35rem + 1vw,2.2rem);
 --content-width:1600px;
}
html{font-size:16px;scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{font-family:var(--font-sans);font-size:var(--type-base);line-height:1.55;letter-spacing:-.006em;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased}
h1,h2,h3,h4,h5,h6,.brand-copy strong,.stat-value{font-family:var(--font-display);letter-spacing:-.025em;text-wrap:balance}
p,li,.form-text,.text-muted{max-width:75ch}
.stamps-content{max-width:var(--content-width)}
.page-head h1,.page-heading h1{font-size:var(--type-2xl);line-height:1.12}
.page-head p,.page-heading p{font-size:var(--type-sm);line-height:1.6}
.card-title{font-size:var(--type-lg);font-weight:750;color:var(--navy);letter-spacing:-.018em}
.form-label{font-size:var(--type-sm);line-height:1.25}.form-control,.form-select,.input-group-text{font-size:var(--type-sm);min-height:46px}.form-control::placeholder{color:#93a0b3}
.btn{font-size:var(--type-sm);min-height:44px;padding-inline:1rem}.btn-sm{min-height:38px}.btn-lg{min-height:52px;font-size:var(--type-base)}
.icon-button{min-width:44px;min-height:44px}
.stamps-card .card-body{padding:clamp(16px,2vw,24px)}
.table td{font-size:var(--type-sm);line-height:1.4}.table thead th{font-size:var(--type-xs)}
.table-responsive{overscroll-behavior-inline:contain;-webkit-overflow-scrolling:touch}
:where(a,button,input,select,textarea,[tabindex]):focus-visible{outline:3px solid rgba(37,77,125,.28)!important;outline-offset:2px!important}
.skip-link{position:fixed;left:12px;top:-100px;z-index:2000;background:#fff;color:var(--navy);padding:.7rem 1rem;border-radius:10px;box-shadow:var(--shadow)}.skip-link:focus{top:12px}
.page-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem;margin-bottom:1.5rem}.page-heading-copy{min-width:0}.page-heading h1{margin:0 0 .25rem;color:var(--navy)}.page-heading p{margin:0;color:var(--muted)}
.workflow-steps{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:12px}.workflow-step{border:1px solid var(--line);border-radius:16px;padding:1rem;background:#fff;display:flex;gap:.8rem;align-items:flex-start}.workflow-step-number{width:34px;height:34px;border-radius:11px;background:var(--navy);color:#fff;display:grid;place-items:center;font-weight:800;flex:0 0 auto}.workflow-step h3{font-size:.96rem;margin:.1rem 0 .2rem;color:var(--navy)}.workflow-step p{font-size:.82rem;color:var(--muted);margin:0}
.clean-checklist{list-style:none;padding:0;margin:0;display:grid;gap:.65rem}.clean-checklist li{display:flex;gap:.65rem;align-items:flex-start}.clean-checklist li:before{content:"✓";width:22px;height:22px;border-radius:50%;background:#e8f6f0;color:var(--success);display:grid;place-items:center;font-weight:900;font-size:.72rem;flex:0 0 auto;margin-top:.08rem}
.guide-layout{display:grid;grid-template-columns:minmax(220px,280px) minmax(0,1fr);gap:1.25rem;align-items:start}.guide-toc{position:sticky;top:94px}.guide-toc a{display:block;padding:.6rem .75rem;border-radius:10px;color:#536176;text-decoration:none;font-size:.84rem;font-weight:650}.guide-toc a:hover,.guide-toc a.active{background:var(--soft-blue);color:var(--navy)}.guide-content{display:grid;gap:1rem}.guide-section{scroll-margin-top:96px}.guide-section h2{font-size:var(--type-xl);color:var(--navy);margin:0 0 .65rem}.guide-callout{border-left:4px solid var(--navy-3);background:#f5f8fc;border-radius:0 12px 12px 0;padding:.9rem 1rem;color:#42516a}
.responsive-data-list{display:grid;gap:.75rem}.responsive-data-item{background:#fff;border:1px solid var(--line);border-radius:14px;padding:1rem}.responsive-data-label{font-size:var(--type-xs);text-transform:uppercase;letter-spacing:.06em;color:var(--muted);font-weight:800}.responsive-data-value{font-size:var(--type-sm);color:var(--ink);word-break:break-word}
.offline-ready-badge{display:inline-flex;align-items:center;gap:.45rem;border:1px solid #b8d9c8;background:#eefaf4;color:#126343;border-radius:999px;padding:.45rem .7rem;font-size:var(--type-xs);font-weight:800}
@media(max-width:1199.98px){.stamps-layout{grid-template-columns:230px minmax(0,1fr)}.stamps-sidebar{padding-inline:10px}.stamps-main{padding-inline:clamp(16px,2vw,28px)}}
@media(max-width:991.98px){.guide-layout{grid-template-columns:1fr}.guide-toc{position:static;display:flex;overflow-x:auto;gap:.3rem;padding-bottom:.25rem}.guide-toc a{white-space:nowrap;background:#fff;border:1px solid var(--line)}.page-heading{align-items:stretch}.page-heading,.page-head{flex-direction:column}.page-actions{width:100%}.page-actions>.btn,.page-actions>.dropdown{flex:1}}
@media(max-width:767.98px){body{line-height:1.5}.stamps-main{padding:18px 12px 92px}.stamps-card,.card.stamps-card{border-radius:15px}.stamps-card .card-header,.stamps-card .card-footer{padding:14px 15px}.stamps-card .card-body{padding:15px}.page-heading,.page-head{margin-bottom:16px}.page-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.page-actions .btn,.page-actions .dropdown,.page-actions .form-select{width:100%}.form-control,.form-select,.input-group-text{min-height:48px}.btn{min-height:46px}.modal-dialog{margin:.5rem}.modal-content{border-radius:16px}.modal-body{max-height:calc(100dvh - 150px);overflow:auto}.table.mobile-card-table thead{display:none}.table.mobile-card-table,.table.mobile-card-table tbody,.table.mobile-card-table tr,.table.mobile-card-table td{display:block;width:100%}.table.mobile-card-table tr{border-bottom:1px solid var(--line);padding:.65rem .8rem}.table.mobile-card-table td{border:0;padding:.36rem 0;display:grid;grid-template-columns:minmax(105px,38%) minmax(0,1fr);gap:.65rem}.table.mobile-card-table td:before{content:attr(data-label);font-size:var(--type-xs);font-weight:800;color:var(--muted);text-transform:uppercase;letter-spacing:.04em}.workflow-steps{grid-template-columns:1fr}}
@media(max-width:430px){.page-actions{grid-template-columns:1fr}.brand-copy small{display:none}.stamps-topbar-inner{padding-inline:10px}.connection-pill span{display:none}.user-copy{display:none}.stat-value{font-size:1.55rem}.attendance-grid{grid-template-columns:1fr}.status-buttons{grid-template-columns:repeat(2,1fr)}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*:before,*:after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}
@media print{body{font-family:Arial,Helvetica,sans-serif;color:#000}.stamps-card{box-shadow:none!important;border-color:#cfd4dc!important}.guide-toc,.page-actions,.mobile-bottom-nav,.stamps-sidebar,.stamps-topbar{display:none!important}.stamps-layout{display:block}.stamps-main{padding:0}.guide-layout{display:block}}
