:root{--bg:#f2f7fc;--surface:#fff;--ink:#16354e;--muted:#526d83;--line:#dbe7f1;--brand:#126cad;--soft:#e6f2ff;--sidebar:#eaf5ff;--active:#d1eaff;--banner:#fff4dc;--banner-ink:#71531a;--shadow:0 8px 28px #305c8010;font-family:Inter,Segoe UI,system-ui,sans-serif;color:var(--ink);background:var(--bg);font-synthesis:none}
:root[data-theme=dark]{--bg:#0c1928;--surface:#13263a;--ink:#edf6ff;--muted:#b2c6d9;--line:#30465b;--brand:#83c9ff;--soft:#203c57;--sidebar:#102238;--active:#244867;--banner:#362e1d;--banner-ink:#f6dc9e;--shadow:none}
*{box-sizing:border-box}body{margin:0}a{color:var(--brand);text-decoration:none}button,.button{font:inherit;cursor:pointer;border:0;border-radius:10px;padding:13px 18px;background:#126cad;color:white;font-weight:650;display:inline-block;min-height:46px}button:hover,.button:hover{filter:brightness(.92)}button:disabled{opacity:.5;cursor:not-allowed}button:focus-visible,a:focus-visible,select:focus-visible{outline:3px solid var(--brand);outline-offset:4px}.secondary{background:var(--soft);color:var(--brand)}.shell{display:grid;grid-template-columns:254px 1fr;min-height:100vh}aside{background:var(--sidebar);border-right:1px solid var(--line);padding:34px 22px;display:flex;flex-direction:column}.brand{display:flex;align-items:center;gap:11px;font-size:22px;font-weight:750;color:var(--ink)}.logo{background:#68bdf5;color:#123a59;padding:7px 12px;border-radius:12px}.brand small{font-size:11px;color:var(--muted);margin-top:6px}.nav-label{font-size:9px;letter-spacing:1.5px;color:var(--muted);margin:48px 8px 18px}nav{display:grid;gap:10px}nav a{color:var(--muted);padding:16px 12px;display:flex;gap:14px;border-radius:10px}nav a[aria-current]{background:var(--active);color:var(--ink);box-shadow:inset 3px 0 var(--brand)}small{display:block;font-size:12px;font-weight:400;color:var(--muted);margin-top:5px}nav small{font-size:11px}.aside-note{margin-top:auto;padding:60px 8px 0;font-size:13px}.aside-note p{font-size:12px;line-height:1.7}main{padding:0 42px;min-width:0;max-width:1500px;width:100%;margin:0 auto}header{min-height:84px;display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid var(--line);font-size:12px;color:var(--muted)}.toolbar{display:flex;gap:16px;align-items:center}.theme-label{display:flex;align-items:center;gap:8px}select{font:inherit;background:var(--surface);color:var(--ink);border:1px solid var(--line);border-radius:8px;padding:9px;min-height:44px}.pill{display:inline-block;background:var(--soft);color:var(--brand);font-size:11px;font-weight:650;padding:7px 10px;border-radius:30px}.banner{background:var(--banner);border:1px solid var(--line);border-radius:9px;font-size:12px;line-height:1.6;color:var(--banner-ink);padding:12px 16px;margin-top:24px}.page-title{margin:34px 0 26px}.eyebrow{font-size:10px;letter-spacing:1.5px;font-weight:750;color:var(--brand)}h1{font-size:32px;letter-spacing:-1px;margin:12px 0}p{color:var(--muted);line-height:1.65;font-size:14px}h2{font-size:17px;margin:0 0 16px}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;margin-bottom:24px}.stat,.card{background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:24px;box-shadow:var(--shadow)}.stat span{font-size:12px;color:var(--muted)}.stat strong{display:block;font-size:30px;margin:12px 0}.stat small{font-size:11px}.card{margin-bottom:22px}.section-head{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:16px}.section-head h2{margin:0}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse;text-align:left;font-size:12px}th{font-size:10px;text-transform:uppercase;letter-spacing:.7px;color:var(--muted);background:var(--bg)}th,td{padding:17px 12px;border-bottom:1px solid var(--line)}td small{font-size:10px;overflow-wrap:anywhere}td strong{font-size:13px}.columns{display:grid;grid-template-columns:1fr 1fr;gap:22px}.person{display:flex;align-items:center;gap:15px;flex-wrap:wrap}.person a{margin-left:auto;font-size:12px}.avatar{background:var(--soft);border-radius:50%;padding:15px;font-size:12px;color:var(--brand)}.clock{font-size:52px;font-weight:700;letter-spacing:1px;margin:22px 0}.punch{border-top:4px solid #68bdf5}.punch-buttons{display:grid;grid-template-columns:1fr 1fr;gap:10px}.punch-buttons button{font-size:12px;min-height:50px}.fine{font-size:12px;line-height:1.7}.checklist{padding:0;list-style:none;margin:22px 0}.checklist li{font-size:12px;line-height:1.8;padding:10px 0;border-bottom:1px solid var(--line)}.empty{text-align:center;padding:32px;color:var(--muted)}#notice:not(:empty){background:var(--soft);padding:14px;border-radius:8px;color:var(--ink)}footer{font-size:11px;color:var(--muted);border-top:1px solid var(--line);padding:22px 0;margin-top:20px}
@media(max-width:1100px){main{padding:0 22px}.shell{grid-template-columns:210px 1fr}.columns{grid-template-columns:1fr}.stats{gap:10px}.stat{padding:18px}.toolbar{gap:8px}}
@media(max-width:700px){.shell{display:block}aside{padding:18px;border-right:0;border-bottom:1px solid var(--line)}.brand{font-size:19px}.nav-label,.aside-note{display:none}nav{grid-template-columns:repeat(3,1fr);gap:5px;margin-top:18px}nav a{padding:12px 6px;font-size:11px;gap:6px}nav small{display:none}main{padding:0 16px}header{padding:14px 0;flex-wrap:wrap;font-size:10px}.toolbar{width:100%;justify-content:space-between}.page-title{margin-top:26px}h1{font-size:27px}.stats{grid-template-columns:1fr}.stat{display:grid;grid-template-columns:1fr auto;gap:8px}.stat strong{font-size:25px;margin:0;grid-column:2;grid-row:1/3}.stat small{grid-column:1}.card{padding:18px}.section-head{align-items:flex-start;flex-wrap:wrap}.clock{font-size:46px}.person a{margin:8px 0}.banner{font-size:12px}th,td{padding:13px 8px}}

/* Touch interaction preserves pinch zoom but avoids double-tap activation zoom. */
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
button,a,input,select,textarea,summary{touch-action:manipulation}
@media(max-width:700px){
 body{min-height:100dvh}main{padding:0 max(14px,env(safe-area-inset-right)) max(16px,env(safe-area-inset-bottom)) max(14px,env(safe-area-inset-left))}
 aside{padding:12px 16px}.brand{font-size:18px}nav{display:flex;margin-top:8px}nav a{padding:8px 12px;min-height:36px}
 header{min-height:64px;padding:10px 0;gap:6px}.toolbar{gap:8px}.theme-label{font-size:12px}.pill{font-size:12px}
 input,select,textarea,.auth-card input,[data-operation] input,[data-work] input,[data-work] textarea{font-size:16px!important;min-width:0;max-width:100%}
 #reauth-form{display:grid;gap:12px}#reauth-form label{display:grid;gap:8px}#reauth-form input{width:100%;padding:12px;min-height:48px;border:1px solid var(--line);border-radius:8px;background:var(--bg);color:var(--ink)}
 .banner{margin-top:12px;padding:10px 12px;font-size:11px}.page-title{margin:20px 0 16px}h1{font-size:26px;line-height:1.2}.card{padding:16px;margin-bottom:14px}
 .columns{gap:0}.clock{font-size:48px;font-variant-numeric:tabular-nums;margin:12px 0}.punch-buttons{gap:12px}.punch-buttons button{font-size:16px;min-height:64px;padding:12px 8px}
 .section-head{gap:8px}table{table-layout:fixed}th,td{overflow-wrap:anywhere;font-size:12px}th{font-size:9px}td small{font-size:10px}
}

.punch-icon{display:block;font-size:32px;line-height:1.1;margin-bottom:8px}.punch-in{background:#16654d}.punch-break{background:#86520b}.punch-back{background:#145b91}.punch-out{background:#623d89}
.employee-more>summary{min-height:48px;padding:14px;font-weight:650;cursor:pointer}.employee-more[open]>summary{margin-bottom:12px}
@media(max-width:700px){
 body[data-role=employee] aside{padding:10px 14px}body[data-role=employee] aside nav,body[data-role=employee] .theme-label,body[data-role=employee] #breadcrumb{display:none}
 body[data-role=employee] header{min-height:42px;padding:6px 0}body[data-role=employee] .toolbar{justify-content:flex-end}
 body[data-role=employee] .banner{font-size:10px;line-height:1.3;padding:8px;margin-top:8px}
 body[data-role=employee] .page-title{margin:14px 0 12px}body[data-role=employee] h1{font-size:28px;margin:4px 0}body[data-role=employee] .page-title p{margin:4px 0}
 body[data-role=employee] .section-head{align-items:center}body[data-role=employee] .section-head button{font-size:13px;padding:10px 12px;min-height:44px}
 body[data-role=employee] .clock{text-align:center;font-size:48px;margin:8px 0 12px}body[data-role=employee] .punch h2{text-align:center;font-size:16px}
 body[data-role=employee] .punch-buttons button{display:flex;flex-direction:column;justify-content:center;align-items:center;min-height:96px;font-size:19px;border-radius:14px;box-shadow:0 3px 0 #0002}
 body[data-role=employee] .location-column{display:none}body[data-role=employee] table th:nth-child(1){width:27%}body[data-role=employee] table th:nth-child(2){width:38%}body[data-role=employee] table th:last-child{width:35%}
 body[data-role=employee] td{font-size:13px;line-height:1.6}body[data-role=employee] footer{font-size:10px}
}
