:root{color-scheme:light;--paper:#f5f6ef;--card:#fff;--ink:#182724;--muted:#52645e;--line:#dce4da;--dark:#122c27;--accent:#256750;--mint:#deeee3;--lime:#daf0a4;--warm:#f9ebbd;--error:#963d31;font:15px/1.55 "Inter","Microsoft YaHei","Noto Sans CJK SC","Yu Gothic",system-ui,sans-serif}
*{box-sizing:border-box}
body{margin:0;color:var(--ink);background:var(--paper)}
button,input,select{font:inherit}
button,a{touch-action:manipulation}
button{cursor:pointer}
button:disabled{cursor:not-allowed;opacity:.55}
a{color:var(--accent)}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #6db48b;outline-offset:2px}
h1,h2,h3,p{margin:0}
h1{font-size:clamp(28px,4vw,42px);line-height:1.2;letter-spacing:-.035em}
h2{font-size:20px}
h3{font-size:16px}
.muted,small{color:var(--muted)}
.layout{min-height:100dvh;display:grid;grid-template-columns:238px minmax(0,1fr)}
.rail{background:var(--dark);color:#f3faf1;padding:27px 16px;display:flex;flex-direction:column;gap:32px}
.brand{display:flex;align-items:center;gap:12px;font-size:19px;font-weight:750;white-space:nowrap}
.brand small{display:block;color:inherit;opacity:.75;font-size:10px;letter-spacing:.16em;line-height:1.3}
.mark{width:38px;height:38px;border-radius:11px;background:var(--lime);color:var(--dark);display:grid;place-items:center;font-size:25px;flex:none}
nav{display:grid;gap:6px}
.nav{display:flex;align-items:center;gap:12px;background:none;color:#d2e0d8;border:0;text-align:left;padding:11px 12px;border-radius:9px;white-space:nowrap}
.nav span{width:21px;text-align:center;font-size:17px}
.nav:hover,.nav[aria-current=page]{background:#25463d;color:#fff}
.nav[aria-current=page] span{color:var(--lime)}
.rail-bottom{margin-top:auto;display:grid;gap:10px}
.rail-bottom small{color:#acd0bf;padding:0 11px}
.workspace{min-width:0;padding:26px clamp(18px,4vw,58px) 55px;max-width:1580px;width:100%;margin:auto;align-self:start}
.top{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:28px}
.lang{display:flex;border:1px solid var(--line);border-radius:9px;padding:3px;background:#fff}
.lang button{border:0;background:transparent;color:var(--muted);border-radius:6px;padding:5px 10px;white-space:nowrap;font-size:12px}
.lang button[aria-pressed=true]{background:var(--mint);color:var(--dark);font-weight:700}
.hero{padding:clamp(22px,4vw,38px);border-radius:20px;background:var(--dark);color:#f8faf5;position:relative;overflow:hidden;margin-bottom:22px}
.hero:after{content:"";position:absolute;pointer-events:none;width:210px;height:210px;border:1px solid #638072;border-radius:50%;right:-66px;top:-74px;box-shadow:0 0 0 28px #27443b,0 0 0 29px #638072,0 0 0 57px #203b33,0 0 0 58px #526e61}
.hero>*{position:relative;z-index:1}
.hero p{margin-top:9px;color:#cadecf;max-width:680px}
.overline{font-size:12px;text-transform:uppercase;letter-spacing:.1em;font-weight:700}
.hero .overline{color:var(--lime);margin:0 0 8px}
.card{background:var(--card);border:1px solid var(--line);border-radius:15px;padding:clamp(15px,2.6vw,24px);margin-bottom:17px}
.row,.toolbar,.worker,.sect-head{display:flex;align-items:center;gap:12px}
.toolbar,.sect-head{flex-wrap:wrap}
.sect-head{justify-content:space-between;margin-bottom:14px}
.toolbar label,.form label{display:grid;gap:4px;color:var(--muted);font-size:13px}
.toolbar{align-items:end;margin-bottom:16px}
.toolbar>*{min-width:0}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:42px;padding:8px 14px;background:#fff;color:var(--ink);border:1px solid var(--line);border-radius:9px;text-decoration:none;font-weight:650;text-align:center}
.btn:hover{background:#eff5ed}
.primary{background:var(--accent);color:#fff;border-color:var(--accent)}
.primary:hover{background:#1d5744}
.small{min-height:34px;padding:4px 9px;font-size:13px}
input,select{border:1px solid #cbd8ce;background:#fff;border-radius:8px;color:var(--ink);width:100%;min-height:42px;padding:7px 10px}
input[type=checkbox]{width:17px;min-height:0;height:17px;accent-color:var(--accent)}
.inline-check{display:flex!important;align-items:center;gap:8px!important}
.form{display:grid;gap:13px}
.form .row{justify-content:flex-end;flex-wrap:wrap;margin-top:5px}
.blank{padding:27px 10px;text-align:center;color:var(--muted);border:1px dashed var(--line);border-radius:11px}
.counts{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-bottom:17px}
.count{padding:12px;border-radius:11px;background:#eef1ec;color:var(--muted);font-size:13px}
.count strong{font-size:22px;margin-right:6px;color:var(--ink)}
.count:first-child{background:var(--mint)}.count:nth-child(2){background:var(--warm)}
.worker{justify-content:space-between;padding:8px 0;border-bottom:1px solid #edf0eb}
.worker:last-child{border-bottom:0}
.status{flex:1;display:flex;gap:10px;align-items:center;text-align:left;border:1px solid var(--line);border-radius:10px;min-height:49px;background:#f5f7f2;color:var(--ink);padding:6px 10px;font-weight:700}
.status b{display:grid;place-items:center;border-radius:7px;width:30px;height:30px;font-size:20px;background:#fff;flex:none}
.status[data-status="2"]{background:var(--mint);border-color:#a5c9b4;color:#1d523f}
.status[data-status="1"]{background:var(--warm);border-color:#e3cd86;color:#654e18}
.status small{display:block;font-weight:400}
.overtime{display:flex;align-items:center;gap:5px;white-space:nowrap;color:var(--muted);font-size:12px}
.overtime input{width:66px}
.submit{position:sticky;bottom:0;z-index:2;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 0;background:var(--paper)}
.submit .btn{min-width:120px}
.table-wrap{overflow:auto}
table{width:100%;border-collapse:collapse}
th,td{text-align:left;padding:9px 11px;border-bottom:1px solid var(--line);vertical-align:middle}
th{font-size:13px;color:var(--muted);background:#f1f5ee}
.actions{display:flex;gap:6px;flex-wrap:wrap}
td .actions{justify-content:flex-end}
.directory{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:17px}
.directory .card{margin:0}
.roster-card{margin-top:17px}
.roster-card h3{margin:14px 0 7px}
.roster-group{margin:12px 0 6px}
.list-item{display:flex;justify-content:space-between;align-items:center;gap:9px;padding:10px 0;border-bottom:1px solid var(--line)}
.list-item:last-child{border-bottom:0}
.list-item>span{overflow-wrap:anywhere}
.scan,.auth{max-width:820px;margin:auto;padding:22px}
.auth{min-height:100dvh;display:grid;place-items:center}
.auth-card{width:min(100%,445px);background:#fff;border:1px solid var(--line);border-radius:20px;padding:clamp(22px,6vw,37px);box-shadow:0 15px 45px #172d2212}
.auth-card .top{margin:0 0 24px}
.auth-card h1{font-size:32px;margin-bottom:8px}
.auth-card p{margin-bottom:19px}
.auth-card .form .btn{margin-top:6px}
dialog{border:1px solid var(--line);border-radius:16px;padding:24px;color:var(--ink);max-height:90dvh;width:min(460px,calc(100vw - 25px))}
dialog::backdrop{background:#112d25a0}
.qr{display:grid;justify-items:center;gap:13px;text-align:center}
.qr canvas{width:min(235px,100%);height:auto;image-rendering:pixelated}
.qr input{font-size:12px}
.toast{position:fixed;bottom:22px;right:22px;z-index:9;max-width:min(410px,calc(100vw - 44px));background:var(--dark);color:#fff;border-radius:10px;padding:12px 17px;box-shadow:0 7px 20px #112d2544}
.toast.bad{background:var(--error)}
.error{color:var(--error);font-size:13px}
.sheet{min-width:965px;margin-bottom:21px;background:white;color:#182724;padding:16px;border:1px solid var(--line)}
.sheet-head{display:flex;justify-content:space-between;gap:10px;margin-bottom:9px}
.stamps{border-collapse:collapse;width:auto;font-size:11px}
.stamps th,.stamps td{border:1px solid #86958b;text-align:center;width:55px;padding:3px}
.stamps td{height:26px}
.matrix{table-layout:fixed;font-size:12px}
.matrix th,.matrix td{padding:4px 0;border:1px solid #86958b;text-align:center;color:inherit}
.matrix th:first-child{width:126px}.matrix th:nth-child(2){width:48px}.matrix th:last-child{width:49px}
.matrix .sun{background:#fce6e6;color:#963d31}.matrix .sat{background:#e3eef9;color:#255784}
.matrix .half{background:#fff7df}.matrix .full{background:#e7f3e8}
@media(max-width:900px){.layout{grid-template-columns:185px minmax(0,1fr)}.rail{padding-inline:11px}.directory{grid-template-columns:1fr}}
@media(max-width:640px){.layout{display:block}.rail{gap:10px;padding:12px}.rail nav{display:flex;overflow:auto;gap:3px}.rail .nav{padding:7px 9px}.rail-bottom{display:flex;gap:3px;overflow:auto}.rail-bottom small{align-self:center}.workspace,.scan{padding:16px 12px 30px}.top{margin-bottom:15px}.hero{padding:21px 15px;border-radius:13px}.hero:after{opacity:.4}.card{padding:11px}.overtime{gap:3px}.overtime input{width:57px;padding-inline:4px}.count{padding:8px 6px;font-size:11px}.count strong{font-size:18px}.toast{bottom:58px}}
