:root{--purple:#641d79;--purple-hover:#501462;--tint:#f3edf6;--bg:#f5f6f8;--surface:#fff;--text:#1f2329;--muted:#646a73;--subtle:#8f959e;--line:#e8eaed;--course:#31806b;--exam:#a9500f;--exam-tint:#fff1e2;--exam-text:#7b3a12;--sidebar:208px;font-family:Inter,'Segoe UI','PingFang SC','Microsoft YaHei',sans-serif;color:var(--text);background:var(--bg);font-synthesis:none;font-size:100%;line-height:1.5}

*{box-sizing:border-box}
body{margin:0}
button,input,select,textarea{font:inherit}
button,a,select{-webkit-tap-highlight-color:transparent;touch-action:manipulation}
button{cursor:pointer;color:inherit;border:0;background:none}
button,a,select,summary{transition:background-color .12s ease,color .12s ease,border-color .12s ease}
button:where(:active:not(:disabled)),summary:where(:active){background-color:var(--tint)}
a{color:inherit;text-decoration:none}
h1,h2,h3,p{margin:0}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible,[tabindex]:focus-visible{outline:3px solid #aa73bd;outline-offset:3px}
button:disabled{cursor:wait;opacity:.5}
[hidden]{display:none!important}
.icon{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}
i[data-icon]{display:inline-flex;vertical-align:middle;font-style:normal}
.sr-only{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip-path:inset(50%)}
.skip-link{position:fixed;top:-80px;left:16px;z-index:100;background:white;padding:12px;border:2px solid var(--purple)}
.skip-link:focus{top:10px}

.sidebar{width:var(--sidebar);position:fixed;inset:0 auto 0 0;z-index:10;padding:32px 14px;background:#fafbfc;border-right:1px solid var(--line);overflow-y:auto}
.nav-label{font-size:0.875rem;color:var(--muted);padding-left:12px}
.main-nav{display:grid;gap:6px;margin-top:12px}
.nav-item{display:flex;align-items:center;gap:10px;width:100%;min-height:auto;min-height:2.625rem;padding:8px 12px;border-radius:6px;text-align:left;font-size:1rem;color:var(--muted)}
.nav-item:hover{background:#f0f1f3}
.nav-item.active{color:var(--purple);background:var(--tint);font-weight:600}
.nav-dot{width:5px;height:5px;background:var(--purple);border-radius:50%;margin-left:auto}
.nav-item:not(.active) .nav-dot{display:none}
.nav-sub{position:relative;margin-left:21px;width:calc(100% - 21px);padding-left:14px;font-size:0.9375rem;min-height:2.375rem}
.nav-sub::before{content:'';position:absolute;left:-1px;top:-3px;bottom:-3px;border-left:1px solid var(--line)}
.nav-sub .icon{width:17px;height:17px}

.shell{margin-left:var(--sidebar)}
main{max-width:1560px;margin:auto;padding:24px 24px 0}
.home-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}
.home-heading h1{font-size:1.625rem;font-weight:650;color:var(--purple)}
.home-heading a{display:inline-flex;align-items:center;min-height:44px;white-space:nowrap}
.home-overview{display:grid;grid-template-columns:minmax(0,4fr) minmax(0,6fr);gap:16px;align-items:stretch;margin-bottom:16px}
.home-course{display:flex;flex-direction:column;min-width:0;border-radius:10px;padding:16px 20px;color:white;background:linear-gradient(125deg,#42124f,#641d79)}
.home-course h2{font-size:1rem;font-weight:650;color:#ffdeae}
#home-course-content{display:flex;flex:1;flex-direction:column;align-items:flex-start}
.home-course-name{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px;margin-top:6px}
.home-course-name h3{font-size:1.5rem;line-height:1.25;overflow-wrap:anywhere}
.home-course.is-exam{background:linear-gradient(125deg,#502a19,#743b20)}
.home-course-facts{display:flex;flex-wrap:wrap;gap:5px 12px;margin-top:8px;font-size:.9375rem;color:#f5eaf7}
.home-course-facts>span{display:inline-flex;align-items:baseline;gap:5px;overflow-wrap:anywhere;min-width:0}
.home-course-facts .icon{width:16px;height:16px;align-self:flex-start;margin-top:3px;color:#ffdeae}
.home-course-actions{display:flex;flex-wrap:wrap;gap:4px 10px;margin-top:auto;padding-top:10px}
.home-course-detail,.home-class-choice{min-height:44px;padding:5px 10px;border-radius:5px;font-size:.9375rem;font-weight:600}
.home-course-detail{color:#42124f;background:#fff3e1}
.home-course-detail:hover,.home-course-detail:active{background:#ffe3b9}
.home-class-choice{color:white}
.home-class-choice:hover,.home-class-choice:active{background:#ffffff24}
.home-course-empty{margin:8px 0 10px;color:#f5eaf7}
.home-activities{min-width:0;padding:14px 16px 8px}
.home-activities h2{font-size:1.0625rem;font-weight:650}
.home-activity-list{list-style:none;margin:4px 0 0;padding:0}
.home-activity-list li+li{border-top:1px solid var(--line)}
.home-activity-open{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:10px;width:100%;min-height:44px;padding:7px 4px;border-radius:5px;text-align:left}
.home-activity-open:hover,.home-activity-open:active{background:var(--tint)}
.home-activity-open:focus-visible{outline-offset:-2px}
.home-activity-body{display:grid;gap:2px;min-width:0;overflow-wrap:anywhere}
.home-activity-body strong{font-size:1rem;font-weight:650}
.home-activity-meta{display:flex;flex-wrap:wrap;align-items:center;gap:2px 9px;color:var(--muted);font-size:.875rem}
.home-activity-action{color:var(--purple);font-size:.875rem;font-weight:650;white-space:nowrap}
.home-activity-empty{padding:10px 0;color:var(--muted)}
.workspace-body{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:20px;align-items:start}
.workspace-body>*,.context>*{min-width:0}
.panel{border:1px solid var(--line);border-radius:10px;background:var(--surface);overflow:hidden}
.panel-heading{padding:18px 18px 0}
.section-title{display:flex;align-items:center;flex-wrap:wrap;gap:8px;min-width:0}
.title-icon{color:var(--purple);display:flex}
.section-title h2,.context-heading h2{font-size:1.1875rem;font-weight:600}
.count{font-size:0.875rem;color:var(--muted);white-space:nowrap}
.calendar-toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:10px;padding:16px 18px 0}
.month-controls{display:flex;align-items:center;gap:5px;white-space:nowrap;margin-right:auto}
.month-title{display:inline-flex;align-items:center;gap:6px;min-height:40px;padding:3px 5px;font-size:1.375rem;font-weight:600;margin-right:7px;border-radius:5px;white-space:normal;overflow-wrap:anywhere;text-align:left}
.month-title::after{content:'⌄';font-size:1rem;color:var(--muted)}
.month-title:hover{color:var(--purple);background:var(--tint)}
.month-title:disabled{cursor:default;opacity:1}
.month-title:disabled::after{display:none}
.icon-button{width:40px;height:40px;border:1px solid var(--line);border-radius:5px;display:inline-flex;align-items:center;justify-content:center;background:white}
.icon-button .icon{width:16px;height:16px}
.icon-button:hover,.today-button:hover{background:var(--tint);color:var(--purple)}
.today-button{border:1px solid var(--line);padding:4px 9px;border-radius:5px;margin-left:2px;font-size:1rem;min-height:40px;flex-shrink:0}
.view-switch,.agenda-filters{padding:3px;display:flex;background:#f2f3f5;border-radius:6px}
.view-switch button{font-size:0.9375rem;padding:4px 8px;min-height:38px;display:flex;align-items:center;gap:5px;border-radius:4px;color:var(--muted);white-space:nowrap}
.view-switch .icon{width:14px;height:14px}
.view-switch button[aria-pressed=true],.agenda-filters button[aria-pressed=true]{background:white;color:var(--purple);box-shadow:0 1px 3px #1f232912}
.search{display:flex;align-items:center;gap:6px;border:1px solid var(--line);border-radius:6px;height:auto;min-height:2.625rem;padding:0 9px;flex:1 1 150px;min-width:0;max-width:210px;color:var(--muted);background:white}
.search input{width:100%;min-width:0;background:transparent;border:0;outline:none;font-size:1rem;color:var(--text)}
.search:focus-within{outline:2px solid #aa73bd}
.search input:focus-visible{outline:0}
.search .icon{width:15px;height:15px}
.filters{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.3fr) minmax(0,1fr);align-items:center;gap:12px;padding:10px 18px}
.type-filters{min-width:0}
.type-filter,.credit-filter{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:7px;min-width:0;color:var(--muted);font-size:0.9375rem}
.type-filter>span,.credit-filter>span{white-space:nowrap}
.type-filter select,.credit-filter select{width:100%;min-width:0;min-height:40px;border:1px solid var(--line);border-radius:5px;background:white;font-size:0.9375rem;color:var(--text);padding:5px 7px;cursor:pointer;text-overflow:ellipsis}
.type-filter select:hover,.credit-filter select:hover{border-color:#b48ac4;background:var(--tint)}
.type-filter.filter-active select,.credit-filter.filter-active select{border-color:#b48ac4;background:var(--tint);color:var(--purple)}

.course-picker{margin:0 18px 12px;border:1px solid var(--line);border-radius:6px;background:#fafbfc;min-width:0}
.course-picker summary{display:flex;align-items:center;gap:10px;min-height:44px;padding:7px 10px;color:var(--muted);font-size:1rem;cursor:pointer;list-style:none}
.course-picker summary::-webkit-details-marker{display:none}
.course-picker summary>span:first-child{display:flex;align-items:center;gap:6px;font-weight:500;color:var(--text)}
.course-picker summary .icon{width:16px;height:16px}
.course-picker summary::after{content:'＋';margin-left:auto;font-size:1.25rem}
.course-picker[open] summary::after{content:'−'}
.course-picker summary:focus-visible{outline-offset:-3px;border-radius:6px}
.course-picker #course-selection-status{font-size:0.875rem;overflow-wrap:anywhere}
.course-selector{margin:0;border:0;padding:0 10px 10px;min-width:0}
.course-selector-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:0 0 7px;color:var(--muted);font-size:0.875rem}
.course-selector-heading .text-button{font-size:0.875rem;min-height:32px}
.class-filters{display:flex;flex-wrap:wrap;gap:7px;min-width:0;grid-template-columns:repeat(auto-fit,minmax(min(4rem,100%),1fr))}
.class-choice{display:flex;align-items:center;gap:8px;min-width:0;max-width:100%;padding:3px 7px;border:1px solid var(--line);border-radius:5px;background:white}
.class-option{display:flex;align-items:center;gap:6px;min-width:0;cursor:pointer;min-height:44px}
.class-option input{width:18px;height:18px;flex-shrink:0;accent-color:var(--purple)}
.class-option span{display:grid;min-width:0;line-height:1.4}
.class-option strong{font-size:1rem;font-weight:600;overflow-wrap:anywhere}
.class-option small{font-size:0.8125rem;color:var(--muted);overflow-wrap:anywhere}
.class-option.selected strong{color:var(--purple)}
.class-calendar-link{display:inline-flex;align-items:center;gap:2px;color:var(--muted);font-size:0.8125rem;white-space:nowrap;text-decoration:underline;text-underline-offset:3px}
.class-calendar-link .icon{width:12px;height:12px}
.course-empty{font-size:0.9375rem;color:var(--muted)}

.weekdays,.month-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));min-width:0;width:100%}
.weekdays{background:#fafbfc;border-top:1px solid var(--line);border-bottom:1px solid var(--line);height:2.125rem;align-items:center;text-align:center;font-size:0.875rem;color:var(--muted)}
.calendar-page-stage{position:relative;overflow:hidden;perspective:1400px;isolation:isolate}
.month-grid{overflow:hidden}
.calendar-page{position:relative;background:var(--surface);transform-style:preserve-3d;backface-visibility:hidden}
.calendar-page-stage--flipping .calendar-page{will-change:transform}
.calendar-page-stage--flipping .calendar-page--old{position:absolute;inset:0;z-index:2;width:100%;height:100%;box-shadow:0 8px 18px #1f23291f;pointer-events:none}
.calendar-page-stage--flipping .calendar-page--new{z-index:1;box-shadow:0 2px 8px #1f23290d}
.calendar-page--old.calendar-page--next{transform-origin:left center;transform:rotateY(0);}
.calendar-page--new.calendar-page--next{transform-origin:right center;transform:rotateY(82deg);}
.calendar-page--old.calendar-page--prev{transform-origin:right center;transform:rotateY(0);}
.calendar-page--new.calendar-page--prev{transform-origin:left center;transform:rotateY(-82deg);}
.calendar-page--old.calendar-page--run,.calendar-page--new.calendar-page--run{transition:transform .28s cubic-bezier(.22,.61,.36,1)}
.calendar-page--old.calendar-page--next.calendar-page--run{transform:rotateY(-82deg)}
.calendar-page--new.calendar-page--next.calendar-page--run{transform:rotateY(0)}
.calendar-page--old.calendar-page--prev.calendar-page--run{transform:rotateY(82deg)}
.calendar-page--new.calendar-page--prev.calendar-page--run{transform:rotateY(0)}
.day-cell{height:auto;min-width:0;padding:5px 3px;border-right:1px solid var(--line);border-bottom:1px solid var(--line);min-height:7.5rem}
.day-cell:nth-child(7n){border-right:0}
.day-cell.outside{background:#fafbfc}
.day-cell.selected{background:#f7f2f9;box-shadow:inset 0 0 0 1px #b48ac4}
.day-button{width:27px;height:27px;padding:0;display:grid;place-items:center;border-radius:50%;font-size:1.125rem;margin:0 0 3px 2px;font-variant-numeric:tabular-nums}
.day-button:hover{background:var(--tint)}
.outside .day-button{color:var(--subtle)}
.day-cell.today .day-button{background:var(--purple);color:white}
.day-button:focus-visible{position:relative;z-index:1}
.day-markers{display:none;min-height:0.875rem;line-height:1.1}
.day-events{display:grid;gap:3px;min-width:0}
.event-chip{display:flex;align-items:center;width:100%;min-width:0;overflow:hidden;padding:2px 4px;border-left:2px solid var(--purple);border-radius:3px;background:var(--tint);color:#55325e;text-align:left;font-size:0.8125rem;line-height:1.25rem}
.chip-label{display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.chip-time{margin-right:4px;font-variant-numeric:tabular-nums}
.event-chip.course-entry{border-left-color:var(--course);background:#edf5f2;color:#316a59}
.event-chip.exam-entry{border-left-color:var(--exam);background:var(--exam-tint);color:var(--exam-text)}
.exam-chip-label{margin-right:3px;font-weight:650}
.event-chip:hover{filter:brightness(.97)}
.chip-conflict{margin-left:4px;color:#956018;font-size:0.75rem;white-space:nowrap}
.more-events{font-size:0.8125rem;text-align:left;color:var(--muted);padding:0 4px;line-height:1.25rem}
.calendar-footer{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:4px 8px;padding:7px 18px;font-size:0.875rem;color:var(--muted)}
.legend-dot{display:inline-block;width:5px;height:5px;border-radius:50%;background:var(--purple);margin-right:3px;vertical-align:middle}
.course-dot{background:var(--course);margin-left:7px}
.exam-dot{background:var(--exam);margin-left:7px}
.calendar-tip{margin-left:4px}
.text-button{font-size:1rem;color:var(--purple);min-height:40px;padding:5px 0}
.text-button:hover{text-decoration:underline;text-underline-offset:3px}
.data-notice{margin:0 18px 10px;font-size:0.8125rem;color:var(--muted);line-height:1.5;overflow-wrap:anywhere}
.data-notice.error{padding:8px 10px;color:#a12732;background:#fff0ef;border-radius:5px}
.data-notice{transition:color .12s ease}
.data-notice.refreshing{color:var(--purple)}

.context{display:grid;gap:14px;min-width:0}
.upcoming-panel{padding:16px;scroll-margin-top:12px;scroll-margin-bottom:80px}
.context-heading{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:6px}
.upcoming-panel.agenda-highlight .context-heading{animation:agenda-highlight .3s ease-out}
@keyframes agenda-highlight{from{background-color:var(--tint)}to{background-color:transparent}}
.subtle{font-size:0.875rem;color:var(--muted)}
.agenda-filters{margin:12px 0 4px;gap:3px}
.agenda-filters button{flex:1;min-height:40px;font-size:1rem;color:var(--muted);border-radius:4px}
.schedule-group-heading{font-size:1rem;line-height:1.5rem;color:var(--muted);font-weight:600;padding:13px 2px 2px}
.schedule-group-heading.is-today{color:var(--purple);scroll-margin-top:16px}
[data-list-today]{scroll-margin-top:16px}
.search-section-heading{font-size:1rem;line-height:1.5;font-weight:600;color:var(--text);padding:16px 2px 0}
.past-results{margin-top:14px;border-top:1px solid var(--line)}
.past-results>summary{cursor:pointer;min-height:44px;padding:12px 2px 6px;font-size:1rem;font-weight:500;color:var(--muted)}
.past-results>summary:hover{color:var(--purple)}
.list-jump-today{display:inline-flex;align-items:center;gap:5px;min-height:40px;margin:8px 0 0;padding:5px 8px;border:1px solid var(--line);border-radius:5px;color:var(--purple);font-size:0.9375rem;background:white}
.list-jump-today:hover{background:var(--tint)}
.schedule-row{display:grid;grid-template-columns:3.25rem minmax(0,1fr) 12px;gap:10px;align-items:start;text-align:left;width:100%;padding:12px 2px;background:white;border-bottom:1px solid var(--line)}
.schedule-row:last-child{border-bottom:0}
.schedule-row:hover{background:#fafbfc}
.schedule-row:focus-visible{outline-offset:-2px;border-radius:4px}
.schedule-time{display:grid;padding-top:1px;font-variant-numeric:tabular-nums}
.schedule-time strong{font-size:1rem;line-height:1.5rem;font-weight:500}
.schedule-time small{font-size:0.9375rem;line-height:1.4375rem;color:var(--muted)}
.schedule-info{min-width:0}
.schedule-info h3{font-size:1.125rem;line-height:1.6875rem;font-weight:600;overflow-wrap:anywhere;color:var(--text)}
.schedule-meta{display:flex;flex-wrap:wrap;align-items:center;gap:3px 8px;margin-top:3px;font-size:0.9375rem;line-height:1.4375rem;color:var(--muted);min-width:0}
.schedule-kind{display:inline-flex;align-items:center;gap:5px;max-width:100%;overflow-wrap:anywhere}
.schedule-kind::before{content:'';width:5px;height:5px;border-radius:50%;background:var(--purple);flex-shrink:0}
.kind-course::before{background:var(--course)}
.kind-exam{color:var(--exam-text);font-weight:600}
.kind-exam::before{background:var(--exam)}
.schedule-location{flex:1 1 60px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
.schedule-end-note{flex-basis:100%}
.schedule-row>.icon{width:12px;height:16px;margin-top:5px;color:var(--subtle)}
.badge{display:inline-block;font-size:0.8125rem;line-height:1.25rem;padding:0 5px;background:#f2f3f5;color:var(--muted);border-radius:3px}
.badge.credit-yes,.course-badge{background:#edf5f2;color:#316a59}
.exam-badge{background:var(--exam-tint);color:var(--exam-text)}
.exam-detail-heading{margin-top:18px;color:var(--exam-text);font-size:1rem}
.exam-detail-heading+.detail-description{margin-top:6px;padding-top:0;border:0}
.conflict-badge{background:#fff4df;color:#875314}
.agenda-actions{display:flex;flex-wrap:wrap;justify-content:space-between;gap:4px}
.agenda-actions:has(button:not([hidden])){border-top:1px solid var(--line);padding-top:5px;margin-top:4px}
.agenda-actions button{min-height:44px}
.list-view{min-height:200px;padding:0 18px 12px}
.edit-mode-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 18px 4px;padding:4px 12px;border-radius:6px;background:var(--tint);color:var(--purple);font-size:0.9375rem;font-weight:600}
.edit-mode-bar .text-button{min-height:36px;padding:0;font-size:0.9375rem}
.list-view.editing .schedule-row{grid-template-columns:3.25rem minmax(0,1fr) auto}
.edit-pill{align-self:center;padding:3px 12px;border:1px solid #b48ac4;border-radius:14px;background:white;color:var(--purple);font-size:0.875rem;font-weight:600;white-space:nowrap}
.schedule-row:hover .edit-pill{background:var(--purple);border-color:var(--purple);color:white}
.workspace-body[data-view=list] .upcoming-panel{display:none}
.empty{padding:28px 8px;text-align:center;font-size:0.9375rem;color:var(--muted);overflow-wrap:anywhere}
.empty>.icon{display:block;width:26px;height:26px;margin:0 auto 8px;color:var(--subtle)}
.empty strong{display:block;font-size:1rem;color:var(--text);font-weight:500;margin-bottom:5px}
.empty .text-button{margin-top:8px}
.notice-card{display:flex;align-items:flex-start;gap:7px;padding:0 4px;font-size:0.875rem;line-height:1.7;color:var(--muted)}
.notice-card .icon{width:15px;height:15px;margin-top:3px}
.services-card{padding:14px 16px}
.services-card .context-heading h2{font-size:1rem}
.future-app{display:flex;align-items:center;gap:10px;padding:12px 0 0}
.future-app>span{display:grid;place-items:center;width:36px;height:36px;background:#f2f3f5;color:var(--muted);border-radius:8px;flex-shrink:0}
.future-app>div{flex:1;min-width:0}
.future-app strong{display:block;font-size:1rem;font-weight:500}
.future-app small{display:block;color:var(--muted);font-size:0.875rem;margin-top:2px}
.future-app>.icon{width:16px;height:16px;color:var(--muted)}
.future-app:hover strong{color:var(--purple)}
.future-app strong{display:flex;flex-wrap:wrap;align-items:center;gap:4px 8px}
.future-app em{font-style:normal;font-weight:400}
.services-all{min-height:32px;padding:0;font-size:0.875rem}
.service-open{display:grid;gap:1px;margin:8px 0 0 46px;padding:7px 10px;border-left:3px solid var(--course);border-radius:0 6px 6px 0;background:#edf5f2;font-size:0.9375rem;min-width:0}
.service-open b{font-weight:600;overflow-wrap:anywhere}
.service-open span{font-size:0.8125rem;color:#316a59;font-variant-numeric:tabular-nums}
.service-open:hover b{color:var(--purple)}
.services-full{display:grid;gap:14px}
.services-full .service-block{padding:10px 18px 18px;border:1px solid var(--line);border-radius:10px;background:var(--surface)}
.services-full .future-app strong{font-size:1.125rem;font-weight:600}
.services-full .future-app>span{width:44px;height:44px;background:var(--tint);color:var(--purple)}
.services-full .service-open{margin-left:54px}
.crumbs{display:flex;flex-wrap:wrap;align-items:center;gap:2px 4px;min-height:40px;font-size:0.9375rem;color:var(--muted)}
.crumbs a{text-decoration:underline;text-underline-offset:3px}
.crumbs a:hover{color:var(--purple)}
.crumbs .icon{width:13px;height:13px;color:var(--subtle)}
.crumbs [aria-current]{color:var(--text);overflow-wrap:anywhere;min-width:0}
.admin-bar{display:flex;flex-wrap:wrap;align-items:center;gap:6px 16px;padding:8px 14px;border:1px solid #d8c5e3;border-radius:8px;background:var(--tint);font-size:0.9375rem}
.admin-bar span{display:inline-flex;align-items:center;gap:6px;color:var(--purple);font-weight:600}
.admin-bar .icon{width:15px;height:15px}
.admin-bar a{color:var(--purple);text-decoration:underline;text-underline-offset:3px}
.admin-bar button{margin-left:auto}
.page-footer{display:flex;align-items:center;flex-wrap:wrap;gap:8px 18px;padding:18px 0;font-size:0.875rem;color:var(--muted)}
.page-footer .text-button{margin-left:auto;display:flex;align-items:center;gap:5px;font-size:0.875rem}
.page-footer .icon{width:14px;height:14px}
#refresh.refreshing .icon{animation:refresh-spin .8s linear infinite}
@keyframes refresh-spin{to{transform:rotate(360deg)}}
.site-legal{flex-basis:100%;margin:0;text-align:center;line-height:1.8}
.site-legal a{display:inline-block;max-width:100%;padding:4px 6px;overflow-wrap:anywhere;text-decoration:underline;text-underline-offset:3px}
.site-legal a:hover{color:var(--purple)}
.visit-widget{display:inline-flex;align-items:center;flex-wrap:wrap;gap:5px;max-width:100%;font-size:0.875rem;color:var(--muted)}
.visit-widget strong{font-size:1.125rem;line-height:1.5;font-weight:600;font-variant-numeric:tabular-nums;color:var(--purple);overflow-wrap:anywhere;min-width:0}
.visit-widget[data-unavailable] strong{color:var(--muted)}
.mobile-nav{display:none}
.no-script{padding:16px;background:white}

dialog{width:min(560px,calc(100% - 32px));border:1px solid var(--line);border-radius:12px;padding:0;color:var(--text);background:white;box-shadow:0 24px 100px #1f23292b;max-height:90dvh}
dialog::backdrop{background:#1f232955}
dialog[open]{animation:dialog-enter .16s ease-out}
dialog[open]::backdrop{animation:backdrop-enter .16s ease-out}
@keyframes dialog-enter{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:translateY(0)}}
@keyframes backdrop-enter{from{opacity:0}to{opacity:1}}
.dialog-top{padding:14px 22px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line)}
.dialog-kicker{font-size:0.9375rem;color:var(--muted)}
.month-picker-dialog{width:min(380px,calc(100% - 32px))}
.month-picker-heading{font-size:1.1875rem;font-weight:600}
.month-picker-form{display:grid;gap:20px;padding:20px 22px 22px}
.month-picker-fields{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:14px}
.month-picker-fields label{display:grid;gap:7px;min-width:0;font-size:1rem;color:var(--muted)}
.month-picker-fields input,.month-picker-fields select{width:100%;min-width:0;min-height:44px;padding:8px;border:1px solid #cdd0d5;border-radius:5px;background:white;color:var(--text);font-size:1.125rem}
.month-picker-submit{justify-self:end;min-height:44px;padding:9px 24px;border-radius:6px;background:var(--purple);color:white;font-size:1.0625rem}
.month-picker-submit:hover,.month-picker-submit:active:not(:disabled){background:var(--purple-hover)}
#event-detail{padding:20px 24px}
#detail-title{font-size:1.625rem;line-height:1.5;overflow-wrap:anywhere;margin:10px 0 20px}
.detail-meta{display:grid;gap:15px}
.detail-row{display:flex;gap:12px;align-items:flex-start;font-size:1.125rem;line-height:1.65}
.detail-row>.icon{color:var(--muted);margin-top:3px}
.detail-row>div{min-width:0}
.detail-row label{font-size:0.875rem;color:var(--muted);display:block;margin-bottom:3px}
.detail-row p{overflow-wrap:anywhere}
.detail-description{border-top:1px solid var(--line);padding-top:18px;margin-top:20px;font-size:1.125rem;line-height:1.75;white-space:pre-wrap;overflow-wrap:anywhere;color:var(--muted)}
.dialog-footer{background:#fafbfc;padding:14px 22px;font-size:0.875rem;line-height:1.7;color:var(--muted);display:flex;gap:8px;align-items:flex-start}
.dialog-footer .icon{width:15px;height:15px;margin-top:2px}

.registration-section{border-top:1px solid var(--line);margin-top:20px;padding-top:18px}
.registration-section h3{font-size:1.1875rem;margin-bottom:12px}
.registration-link,.registration-primary{display:inline-flex;align-items:center;justify-content:center;min-height:44px;border-radius:6px;background:var(--purple);color:white;padding:9px 16px;font-size:1.0625rem}
.registration-link:hover,.registration-primary:hover{background:var(--purple-hover);color:white}
.registration-qr,.registration-preview{display:block;max-width:100%;width:280px;height:auto;border:1px solid var(--line);border-radius:8px;padding:10px;margin:16px 0;background:white}
.registration-note{font-size:1.125rem;line-height:1.75;color:var(--muted);white-space:pre-wrap;overflow-wrap:anywhere}
.registration-manage,.registration-cancel{font-size:1rem;color:var(--purple);padding:10px 0;min-height:44px;text-decoration:underline;text-underline-offset:4px}
.registration-editor{margin-top:14px;padding:16px;background:#fafbfc;border:1px solid var(--line);border-radius:8px}
.registration-help{font-size:0.9375rem;color:var(--muted);line-height:1.8;margin-bottom:12px}
.registration-editor form{display:grid;gap:16px}
.registration-editor label{font-size:1rem;display:grid;gap:7px}
.registration-editor input:not([type=checkbox]),.registration-editor textarea{width:100%;max-width:100%;min-width:0;padding:10px;border:1px solid #cdd0d5;border-radius:5px;font-size:1.125rem;color:var(--text);background:white}
.registration-editor input[name=code]{max-width:200px;letter-spacing:5px;text-transform:uppercase;font-size:1.5rem}
.registration-editor textarea{resize:vertical}
.registration-status{font-size:0.9375rem;line-height:1.8;color:var(--purple);margin-top:12px;overflow-wrap:anywhere}
.registration-actions{display:flex;flex-wrap:wrap;gap:14px}
.registration-drop{padding:12px;border:1px dashed #b4b8bf;border-radius:6px}
.registration-drop span,.registration-drop small{font-size:0.875rem;color:var(--muted)}
.registration-editor .registration-remove{display:flex;align-items:center;gap:8px;font-size:0.9375rem}
.registration-remove input{width:20px;height:20px;accent-color:var(--purple)}
.registration-filename{font-size:0.875rem;overflow-wrap:anywhere;color:var(--muted)}

.feedback-main{max-width:780px;display:grid;gap:16px}
.feedback-hero{padding:8px 2px 4px}
.feedback-hero h1{font-size:1.625rem;font-weight:650;color:var(--purple);letter-spacing:.5px;margin:6px 0 8px}
.feedback-hero p{font-size:1.0625rem;line-height:1.75;color:var(--muted)}
.feedback-card{padding:18px}
.feedback-card form{display:grid;gap:16px}
.feedback-categories{margin:0;padding:0;border:0;min-width:0}
.feedback-categories legend,.feedback-field{font-size:1rem;font-weight:500;color:var(--text)}
.feedback-categories legend{padding:0;margin-bottom:8px}
.feedback-chips{display:flex;flex-wrap:wrap;gap:8px}
.feedback-chips label{position:relative;cursor:pointer}
.feedback-chips input{position:absolute;opacity:0;inset:0;width:100%;height:100%;margin:0;cursor:pointer}
.feedback-chips span{display:inline-flex;align-items:center;min-height:40px;padding:6px 14px;border:1px solid var(--line);border-radius:20px;background:white;color:var(--muted);font-size:1rem;transition:background-color .12s ease,color .12s ease,border-color .12s ease}
.feedback-chips label:hover span{border-color:#b48ac4}
.feedback-chips input:checked+span{border-color:var(--purple);background:var(--tint);color:var(--purple);font-weight:600}
.feedback-chips input:focus-visible+span{outline:3px solid #aa73bd;outline-offset:3px}
.feedback-field{display:grid;gap:7px;min-width:0}
.feedback-field textarea,.feedback-field input,.feedback-reply-form textarea{width:100%;min-width:0;padding:10px 12px;border:1px solid #cdd0d5;border-radius:6px;background:white;color:var(--text);font-size:1.0625rem;font-weight:400;line-height:1.65}
.feedback-field textarea,.feedback-reply-form textarea{resize:vertical;min-height:2.75rem}
.feedback-field textarea::placeholder,.feedback-field input::placeholder,.feedback-reply-form textarea::placeholder{color:var(--subtle)}
.feedback-contact summary{min-height:40px;display:flex;align-items:center;font-size:0.9375rem;color:var(--purple);cursor:pointer;width:fit-content;max-width:100%}
.feedback-contact[open] summary{margin-bottom:6px}
.feedback-contact .feedback-field{font-size:0.9375rem;font-weight:400;color:var(--muted)}
.feedback-submit-row{display:flex;align-items:center;justify-content:space-between;gap:12px}
.feedback-primary{min-height:46px;padding:9px 28px;border-radius:6px;background:var(--purple);color:white;font-size:1.0625rem;font-weight:500}
.feedback-primary:hover,.feedback-primary:active:not(:disabled){background:var(--purple-hover)}
.feedback-secondary{min-height:42px;padding:7px 18px;border:1px solid #b48ac4;border-radius:6px;background:white;color:var(--purple);font-size:1rem;white-space:nowrap}
.feedback-secondary:hover{background:var(--tint)}
.feedback-status{font-size:0.9375rem;line-height:1.6;color:var(--purple);overflow-wrap:anywhere}
.feedback-status:empty{display:none}
.feedback-status.error{color:#a12732}
.feedback-privacy{display:flex;align-items:flex-start;gap:7px;font-size:0.875rem;line-height:1.7;color:var(--muted)}
.feedback-privacy .icon{width:15px;height:15px;margin-top:4px}
.feedback-thanks{display:grid;justify-items:center;gap:8px;padding:20px 8px;text-align:center}
.feedback-thanks:focus-visible{outline:0}
.feedback-thanks>i .icon{width:40px;height:40px;color:var(--course)}
.feedback-thanks strong{font-size:1.25rem;font-weight:600}
.feedback-thanks p{font-size:0.9375rem;line-height:1.7;color:var(--muted);margin-bottom:6px}
.feedback-card .context-heading h2{font-size:1.125rem}
.feedback-card .empty{padding:22px 8px 10px}
.feedback-item{padding:14px 0;border-bottom:1px solid var(--line);min-width:0}
.feedback-item:last-child{border-bottom:0;padding-bottom:0}
.feedback-meta{display:flex;flex-wrap:wrap;align-items:center;gap:6px}
.feedback-meta .subtle{margin-left:auto;font-variant-numeric:tabular-nums}
.feedback-public-badge{background:var(--tint);color:var(--purple)}
.feedback-text{margin-top:8px;font-size:1.0625rem;line-height:1.75;white-space:pre-wrap;overflow-wrap:anywhere}
.feedback-contact-line{margin-top:6px;font-size:0.9375rem;color:var(--muted);overflow-wrap:anywhere}
.feedback-reply{margin-top:10px;padding:9px 12px;border-left:3px solid var(--purple);border-radius:0 6px 6px 0;background:var(--tint)}
.feedback-reply-meta{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:4px 10px;font-size:0.8125rem;font-weight:600;color:var(--purple)}
.feedback-reply p{margin-top:3px;font-size:1rem;line-height:1.7;white-space:pre-wrap;overflow-wrap:anywhere}
.feedback-admin-tools{display:flex;align-items:center;gap:16px}
.feedback-admin-tools .text-button{display:inline-flex;align-items:center;gap:5px;font-size:0.9375rem}
.feedback-admin-tools .icon{width:14px;height:14px}
.feedback-filters{margin:10px 0 6px}
.feedback-filters button{font-size:0.9375rem;white-space:nowrap;font-variant-numeric:tabular-nums}
.feedback-controls{display:flex;flex-wrap:wrap;align-items:center;gap:6px 18px;margin-top:10px}
.feedback-toggle,.feedback-status-select{display:flex;align-items:center;gap:7px;min-height:40px;font-size:0.9375rem;color:var(--muted);cursor:pointer}
.feedback-toggle input{width:19px;height:19px;accent-color:var(--purple);margin:0}
.feedback-toggle:has(input:checked){color:var(--purple);font-weight:600}
.feedback-status-select select{min-height:36px;padding:3px 6px;border:1px solid var(--line);border-radius:5px;background:white;color:var(--text);font-size:0.9375rem;cursor:pointer}
.feedback-link-button{min-height:32px;padding:2px 0;font-size:0.875rem;font-weight:400;color:var(--muted);text-decoration:underline;text-underline-offset:3px}
.feedback-link-button:hover{color:#a12732}
.feedback-danger{margin-left:auto}
.feedback-reply-form{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:8px;margin-top:8px}
.feedback-reply-form textarea{font-size:1rem}
.feedback-page .page-footer .text-button{margin-left:auto}

.collect-main{max-width:900px}
.collect-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,320px),1fr));gap:16px}
.collect-card{display:flex;flex-direction:column;gap:8px;padding:18px;transition:border-color .12s ease,box-shadow .12s ease}
.collect-card:hover{border-color:#b48ac4;box-shadow:0 4px 14px #641d7912}
.collect-card h2{font-size:1.25rem;font-weight:600;line-height:1.5;overflow-wrap:anywhere}
.collect-card-text{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:0.9375rem;line-height:1.7;color:var(--muted)}
.collect-cover{display:block;width:100%;aspect-ratio:16/9;object-fit:contain;border-radius:6px;background:white}
.collect-cover-large{height:clamp(240px,40vw,380px);aspect-ratio:auto;border:1px solid var(--line);border-radius:10px}
.collect-cover-button{display:block;width:100%;padding:0;border:0;border-radius:10px;background:white;cursor:zoom-in}
.collect-details{display:grid;gap:10px}
.collect-details h2{font-size:1.125rem;font-weight:600}
.collect-gallery{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,150px),1fr));gap:12px}
.collect-detail-image{display:grid;gap:8px;min-width:0;padding:10px;border:1px solid var(--line);border-radius:8px;background:white;text-align:left;color:var(--text);cursor:zoom-in}
.collect-detail-image img{display:block;width:100%;height:200px;object-fit:contain}
.collect-detail-image span{overflow-wrap:anywhere}
.collect-gallery-editor{display:grid;gap:12px;margin:12px 0}
.collect-gallery-item{display:flex;flex-wrap:wrap;align-items:center;gap:12px;padding:12px;border:1px solid var(--line);border-radius:8px}
.collect-gallery-item>img{width:84px;height:100px;object-fit:contain}
.collect-gallery-item>.feedback-field{flex:1 1 180px;min-width:0;margin:0}
.collect-gallery-item .collect-order-actions{flex-wrap:wrap}
.collect-order-form{gap:16px}
#collect-order-rows{display:grid;gap:12px}
.collect-order-row{min-width:0;margin:0;padding:12px;border:1px solid var(--line);border-radius:10px;background:#fafbfc}
.collect-order-row legend{padding:0 6px;color:var(--purple);font-weight:600}
.collect-order-fields{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr) minmax(80px,.7fr) auto;align-items:end;gap:12px}
.collect-order-fields>.feedback-field{margin:0;min-width:0}
.collect-order-fields>button{min-height:44px}
.collect-order-fields input[type=text]{width:100%;min-width:0}
.collect-order-footer{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px}
.collect-order-footer strong{color:var(--purple)}
.collect-order-receipt{display:grid;gap:8px;margin:8px 0}
.collect-order-receipt ul{display:grid;gap:8px;margin:0;padding:0;list-style:none}
.collect-order-receipt li{display:flex;align-items:baseline;justify-content:space-between;gap:12px;overflow-wrap:anywhere}
.collect-order-receipt li strong{flex-shrink:0;color:var(--purple)}
.collect-legacy-notice{padding:10px 12px;background:var(--tint);border-radius:6px;line-height:1.6;overflow-wrap:anywhere}
@media(max-width:600px){.collect-order-fields{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.collect-order-fields>.feedback-field:first-child{grid-column:1/-1}.collect-order-fields>button{justify-self:start}}
.collect-note{font-size:1rem;font-weight:600;color:var(--purple);overflow-wrap:anywhere}
.collect-deadline{display:flex;align-items:flex-start;gap:6px;font-size:0.9375rem;line-height:1.6;color:var(--muted);font-variant-numeric:tabular-nums}
.collect-deadline .icon{width:16px;height:16px;margin-top:3px}
.collect-cta{display:inline-flex;align-items:center;gap:5px;margin-top:auto;padding-top:6px;font-size:1rem;font-weight:600;color:var(--purple)}
.collect-cta .icon{width:16px;height:16px}
.collect-past>summary{min-height:44px;display:flex;align-items:center;font-size:1rem;font-weight:500;color:var(--muted);cursor:pointer;width:fit-content}
.collect-past>summary:hover{color:var(--purple)}
.collect-past[open]>summary{margin-bottom:6px}
.collect-description{margin-top:10px;white-space:pre-wrap;overflow-wrap:anywhere}
.collect-facts{display:grid;gap:8px}
.collect-question{display:grid;gap:8px;min-width:0;padding-bottom:18px;border-bottom:1px solid var(--line)}
.collect-question h3,.collect-result h3{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 10px;font-size:1.125rem;font-weight:600;line-height:1.5}
.collect-text-title{font-size:1.125rem;font-weight:600}
.collect-options{display:flex;flex-wrap:wrap;gap:8px}
.collect-options.with-images{display:grid;grid-template-columns:repeat(auto-fill,minmax(132px,1fr));gap:12px}
.collect-option{display:grid;gap:2px;justify-items:center;min-width:0}
.collect-pick{position:relative;display:flex;align-items:center;justify-content:center;gap:8px;width:100%;min-height:44px;padding:8px 16px;border:1px solid var(--line);border-radius:22px;background:white;font-size:1rem;color:var(--text)}
.with-images .collect-pick{flex-direction:column;padding:8px;border-radius:10px}
.collect-pick img{display:block;width:100%;aspect-ratio:1;object-fit:cover;border-radius:6px;background:#f2f3f5}
.collect-pick:hover:not(:disabled){border-color:#b48ac4}
.collect-pick:disabled{cursor:default;opacity:.75}
.collect-option.selected .collect-pick{border-color:var(--purple);background:var(--tint);color:var(--purple);font-weight:600;box-shadow:inset 0 0 0 1px var(--purple)}
.collect-option-name{overflow-wrap:anywhere;text-align:center}
.collect-rank{padding:1px 8px;border-radius:10px;background:var(--purple);color:white;font-size:0.8125rem;font-weight:600;white-space:nowrap}
.with-images .collect-rank{position:absolute;top:12px;left:12px}
.collect-order{margin:4px 0 0;padding:0;list-style:none;display:grid;gap:6px}
.collect-order li{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:5px 6px 5px 12px;border:1px solid var(--line);border-radius:6px;background:#fafbfc;font-size:1rem}
.collect-order strong{display:inline-block;min-width:4.5em;color:var(--purple);font-weight:600}
.collect-order-actions{display:inline-flex;align-items:center;gap:6px;flex-shrink:0}
.collect-order-actions .icon-button{width:36px;height:36px}
.collect-identity{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr));gap:14px}
.collect-page select,.collect-page input[type=datetime-local],.collect-page input[type=number]{width:100%;min-width:0;min-height:46px;padding:9px 12px;border:1px solid #cdd0d5;border-radius:6px;background:white;color:var(--text);font-size:1.0625rem;font-weight:400}
.collect-result{padding:14px 0;border-bottom:1px solid var(--line)}
.collect-result:last-child{border-bottom:0;padding-bottom:0}
.collect-sort{margin:10px 0;gap:3px}
.collect-sort button{flex:1;min-height:38px;font-size:0.9375rem;color:var(--muted);border-radius:4px}
.collect-weights{display:grid;gap:8px;margin-bottom:10px;padding:10px 12px;border-radius:6px;background:#fafbfc;border:1px solid var(--line)}
.collect-weight-inputs{display:flex;flex-wrap:wrap;align-items:end;gap:8px 12px}
.collect-weight-inputs label{display:grid;gap:3px;font-size:0.8125rem;color:var(--muted)}
.collect-page .collect-weight-inputs input{width:4.5rem;min-height:38px;padding:4px 8px;font-size:1rem;font-variant-numeric:tabular-nums}
.collect-bars{margin:8px 0 0;padding:0;list-style:none;display:grid;gap:10px}
.collect-bar-label{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:2px 10px;font-size:1rem}
.collect-bar-label>span:first-child{display:inline-flex;align-items:center;gap:8px;font-weight:500;overflow-wrap:anywhere}
.collect-bar-label b{display:inline-grid;place-items:center;min-width:1.5rem;height:1.5rem;border-radius:50%;background:#f2f3f5;color:var(--muted);font-size:0.8125rem;font-weight:600;font-variant-numeric:tabular-nums}
.collect-bars li:first-child b{background:var(--purple);color:white}
.collect-bar-label .subtle{font-variant-numeric:tabular-nums}
.collect-bar-label .subtle strong{color:var(--purple)}
.collect-bar{height:8px;margin-top:5px;border-radius:4px;background:#f2f3f5;overflow:hidden}
.collect-bar i{display:block;width:0;height:100%;border-radius:4px;background:var(--purple);transition:width .25s ease}
.collect-toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:10px 14px}
.collect-toolbar:empty{display:none}
.collect-toolbar .text-button{margin-left:auto}
.collect-toolbar .icon,.collect-actions .icon,.collect-upload .icon,.collect-fieldset .feedback-secondary .icon{width:16px;height:16px}
.collect-toolbar button,.collect-actions button,.collect-upload,.collect-fieldset .feedback-secondary,#editor>.feedback-secondary{display:inline-flex;align-items:center;justify-content:center;gap:6px}
.collect-actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:10px}
.collect-actions .feedback-secondary{min-height:38px;padding:5px 12px;font-size:0.9375rem}
.collect-reuse{flex:1 1 220px;max-width:340px}
.collect-page .collect-reuse select{min-height:38px;padding:5px 10px;font-size:0.9375rem}
.collect-bulk{display:grid;gap:8px;padding:10px;border:1px dashed #b4b8bf;border-radius:6px;background:white}
.collect-fieldset .collect-actions{margin-top:0}
.collect-settings{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,200px),1fr));gap:14px}
.collect-fieldset{display:grid;gap:12px;margin:0;padding:14px;border:1px solid var(--line);border-radius:8px;min-width:0;background:#fafbfc}
.collect-fieldset legend{padding:0 6px;font-size:1rem;font-weight:600;color:var(--purple)}
.collect-checks{display:flex;flex-wrap:wrap;gap:4px 18px}
.collect-question-head{display:flex;flex-wrap:wrap;align-items:end;justify-content:space-between;gap:10px}
.collect-question-head .feedback-field{flex:1 1 200px;max-width:280px}
.collect-max{max-width:200px}
.collect-option-rows{display:grid;gap:8px}
.collect-option-row{display:flex;flex-wrap:wrap;align-items:center;gap:8px 10px;padding:8px;border:1px solid var(--line);border-radius:6px;background:white}
.collect-option-row.retired{background:#f2f3f5}
.collect-option-row>input[type=text]{flex:1 1 150px;min-width:0;min-height:42px;padding:8px 10px;border:1px solid #cdd0d5;border-radius:6px;font-size:1rem;color:var(--text)}
.collect-option-row .collect-order-actions{margin-left:auto}
.collect-image-field{display:inline-flex;flex-wrap:wrap;align-items:center;gap:8px 10px;font-weight:400}
.collect-image-field img{width:44px;height:44px;object-fit:cover;border:1px solid var(--line);border-radius:6px}
.collect-upload{min-height:38px;padding:5px 12px;font-size:0.9375rem;cursor:pointer}
.collect-upload:focus-within{outline:3px solid #aa73bd;outline-offset:3px}
.collect-answers{display:grid;gap:4px;margin:8px 0 2px;font-size:1rem}
.collect-answers div{display:grid;grid-template-columns:minmax(5em,30%) minmax(0,1fr);gap:10px}
.collect-answers dt{color:var(--muted);overflow-wrap:anywhere}
.collect-answers dd{margin:0;overflow-wrap:anywhere}
.collect-lists{grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr))}
.collect-lists>p,.collect-lists>div{grid-column:1 / -1}
.feedback-main>*,#collect-view>*{min-width:0;max-width:100%}
.collect-cross-scroll{margin-top:10px;max-width:100%;overflow-x:auto;border:1px solid var(--line);border-radius:6px}
.collect-cross{border-collapse:collapse;width:100%;font-size:0.9375rem;font-variant-numeric:tabular-nums}
.collect-cross th,.collect-cross td{padding:7px 10px;border-bottom:1px solid var(--line);text-align:right;white-space:nowrap}
.collect-cross th:first-child{position:sticky;left:0;text-align:left;background:#fafbfc;font-weight:500}
.collect-cross thead th{background:#fafbfc;font-weight:600;color:var(--muted)}
.collect-cross td.zero{color:#c9cdd4}
.collect-cross td.sum,.collect-cross tfoot td,.collect-cross tfoot th{font-weight:600;color:var(--purple)}
.collect-cross tfoot tr>*{border-bottom:0;border-top:2px solid var(--line)}
.collect-page .collect-reuse{display:flex;align-items:center;gap:6px;font-size:0.9375rem;color:var(--muted)}
.collect-extra{margin:0}
.collect-templates{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr));gap:12px;margin-top:12px}
.collect-template{display:grid;gap:6px;align-content:start;padding:16px;border:1px solid var(--line);border-radius:10px;background:white;text-align:left}
.collect-template:hover{border-color:var(--purple);background:var(--tint)}
.collect-template strong{font-size:1.125rem;font-weight:600;color:var(--purple)}
.collect-template span{font-size:0.9375rem;line-height:1.65;color:var(--muted)}
.collect-receipt{display:grid;gap:10px;justify-items:start}
.collect-receipt-head{display:flex;align-items:center;gap:8px;font-size:1.25rem}
.collect-receipt-head .icon{width:28px;height:28px;color:var(--course)}
.collect-more{justify-self:start;min-height:40px;font-size:0.9375rem;text-decoration:underline;text-underline-offset:3px}
.collect-save-row .collect-actions{margin-top:0}
.collect-save-row .feedback-secondary{min-height:46px;padding:9px 18px;font-size:1.0625rem}
.collect-banner{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:4px 12px;min-height:44px;margin-bottom:16px;padding:7px 12px;border:1px solid var(--line);border-radius:8px;background:var(--surface);font-size:.9375rem}
.collect-banner b{margin-right:8px;color:#316a59}
.collect-banner span{min-width:0;overflow-wrap:anywhere}
.collect-banner em{display:inline-flex;align-items:center;gap:5px;font-style:normal;font-weight:600;color:var(--purple);white-space:nowrap}
.collect-banner em .icon{width:16px;height:16px}
.collect-banner:hover{border-color:var(--course)}
.admin-tile strong{display:flex;align-items:center;gap:8px}
.admin-tile b{font-size:1.25rem;font-weight:600;font-variant-numeric:tabular-nums}
.admin-tile .icon{width:18px;height:18px}
.event-admin{display:grid;gap:14px}
.event-admin h2{margin:0}
.event-admin select,.event-admin input[type=datetime-local]{width:100%;min-width:0;min-height:46px;padding:9px 12px;border:1px solid #cdd0d5;border-radius:6px;background:white;color:var(--text);font-size:1.0625rem}
.event-admin-open{display:inline-flex;align-items:center;gap:6px;margin-bottom:12px;min-height:38px;padding:5px 12px;font-size:0.9375rem}
.event-admin-open .icon{width:16px;height:16px}
.detail-signup{margin:-8px 0 18px}
#event-detail>.feedback-status{margin-bottom:8px}
.collect-manage-item{display:grid;gap:8px}
.collect-manage-main{display:grid;gap:5px;width:100%;padding:2px 0;text-align:left;border-radius:4px}
.collect-manage-main strong{font-size:1.0625rem;font-weight:600;overflow-wrap:anywhere}
.collect-manage-main:hover strong{color:var(--purple)}
.collect-manage-main .subtle{margin-left:0}
.collect-manage-actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.collect-manage-actions .feedback-secondary{display:inline-flex;align-items:center;gap:5px;min-height:36px;padding:4px 12px;font-size:0.9375rem}
.collect-manage-actions .icon{width:15px;height:15px}
.collect-menu{position:relative}
.collect-menu summary{list-style:none;cursor:pointer}
.collect-menu summary::-webkit-details-marker{display:none}
.collect-menu[open]>div{position:absolute;right:0;top:calc(100% + 4px);z-index:5;display:grid;min-width:11rem;padding:4px;border:1px solid var(--line);border-radius:8px;background:white;box-shadow:0 8px 24px #1f23291f}
.collect-menu button{display:flex;align-items:center;gap:8px;min-height:40px;padding:6px 10px;border-radius:5px;font-size:0.9375rem;text-align:left;white-space:nowrap}
.collect-menu button:hover{background:var(--tint)}
.collect-menu .feedback-danger{margin-left:0;color:#a12732}
.collect-reference{display:grid;justify-items:start;gap:3px;width:fit-content;max-width:100%;padding:0}
.collect-reference img{display:block;max-width:min(100%,360px);max-height:200px;border:1px solid var(--line);border-radius:6px}
.collect-reference span{font-size:0.8125rem;color:var(--muted);text-decoration:underline;text-underline-offset:3px}
.collect-classes{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px}
.collect-classes span{display:inline-flex;align-items:baseline;gap:6px;padding:3px 10px;border-radius:14px;background:var(--tint);color:var(--purple);font-weight:600;font-variant-numeric:tabular-nums}
.collect-classes b{font-weight:400;color:var(--muted)}
.collect-classes .zero{background:#f2f3f5;color:var(--subtle)}
#collect-chosen{flex:1 1 0;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
/* Keep intrinsic text widths from expanding the form after multiple selections. */
#collect-view,#collect-form,.collect-question{min-width:0;grid-template-columns:minmax(0,1fr)}
.collect-submit-bar{min-width:0}
.collect-submit-bar .feedback-primary{flex:0 0 auto;white-space:nowrap}
.collect-order li>span:first-child{min-width:0;overflow-wrap:anywhere}
.collect-fixed{margin:0}
.collect-fixed b{display:flex;align-items:center;min-height:46px;padding:0 12px;border-radius:6px;background:var(--tint);color:var(--purple);font-size:1.0625rem}
.collect-image-dialog{width:min(900px,calc(100% - 24px))}
.collect-image-dialog img{display:block;width:100%;max-height:calc(90dvh - 70px);object-fit:contain;background:#f2f3f5}

@media(max-width:1179px){:root{--sidebar:184px}
.workspace-body{grid-template-columns:minmax(0,1fr)}
main{padding:20px 20px 0}
.context{grid-template-columns:minmax(0,1fr)}
.search{max-width:240px;height:42px}
}

@media(max-width:940px){
.home-overview{grid-template-columns:minmax(0,1fr);gap:10px}
}

@media(max-width:760px){
.sidebar{display:none}
.shell{margin-left:0}
main{padding:12px 10px calc(76px + env(safe-area-inset-bottom))}
.home-heading{margin-bottom:8px}
.home-heading h1{font-size:1.375rem}
.home-overview,.collect-banner{margin-bottom:12px}
.home-course{padding:12px 14px}
.home-activities{padding:10px 12px 5px}
.home-course-name h3{font-size:1.3125rem}
.workspace-body,.context{gap:12px}
.panel{border-radius:8px}
.panel-heading{padding:12px 12px 0}
.section-title{gap:6px}
.section-title h2{font-size:1.1875rem}
.title-icon .icon{width:18px;height:18px}
.count{font-size:0.8125rem}
.calendar-toolbar{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;padding:10px 12px 0}
.month-controls{grid-column:1 / -1;width:100%;min-width:0;gap:6px}
.month-title{flex:1;min-width:0;margin:0;padding-left:0;font-size:1.375rem;white-space:normal;overflow-wrap:anywhere}
.month-controls .icon-button{width:40px;height:40px;flex-shrink:0}
.month-controls .icon-button .icon{width:18px;height:18px}
.today-button{min-height:40px;margin-left:0;font-size:1rem;flex-shrink:0}
.view-switch{grid-column:2;grid-row:2;padding:2px}
.view-switch button{min-height:38px;font-size:0.9375rem;padding:4px 7px;gap:4px}
.search{grid-column:1;grid-row:2;width:100%;max-width:none;height:auto;min-height:2.625rem;padding:0 8px}
.search input{font-size:1rem}
.filters{grid-template-columns:repeat(3,minmax(0,1fr));padding:6px 12px;gap:6px}
.type-filter,.credit-filter{grid-template-columns:minmax(0,1fr);gap:4px}
.type-filter select,.credit-filter select{min-height:40px}
.course-picker{margin:0 12px 8px}
.course-picker summary{padding:6px 9px;gap:8px;min-height:44px;font-size:1rem}
.course-selector{padding:0 8px 8px}
.course-selector-heading{gap:5px}
.class-filters{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(4rem,100%),1fr));gap:6px}
.class-choice{display:block;padding:0 2px}
.class-option{justify-content:center;gap:4px;min-height:44px}
.class-option input{margin:0}
.class-option strong{text-align:center}
.class-option small,.class-calendar-link{display:none}
.weekdays{height:2.125rem}
.day-cell{height:auto;padding:2px;min-height:3.625rem}
.month-grid.compact-five-weeks .day-cell:nth-child(n+36){display:none}
.calendar-page--old.calendar-page--run,.calendar-page--new.calendar-page--run{transition-duration:.22s}
.day-button{width:100%;height:100%;margin:0;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:2px;border-radius:5px;font-size:1.125rem;line-height:1}
.day-number{display:grid;place-items:center;width:1.75rem;height:1.75rem;border-radius:50%;flex-shrink:0;max-width:100%}
.day-cell.today .day-button{background:transparent;color:var(--purple)}
.day-cell.today .day-number{background:var(--purple);color:white}
.day-button:focus-visible{outline-offset:-2px}
.day-markers{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:1px 3px;min-height:0.875rem;max-width:100%;font-size:0.75rem;font-weight:600;font-variant-numeric:tabular-nums;line-height:1.1}
.day-marker{display:inline-flex;align-items:center;gap:2px}
.day-marker::before{content:'';width:4px;height:4px;border-radius:50%;background:currentColor;flex-shrink:0}
.activity-marker{color:var(--purple)}
.course-marker{color:var(--course)}
.exam-marker{color:var(--exam)}
.day-events{display:none}
.calendar-footer{padding:5px 12px;font-size:0.8125rem;gap:2px 8px}
.calendar-footer .text-button{font-size:0.875rem}
.calendar-tip{margin-left:2px}
.calendar-footer :is(.course-dot,.exam-dot){margin-left:3px}
.data-notice{margin:0 12px 9px;font-size:0.8125rem}
.upcoming-panel{padding:14px 12px}
.schedule-row{grid-template-columns:3.25rem minmax(0,1fr) 12px;gap:9px;padding:11px 2px}
.schedule-group-heading{font-size:1rem;line-height:1.5rem}
.list-view{padding:0 12px 10px;min-height:160px}
.services-card{padding:12px}
.page-footer{padding:14px 0 0;font-size:0.8125rem;gap:6px 12px}
.mobile-nav{position:fixed;bottom:0;left:0;right:0;z-index:20;display:flex;background:#fffffff5;border-top:1px solid var(--line);padding:5px 8px calc(5px + env(safe-area-inset-bottom))}
.mobile-nav button,.mobile-nav a{display:flex;flex-direction:column;align-items:center;flex:1;min-height:48px;justify-content:center;font-size:0.875rem;gap:2px;padding:0 4px;color:var(--muted)}
.mobile-nav .active{color:var(--purple);font-weight:600}
.mobile-nav .icon{width:20px;height:20px}
dialog{width:calc(100% - 20px);max-height:calc(100dvh - 24px);border-radius:10px}
.month-picker-dialog{width:min(380px,calc(100% - 20px))}
.month-picker-form{padding:16px 14px}
.dialog-top{padding:10px 14px}
#event-detail{padding:14px}
#detail-title{font-size:1.5rem;margin:8px 0 14px}
.detail-meta{gap:12px}
.detail-row{font-size:1.125rem;gap:9px;line-height:1.65}
.detail-description{padding-top:14px;margin-top:16px;font-size:1.125rem;line-height:1.75}
.dialog-footer{padding:12px 14px}
.registration-editor{padding:12px}
.registration-drop{padding:10px}
.feedback-main{gap:12px}
.feedback-hero{padding:4px 2px 0}
.feedback-hero h1{font-size:1.5rem;margin:2px 0 6px}
.feedback-hero p{font-size:1rem}
.feedback-card{padding:14px 12px}
.feedback-chips span{padding:6px 12px}
.feedback-primary{flex:1;max-width:14rem}
.feedback-filters button{font-size:0.875rem;padding:0 2px}
.feedback-reply-form{grid-template-columns:minmax(0,1fr)}
.feedback-reply-form .feedback-secondary{justify-self:end}
.collect-card{padding:14px 12px}
.collect-options.with-images{grid-template-columns:repeat(auto-fill,minmax(104px,1fr));gap:8px}
.collect-fieldset{padding:12px 10px}
.collect-answers div{grid-template-columns:minmax(0,1fr);gap:0}
.services-full .service-block{padding:6px 12px 14px}
.admin-bar{flex-wrap:nowrap;gap:14px;padding:6px 10px;overflow-x:auto;white-space:nowrap;font-size:0.875rem;scrollbar-width:none}
.admin-bar::-webkit-scrollbar{display:none}
.admin-bar span{font-size:0;gap:0}
.admin-bar span .icon{width:16px;height:16px}
.collect-extra{white-space:normal;flex-wrap:wrap}
.collect-extra span{font-size:0.875rem;gap:6px}
[data-admin-home] .collect-templates{gap:0;margin-top:4px}
.admin-tile{grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:2px 10px;padding:10px 2px;border:0;border-bottom:1px solid var(--line);border-radius:0}
.admin-tile:last-child{border-bottom:0}
.admin-tile strong{font-size:1rem}
.admin-tile b{font-size:1rem;color:var(--purple)}
.admin-tile span{display:none}
.feedback-hero h1{font-size:1.375rem}
.collect-toolbar{gap:6px 12px}
.collect-toolbar .feedback-primary{flex:1;max-width:none;min-height:42px;padding:6px 14px}
.collect-templates{grid-template-columns:minmax(0,1fr);gap:8px}
.collect-template{padding:11px 12px;gap:2px}
.collect-template strong{font-size:1.0625rem}
.collect-template span{font-size:0.875rem;line-height:1.5}
.collect-page .feedback-card{overflow:visible}
.collect-submit-bar,.collect-save-row{position:sticky;bottom:calc(58px + env(safe-area-inset-bottom));z-index:4;margin:0 -12px;padding:8px 12px;border-top:1px solid var(--line);background:#fffffff5}
.collect-save-row .feedback-secondary{padding:9px 12px}
.service-open,.services-full .service-open{margin-left:0}

}

@media(prefers-reduced-motion:reduce){*,*::before,*::after,dialog::backdrop{scroll-behavior:auto!important;animation:none!important;transition:none!important}
.calendar-page-stage{perspective:none}
}

/* Clothing orders: grouped form sections, quiet surfaces, one primary action. */
.order-template{display:grid;gap:20px}
.order-template .feedback-hero{padding:0}
.order-template .feedback-hero h1{color:var(--text);letter-spacing:0}
.collect-product-overview{display:grid;grid-template-columns:200px minmax(0,1fr);gap:24px;padding:20px}
.collect-product-overview .collect-cover-large{height:220px;border:0}
.collect-product-copy{display:grid;align-content:center;gap:12px;min-width:0}
.collect-template-label{font-size:.8125rem;color:var(--purple);font-weight:500}
.collect-product-copy .collect-note{font-size:1.125rem;font-weight:600}
.collect-product-copy .subtle{line-height:1.7;font-size:.9375rem}
.collect-product-details>summary,.collect-color-catalog>summary{cursor:pointer;min-height:28px;line-height:1.7;font-size:.9375rem;font-weight:500;color:var(--text)}
.collect-product-details-body{display:grid;gap:20px;padding-top:16px}
.collect-product-details-body .collect-description{margin:0;font-size:.9375rem;line-height:1.8;color:var(--muted)}
.order-template .feedback-card{padding:24px}
.order-template form{gap:24px}
.order-template .collect-question{gap:16px;padding-bottom:24px}
.collect-section-heading{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px}
.collect-section-heading .text-button{display:inline-flex;align-items:center;gap:6px;min-height:36px;font-size:.875rem}
.order-template .collect-question h3,.order-template .collect-order-receipt h3{font-size:1.0625rem;font-weight:600}
.order-template .subtle{font-size:.875rem;line-height:1.7}
.order-template .feedback-field{font-size:.875rem;font-weight:500;gap:8px}
.order-template .feedback-field input,.order-template .feedback-field select{font-size:1rem;min-height:44px;line-height:1.5;padding:10px 12px;border-color:#d0d3d8}
.collect-order-row.has-custom .collect-order-fields{grid-template-columns:minmax(0,1.7fr) minmax(0,1fr) minmax(0,1fr) 80px auto}
.order-template .collect-order-row{padding:16px;background:#fafbfc;border-radius:8px}
.order-template .collect-order-row legend{color:var(--muted);font-size:.875rem;font-weight:500}
.order-template .feedback-secondary{border-color:#d0d3d8;color:var(--text);font-size:.9375rem}
.order-template .feedback-secondary:hover{border-color:var(--purple);background:var(--tint);color:var(--purple)}
.order-template .collect-order-footer{padding-top:4px}
.order-template .collect-order-footer strong{font-size:.9375rem;font-weight:500}
.order-template .collect-color-catalog{border:1px solid var(--line);border-radius:8px;padding:12px 14px;background:white}
.collect-color-catalog[open]>.collect-options{margin-top:16px}
.order-template .collect-pick img{object-fit:contain;background:white}
.order-template .collect-pick{font-size:.875rem;background:white;box-shadow:none}
.order-template .collect-pick small{font-weight:400;color:var(--purple)}
.collect-required{color:#d83931;font-weight:400}
.collect-row-error{margin-top:10px;color:#a12732;font-size:.875rem;line-height:1.6}
.order-template [aria-invalid=true]{border-color:#d83931!important;background:#fffafa}
.order-template .collect-submit-bar{padding-top:16px;border-top:1px solid var(--line)}
.order-template .collect-submit-bar .feedback-primary{white-space:nowrap}
.collect-template-info{padding:14px 16px;background:var(--tint);border-radius:8px;border:1px solid #e5d8eb}
.collect-template-info strong{color:var(--purple);font-size:1rem}
.collect-template-info p{margin-top:4px;color:var(--muted);font-size:.875rem;line-height:1.7}
.collect-catalog-editor>.feedback-field{margin-bottom:16px}
.collect-catalog-editor>.feedback-secondary{margin-top:12px}
.collect-catalog-editor .collect-option-row>.feedback-field{flex:1;min-width:100px}
@media(max-width:600px){
 .order-template{gap:16px}
 .collect-product-overview{grid-template-columns:96px minmax(0,1fr);padding:16px;gap:16px}
 .collect-product-overview .collect-cover-large{height:150px}
 .collect-product-copy{gap:8px}
 .collect-product-copy .collect-note{font-size:1rem}
 .collect-product-copy .subtle{grid-column:1/-1}
 .order-template .feedback-card{padding:16px}
 .collect-order-row.has-custom .collect-order-fields,.collect-order-fields{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
 .order-template .collect-order-row{padding:12px}
 .order-template .collect-submit-bar{margin:0 -16px;padding:12px 16px}
 .order-template .collect-submit-bar .feedback-primary{font-size:1rem;padding:10px 16px}
 .order-template .collect-order-footer>.feedback-secondary{width:100%;white-space:normal}
 .order-template .collect-order-footer strong{margin-left:auto}
}

/* Contact recovery stays separate from the unsaved order form. */
.collect-contact-control{display:flex;align-items:center;gap:8px;min-width:0}
.collect-contact-control input{flex:1 1 0;min-width:0}
.collect-contact-control .feedback-secondary{flex:0 0 auto;white-space:nowrap;min-height:44px;padding:8px 12px}
.collect-lookup-hint{color:var(--muted);font-size:.8125rem;line-height:1.6}
.collect-lookup-again{justify-self:start;min-height:40px;font-size:.875rem;color:var(--purple)}
.collect-lookup-dialog{width:min(600px,calc(100% - 24px));padding:0;border:1px solid var(--line);border-radius:12px;color:var(--text);max-height:calc(100dvh - 24px);overflow:auto}
.collect-lookup-dialog .dialog-top{position:sticky;top:0;background:white;z-index:1}
.collect-lookup-dialog h2{font-size:1.125rem;margin:0}
.collect-lookup-dialog h3{font-size:1rem;margin:0}
.collect-lookup-body{padding:20px;display:grid;grid-template-columns:minmax(0,1fr);gap:16px}
#collect-lookup-form{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.3fr) auto;align-items:end;gap:12px;min-width:0}
#collect-lookup-form .feedback-primary{min-height:46px;white-space:nowrap}
#lookup-results{display:grid;grid-template-columns:minmax(0,1fr);gap:12px}
.collect-lookup-record{min-width:0;display:grid;grid-template-columns:minmax(0,1fr);gap:12px;padding:16px;border:1px solid var(--line);border-radius:8px;background:#fafbfc}
.collect-lookup-record .feedback-primary{justify-self:start;white-space:nowrap}
.collect-lookup-record .subtle{font-size:.875rem;line-height:1.7}
.collect-lookup-record .collect-answers{margin:0}
.order-template input[readonly]{background:#f5f6f8;color:var(--muted)}
@media(max-width:600px){
 .collect-lookup-body{padding:16px}
 #collect-lookup-form{grid-template-columns:minmax(0,1fr)}
 #collect-lookup-form .feedback-primary{justify-self:end;min-width:96px}
 .collect-lookup-record{padding:12px}
 .collect-contact-control .feedback-secondary{font-size:.875rem;padding:8px 10px}
}
