:root{font-family:Inter,system-ui,-apple-system,"Segoe UI",sans-serif;background:#edf3f8;color:#172b43;font-synthesis:none}*{box-sizing:border-box}body{margin:0;min-height:100vh}.shell{max-width:500px;margin:auto;padding:18px 14px calc(40px + env(safe-area-inset-bottom))}header{background:linear-gradient(135deg,#142e48,#1e4e70);color:#fff;padding:23px 21px;border-radius:20px;margin-bottom:12px;box-shadow:0 10px 25px #18395426}.eyebrow{letter-spacing:2px;font-size:11px;color:#b9d7eb}h1{font-size:25px;margin:8px 0}.sub{font-size:12px;color:#d8e7f2;margin:0}.toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px}.toolbar select{width:auto;min-width:170px;margin:0}.panel{background:#fff;border:1px solid #dce4ea;border-radius:18px;padding:19px;margin:14px 0;box-shadow:0 4px 16px #1330490a}.identity{display:grid;gap:3px}.identity strong{font-size:20px}.code{font:600 12px ui-monospace,monospace;color:#557088}label{display:block;font-size:13px;font-weight:750;margin:5px 0 7px}input:not([type=checkbox]),select{width:100%;min-height:46px;padding:11px 12px;border:1px solid #b9cad7;border-radius:10px;margin-bottom:14px;background:#fff;color:#172b43;font-size:16px}input:focus,select:focus,button:focus-visible{outline:3px solid #63aee555;outline-offset:2px;border-color:#377cac}.status-line{display:flex;justify-content:center;align-items:center;gap:9px;letter-spacing:1px;padding:12px;border-radius:11px;background:#eaf0f5;margin-bottom:15px}.dot{width:10px;height:10px;border-radius:50%;background:#8193a3}.working .dot{background:#16a366;box-shadow:0 0 0 5px #16a36620}.active-summary{display:grid;gap:3px;padding:15px;border:1px solid #cae7d8;background:#f3fbf7;border-radius:12px;margin-bottom:16px}.active-summary strong{font-size:19px}.elapsed{font:800 29px ui-monospace,SFMono-Regular,monospace;color:#126943;margin:8px 0 2px}.gps-row{display:flex;gap:10px;align-items:flex-start;font-weight:600}.gps-row input{width:20px;height:20px;margin:0;flex:none}.actions{display:grid;gap:10px;margin-top:14px}button{min-height:47px;padding:12px 15px;border:0;border-radius:10px;color:#fff;font-weight:800;cursor:pointer;font-size:15px}button:disabled{opacity:.38;cursor:not-allowed}.primary{width:100%;background:#1b5f91}.green{background:#168a59}.red{background:#c44545}.blue{background:#306caa}.text-button{min-height:36px;background:transparent;color:#2d628c;padding:6px 4px}.help,footer,.muted{font-size:12px;color:#607388}.help{text-align:center}footer{text-align:center;margin-top:18px}.section-title{display:flex;align-items:center;justify-content:space-between;gap:12px}.section-title h2{margin:0}.history{display:grid;gap:10px;margin-top:12px}.history-card{border:1px solid #dce4ea;border-radius:12px;padding:13px}.history-top{display:flex;justify-content:space-between;gap:10px}.history-card strong{font-size:14px}.history-card ul{list-style:none;margin:9px 0 0;padding:8px 0 0;border-top:1px solid #edf1f4;font-size:12px;color:#53697c}.history-card li{margin:5px 0}.message{border-radius:11px;padding:12px 14px;margin:12px 0;font-size:14px;font-weight:650}.message.success{background:#eaf8f0;color:#126943;border:1px solid #bce2cb}.message.error{background:#fff0f0;color:#982f2f;border:1px solid #efc7c7}.hidden{display:none!important}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}h2{font-size:18px;margin:0 0 14px}
.admin-shell{margin-left:calc((500px - min(1180px,100vw - 28px))/2);margin-right:calc((500px - min(1180px,100vw - 28px))/2)}.filters{display:grid;grid-template-columns:1fr 1fr auto;gap:12px;align-items:end}.filters input,.filters select{margin:0}.filters button{width:auto}.metric-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:10px}.metric{background:#fff;border:1px solid #dce4ea;border-radius:15px;padding:15px;box-shadow:0 4px 16px #1330490a;min-height:105px;display:flex;flex-direction:column;justify-content:space-between}.metric span{font-size:12px;color:#607388;font-weight:700}.metric strong{font-size:28px;color:#173f60}.metric.warning{border-color:#efd69f;background:#fffaf0}.metric.warning strong{color:#a66b00}.wide-panel h2{margin-bottom:12px}.table-scroll{overflow-x:auto;border:1px solid #e1e8ed;border-radius:11px}table{width:100%;border-collapse:collapse;min-width:850px;font-size:13px}th,td{text-align:left;padding:11px 12px;border-bottom:1px solid #e8edf1;vertical-align:top}th{background:#f3f7fa;color:#4c6478;font-size:11px;text-transform:uppercase;letter-spacing:.04em}tbody tr:last-child td{border-bottom:0}.status-badge{display:inline-block;border-radius:999px;padding:4px 8px;font-size:11px;font-weight:800;background:#eaf0f5;color:#526779}.status-badge.working{background:#e6f7ee;color:#087448}.status-badge.clocked_out{background:#edf3fa;color:#245e8c}.hours-value{font:700 12px ui-monospace,monospace;white-space:nowrap}
@media(min-width:700px){.shell{padding-top:30px}.admin-shell .identity{max-width:none}}@media(max-width:760px){.admin-shell{margin:0}.filters{grid-template-columns:1fr}.filters button{width:100%}.metric-grid{grid-template-columns:repeat(2,1fr)}.metric:last-child{grid-column:span 2}.wide-panel{padding:14px}.table-scroll{border:0;overflow:visible}table{min-width:0}thead{display:none}tbody,tr,td{display:block}tr{border:1px solid #dce4ea;border-radius:12px;padding:9px;margin-bottom:10px}td{display:grid;grid-template-columns:120px 1fr;gap:8px;border:0;padding:5px 4px}td::before{content:attr(data-label);font-size:10px;text-transform:uppercase;color:#718494;font-weight:800}}
.admin-topbar{display:flex;align-items:center;justify-content:space-between;gap:20px;position:sticky;top:8px;z-index:10}.admin-nav{display:flex;gap:5px;overflow-x:auto;padding-bottom:2px}.nav-button{background:transparent;color:#36576f;min-height:38px;padding:9px 12px;white-space:nowrap}.nav-button.active{background:#173f60;color:#fff}.section-head{display:flex;justify-content:space-between;align-items:center;gap:16px}.section-head h2{margin-bottom:4px}.section-head p{margin:0}.section-head button{width:auto}.timesheet-filters{grid-template-columns:repeat(4,1fr) auto}.action-row{display:flex;gap:7px;flex-wrap:wrap}.small-button{min-height:34px;padding:7px 10px;font-size:12px}.secondary{background:#e7eef4;color:#24465f}.danger{background:#b83c3c}.notice{padding:12px;border-radius:10px;background:#fff8e6;border:1px solid #eed69c;color:#72520a;font-size:13px}.empty-state{text-align:center;color:#607388;padding:25px!important}.system-info{display:grid;grid-template-columns:max-content 1fr;gap:10px 20px}.system-info dt{font-weight:800}.system-info dd{margin:0}dialog{width:min(720px,calc(100vw - 24px));max-height:calc(100vh - 24px);border:0;border-radius:18px;padding:0;box-shadow:0 24px 80px #102c4670}dialog::backdrop{background:#102c4670}.dialog-form{padding:20px}.dialog-head{background:none;color:#172b43;padding:0;border-radius:0;margin:0 0 18px;display:flex;align-items:center;justify-content:space-between}.dialog-head h2{margin:0}.dialog-close{background:transparent;color:#496579;font-size:28px;line-height:1;min-height:36px;padding:0 8px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 14px}.span-2{grid-column:span 2}textarea{width:100%;min-height:90px;padding:11px 12px;border:1px solid #b9cad7;border-radius:10px;margin-bottom:14px;font:inherit;color:#172b43;resize:vertical}.dialog-actions{display:flex;justify-content:flex-end;gap:10px}.dialog-actions button{min-width:120px}.loading{opacity:.55;pointer-events:none}.status-badge.active{background:#e6f7ee;color:#087448}.status-badge.inactive,.status-badge.archived{background:#f2f2f2;color:#666}.status-badge.on_hold{background:#fff3d6;color:#8b6200}.status-badge.completed{background:#e8eff9;color:#315d8a}.status-badge.activation_pending{background:#fff3d6;color:#8b6200}
@media(min-width:700px){.shell:has(.admin-shell:not(.hidden)){max-width:1220px}.shell:has(.admin-shell:not(.hidden)) .admin-shell{margin-left:0;margin-right:0}.admin-view{min-width:0}}
@media(max-width:900px){.admin-topbar{position:static;display:block}.admin-nav{margin-top:14px}.timesheet-filters{grid-template-columns:1fr 1fr}}
@media(max-width:760px){.section-head{align-items:stretch;flex-direction:column}.section-head button{width:100%}.form-grid{grid-template-columns:1fr}.span-2{grid-column:span 1}.dialog-actions{flex-direction:column-reverse}.dialog-actions button{width:100%}.timesheet-filters{grid-template-columns:1fr}.admin-nav{margin-left:-4px;margin-right:-4px}.system-info{grid-template-columns:1fr;gap:3px}.system-info dd{margin-bottom:10px}}
.pin-keypad{display:grid;grid-template-columns:repeat(3,1fr);gap:9px;margin:4px 0 16px}.pin-keypad button{background:#e7eef4;color:#173f60;font-size:22px;min-height:54px}.pin-keypad button[data-pin-key="clear"]{color:#a22f2f}.pin-keypad.compact{max-width:360px;margin-left:auto;margin-right:auto}.access-actions{display:flex;gap:6px;flex-wrap:wrap}.invite-link{font-family:ui-monospace,monospace}.status-badge.blocked{background:#fff0f0;color:#9b3030}.status-badge.revoked{background:#f2f2f2;color:#666}.status-badge.legacy_password{background:#e8eff9;color:#315d8a}
.environment-banner{position:sticky;top:0;z-index:20;margin:0 0 10px;padding:8px 12px;border-radius:10px;background:#b83c3c;color:#fff;font-weight:800;font-size:13px;text-align:center;letter-spacing:.04em}
.week-nav{display:flex;align-items:center;gap:4px}.week-nav .text-button{font-size:20px;min-width:36px}.my-hours-totals{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:12px 0}.my-hours-totals .month-total{grid-column:1/-1;background:#173f60;border-color:#173f60}.my-hours-totals .month-total span{color:#d8e7f2;font-weight:700}.my-hours-totals .month-total strong{color:#fff;font-size:26px}.my-hours-totals div{display:grid;gap:3px;padding:12px;border-radius:12px;background:#f3f7fa;border:1px solid #dce4ea}.my-hours-totals strong{font:800 22px ui-monospace,SFMono-Regular,monospace;color:#173f60}details.history-card summary{cursor:pointer;font-weight:750;font-size:14px}details.history-card p{margin:8px 0 4px}.install-steps{margin:8px 0 12px;padding-left:22px;font-size:14px}.install-steps li{margin:6px 0}
.gps-address{display:grid;gap:2px;margin:4px 0 8px;padding:8px 10px;border-radius:8px;background:#f3f7fa;font-size:14px}.gps-address strong{font-size:12px;text-transform:uppercase;letter-spacing:.04em;color:#36576f}.gps-address small{font-size:11px;margin-top:4px}.gps-address .gps-street{font-size:16px;font-weight:800;color:#172b43}.gps-address .notice-inline{color:#72520a;font-weight:700}.gps-compare{width:100%;margin-top:10px;border-collapse:collapse;font-size:13px}.gps-compare th,.gps-compare td{text-align:left;padding:5px 6px;border-bottom:1px solid #e3eaf0}.gps-compare .compare-match td:last-child{color:#126943;font-weight:700}.gps-compare .compare-different td{background:#fff4e5}.gps-compare .compare-different td:last-child{color:#9b3030;font-weight:800}.gps-compare .compare-missing td:last-child{color:#607388}
.gps-reference{display:grid;gap:2px;margin-top:10px;padding:8px 10px;border:1px dashed #b9cad7;border-radius:8px;background:#fff}.gps-attribution{font-weight:800;color:#1b5f91}
.gps-events{display:grid;gap:10px;margin-bottom:14px}.gps-event{border:1px solid #d5e1ea;border-left:4px solid #2c7a4b;border-radius:10px;padding:10px 12px}.gps-event h3{margin:0 0 6px;font-size:15px}.gps-event p{margin:0 0 6px}.gps-event.gps-approximate{border-left-color:#c58a00}.gps-map-link{display:inline-block;text-decoration:none;border-radius:10px;color:#fff}

.view-toggle{display:grid;grid-template-columns:1fr 1fr;gap:4px;padding:4px;border-radius:12px;background:#eaf0f5;margin:4px 0 10px}.view-toggle button{min-height:40px;background:transparent;color:#2d628c;font-size:14px}.view-toggle button[aria-pressed=true]{background:#fff;color:#173f60;box-shadow:0 1px 4px #13304922}.hours-calendar{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px;margin-top:6px}.hours-weekday{text-align:center;font-size:11px;font-weight:750;color:#607388;padding:2px 0}.hours-cell{min-height:68px;min-width:0;padding:6px 1px 7px;display:flex;flex-direction:column;align-items:center;justify-content:space-between;gap:4px;background:#f6f9fb;color:#172b43;border:1px solid #e1e8ee;border-radius:10px;font-weight:650;position:relative;overflow:hidden}.hours-cell:disabled{opacity:.35}.hours-cell.worked{background:#eaf5ef;border-color:#bfe0cc}.hours-cell.today{border:2px solid #1b5f91}.hours-cell[aria-pressed=true]{background:#1b5f91;border-color:#1b5f91;color:#fff}.hours-cell.adjusted::after{content:"";position:absolute;top:4px;right:4px;width:6px;height:6px;border-radius:50%;background:#d48a1c}.hours-cell-day{font-size:14px;line-height:1}.hours-cell-hours{max-width:100%;font-size:clamp(10px,2.9vw,13px);font-weight:800;line-height:1.1;color:#126943;white-space:nowrap;font-variant-numeric:tabular-nums;letter-spacing:-.2px}.hours-cell[aria-pressed=true] .hours-cell-hours{color:#fff}.hours-day .hours-total{font-weight:750;color:#173f60}.hours-day li.hours-shift{font-weight:700;color:#172b43}.hours-day li.hours-transfer{color:#2d628c}.hours-day li.hours-break{color:#8a5a12}.hours-adjusted{margin-top:10px;padding:10px;border-radius:10px;background:#fff8ec;border:1px solid #f0d9b0}.hours-adjusted p{margin:4px 0}@media (min-width:700px){.hours-cell{min-height:76px}}@media (max-width:360px){#my-hours-panel{padding-left:10px;padding-right:10px}.hours-calendar{gap:2px}.hours-cell{min-height:62px}.hours-cell-hours{font-size:10px;letter-spacing:-.4px}}
.status-badge.invite-pending{background:#fff3d6;color:#8b6200}.status-badge.invite-activated{background:#e6f7ee;color:#087448}.status-badge.invite-expired{background:#fff0f0;color:#9b3030}.status-badge.invite-revoked{background:#f2f2f2;color:#666}.invite-when{display:block;margin-top:4px;font-size:11px;color:#607388}.invite-employee{font-weight:800;margin:0 0 6px}textarea.invite-message{min-height:150px;font:14px/1.45 ui-monospace,SFMono-Regular,monospace;white-space:pre-wrap;overflow-wrap:anywhere;background:#f6f9fb}
.admin-menu-toggle,.admin-nav-backdrop{display:none}@media(max-width:900px){.admin-nav{flex-wrap:wrap}}@media(max-width:760px){.shell:has(.admin-shell:not(.hidden))>header{display:none}.admin-topbar{position:sticky;top:0;z-index:30;display:flex;align-items:center;gap:10px;padding:8px;margin:0 0 12px;border-radius:14px}.admin-topbar .identity{display:none}.admin-menu-toggle{display:flex;align-items:center;gap:10px;width:100%;min-height:48px;padding:10px 14px;background:#173f60;color:#fff;font-size:16px;text-align:left}.admin-menu-toggle .menu-icon{font-size:20px;line-height:1}.admin-current-view{margin-left:auto;font-weight:650;opacity:.85;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}.admin-nav{position:fixed;top:0;left:0;bottom:0;z-index:50;width:min(300px,84vw);margin:0;padding:calc(16px + env(safe-area-inset-top)) 12px calc(16px + env(safe-area-inset-bottom));display:flex;flex-direction:column;flex-wrap:nowrap;gap:4px;overflow-y:auto;background:#fff;box-shadow:8px 0 30px #102c4640;transform:translateX(-105%);visibility:hidden;transition:transform .2s ease,visibility 0s linear .2s}.admin-shell.menu-open .admin-nav{transform:none;visibility:visible;transition:transform .2s ease}.admin-nav .nav-button{width:100%;min-height:48px;text-align:left;font-size:16px;white-space:normal}.admin-shell.menu-open .admin-nav-backdrop{display:block;position:fixed;inset:0;z-index:40;background:#102c4670}.small-button{min-height:44px;padding:10px 14px;font-size:14px}.action-row{gap:8px}dialog{width:calc(100vw - 16px);max-height:calc(100vh - 16px);max-height:calc(100dvh - 16px);overflow-y:auto;overscroll-behavior:contain}.dialog-form{padding:0 16px}.dialog-head{position:sticky;top:0;z-index:2;margin:0 0 12px;padding:14px 0 8px;background:#fff}.dialog-close{min-width:44px;min-height:44px}.dialog-actions{position:sticky;bottom:0;z-index:2;margin-top:12px;padding:12px 0 calc(12px + env(safe-area-inset-bottom));background:#fff}}
@media (prefers-reduced-motion:reduce){.admin-nav,.admin-shell.menu-open .admin-nav{transition:none}}
@media(max-width:760px){.admin-shell .text-button{min-height:44px;padding:10px 8px}}
@media(max-width:760px){td>.invite-when{grid-column:2}}
.install-big{min-height:56px;font-size:18px;width:100%}.install-guide{display:grid;gap:18px;margin:14px 0}.install-step{margin:0;display:grid;gap:10px;justify-items:center}.install-step img{width:min(100%,280px);height:auto;border-radius:18px;box-shadow:0 4px 16px #13304918}.install-step figcaption,.install-last{display:flex;gap:10px;align-items:flex-start;font-size:17px;font-weight:700;line-height:1.35;color:#172b43;margin:0;width:100%}.step-number{flex:none;display:grid;place-items:center;width:32px;height:32px;border-radius:50%;background:#173f60;color:#fff;font-size:16px}.install-help{margin:14px 0;border:1px solid #dce4ea;border-radius:12px;padding:0 14px;background:#fbfcfd}.install-help summary{min-height:48px;display:flex;align-items:center;font-weight:800;font-size:16px;color:#1b5f91;cursor:pointer}.install-help ul{margin:0 0 12px;padding-left:20px;font-size:15px;line-height:1.45}.install-help li{margin:8px 0}
.install-step figcaption{order:-1}
.gps-notice-text p{margin:10px 0;line-height:1.5;font-size:16px}#gps-notice-dialog{max-width:640px}
