:root{--ink:#1d1d1f;--muted:#6e6e73;--paper:#f5f5f7;--white:#fff;--blue:#0071e3;--line:rgba(0,0,0,.08);--red:#d70015}
*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font-family:-apple-system,BlinkMacSystemFont,"SF Pro Display","PingFang SC","Microsoft YaHei",sans-serif;letter-spacing:-.02em}button,input,select,textarea{font:inherit}[hidden]{display:none!important}.eyebrow{margin:0 0 10px;color:#86868b;font-size:11px;font-weight:750;letter-spacing:.16em}.muted{color:var(--muted);line-height:1.6}.primary,.secondary{border-radius:99px;padding:11px 18px;font-weight:650;cursor:pointer}.primary{border:0;background:var(--blue);color:#fff}.secondary{border:1px solid #d2d2d7;background:#fff;color:#333}
.login-shell{min-height:100vh;display:grid;place-items:center;padding:24px;background:radial-gradient(circle at 70% 20%,#fff 0,#eef2f8 34%,transparent 58%),var(--paper)}.login-card{width:min(460px,100%);padding:48px;border:1px solid rgba(255,255,255,.8);border-radius:36px;background:rgba(255,255,255,.88);box-shadow:0 34px 90px rgba(28,43,65,.12)}.back-home{display:inline-block;margin-bottom:34px;color:#777;text-decoration:none}.brand-mark{width:58px;height:58px;margin-bottom:25px;display:grid;place-items:center;border-radius:18px;background:#17171a;color:#fff;font-size:23px;font-weight:800}.login-card h1{margin:0;font-size:44px;letter-spacing:-.055em}.login-card form{display:grid;gap:16px;margin-top:25px}.login-card label,.toolbar label,.form-grid label{display:grid;gap:7px;color:#555;font-size:13px;font-weight:620}.login-card input,.toolbar input,.toolbar select,.form-grid input,.form-grid select,.form-grid textarea{width:100%;border:1px solid #d2d2d7;border-radius:13px;padding:12px 13px;background:#fff;outline:none}.login-card input:focus,.toolbar input:focus,.toolbar select:focus,.form-grid input:focus,.form-grid select:focus,.form-grid textarea:focus{border-color:var(--blue);box-shadow:0 0 0 4px rgba(0,113,227,.1)}.error{min-height:18px;color:var(--red);font-size:13px}
.site-header{position:sticky;z-index:20;top:0;height:56px;padding:0 max(24px,calc((100vw - 1180px)/2));display:flex;align-items:center;background:rgba(250,250,252,.86);border-bottom:1px solid var(--line);backdrop-filter:saturate(180%) blur(22px)}.brand{display:flex;align-items:center;gap:10px;color:var(--ink);text-decoration:none;white-space:nowrap}.brand span{width:30px;height:30px;display:grid;place-items:center;border-radius:9px;background:#1d1d1f;color:#fff;font-size:14px;font-weight:700}.brand strong{font-size:15px}.site-header nav{margin:auto;display:flex;gap:4px}.site-header nav a,.account button{padding:7px 11px;border:0;border-radius:99px;background:transparent;color:#424245;text-decoration:none;font-size:12px}.site-header nav a.active{background:#e8e8ed;color:#000}.account{display:flex;align-items:center;gap:8px;color:var(--muted);font-size:12px}.account button{cursor:pointer}
main{max-width:1180px;margin:0 auto;padding:36px 18px 100px}.hero{min-height:230px;padding:48px 54px;border-radius:32px;display:flex;align-items:center;justify-content:space-between;gap:24px;background:linear-gradient(135deg,#0d1420,#1d3a5d);color:#fff;box-shadow:0 24px 70px rgba(22,49,82,.18)}.hero h1{margin:0;font-size:clamp(42px,6vw,68px);letter-spacing:-.06em}.hero p:last-child{margin:12px 0 0;color:#b8c8dc;font-size:17px}.add-button{flex:0 0 auto;background:#fff;color:#12375e}
.toolbar{margin:18px 0;display:grid;grid-template-columns:220px 220px auto 1fr;align-items:end;gap:12px;padding:18px 20px;border-radius:20px;background:#fff}.toolbar .secondary{justify-self:start}.option-actions{justify-self:end;display:flex;gap:9px}.manage-option-button{display:flex;align-items:center;gap:8px;padding:9px 13px;border:1px solid #dce6f0;border-radius:13px;background:#f8fbff;color:#244461;font-size:12px;font-weight:700;cursor:pointer}.manage-option-button:hover{border-color:#9fc4e7;background:#edf6ff}.manage-option-button span{width:25px;height:25px;display:grid;place-items:center;border-radius:8px;background:#dceeff;color:#0b64a7;font-size:11px}.summary-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-bottom:18px}.summary-grid article{padding:24px;border-radius:22px;background:#fff}.summary-grid small{display:block;color:var(--muted);font-size:13px}.summary-grid strong{display:block;margin-top:9px;font-size:30px;letter-spacing:-.045em}
.schedule-panel{padding:32px;border-radius:28px;background:#fff;box-shadow:0 18px 60px rgba(0,0,0,.055)}.panel-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:24px}.panel-heading h2{margin:0;font-size:32px}.panel-actions{display:flex;gap:9px}.export-button{color:#075ea8;border-color:#9bc5ed;background:#f4f9ff}.week-grid{display:grid;grid-template-columns:repeat(7,minmax(145px,1fr));gap:10px;overflow-x:auto;padding-bottom:5px}.day-column{min-width:145px;padding:12px;border:1px solid #e5e5e8;border-radius:18px;background:#fafafa}.day-column.today{border-color:#91bcea;background:#f4f9ff}.day-head{display:flex;align-items:flex-start;justify-content:space-between;gap:6px;padding:4px 3px 12px;border-bottom:1px solid #e6e6e8}.day-head strong{display:block;font-size:15px}.day-head small{display:block;margin-top:3px;color:var(--muted)}.copy-day-button{padding:6px 8px;border:1px solid #b8d4ef;border-radius:9px;background:#f2f8ff;color:#075fa8;font-size:12px;font-weight:650;white-space:nowrap;cursor:pointer}.copy-day-button:hover{background:#e4f1fd}.shift-list{display:grid;gap:8px;margin-top:10px}.shift-card{width:100%;padding:12px;border:0;border-radius:14px;background:#fff;box-shadow:0 3px 14px rgba(0,0,0,.05);text-align:left;cursor:pointer}.shift-card:hover{box-shadow:0 7px 22px rgba(0,74,150,.12)}.shift-card time{display:block;color:#1769b1;font-size:12px;font-weight:750}.shift-card time.work-time{margin-bottom:4px;color:#5f6368}.shift-card strong{display:block;margin-top:7px;font-size:15px}.shift-card small{display:block;margin-top:5px;color:var(--muted);line-height:1.35}.empty-day{padding:18px 4px;color:#aaa;font-size:12px;text-align:center}.loading,.empty{grid-column:1/-1;padding:40px;border-radius:18px;background:#f5f5f7;color:var(--muted);text-align:center}
dialog{width:min(720px,calc(100% - 24px));padding:0;border:0;border-radius:28px;background:#fff;box-shadow:0 38px 110px rgba(0,0,0,.3)}dialog::backdrop{background:rgba(0,0,0,.5);backdrop-filter:blur(8px)}.editor{padding:36px}.editor-head{display:flex;align-items:flex-start;justify-content:space-between;gap:20px}.editor-head h2{margin:0;font-size:34px}.close{border:0;background:#eeeef0;width:40px;height:40px;border-radius:50%;font-size:25px;cursor:pointer}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-top:26px}.form-grid .full{grid-column:1/-1}.duration-preview{grid-column:1/-1;padding:14px 16px;border-radius:14px;background:#f5f5f7;color:#555;font-size:13px}.editor-actions{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;margin-top:8px}.danger{border:0;background:transparent;color:var(--red);cursor:pointer}.toast{position:fixed;z-index:50;left:50%;bottom:28px;transform:translateX(-50%);padding:11px 18px;border-radius:99px;background:#1d1d1f;color:#fff;font-size:13px}
dialog{width:min(720px,calc(100% - 24px));padding:0;border:0;border-radius:28px;background:#fff;box-shadow:0 38px 110px rgba(0,0,0,.3)}dialog::backdrop{background:rgba(0,0,0,.5);backdrop-filter:blur(8px)}.editor{padding:36px}.editor-head{display:flex;align-items:flex-start;justify-content:space-between;gap:20px}.editor-head h2{margin:0;font-size:34px}.close{border:0;background:#eeeef0;width:40px;height:40px;border-radius:50%;font-size:25px;cursor:pointer}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-top:26px}.form-grid .full{grid-column:1/-1}.duration-preview{grid-column:1/-1;padding:14px 16px;border-radius:14px;background:#f5f5f7;color:#555;font-size:13px}.editor-actions{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;margin-top:8px}.danger{border:0;background:transparent;color:var(--red);cursor:pointer}.toast{position:fixed;z-index:50;left:50%;bottom:28px;transform:translateX(-50%);padding:11px 18px;border-radius:99px;background:#1d1d1f;color:#fff;font-size:13px}
.export-dialog{width:min(980px,calc(100% - 24px))}.export-editor{padding:32px}.export-range{display:grid;grid-template-columns:1fr 1fr auto;align-items:end;gap:12px;margin-top:24px}.export-range label{display:grid;gap:7px;color:#555;font-size:13px;font-weight:620}.export-range input{width:100%;border:1px solid #d2d2d7;border-radius:13px;padding:12px 13px;background:#fff;outline:none}.export-work-option{display:flex;align-items:center;gap:12px;margin-top:14px;padding:13px 15px;border:1px solid #dbe7f4;border-radius:15px;background:#f5f9ff;cursor:pointer}.export-work-option input{width:19px;height:19px;accent-color:#087df1}.export-work-option span{display:grid;gap:3px}.export-work-option b{font-size:14px;color:#173f6b}.export-work-option small{font-size:12px;line-height:1.45;color:var(--muted)}.export-hint{margin:12px 0;color:var(--muted);font-size:13px}.export-preview{min-height:240px;max-height:56vh;overflow:auto;padding:14px;border-radius:20px;background:#edf1f7}.export-preview canvas{display:block;width:100%;height:auto;border-radius:13px;background:#fff;box-shadow:0 10px 32px rgba(10,35,68,.14)}.export-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:16px}.export-actions button:disabled{opacity:.4;cursor:not-allowed}
.copy-day-dialog{width:min(620px,calc(100% - 24px))}.copy-day-editor{padding:34px}.copy-day-form{display:grid;grid-template-columns:1fr auto 1fr;align-items:end;gap:14px;margin-top:26px}.copy-day-form label{display:grid;gap:8px;color:#555;font-size:14px;font-weight:620}.copy-day-form input{width:100%;border:1px solid #d2d2d7;border-radius:13px;padding:12px 13px;background:#fff}.copy-arrow{padding-bottom:12px;color:#7b8794;font-size:24px}.copy-day-form p,.copy-day-form .editor-actions{grid-column:1/-1}.copy-day-form p{margin:5px 0;color:var(--muted);font-size:14px;line-height:1.6}
.editor-subtitle{margin:9px 0 0;color:var(--muted);font-size:14px;line-height:1.5}.live-time-list{display:grid;gap:3px}.shift-count-badge{display:inline-flex;margin-top:8px;padding:4px 7px;border-radius:99px;background:#eaf4ff;color:#075fa8;font-size:10px;font-weight:750}.work-time-removed{display:inline-flex;margin-bottom:5px;color:#8a6b22;font-size:11px;font-weight:700}.work-time-choice{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:0;padding:14px;border:1px solid #dfe7f0;border-radius:18px;background:#f8fbff}.work-time-choice legend{padding:0 7px;color:#394758;font-size:14px;font-weight:750}.work-time-choice label{display:flex;align-items:flex-start;gap:9px;padding:12px;border:1px solid #dbe3ec;border-radius:14px;background:#fff;cursor:pointer}.work-time-choice label:has(input:checked){border-color:#5b9bd5;background:#eef7ff;box-shadow:0 0 0 2px rgba(23,105,177,.08)}.work-time-choice input{width:auto;margin:3px 0 0;accent-color:#1769b1}.work-time-choice span{display:grid;gap:3px}.work-time-choice b{font-size:13px}.work-time-choice small{color:#7b8794;font-size:11px;font-weight:500;line-height:1.35}.work-time-fields{display:grid;grid-template-columns:1fr 1fr;gap:14px}.work-time-fields[hidden]{display:none}.work-time-fields .duration-preview{grid-column:1/-1}.live-segments-panel{padding:18px;border:1px solid #dfe7f0;border-radius:20px;background:linear-gradient(145deg,#f8fbff,#f4f7fb)}.live-segments-head{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:13px}.live-segments-head strong{font-size:16px}.live-segments-head p{margin:5px 0 0;color:var(--muted);font-size:12px;line-height:1.45}.add-segment{flex:0 0 auto;padding:9px 13px;border:1px solid #9bc5ed;border-radius:99px;background:#fff;color:#075fa8;font-size:12px;font-weight:700;cursor:pointer}.add-segment:hover{background:#eaf4ff}.live-segment{padding:15px;border:1px solid #dbe3ec;border-radius:16px;background:#fff;box-shadow:0 3px 14px rgba(23,63,107,.04)}.live-segment+.live-segment{margin-top:10px}.live-segment-title{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:11px}.live-segment-title span{display:grid;gap:4px}.live-segment-title b{font-size:14px}.live-segment-title small{color:#8a949f;font-size:11px;font-weight:500}.remove-segment{padding:5px 8px;border:0;border-radius:8px;background:#fff1f2;color:#bd1e2d;font-size:11px;font-weight:650;cursor:pointer}.remove-segment:disabled{visibility:hidden}.segment-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.segment-duration{margin:10px 0 0;color:#687383;font-size:12px}.segment-duration strong{color:#173f6b}.live-total{display:flex;align-items:center;justify-content:space-between;margin-top:12px;padding:13px 15px;border-radius:14px;background:#173f6b;color:#fff}.live-total span{font-size:13px}.live-total strong{font-size:18px}
.option-dialog{width:min(600px,calc(100% - 24px))}.option-manager{padding:34px}.option-manager-intro{margin:8px 0 0;color:var(--muted);font-size:13px;line-height:1.55}.option-add-form{display:grid;grid-template-columns:1fr auto;gap:10px;margin:24px 0 18px;padding:14px;border-radius:17px;background:#f5f8fc}.option-add-form.account-form{grid-template-columns:150px 1fr auto}.option-add-form input,.option-add-form select{min-width:0;width:100%;padding:11px 12px;border:1px solid #d2dbe5;border-radius:12px;background:#fff;outline:none}.option-add-form button{padding:10px 16px;border:0;border-radius:12px;background:#0877d1;color:#fff;font-weight:700;cursor:pointer}.option-list{display:grid;gap:8px;max-height:390px;overflow:auto}.option-row{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:12px 14px;border:1px solid #e5e9ee;border-radius:14px;background:#fff}.option-row-main{display:grid;gap:3px}.option-row-main strong{font-size:14px}.option-row-main small{color:#7c8793;font-size:11px}.option-delete{padding:7px 10px;border:0;border-radius:9px;background:#fff1f2;color:#bd1e2d;font-size:11px;font-weight:700;cursor:pointer}.option-empty{padding:30px;border:1px dashed #d5dce4;border-radius:16px;color:#8a949f;text-align:center}
@media(max-width:900px){.site-header nav{display:none}.account{margin-left:auto}.week-grid{grid-template-columns:repeat(7,170px)}}
@media(max-width:640px){main{padding:12px 10px 50px}.login-card{padding:34px 24px;border-radius:28px}.login-card h1{font-size:37px}.hero{min-height:220px;padding:32px 25px;align-items:flex-start;flex-direction:column}.hero h1{font-size:44px}.add-button{width:100%}.toolbar{grid-template-columns:1fr 1fr;padding:15px}.toolbar .secondary{width:100%;grid-column:1/-1}.summary-grid{grid-template-columns:1fr 1fr}.summary-grid article{padding:18px}.summary-grid strong{font-size:25px}.schedule-panel{padding:22px 14px;border-radius:24px}.panel-heading{align-items:flex-start;gap:14px;flex-direction:column}.panel-heading h2{font-size:26px}.panel-actions{width:100%}.panel-actions button{flex:1}.editor{padding:28px 20px}.editor-head h2{font-size:29px}.form-grid{grid-template-columns:1fr}.form-grid .full,.duration-preview,.editor-actions{grid-column:auto}.work-time-choice,.work-time-fields{grid-template-columns:1fr}.work-time-fields .duration-preview{grid-column:auto}.live-segments-panel{padding:14px}.live-segments-head{align-items:flex-start;flex-direction:column}.add-segment{width:100%}.segment-grid{grid-template-columns:1fr}.export-editor{padding:24px 16px}.export-range{grid-template-columns:1fr 1fr}.export-range button{grid-column:1/-1}.export-preview{padding:8px;max-height:48vh}.export-actions{display:grid;grid-template-columns:1fr 1fr}.export-actions button{padding-inline:10px}.copy-day-editor{padding:26px 18px}.copy-day-form{grid-template-columns:1fr}.copy-day-form p,.copy-day-form .editor-actions{grid-column:auto}.copy-arrow{display:none}}
.room-badge{display:inline-flex;width:max-content;margin-top:7px;padding:4px 8px;border-radius:999px;background:#eef7ee;color:#23733a;font-size:11px;font-weight:750}
@media(max-width:640px){.option-actions{width:100%;grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr}.manage-option-button{justify-content:center}.option-manager{padding:26px 18px}.option-add-form,.option-add-form.account-form{grid-template-columns:1fr}.option-add-form button{width:100%}}
