@import url('/assets/font.css');
:root{--bg:#f6f7f2;--card:#fff;--ink:#172b29;--muted:#76817b;--line:#e7ebe3;--green:#142e2c;--lime:#d9eb98;--gold:#b48a49;--red:#b3453d;--amber:#94691f;--radius:24px;--shadow:0 6px 32px #1c342a06;font-family:'Be Vietnam Pro',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;color:var(--ink);background:var(--bg);font-synthesis:none}
*{box-sizing:border-box}body{margin:0;font-weight:500}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:wait;opacity:.55}a{color:inherit}button:focus-visible,a:focus-visible{outline:3px solid #8bb159;outline-offset:3px}button{border:0}svg{width:22px;height:22px;flex-shrink:0}h1,h2,h3,p{margin-top:0}h1{font-size:30px;letter-spacing:0;line-height:1.25}h2{font-size:21px;letter-spacing:0}h3{font-size:16px}small{font-size:12px}hr{border:0;border-top:1px solid var(--line);margin:20px 0}.muted{color:var(--muted)}.eyebrow{font-size:10px;font-weight:700;letter-spacing:0;text-transform:uppercase}.initial{min-height:100dvh;display:grid;place-content:center;gap:24px;text-align:center}.initial img{width:95px;max-height:95px;object-fit:contain}.spinner{width:24px;height:24px;border:2px solid var(--line);border-top-color:var(--green);border-radius:50%;animation:spin .8s linear infinite;display:inline-block;justify-self:center}@keyframes spin{to{transform:rotate(360deg)}}
.topbar{height:82px;border-bottom:1px solid var(--line);background:#fff;display:flex;align-items:center;justify-content:space-between;padding:0 max(24px,calc((100vw - 1120px)/2));gap:20px}.brand{display:flex;align-items:center;gap:12px;text-decoration:none}.brand img{width:42px;height:46px;object-fit:contain}.brand strong{font-size:16px;letter-spacing:0;display:block}.brand small{color:var(--muted);font-size:10px;letter-spacing:0}.topnav{display:flex;gap:7px}.topnav button{background:transparent;color:var(--muted);padding:10px 14px;border-radius:12px;font-size:13px}.topnav button.active{background:var(--bg);color:var(--green);font-weight:600}.avatar{width:42px;height:42px;background:#e4ecd8;border-radius:50%;color:var(--green);display:flex;align-items:center;justify-content:center;font-size:13px;font-weight:600}.avatar-button{padding:0;background:transparent;border-radius:50%}.shell{max-width:1120px;margin:0 auto;padding:32px 24px 100px}.welcome{display:flex;justify-content:space-between;align-items:center;margin-bottom:25px}.welcome h1{margin:8px 0 0}.welcome .date{font-size:12px;color:var(--muted)}.pill{display:inline-flex;align-items:center;gap:6px;padding:6px 10px;border-radius:30px;font-size:11px;background:#edf3e5;color:#4c6840;white-space:nowrap}.pill svg{width:13px;height:13px}.pill.amber{background:#fff4dc;color:var(--amber)}.pill.red{background:#fae9e6;color:var(--red)}.pill.gray{background:#f0f2ef;color:var(--muted)}.dot{height:6px;width:6px;border-radius:50%;background:currentColor}.grid-home{display:grid;grid-template-columns:1.22fr 1fr;gap:24px}.card{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);padding:24px;box-shadow:var(--shadow)}.card-title{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:20px}.card-title h2,.card-title h3{margin:0}.link-button{background:transparent;color:var(--green);font-size:12px;padding:6px 0;display:flex;align-items:center;gap:5px}.link-button svg{width:14px;height:14px}.hero{position:relative;overflow:hidden;border-radius:var(--radius);background:var(--green);color:#fff;padding:26px;min-height:360px;border:1px solid #203f3a}.hero .eyebrow{color:#9aaba1;letter-spacing:0}.hero-top{display:flex;align-items:center;justify-content:space-between;gap:12px}.hero-top .pill{color:var(--lime);background:#ffffff12}.clock{font-variant-numeric:tabular-nums;font-size:56px;font-weight:600;letter-spacing:0;margin:24px 0 8px;line-height:1.1}.clock small{font-size:25px;font-weight:500;color:#83978f;letter-spacing:0}.hero-date{color:#b0beb8;font-size:12px}.hero-deco{position:absolute;right:-35px;top:60px;width:240px;height:240px;opacity:.14;pointer-events:none}.shift-info{display:flex;align-items:center;gap:8px;font-size:12px;margin:26px 0 20px;color:#d7e0d8}.shift-info svg{width:17px;height:17px}.primary{background:var(--green);color:white;min-height:48px;padding:13px 19px;border-radius:14px;display:inline-flex;align-items:center;justify-content:center;gap:10px;font-size:13px;font-weight:600;transition:transform .12s,background .2s}.primary:active{transform:scale(.98)}.hero .primary{width:100%;background:var(--lime);color:var(--green);min-height:59px;font-size:15px;position:relative}.hero .primary svg{width:23px;height:23px}.hero-foot{font-size:10px;color:#a5b7aa;text-align:center;margin:14px 0 0;display:flex;justify-content:center;align-items:center;gap:6px}.hero-foot svg{width:12px;height:12px}.hero-state{position:relative;z-index:1}.right-stack{display:flex;flex-direction:column;gap:20px}.location{display:flex;align-items:flex-start;gap:14px}.icon-box{height:44px;width:44px;border-radius:14px;background:#f0f4e6;display:grid;place-items:center;flex-shrink:0}.location h3{margin:3px 0 6px}.location p{font-size:11px;color:var(--muted);line-height:1.7;margin:0}.location-bottom{border-top:1px solid var(--line);margin-top:18px;padding-top:16px;display:flex;justify-content:space-between;align-items:center;font-size:11px}.timeline{display:flex;gap:14px;align-items:center;padding:13px 0}.timeline+.timeline{border-top:1px solid var(--line)}.timeline .icon-box{width:36px;height:36px;border-radius:12px}.timeline h3{font-size:12px;margin:0 0 5px}.timeline p{margin:0;font-size:10px;color:var(--muted)}.timeline time{margin-left:auto;font-size:18px;font-variant-numeric:tabular-nums;letter-spacing:0}.stats-row{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin:22px 0}.stat{background:#fff;border:1px solid var(--line);border-radius:18px;padding:18px}.stat .label{color:var(--muted);font-size:11px;margin-bottom:10px;display:flex;align-items:center;gap:6px}.stat .label svg{width:14px;height:14px}.stat strong{font-size:28px;font-weight:600;letter-spacing:0}.stat strong small{font-size:11px;color:var(--muted);letter-spacing:0;margin-left:4px}.tip{display:flex;align-items:center;gap:12px;padding:17px 20px;border-radius:18px;background:#eaf0de;font-size:11px;color:#5c7051;line-height:1.7}.tip svg{width:21px}.bottom-nav{display:none}.section-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;margin:0 0 24px}.section-heading h1{margin:0 0 6px}.section-heading p{font-size:12px;margin:0;color:var(--muted)}.section-heading input{width:auto}.month-input{padding:10px 13px!important;border-radius:12px!important;min-width:155px;font-size:12px!important}.empty{text-align:center;padding:30px 16px;color:var(--muted);font-size:12px;line-height:1.8}.empty .icon-box{margin:0 auto 14px;width:50px;height:50px}.empty h3{color:var(--ink);margin:0 0 5px}.empty p{margin:0}.records{display:flex;flex-direction:column;gap:14px}.record{border:1px solid var(--line);background:white;border-radius:20px;padding:20px}.record-head{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:17px}.record-head strong{font-size:13px}.record-details{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.record-details div{display:flex;flex-direction:column;gap:7px}.record-details small{color:var(--muted);font-size:10px}.record-details strong{font-size:18px;font-weight:600}.record-foot{margin-top:16px;padding-top:12px;border-top:1px solid var(--line);font-size:10px;display:flex;justify-content:space-between;align-items:center;gap:10px}.record-foot a{color:var(--green)}.tabs{display:flex;gap:5px;padding:5px;background:#ecefe7;border-radius:14px;margin-bottom:20px;overflow-x:auto}.tabs button{flex:1;background:transparent;color:var(--muted);border-radius:10px;padding:11px 14px;white-space:nowrap;font-size:12px}.tabs button.active{background:white;color:var(--green);box-shadow:0 2px 8px #20302b07;font-weight:600}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.full{grid-column:1/-1}.field{display:flex;flex-direction:column;gap:7px;font-size:11px}.field label{font-weight:600}.field small{color:var(--muted);font-size:10px;line-height:1.6}input,select,textarea{width:100%;min-height:46px;border:1px solid #dfe5db;border-radius:12px;padding:11px 13px;color:var(--ink);background:#fff;font-size:13px;outline:none}input:focus,select:focus,textarea:focus{border-color:#7c9a6b;box-shadow:0 0 0 3px #d9eb982b}textarea{min-height:94px;resize:vertical;line-height:1.6}input[type=checkbox]{width:17px;height:17px;min-height:17px;flex-shrink:0;accent-color:var(--green)}.checkbox-label{display:flex;align-items:flex-start;gap:9px;font-size:11px;line-height:1.6}.form-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:22px}.secondary{display:inline-flex;align-items:center;justify-content:center;gap:7px;border:1px solid var(--line);background:white;border-radius:12px;padding:11px 16px;font-size:12px;min-height:44px}.secondary svg{width:17px;height:17px}.danger{color:var(--red);background:#fbefec}.error-message{font-size:12px;color:var(--red);background:#fff0ed;padding:12px 14px;border-radius:12px;line-height:1.6;margin:14px 0;display:none}.error-message.visible{display:block}.notice{padding:15px 18px;background:#fff6df;border:1px solid #f0e5c6;border-radius:16px;font-size:11px;color:#8a6a32;line-height:1.8;margin-bottom:20px}.notice strong{font-weight:600}.profile-hero{text-align:center;padding:30px}.profile-hero .avatar{margin:0 auto 14px;width:68px;height:68px;font-size:22px}.profile-hero h2{margin:0 0 8px}.profile-hero p{margin:0;color:var(--muted);font-size:12px}.settings-list{margin-top:20px}.settings-row{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:17px 0;border-bottom:1px solid var(--line);font-size:12px}.settings-row:last-child{border:0}.settings-row span{color:var(--muted)}.account-grid{display:grid;grid-template-columns:1fr 1fr;gap:24px}.privacy{font-size:11px;color:var(--muted);line-height:1.8;margin-top:20px}.privacy h3{font-size:13px;color:var(--ink)}
.login{min-height:100dvh;display:grid;grid-template-columns:1.1fr 1fr}.login-story{background:var(--green);color:white;padding:60px;display:flex;flex-direction:column;justify-content:space-between;position:relative;overflow:hidden}.login-story .brand{color:white}.login-story .brand small{color:#b2c3b8}.login-story h1{font-size:58px;letter-spacing:0;line-height:1.15;margin:0 0 24px;font-weight:600;max-width:500px}.login-story h1 em{font-style:normal;color:var(--lime)}.login-story p{color:#a7bbb0;font-size:13px;line-height:1.9;max-width:365px}.login-graphic{height:140px;display:flex;align-items:center;gap:20px}.login-graphic .graphic-clock{width:135px;height:135px;border:1px solid #597161;border-radius:50%;display:grid;place-items:center;position:relative;background:#203e37}.graphic-clock svg{width:80px;height:80px;color:var(--lime)}.float-card{padding:15px 22px;border-radius:17px;background:#ffffff0c;border:1px solid #ffffff16}.float-card strong{display:block;font-size:18px;margin-bottom:5px}.float-card small{color:#a7bbb0;font-size:11px}.login-foot{font-size:10px;color:#92a69c;letter-spacing:0}.login-side{padding:50px;display:flex;flex-direction:column;justify-content:center;max-width:520px;margin:auto;width:100%}.login-side h2{font-size:28px;letter-spacing:0;margin:14px 0 8px}.login-side>p{font-size:12px;color:var(--muted);line-height:1.7;margin-bottom:30px}.login-side .field{margin-bottom:18px}.login-side .primary{width:100%;margin-top:5px}.login-note{font-size:10px;color:var(--muted);line-height:1.9;margin-top:24px}.login-note span{display:flex;align-items:center;gap:6px}.login-note svg{width:13px;height:13px}.mobile-brand{display:none}.password-wrap{position:relative}.password-wrap input{padding-right:45px}.password-toggle{position:absolute;right:8px;top:6px;height:34px;width:34px;background:none;color:var(--muted)}.password-toggle svg{width:18px}
#toast{position:fixed;z-index:100;bottom:100px;left:50%;transform:translateX(-50%) translateY(15px);background:#173a30;color:#fff;max-width:min(90vw,480px);padding:14px 20px;border-radius:14px;box-shadow:0 10px 40px #0a231d30;font-size:12px;opacity:0;pointer-events:none;transition:opacity .2s,transform .2s;line-height:1.6}#toast.visible{opacity:1;transform:translateX(-50%) translateY(0)}dialog{width:min(560px,94vw);border:0;border-radius:26px;padding:0;color:var(--ink);max-height:90dvh;box-shadow:0 25px 120px #071a2350}dialog::backdrop{background:#10282490;backdrop-filter:blur(5px)}.dialog-head{display:flex;justify-content:space-between;align-items:center;padding:22px 24px 16px;gap:16px}.dialog-head h2{margin:0;font-size:18px}.icon-button{display:grid;place-items:center;background:#f0f3ec;border-radius:50%;width:32px;height:32px;color:var(--ink)}.icon-button svg{width:16px;height:16px}.dialog-body{padding:0 24px 24px}.camera-frame{position:relative;aspect-ratio:3/4;max-height:430px;background:#0d201f;border-radius:20px;overflow:hidden;display:flex;align-items:center;justify-content:center}.camera-frame video{width:100%;height:100%;object-fit:cover;transform:scaleX(-1)}.camera-frame::after{content:'';position:absolute;inset:14%;border:1px solid #ffffff65;border-radius:50%;pointer-events:none}.camera-caption{position:absolute;bottom:16px;left:16px;right:16px;color:white;text-align:center;font-size:11px;background:#10282360;padding:9px;border-radius:10px;z-index:1}.camera-status{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin:15px 0}.camera-status>div{background:#f2f5ed;border-radius:12px;padding:12px;font-size:11px;display:flex;align-items:center;gap:7px}.camera-status svg{width:17px;height:17px}.camera-actions{display:flex;gap:10px}.camera-actions .primary{flex:1}.camera-hint{font-size:10px;color:var(--muted);line-height:1.7;margin-top:12px}.success-view{text-align:center;padding:20px 0}.success-icon{width:80px;height:80px;border-radius:50%;background:#e8f1d8;display:grid;place-items:center;margin:0 auto 20px}.success-icon svg{width:42px;height:42px;color:#507b3b}.success-view h2{font-size:23px}.success-view p{font-size:12px;line-height:1.7;color:var(--muted)}.photo-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.photo-grid img{width:100%;border-radius:15px}.photo-grid small{display:block;margin:8px 0;color:var(--muted)}
.admin-nav{display:flex;gap:6px;overflow-x:auto;margin:0 0 24px;padding-bottom:2px}.admin-nav button{padding:10px 14px;background:transparent;border-radius:12px;font-size:12px;white-space:nowrap;color:var(--muted)}.admin-nav button.active{background:var(--green);color:white}.toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin-bottom:18px}.toolbar input,.toolbar select{width:auto;font-size:12px;min-height:42px}.toolbar .search{flex:1;min-width:180px}.admin-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-bottom:22px}.table-wrap{overflow-x:auto;max-width:100%}table{width:100%;border-collapse:collapse;text-align:left;font-size:11px;white-space:nowrap}th{color:var(--muted);font-size:10px;font-weight:600;padding:12px 14px;background:#f7f8f4;border-bottom:1px solid var(--line)}td{padding:16px 14px;border-bottom:1px solid var(--line)}td .secondary{padding:7px 10px;font-size:10px;min-height:32px}td small{display:block;font-size:10px;color:var(--muted);margin-top:4px}td:last-child{text-align:right}tr:last-child td{border-bottom:0}.table-person{display:flex;align-items:center;gap:10px}.table-person .avatar{width:33px;height:33px;font-size:10px}.branch-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.branch-card{padding:20px}.branch-card .eyebrow{color:var(--gold);margin-bottom:10px}.branch-card h3{font-size:17px;margin:0 0 8px}.branch-card p{font-size:11px;color:var(--muted);line-height:1.7;min-height:38px;margin:0 0 14px}.branch-card .pill{font-size:10px}.branch-card .secondary{width:100%;margin-top:16px;font-size:11px}.request-row{display:flex;align-items:flex-start;justify-content:space-between;gap:15px;padding:18px 0;border-bottom:1px solid var(--line)}.request-row h3{margin:0 0 7px;font-size:13px}.request-row p{font-size:11px;color:var(--muted);line-height:1.7;margin:0 0 8px}.request-row .secondary{min-height:36px;padding:8px 12px}.request-row:last-child{border:0}.credential-box{background:#f0f5e8;padding:18px;border-radius:16px;font-size:13px;line-height:2;word-break:break-all}.credential-box strong{display:block;font-size:19px;letter-spacing:0}.calendar-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:5px}.calendar-day{min-height:63px;padding:8px;background:#f4f6ef;border-radius:10px;font-size:11px;display:flex;flex-direction:column;gap:7px}.calendar-day>small{font-size:8px;color:var(--muted)}.calendar-day.today{border:1px solid #83a364}.calendar-day.off{background:#fff4df}.calendar-label{text-align:center;font-size:10px;color:var(--muted);padding:6px 0}.offline{background:#fbebdf;padding:9px;text-align:center;font-size:11px;color:#955835}.small-help{font-size:10px;color:var(--muted);line-height:1.7}.skeleton{height:200px;background:#e8ece3;border-radius:24px;animation:pulse 1s infinite alternate}@keyframes pulse{to{opacity:.4}}
@media(min-width:761px){.home-lower{display:grid;grid-template-columns:1.22fr 1fr;gap:24px}.home-lower .stats-row{margin:0}.home-lower{margin-top:22px}.admin-panel .stats-row{margin-top:0}.mobile-only{display:none}.requests-grid{display:grid;grid-template-columns:1fr 1fr;gap:24px}}
@media(max-width:1000px){.topbar{padding:0 24px}.topnav{gap:0}.topnav button{padding:10px;font-size:11px}.login-story{padding:40px}.login-story h1{font-size:44px}.login-side{padding:40px 28px}.branch-grid{grid-template-columns:1fr 1fr}}
@media(max-width:760px){.topbar{height:74px;padding:0 22px;border:0;background:var(--bg)}.brand img{width:35px;height:40px}.brand strong{font-size:14px}.brand small{font-size:8px;letter-spacing:0}.topnav{display:none}.avatar{width:36px;height:36px;font-size:11px}.shell{padding:14px 20px calc(102px + env(safe-area-inset-bottom));max-width:550px}.welcome{margin-bottom:24px;align-items:flex-start}.welcome h1{font-size:25px;margin-top:6px}.welcome .date{font-size:10px;padding-top:22px;max-width:100px;text-align:right;line-height:1.5}.welcome .eyebrow{font-size:9px;letter-spacing:0}.grid-home{grid-template-columns:1fr;gap:20px}.hero{padding:23px;min-height:330px}.clock{font-size:54px;margin-top:27px}.hero-deco{width:205px;height:205px;right:-35px;top:57px}.hero-date{font-size:11px}.hero .primary{min-height:56px;font-size:14px}.shift-info{margin-top:23px;margin-bottom:20px;font-size:11px}.hero-foot{font-size:9px}.right-stack{gap:18px}.card{padding:20px;border-radius:22px}.card-title{margin-bottom:16px}.card-title h2{font-size:18px}.location .icon-box{width:40px;height:40px}.location h3{font-size:13px}.location p{font-size:10px}.location-bottom{font-size:10px}.stats-row{gap:8px;margin:18px 0}.stat{padding:14px 12px;border-radius:16px}.stat .label{font-size:9px;gap:4px;margin-bottom:11px}.stat .label svg{width:12px;height:12px}.stat strong{font-size:26px}.stat strong small{font-size:9px}.tip{padding:15px;font-size:10px;line-height:1.7}.bottom-nav{position:fixed;display:flex;justify-content:space-around;bottom:0;left:0;right:0;z-index:10;padding:12px 10px calc(12px + env(safe-area-inset-bottom));background:#ffffffed;border-top:1px solid var(--line);backdrop-filter:blur(16px)}.bottom-nav button{background:transparent;color:#8a948b;font-size:9px;display:flex;flex-direction:column;align-items:center;gap:6px;min-width:50px;padding:0 6px}.bottom-nav button svg{width:21px;height:21px}.bottom-nav button.active{color:var(--green);font-weight:600}.bottom-nav button.active::after{content:'';height:3px;width:3px;border-radius:50%;background:#638a39;position:absolute;bottom:calc(6px + env(safe-area-inset-bottom))}.section-heading h1{font-size:23px}.section-heading p{font-size:10px}.section-heading{gap:8px;margin-bottom:20px}.month-input{font-size:10px!important;padding:9px 10px!important;min-width:125px;max-width:145px;min-height:39px}.record{padding:17px}.record-head strong{font-size:12px}.record-details strong{font-size:17px}.account-grid{grid-template-columns:1fr;gap:18px}.login{display:block;min-height:100dvh;background:var(--bg)}.login-story{display:none}.mobile-brand{display:flex;align-items:center;justify-content:center;margin-bottom:45px}.mobile-brand img{width:72px;height:76px;object-fit:contain}.login-side{padding:35px 26px 45px;min-height:100dvh;max-width:450px}.login-side h2{font-size:29px}.login-side>p{font-size:12px;line-height:1.8}.login-side .eyebrow{color:var(--gold);font-size:10px}.login-note{margin-top:32px}.login-note span{justify-content:center;margin-bottom:8px}.form-grid{gap:14px}.field{font-size:10px}input,select,textarea{font-size:16px;min-height:47px}.form-grid .field small{font-size:9px}.admin-nav{margin-bottom:18px;gap:3px}.admin-nav button{padding:9px 13px;font-size:11px}.admin-stats{grid-template-columns:1fr 1fr;gap:10px}.branch-grid{grid-template-columns:1fr}.branch-card p{min-height:unset}.branch-card{padding:20px}.branch-card .secondary{margin-top:15px}.toolbar input,.toolbar select{max-width:100%;font-size:16px}.toolbar .search{min-width:100%;order:3}.admin-panel .card{padding:16px 10px}.table-wrap{margin:0}table{font-size:10px}th,td{padding:12px}.request-row .secondary{font-size:10px;padding:8px}.calendar-day{min-height:65px;padding:7px 5px;font-size:10px}.calendar-day>small{font-size:8px}.dialog-body{padding:0 20px 23px}.dialog-head{padding:20px 20px 15px}dialog{max-height:94dvh;width:calc(100vw - 24px)}.camera-frame{max-height:50dvh}.camera-status>div{padding:11px 8px;font-size:10px}.camera-status svg{width:16px}.privacy{font-size:10px}.requests-grid>.card{margin-bottom:18px}.credential-box strong{font-size:16px}.form-actions .primary{font-size:12px}.timeline time{font-size:17px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
[hidden]{display:none!important}
.form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.field,.form-grid>*,.section-heading>div,.requests-grid>*{min-width:0}
input,select,textarea{min-width:0;max-width:100%}
@media(max-width:420px){.form-grid{grid-template-columns:minmax(0,1fr)}.form-grid .full{grid-column:1}.section-heading{align-items:flex-start}.month-input{min-width:120px;max-width:130px}.hero{padding:20px}.hero-foot{font-size:8px}.hero .primary{font-size:13px}}
/* Color, hierarchy and comfortable touch targets on mobile. */
:root{--bg:#f5f6fa;--muted:#63726d;--line:#e2e8e6;--shadow:0 6px 24px #23383a07}
body{background:radial-gradient(ellipse at 90% 0,#eef1ff 0,transparent 40%),var(--bg)}
.hero{background:radial-gradient(circle at 100% 0,#3c7765 0,transparent 50%),linear-gradient(145deg,#164b40,#142e2c 70%);box-shadow:0 12px 26px #18483916;border-color:#2b594b}
.hero .primary{background:linear-gradient(120deg,#d6ee83,#bdec97);box-shadow:0 5px 14px #060f111f}
.hero .primary:disabled{opacity:.8;cursor:default;background:#dae8d2;color:#334b3e;box-shadow:none}
.hero-deco{opacity:.18}
.hero .eyebrow{color:#c0d0c4}
.hero-top .pill{background:#ffffff16;color:#e4f7b2}
.primary{background:linear-gradient(120deg,#226f58,#18503f);box-shadow:0 4px 10px #1e604b12}
.pill{background:#e5f5ea;color:#25613f}
.pill.amber{background:#fff0d5;color:#8d5b10}
.pill.red{background:#ffe8e4;color:#a03c34}
.pill.gray{background:#eef0f9;color:#606880}
.avatar{background:linear-gradient(145deg,#e6dcff,#cedefa);color:#554479}
.home-stats .card-title{margin:0 0 12px}
.home-stats h3{font-size:14px}
.home-stats .card-title>span{font-size:12px}
.stats-row{grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.home-stats .stats-row{margin:0}
.stat{border:1px solid transparent;position:relative;overflow:hidden}
.stats-row .stat:nth-child(1),.admin-stats .stat:nth-child(1){background:#e6f3ff;color:#265a99;border-color:#d7e9fb}
.stats-row .stat:nth-child(2),.admin-stats .stat:nth-child(2){background:#ede9ff;color:#635092;border-color:#e3dcfa}
.stats-row .stat:nth-child(3),.admin-stats .stat:nth-child(3){background:#fff0db;color:#936220;border-color:#f7e3c3}
.stats-row .stat:nth-child(4),.admin-stats .stat:nth-child(4){background:#ffe9e7;color:#a45054;border-color:#f7d8d6}
.stat .label,.stat strong small{color:inherit;opacity:.86}
.stat strong{font-weight:600}
.branch-home{background:linear-gradient(130deg,#ffffff 55%,#f2efff)}
.branch-home .card-title>svg{color:#7a61b0}
.location .icon-box{background:#e9e1fa;color:#7052a0}
.activity-home .card-title>h3{color:#275a82}
.timeline .icon-box{background:#e5f3ed;color:#298265}
.timeline:nth-of-type(3) .icon-box{background:#edf0ff;color:#6474bd}
.tip{background:linear-gradient(110deg,#e6f4eb,#e6f2f6);color:#3c6660;border:1px solid #d4e7e0}
.calendar-day{background:#f1f3fc;color:#535c80;border:1px solid #e9ecf8}
.calendar-day.today{background:#ddf4e8;border:1px solid #78b999;color:#245943;box-shadow:0 2px 7px #2c6f4912}
.calendar-day.off{background:#fff0db;color:#926421;border-color:#f7e3c2}
.record{border-left:4px solid #81bda5}
.record-details>div:nth-child(1) strong{color:#277958}
.record-details>div:nth-child(2) strong{color:#6374ae}
.record-details>div:nth-child(3) strong{color:#a2712f}
.profile-hero{background:linear-gradient(140deg,#f0eaff,#e6f3fa);border-radius:18px}
.privacy{background:#eef5fa;border-radius:16px;padding:16px;color:#4c6678}
.privacy h3{color:#355a75}
.notice{background:linear-gradient(120deg,#fff3df,#fff8ed);border-color:#f5dfb9;color:#805920}
.error-message{border:1px solid #f5d4d0}
.admin-nav{background:#eef0f7;padding:5px;border-radius:15px}
.admin-nav button.active{background:#fff;color:#356e62;box-shadow:0 2px 6px #3143590c}
.branch-card:nth-child(4n+1){border-top:3px solid #9acfb9}
.branch-card:nth-child(4n+2){border-top:3px solid #a9b8ed}
.branch-card:nth-child(4n+3){border-top:3px solid #eac08c}
.branch-card:nth-child(4n){border-top:3px solid #d0afe1}
.login-side{background:radial-gradient(ellipse at 100% 0,#e9e4ff 0,transparent 45%),radial-gradient(ellipse at 0 85%,#e4f2ef 0,transparent 45%),#f7f8fb}
.login-note span{color:#438c70}
.grid-home>.hero{grid-column:1;grid-row:1}
.grid-home>.home-stats{grid-column:1;grid-row:2}
.grid-home>.right-stack{grid-column:2;grid-row:1/span 2}
.home-lower{display:block}
.home-lower>.tip{margin-top:20px}
@media(max-width:760px){
 .shell{padding-left:18px;padding-right:18px}.topbar{padding:0 18px}
 .grid-home{display:flex;flex-direction:column;gap:20px}.grid-home>*{width:100%}
 .hero{min-height:320px;padding:23px}.hero-top{gap:8px}.hero-top .eyebrow{font-size:9px;letter-spacing:0}.hero-top .pill{font-size:10px;padding:6px 9px}
 .hero-date{font-size:12px}.hero-foot{font-size:10px;line-height:1.5;max-width:100%;text-align:left}.hero-foot svg{width:14px;height:14px}.shift-info{font-size:12px}
 .stats-row{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.stat{padding:17px 16px}.stat .label{font-size:11px}.stat .label svg{width:16px;height:16px}.stat strong{font-size:30px}.stat strong small{font-size:11px}
 .location h3{font-size:14px;line-height:1.5}.location p{font-size:12px;line-height:1.7}.location-bottom{font-size:11px;gap:8px;flex-wrap:wrap}.pill{font-size:11px}
 .card-title h3{font-size:15px}.link-button{font-size:11px;min-height:44px;padding:8px 0}.timeline h3{font-size:13px}.timeline p{font-size:11px;line-height:1.6}.timeline{gap:10px}.timeline time{font-size:18px}
 .tip{font-size:12px;align-items:flex-start}.tip svg{margin-top:2px}
 .bottom-nav{padding:8px 8px calc(8px + env(safe-area-inset-bottom));background:#fffffffa}.bottom-nav button{position:relative;min-height:52px;padding:8px 5px;font-size:10px;gap:5px;border-radius:13px;flex:1;min-width:0}.bottom-nav button.active{background:#e6f4ed;color:#22674e}.bottom-nav button.active::after{display:none}
 .bottom-nav button:nth-child(2).active{color:#4d699f;background:#eaf0fd}.bottom-nav button:nth-child(3).active{color:#695598;background:#f0eafa}.bottom-nav button:nth-child(4).active{color:#9c6a25;background:#fff3df}.bottom-nav button:nth-child(5).active{color:#a05b72;background:#fbeaf0}
 .welcome .eyebrow{font-size:9px}.welcome .date{font-size:11px}.section-heading p{font-size:12px;line-height:1.6}.section-heading h1{font-size:24px}.section-heading{gap:14px}
 .section-heading:has(.month-input){flex-direction:column;align-items:stretch}.month-input{max-width:100%;width:100%!important;min-height:44px;font-size:14px!important;background:#fff}
 .field{font-size:12px}.field label{line-height:1.6}.field small,.form-grid .field small,.small-help{font-size:11px;line-height:1.8}
 .form-actions .primary,.secondary{font-size:13px;min-height:46px}.form-actions{flex-wrap:wrap}.requests-grid .form-actions .primary{width:100%}
 .request-row h3{font-size:14px}.request-row p{font-size:12px}.request-row .secondary{min-height:44px;font-size:12px}.request-row .link-button{font-size:12px;flex-shrink:0}
 .record-head strong{font-size:14px}.record-details small{font-size:11px}.record-details strong{font-size:20px}.record-foot{font-size:11px;align-items:flex-start;flex-wrap:wrap}
 .calendar-day{min-height:73px;padding:9px 5px}.calendar-day strong{font-size:13px}.calendar-day>small{font-size:9px;line-height:1.4;word-break:normal}.calendar-label{font-size:12px}.calendar-grid{gap:4px}
 .profile-hero{padding:24px 16px}.privacy{font-size:12px;line-height:1.8}.settings-row{font-size:12px}.settings-row strong{text-align:right}
 .notice{font-size:12px}.dialog-head h2{font-size:19px}.icon-button{min-width:44px;min-height:44px}.camera-hint{font-size:11px;line-height:1.7}.camera-status>div{font-size:11px}.camera-status{grid-template-columns:1fr}.camera-actions .primary{font-size:13px}.camera-actions .secondary{min-width:48px}
 .login-side{padding:34px 24px 42px}.mobile-brand{margin-bottom:34px}.login-side h2{font-size:29px}.login-side>p{font-size:13px}.login-note{font-size:12px;line-height:1.8}.login-side .primary{min-height:52px;font-size:15px}
}
@media(max-width:760px){
 .table-wrap{overflow:visible}.table-wrap table{white-space:normal;font-size:12px;display:block}.table-wrap thead{display:none}.table-wrap tbody{display:grid;gap:14px}.table-wrap tr{display:block;border:1px solid #e2e7ee;border-radius:16px;overflow:hidden;background:#fff}
 .table-wrap td{display:grid;grid-template-columns:105px minmax(0,1fr);column-gap:10px;padding:12px 14px;font-size:12px;line-height:1.6;border-bottom:1px solid #edf0f5;text-align:left;overflow-wrap:anywhere}
 .table-wrap td::before{content:attr(data-label);font-size:11px;font-weight:600;color:#64738a;grid-column:1;grid-row:1/span 3}
 .table-wrap td small{grid-column:2;font-size:11px;line-height:1.6;margin:4px 0 0}.table-wrap td>div,.table-wrap td>strong,.table-wrap td>button,.table-wrap td>span{grid-column:2}
 .table-wrap td:first-child{display:block;background:linear-gradient(110deg,#edf4fc,#f3effb);color:#344c76;border-bottom:1px solid #e4eaf4;font-size:13px}.table-wrap td:first-child::before{display:none}.table-wrap td:first-child small{font-size:11px;color:#697b92}.table-wrap td:first-child .table-person{gap:12px}
 .table-wrap td:last-child{border-bottom:0}.table-wrap td[data-label=""]{display:block;text-align:right;background:#fafbfd}.table-wrap td[data-label=""]::before{display:none}.table-wrap td .secondary{font-size:12px;min-height:44px;padding:10px 16px}.table-wrap td .avatar{width:36px;height:36px;font-size:12px}
 .admin-panel .card{padding:18px 14px}.admin-panel .card-title h2{font-size:17px}.admin-nav{gap:3px}.admin-nav button{min-height:44px;font-size:12px}.branch-card .secondary{font-size:13px;min-height:46px}.branch-card p{font-size:12px}.branch-card .pill{font-size:11px}.admin-panel .toolbar .secondary{min-height:46px;font-size:13px}
}
@media(max-width:760px){.admin-nav{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));overflow:visible;gap:5px}.admin-nav button{padding:9px 7px;white-space:normal;line-height:1.5;min-height:46px}.admin-nav button:last-child:nth-child(7){grid-column:1/-1}.home-lower{margin-top:0}}
@media(max-width:760px){.checkbox-label{font-size:12px;line-height:1.8}.admin-stats .stat strong{font-size:30px}.login-side{margin:0 auto}.card-title{flex-wrap:wrap}}
.calendar-grid{grid-template-columns:repeat(7,minmax(0,1fr))}
.calendar-short{display:none}
.calendar-legend{display:flex;flex-wrap:wrap;gap:14px;font-size:11px;color:#637088;margin-top:18px}.calendar-legend>span{display:flex;align-items:center;gap:6px}.calendar-legend i{height:9px;width:9px;border-radius:3px;background:#b5c1e4}.calendar-legend .off i{background:#efc77c}.calendar-legend .current i{background:#6aae91}
@media(max-width:760px){.calendar-day{min-width:0;padding:10px 2px;min-height:66px;gap:9px;text-align:center}.calendar-day>small{font-size:9px;line-height:1.5}.calendar-full{display:none}.calendar-short{display:inline;white-space:nowrap}.calendar-legend{font-size:11px;gap:12px}.calendar-shift{overflow:visible}}

/* A camera that is still loading or blocked should never look like a ready black preview. */
.camera-message{position:absolute;inset:0;z-index:2;background:linear-gradient(150deg,#173a39,#244d57);color:#fff;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:30px;gap:12px}.camera-message[hidden]{display:none}.camera-message .icon-box{background:#ffffff18;color:#e1f2b8;width:58px;height:58px;border-radius:18px;display:grid;place-items:center}.camera-message .icon-box svg{width:30px;height:30px}.camera-message p{font-size:13px;line-height:1.8;margin:0}.camera-message .secondary{background:#eef7e2;color:#234d3f;min-height:46px}.camera-frame video{display:block}

/* Keep the camera and its crop centered even when viewport height constrains the frame. */
dialog{overflow-y:auto;scrollbar-width:none}dialog::-webkit-scrollbar{display:none}
.camera-frame{width:100%;max-width:322.5px;max-height:none;margin-inline:auto;aspect-ratio:3/4}.camera-frame video{position:absolute;inset:0;object-position:50% 50%;width:100%;height:100%}
@media(max-width:760px){.camera-frame{width:min(100%,37.5dvh);max-width:100%;max-height:none}}

/* One typeface, natural character spacing and clearer text across every screen. */
h1,h2,h3,.stat strong,.record-details strong{font-weight:700}
button,.field label,th,.table-wrap td::before{font-weight:600}
.eyebrow{font-size:11px;line-height:1.6}
.brand small{font-size:11px;line-height:1.5}
.login-story .brand{gap:20px}
.login-story .brand img{width:144px;height:144px;border-radius:24px;background:white}
.login-story .brand strong{font-size:22px}
.login-story .brand small{font-size:12px}
@media(max-width:760px){
 .mobile-brand{width:160px;height:160px;align-self:center;overflow:hidden;border-radius:28px;background:#fff;margin-bottom:24px;flex-shrink:0}
 .mobile-brand img{width:160px;height:160px;max-width:none;transform:scale(1.5);flex-shrink:0}
 .login-side{padding-top:30px}
 .brand small{font-size:9px}
 .welcome .eyebrow{font-size:10px}
 .login-side .eyebrow{font-size:12px}
}
