:root{color-scheme:light;--brand:#0e7490;--brand-dark:#155e75;--ink:#112e3c;--sub:#536a78;--line:#dce7ed;--bg:#f3f7fa;--soft:#eaf6f8;--radius:18px;--shadow:0 4px 20px #143e5010;font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;font-size:16px}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);line-height:1.5}button,input,select{font:inherit}button{cursor:pointer;border:0;background:transparent;color:inherit}button,input,select,a{-webkit-tap-highlight-color:transparent}button:focus-visible,input:focus-visible,select:focus-visible,a:focus-visible{outline:3px solid #24a8bd;outline-offset:3px}button:disabled{opacity:.45;cursor:default}h1,h2,h3,p{margin:0}h1{font-size:20px;letter-spacing:.02em}h2{font-size:26px;line-height:1.3}h3{font-size:19px}svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}[hidden]{display:none!important}
.site-header{background:var(--brand);color:white}.header-inner{max-width:1100px;margin:auto;padding:20px 28px;display:flex;align-items:center;justify-content:space-between}.brand{display:flex;gap:13px;align-items:center}.brand-mark{display:grid;place-items:center;width:44px;height:44px;background:#ffffff20;border:1px solid #ffffff35;border-radius:13px;font-size:33px;font-weight:300}.brand p{font-size:14px;color:#d2edf2;margin-top:2px}.preview-badge{border:1px solid #ffffff50;padding:4px 10px;font-size:13px;border-radius:7px;background:#ffffff12}
main{max-width:1100px;padding:25px 28px calc(110px + env(safe-area-inset-bottom));margin:auto}.week-header{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:19px}.eyebrow{font-size:14px;color:var(--sub);margin-bottom:5px}.quiet-button{background:white;border:1px solid var(--line);border-radius:9px;padding:9px 15px;font-size:14px;white-space:nowrap}.date-strip{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:8px}.date-button{background:white;border:1px solid var(--line);border-radius:12px;padding:10px 4px;display:flex;flex-direction:column;align-items:center;gap:2px;transition:background .15s,border-color .15s}.date-button .weekday{font-size:14px;color:var(--sub)}.date-button .day-number{font-size:21px;font-weight:650;font-variant-numeric:tabular-nums}.date-button.selected{background:var(--brand);color:white;border-color:var(--brand);box-shadow:0 3px 9px #0e749028}.date-button.selected .weekday{color:#d6f3f5}.date-button.is-today:after{content:'今天';font-size:11px;line-height:1}.date-notice{font-size:13px;color:var(--sub);min-height:20px;margin:9px 0 19px}.section-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:16px}.section-head p{font-size:14px;color:var(--sub);margin-top:4px}.section-head h2{font-size:23px}.shift-tabs{display:flex;background:#e4edf2;padding:4px;border-radius:11px;gap:3px;flex-shrink:0}.shift-tabs button{min-width:66px;padding:8px 14px;border-radius:8px;font-size:15px;color:var(--sub)}.shift-tabs button.active{color:var(--brand-dark);background:white;font-weight:650;box-shadow:0 2px 6px #173a5012}.time-caption{font-size:13px;color:var(--sub);margin:7px 0 15px}
.bed-layout{display:grid;grid-template-columns:minmax(0,1fr) 304px;align-items:start;gap:20px}.panel{background:white;border:1px solid var(--line);border-radius:var(--radius);padding:22px;box-shadow:var(--shadow)}.panel-title{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px}.panel-title span{font-size:13px;color:var(--sub)}.search-label{display:block;color:var(--sub);font-size:14px;margin-bottom:6px}.search-row{display:flex;gap:8px;margin-bottom:18px}.search-input{width:100%;min-width:0;background:#f7fafc;border:1px solid #cbdbe3;padding:12px 13px;border-radius:10px;outline-offset:2px;color:var(--ink);font-size:16px}.search-input::placeholder{color:#748a97}.search-clear{background:#edf3f6;padding:0 13px;border-radius:10px;font-size:14px}.bed-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:9px}.bed{border:1px solid var(--line);background:#fbfdfe;min-height:85px;border-radius:11px;padding:10px 3px;display:flex;align-items:center;flex-direction:column;gap:5px;transition:background .15s,border-color .15s}.bed:hover{border-color:#68afbc;background:#f2fbfc}.bed.selected{background:var(--soft);border:2px solid var(--brand);padding:9px 2px}.bed-num{font-weight:750;font-size:22px;line-height:1.2}.bed-num small{font-size:12px;font-weight:400;margin-left:3px;color:var(--sub)}.bed-name{font-size:14px;white-space:nowrap}.bed.uncertain .bed-name{color:#9a6615}.selection-hint{font-size:14px;color:var(--sub);margin-top:16px;display:flex;gap:7px;align-items:center}.selection-hint svg{width:17px;height:17px;flex-shrink:0}
.bed-result{margin-top:18px;border:1px solid #a9d3db;border-radius:13px;overflow:hidden}.result-top{padding:15px 17px;background:#eaf6f8;display:flex;gap:16px;align-items:center;justify-content:space-between}.bed-big{font-size:25px;font-weight:750}.bed-big span{font-size:15px;margin-left:5px}.result-caption{font-size:14px;color:var(--brand-dark);margin-top:2px}.result-person{font-size:24px;font-weight:700;text-align:right}.result-body{padding:16px 17px}.info-line{display:flex;gap:13px;align-items:baseline;margin-bottom:11px}.info-line:last-child{margin-bottom:0}.info-label{font-size:14px;color:var(--sub);min-width:69px;flex-shrink:0}.info-people{display:flex;gap:6px 12px;flex-wrap:wrap}.person-link{color:var(--brand-dark);border-bottom:1px dotted #88b6c1;font-weight:600;padding:0}.person-link:hover{color:#06536a}.leader-tag{display:inline-flex;align-items:center;padding:2px 6px;border-radius:5px;color:#876015;background:#fff3d4;font-size:12px;font-weight:500;vertical-align:middle;margin-left:5px}.empty{padding:19px;color:var(--sub);background:#f8fafc;border-radius:10px;font-size:15px}.inline-note{font-size:13px;line-height:1.6;color:var(--sub);margin-top:11px}.pending-note{padding:12px 15px;background:#fff7e7;border:1px solid #f0dbb5;border-radius:10px;color:#855a16;font-size:14px;margin-bottom:16px}.side-card{background:#fff;border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);overflow:hidden;margin-bottom:16px}.side-head{padding:17px 18px 12px;font-size:16px;font-weight:650}.contact-item{margin:0 18px;padding:13px 0;border-top:1px solid #e6eef2}.contact-item .role-label{font-size:14px;color:var(--sub);display:flex;justify-content:space-between;gap:9px}.contact-item .role-label small{font-size:12px;color:#637e8c;white-space:nowrap}.contact-item .role-people{font-size:21px;font-weight:650;margin-top:5px;line-height:1.7}.side-foot{font-size:13px;color:var(--sub);padding:12px 18px;background:#f7fafc;border-top:1px solid var(--line)}.side-tip{font-size:14px;color:var(--sub);padding:0 5px;line-height:1.75}.side-tip strong{font-weight:600;color:var(--ink)}
.group-section{margin-top:23px}.group-section h3{font-size:18px;margin-bottom:12px}.group-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.group-card{background:white;border:1px solid var(--line);border-radius:13px;padding:16px}.group-card .range{color:var(--sub);font-size:14px;margin-bottom:5px}.group-card .owner{font-size:20px;font-weight:650;margin-bottom:10px}.group-card .assistant{font-size:14px;color:var(--sub);line-height:1.8}.group-card .assistant-name{color:var(--ink)}
.duty-top{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px;margin-bottom:23px}.duty-highlight{padding:20px;background:white;border:1px solid var(--line);border-radius:15px}.duty-highlight.primary{background:var(--brand-dark);border-color:var(--brand-dark);color:white}.duty-highlight .label{font-size:14px;opacity:.85}.duty-highlight .name{font-size:26px;font-weight:650;margin:8px 0}.duty-highlight.primary .person-link{color:white;border-color:#80bac7}.duty-highlight .meta{font-size:14px;opacity:.8}.duty-layout{display:grid;grid-template-columns:1.05fr 1fr;gap:20px}.roster-list{margin-top:5px}.roster-item{display:flex;align-items:center;gap:12px;padding:13px 0;border-bottom:1px solid #e5edf1}.roster-item:last-child{border-bottom:0}.avatar{width:39px;height:39px;display:grid;place-items:center;border-radius:10px;background:var(--soft);font-weight:650;color:var(--brand-dark);flex-shrink:0}.roster-item .person-main{font-size:18px;flex:1;min-width:0}.roster-item .beds-meta{font-size:14px;color:var(--sub);white-space:nowrap}.role-list-item{padding:14px 0;border-bottom:1px solid #e5edf1}.role-list-item:last-child{border-bottom:0}.role-list-title{display:flex;justify-content:space-between;color:var(--sub);font-size:14px;margin-bottom:6px}.role-list-people{font-size:18px;line-height:1.8}.duty-empty{font-size:14px;color:var(--sub);line-height:1.75;margin:12px 0}
.week-toolbar{display:flex;align-items:center;gap:14px;margin-bottom:15px}.week-toolbar .search-input{max-width:330px}.week-toolbar .count{color:var(--sub);font-size:14px;margin-left:auto;white-space:nowrap}.table-wrap{max-height:68vh;overflow:auto;border:1px solid var(--line);border-radius:14px;background:white;box-shadow:var(--shadow)}.roster-table{border-collapse:separate;border-spacing:0;min-width:100%;font-size:14px;line-height:1.5}.roster-table th,.roster-table td{padding:12px 11px;text-align:center;border-right:1px solid #e4ecf0;border-bottom:1px solid #e4ecf0;white-space:nowrap}.roster-table thead th{position:sticky;top:0;background:#edf5f8;z-index:2;color:#3c6475;font-weight:600}.roster-table th:first-child{position:sticky;left:0;background:#f7fafc;z-index:1;text-align:left;min-width:128px}.roster-table thead th:first-child{z-index:3;background:#edf5f8}.roster-table th .person-link{font-size:16px}.roster-table th .leader-tag{display:block;width:max-content;margin:3px 0 0}.roster-table .date-selected{background:#e6f5f7}.roster-table td{min-width:116px}.roster-table td small{display:block;font-size:12px;color:var(--sub);margin-top:2px}.shift-pill{font-size:14px;display:inline-block;border-radius:6px;padding:3px 7px}.shift-white{background:#e8f5f0;color:#18694f}.shift-big{background:#e9eefb;color:#395d9a}.shift-small{background:#f1eafa;color:#755494}.shift-aux{background:#e9f4f7;color:#3d7185}.shift-rest{color:#8d9ca5}.backbone-row th,.backbone-row td{background:#fff8e8!important;color:#795d27}.table-caption{font-size:13px;color:var(--sub);margin:10px 2px;line-height:1.7}
.page-footer{display:flex;justify-content:space-between;gap:14px;align-items:center;font-size:13px;color:#607987;margin:28px 0 0}.page-footer button{color:var(--brand);text-decoration:underline;font-size:14px;padding:7px 0}.bottom-nav{position:fixed;bottom:0;left:0;right:0;border-top:1px solid var(--line);background:#fffffff2;backdrop-filter:blur(15px);padding-bottom:env(safe-area-inset-bottom);z-index:10}.bottom-nav>div{display:flex;max-width:560px;margin:auto}.bottom-nav button{display:flex;flex:1;gap:4px;align-items:center;flex-direction:column;padding:11px 5px 9px;color:#64808e;font-size:14px}.bottom-nav button.active{color:var(--brand);font-weight:650}.bottom-nav button.active svg{stroke-width:2.2}.bottom-nav button.active:before{content:'';width:28px;height:3px;background:var(--brand);position:absolute;top:0;border-radius:0 0 3px 3px}
dialog{border:0;border-radius:22px;padding:26px;width:calc(100% - 32px);max-width:520px;max-height:85vh;color:var(--ink);box-shadow:0 20px 70px #102f4a35}dialog::backdrop{background:#0d283566;backdrop-filter:blur(2px)}dialog h2{font-size:25px;margin-bottom:5px}dialog .dialog-meta{font-size:14px;color:var(--sub);margin-bottom:20px}.dialog-close{width:100%;background:var(--brand);color:white;font-weight:600;padding:12px;border-radius:11px;margin-top:20px}.person-week-row{display:flex;gap:16px;padding:12px 0;border-top:1px solid var(--line)}.person-week-row .when{font-size:14px;width:90px;color:var(--sub);flex-shrink:0}.person-week-row .what{font-size:16px}.person-week-row small{display:block;font-size:13px;color:var(--sub);margin-top:3px}.rules-list{padding-left:20px;margin:15px 0 0}.rules-list li{margin-bottom:12px;line-height:1.7;font-size:15px}.toast{position:fixed;left:50%;bottom:90px;transform:translateX(-50%);background:#183e50;color:white;padding:12px 18px;border-radius:12px;max-width:calc(100% - 32px);width:max-content;font-size:14px;z-index:30;box-shadow:var(--shadow)}
@media(min-width:1000px){.bed-grid{gap:11px}.bed{min-height:92px}.bed-name{font-size:15px}}
@media(max-width:800px){.bed-layout{grid-template-columns:1fr}.side-column{display:grid;grid-template-columns:1fr;gap:0}.side-card{margin:0}.side-tip{display:none}.side-card .side-head{padding-bottom:9px}.side-contacts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));padding:0 16px}.contact-item{margin:0;padding:9px 12px;border-top:0;border-left:1px solid var(--line)}.contact-item:first-child{border-left:0;padding-left:0}.contact-item:last-child{padding-right:0}.contact-item .role-label{display:block}.contact-item .role-label small{display:block;margin-top:2px}.contact-item .role-people{font-size:18px}.side-foot{margin-top:8px}.group-list{grid-template-columns:repeat(2,minmax(0,1fr))}.duty-layout{grid-template-columns:1fr}}
@media(max-width:520px){.header-inner{padding:15px 18px}.brand-mark{width:38px;height:38px;font-size:29px}.brand{gap:10px}h1{font-size:18px}.brand p{font-size:12px}.preview-badge{font-size:12px;padding:3px 7px}main{padding:19px 16px calc(96px + env(safe-area-inset-bottom))}.week-header{margin-bottom:14px}.week-header h2{font-size:22px}.eyebrow{font-size:13px;margin-bottom:4px}.quiet-button{padding:8px 10px;font-size:13px}.date-strip{gap:5px}.date-button{border-radius:10px;padding:9px 2px}.date-button .weekday{font-size:12px}.date-button .day-number{font-size:18px}.date-notice{font-size:12px;margin:8px 0 15px}.section-head{gap:10px;margin-bottom:12px}.section-head h2{font-size:21px}.section-head p{font-size:13px}.shift-tabs{padding:3px}.shift-tabs button{min-width:43px;padding:7px 9px;font-size:14px}.panel{padding:17px;border-radius:15px}.bed-grid{gap:6px}.bed{min-height:76px;padding:9px 1px;gap:4px}.bed.selected{padding:8px 0}.bed-num{font-size:21px}.bed-num small{font-size:10px;margin-left:2px}.bed-name{font-size:13px}.search-row{margin-bottom:15px}.search-input{padding:11px 12px}.bed-result{margin-top:16px}.result-top{padding:13px 14px;gap:8px}.bed-big{font-size:23px}.result-person{font-size:22px}.result-body{padding:14px}.info-line{gap:9px}.info-label{min-width:62px;font-size:13px}.info-people{font-size:15px}.side-head{font-size:15px}.contact-item .role-people{font-size:17px}.contact-item .role-label{font-size:13px}.side-foot{font-size:12px}.group-list{grid-template-columns:1fr}.group-card{padding:14px 16px}.group-card .owner{margin-bottom:6px}.duty-top{grid-template-columns:1fr;gap:10px;margin-bottom:18px}.duty-highlight{padding:15px 17px;display:grid;grid-template-columns:1fr auto;column-gap:15px}.duty-highlight .name{font-size:24px;grid-column:2;grid-row:1/3;margin:0;align-self:center}.duty-highlight .meta{font-size:13px;margin-top:4px}.duty-highlight .label{font-size:14px}.week-toolbar{gap:8px;flex-wrap:wrap}.week-toolbar .search-input{max-width:none;flex:1}.week-toolbar .count{font-size:13px}.roster-table th,.roster-table td{padding:10px 8px}.roster-table th:first-child{min-width:112px}.roster-table td{min-width:105px}.page-footer{font-size:11px;gap:8px;margin-top:22px}.page-footer button{font-size:13px}.roster-item .person-main{font-size:17px}.roster-item .beds-meta{font-size:13px}.role-list-people{font-size:17px}dialog{padding:23px 20px}.person-week-row{gap:10px}.person-week-row .when{width:84px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}
.search-clear{flex-shrink:0;white-space:nowrap}.inline-role-time{color:var(--sub);font-size:13px;font-weight:400;align-self:center}
.group-section.overview-first{margin-top:0;margin-bottom:22px}
@media(max-width:520px){.date-button .day-number{font-size:17px}.bed-layout>.panel{display:flex;flex-direction:column}.bed-layout .search-label{order:0}.bed-layout .search-row{order:1}.bed-layout #bedResult{order:2;margin-bottom:15px}.bed-layout .bed-grid{order:3}.bed-layout .bed-result{margin-top:0}}
