:root{font-family:system-ui,-apple-system,"Microsoft YaHei",sans-serif;color:#20334c;background:#f3f6fa;font-synthesis:none}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button{cursor:pointer;border:1px solid #dbe3ed;border-radius:10px;background:white;color:#244463;padding:11px 14px;min-height:44px}button:hover{background:#eaf1f9}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #74a8e0;outline-offset:2px}button.active,.primary{background:#183d67;color:#fff;border-color:#183d67}.muted{color:#718197;font-size:13px}.brand{background:#183d67;color:white;padding:25px max(20px,calc((100vw - 1040px)/2));display:flex;align-items:center;justify-content:space-between;gap:16px}.brand h1{font-size:23px;margin:0 0 7px}.brand small{color:#bbcee3}.brand .symbol{font-size:30px;border:1px solid #527091;padding:8px 14px;border-radius:14px}main{max-width:1080px;margin:auto;padding:24px 20px 180px}h2{font-size:21px;margin:0 0 16px}h3{font-size:16px;margin:0 0 12px}.panel{background:white;border:1px solid #e1e7ef;border-radius:16px;padding:18px;margin-bottom:18px}.row{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.between{justify-content:space-between}.stack{display:grid;gap:12px}.chips{display:flex;gap:8px;flex-wrap:wrap}.chips label{display:inline-flex;align-items:center;gap:7px;padding:11px;background:#f1f5fa;border:1px solid #e0e6ef;border-radius:9px;cursor:pointer}.chips label:has(input:checked){background:#e0ebf9;border-color:#658ab6;color:#163d6a}.chips input{accent-color:#183d67;width:18px;height:18px}.week-toolbar{display:grid;gap:16px}.range{font-size:20px;font-weight:700}.stats{display:flex;gap:18px;padding-top:12px;border-top:1px solid #e6ebf1;font-size:13px}.legend{display:flex;gap:14px;font-size:12px;margin:16px 0;flex-wrap:wrap}.dot{display:inline-block;width:8px;height:8px;border-radius:50%;margin-right:5px}.week-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.day{margin:0}.day-head{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #e7edf3;padding-bottom:12px;margin-bottom:14px}.day-head strong{font-size:16px}.period{margin:12px 0}.period-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px;font-size:12px;color:#6f8096}.period-head button{padding:2px 10px;min-height:32px;font-size:12px}.empty{padding:14px;color:#8996a8;font-size:13px;background:#f8fafc;border:1px dashed #e1e7ef;border-radius:8px}.card{display:block;text-align:left;width:100%;margin:8px 0;padding:12px;border-left:4px solid #4b80b7;background:#f1f6fd;border-radius:8px;overflow-wrap:anywhere}.card strong{display:block;font-size:15px;margin:6px 0;line-height:1.5}.card small{color:#65788c}.card.group{background:#f4effb;border-left-color:#8760b2}.card.visitor{background:#fff6e4;border-left-color:#c0912d}.card.conflict{background:#fff0ef;border-left-color:#c54e4e;color:#9c3434}.tags{font-size:11px;margin-top:6px;display:flex;gap:6px;flex-wrap:wrap}.tag{padding:2px 6px;border-radius:5px;background:#e6edf6}.tag.purple{background:#e9def8;color:#6a4595}.tag.gold{background:#f9e9b9;color:#876311}.alert{padding:13px;border-radius:10px;background:#fff0ef;color:#a23c3c;font-size:13px;line-height:1.7;margin:10px 0}.bottom{position:fixed;bottom:0;left:0;right:0;background:#fff;border-top:1px solid #dce4ed;display:flex;justify-content:center;padding:9px 8px calc(9px + env(safe-area-inset-bottom));z-index:3}.bottom button{border:0;flex:1;max-width:200px;border-radius:8px;font-size:13px;padding:10px 4px}.bottom button span{display:block;font-size:20px;margin-bottom:3px}.fab{position:fixed;bottom:calc(92px + env(safe-area-inset-bottom));right:max(20px,calc((100vw - 1040px)/2));box-shadow:0 6px 20px #183d6733;z-index:2;padding:13px 22px}.field{display:grid;gap:7px;font-size:14px}.field input,.field select,.field textarea{width:100%;min-width:0;border:1px solid #d2dce8;border-radius:9px;padding:12px;background:#fff;color:#20334c;min-height:46px}.field textarea{resize:vertical;min-height:90px}.two{display:grid;grid-template-columns:1fr 1fr;gap:12px}.switch{display:flex;align-items:center;justify-content:space-between;background:#f6f8fb;padding:14px;border-radius:10px}.switch input{width:22px;height:22px;accent-color:#183d67}.form-footer{position:sticky;bottom:0;padding:12px 0;background:#fff;display:flex;gap:10px}.form-footer button{flex:1}dialog{border:0;border-radius:18px;padding:0;width:calc(100% - 24px);max-width:650px;max-height:92dvh;box-shadow:0 20px 90px #142a4d50}dialog::backdrop{background:#172b4777}dialog .content{padding:22px;overflow-wrap:anywhere}dialog .close{float:right;margin-left:12px}.details{display:grid;grid-template-columns:100px 1fr;gap:13px;font-size:14px;line-height:1.7}.details dt{color:#718197}.details dd{margin:0;white-space:pre-wrap}details{margin:8px 0}summary{cursor:pointer;padding:12px;background:#f5f7fa;border-radius:8px}#toast{position:fixed;top:18px;left:50%;transform:translateX(-50%);background:#20334c;color:white;border-radius:10px;padding:12px 20px;z-index:10;display:none;max-width:90vw}.notice{background:#edf3fa;padding:12px;border-radius:10px;font-size:13px;line-height:1.8}.export-actions{display:grid;grid-template-columns:1fr 1fr;gap:9px}.preview-img{width:100%;display:block}.check-list{line-height:1.9;color:#60758d;font-size:14px}@media(max-width:650px){.brand{padding:20px}.brand h1{font-size:21px}main{padding:18px 14px 180px}.week-grid{grid-template-columns:1fr}.range{font-size:17px}.panel{padding:15px}.chips{gap:6px}.chips button{padding:10px 11px;font-size:14px}.stats{gap:12px}.two{gap:10px}dialog .content{padding:18px}.details{grid-template-columns:85px 1fr}.brand .symbol{font-size:24px}.day-head .muted{font-size:12px}}
[hidden]{display:none!important}
main.wide{max-width:1600px}.all-week{border:1px solid #dbe3ed;border-radius:14px;background:white;overflow:hidden}.all-week-heading,.all-week-day{display:grid;grid-template-columns:120px repeat(5,minmax(0,1fr))}.all-week-heading{background:#183d67;color:white}.all-week-heading strong{padding:18px 12px}.all-week-day+.all-week-day{border-top:2px solid #dbe3ed}.all-week-date{padding:20px 12px;background:#eef3f9;display:flex;flex-direction:column;gap:10px;font-size:14px}.all-week-date span{font-size:12px;color:#60758d}.all-week-leader{padding:12px;min-width:0;border-left:1px solid #e1e7ef}.all-week-leader h3{display:none}.all-week-leader .card{padding:10px}.all-week-leader .empty{padding:12px 8px}.all-week-leader .period-head{gap:5px}.all-week-leader .period-head button{min-height:36px}.all-week-leader .period:first-of-type{margin-top:0}@media(max-width:1000px){.all-week{border:0;background:transparent;overflow:visible}.all-week-heading{display:none}.all-week-day{display:block;background:white;border:1px solid #dbe3ed;border-radius:14px;overflow:hidden;margin-bottom:20px}.all-week-day+.all-week-day{border-top:1px solid #dbe3ed}.all-week-date{flex-direction:row;justify-content:space-between;align-items:center;padding:16px}.all-week-leader{border-left:0;padding:16px;border-top:1px solid #e1e7ef}.all-week-leader h3{display:block;font-size:15px;color:#183d67}.all-week-leader .period{margin:10px 0}.all-week-leader .period:last-child{margin-bottom:0}}
.department-calendar{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));border-top:1px solid #a6afb6;border-left:1px solid #a6afb6;background:white}.department-heading{text-align:center;padding:14px 2px;background:#eaf0f6}.department-heading,.department-day{border-right:1px solid #a6afb6;border-bottom:1px solid #a6afb6}.department-day{padding:6px;min-height:210px;overflow-wrap:anywhere}.department-rest{background:#fff5f5}.department-period{min-height:85px;padding:6px 0}.department-period+.department-period{border-top:1px dotted #d5dce2}.department-period small{display:block;color:#78838e}.department-period button{width:100%;text-align:left;padding:5px 3px;font-size:13px;min-height:30px;border:0;border-radius:0;margin-top:3px}@media(max-width:650px){.department-calendar{min-width:840px}main:has(.department-calendar){overflow-x:auto}.bottom button{font-size:11px}.bottom button span{font-size:18px}}
.batch-calendar{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:5px;margin:16px 0}.batch-weekday{text-align:center;font-size:12px;color:#718197}.batch-date{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;min-height:56px;border:1px solid #dbe3ed;border-radius:8px;cursor:pointer}.batch-date:has(input:checked){background:#e0ebf9;border-color:#183d67}.batch-date input{accent-color:#183d67;width:17px;height:17px}#batch-selected{max-height:280px;overflow:auto}#batch-selected select{min-height:44px;border:1px solid #dbe3ed;border-radius:8px;padding:6px}
.card.trip{background:#e5f5ef;border-left-color:#16806a;color:#146b59}.card.trip.conflict{background:#fff0ef;border-left-color:#c54e4e;color:#9c3434}.tag.travel{background:#d1ecdf;color:#146b59}.flight-note{display:block;margin-top:8px;font-weight:600}
.week-matrix-scroll{max-width:100%;overflow-x:auto;border-radius:14px;border:1px solid #dbe3ed}.week-matrix{min-width:1150px;border:0;border-radius:0;background:white;overflow:hidden}.week-matrix.leaders-rows{min-width:1550px}.week-matrix .all-week-heading,.week-matrix .all-week-day{display:grid;grid-template-columns:120px repeat(5,minmax(0,1fr))}.week-matrix.leaders-rows .all-week-heading,.week-matrix.leaders-rows .all-week-day{grid-template-columns:120px repeat(7,minmax(0,1fr))}.week-matrix .all-week-day{margin:0;border:0;border-radius:0;overflow:visible}.week-matrix .all-week-day+.all-week-day{border-top:2px solid #dbe3ed}.week-matrix .all-week-date{position:sticky;left:0;z-index:1;flex-direction:column;justify-content:flex-start;align-items:flex-start;padding:20px 12px}.week-matrix .all-week-heading>strong:first-child{position:sticky;left:0;background:#183d67;z-index:2}.week-matrix .all-week-leader{border-top:0;border-left:1px solid #e1e7ef;padding:12px}.week-matrix .all-week-leader h3{display:none}
.department-label{display:inline-block;white-space:nowrap;font-style:italic}
#overvieweditor{width:100vw;max-width:none;height:100dvh;max-height:none;margin:0;border-radius:0;display:none;flex-direction:column;background:#f3f6fa}#overvieweditor[open]{display:flex}.oe-bar{display:flex;flex-wrap:wrap;gap:10px 18px;align-items:center;justify-content:space-between;padding:12px 16px;background:#fff;border-bottom:1px solid #dce4ed}.oe-title{display:grid;gap:2px}.oe-tools,.oe-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center}.oe-swatch{width:30px;height:30px;min-height:30px;padding:0;border-radius:50%;border:2px solid #fff;box-shadow:0 0 0 1px #c9d3dd}.oe-custom{display:inline-flex;align-items:center;gap:6px;font-size:13px;color:#4a5868}.oe-custom input{width:34px;height:30px;padding:0;border:0;background:none}.oe-tip{margin:0;padding:8px 16px;font-size:13px;color:#5d6f84;line-height:1.7}.oe-legend{padding:0 4px;border-radius:3px}.oe-legend.edited{outline:2px dashed #4b80b7}.oe-legend.stale{outline:2px dashed #e08a1e}.oe-scroll{flex:1;overflow:auto;padding:0 16px 24px}.oe-table{border-collapse:collapse;table-layout:auto;width:max-content;background:#fff;font:20px/29px sans-serif;color:#20334c}.oe-table th,.oe-table td{border:1px solid #9cabb6;vertical-align:middle}.oe-table th{background:#e7f0f8;font-weight:400;padding:10px;font-size:18px;line-height:24px;white-space:nowrap}.oe-table .oe-group{min-width:150px}.oe-part{text-align:center;padding:6px 10px;white-space:nowrap}.oe-cell{padding:0}.oe-edit{box-sizing:border-box;padding:12px;min-height:100px;outline:none;white-space:pre-wrap;word-break:break-all;display:flex;flex-direction:column;justify-content:center}.oe-edit:focus{background:#ffffffaa;box-shadow:inset 0 0 0 2px #74a8e0}.oe-cell.edited .oe-edit{outline:2px dashed #4b80b7;outline-offset:-4px}.oe-cell.stale .oe-edit{outline:2px dashed #e08a1e;outline-offset:-4px}
