@import"https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@400;500;600;700&family=Noto+Serif+TC:wght@600;700&display=swap";:root{font-family:Noto Sans TC,system-ui,sans-serif;color:#24332e;background:#f3f1e9;line-height:1.65;font-synthesis:none;font-size:17px}*{box-sizing:border-box}body{margin:0}button,input,textarea,select{font:inherit}button{cursor:pointer}button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid #a55b2a;outline-offset:2px}.app-shell{min-height:100vh}.topbar{height:82px;padding:0 4vw;background:#143d35;color:#fff;display:flex;align-items:center;justify-content:space-between;gap:28px;border-bottom:4px solid #c89148}.brand{display:flex;align-items:center}.brand>div{padding-left:14px;border-left:3px solid #c89148}.brand strong{display:block;letter-spacing:.14em;font:700 20px/1.3 "Noto Serif TC",serif;color:#fbf3e2}.brand small{display:block;color:#a9c9ba;letter-spacing:.03em;font-size:12px;margin-top:2px}.topbar nav{height:100%;display:flex;align-items:stretch}.topbar nav button{padding:0 20px;border:0;background:transparent;color:#d4e2da;font-weight:600;font-size:17px;border-bottom:4px solid transparent}.topbar nav button:hover,.topbar nav .active{color:#fff;border-bottom-color:#e8bd70}.manage-page,.settings-page,.lookup-page{max-width:1600px;margin:auto;padding:34px 4vw 70px}.control-strip{display:flex;justify-content:space-between;align-items:end;margin-bottom:18px;gap:20px}.eyebrow{display:block;color:#8f521d;font-size:12px;font-weight:700;letter-spacing:.14em}.control-strip h1,h1{font:700 clamp(25px,3vw,36px)/1.22 "Noto Serif TC",serif;margin:4px 0}.control-strip h1 select{font:inherit;font-size:.82em;color:#214a40;background:#fff;border:1px solid #9eaaa4;border-radius:3px;padding:3px 5px}.quiet-btn{font-size:15px;padding:7px 13px;background:#fff;border:1px solid #8fa59b;border-radius:5px;color:#1e453c;font-weight:600;cursor:pointer;transition:all .15s ease}.quiet-btn:hover{background:#e7efe9;border-color:#1e453c}.actions{display:flex;gap:10px;flex-wrap:wrap;align-items:center}.export-count-label{display:inline-flex;align-items:center;gap:6px;font-size:15px;font-weight:600;color:#1a4b40}.export-count-label select{font:inherit;padding:6px 8px;border:1px solid #9eaaa4;border-radius:5px;background:#fff}.primary,.secondary,.btn-copy,.btn-clear{border-radius:6px;padding:12px 18px;font-weight:700;font-size:16px;min-height:48px;display:inline-flex;align-items:center;justify-content:center;gap:6px;transition:all .15s ease}.btn-copy{color:#fff;background:#185f52;border:1px solid #10433a}.btn-copy:hover{background:#10433a;box-shadow:0 2px 6px #10433a40}.btn-clear{color:#fff;background:#a33b31;border:1px solid #7d2820}.btn-clear:hover{background:#842b22;box-shadow:0 2px 6px #842b2240}.primary{color:#fff;background:#1a5448;border:1px solid #214a40}.primary:hover{background:#103f36}.secondary{color:#1a4b40;background:#fff;border:1px solid #94a89d}.secondary:hover{background:#e2eee8;border-color:#1a4b40}.secondary:disabled{opacity:.4;cursor:not-allowed}.btn-warn{color:#6b3d00;background:#fdeecb;border:1px solid #c98a2b}.btn-warn:hover{background:#fbe2ad;border-color:#8f5e13}.onboarding-tip{display:flex;align-items:center;justify-content:space-between;gap:12px;background:#fff4de;border:1px solid #e0b673;border-radius:8px;padding:10px 16px;margin-bottom:14px;font-size:15px;color:#5a3c0e}.onboarding-tip button{flex-shrink:0;background:none;border:1px solid #c9974d;border-radius:5px;padding:4px 10px;color:#5a3c0e;font-weight:700;cursor:pointer}.onboarding-tip button:hover{background:#f4dfb0}.login-gate{min-height:100vh;display:flex;align-items:center;justify-content:center;background:#f4efe4;padding:24px}.login-gate-card{background:#fff;border:1px solid #d8cdb6;border-radius:12px;padding:32px 28px;max-width:360px;width:100%;text-align:center;box-shadow:0 6px 20px #00000014}.login-gate-card h1{font:700 24px/1.3 "Noto Serif TC",serif;margin:8px 0 4px}.login-gate-card p{color:#6b6459;font-size:14px;margin:0 0 18px}.login-gate-card input{width:100%;font-size:20px;text-align:center;padding:12px;border:1px solid #9eaaa4;border-radius:6px;margin-bottom:12px;letter-spacing:.1em}.login-gate-card .primary{width:100%}.login-gate-error{color:#a33b31;font-size:14px;margin:0 0 12px}.download-btn{background:#8e5015;border-color:#6b3907}.download-btn:hover{background:#733e0d}.workbench{display:flex;flex-direction:column;border:1px solid #bdc6bd;background:#fff;box-shadow:0 12px 30px #2d413411}.roster-panel{order:1;padding:20px;overflow:hidden}.roster-title{display:flex;align-items:start;justify-content:space-between;gap:12px;margin-bottom:15px}.roster-title h2{margin:2px 0;font:700 22px "Noto Serif TC",serif}.status{padding:6px 10px;border-radius:2px;font-size:13px;white-space:nowrap}.status.good{color:#155b39;background:#e1f1e5}.status.error{color:#a7362b;background:#f8e5e1}.table-scroll{overflow:auto}.roster{border-collapse:collapse;width:100%;min-width:780px;font-size:17px}.roster th,.roster td{border:1px solid #9ba59e;text-align:center;min-height:47px;padding:9px 7px;transition:background-color .15s ease}.roster thead th{background:#e3e8df;font-weight:700;white-space:nowrap;font-size:17px}.roster tbody th{background:#f8f8f4;white-space:nowrap;padding:4px}.roster tr.is-selected-day td{background-color:#fefcf3}.roster tr.is-selected-day th{background-color:#f7eddc;border-left:4px solid #c89148}.roster tr.suspended.is-selected-day th{border-left:4px solid #b64635}.date-cell{position:relative;cursor:pointer}.date-select-btn{width:100%;display:inline-flex;align-items:center;justify-content:center;gap:6px;border:0;background:transparent;font-weight:600;color:#21433a;padding:6px 4px;border-radius:4px}.date-select-btn.is-active{color:#834f19;font-weight:700}.select-dot{display:inline-block;width:8px;height:8px;border-radius:50%;background:#c89148;box-shadow:0 0 0 2px #f0d5b0}.slot{min-width:92px;position:relative;height:48px}.slot.is-over{background:#d8ece1;box-shadow:inset 0 0 0 2px #2b846d}.slot.disabled{background:#eee;color:#888}.remove{border:0;background:transparent;color:#a53d31;font-size:18px;line-height:1;position:absolute;right:3px;top:0;opacity:.55}.remove:hover{opacity:1}.cell-names{display:grid;gap:2px;min-height:32px}.multi-person{display:flex;align-items:center;justify-content:center;gap:2px;white-space:nowrap}.mini-remove{border:0;background:transparent;color:#a53d31;opacity:.65;font-size:14px;padding:0;line-height:1}.mini-remove:hover{opacity:1}.big-drum-input{width:100%;min-width:70px;border:0;border-bottom:1px solid #9ba59e;text-align:center;padding:5px 2px;background:transparent}.big-drum-input:focus{background:#fffdf6}.slot:has(.cell-names){height:auto;min-height:54px}.note-cell{min-width:165px}.note-text{display:block;font-weight:600;color:#21433a}.note-cell button,.suspended button{margin-left:8px;background:none;border:0;color:#326b5b;text-decoration:underline;font-size:14px}.special-tag{display:block;font-size:13px;color:#155a8a}.view-shell{min-height:100vh;display:flex;align-items:center;justify-content:center;font-size:20px;color:#4b6659;padding:24px;text-align:center}.version-tag{position:fixed;right:10px;bottom:6px;font-size:11px;color:#9aa79f;letter-spacing:.04em;pointer-events:none;z-index:1}.suspended th,.suspended td{background:#f6ede3;color:#714524}.validation{margin-top:16px;border-left:4px solid #b64635;background:#fbefec;padding:12px 15px;color:#71342b;font-size:14px}.validation p{margin:5px 0}.candidate-panel{order:2;background:#edf2eb;border-top:2px solid #b2c0b4;padding:22px;display:grid;grid-template-columns:repeat(auto-fit,minmax(185px,1fr));gap:16px 18px}.candidate-header{grid-column:1 / -1;display:flex;flex-direction:column;gap:14px;margin-bottom:4px}.quick-assign-hint{background:#fffdf5;border:2px solid #dfa546;border-radius:8px;padding:14px 20px;box-shadow:0 4px 12px #b87e2c26;transition:all .2s ease}.quick-assign-hint.active{background:linear-gradient(135deg,#fffcf0,#fff6df);border-color:#c98c2c;box-shadow:0 4px 16px #b87e2c38}.hint-content{display:flex;flex-wrap:wrap;align-items:center;gap:12px}.target-badge{font-size:17px;font-weight:700;color:#7a3e08;display:inline-flex;align-items:center}.target-badge strong{color:#9c4b03;font-size:19px;background:#fae4c0;padding:3px 10px;border-radius:5px;margin-left:5px;border:1px solid #e2b36f}.action-guide{font-size:15.5px;font-weight:600;color:#244b40;letter-spacing:.02em}.candidate-header .search-label{display:flex;align-items:center;gap:10px;font-size:14px;font-weight:700;color:#1a4239;max-width:460px}.candidate-header input{flex:1;padding:9px 12px;border:1px solid #95a99c;border-radius:4px;background:#fff;color:#192b25;font-size:14px}.candidate-header input:focus{border-color:#1b6352;box-shadow:0 0 0 3px #1b635226}.duty-group{border-top:1px solid #cdd5ce;padding-top:10px}.duty-group h2{font-size:15px;margin:0 0 8px;color:#1b4a40}.duty-group h2 span{float:right;color:#6e7b75;font-size:12px;font-weight:400}.candidate-list{display:flex;flex-wrap:wrap;gap:7px}.name-chip{border:1px solid #9eb3a8;background:#fff;padding:9px 14px;border-radius:6px;color:#1c3c34;font-weight:600;font-size:16px;cursor:pointer;touch-action:none;-webkit-user-select:none;user-select:none;transition:all .12s ease;box-shadow:0 1px 3px #0000000f}.name-chip:hover{border-color:#1b6352;background:#fdfefc;transform:translateY(-2px);box-shadow:0 4px 8px #1b635233}.name-chip:active{transform:translateY(0)}.candidate-hint{margin:0;color:#53635c;font-size:13px;line-height:1.55}.lookup-page{max-width:760px;padding-top:75px}.lookup-page section:first-child{background:#fff;border-top:4px solid #c89148;padding:34px;box-shadow:0 8px 25px #2d413411}.lookup-page p{color:#51605a}.lookup-page label{display:block;font-weight:700;margin-top:26px}.lookup-page input,.settings-page input,.modal input,.modal textarea,.modal select{width:100%;padding:10px;border:1px solid #9ead9f;border-radius:3px;background:#fff;color:#192b25}.lookup-page input{margin-top:7px;font-size:18px}.lookup-results{margin-top:28px}.lookup-results h2{font:700 23px "Noto Serif TC",serif}.lookup-results article{display:flex;gap:20px;padding:16px;border-bottom:1px solid #b8c1b8;background:#fff}.lookup-results time{font-weight:700;color:#255a4d;min-width:88px}.lookup-results p{margin:3px 0 0}.empty{background:#fff;padding:22px}.settings-page section{background:#fff;padding:30px;margin-bottom:22px;border-radius:12px;border-top:4px solid #c89148;box-shadow:0 8px 25px #2d413411}.settings-grid{display:grid;grid-template-columns:1fr 1.45fr;gap:36px}.settings-grid h2,.backup h2{font:700 22px "Noto Serif TC",serif;margin-top:0}.settings-grid h2 .duty-count-badge{margin-left:10px;vertical-align:middle}.add-row{display:flex;gap:10px}.add-row input{font-size:17px;padding:10px 14px}.add-row button{font-size:17px;padding:10px 20px}.person-search-input{width:100%;margin-top:14px;padding:10px 14px;font-size:16px;border:1px solid #9ead9f;border-radius:6px}.person-search-input:focus{border-color:#1b6352;box-shadow:0 0 0 3px #1b635226}.person-manage-list{padding:0;list-style:none;margin:12px 0 0;display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:8px 10px;max-height:560px;overflow-y:auto}.person-manage-list li{display:flex;align-items:center;gap:10px;border:1px solid #e4e9e4;border-radius:8px;background:#fafbfa;padding:8px 12px;transition:box-shadow .15s ease,border-color .15s ease}.person-manage-list li:hover{border-color:#b9c9c0;box-shadow:0 3px 10px #143d3512}.person-name-input{flex:1;padding:8px 12px;border:1px solid transparent;background:transparent;font-weight:600;font-size:17px;transition:all .2s;border-radius:6px}.person-name-input:hover,.person-name-input:focus{border-color:#9ead9f;background:#fff}.person-actions,.sort-actions{display:flex;gap:4px;align-items:center}.person-actions button,.sort-actions button{border:1px solid #c9d3cd;background:#fff;border-radius:6px;width:36px;height:36px;display:inline-flex;align-items:center;justify-content:center;color:#4b6659;font-size:18px;font-weight:700;padding:0;transition:all .15s}.person-actions button:hover:not(:disabled),.sort-actions button:hover:not(:disabled){background:#e9f0eb;border-color:#1b6352;color:#1b6352}.person-actions button:disabled,.sort-actions button:disabled{opacity:.3;cursor:not-allowed;background:#f4f6f5}.person-actions .danger-text,.sort-actions .remove-btn{color:#a7362b;border-color:#e5cdcb;width:auto;padding:0 12px;font-weight:700;font-size:15px;margin-left:6px}.person-actions .danger-text:hover,.sort-actions .remove-btn:hover{background:#fbefec;border-color:#a7362b;color:#a7362b}.section-header-flex{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}.duty-person-header{display:flex;justify-content:space-between;align-items:center;font-size:15px;font-weight:600;color:#435a50;margin:10px 0 8px}.mini-quiet-btn{font-size:14px;padding:4px 10px;background:#f4f6f4;border:1px solid #9fb3a8;border-radius:4px;color:#1e453c;cursor:pointer;font-weight:600;transition:all .15s ease}.mini-quiet-btn:hover{background:#e1eee7;border-color:#1a5448}.duty-settings{padding:18px 20px;margin-bottom:14px;background:#f8faf8;border:1px solid #dde4dd;border-left:5px solid #1a5448;border-radius:10px;transition:box-shadow .15s ease,border-color .15s ease}.duty-settings:hover{border-left-color:#c89148;box-shadow:0 4px 14px #143d3517}.header-btn-group{display:flex;gap:8px;flex-wrap:wrap}.duty-settings-header{display:flex;align-items:center;gap:12px;cursor:pointer;padding:6px;margin:-6px;border-radius:8px;transition:background .15s ease}.duty-settings-header:hover{background:#eef3ee}.duty-toggle{flex-shrink:0;display:inline-flex;align-items:center;gap:5px;height:34px;padding:0 12px;background:#1a5448;border:1px solid #123128;border-radius:8px;color:#fff;font-size:14px;font-weight:700;transition:background .15s ease}.duty-settings-header:hover .duty-toggle{background:#123128}.duty-settings.is-open .duty-toggle{background:#c89148;border-color:#a5762f}.duty-settings-header input{flex:1;font:700 21px/1.3 "Noto Serif TC",serif;color:#143d35;background:transparent;border:none;border-bottom:2px solid transparent;border-radius:0;padding:4px 2px 8px;width:100%}.duty-settings-header input:hover{border-bottom-color:#c9d3cd}.duty-settings-header input:focus{border-bottom-color:#c89148;background:#fff}.duty-count-badge{flex-shrink:0;font-size:13px;font-weight:600;color:#5c7368;background:#eef2ee;border-radius:10px;padding:3px 10px}.duty-settings.is-open{padding-bottom:18px}.duty-settings.is-open .duty-settings-header{margin-bottom:12px}.duty-person-list{display:flex;flex-direction:column;gap:6px;margin-bottom:10px}.duty-person-item{display:flex;align-items:center;justify-content:space-between;background:#f9faf8;border:1px solid #d5ddd6;padding:8px 14px;border-radius:6px}.duty-person-item span{font-weight:600;font-size:17px;color:#1e3a2f}.add-to-duty-select{width:100%;padding:10px 14px;border:1px dashed #9ead9f;background:#fdfdfc;color:#51605a;font-size:16px;border-radius:6px;margin-bottom:10px}.add-to-duty-select:focus{border-style:solid;border-color:#1b6352}.duty-settings>button{border:0;color:#9e372d;background:none;text-decoration:underline;padding:0;margin-top:8px;font-size:16px}.backup p{font-size:16px;line-height:1.7}.backup .secondary{margin:6px 10px 0 0;font-size:16px}.modal-backdrop{position:fixed;inset:0;z-index:20;background:#142b2388;display:grid;place-items:center;padding:18px}.modal{width:min(500px,100%);background:#fff;padding:30px;box-shadow:0 10px 40px #0005}.modal h2{margin-top:0;font-family:"Noto Serif TC",serif;font-size:22px}.modal label{display:block;font-weight:700;font-size:17px;margin:16px 0}.modal input,.modal select{font-size:17px;padding:10px 14px}.modal textarea{min-height:90px;resize:vertical;margin-top:5px}.save-notice{position:fixed;z-index:15;right:20px;bottom:20px;background:#173e35;color:#fff;padding:12px 20px;border-radius:6px;box-shadow:0 4px 14px #0003;min-height:44px;font-weight:600;font-size:16px}.export-container-offscreen{position:fixed;left:0;top:0;z-index:-999;opacity:0;pointer-events:none}.export-sheet{width:1100px;box-sizing:border-box;padding:24px 20px 28px;background:#fff;color:#000;font-family:標楷體,DFKai-SB,BiauKai,KaiTi,PMingLiU,serif}.export-month-block+.export-month-block{margin-top:30px}.export-title{text-align:center;font-size:28px;font-weight:700;letter-spacing:2.5px;margin:0 0 16px;color:#000}.export-table{width:100%;border-collapse:collapse;table-layout:fixed;border:1px solid #000}.export-table th,.export-table td{border:1px solid #000;padding:7px 2px;text-align:center;vertical-align:middle;box-sizing:border-box}.export-table thead th{font-size:17px;font-weight:700;padding:8px 2px;color:#000;background:#fff;white-space:nowrap}.export-table thead .th-year{font-size:16.5px}.export-table thead .th-day-type{font-size:17px}.export-table thead .th-activity{font-size:16.5px}.export-table thead .th-duty{font-size:17px}.export-row{height:56px}.export-month-cell{font-size:17.5px;font-weight:700;vertical-align:middle;background:#fff}.export-date-cell{font-size:16.5px;font-weight:400;white-space:nowrap}.export-act-cell{font-size:15px;line-height:1.3;padding:4px;word-break:break-all}.export-duty-cell{font-size:17px;font-weight:400;white-space:nowrap;word-break:keep-all}.export-choir-cell{font-size:13px;letter-spacing:-.3px;line-height:1.25;padding:3px 0;white-space:nowrap}.export-lead-cell{font-size:15px;line-height:1.25;padding:4px 1px;white-space:nowrap}.export-suspended-cell{font-size:16.5px;font-weight:700;background:#fbfbfb}@media(max-width:800px){.topbar{height:auto;padding:11px 16px;align-items:start;flex-direction:column;gap:6px}.topbar nav{width:100%;height:40px;justify-content:space-between}.topbar nav button{font-size:13px;padding:0 5px}.manage-page,.settings-page,.lookup-page{padding:20px 14px}.control-strip{align-items:start;flex-direction:column}.candidate-panel{grid-template-columns:1fr 1fr}.roster-panel{padding:15px}.roster-title{flex-direction:column}.settings-grid{grid-template-columns:1fr}.settings-page section{padding:20px}.lookup-page{padding-top:32px}.lookup-page section:first-child{padding:24px}.save-notice{right:12px;bottom:12px;font-size:13px}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}
