:root{color-scheme:dark;--page:#111;--panel:#1d1d1d;--yellow:#ffd400;--green:#167a36;--white:#f8f8f8;--muted:#c5c5c5;font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;background:var(--page);color:var(--white)}
*{box-sizing:border-box}
html{min-height:100%;background:var(--page)}
body{margin:0;min-height:100vh;background:var(--page);color:var(--white);font-size:20px}
main{width:min(100%,680px);min-height:100vh;margin:0 auto;padding:16px 16px max(24px,env(safe-area-inset-bottom))}
h1,h2,p{margin-top:0}
h1{font-size:28px;line-height:1.15;margin-bottom:8px}
h2{font-size:24px;line-height:1.2}
.pl,.en{display:block}
.pl{font-size:22px;font-weight:800;line-height:1.15}
.en{margin-top:3px;font-size:16px;font-weight:500;line-height:1.15}
.choices{display:grid;grid-template-columns:1fr;gap:7px}
button,a{font:inherit}
button{display:flex;width:100%;min-height:72px;align-items:center;justify-content:center;flex-direction:column;padding:7px 12px;border:0;border-radius:12px;background:var(--yellow);color:#000;font-size:22px;font-weight:800;text-align:center;touch-action:manipulation}
button:focus-visible,a:focus-visible{outline:4px solid #fff;outline-offset:3px}
button small{font-size:15px;line-height:1.1;font-weight:600}
[hidden]{display:none!important}
.office{background:#151515;color:#eee}
.office main{width:min(100%,1000px)}
.office nav{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:20px}
.office nav a,.office a{color:var(--yellow)}
.office nav a{padding:10px;background:var(--panel);border-radius:8px}
.office button{min-height:52px;font-size:18px}
.office input,.office select{display:block;width:100%;min-height:48px;margin:6px 0 14px;padding:10px;border:1px solid #777;border-radius:7px;background:#222;color:#fff;font-size:18px}
.office label{display:block;margin:12px 0}
.office table{display:block;width:100%;overflow-x:auto;border-collapse:collapse;font-size:16px}
.office th,.office td{padding:9px;border:1px solid #555;text-align:left}
.office th{background:#252525}
.office-card{max-width:520px;margin:40px auto;padding:20px;border-radius:14px;background:var(--panel)}
@media(min-width:560px){main{padding:24px}}
body:not(.office) main{padding:10px 12px max(16px,env(safe-area-inset-bottom))}
.worker-head{padding:1px 3px 10px}
.worker-head h1{font-size:24px;margin-bottom:2px}
.worker-head p{display:flex;align-items:baseline;gap:10px;margin:0;color:var(--muted)}
.worker-head p>span{display:flex;align-items:baseline;gap:6px}
.worker-head p .pl{font-size:17px}
.worker-head time{font-size:17px}
#choose h2,#more-projects h2{margin:0 0 8px}
#special-choices,#more,#back{margin-top:7px}
#worker-app button.project{min-height:84px}
#worker-app button:disabled{opacity:.65}
.notice{margin:0 0 7px;padding:6px 9px;color:var(--yellow);background:#26220d;border-radius:7px}
.notice:empty{display:none}
.notice .pl,.notice .en{font-size:14px}
.stage{min-height:calc(100vh - 108px);min-height:calc(100svh - 108px)}
.stage.message{display:flex;justify-content:center;flex-direction:column;padding:20px;border:1px solid #444;border-radius:14px;background:var(--panel)}
.message button{margin-top:10px}
.stage h2{margin-bottom:18px}
.saved{display:flex;align-items:stretch;justify-content:center;flex-direction:column;gap:14px;padding:20px;border-radius:16px;background:var(--green);text-align:center}
.saved h2{font-size:30px}
.saved button{min-height:84px;background:#fff;color:#111}
.saved.waiting{background:#514000}
#saved-name{font-size:27px;font-weight:800;overflow-wrap:anywhere}
#saved-name small{display:block;font-size:17px;font-weight:600}
#undo-team{font-size:16px;margin:0}
#undo-team .pl,#worker-footer .pl{font-size:16px}
#worker-footer{margin-top:20px;padding:8px 4px 16px;color:var(--muted);font-size:16px}
#worker-footer p{line-height:1.4}
.office input[type=checkbox]{display:inline;width:24px;min-height:24px;margin:0 8px 0 0;vertical-align:middle}
.office .week-nav{display:flex;justify-content:space-between;gap:10px}
