: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}
