:root{color-scheme:light;--nav:#11243a;--nav-soft:#1c344d;--bg:#f3f6fa;--paper:#fff;--ink:#14283d;--muted:#536779;--line:#dce5ee;--teal:#087263;--teal-dark:#09564c;--teal-light:#e4f5ef;--amber:#8a5407;--amber-bg:#fff4df;--red:#a13830;--red-bg:#fff0ed;--blue:#265783;--blue-bg:#eaf2fa;--radius:16px;font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-size:16px;}
*{box-sizing:border-box}
body{margin:0;background:var(--bg);color:var(--ink);min-width:280px}
button,input,select,textarea{font:inherit}
button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}
a{color:var(--teal-dark);text-underline-offset:3px}
button{cursor:pointer}
button:disabled{cursor:wait;opacity:.64}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #4abfac;outline-offset:3px}
button,.button{border:1px solid transparent;border-radius:9px;min-height:42px;padding:.55rem .9rem;font-size:.875rem;font-weight:650;display:inline-flex;align-items:center;justify-content:center;gap:.4rem;background:var(--teal);color:white;text-decoration:none;white-space:normal}
button:hover,.button:hover{filter:brightness(.94)}
button.secondary,.button.secondary{background:white;color:var(--ink);border-color:var(--line)}
button.danger{background:var(--red-bg);color:var(--red);border-color:#f2d4d0}
button.icon{padding:.36rem .65rem;min-height:36px}
button.light{background:transparent;color:inherit;border:1px solid #ffffff55}
h1,h2,h3,p{margin:0}
h1{font-size:clamp(1.65rem,3.3vw,2.35rem);letter-spacing:-.052em;line-height:1.1}
h2{font-size:1.17rem;letter-spacing:-.025em}
h3{font-size:1rem}
p,td,dd{line-height:1.5}
small,.muted{color:var(--muted)}
small{font-size:.83rem}
.loading{display:grid;min-height:50vh;place-items:center;color:var(--muted)}
.shell{min-height:100vh;display:grid;grid-template-columns:222px minmax(0,1fr)}
.sidebar{background:var(--nav);color:#dce8f3;padding:1.45rem 1rem;display:flex;flex-direction:column;gap:2rem;min-height:100vh;position:sticky;top:0;height:100vh}
.brand{display:flex;gap:.65rem;align-items:center;color:white;font-weight:760;letter-spacing:-.025em}
.brand-mark{height:37px;width:37px;border-radius:10px;background:#94ead4;color:#092f2d;display:grid;place-items:center;font-weight:850;letter-spacing:-.07em}
.brand small{display:block;color:#adc1d1;font-weight:500;letter-spacing:.01em;margin-top:.15rem}
.sidebar nav{display:grid;gap:.35rem}
.sidebar nav button{background:transparent;color:#dce8f3;text-align:left;justify-content:flex-start;padding:.7rem .82rem}
.sidebar nav button[aria-current=page]{background:var(--nav-soft);border-color:#365069;color:#a9eedf}
.sidebar footer{margin-top:auto;display:grid;gap:.8rem;overflow-wrap:anywhere}
.sidebar footer small{color:#afc2d3;display:block}
.mobile-head,.mobile-nav{display:none}
.main{min-width:0;padding:2.1rem clamp(1rem,4vw,3.3rem) 3rem;max-width:1440px;width:100%;margin:0 auto;display:grid;align-content:start;gap:1.25rem}
.header{display:flex;justify-content:space-between;gap:1rem;align-items:end}
.header p{margin-top:.5rem;color:var(--muted)}
.eyebrow{font-size:.79rem;font-weight:760;letter-spacing:.08em;text-transform:uppercase}
.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,265px),1fr));gap:1rem}
.stack{display:grid;gap:1rem}
.card{background:var(--paper);border:1px solid var(--line);border-radius:var(--radius);padding:1.1rem;min-width:0}
.card-head{display:flex;justify-content:space-between;align-items:center;gap:.75rem;margin-bottom:.85rem;flex-wrap:wrap}
.card h2+.muted,.card h3+.muted{margin-top:.35rem}
.hero{background:linear-gradient(125deg,#0c463f,#13796b);color:white;border-radius:var(--radius);padding:1.3rem 1.45rem;min-height:200px;display:grid;gap:1.2rem;align-content:space-between}
.hero .eyebrow,.hero small{color:#cbf3e8}
.hero h2{font-size:2.3rem;letter-spacing:-.04em;margin-top:.3rem;font-variant-numeric:tabular-nums}
.hero button{background:#f0fff9;color:#084e45}
.hero button.light{background:transparent;color:white}
.punch-times{display:flex;gap:1.2rem;flex-wrap:wrap;font-variant-numeric:tabular-nums}
.metric{font-size:2.1rem;letter-spacing:-.045em;font-weight:760;margin-top:.3rem}
.details{margin:0;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:.65rem 1rem}
.details dt{color:var(--muted);font-size:.875rem}
.details dd{margin:0;text-align:right;font-weight:650;font-variant-numeric:tabular-nums}
.details .total{padding-top:.65rem;border-top:1px solid var(--line);font-weight:780;color:var(--ink)}
.toolbar,.actions{display:flex;gap:.5rem;align-items:center;flex-wrap:wrap}
.table-wrap{overflow:auto;border:1px solid var(--line);border-radius:11px;max-width:100%}
table{border-collapse:collapse;width:100%;text-align:left;font-size:.88rem}
th{background:#f2f6fa;color:#4b6074;font-weight:690;white-space:nowrap}
th,td{padding:.68rem .78rem;border-bottom:1px solid var(--line);vertical-align:top}
td:first-child{font-weight:650}
tr:last-child td{border:0}
td .muted{display:block}
td.time{white-space:nowrap;font-variant-numeric:tabular-nums}
.badge{display:inline-block;padding:.2rem .55rem;border-radius:999px;background:#edf1f5;color:#40566b;font-size:.79rem;font-weight:680;white-space:nowrap}
.badge.good{background:var(--teal-light);color:var(--teal-dark)}
.badge.warn{background:var(--amber-bg);color:var(--amber)}
.badge.bad{background:var(--red-bg);color:var(--red)}
.badge.info{background:var(--blue-bg);color:var(--blue)}
.empty{padding:.8rem 0;color:var(--muted)}
.notice{border-radius:10px;padding:.75rem .85rem;background:var(--blue-bg);color:#174773;font-size:.9rem;overflow-wrap:anywhere}
.notice.error{background:var(--red-bg);color:var(--red)}
form{display:grid;gap:.85rem}
label{display:grid;gap:.35rem;font-size:.875rem;font-weight:650;min-width:0}
input,select,textarea{width:100%;min-width:0;border:1px solid #b9cbd9;border-radius:8px;padding:.56rem .65rem;color:var(--ink);background:white;min-height:42px;font-size:.94rem}
select{appearance:none;padding-right:1.9rem;background-image:linear-gradient(45deg,transparent 50%,#5e7488 50%),linear-gradient(135deg,#5e7488 50%,transparent 50%);background-position:calc(100% - 14px) 50%,calc(100% - 9px) 50%;background-size:5px 5px;background-repeat:no-repeat}
textarea{resize:vertical;min-height:80px}
fieldset{border:1px solid var(--line);border-radius:9px;padding:.7rem;margin:0}
fieldset label,.check{display:inline-flex;align-items:center;gap:.25rem;margin:.15rem .45rem .15rem 0}
input[type=checkbox]{width:17px;height:17px;min-height:0;accent-color:var(--teal)}
.inline{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,135px),1fr));gap:.65rem;align-items:end}
.auth{min-height:100svh;display:grid;place-items:center;background:radial-gradient(ellipse at top right,#1b4b53,var(--nav) 65%);padding:1rem}
.auth .card{width:min(100%,410px);padding:1.6rem 1.7rem;display:grid;gap:1.15rem;box-shadow:0 16px 42px #00102230}
.auth .brand,.auth .brand small{color:var(--ink)}
dialog{color:var(--ink);border:1px solid var(--line);border-radius:var(--radius);padding:1.15rem;width:min(94vw,580px);max-height:90dvh;box-shadow:0 10px 48px #10223835;background:white}
dialog::backdrop{background:#11243a99}
.dialog-head{display:flex;justify-content:space-between;gap:1rem;align-items:center;margin-bottom:.85rem}
dialog video,dialog img{max-height:50dvh;width:100%;object-fit:contain;background:var(--nav);border-radius:9px}
dialog video[hidden],.notice[hidden]{display:none}
#toast{position:fixed;bottom:1rem;left:50%;transform:translateX(-50%);border-radius:10px;max-width:calc(100vw - 2rem);background:var(--nav);color:white;box-shadow:0 8px 30px #10223831;padding:.7rem 1rem;z-index:5;pointer-events:none}
#toast:empty{display:none}
@media(max-width:760px){
 .shell{display:block}.sidebar{display:none}.mobile-head{display:flex;align-items:center;justify-content:space-between;gap:.6rem;color:white;background:var(--nav);padding:.7rem 1rem}.mobile-head .brand{font-size:.9rem}.brand small{font-size:.75rem}.mobile-nav{display:flex;gap:.3rem;overflow:auto;background:var(--nav);padding:0 .7rem .65rem}.mobile-nav button{flex:0 0 auto;color:#dbe7f0;background:transparent;padding:.47rem .65rem;min-height:36px;font-size:.83rem}.mobile-nav button[aria-current=page]{background:var(--nav-soft);border-color:#365069;color:#a9eedf}.main{padding:1.15rem .72rem 2.2rem;gap:.85rem}.header{align-items:start;flex-wrap:wrap}.card{padding:.8rem}.hero{padding:1.15rem}.table-wrap{font-size:.84rem}th,td{padding:.55rem}.toolbar label{min-width:0}.toolbar input{max-width:175px}
}
@media(max-width:420px){.main .header label{width:100%}.toolbar .button{font-size:.77rem;padding:.45rem .65rem}.hero .actions button{flex:1}.details{gap:.4rem .65rem}}
