:root{color:#20302d;background:#f3f1ea;font-family:Noto Sans TC,Microsoft JhengHei,system-ui,sans-serif;font-synthesis:none;text-rendering:optimizeLegibility;--ink: #20302d;--muted: #6e7975;--line: #dcded7;--paper: #fffdf8;--green: #1f665a;--green-dark: #174d45;--central-green: #2f8b64;--local-red: #c24a4a;--fallback: #8d9894}*{box-sizing:border-box}body{margin:0;min-width:320px;min-height:100vh;background:radial-gradient(circle at 10% 0%,#f9f5e9 0,transparent 30%),#f3f1ea}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{opacity:.45;cursor:not-allowed}input,select,textarea{width:100%;color:var(--ink);background:#fff;border:1px solid #cfd4cf;border-radius:9px;padding:9px 11px;outline:none}input:focus,select:focus,textarea:focus{border-color:#398174;box-shadow:0 0 0 3px #3981741f}label{color:#44504d;font-size:13px;font-weight:600}label>input,label>select,label>textarea{display:block;margin-top:6px}textarea{min-height:82px;resize:vertical}.app-shell{min-height:100vh}.topbar{min-height:70px;padding:0 max(24px,calc((100vw - 1480px)/2));display:flex;align-items:center;justify-content:space-between;gap:18px;background:#fffdfaf2;border-bottom:1px solid #dedfd8;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);position:sticky;top:0;z-index:20}.brand,.topbar-actions,.week-control,.toolbar-actions,.brand-mark,.summary-grid>div,.calc-title,.period-note,.program-list span{display:flex;align-items:center}.brand{gap:11px}.brand-mark{width:40px;height:40px;justify-content:center;border-radius:12px;background:var(--green);color:#fff;box-shadow:0 6px 15px #1f665a33}.brand>div:last-child{display:grid;line-height:1.1}.brand strong{font-family:Georgia,"Noto Serif TC",serif;font-size:19px}.brand span{font-size:11px;color:var(--muted);margin-top:4px;letter-spacing:.08em}.topbar-actions{gap:8px;flex-wrap:wrap;justify-content:flex-end}main{max-width:1480px;margin:0 auto;padding:12px 24px 44px}.hero-row{display:flex;justify-content:flex-end;align-items:flex-end;gap:30px;margin-bottom:24px}.eyebrow{margin:0 0 5px;color:#a25738;font-size:12px;font-weight:700;letter-spacing:.12em}h1,h2,h3,h4,p{margin-top:0}h1{margin-bottom:8px;font-family:Georgia,"Noto Serif TC",serif;font-size:clamp(30px,4vw,44px);color:#173c35}.hero-row>div>p:last-of-type{margin:0;color:var(--muted)}.local-mode-note{margin-top:8px!important;color:#337667!important;font-size:12px}.summary-grid{display:grid;grid-template-columns:repeat(3,minmax(132px,1fr));gap:10px}.summary-grid.single-summary{grid-template-columns:minmax(170px,1fr)}.summary-grid>div{gap:10px;padding:13px 15px;border-radius:13px;border:1px solid #dedfd7;background:#fffdf9;color:#59706a}.summary-grid svg{width:19px}.summary-grid span{display:grid;font-size:11px;white-space:nowrap}.summary-grid strong{color:var(--ink);font-size:15px;margin-top:2px}.primary-button,.secondary-button,.ghost-button,.danger-button,.icon-button{border:0;border-radius:9px;display:inline-flex;align-items:center;justify-content:center;gap:7px;font-weight:700}.primary-button{padding:10px 16px;color:#fff;background:var(--green);box-shadow:0 5px 13px #1f665a2e}.primary-button:hover{background:var(--green-dark)}.primary-button.compact{padding:9px 13px}.secondary-button{padding:10px 16px;color:#27584f;background:#edf4f0;border:1px solid #c9ddd5}.ghost-button{padding:9px 12px;background:transparent;color:#4e5b58;border:1px solid #d5d8d3}.ghost-button:hover{background:#fff}.danger-button{padding:9px 12px;background:transparent;color:#a94444}.icon-button{width:38px;height:38px;color:#4a5855;background:#f5f5f0}.calendar-toolbar{display:flex;justify-content:flex-start;align-items:center;gap:15px;margin-bottom:6px}.week-control{gap:10px}.week-control>div{display:grid;text-align:center;min-width:225px}.week-control span{color:var(--muted);font-size:11px;margin-top:2px}.toolbar-actions{gap:8px}.timeline-slider-wrapper{padding:8px 16px;background:var(--paper);border:1px solid #d7dad4;border-bottom:0;border-radius:16px 16px 0 0;display:flex;align-items:center;gap:14px}.slider-nav-button{width:32px;height:32px;flex:0 0 auto;border-radius:50%;padding:0;background:#ecece7}.slider-nav-button:hover:not(:disabled){background:#e0e0da}.timeline-slider{width:100%;-webkit-appearance:none;appearance:none;background:#e5e5e5;height:6px;border-radius:4px;outline:none;margin:0;padding:0;border:0;box-shadow:inset 0 1px 2px #0000001a}.timeline-slider::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;width:18px;height:18px;border-radius:50%;background:#d04655;cursor:pointer;box-shadow:0 2px 5px #00000040;border:2px solid white}.timeline-slider::-moz-range-thumb{width:18px;height:18px;border-radius:50%;background:#d04655;cursor:pointer;box-shadow:0 2px 5px #00000040;border:2px solid white}.timeline-card{border:1px solid #d7dad4;border-radius:0 0 16px 16px;background:var(--paper);overflow:hidden;box-shadow:0 14px 35px #38413d14}.timeline-scroll{overflow-x:auto}.timeline-board{min-width:800px;display:grid;grid-template-columns:85px 1fr}.timeline-head,.timeline-days{border-bottom:1px solid var(--line);background:#f8f7f2}.room-label-head{display:grid;place-content:center;gap:2px;color:var(--muted);font-size:12px;font-weight:700;border-right:1px solid var(--line);text-align:center}.room-label-head small{color:#87918d;font-size:9px;font-weight:500;white-space:nowrap}.timeline-days{display:grid;grid-template-columns:repeat(7,1fr)}.day-head{height:58px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;border-right:1px solid var(--line);line-height:1.1}.day-head:last-child{border:0}.day-head span{font-size:11px;color:var(--muted)}.day-head strong{font-size:14px;margin-top:4px}.day-head.is-holiday{background-color:#ffeef0}.day-head.is-holiday span,.day-head.is-holiday strong,.day-head.is-holiday .holiday-text{color:#d04655}.day-head .holiday-text{font-size:10px;margin-top:3px;font-weight:500}.room-row{display:contents}.room-label{height:94px;display:grid;grid-template-rows:1.2fr .8fr .8fr .8fr;align-items:center;justify-items:start;gap:0;padding:6px 8px;border-right:1px solid var(--line);border-bottom:1px solid var(--line);background:#fbfaf5}.room-label>strong{display:block;overflow:hidden;max-width:100%;text-overflow:ellipsis;white-space:nowrap;font-size:13px}.room-type-name{color:var(--muted);font-size:10px;overflow:hidden;max-width:100%;text-overflow:ellipsis;white-space:nowrap}.room-lane-label{display:inline-flex;align-items:center;gap:4px;font-size:9px;font-weight:700;line-height:1}.room-lane-label i,.timeline-legend i{width:7px;height:7px;display:inline-block;flex:0 0 auto;border-radius:50%}.room-lane-label.lane-central,.timeline-legend .central{color:var(--central-green)}.room-lane-label.lane-central i,.timeline-legend .central{background:var(--central-green)}.room-lane-label.lane-local,.timeline-legend .hualien{color:var(--local-red)}.room-lane-label.lane-local i,.timeline-legend .hualien{background:var(--local-red)}.timeline-legend .fallback{background:var(--fallback)}.room-track{height:94px;display:grid;grid-template-rows:repeat(2,1fr);position:relative;overflow:hidden;border-bottom:1px solid var(--line)}.track-lane{min-width:0;position:relative;overflow:hidden}.track-lane+.track-lane{border-top:1px dashed #d7ddd8}.track-lane-grid{position:absolute;inset:0;display:grid;grid-template-columns:repeat(7,1fr);pointer-events:none}.lane-cell{border-right:1px solid #ecece7}.lane-cell.is-holiday{background-color:#fff6f7}.lane-cell:last-child{border-right:0}.track-add-grid{position:absolute;inset:0;display:grid;grid-template-columns:repeat(7,1fr);z-index:2;pointer-events:none}.empty-cell{height:100%;border:0;border-right:1px solid transparent;background:transparent;color:transparent;pointer-events:auto;display:grid;place-items:center}.empty-cell:hover{background:#f2f6f3;color:#789a90}.booking-bar{position:absolute;top:5px;height:calc(100% - 10px);min-width:44px;border-radius:7px;color:#fff;padding:3px 25px 3px 9px;display:grid;align-content:center;overflow:hidden;-webkit-user-select:none;user-select:none;touch-action:none;box-shadow:0 5px 12px #1c36302e;z-index:3;border:1px solid rgb(255 255 255 / .28);cursor:grab}.booking-bar-central{background:var(--central-green)}.booking-bar-local{background:var(--local-red);border-style:dashed}.booking-bar-fallback{background:var(--fallback);border-style:dotted}.booking-bar:active{cursor:grabbing;filter:brightness(1.05);z-index:5}.booking-title,.booking-meta{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;pointer-events:none}.booking-title{font-size:11px;font-weight:800}.booking-meta{font-size:9px;opacity:.88}.resize-handle{position:absolute;right:0;top:0;bottom:0;width:23px;border:0;border-left:1px solid rgb(255 255 255 / .28);background:#00000021;color:#fff;display:grid;place-items:center;cursor:ew-resize;touch-action:none}.timeline-legend{padding:10px 14px;display:flex;flex-wrap:wrap;gap:10px 24px;color:var(--muted);background:#faf9f5;font-size:11px}.timeline-legend span{display:inline-flex;align-items:center;gap:6px}.empty-timeline{padding:38px 20px;text-align:center;color:var(--muted)}.period-note{flex-wrap:wrap;gap:12px 22px;padding:13px 4px;color:#65716e;font-size:12px}.period-note i{width:9px;height:9px;border-radius:50%;margin-right:6px;display:inline-block}.period-note .central{background:var(--central-green)}.period-note .hualien{background:var(--local-red)}.toast{position:fixed;right:22px;bottom:22px;max-width:min(420px,calc(100vw - 44px));padding:12px 17px;color:#fff;background:#243e38;border-radius:10px;box-shadow:0 9px 30px #0003;z-index:80}.modal-backdrop{position:fixed;inset:0;z-index:50;display:grid;place-items:center;padding:20px;background:#1924218c;-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px)}.booking-modal,.manager-modal{width:min(1120px,100%);max-height:calc(100vh - 40px);display:flex;flex-direction:column;background:#fffdf9;border-radius:18px;overflow:hidden;box-shadow:0 30px 90px #0000004d}.manager-modal{width:min(760px,100%)}.modal-header{padding:17px 20px 12px;display:flex;align-items:center;justify-content:space-between}.modal-header h2{margin:0;font-family:Georgia,"Noto Serif TC",serif;font-size:23px;color:#193d36}.modal-header .eyebrow{margin-bottom:2px}.modal-layout{display:grid;grid-template-columns:minmax(0,1fr) 310px;min-height:0;overflow:hidden}.modal-content{padding:17px 20px 22px;overflow-y:auto}.stay-strip{display:grid;grid-template-columns:1.1fr 1.2fr .7fr .8fr;gap:10px;padding:12px;border-radius:12px;background:#f2f5f1;margin-bottom:18px}.section-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:15px;color:#426058}.section-heading h3{font-size:17px;margin-bottom:3px;color:#28473f}.section-heading p{margin-bottom:0;color:var(--muted);font-size:12px}.condition-heading{margin-top:24px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.span-2{grid-column:1 / -1}.manual-subsidy-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:12px}.manual-subsidy-field{display:grid;gap:6px;padding:13px;border-radius:12px;background:#fff;border:1px solid #dfe2dd}.manual-subsidy-field span{font-weight:800}.manual-subsidy-field small{color:var(--muted);font-size:11px;font-weight:400}.manual-subsidy-field input{font-size:18px;font-weight:800}.central-field{border-color:#bcdacc;background:#f4fbf7}.central-field span{color:var(--central-green)}.local-field{border-color:#e4c3c3;background:#fff8f7}.local-field span{color:var(--local-red)}.condition-group{padding:13px 14px;border:1px solid #dde1dc;border-radius:12px;margin:10px 0;background:#fff}.condition-group h4{margin-bottom:8px;font-size:12px;color:#7a5b3e;letter-spacing:.05em}.switch-row,.radio-row{display:flex;gap:10px;align-items:flex-start;padding:13px 14px;border-radius:12px;background:#edf6f2;border:1px solid #cde1d8}.switch-row input,.radio-row input{width:17px;height:17px;margin:2px 0 0}.switch-row span,.radio-row span{display:grid}.switch-row small,.radio-row small{margin-top:2px;color:var(--muted);font-weight:400}.radio-row{padding:8px 4px;border:0;border-radius:0;background:transparent}.radio-row+.radio-row{border-top:1px solid #eeefeb}.local-note{display:flex;align-items:center;gap:7px;margin-top:12px;padding:10px 12px;color:#53615d;background:#f5f5f0;border-radius:10px;font-size:12px}.calculation-panel{padding:18px;overflow-y:auto;background:#f3f0e7;border-left:1px solid #deded6}.calc-title{gap:9px;color:#2a6558}.calc-title>div{display:grid}.calc-title span{color:var(--muted);font-size:11px}.calc-totals{margin:15px 0}.calc-totals>div{display:flex;justify-content:space-between;padding:8px 0;border-bottom:1px solid #dddcd4}.calc-totals dt{color:#68736f}.calc-totals dd{margin:0;font-weight:800}.calc-totals .subsidy dd{color:#2e7667}.calc-totals .payable{padding-top:12px;border:0;font-size:16px}.calc-totals .payable dd{color:#984e35;font-size:19px}.program-list{display:grid;gap:6px;padding:10px;border-radius:10px;background:#fffdf8;border:1px solid #dedfd8}.program-list>div{display:flex;justify-content:space-between;gap:8px;font-size:12px}.program-list span{gap:5px;color:#38675c}.program-list .total-row{padding-top:7px;border-top:1px solid #e0e2db;font-weight:800}.empty-program{color:var(--muted);align-items:center;justify-content:flex-start!important}.allocation-list{display:grid;gap:7px;margin-top:12px;padding:10px;border:1px solid #dedfd8;border-radius:10px;background:#fffdf8}.allocation-list h4{margin:0;color:#6d7673;font-size:12px}.allocation-row{display:grid;grid-template-columns:1fr auto;align-items:center;gap:8px;padding-top:6px;border-top:1px solid #ecebe4;font-size:10px}.allocation-row>span{display:grid;color:#5f6c68}.allocation-row small{color:var(--muted)}.allocation-row>div{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:4px}.allocation-tag{padding:2px 5px;border-radius:5px;color:#fff;font-size:10px;line-height:1.2}.allocation-tag.central{background:var(--central-green)}.allocation-tag.local{background:var(--local-red)}.manual-allocation-row{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:7px;padding-top:6px;border-top:1px solid #ecebe4;font-size:10px}.manual-allocation-row strong{color:#364b45}.no-allocation{color:var(--muted);font-size:10px}.allocation-empty{margin:0;color:var(--muted);font-size:10px}.calc-warning{display:flex;gap:6px;margin:10px 0 0;padding:7px;color:#805c25;background:#fff3d5;font-size:11px;border-radius:7px}.modal-message{padding:9px 20px;color:#9b3838;background:#fff0ed;border-top:1px solid #f1c9c2;font-size:12px}.modal-footer{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px 20px;border-top:1px solid var(--line);background:#fff}.modal-footer>div{display:flex;gap:8px}.footer-hint{color:var(--muted);font-size:11px}.manager-intro{padding:0 20px 15px;color:var(--muted);font-size:12px}.room-editor-list{padding:0 20px;overflow-y:auto}.room-editor{padding:14px;border:1px solid #dde1dc;border-radius:12px;background:#fff}.room-editor+.room-editor{margin-top:10px}.room-editor-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:11px;color:#28473f}.room-editor-grid{gap:10px}.add-room-button{margin:14px 20px 0;align-self:flex-start}.visually-hidden{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}@media(max-width:760px){.topbar{padding:8px 12px;align-items:center;flex-direction:row;gap:8px}.brand{min-width:0}.brand span{display:none}.topbar-actions{width:auto;justify-content:flex-end;flex-wrap:nowrap;overflow-x:auto;padding-bottom:2px}.topbar-actions::-webkit-scrollbar{display:none}.topbar-actions .primary-button{flex:0 0 auto;padding:6px 10px;font-size:12px;gap:4px}.topbar-actions .ghost-button{flex:0 0 auto;padding:6px 8px;font-size:12px;gap:4px}.topbar-actions svg{width:14px;height:14px;margin:0}main{padding:22px 15px 32px}.hero-row{align-items:flex-start;flex-direction:column;gap:17px}.summary-grid{width:100%;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.summary-grid>div{min-width:0;gap:5px;padding:10px 8px}.summary-grid span{white-space:normal;font-size:10px}.summary-grid strong{font-size:13px}.summary-grid.single-summary{width:100%}.calendar-toolbar{align-items:stretch;flex-direction:column}.week-control{justify-content:space-between}.week-control>div{min-width:0;flex:1}.modal-backdrop{padding:8px}.booking-modal,.manager-modal{max-height:calc(100vh - 16px);border-radius:14px}.modal-layout{display:flex;flex-direction:column;overflow-y:auto}.modal-content{overflow:visible;padding:14px}.calculation-panel{border-top:1px solid #deded6;border-left:0;overflow:visible}.stay-strip,.form-grid,.manual-subsidy-grid{grid-template-columns:1fr}.span-2{grid-column:auto}.modal-footer{padding:10px 14px}.footer-hint{display:none}.room-editor-list{padding:0 14px}.manager-intro{padding:0 14px 15px}.add-room-button{margin-left:14px}}@media(max-width:480px){.hide-portrait{display:none}.topbar{gap:4px;padding:8px 6px}.topbar-actions .primary-button,.topbar-actions .ghost-button{padding:6px;gap:3px;font-size:11px}.brand-mark{width:28px;height:28px}.brand strong{font-size:14px}}
