:root{font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;color:#151513;background:#faf9f7;font-size:14px;--green:#5b5752;--muted:#797570;--line:#f1efec}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button,a,input,select{ -webkit-tap-highlight-color:transparent}button{cursor:pointer;border:0;border-radius:8px;padding:11px 17px;background:var(--green);color:white;font-weight:600}button:hover{filter:brightness(.96)}button:disabled{opacity:.45;cursor:not-allowed}button.secondary{background:white;color:#5b5752;border:1px solid var(--line)}button.subtle{background:transparent;color:#5b5752;padding:8px}a{color:var(--green)}input,select{background:white;border:1px solid #dedbd7;border-radius:8px;padding:10px 12px;min-width:0;color:#151513}input:focus,select:focus,button:focus-visible{outline:2px solid #797570;outline-offset:2px}h1,h2,h3,p{margin:0}h1{font-size:29px;letter-spacing:-1px;font-weight:650}h2{font-size:18px;font-weight:650}h3{font-size:15px}small,.muted{color:var(--muted)}small{font-size:12px}p{line-height:1.8}label{display:flex;flex-direction:column;gap:8px;margin:16px 0;font-size:13px}aside{width:218px;position:fixed;inset:0 auto 0 0;background:#faf9f7;border-right:1px solid var(--line);padding:34px 22px;display:flex;flex-direction:column}.brand{display:flex;align-items:center;gap:11px;font-size:21px;font-weight:700;letter-spacing:2px}.brand-mark{background:#5b5752;color:#faf9f7;width:34px;height:36px;border-radius:9px;display:grid;place-items:center;font-size:20px;letter-spacing:0}.brand small{display:block;font-size:9px;letter-spacing:2px;margin-top:3px;font-weight:500}nav{display:grid;gap:9px;margin-top:49px}nav button{text-align:left;background:transparent;color:#797570;font-weight:500;display:flex;gap:15px;align-items:center;padding:14px}nav button.active{background:#f1efec;color:#5b5752}nav i{font-style:normal;font-size:18px;width:20px}.sidebar-bottom{margin-top:auto;border-top:1px solid var(--line);padding-top:18px}.sidebar-bottom p{font-size:12px;margin:8px 0}.main{margin-left:218px;padding:32px 40px;max-width:1600px}.topbar{display:flex;justify-content:space-between;align-items:center;padding-bottom:26px;border-bottom:1px solid var(--line);font-size:12px;color:#797570}.avatar{width:32px;height:32px;display:inline-grid;place-items:center;border-radius:50%;background:#f1efec;color:#5b5752;margin-right:8px}.page-head{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:33px 0 27px}.page-head p{color:var(--muted);font-size:13px;margin-top:9px}.row{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.between{justify-content:space-between}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:18px;margin-bottom:28px}.stat{padding:24px;background:white;border:1px solid var(--line);border-radius:12px}.stat.featured{background:#f1efec;border-color:#f1efec}.stat p{font-size:12px;color:#797570}.stat strong{display:block;font-size:30px;font-weight:600;font-variant-numeric:tabular-nums;letter-spacing:-1px;margin:15px 0 10px}.stat strong em{font-size:14px;font-style:normal;margin-left:5px;letter-spacing:0}.stat small{font-size:11px}.workspace{display:grid;grid-template-columns:minmax(0,1fr) 294px;gap:24px}.panel{background:white;border:1px solid var(--line);border-radius:12px;padding:24px}.panel-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:24px}.panel-head p{font-size:12px;color:var(--muted);margin-top:7px}.legend{display:flex;gap:14px;font-size:11px;color:#797570}.legend span:before{content:'';width:7px;height:7px;border-radius:50%;background:#a39f9a;display:inline-block;margin-right:5px}.legend .rest:before{background:#dedbd7}.legend .done:before{background:#5b5752}.calendar{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:8px}.weekday{text-align:center;padding:10px 0;color:#a39f9a;font-size:11px}.day{position:relative;min-height:89px;background:#faf9f7;border:1px solid transparent;color:#151513;text-align:left;padding:11px;border-radius:8px;font-size:14px;display:flex;flex-direction:column;justify-content:space-between;font-weight:500}.day small{font-size:10px;line-height:1.5}.day.work{background:#f1efec}.day.done{background:#f1efec}.day.rest{background:#faf9f7;color:#797570}.day.today{border:1px solid #797570}.day.selected{outline:2px solid #5b5752;outline-offset:-2px;background:#dedbd7}.day:disabled{opacity:1;cursor:default}.day .day-top{display:flex;justify-content:space-between;gap:3px}.day .today-mark{font-size:9px;color:#5b5752}.calendar-foot{display:flex;justify-content:space-between;align-items:center;gap:10px;border-top:1px solid var(--line);margin-top:20px;padding-top:17px;color:#797570;font-size:11px}.side-stack{display:grid;gap:20px;align-content:start}.hint{background:#f1efec;border-radius:10px;padding:18px;font-size:12px;line-height:1.9;color:#5b5752}.selection-count{font-size:36px;line-height:1.4;letter-spacing:-1px;margin:20px 0 4px}.actions{display:grid;gap:10px;margin-top:18px}.time-fields{display:grid;grid-template-columns:1fr 1fr;gap:10px}.time-fields input{width:100%;font-size:12px}.table-wrap{overflow:auto}table{border-collapse:collapse;width:100%;white-space:nowrap;font-size:13px}th{text-align:left;color:#a39f9a;font-size:11px;font-weight:500;background:#faf9f7;padding:15px}td{padding:20px 15px;border-bottom:1px solid #f1efec}tbody tr:last-child td{border-bottom:0}.person{display:flex;align-items:center;gap:10px}.person .avatar{border-radius:10px;font-size:13px}.person small{display:block;font-size:10px;margin-top:5px}.badge{font-size:11px;background:#f1efec;color:#5b5752;padding:5px 8px;border-radius:5px}.badge.gray{background:#f1efec;color:#797570}.salary{font-size:16px;font-weight:600;font-variant-numeric:tabular-nums}.empty{text-align:center;padding:48px 20px;color:#797570;font-size:13px}.notice{background:#f1efec;color:#5b5752;padding:10px 16px;border-radius:8px;margin-bottom:20px;font-size:12px}.month{padding:9px 12px;background:#faf9f7}.login{min-height:100dvh;display:grid;grid-template-columns:1.1fr 1fr;background:#faf9f7}.login-art{background:#f1efec;padding:70px;display:flex;flex-direction:column;justify-content:space-between}.login-art h1{font-size:47px;font-weight:600;line-height:1.4;max-width:450px}.login-art p{color:#797570;margin-top:25px;max-width:350px}.login-box{display:grid;place-content:center;padding:32px}.login-box form{width:min(360px,80vw)}.login-box h2{font-size:26px;margin-bottom:13px}.login-box button{width:100%;margin-top:10px}.login-box .muted{font-size:13px}.login-box .brand{margin-bottom:50px}.login-illustration{display:grid;grid-template-columns:repeat(7,1fr);gap:10px;max-width:380px;transform:rotate(-6deg);margin:40px 0}.login-illustration span{display:grid;place-items:center;aspect-ratio:1;background:#f1efec;border-radius:12px;color:#797570}.login-illustration span:nth-child(5n){background:#5b5752;color:white}.form-error{color:#5b5752;font-size:12px;min-height:18px;margin-top:10px}.loading{padding:60px;text-align:center}dialog{border:1px solid var(--line);border-radius:15px;padding:28px;max-width:460px;width:calc(100% - 36px);color:#151513}dialog::backdrop{background:#15151366;backdrop-filter:blur(3px)}dialog h2{margin-bottom:8px}dialog .row{justify-content:flex-end;margin-top:20px}#toast{position:fixed;bottom:30px;left:50%;transform:translateX(-50%);background:#151513;color:white;border-radius:10px;padding:14px 22px;z-index:20;display:none;max-width:90vw;box-shadow:0 5px 30px #15151322}.employee-main{max-width:700px;margin:auto;padding:30px 20px}.employee-main .panel{margin-top:20px}.wage-hero{background:#f1efec;padding:30px;border-radius:16px;margin-top:26px}.wage-hero strong{font-size:48px;letter-spacing:-2px;display:block;margin:12px 0 20px}.progress{height:9px;background:#dedbd7;border-radius:8px;overflow:hidden}.progress span{height:100%;display:block;background:#5b5752;border-radius:8px}.wage-hero .between{font-size:11px;margin:12px 0 0}.wage-hero p{font-size:12px;color:#5b5752;margin-top:17px}.employee-main .day{min-height:72px}.employee-main .day small{font-size:9px}.punch{width:100%;padding:17px;margin-top:22px;font-size:15px}.substats{display:flex;justify-content:space-around;margin:26px 0;text-align:center}.substats strong{display:block;font-size:24px;margin-bottom:7px}.substats small{font-size:11px}.detail-line{border-bottom:1px solid var(--line);padding:14px 0;display:flex;justify-content:space-between;font-size:12px}.detail-line:last-child{border:0}.settings{max-width:580px}.link-button{background:none;color:#5b5752;padding:4px;font-size:12px}.mobile-title{display:none}@media(max-width:1100px){.workspace{grid-template-columns:1fr}.side-stack{grid-template-columns:1fr 1fr}.main{padding:24px}.stats{gap:10px}.stat{padding:19px}.stat strong{font-size:25px}}@media(max-width:760px){aside{position:static;width:auto;padding:18px;border:0}.brand{font-size:18px}aside nav{display:flex;overflow:auto;margin:18px 0 0;gap:2px}nav button{white-space:nowrap;padding:10px;font-size:12px}nav i,.sidebar-bottom,aside .brand small{display:none}.main{margin:0;padding:0 16px 30px}.topbar{padding:14px 0}.page-head{margin:22px 0;align-items:flex-start}h1{font-size:24px}.page-head p{font-size:11px}.stats{grid-template-columns:repeat(2,1fr);gap:10px}.stat{padding:17px}.stat strong{margin:10px 0;font-size:27px}.panel{padding:16px}.day{min-height:68px;padding:7px}.day small{font-size:9px}.calendar{gap:4px}.side-stack{grid-template-columns:1fr}.panel-head{align-items:flex-start}.legend{gap:7px;font-size:10px}.login{grid-template-columns:1fr}.login-art{display:none}.login-box{min-height:100dvh}.employee-main{padding:22px 14px}.employee-main .day{min-height:68px}.wage-hero{padding:24px}.row{gap:8px}.month{width:142px}.calendar-foot{line-height:1.6}.notice{line-height:1.8}}

/* Monochrome calendar; red is reserved for rest days and errors. */
:root{color:#151513;background:#f5f3f0;--green:#151513;--muted:#827e78;--line:#dedbd6}
body{font-variant-numeric:tabular-nums}button{background:#151513;border-radius:14px;transition:background .16s,transform .16s}button:active{transform:scale(.98)}button:focus-visible,input:focus,select:focus{outline-color:#151513}button.secondary{background:#fff;color:#151513}a,.link-button{color:#151513}.brand-mark{background:#151513;color:#fff}.brand{letter-spacing:0}nav button.active{background:#151513;color:#fff}aside{background:#f5f3f0}.main{max-width:1600px}.panel{border:0;background:#fbfaf8;border-radius:24px}.stat{border:0;border-radius:20px;background:#fff}.stat.featured{background:#151513;color:#fff}.stat.featured p,.stat.featured small{color:#ccc8c2}.stat strong{font-weight:650}.page-head h1{font-size:40px;letter-spacing:-1.5px}.hint{background:#ebe8e3;color:#68625b;border-radius:18px}.notice{background:#eae7e2;color:#736e66}.calendar{gap:10px}.weekday{color:#343330;font-size:14px;padding:15px 0}.day{min-height:94px;align-items:center;justify-content:center;gap:9px;border-radius:19px;padding:11px 5px;background:#eceae7;color:#aaa59f;border:2px solid transparent}.day-top{font-size:22px;line-height:1.2;justify-content:center}.day small{font-size:12px;line-height:1.25;color:inherit}.day.work{background:#151513;color:#fff}.day.done{background:#fff;color:#151513}.day.half{background:#fff;color:#151513;border:2px dashed #797570}.day.rest{background:#f7e1de;color:#b33e36}.day.today{outline:2px solid #151513;outline-offset:2px;border-color:transparent}.day.today.rest{outline-color:#b33e36}.day .today-mark{position:absolute;top:5px;right:5px;background:#151513;color:#fff;border-radius:20px;font-size:8px;padding:3px 5px;line-height:1;white-space:nowrap}.day.work .today-mark{background:#fff;color:#151513}.day.selected{outline:3px solid #151513;outline-offset:2px;box-shadow:inset 0 0 0 3px #c5c0b8}.day.rest.selected{outline-color:#b33e36}.legend{font-size:12px;gap:13px;white-space:nowrap;color:#827d75}.legend span:before{background:#151513;width:9px;height:9px}.legend .half:before{background:transparent;border:1.5px dashed #151513}.legend .rest:before{background:#b33e36}.rest-action{background:#f7e1de!important;color:#b33e36!important;border-color:#f7e1de!important}.badge{background:#eeece8;color:#151513}.badge.gray{background:#eeece8;color:#8c857c}.avatar{background:#eae7e1;color:#151513}.form-error{color:#b33e36}.record-actions{display:grid;text-align:right;gap:8px}.login-art{background:#eeebe5}.login-art h1{color:#151513}.login-illustration span{background:#fff;color:#151513}.login-illustration span:nth-child(5n){background:#151513;color:#fff}.login-illustration span:nth-child(7n){background:#f7e1de;color:#b33e36}#toast{background:#151513;color:white}.employee-main{max-width:540px;padding:35px 26px 60px}.eyebrow{font-size:14px;color:#827e78;font-weight:600}.employee-title{display:flex;justify-content:space-between;align-items:center;margin:8px 0 32px}.employee-title h1{font-size:68px;font-weight:750;letter-spacing:-4px;line-height:1.2}.account-chip{background:#151513;color:#fff;padding:12px 21px;border-radius:30px;font-size:12px}.calendar-toolbar{display:flex;align-items:center;justify-content:space-between;margin-bottom:15px;gap:10px}.employee-main .month{border:0;background:transparent;font-weight:700;font-size:21px;padding:0;width:175px;color:#151513}.employee-main .day{min-height:78px;border-radius:17px}.employee-main .day small{font-size:12px}.employee-main .day-top{font-size:22px}.employee-main .calendar{gap:8px}.employee-main .calendar-foot{border:0;margin-top:10px;padding-top:0;font-size:10px}.punch{border-radius:18px;background:#151513;font-weight:600;margin-top:12px}.punch:disabled{opacity:1;background:#e8e4df;color:#847f78}.footnote{font-size:10px;color:#8c867e;text-align:center;margin:12px 0}.wage-hero{background:#fff;border:1px solid #e1ddd7;border-radius:24px;padding:24px;margin-top:30px}.wage-hero strong{font-size:43px;font-weight:700;letter-spacing:-2px;margin:13px 0 20px}.wage-hero small,.wage-hero p{color:#827b73}.month-label{font-size:11px;color:#827b73}.progress{background:#eeebe6;height:7px}.progress span{background:#151513}.substats{margin:27px 0}.substats strong{font-size:25px}.employee-tools{display:flex;justify-content:space-between;gap:6px}.employee-tools button{font-size:12px}.employee-tools .secondary{background:#151513;color:#fff;border:0;border-radius:25px;padding:12px 23px}
@media(max-width:760px){.page-head h1{font-size:30px}.panel{padding:18px}.calendar{gap:7px}.day{min-height:74px;border-radius:14px}.day-top{font-size:20px}.day small{font-size:11px}.employee-main{padding:28px 20px 48px}.employee-title h1{font-size:60px}.employee-main .month{width:165px;font-size:19px}.calendar-toolbar .legend{gap:9px;font-size:11px}.employee-main .calendar{gap:7px}.employee-main .day{min-height:65px;border-radius:13px;gap:7px}.employee-main .day-top{font-size:20px}.employee-main .day small{font-size:10px}.day .today-mark{font-size:7px;top:3px;right:3px;padding:2px 3px}.employee-main .weekday{font-size:13px}.employee-title{margin-bottom:26px}.account-chip{font-size:11px;padding:11px 17px}.wage-hero{padding:22px}.calendar-toolbar{gap:5px}}
@media(prefers-reduced-motion:reduce){button{transition:none}}

/* Custom employee selector shared by overview and schedule. */
.employee-picker{position:relative;flex-shrink:0;min-width:130px;max-width:100%}.employee-picker summary{list-style:none;display:flex;align-items:center;gap:9px;padding:8px 12px;border:1px solid #dedbd5;border-radius:12px;background:#fff;cursor:pointer;font-size:13px}.employee-picker summary::-webkit-details-marker{display:none}.employee-picker summary svg{flex-shrink:0;color:#817b72}.employee-picker[open] summary{border-color:#7c766e}.employee-picker[open] summary svg{transform:rotate(180deg)}.picker-name{max-width:130px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.picker-avatar{display:flex;align-items:center;justify-content:center;flex:0 0 28px;width:28px;height:28px;background:#eeeae3;color:#534d44;border-radius:9px;font-size:12px}.employee-menu{position:absolute;right:0;top:calc(100% + 9px);z-index:30;width:260px;max-width:calc(100vw - 60px);padding:10px;background:#fff;border:1px solid #e7e3dc;border-radius:16px;box-shadow:0 12px 35px #24221e20}.employee-menu input{width:100%;min-width:0;margin:0 0 8px;padding:10px 12px;font-size:13px;background:#f6f5f2;border:1px solid #ebe8e1;border-radius:9px}.employee-options{max-height:260px;overflow-y:auto}.employee-option{display:flex;align-items:center;gap:10px;width:100%;padding:10px;border:0;border-radius:10px;background:transparent;color:#27241f;text-align:left;font-size:13px}.employee-option:hover,.employee-option:focus-visible{background:#f4f2ed}.employee-option.is-current{background:#eeebe4}.picker-person{flex:1;min-width:0}.picker-person strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px;font-weight:600}.picker-person small{display:block;margin-top:3px;font-size:11px;color:#938a7c;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.picker-check{width:15px;color:#514d42}.employee-option[hidden],.picker-empty[hidden]{display:none}.employee-menu .picker-empty{font-size:12px;color:#978f84;text-align:center;padding:18px 0;margin:0}.employee-picker summary:focus-visible{outline:2px solid #827461;outline-offset:3px}

.drag-calendar{user-select:none;-webkit-user-select:none}.calendar-selection-box{position:fixed;pointer-events:none;z-index:100;border:1px solid #70624c;background:rgba(151,132,100,.16);border-radius:5px}
