@import "https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,700&family=Source+Sans+3:wght@400;500;600;700&display=swap";:root{--bg:#f6f1ef;--bg-deep:#2a0a12;--panel:#ffffffd1;--panel-solid:#fff;--ink:#241016;--muted:#6d5a5f;--line:#2410161a;--line-strong:#24101629;--teal:#6b1428;--teal-mid:#8a1c35;--teal-dark:#4a0e1c;--sand:#d4af37;--sand-soft:#f3e4b0;--coral:#b33a2b;--ok:#1f7a55;--warn:#b7791f;--shadow:0 10px 30px #2a0a1214;--shadow-lg:0 22px 50px #2a0a1224;--radius:22px;--radius-sm:14px;--topbar-h:64px;--bottom-nav-h:72px;color:var(--ink);background:var(--bg);font-synthesis:none;text-rendering:optimizelegibility;-webkit-font-smoothing:antialiased;font-family:"Source Sans 3",sans-serif;font-weight:400;line-height:1.45}*{box-sizing:border-box}html,body,#root{min-height:100%;margin:0}body{background-color:#0000;background-image:radial-gradient(70% 50% at 0 -10%,#d4af3738,#0000 55%),radial-gradient(55% 45% at 100% 0,#6a142824,#0000 50%),radial-gradient(40% 35% at 70% 100%,#4a0e1c14,#0000 45%),linear-gradient(165deg,#fbf7f4 0%,#f3ebe8 42%,#efe4e1 100%);background-position:0 0,0 0,0 0,0 0;background-repeat:repeat,repeat,repeat,repeat;background-size:auto,auto,auto,auto;background-attachment:fixed;background-origin:padding-box,padding-box,padding-box,padding-box;background-clip:border-box,border-box,border-box,border-box;min-width:320px;overflow-x:hidden}img,video,canvas{max-width:100%;height:auto}a{color:inherit;text-decoration:none}h1,h2,h3,.brand-mark{letter-spacing:-.02em;margin:0;font-family:Fraunces,Georgia,serif}button,input,select{font:inherit}button{cursor:pointer}.muted{color:var(--muted)}.small{font-size:.9rem}.eyebrow{text-transform:uppercase;letter-spacing:.1em;color:var(--teal);margin:0 0 .4rem;font-size:.72rem;font-weight:700}.info-text{color:var(--teal-dark);border-radius:var(--radius-sm);background:#8a1c351a;border:1px solid #8a1c352e;padding:.75rem 1rem;font-weight:600}.header-actions{flex-wrap:wrap;gap:.6rem;display:flex}.import-help{background:linear-gradient(135deg,#f4e6cf8c,#ffffffb3);margin-bottom:1rem;padding:1rem 1.15rem}.import-help p{margin:.35rem 0 0}.error-text{color:var(--coral);font-weight:600}.app-shell{grid-template-columns:272px 1fr;height:100dvh;display:grid;overflow:hidden}.mobile-topbar,.mobile-bottom-nav,.nav-backdrop{display:none}.sidebar{color:#f8f1f3;background:radial-gradient(circle at 20% 0,#d4af3738,#0000 42%),linear-gradient(185deg,#5a1326 0%,#2a0a12 58%,#1a060b 100%);flex-direction:column;gap:1.5rem;height:100dvh;padding:1.6rem 1.15rem;display:flex;position:sticky;top:0;overflow:hidden;box-shadow:inset -1px 0 #ffffff0f}.sidebar:after{content:"";pointer-events:none;background:radial-gradient(circle,#d4af372e,#0000 70%);border-radius:50%;width:140px;height:140px;position:absolute;bottom:80px;right:-40px}.brand-block{z-index:1;align-items:center;gap:.85rem;display:flex;position:relative}.brand-logo{object-fit:contain;width:68px;height:68px;box-shadow:none;background:0 0;border-radius:12px;flex-shrink:0;padding:0}.brand-logo.mobile{background:0 0;border-radius:10px;width:52px;height:52px;padding:0}.brand-copy{min-width:0}.brand-block .brand-mark,.mobile-brand .brand-mark{font-size:1.35rem;line-height:1.15}.brand-sub{color:#f3e4b0e0;margin:.25rem 0 0;font-size:.82rem}.side-nav{z-index:1;flex-direction:column;gap:.35rem;display:flex;position:relative}.side-nav a{color:#f4f8f6d6;border-radius:14px;align-items:center;min-height:46px;padding:.8rem .95rem;font-weight:600;transition:background .2s,transform .2s,box-shadow .2s;display:flex}.side-nav a:hover{background:#ffffff1a;transform:translate(3px)}.side-nav a.active{box-shadow:inset 3px 0 0 var(--sand);background:#ffffff24}.side-nav .scan-link{color:#f3e4b0;background:linear-gradient(135deg,#d4af3747,#d4af371a);border:1px solid #f3e4b033;font-weight:700}.side-nav .scan-link.active{box-shadow:inset 3px 0 #f3e4b0}.sidebar-footer{z-index:1;border-top:1px solid #ffffff1a;margin-top:auto;padding-top:1rem;position:relative}.organizer-name{margin:0;font-weight:700}.organizer-email{color:#f4f8f6ad;word-break:break-word;margin:.15rem 0 .85rem;font-size:.9rem}.main-panel{overscroll-behavior:contain;min-width:0;height:100%;min-height:0;padding:1.65rem 1.7rem;overflow-y:auto}.page{width:100%;max-width:1180px;animation:.4s cubic-bezier(.22,1,.36,1) rise}@keyframes rise{0%{opacity:0;transform:translateY(12px)}to{opacity:1;transform:translateY(0)}}.page-header{justify-content:space-between;align-items:flex-start;gap:1rem;margin-bottom:1.35rem;display:flex}.page-header h1{overflow-wrap:anywhere;color:var(--ink);font-size:clamp(1.6rem,4vw,2.45rem)}.page-header .primary-btn,.page-header .secondary-btn{flex-shrink:0}.panel,.stat-tile,.login-card{background:var(--panel);-webkit-backdrop-filter:blur(16px)saturate(1.2);backdrop-filter:blur(16px)saturate(1.2);border-radius:var(--radius);box-shadow:var(--shadow), inset 0 1px 0 #ffffffb3;border:1px solid #ffffffa6}.panel{min-width:0;padding:1.2rem 1.25rem;transition:transform .2s,box-shadow .2s}.panel h2{margin-bottom:.15rem;font-size:1.2rem}.stat-grid{grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:1rem;margin-bottom:1.35rem;display:grid}.stat-grid.compact{max-width:760px}.bus-boarding-panel{margin-bottom:1.35rem}.stat-tile{padding:1.2rem 1.25rem;position:relative;overflow:hidden}.stat-tile:before{content:"";background:linear-gradient(90deg, var(--teal-mid), var(--sand));width:100%;height:3px;position:absolute;inset:0 auto auto 0}.stat-tile.present:before{background:linear-gradient(90deg, var(--ok), #5ec9ad)}.stat-tile.absent:before{background:linear-gradient(90deg, var(--coral), #e89a7f)}.stat-label{color:var(--muted);margin:0;font-size:.92rem;font-weight:650}.stat-value{color:var(--teal-dark);margin:.35rem 0 0;font-family:Fraunces,Georgia,serif;font-size:clamp(1.7rem,4vw,2.35rem)}.split-grid{grid-template-columns:1.4fr 1fr;gap:1.1rem;display:grid}.day-list,.recent-list,.activity-list{flex-direction:column;gap:.7rem;margin-top:.95rem;display:flex}.day-row,.activity-row,.recent-list li{border:1px solid var(--line);background:linear-gradient(#ffffffb8,#edf4f0b3);border-radius:16px;justify-content:space-between;align-items:center;gap:1rem;padding:1rem 1.05rem;transition:border-color .2s,transform .2s,box-shadow .2s;display:flex;box-shadow:0 4px 14px #0c29240a}.day-row:hover,.activity-row:hover,.traveler-pick-item:hover{border-color:#8a1c3559;transform:translateY(-2px);box-shadow:0 12px 24px #0c292414}.day-metric{text-align:right}.day-metric span{color:var(--teal-dark);font-family:Fraunces,Georgia,serif;font-size:1.55rem;display:block}.recent-list{margin:.95rem 0 0;padding:0;list-style:none}.recent-list time{color:var(--muted);white-space:nowrap;font-size:.86rem}.primary-btn,.secondary-btn,.ghost-btn,.link-btn{border:none;border-radius:999px;justify-content:center;align-items:center;gap:.4rem;min-height:46px;padding:.72rem 1.2rem;transition:transform .15s,box-shadow .15s,background .15s,opacity .15s;display:inline-flex}.primary-btn:hover,.secondary-btn:hover,.ghost-btn:hover,.link-btn:hover{transform:translateY(-1px)}.primary-btn{background:linear-gradient(135deg, var(--teal-mid) 0%, var(--teal-dark) 100%);color:#fff;font-weight:700;box-shadow:0 10px 22px #4a0e1c47}.primary-btn:hover{box-shadow:0 14px 28px #4a0e1c57}.primary-btn:disabled{opacity:.65;box-shadow:none;transform:none}.secondary-btn{color:var(--teal-dark);background:#8a1c351f;border:1px solid #8a1c3529;font-weight:700}.ghost-btn{color:#f3e4b0;background:0 0;border:1px solid #f3e4b059;width:100%}.ghost-btn:hover{background:#f3e4b01a}.link-btn{color:var(--teal-dark);background:0 0;min-height:40px;padding:.35rem .55rem;font-weight:700}.link-btn.danger{color:var(--coral)}label{flex-direction:column;gap:.4rem;margin-bottom:.9rem;font-weight:650;display:flex}input,select{border:1px solid var(--line-strong);background:#ffffffeb;border-radius:14px;width:100%;min-height:48px;padding:.78rem .9rem;font-size:16px;transition:border-color .15s,box-shadow .15s}input:focus,select:focus{border-color:#8a1c358c;outline:none;box-shadow:0 0 0 4px #8a1c3524}.stack-form,.stack{flex-direction:column;gap:1rem;display:flex}.search-row,.row-actions,.manual-form{align-items:center;gap:.6rem;display:flex}.search-row{margin-bottom:1rem}.search-row input{flex:1;min-width:0}.row-actions{flex-wrap:wrap;justify-content:flex-end}.row-actions.wide{margin:.85rem 0}.row-actions.wide .primary-btn,.row-actions.wide .secondary-btn{width:100%}.table-wrap{-webkit-overflow-scrolling:touch;max-height:calc(100vh - 220px);overflow:auto}table{border-collapse:collapse;width:100%;min-width:520px}th,td{text-align:left;border-bottom:1px solid var(--line);vertical-align:middle;padding:.85rem .55rem}th{color:var(--muted);text-transform:uppercase;letter-spacing:.06em;z-index:10;background:#fff;font-size:.78rem;font-weight:700;position:sticky;top:0}.qr-preview{align-items:center;gap:1.1rem;display:flex}.qr-preview img{aspect-ratio:1;border:1px solid var(--line);width:min(180px,42vw);height:auto;box-shadow:var(--shadow);background:#fff;border-radius:16px;flex-shrink:0}.day-tabs{-webkit-overflow-scrolling:touch;scrollbar-width:thin;flex-wrap:nowrap;gap:.5rem;margin-bottom:.95rem;padding-bottom:.25rem;display:flex;overflow-x:auto}.day-tabs>*{flex:none}.day-tabs button{border:1px solid var(--line);white-space:nowrap;background:#ffffffbf;border-radius:999px;flex-shrink:0;min-height:42px;padding:.55rem 1rem;font-weight:650;transition:background .15s,color .15s,transform .15s}.day-tabs button:hover{transform:translateY(-1px)}.day-tabs button.active{background:linear-gradient(135deg, var(--teal-mid), var(--teal-dark));color:#fff;border-color:#0000;box-shadow:0 8px 18px #4a0e1c38}.progress-track{background:#0f2f2a14;border-radius:999px;width:140px;max-width:100%;height:9px;margin-bottom:.45rem;overflow:hidden}.progress-track span{background:linear-gradient(90deg, var(--sand), var(--teal-mid));border-radius:inherit;height:100%;display:block}.activity-meta{min-width:140px}.panel-heading-row{flex-wrap:wrap;justify-content:space-between;align-items:baseline;gap:.5rem 1rem;margin-bottom:.85rem;display:flex}.panel-heading-row h2{margin:0}.bus-bifurcation-grid{grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:.75rem;display:grid}.bus-bifurcation-card{border:1px solid var(--line);color:inherit;background:#ffffffb8;border-radius:14px;flex-direction:column;gap:.55rem;padding:1rem 1.05rem;text-decoration:none;transition:transform .15s,border-color .15s,box-shadow .15s;display:flex}.bus-bifurcation-card:hover{border-color:#8a1c3559;transform:translateY(-2px);box-shadow:0 12px 24px #0c292414}.bus-bifurcation-card.is-pending{background:#14231f0a}.bus-bifurcation-stats{flex-direction:column;gap:.1rem;display:flex}.bus-bifurcation-stats strong{font-size:1.65rem;line-height:1.1;font-family:var(--display,inherit)}.bus-bifurcation-stats span,.bus-bifurcation-cta{color:var(--muted);font-size:.86rem}.bus-bifurcation-cta{font-weight:600}.bus-bifurcation-bar,.bus-bifurcation-pill{display:none}.bus-split{flex-wrap:wrap;align-items:stretch;gap:.5rem;margin:.85rem 0 .35rem;display:flex}.bus-split-item{border:1px solid var(--line);color:inherit;cursor:pointer;font:inherit;background:#ffffffe0;border-radius:12px;align-items:center;gap:.5rem;min-height:44px;padding:.55rem .85rem;transition:border-color .15s,background .15s,transform .15s;display:inline-flex}.bus-split-item:hover{border-color:#8a1c3559;transform:translateY(-1px)}.bus-split-item.is-active{background:#8a1c3514;border-color:#8a1c3580;box-shadow:inset 0 0 0 1px #8a1c351f}.bus-split-count{color:var(--muted);white-space:nowrap;align-items:baseline;gap:.3rem;font-size:.86rem;font-weight:600;display:inline-flex}.bus-split-count strong{color:var(--ink);font-size:1.05rem;font-weight:750}.bus-split-refresh{border:1px solid var(--line);min-height:40px;font:inherit;color:var(--ink);cursor:pointer;background:#ffffffe6;border-radius:999px;margin-left:auto;padding:.45rem .9rem;font-weight:650}.bus-split-refresh:hover{border-color:#8a1c3559}.activity-bus-stats{flex-wrap:wrap;gap:.45rem .7rem;margin-top:.65rem;display:flex}.activity-bus-stat{color:var(--muted);align-items:center;gap:.35rem;font-size:.86rem;font-weight:600;display:inline-flex}.bus-badge{letter-spacing:.02em;border:1px solid #0000;border-radius:999px;justify-content:center;align-items:center;min-width:66px;padding:.3rem .72rem;font-size:.8rem;font-weight:800;display:inline-flex}.bus-badge.bus-1{color:#0d5a4b;background:#d7f4ec;border-color:#0d5a4b1f}.bus-badge.bus-2{color:#1d3f93;background:#e4edff;border-color:#1d3f931f}.bus-badge.bus-3{color:#87570f;background:#fff1d8;border-color:#87570f1f}.bus-badge.bus-4{color:#8a1d44;background:#fde5ed;border-color:#8a1d441f}.bus-badge.bus-5{color:#4a2d8d;background:#ebe5ff;border-color:#4a2d8d1f}.bus-badge.bus-none{color:var(--muted);background:#14231f14}.name-with-bus{flex-wrap:wrap;align-items:center;gap:.45rem;margin:.3rem 0 0;display:flex}.traveler-pick-top{justify-content:space-between;align-items:center;gap:.6rem;width:100%;display:flex}.page-count{margin:.45rem 0 0}.roster-layout{grid-template-columns:minmax(0,1.7fr) minmax(280px,.9fr);align-items:start;gap:1.1rem;display:grid}.roster-panel{overflow:hidden}.traveler-table{table-layout:fixed;min-width:760px}.traveler-table.no-bus{min-width:680px}.traveler-table .col-name{width:26%}.traveler-table .col-bus{text-align:center;width:11%}.traveler-table .col-status{text-align:center;width:13%}.traveler-table .col-phone{width:16%}.traveler-table .col-actions{text-align:right;width:34%}.traveler-table th,.traveler-table td{vertical-align:middle}.traveler-table .col-bus,.traveler-table .col-status{text-align:center}.traveler-table .col-bus .bus-badge,.traveler-table .col-status .status-pill{vertical-align:middle}.traveler-name{color:var(--ink);letter-spacing:.01em;text-overflow:ellipsis;white-space:nowrap;font-weight:700;display:block;overflow:hidden}.traveler-table .col-name .muted.small{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.traveler-table tbody tr{transition:background .15s}.traveler-table tbody tr:hover{background:#8a1c350d}.traveler-table tbody tr.is-selected{background:#8a1c351a}.traveler-table th.col-actions,.traveler-table td.col-actions{text-align:right;white-space:nowrap;padding-right:.75rem}.traveler-actions{flex-wrap:nowrap;justify-content:flex-end;align-items:center;gap:.35rem;width:100%;display:inline-flex}.traveler-actions .contact-actions{display:contents}.traveler-actions .contact-btn,.traveler-actions .chip-btn{white-space:nowrap;box-sizing:border-box;flex:none;justify-content:center;width:auto;min-width:0;height:32px;min-height:32px;margin:0;padding:0 .7rem;line-height:1}.chip-btn{color:var(--teal-dark);background:#8a1c351a;border:1px solid #8a1c352e;border-radius:999px;justify-content:center;align-items:center;min-height:36px;padding:.4rem .85rem;font-size:.86rem;font-weight:750;transition:transform .15s,background .15s,border-color .15s;display:inline-flex}.chip-btn:hover{background:#8a1c3529;transform:translateY(-1px)}.chip-btn.danger{color:var(--coral);background:#c4573a14;border-color:#c4573a29}.chip-btn.danger:hover{background:#c4573a24}.contact-actions{flex-wrap:wrap;align-items:center;gap:.4rem;display:inline-flex}.contact-btn{border:1px solid #0000;border-radius:999px;justify-content:center;align-items:center;min-height:34px;padding:.35rem .75rem;font-size:.82rem;font-weight:750;text-decoration:none;transition:transform .15s,background .15s;display:inline-flex}.contact-btn:hover{transform:translateY(-1px)}.contact-btn.call{color:var(--teal-dark);background:#8a1c351a;border-color:#8a1c352e}.contact-btn.whatsapp{color:#0b6b34;background:#25d36624;border-color:#25d36659}.contact-actions.is-compact .contact-btn{box-sizing:border-box;height:32px;min-height:32px;padding:0 .65rem;font-size:.78rem;line-height:1}.row-actions{justify-content:flex-end;gap:.45rem}.empty-row{color:var(--muted);text-align:center!important;padding:2rem 1rem!important}.sticky-panel{position:sticky;top:1.2rem}.qr-empty{text-align:center;place-items:center;gap:.75rem;min-height:220px;padding:1rem .5rem;display:grid}.qr-empty-mark{width:72px;height:72px;color:var(--teal-dark);background:linear-gradient(160deg,#f4e6cfe6,#8a1c3524);border:1px solid #8a1c351f;border-radius:18px;place-items:center;font-family:Fraunces,Georgia,serif;font-weight:700;display:grid}.qr-meta{flex-direction:column;align-items:flex-start;gap:.35rem;display:flex}.qr-meta .secondary-btn{margin-top:.35rem}.status-pill{white-space:nowrap;border-radius:999px;justify-content:center;align-items:center;padding:.28rem .7rem;font-size:.82rem;font-weight:750;display:inline-flex}.status-pill.ok{color:var(--ok);background:#1a7a641f}.status-pill.miss{color:var(--coral);background:#c4573a1f}.row-present{background:#1a7a640a}.row-absent{background:#c4573a08}.camera-stage{background:#2a0a120f;border-radius:18px;min-height:120px;margin-top:.85rem;position:relative;overflow:hidden}.camera-stage:has(.camera-feedback){min-height:240px}.camera-stage:has(.qr-reader.is-active){background:#2a0a12;min-height:260px}.camera-stage .qr-reader{margin-top:0}.camera-feedback{z-index:5;text-align:center;cursor:pointer;border:none;flex-direction:column;justify-content:center;align-items:center;gap:.45rem;width:100%;padding:1.2rem;animation:.25s feedbackIn;display:flex;position:absolute;inset:0}.camera-feedback-tap{background:#ffffff2e;border-radius:999px;margin:.55rem 0 0;padding:.45rem .9rem;font-size:.9rem;font-weight:750}.camera-feedback.done{color:#f3fff8;background:#0f5a3aeb}.camera-feedback.already{color:#fff8ea;background:#7a4e0ceb}.camera-feedback.error{color:#fff5f5;background:#7a1c1ceb}.camera-feedback-label{letter-spacing:.02em;margin:0;font-family:Fraunces,Georgia,serif;font-size:clamp(1.6rem,5vw,2.2rem);font-weight:700}.camera-feedback-name{margin:0;font-size:1.15rem;font-weight:750}.camera-feedback-note{opacity:.92;max-width:280px;margin:.15rem 0 0;font-size:.92rem}@keyframes feedbackIn{0%{opacity:0;transform:scale(.96)}to{opacity:1;transform:scale(1)}}.qr-reader{background:0 0;border-radius:18px;min-height:0;margin-top:.85rem;overflow:hidden}.qr-reader.is-active{min-height:260px;box-shadow:var(--shadow-lg);background:#2a0a12}.qr-reader video{border-radius:18px;width:100%!important}#qr-reader__dashboard_section,#qr-reader__dashboard_section_csr,#qr-reader__header_message,#qr-reader__status_span,#qr-reader__scan_region>img{display:none!important}#qr-reader__scan_region{min-height:0!important}#qr-reader__scan_region video{object-fit:cover}.scan-status{color:var(--muted);margin:.8rem 0 0;font-weight:650}.manual-checkin{border:1px dashed color-mix(in srgb, var(--teal) 35%, var(--line));background:color-mix(in srgb, var(--sand-soft) 35%, #fff);border-radius:16px;margin-top:1.15rem;padding:.95rem 1rem}.manual-checkin-head h3{margin:0;font-size:1rem;font-weight:750}.manual-checkin-head .muted.small{margin:.25rem 0 .75rem}.manual-form{align-items:stretch;gap:.6rem;display:flex}.manual-select-wrap{flex:1;min-width:0;margin:0}.manual-select-wrap select{width:100%;min-height:46px}.manual-form .secondary-btn{white-space:nowrap;flex-shrink:0}.sr-only{clip:rect(0, 0, 0, 0);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.traveler-pick-title{margin:1.35rem 0 .75rem;font-size:1.15rem}.traveler-pick-list{gap:.55rem;max-height:360px;padding-right:.15rem;display:grid;overflow:auto}.traveler-pick-item{border:1px solid var(--line);background:linear-gradient(#fffc,#edf4f0bf);border-radius:16px;gap:.45rem;padding:.7rem .85rem .75rem;display:grid}.traveler-pick-item.is-scanned{background:linear-gradient(#1f7a5524,#1f7a550f);border-color:#1f7a5547}.traveler-pick-btn{text-align:left;background:0 0;border:0;flex-direction:column;gap:.2rem;width:100%;min-height:44px;padding:0;transition:transform .15s;display:flex}.traveler-pick-btn.is-readonly{cursor:default;pointer-events:none}.traveler-pick-actions{flex-wrap:wrap;align-items:center;gap:.4rem;display:flex}.traveler-pick-actions .contact-actions{display:contents}.traveler-pick-actions .contact-btn,.traveler-pick-actions .chip-btn{min-height:36px}.traveler-pick-btn span{color:var(--muted);font-size:.9rem}.traveler-pick-btn:disabled{opacity:.7;cursor:default}.traveler-pick-btn:not(:disabled):active{transform:scale(.995)}.traveler-pick-meta{flex-wrap:wrap;align-items:center;gap:.45rem;display:flex}.scan-state{border-radius:999px;justify-content:center;align-items:center;min-width:72px;padding:.28rem .65rem;font-size:.78rem;font-weight:800;display:inline-flex}.scan-state.ok{color:#146246;background:#1f7a5524}.scan-state.wait{color:#8a5a10;background:#b7791f24}.scan-target-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:.75rem;margin-bottom:.85rem;display:grid}.scan-target-card{text-align:left;border:1px solid var(--line);cursor:pointer;font:inherit;color:inherit;background:#ffffffb8;border-radius:16px;gap:.45rem;padding:.85rem .9rem;transition:border-color .2s,box-shadow .2s,background .2s,transform .2s;display:grid}.scan-target-card:hover{border-color:color-mix(in srgb, var(--teal) 35%, var(--line));transform:translateY(-1px)}.scan-target-card.is-active{border-color:color-mix(in srgb, var(--teal) 55%, var(--line));background:color-mix(in srgb, var(--sand-soft) 55%, #fff);box-shadow:0 10px 24px #4a0e1c1a}.scan-target-label{letter-spacing:.06em;text-transform:uppercase;color:var(--teal-dark);font-size:.72rem;font-weight:750}.scan-target-card label{margin:0}.scan-target-card select{width:100%;min-height:44px;margin-top:.15rem}.scan-target-hint{color:var(--muted);margin:0;font-size:.8rem;line-height:1.35}.scan-target-card.is-active .scan-target-hint{color:var(--teal-dark);font-weight:650}.scan-summary{flex-wrap:wrap;gap:.5rem;margin:.85rem 0 .2rem;display:flex}.scan-pill{border-radius:999px;align-items:center;padding:.35rem .75rem;font-size:.82rem;font-weight:750;display:inline-flex}.scan-pill.mode{background:color-mix(in srgb, var(--teal) 14%, #fff);color:var(--teal-dark);border:1px solid color-mix(in srgb, var(--teal) 22%, transparent)}.scan-pill.elsewhere{color:#475569;background:#64748b24}.scan-pill.refresh{border:1px solid var(--line);color:var(--ink);cursor:pointer;font:inherit;background:#fff;font-size:.82rem;font-weight:750}.scan-pill.refresh:hover{border-color:color-mix(in srgb, var(--teal) 40%, var(--line))}.scan-live-hint{margin:.35rem 0 .65rem}.scan-pill.pending{color:#8a5a10;background:#b7791f24}.scan-pill.scanned{color:#146246;background:#1f7a5524}@media (width<=720px){.scan-target-grid{grid-template-columns:1fr}}.activity-chip{color:var(--muted);margin:.45rem 0 0;font-weight:550}.scan-result{border:1px solid var(--line);border-radius:16px;margin-top:.85rem;padding:1.05rem}.scan-result.ok{background:linear-gradient(#8a1c3524,#8a1c350f);border-color:#8a1c3538}.scan-result.warn{background:linear-gradient(#b7791f29,#b7791f12);border-color:#b7791f38}.result-badge{text-transform:uppercase;letter-spacing:.06em;margin:0 0 .4rem;font-size:.74rem;font-weight:750}.login-page{place-items:center;min-height:100dvh;padding:1.1rem;display:grid;position:relative;overflow:hidden}.login-backdrop{background:linear-gradient(125deg,#1a060be0,#4a0e1cb8 45%,#d4af3747),url(https://images.unsplash.com/photo-1519167758481-83f15083c2c8?auto=format&fit=crop&w=1600&q=80) 50%/cover;animation:16s ease-in-out infinite alternate drift;position:absolute;inset:0;transform:scale(1.03)}.login-backdrop:after{content:"";background:radial-gradient(circle at 20% 20%,#d4af3738,#0000 35%),radial-gradient(circle at 80% 80%,#6a142840,#0000 40%);position:absolute;inset:0}@keyframes drift{0%{transform:scale(1.03)translateY(0)}to{transform:scale(1.08)translateY(-14px)}}.login-card{width:min(430px,100%);box-shadow:var(--shadow-lg);padding:1.85rem 1.7rem;animation:.5s cubic-bezier(.22,1,.36,1) rise;position:relative}.login-brand{text-align:center;flex-direction:column;align-items:center;gap:.35rem;margin-bottom:1rem;display:flex}.login-logo{object-fit:contain;width:110px;height:110px;box-shadow:none;background:0 0;border-radius:0;margin-bottom:.35rem;padding:0}.login-card .brand-mark{color:var(--teal-dark);font-size:1.85rem}.brand-tagline{color:#b8922d;margin:0;font-size:.95rem;font-weight:600}.login-card h1{text-align:center;margin:.45rem 0 .4rem;font-size:clamp(1.5rem,5vw,1.9rem)}.login-card>.muted{text-align:center}.login-card .primary-btn{width:100%;margin-top:.25rem}.hint{color:var(--muted);text-align:center;margin:1rem 0 0;font-size:.92rem}@media (width<=1100px){.split-grid,.scan-layout,.travelers-layout,.roster-layout{grid-template-columns:1fr}.stat-grid.compact{max-width:none}}@media (width<=980px){.app-shell{height:auto;min-height:100dvh;padding-bottom:calc(var(--bottom-nav-h) + env(safe-area-inset-bottom,0px) + .5rem);grid-template-columns:1fr;overflow:visible}.mobile-topbar{z-index:40;min-height:var(--topbar-h);padding:.55rem .8rem;padding-top:calc(.55rem + env(safe-area-inset-top,0px));color:#f8f1f3;background:radial-gradient(circle at 85% 0,#d4af3738,#0000 40%),linear-gradient(#5a1326,#2a0a12);align-items:center;gap:.65rem;display:flex;position:sticky;top:0;box-shadow:0 10px 28px #2a0a123d}.menu-toggle{background:#ffffff14;border:1px solid #fff3;border-radius:12px;flex-direction:column;flex-shrink:0;justify-content:center;gap:5px;width:44px;height:44px;padding:0 11px;display:inline-flex}.menu-toggle span{background:#f3e4b0;border-radius:999px;width:100%;height:2px;transition:transform .2s,opacity .2s;display:block}.menu-open .menu-toggle span:first-child{transform:translateY(7px)rotate(45deg)}.menu-open .menu-toggle span:nth-child(2){opacity:0}.menu-open .menu-toggle span:nth-child(3){transform:translateY(-7px)rotate(-45deg)}.mobile-brand{flex:1;align-items:center;gap:.55rem;min-width:0;display:flex}.mobile-brand>div{min-width:0}.mobile-brand .brand-mark{white-space:nowrap;text-overflow:ellipsis;font-size:1rem;line-height:1.1;overflow:hidden}.mobile-brand .brand-sub{white-space:nowrap;text-overflow:ellipsis;margin:0;font-size:.7rem;overflow:hidden}.mobile-scan-btn{color:#f3e4b0;background:linear-gradient(135deg,#d4af374d,#d4af371f);border:1px solid #f3e4b047;border-radius:999px;flex-shrink:0;align-items:center;min-height:42px;padding:.5rem .85rem;font-weight:750;display:inline-flex}.nav-backdrop{z-index:45;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);background:#08181480;border:none;display:block;position:fixed;inset:0}.sidebar{z-index:50;width:min(300px,86vw);padding-top:calc(1rem + env(safe-area-inset-top,0px));transition:transform .28s cubic-bezier(.22,1,.36,1);position:fixed;top:0;bottom:0;left:0;transform:translate(-105%);box-shadow:16px 0 48px #00000047}.menu-open .sidebar{transform:translate(0)}.desktop-only{display:none}.sidebar-footer{display:block}.mobile-bottom-nav{z-index:35;min-height:var(--bottom-nav-h);padding:.35rem .4rem calc(.35rem + env(safe-area-inset-bottom,0px));-webkit-backdrop-filter:blur(16px)saturate(1.2);backdrop-filter:blur(16px)saturate(1.2);background:#fffffff0;border-top:1px solid #ffffffb3;grid-template-columns:repeat(4,1fr);display:grid;position:fixed;bottom:0;left:0;right:0;box-shadow:0 -12px 32px #0c29241a}.mobile-bottom-nav a{color:var(--muted);border-radius:14px;flex-direction:column;justify-content:center;align-items:center;gap:.15rem;min-height:52px;padding:.35rem .15rem;font-size:.7rem;font-weight:750;transition:background .15s,color .15s;display:flex}.mobile-bottom-nav a.active{color:var(--teal-dark);background:#8a1c351f}.mobile-bottom-nav .bottom-scan{color:var(--teal)}.nav-icon{font-size:1.08rem;line-height:1}.main-panel{height:auto;padding:.95rem .85rem 1.35rem;overflow:visible}.page-header{flex-direction:column;align-items:stretch;gap:.85rem}.page-header .primary-btn,.page-header .secondary-btn,.header-actions,.header-actions .primary-btn,.header-actions .secondary-btn{width:100%}.sticky-panel{position:static}input,select,textarea,button{max-width:100%}input,select,textarea{font-size:16px}label{width:100%}.day-row,.activity-row,.recent-list li{flex-direction:column;align-items:flex-start}.day-metric,.activity-meta{text-align:left;width:100%;min-width:0}.progress-track{width:100%}.recent-list time{white-space:normal}.search-row,.manual-form{flex-direction:column;align-items:stretch}.search-row .secondary-btn,.manual-form .secondary-btn,.manual-form .primary-btn{width:100%}.qr-preview{flex-direction:column;align-items:flex-start}.qr-preview img{width:min(220px,70vw)}.qr-preview .secondary-btn,.qr-meta .secondary-btn,.qr-meta .contact-actions{width:100%}.qr-meta .contact-actions .contact-btn{flex:1;justify-content:center}.traveler-table th:last-child,.traveler-table td:last-child{text-align:left}.row-actions{justify-content:flex-start}.traveler-table{table-layout:auto;min-width:0}.traveler-table .col-bus,.traveler-table .col-status,.traveler-table .col-phone,.traveler-table .col-actions{text-align:left;width:auto}.traveler-table .col-bus .bus-badge,.traveler-table .col-status .status-pill{margin:0}.traveler-table th.col-actions,.traveler-table td.col-actions{text-align:left;white-space:normal}.traveler-actions{flex-wrap:wrap;justify-content:flex-start;width:100%}.table-wrap{max-height:none;overflow:visible}table{width:100%;min-width:0}.table-wrap table,.table-wrap thead,.table-wrap tbody,.table-wrap th,.table-wrap td,.table-wrap tr{display:block}.table-wrap thead{clip:rect(0 0 0 0);width:1px;height:1px;position:absolute;overflow:hidden}.table-wrap tr{border:1px solid var(--line);background:linear-gradient(#ffffffe6,#f4f8f6d9);border-radius:16px;margin-bottom:.75rem;padding:.9rem .95rem;box-shadow:0 6px 16px #0c29240d}.table-wrap tr.is-selected{background:#8a1c3514;border-color:#8a1c3559}.table-wrap td{border:none;padding:.28rem 0}.table-wrap td:before{content:attr(data-label);color:var(--muted);text-transform:uppercase;letter-spacing:.05em;margin-bottom:.12rem;font-size:.72rem;font-weight:750;display:block}.table-wrap td:not([data-label]):before,.table-wrap td[data-label=""]:before{display:none}.table-wrap .row-actions,.table-wrap .traveler-actions{justify-content:flex-start;gap:.4rem;width:100%;margin-top:.4rem}.table-wrap .traveler-actions .contact-btn,.table-wrap .traveler-actions .chip-btn{flex:none}.qr-reader.is-active{min-height:min(58vw,320px)}.camera-stage:has(.qr-reader.is-active){min-height:min(58vw,320px)}.camera-stage:has(.camera-feedback){min-height:min(58vw,280px)}.camera-feedback{padding:1rem .85rem}.camera-feedback-note{max-width:100%}.traveler-pick-list{max-height:none}.login-page{padding:calc(1rem + env(safe-area-inset-top,0px)) 1rem calc(1rem + env(safe-area-inset-bottom,0px));align-items:start;overflow:auto}.login-card{margin:auto 0}}@media (width<=640px){.stat-grid{grid-template-columns:1fr;gap:.7rem}.stat-tile{justify-content:space-between;align-items:center;padding:.9rem .95rem;display:flex}.stat-value{margin:0;font-size:1.55rem}.panel{border-radius:18px;padding:.95rem .9rem}.page-header h1{font-size:1.55rem}.mobile-brand .brand-sub{display:none}.brand-logo.mobile{width:44px;height:44px}.mobile-scan-btn{padding:.45rem .75rem;font-size:.9rem}.day-tabs button{min-height:40px;padding:.5rem .85rem}.login-logo{width:88px;height:88px}.login-card{padding:1.25rem 1.05rem}.login-card .brand-mark{font-size:1.55rem}.contact-btn,.chip-btn{min-height:40px}}@media (width<=380px){.mobile-bottom-nav a{padding:.3rem .05rem;font-size:.64rem}.nav-icon{font-size:1rem}.stat-label{font-size:.84rem}}.confirm-overlay{z-index:1200;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);background:#2a0a1280;place-items:center;padding:1.1rem;display:grid;position:fixed;inset:0}.confirm-dialog{border:1px solid var(--line);width:min(400px,100%);box-shadow:var(--shadow-lg);background:#fff;border-radius:20px;padding:1.25rem 1.2rem 1.1rem}.confirm-dialog h2{color:var(--ink);margin:0;font-size:1.15rem;font-weight:800}.confirm-message{color:var(--muted);margin:.5rem 0 0;font-size:.94rem;line-height:1.45}.confirm-actions{flex-wrap:wrap;justify-content:flex-end;gap:.55rem;margin-top:1.15rem;display:flex}.confirm-danger-btn{background:linear-gradient(135deg, var(--teal-mid), var(--teal-dark))!important}
