@charset "UTF-8";
:root{color-scheme:light;--canvas:#f3f0e8;--surface:#fffdfa;--text:#302e28;--muted:#686459;--line:#dad4c8;--control:#aca393;--accent:#8c482e;--accent-hover:#723b26;--green:#354c3c;--selection:#354c3c;--on-selection:#fffdf4;--wait:#f1ebdf;--danger:#a3342b;--focus:#38694c;--font-ui:"Noto Sans CJK TC","PingFang TC","Microsoft JhengHei",Arial,sans-serif;--font-title:"Noto Serif CJK TC","Songti TC",Georgia,serif}
*{box-sizing:border-box}body{margin:0;background:var(--canvas);color:var(--text);font-family:var(--font-ui);font-size:.9375rem;line-height:1.55}
button,input,select,textarea{font:inherit;color:inherit}button,a,input,select,textarea,summary{-webkit-tap-highlight-color:transparent}button{cursor:pointer;border:0}button:disabled{cursor:default}button,summary,a{touch-action:manipulation}
:focus-visible{outline:2px solid var(--focus);outline-offset:3px}[hidden]{display:none!important}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
svg{width:20px;height:20px;display:block;flex-shrink:0}[data-icon]{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0}h1,h2,h3,p{margin:0}
.app-header{min-height:76px;padding:12px 36px;display:flex;align-items:center;justify-content:space-between;gap:20px;border-bottom:1px solid var(--line);background:var(--canvas)}
.brand{display:flex;align-items:center;gap:12px;min-width:0;flex-wrap:wrap}.brand-mark{width:39px;height:34px;color:var(--accent)}.brand-name{font-size:1.25rem;font-weight:700;white-space:nowrap}.brand-purpose{border-left:1px solid #c8c1b4;padding-left:14px;color:var(--muted);font-size:.8125rem;white-space:nowrap}.demo-label{font-size:.75rem;color:#6a624f;border:1px solid #d0c7b7;border-radius:3px;padding:1px 5px}
.header-actions{display:flex;align-items:center;gap:8px}
.button{min-height:44px;display:inline-flex;justify-content:center;align-items:center;gap:7px;padding:9px 16px;border-radius:5px;font-weight:600;line-height:1.4;white-space:nowrap;background:var(--accent);color:#fff;border:1px solid var(--accent)}
.button:hover{background:var(--accent-hover);border-color:var(--accent-hover)}.button.secondary{background:transparent;border-color:var(--control);color:var(--text);font-weight:500}.button.secondary:hover{background:#e8e3d8}.button.danger{background:var(--danger);border-color:var(--danger)}
.icon-button{min-width:40px;min-height:40px;display:inline-flex;align-items:center;justify-content:center;border-radius:5px;background:transparent;color:var(--muted);flex-shrink:0}.icon-button:hover{background:#e8e3d8;color:var(--text)}.icon-button[aria-expanded=true]{background:#e3dccf;color:var(--text)}
.text-button{min-height:40px;display:inline-flex;align-items:center;justify-content:center;gap:6px;background:transparent;padding:7px 10px;color:var(--accent);font-weight:600;border-radius:4px;white-space:nowrap}.text-button:hover{background:#eae2d4}
.workspace{max-width:1536px;margin:0 auto;display:grid;grid-template-columns:330px minmax(0,1fr);gap:28px;padding:28px 36px;align-items:start}.course-pane,.detail-pane{min-width:0}
.month-toolbar{display:flex;align-items:center;justify-content:space-between;gap:6px;margin-bottom:16px;min-height:44px}.month-toolbar h1{display:flex;align-items:baseline;gap:10px;line-height:1.3;white-space:nowrap}#month-label{font-family:var(--font-title);font-size:1.625rem;font-weight:700}#year-label{font-size:.75rem;font-weight:400;color:var(--muted);font-variant-numeric:tabular-nums}.month-actions{display:flex;align-items:center;gap:0}.month-actions .icon-button{min-width:32px}.month-actions .text-button{color:var(--muted);font-size:.8125rem;padding:6px}
.course-tools{display:flex;gap:8px;margin-bottom:12px}.search-box{display:flex;align-items:center;gap:7px;background:var(--surface);border:1px solid var(--control);border-radius:5px;min-width:0;flex:1;padding:0 10px}.search-box:focus-within{outline:2px solid var(--focus);outline-offset:2px}.search-box svg{width:17px;height:17px;color:#746d60}.search-box input{width:100%;min-width:0;min-height:44px;border:0;outline:none;background:transparent;font-size:.875rem;padding:8px 0}input::placeholder,textarea::placeholder{color:#756e63;opacity:1}.filter-box select{height:auto;min-height:46px;width:6em;max-width:none;border:1px solid var(--control);background:var(--surface);border-radius:5px;font-size:.8125rem;padding:7px 5px 7px 9px}
.course-list{display:flex;flex-direction:column}.course-item{position:relative;display:flex;align-items:center;gap:18px;padding:21px 12px;width:100%;background:transparent;text-align:left;border-bottom:1px solid var(--line);border-radius:0;color:var(--text);min-height:118px}.course-item:hover{background:#e9e5dc;border-radius:5px}.course-item[aria-current=true]{background:var(--selection);color:var(--on-selection);border-bottom-color:transparent;border-radius:6px}
.course-date{width:2.25rem;flex-shrink:0;text-align:center;display:flex;flex-direction:column;gap:6px}.course-day{font-family:Georgia,serif;font-size:2.125rem;line-height:1;font-variant-numeric:tabular-nums}.course-weekday{font-size:.75rem;color:var(--muted);line-height:1.3}.course-copy{display:flex;flex-direction:column;gap:4px;min-width:0;flex:1}.course-time{font-size:.8125rem;color:var(--muted);font-variant-numeric:tabular-nums}.course-title{font-weight:600;font-size:.9375rem;line-height:1.55;overflow-wrap:anywhere}.course-count{display:flex;align-items:center;flex-wrap:wrap;gap:8px;color:var(--muted);font-size:.75rem;font-variant-numeric:tabular-nums}.course-state{color:var(--accent)}.course-count .wait-count{border-left:1px solid #bdb3a3;padding-left:8px;color:var(--accent)}
.course-item[aria-current=true] .course-time,.course-item[aria-current=true] .course-weekday,.course-item[aria-current=true] .course-count{color:#e4e9df}.course-item[aria-current=true] .course-state,.course-item[aria-current=true] .wait-count{color:#f1c9a9}.course-chevron{width:15px;height:15px;flex-shrink:0;color:#817b6e;margin-left:-4px}.course-item[aria-current=true] .course-chevron{color:#d5dfd2}.today-dot{height:5px;width:5px;background:var(--accent);border-radius:50%;margin:0 auto}.course-item[aria-current=true] .today-dot{background:#ecc8ae}
.detail-pane{background:var(--surface);border:1px solid var(--line);border-radius:7px;padding:26px 30px 28px;outline:none}.detail-heading{display:flex;align-items:flex-start;gap:12px;justify-content:space-between}.heading-copy{min-width:0}.detail-date{color:var(--muted);font-size:.8125rem;line-height:1.4;margin-bottom:7px}.detail-title{font-family:var(--font-title);font-size:1.8125rem;font-weight:700;line-height:1.45;overflow-wrap:anywhere}.detail-time{display:flex;gap:7px;align-items:center;flex-wrap:wrap;color:var(--muted);font-size:.875rem;margin-top:9px;font-variant-numeric:tabular-nums}.detail-time svg{width:16px;height:16px}.detail-time .separator{color:#686459;margin:0 2px}
.class-note{font-size:.8125rem;color:var(--muted)}.class-note summary{cursor:pointer;min-height:28px;display:inline-flex;align-items:center;color:var(--muted);gap:4px}.class-note summary::before{content:"+";font-size:1rem}.class-note[open] summary::before{content:"−"}.class-note p{white-space:pre-wrap;max-width:45em;line-height:1.7;color:var(--text);padding:6px 0 2px}
.mobile-back{display:none}.detail-actions{display:flex;flex-shrink:0;align-items:center}.enrollment-bar{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:23px 0 19px}.capacity{display:flex;align-items:center;gap:9px;flex-wrap:wrap;font-size:.8125rem;color:var(--muted)}.capacity-numbers{font-size:1.125rem;color:var(--text);font-weight:650;font-variant-numeric:tabular-nums}.capacity-numbers span{font-size:.875rem;font-weight:400;color:var(--muted)}.status-chip{font-size:.75rem;line-height:1.4;padding:4px 7px;border-radius:3px;background:#ead8c6;color:#6f432a;white-space:nowrap}.status-chip.open{background:#e6eddf;color:#365237}
.roster{width:100%;border-collapse:collapse;table-layout:fixed}.roster th{font-size:.75rem;color:var(--muted);font-weight:400;text-align:left;border-bottom:1px solid var(--line);padding:10px 8px}.roster td{border-bottom:1px solid #e7e1d6;padding:12px 8px;vertical-align:middle;overflow-wrap:anywhere;font-size:.875rem;line-height:1.5}.roster .number-col{width:34px}.roster .name-col{width:25%}.roster .phone-col{width:29%}.roster .action-col{width:48px}.roster .cell-number{font:.8125rem/1.5 Georgia,serif;font-variant-numeric:tabular-nums;color:#6b6253;padding-left:6px}.roster .cell-name{font-size:.9375rem;font-weight:550}.roster .cell-phone{font-variant-numeric:tabular-nums;letter-spacing:.01em}.roster .cell-phone a{color:inherit;text-decoration:none;display:inline-block;padding:5px 0}.roster .cell-phone a:hover{text-decoration:underline}.roster .cell-note{font-size:.8125rem;color:var(--muted);white-space:pre-wrap}.roster .cell-actions{padding:5px 0;text-align:right}.roster tr.match{background:#edf0e3}.roster tr.match .cell-name{color:#2d573e}
.wait-section{margin-top:26px}.section-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:9px}.section-heading h2{font-size:.9375rem;font-weight:600;display:flex;align-items:baseline;gap:8px}.section-heading h2 span{color:var(--muted);font-weight:400;font-size:.8125rem}.section-heading .order-label{color:var(--muted);font-size:.75rem}.wait-box{background:var(--wait);border-radius:5px;padding:0 10px}.wait-box .roster tbody tr:last-child td{border-bottom:0}.wait-box .roster.has-promotion .action-col{width:135px}.promote-button{padding:6px 8px;min-height:40px;border-radius:4px;background:var(--green);color:#fff;font-size:.8125rem;font-weight:500;white-space:nowrap}.promote-button:hover{background:#243c2d}.wait-actions{display:flex;align-items:center;justify-content:flex-end;gap:4px}.empty-roster{padding:35px 8px;color:var(--muted);font-size:.875rem;border-bottom:1px solid var(--line)}.empty-wait{color:var(--muted);font-size:.8125rem;padding:13px 0 2px}
.cancelled-section{margin-top:22px;border-top:1px solid var(--line);padding-top:8px}.cancelled-section summary{cursor:pointer;color:var(--muted);font-size:.8125rem;min-height:40px;display:flex;align-items:center;gap:8px}.cancelled-section summary::before{content:"›";font-size:1.25rem}.cancelled-section[open] summary::before{transform:rotate(90deg)}.cancelled-section .restore-button{font-size:.8125rem;padding:5px 8px;min-height:40px;border:1px solid var(--control);border-radius:4px;background:transparent;white-space:nowrap}.cancelled-section .roster .action-col{width:100px}
.empty-courses{padding:48px 12px;text-align:center;color:var(--muted);font-size:.875rem}.empty-courses p{margin-bottom:10px}.empty-detail{min-height:490px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;color:var(--muted);text-align:center}.empty-detail .bowl{width:58px;height:48px;color:#9a8068}.empty-detail h2{font-family:var(--font-title);font-size:1.375rem;color:#48483b;font-weight:600}.empty-detail p{font-size:.875rem;max-width:24em}
.feedback{display:flex;align-items:center;gap:8px;padding:8px 36px;background:#e7eddf;border-bottom:1px solid #bac8ae;min-height:52px;color:#344f35;font-size:.875rem}#feedback-message{flex:1;min-width:0;overflow-wrap:anywhere}.feedback .text-button{color:#2c5738;min-height:34px}.feedback .icon-button{min-width:32px;min-height:32px;color:#3f5940}.feedback.error{background:#f8e6dc;color:#89362a;border-bottom-color:#d3a99a}
.action-menu{position:fixed;inset:auto;margin:0;padding:6px;min-width:195px;max-width:calc(100vw - 24px);border:1px solid #bfb7a8;border-radius:6px;background:var(--surface);box-shadow:0 8px 28px #34291b26;color:var(--text)}.action-menu::backdrop{background:transparent}.menu-caption{font-size:.75rem;color:var(--muted);padding:8px 10px 6px;border-bottom:1px solid var(--line);margin-bottom:4px}.action-menu button{display:flex;align-items:center;gap:9px;text-align:left;width:100%;min-height:44px;background:transparent;border-radius:4px;padding:10px;font-size:.875rem}.action-menu button:hover,.action-menu button:focus-visible{background:#eee8dd}.action-menu button.danger{color:var(--danger)}.action-menu button svg{width:18px;height:18px}
dialog{padding:0;border:1px solid #c8bead;border-radius:9px;box-shadow:0 24px 80px #1e221d33;width:500px;max-width:calc(100vw - 32px);max-height:calc(100dvh - 32px);background:var(--surface);color:var(--text);overflow:hidden}dialog::backdrop{background:#20291f73}dialog form{display:flex;flex-direction:column;max-height:calc(100dvh - 34px)}
.modal-header{padding:23px 24px 14px;display:flex;align-items:flex-start;justify-content:space-between;gap:12px;flex-shrink:0}.modal-header h2{font-size:1.375rem;line-height:1.45;font-family:var(--font-title);font-weight:700}.modal-header .icon-button{margin:-5px -6px 0 0}.modal-subtitle{font-size:.8125rem;color:var(--muted);margin-top:6px;overflow-wrap:anywhere}.modal-body{overflow:auto;min-height:0;padding:0 24px 18px}.registration-destination{display:flex;align-items:center;gap:7px;background:var(--wait);color:#6e4c32;border-radius:4px;padding:10px 12px;font-size:.8125rem;margin:0 0 20px}.registration-destination.regular{background:#e9eee3;color:#38533b}
.field{display:flex;flex-direction:column;gap:7px;margin-bottom:17px;min-width:0}.field>span{font-size:.8125rem;font-weight:550}.field>span small{font-size:.75rem;font-weight:400;color:var(--muted);margin-left:6px}.field input,.field select,.field textarea{background:#fff;border:1px solid #a79e8e;border-radius:5px;min-height:46px;width:100%;padding:10px 11px;font-size:1rem;line-height:1.5;min-width:0}.field textarea{resize:vertical;min-height:91px}.field input:focus,.field textarea:focus{outline:2px solid var(--focus);outline-offset:2px}.field-row{display:grid;grid-template-columns:1fr 1fr;gap:14px}.field-row.three{grid-template-columns:repeat(auto-fit,minmax(min(100%,8.3rem),1fr))}.field input[type=date],.field input[type=time]{padding:9px 8px}
.modal-footer{display:flex;justify-content:flex-end;gap:9px;flex-wrap:wrap;padding:16px 24px;border-top:1px solid var(--line);background:var(--surface);flex-shrink:0}.modal-error{font-size:.8125rem;color:#9b3028;background:#faeae2;padding:10px 12px;border-radius:4px;flex:1 0 100%;white-space:pre-wrap;overflow-wrap:anywhere}.modal-error:focus{outline:none}.form-hint{font-size:.8125rem;color:var(--muted);margin:0 0 12px}.dialog-copy{font-size:.9375rem;line-height:1.8;white-space:pre-wrap;margin:8px 0}
@media(min-width:1100px){.workspace{grid-template-columns:350px minmax(0,1fr);gap:30px}.course-item{gap:19px}}
@media(min-width:901px){.course-pane{position:sticky;top:28px;max-height:calc(100dvh - 130px);overflow-y:auto;scrollbar-width:thin;scroll-padding-top:8px;padding-bottom:1px}.mobile-detail-toolbar{display:none}}
@media(min-width:1600px){.workspace{padding-top:36px}.app-header{padding-inline:max(36px,calc((100vw - 1464px)/2))}}
@media(max-width:1100px) and (min-width:901px){.app-header{padding-inline:24px}.workspace{padding-inline:24px;gap:20px;grid-template-columns:300px minmax(0,1fr)}.detail-pane{padding:24px 20px}.roster .phone-col{width:32%}.roster .cell-note{font-size:.75rem}.course-item{gap:14px}.feedback{padding-inline:24px}}
@media(max-width:900px){
.app-header{min-height:66px;padding:10px 18px;gap:10px}.brand{gap:9px}.brand-mark{width:32px;height:30px}.brand-name{font-size:1.125rem}.brand-purpose{font-size:.75rem;padding-left:10px}.demo-label{display:inline-flex}
.header-actions{gap:3px}.header-actions .button{padding:8px 11px;min-height:42px;font-size:.8125rem}.header-actions .button svg{width:16px;height:16px}.header-actions .icon-button{min-width:34px;min-height:40px}
.workspace{display:block;padding:20px 18px 28px;max-width:680px}.month-toolbar{margin-bottom:13px;min-height:44px}.month-actions .icon-button{min-width:40px}#month-label{font-size:1.75rem}#year-label{font-size:.8125rem}.search-box input{font-size:1rem}.filter-box select{font-size:.875rem;max-width:none;padding-right:7px}
.course-item{min-height:120px;padding:20px 15px;gap:22px}.course-title{font-size:1rem}.course-time{font-size:.875rem}.course-count{font-size:.8125rem}.course-chevron{width:19px;height:19px}
.course-item[aria-current=true]{background:transparent;color:var(--text);border-bottom-color:var(--line);border-radius:0}.course-item[aria-current=true] .course-time,.course-item[aria-current=true] .course-weekday,.course-item[aria-current=true] .course-count{color:var(--muted)}.course-item[aria-current=true] .course-state,.course-item[aria-current=true] .wait-count{color:var(--accent)}.course-item[aria-current=true] .course-chevron{color:#817b6e}.course-item[aria-current=true] .today-dot{background:var(--accent)}
.detail-pane{display:none}body.show-detail .course-pane{display:none}body.show-detail .workspace{padding:0;max-width:680px}body.show-detail .detail-pane{display:block;border:0;border-radius:0;padding:14px 20px 28px;min-height:calc(100dvh - 66px)}
.mobile-back{display:inline-flex;min-height:40px;align-items:center;gap:3px;background:transparent;color:var(--muted);padding:5px 4px 5px 0;font-size:.8125rem}.mobile-detail-toolbar{display:flex;justify-content:space-between;align-items:center;margin:-4px -3px 12px}.detail-heading>.detail-actions{display:none}.detail-title{font-size:1.625rem;line-height:1.55}.detail-date{font-size:.8125rem}.detail-time{font-size:.875rem;margin-top:8px}
.enrollment-bar{margin:20px 0 13px;gap:8px}.capacity{font-size:.75rem;gap:7px}.enrollment-bar .button{padding:10px 13px;font-size:.875rem}.roster th{font-size:.75rem}.wait-section{margin-top:25px}.feedback{padding:8px 18px;font-size:.8125rem;gap:3px}.feedback .text-button{padding:5px 7px}
}
@media(max-width:540px){
.brand-purpose{display:none}.brand{gap:8px}.workspace{padding-top:17px}.course-tools{margin-bottom:8px}.course-item{gap:20px;padding:19px 12px;min-height:119px}.detail-pane{padding-inline:18px!important}
.roster{display:block}.roster colgroup{display:none}.roster thead{position:absolute;width:1px;height:1px;clip:rect(0,0,0,0);overflow:hidden}.roster tbody{display:block}
.roster tr{display:grid;grid-template-columns:1.6rem minmax(0,1fr) auto;gap:0 8px;padding:12px 0;border-bottom:1px solid #e4ded2;min-height:78px}.roster td{padding:0!important;border:0;display:block}.roster .cell-number{grid-column:1;grid-row:1/4;padding-top:3px!important;font-size:.8125rem}.roster .cell-name{grid-column:2;grid-row:1;align-self:end;font-size:1rem;line-height:1.5}.roster .cell-phone{grid-column:2;grid-row:2;font-size:.8125rem;color:var(--muted)}.roster .cell-phone a{padding:1px 0;min-height:25px}.roster .cell-note{grid-column:2;grid-row:3;font-size:.75rem;line-height:1.6;padding-top:2px!important}.roster .cell-note:empty{display:none}.roster .cell-actions{grid-column:3;grid-row:1/4;align-self:center}
.wait-box{padding:0 11px}.wait-box .roster tr:last-child{border-bottom:0}.wait-box .wait-actions{flex-direction:column;gap:2px}.wait-box .promote-button{min-height:38px;padding:6px 8px;font-size:.75rem}.wait-box .roster tr{min-height:81px}.cancelled-section .roster .restore-button{font-size:.75rem}.section-heading{margin-bottom:7px}.enrollment-bar .capacity{max-width:50%}.status-chip{font-size:.75rem}
.modal-header{padding:21px 20px 14px}.modal-body{padding:0 20px 16px}.modal-footer{padding:14px 20px}.field-row.three{gap:9px}dialog{width:calc(100vw - 24px);max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px)}dialog form{max-height:calc(100dvh - 26px)}
}
@media(max-width:360px){
.app-header{padding-inline:12px}.workspace{padding-inline:14px}.detail-pane{padding-inline:14px!important}.brand-mark{width:28px}.brand-name{font-size:1rem}.header-actions .button{padding:8px 9px}.course-item{gap:14px;padding-inline:8px}.course-count{gap:6px}.enrollment-bar .button{padding-inline:10px;font-size:.8125rem}.detail-title{font-size:1.5rem}
}
@media(prefers-reduced-motion:no-preference){button,a{transition:background-color .12s ease,color .12s ease}dialog[open]{animation:dialog-in .14s ease-out}@keyframes dialog-in{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}}

.wait-box .roster thead,.cancelled-section .roster thead{position:absolute;width:1px;height:1px;clip:rect(0,0,0,0);overflow:hidden}
.class-note{margin-left:4px}.class-note[open]{flex-basis:100%}.wait-jump{min-height:32px;padding:5px 8px;font:inherit;font-size:.8125rem;color:#70442c;cursor:pointer}.wait-jump:hover{background:#ddc2a7}

@media(max-width:540px){.field-row.three .field:last-child{grid-column:1/-1}}
