:root{color-scheme:light;--paper:#f7f8f3;--ink:#202620;--muted:#586259;--line:#d5dacf;--green:#d9f476;--font:Inter,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;--mono:"IBM Plex Mono",Consolas,"SFMono-Regular",monospace}
*{box-sizing:border-box}
body{margin:0;font:1rem/1.55 var(--font);color:var(--ink);background:var(--paper);min-height:100vh;-webkit-font-smoothing:antialiased}
button,input,select{font:inherit;color:inherit}
button,a,input,select,summary{-webkit-tap-highlight-color:transparent}
button,a,summary{touch-action:manipulation}
button{cursor:pointer}
button{border:0;background:none}
button:focus-visible,a:focus-visible,summary:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #507c28;outline-offset:4px}
a{color:inherit;text-decoration:none}
.site-head{border-bottom:1px solid var(--line);background:#fcfcf8}
.head-inner,.shell{width:min(calc(100% - 96px),1104px);margin:auto}
.head-inner{height:73px;display:flex;align-items:center;gap:15px}
.brand{display:inline-flex;align-items:center;gap:10px}
.brand strong{font-size:1.52rem;letter-spacing:-.075em;font-weight:850}
.brand-mark{width:36px;height:36px;border-radius:10px;background:var(--green);display:inline-block;position:relative;overflow:hidden}
.brand-mark:before,.brand-mark:after,.brand-mark i,.brand-mark b{content:"";position:absolute;background:#222b21;border-radius:1px;transform:skewY(-16deg)}
.brand-mark:before{left:8px;top:12px;width:5px;height:16px}
.brand-mark:after{left:15px;top:8px;width:5px;height:18px}
.brand-mark i{left:22px;top:11px;width:5px;height:13px}
.brand-mark b{left:23px;top:6px;width:4px;height:3px}
.brand-sub{border-left:1px solid #c9cec3;padding-left:16px;color:#505b50;font-size:.9rem;letter-spacing:.03em}
.help{margin-left:auto;display:flex;align-items:center;gap:7px;font-size:.9rem;padding:8px 0 8px 10px}
.help:hover,.link-btn:hover,.text-action:hover{text-decoration:underline;text-underline-offset:4px}
.info-icon{font:italic bold .76rem/15px Georgia;text-align:center;border:1.4px solid currentColor;width:16px;height:16px;border-radius:50%}
.shell{padding-top:clamp(24px,4.1vh,46px);padding-bottom:18px}
.stepbar{display:flex;align-items:center;flex-wrap:wrap;gap:10px 18px}
.back-control{min-height:44px;padding:8px 15px;border:1px solid #aebca3;border-radius:9px;background:#fdfef9;color:#30452c;font-size:.92rem;font-weight:650;white-space:nowrap}
.back-control:hover{background:#eaf3d9;border-color:#7a8f6d}
.back-control:active{background:#dfebc9}
#steps{display:flex;align-items:center;gap:10px;font-size:.82rem;color:#667063}
.step{display:inline-flex;align-items:center;gap:7px;padding:0;font-size:inherit;white-space:nowrap}
.step[aria-current]{color:#293b22;font-weight:750}
.step i{width:17px;height:17px;border:1px solid #a6b0a1;border-radius:50%;display:grid;place-items:center;font:normal .65rem/1 var(--mono)}
.step[aria-current] i,.step.done i{background:#d9ef96;border-color:#a1bb66;color:#273620}
.step-line{width:27px;height:1px;background:#c5ccbf}
.lead{display:flex;justify-content:space-between;align-items:center;gap:24px;margin:clamp(26px,4vh,50px) 0 clamp(25px,4vh,44px)}
h1,h2,h3,p{margin:0}
h1{font-size:clamp(2.55rem,5.3vw,4.45rem);line-height:1.17;letter-spacing:-.075em;font-weight:850}
h1 .mark{position:relative;z-index:0;white-space:nowrap}
h1 .mark:after{content:"";position:absolute;left:2%;right:-1%;bottom:.045em;height:.19em;background:var(--green);transform:rotate(-2deg);z-index:-1;border-radius:60% 16% 30% 10%}
.subtitle{font-size:1.03rem;color:var(--muted);margin-top:13px}
.clock-ticket{width:196px;flex:none;border:1px solid #cbd1c4;background:#fdfdf9;border-radius:8px;display:flex;align-items:center;transform:rotate(2deg);box-shadow:2px 3px 0 #e4e8dd;overflow:hidden}
.clock-ticket .stub{align-self:stretch;width:17px;border-right:1px dashed #a8b299;background:repeating-linear-gradient(0deg,transparent 0 5px,#c2d49b 5px 6px),#e4edcd}
.ticket-body{padding:10px 15px;flex:1}
.clock-caption,.ticket-date{font-size:.76rem;line-height:1.3;color:#54604f}
.clock-caption{display:flex;align-items:center;gap:6px}
.clock-caption:before{content:"";width:6px;height:6px;background:#779435;border-radius:50%}
.ticket-time{font:650 2.5rem/1.19 var(--mono);letter-spacing:-.065em;font-variant-numeric:tabular-nums}
.ticket-date{margin-top:2px}
.cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:19px}
.mode-card{--cardTint:#e5f0c3;--cardStrong:#c8dd94;display:flex;flex-direction:column;background:#fdfef9;border:1px solid #cdd5c4;border-radius:16px;padding:0;text-align:left;overflow:hidden;min-width:0;transition:transform .18s,box-shadow .18s,border-color .18s}
.mode-card.long,.mode-mini.long{--cardTint:#e9e6f4;--cardStrong:#ccc4e6}
.mode-card.range,.mode-mini.range{--cardTint:#f4e6d6;--cardStrong:#e6c4a5}
.mode-card:hover{transform:translateY(-4px);border-color:#828d7c;box-shadow:0 6px 0 #2631190c}
.art{width:100%;position:relative;isolation:isolate;background-color:var(--cardTint);background-image:radial-gradient(#58664b36 .75px,transparent .85px);background-size:8px 8px;overflow:hidden}
.mode-card .art{height:clamp(150px,21.5vh,228px);border-bottom:1px solid #00000010}
.scene{position:absolute;inset:0;height:96%;width:auto;max-width:100%;aspect-ratio:1;margin:auto;background:url("objects.webp") no-repeat;background-size:300% 100%;mix-blend-mode:multiply;pointer-events:none}
.now .scene{background-position:left center}.long .scene{background-position:center}.range .scene{background-position:right center}
.card-copy{width:100%;display:block;padding:22px 23px 26px}
.card-title-row{display:flex;align-items:center;justify-content:space-between;gap:5px}
.card-title{font-size:clamp(1.3rem,2vw,1.65rem);font-weight:800;letter-spacing:-.055em}
.plus{width:28px;height:28px;border-radius:50%;border:1px solid #cdd3c7;display:grid;place-items:center;font:400 1.2rem/1 var(--mono);color:#46523f}
.mode-card:hover .plus{background:var(--cardTint);border-color:var(--cardStrong)}
.card-desc{display:block;margin-top:6px;color:var(--muted);font-size:.95rem;line-height:1.55}
.hours{display:flex;align-items:center;gap:14px;padding:19px 21px;background:#eff2e8;border:1px solid #d9dfcf;border-radius:12px;margin-top:clamp(22px,3vh,34px)}
.hours-icon{width:26px;height:27px;position:relative;border:1.6px solid #5f6d56;border-radius:5px;background:linear-gradient(0deg,transparent 66%,#5f6d56 66% 71%,transparent 71%);margin:0 3px}
.hours-icon:before,.hours-icon:after{content:"";position:absolute;width:2px;height:6px;top:-4px;background:#5f6d56;border-radius:2px}
.hours-icon:before{left:5px}.hours-icon:after{right:5px}
.hours-icon i,.hours-icon b{position:absolute;left:5px;top:13px;width:3px;height:3px;background:#5f6d56;box-shadow:5px 0 #5f6d56,10px 0 #5f6d56}
.hours-icon b{top:18px;box-shadow:5px 0 #5f6d56}
.hours-text{display:flex;align-items:center;gap:18px;flex-wrap:wrap}
.hours-text strong{font-size:.95rem}
.hours-text span{font-size:.88rem;color:#54604f}
.hours-text em{font:normal .93rem var(--mono)}
.link-btn{border-bottom:1px solid #909c82;padding:2px 0;font-size:.88rem;margin-left:auto;white-space:nowrap}
footer{margin-top:23px;padding-top:16px;border-top:1px solid var(--line);display:flex;justify-content:space-between;gap:12px;align-items:center;color:#667062;font-size:.8rem}
.source{display:flex;align-items:center;gap:6px;white-space:nowrap}
.source i{width:9px;height:9px;background:repeating-linear-gradient(90deg,#859277 0 1px,transparent 1px 3px)}
.inner-lead{margin:27px 0 24px;display:flex;justify-content:space-between;align-items:center;gap:16px}
.inner-lead h1{font-size:clamp(2rem,4.2vw,3.3rem)}
.inner-lead .subtitle{margin-top:7px}
.text-action{color:#4e6243;font-size:.9rem;padding:6px 0;white-space:nowrap}
.panel,.room-card{background:#fdfef9;border:1px solid var(--line);border-radius:16px}
.panel{padding:clamp(19px,3vw,34px)}
.form-layout{display:grid;grid-template-columns:minmax(0,1fr) 230px;gap:27px;align-items:start}
.mode-mini{--cardTint:#e5f0c3;border:1px solid #bdc7b6;border-radius:14px;background:var(--cardTint);overflow:hidden;position:sticky;top:22px;width:100%;padding:0;text-align:left;transition:border-color .15s,box-shadow .15s}
.mode-mini:hover{border-color:#839378;box-shadow:0 3px 0 #28351e12}
.mode-mini:active{border-color:#526742}
.mode-mini .art{display:block;height:145px}.mode-mini .aside-copy{display:block;padding:14px 18px 16px}
#card-summary{display:block;font-size:.86rem;color:#4e594a;margin:3px 0 12px}
#card-action{display:inline-block;background:#fdfef8;border:1px solid #aab59e;border-radius:7px;padding:4px 11px;font-size:.88rem;font-weight:650}
fieldset{border:0;margin:0 0 22px;padding:0;min-width:0}
legend,label.field-label{font-weight:720;font-size:.96rem;margin-bottom:9px;display:block;padding:0}
.chips{display:flex;flex-wrap:wrap;gap:8px}
.chip,.secondary,.select-date{font-size:.92rem;border:1px solid #cbd3c5;border-radius:8px;padding:8px 14px;background:#fbfcf8;min-height:40px}
.chip:hover,.secondary:hover,.select-date:hover{background:#edf2e7}
.chip[aria-pressed=true]{border-color:#566d3f;background:#eaf3d1;color:#2d4323;box-shadow:inset 0 0 0 .35px #566d3f}
.chip,.slot-face,.primary,.back-control{transition:background-color .14s,border-color .14s,transform .12s}
.chip:active,.slot:active .slot-face,.primary:active:not(:disabled),.back-control:active{transform:scale(.975)}
.slot-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.slot{position:relative;cursor:pointer;min-width:0}
.slot input{position:absolute;left:9px;top:9px;width:1px;height:1px;opacity:0}
.slot-face{position:relative;display:flex;flex-direction:column;gap:4px;padding:10px 25px 9px 12px;background:#fafbf7;border:1px solid #cbd3c5;border-radius:9px}
.slot-face i{position:absolute;right:9px;top:12px;width:14px;height:14px;border:1px solid #98a38f;border-radius:4px}
.slot-name{font-size:.93rem;font-weight:650}
.slot-time{font:.83rem var(--mono);color:#54604f;white-space:nowrap}
.slot:hover .slot-face{border-color:#81916e}
.slot input:focus-visible+.slot-face{outline:3px solid #507c28;outline-offset:2px}
.slot-grid:has(+ #period-prompt:not([hidden])) input:focus+.slot-face{outline:3px solid #507c28;outline-offset:2px}
.slot input:checked+.slot-face{border-color:#648044;background:#eaf3d1}
.slot input:checked+.slot-face i{background:#4b6835;border-color:#4b6835}
.slot input:checked+.slot-face i:after{content:"";position:absolute;left:4px;top:1px;width:3px;height:7px;border:solid white;border-width:0 1.6px 1.6px 0;transform:rotate(45deg)}
.selected-periods{display:flex;flex-wrap:wrap;gap:5px;margin-top:9px}
.selected-periods span{background:#eaf0df;border-radius:5px;padding:2px 8px;font-size:.81rem;color:#42523a}
.day-strip{display:flex;gap:3px;margin-top:10px}
.day-cell{flex:1;min-width:0;text-align:center;font-size:.75rem;background:#f0f3eb;border:1px dashed #c0cbb6;border-radius:4px;color:#586550;padding:2px 0}
.day-cell.picked{background:#e0eebf;border:1px solid #809a55;color:#354d21}
.day-cell.busy{background:#f6e4ce;border:1px solid #d8bea0;color:#794e25}
.room-card .gap-warning{color:#815023}
.primary:disabled{background:#d2d9cd;color:#54604f;cursor:default}
.form-end{display:flex;align-items:center;justify-content:space-between;border-top:1px solid #e1e5db;padding-top:17px;gap:12px;flex-wrap:wrap}
.form-summary{font-size:.89rem;color:#506047}
.primary{background:#263b29;color:white;border-radius:8px;font-size:.98rem;font-weight:650;padding:10px 22px;min-height:43px}
.primary:hover{background:#36533a}
.date-row,.time-row{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.date-row input,.time-row input{min-height:40px;border:1px solid #cbd3c5;border-radius:8px;padding:6px 9px;background:#fbfcf8;font-size:.94rem}
.time-row{margin-top:11px}
.time-row label{font-size:.9rem;color:#51604c;display:flex;align-items:center;gap:7px}
.error{color:#99451e;margin:9px 0;font-size:.9rem}
.result-meta{display:flex;justify-content:space-between;align-items:center;gap:10px;margin:0 0 13px;font-size:.88rem;color:#5b6655}
.result-meta strong{color:var(--ink);font-size:1rem}
.results{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;gap:13px}
.room-card{padding:18px 20px}
.room-top{display:flex;align-items:flex-start;justify-content:space-between;gap:8px}
.room-name{font-size:1.2rem;letter-spacing:-.025em}
.room-name strong{font-family:var(--mono);font-size:1.4rem}
.room-detail,.next{color:#576252;font-size:.89rem;margin-top:4px}
.until{color:#304c29;background:#e5f2cf;border-radius:7px;padding:4px 9px;font-size:.84rem;font-weight:650;white-space:nowrap}
.until.short{color:#815023;background:#f7e6cb}
.next{margin-top:12px;color:#3d493a}
.room-card details{border-top:1px dashed #d5dace;margin-top:13px;padding-top:8px}
summary{cursor:pointer;font-size:.85rem;color:#52624a;width:fit-content}
.lesson-list{list-style:none;padding:0;margin:8px 0 2px;font-size:.84rem;color:#51604c}
.lesson-list li{display:flex;gap:12px;padding:3px 0}
.lesson-list time,.period-time{font-family:var(--mono);font-variant-numeric:tabular-nums}
.empty{text-align:center;padding:32px 16px}
.empty h2{font-size:1.3rem}.empty p{color:var(--muted);margin:8px 0 17px}.empty .secondary{margin:4px}
dialog{width:min(440px,calc(100% - 32px));border:1px solid #aebaa3;border-radius:16px;padding:24px;color:var(--ink);background:#fbfcf6;box-shadow:0 20px 60px #18251830}
dialog::backdrop{background:#14201755}
.dialog-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:13px}
.dialog-head h2{font-size:1.4rem}.close{border-radius:50%;width:32px;height:32px;font-size:1.4rem;background:#eaf0e2;line-height:1}
#dialog-body p{font-size:.95rem;color:#4d5948;margin:8px 0}
.period-row{display:flex;justify-content:space-between;border-bottom:1px solid #dce1d5;padding:9px 0;font-size:.92rem}
.period-row:last-child{border:0}
@media(min-width:1450px){.shell{padding-top:48px}.lead{margin-top:45px;margin-bottom:45px}}
@media(max-width:900px){.head-inner,.shell{width:calc(100% - 48px)}.cards{gap:12px}.card-copy{padding:17px 15px 20px}.form-layout{grid-template-columns:minmax(0,1fr) 185px;gap:16px}.mode-mini .art{height:120px}.card-desc{font-size:.89rem}.clock-ticket{width:166px}}
@media(max-width:680px){.head-inner,.shell{width:calc(100% - 32px)}.head-inner{height:61px;gap:11px}.brand-mark{width:33px;height:33px}.brand-sub{padding-left:11px;font-size:.8rem}.help{font-size:.84rem}.shell{padding-top:23px}#steps{gap:8px}.step-line{width:19px}.lead{margin:23px 0 22px;gap:8px;align-items:flex-end}.clock-ticket{display:none}h1{font-size:clamp(2.2rem,8vw,3.1rem)}.subtitle{margin-top:8px;font-size:.94rem}.cards{grid-template-columns:1fr;gap:11px}.mode-card{display:grid;grid-template-columns:31% 1fr;border-radius:12px;align-items:stretch}.mode-card .art{height:auto;min-height:100px;border-bottom:0;border-right:1px solid #00000010}.scene{inset:13% 1%}.card-copy{align-self:center;padding:12px 14px}.card-title{font-size:1.25rem}.card-desc{margin-top:4px}.plus{width:23px;height:23px;font-size:1rem}.hours{margin-top:16px;padding:13px;gap:10px}.hours-text{display:grid;gap:1px}.hours-text strong{font-size:.86rem}.hours-text span,.link-btn{font-size:.81rem}footer{margin-top:15px;padding-top:13px;font-size:.75rem;align-items:flex-start}.inner-lead{margin:22px 0 18px}.inner-lead h1{font-size:2rem}.form-layout{display:block}.mode-mini{display:none}.results{grid-template-columns:1fr}.room-card{padding:15px 16px}.form-end .primary{flex:1 0 auto}.form-end .form-summary{flex:1 1 145px}.inner-lead .subtitle{font-size:.9rem}.result-meta{font-size:.8rem}.time-row{gap:8px}.time-row label{gap:3px}.chip,.select-date{padding:7px 10px}}
@media(max-width:680px){.scene{inset:0;height:auto;width:94%}}
@media(max-width:740px){.slot-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:350px){.slot-face{padding-left:8px;padding-right:20px}.slot-face i{right:5px}.slot-name,.slot-time{font-size:.8rem}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}
/* Location filters and classroom details */
.fav-entry{margin-left:auto;border:1px solid var(--line);border-radius:8px;padding:6px 11px;background:#f5f7ef;font-size:.9rem;white-space:nowrap}
.fav-entry:hover,.star:hover{background:#eaf2dc}
.head-inner .help{margin-left:0}
.multi .chip[aria-pressed=true]{background:#e7f1d9;border-color:#65824d}
.slot-grid{grid-template-columns:repeat(auto-fit,minmax(115px,1fr))}
.slot .slot-face{padding-left:10px}
.advanced,.optional-place{margin-bottom:16px;border-top:1px solid var(--line);padding-top:12px}
.advanced summary,.optional-place summary{width:100%;font-size:.93rem;font-weight:650;padding:4px 0}
.advanced-body,.optional-place[open] #locations{padding-top:14px}
.advanced-row,.custom-row{display:flex;align-items:flex-end;gap:10px;flex-wrap:wrap;margin:10px 0}
.advanced-body label{display:inline-flex;flex-direction:column;gap:4px;color:#46533d;font-size:.9rem}
.advanced-body input,.advanced-body select{border:1px solid #c3cdbb;background:#fcfdf8;padding:7px 10px;border-radius:7px;min-height:38px;max-width:100%}
.advanced-body select{padding-right:16px}
.advanced-body .search-label{display:flex;margin-bottom:10px}
.advanced-body fieldset{margin-top:14px;margin-bottom:6px}
.custom-row .text-action{min-height:38px}
#time-issue:empty,.method-note:empty{display:none}
#query .form-summary,.inner-lead .subtitle{overflow-wrap:anywhere}
.results-toolbar{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px;margin:12px 0}
.results-toolbar .chip{font-size:.85rem;min-height:36px;padding:6px 12px}
.sort-note,.method-note,#dialog-body .method-note{color:#596653;font-size:.82rem;line-height:1.55}
.sort-note{margin:0 0 12px}
.room-open{font:inherit;font-weight:730;padding:0;text-align:left}
.room-open:hover{text-decoration:underline}
.star{background:#f7f9f1;border:1px solid var(--line);border-radius:50%;width:37px;height:37px;line-height:1;font-size:1.35rem;color:#48583f}
.star[aria-pressed=true]{background:#eff2d1;color:#725b0c;border-color:#c8c18b}
.status-row,.card-bottom,.favorite-line,.detail-overview{display:flex;align-items:center;justify-content:space-between;gap:10px}
.status-row{justify-content:flex-start;flex-wrap:wrap;margin:14px 0 6px}
.crowd-label,.card-bottom>span{font-size:.8rem;color:#596653}
.card-bottom{margin-top:12px;padding-top:8px;border-top:1px dashed var(--line)}
.card-bottom .text-action{padding:4px 0}
.wide-dialog{width:min(620px,calc(100% - 24px));max-height:85dvh;overflow:auto}
#dialog-body .detail-overview{padding:10px 0 17px;border-bottom:1px solid var(--line);font-size:.92rem}
#dialog-body .detail-overview p{margin:0 0 4px}
.timeline-card{padding:18px 0 4px}
.timeline-card h3{font-size:1.09rem}
.timeline-plot{margin:20px 0 12px}
.timeline-plot.with-pin{margin-top:33px}
.axis{height:24px;position:relative}
.axis-tick{position:absolute;transform:translateX(-50%);font:.78rem/1.3 var(--mono);color:#5b6855}
.axis-tick.first{transform:none}.axis-tick.last{transform:translateX(-100%)}
.tracks{position:relative}
.status-track,.traffic-track{display:flex;overflow:hidden;border-radius:5px;width:100%;background:#f1f4eb}
.status-track{height:28px}.traffic-track{height:9px;margin-top:4px}
.bar-part{padding:0;min-width:0;flex-basis:0;border:0;border-radius:0}
.status-track button:hover,.status-track button:focus-visible{box-shadow:inset 0 0 0 2px #283d27;outline:0}
.bar-part.free,.legends i.free{background:#c7e2bd}
.bar-part.busy,.legends i.busy{background:repeating-linear-gradient(135deg,#91a08e 0 3px,#a4b2a0 3px 6px)}
.traffic-0{background:#6a9d7c}.traffic-1{background:#d4a24f}.traffic-2{background:#bc6a58}.traffic-busy{background:#d9dfd7}
.clock-pin{position:absolute;top:-5px;bottom:-1px;width:2px;background:#334f37;pointer-events:none}
.clock-pin b{position:absolute;bottom:calc(100% + 19px);left:50%;transform:translateX(-50%);white-space:nowrap;background:#334f37;color:white;font:500 .72rem/1.3 var(--font);padding:2px 6px;border-radius:4px}
.clock-pin b.pin-left{transform:translateX(-100%)}.clock-pin b.pin-right{transform:none}
.legends{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:6px 0;font-size:.81rem;color:#495741}
.legends span{display:flex;align-items:center;gap:4px}.legends i{width:12px;height:9px;border-radius:2px}
.legends small{font-size:.78rem}
.segments{margin:8px 0 14px}.segments summary{font-size:.94rem;font-weight:650}
.segments ul{list-style:none;margin:6px 0;padding:0}
.segments li{display:grid;grid-template-columns:1.1fr .8fr auto;gap:8px;padding:7px 0;border-bottom:1px solid #e0e5d9;font-size:.85rem}
.segments time{font-family:var(--mono)}.segments li span{color:#62725a}
.segments b.free{color:#426446}.segments b.busy{color:#72532b}
.favorite-line{border-bottom:1px solid var(--line);padding:8px 0}
.fav-room{text-align:left;flex:1;padding:4px 0}.fav-room small{display:block;color:#62725a}
.data-link{text-decoration:underline}
#app-notice:not(:empty){margin:10px 0;color:#7e5420}
@media(max-width:680px){.slot-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.fav-entry{font-size:.8rem;padding:6px 8px}.head-inner{gap:8px}.brand-sub{padding-left:8px}.results-toolbar .chips{gap:5px}.card-bottom{margin-top:8px}.wide-dialog{padding:18px}.wide-dialog .axis-tick{font-size:.72rem}}
@media(max-width:400px){.brand-sub{display:none}.advanced-row,.custom-row{gap:6px}.custom-row input{padding:5px}.results-toolbar .chip{padding:6px 9px}}
/* Results: the favorite switch narrows the set; the select orders it. */
.result-scope,.fav-filter,.order-control{display:flex;align-items:center}
.result-scope{gap:20px;flex-wrap:wrap}
.fav-filter{position:relative;gap:7px;cursor:pointer;min-height:40px;font-size:.9rem}
.fav-filter input{position:absolute;left:0;width:30px;height:22px;opacity:0}
.switch-rail{width:32px;height:19px;border:1px solid #98a48d;border-radius:20px;background:#e3e8df;position:relative}
.switch-rail:after{position:absolute;content:"";left:2px;top:2px;width:13px;height:13px;background:#65705e;border-radius:50%;transition:transform .14s}
.fav-filter input:checked+.switch-rail{background:#536e42;border-color:#536e42}
.fav-filter input:checked+.switch-rail:after{background:#fff;transform:translateX(13px)}
.fav-filter input:focus-visible+.switch-rail{outline:3px solid #65894a;outline-offset:3px}
.order-control{gap:7px;color:var(--muted);font-size:.88rem}
.order-control select{padding:6px 10px;background:#fcfdf8;border:1px solid var(--line);border-radius:8px;font:inherit}
.day-title,.day-axis,.all-day{display:flex;align-items:center;justify-content:space-between;gap:8px}
.day-title>span,.day-axis{color:var(--muted);font-size:.82rem}
.day-axis{position:relative;height:19px;margin:10px 0 4px;font-family:var(--mono)}
.day-axis span{position:absolute;transform:translateX(-50%)}
.all-day,#dialog-body .all-day{margin:24px 0;padding:12px 17px;background:linear-gradient(102deg,#d5e9d0,#e9f2cd);color:#324e35;clip-path:polygon(0 4%,100% 0,99.4% 16%,100% 30%,99.4% 48%,100% 66%,99.4% 80%,100% 96%,0 100%,.6% 82%,0 62%,.6% 47%,0 30%,.6% 16%)}
.all-day time{font-family:var(--mono);font-size:.95rem}
.ruler-sheet{position:relative;margin:4px 0 14px;padding:18px 18px 10px;border:1px solid #d9d7c7;border-radius:13px 16px 14px 11px;background:#fffdf3;background-image:radial-gradient(#c7c2aa50 .8px,transparent .8px);background-size:9px 9px;box-shadow:0 3px 0 #e6e5d9}
.ruler-sheet:before{content:"";position:absolute;top:-6px;right:26px;width:35px;height:12px;background:repeating-linear-gradient(105deg,#e6c798b0 0 3px,#f0dbb6b0 3px 6px);transform:rotate(6deg);pointer-events:none}
.day-title h3,.all-day strong{display:flex;align-items:center;gap:10px}
.pencil-pal{position:relative;display:inline-block;flex:none;width:15px;height:25px;border:1px solid #847557;border-radius:5px 5px 2px 2px;transform:rotate(-13deg);background:linear-gradient(to bottom,#e9a99a 0 5px,#f2ded0 5px 8px,transparent 8px),linear-gradient(to right,#efd37f 0 62%,#dfb75c 62%)}
.pencil-pal:before{content:"";position:absolute;left:-1px;right:-1px;bottom:-7px;height:7px;background:linear-gradient(#c69f69 0 53%,#535444 53%);clip-path:polygon(0 0,100% 0,50% 100%)}
.pencil-pal:after{content:"";position:absolute;top:13px;left:3px;width:2px;height:3px;border-radius:50%;background:#474737;box-shadow:5px 0 #474737}
.ruler-key,.ruler-key span{display:flex;align-items:center;gap:5px}
.ruler-key{gap:13px;color:#52604b;font-size:.79rem}
.ruler-key i{display:inline-block;width:13px;height:9px;border-radius:3px;box-shadow:inset 0 0 0 1px #47583833}
.ruler-key .free,.timeline-card .bar-part.free{background:#b7dbae}
.ruler-key .busy,.timeline-card .bar-part.busy{background:repeating-linear-gradient(120deg,#b38a78 0 1.5px,#edc5b0 1.5px 5px)}
.ruler-body{margin-top:18px}
.ruler-body .tracks{border:1px solid #b1b69f;border-radius:7px;padding:4px 0 7px;background:#f4f4e7;box-shadow:0 2px 0 #d9dcc6}
.ruler-body .tracks:after{content:"";position:absolute;bottom:0;left:0;right:0;height:5px;background:repeating-linear-gradient(90deg,#869176 0 1px,transparent 1px 100%);background-size:var(--half-hour) 100%;pointer-events:none}
.timeline-card .status-track{height:27px;border-radius:3px}
.status-track button[aria-pressed="true"]{box-shadow:inset 0 -3px #4c6146}
.ruler-body .clock-pin{top:-5px;bottom:-2px;background:#69502d}
.ruler-body .clock-pin:before{content:"";position:absolute;top:-5px;left:-4px;width:10px;height:10px;background:#d49351;clip-path:polygon(0 0,100% 0,100% 55%,50% 100%,0 55%)}
.ruler-body .day-axis{margin:4px 0 8px;font-size:.72rem;color:#56614e}
.ruler-selection{display:flex;min-height:44px;align-items:center;justify-content:space-between;gap:4px;border-top:1px dashed #cdcbb9}
.ruler-selection .segment-readout,#dialog-body .ruler-selection .segment-readout{margin:0;padding:4px 0;font-size:.83rem;color:#384936;font-variant-numeric:tabular-nums}
.ruler-steps{display:flex;flex:none}
.ruler-step{width:38px;height:42px;font-size:1.45rem;color:#40543b;line-height:1}
.ruler-step:disabled{opacity:.32;cursor:default}
.ruler-step:enabled:hover{background:#e7eedb;border-radius:9px}
.ruler-step:enabled:active{transform:translateY(1px)}
@media(prefers-reduced-motion:no-preference){.ruler-sheet .bar-part{transition:box-shadow .15s ease}.ruler-sheet:hover .pencil-pal{transform:rotate(-8deg)}.pencil-pal{transition:transform .18s ease-out}}
@media(max-width:450px){.ruler-sheet{padding:14px 10px 4px}.ruler-selection{align-items:center}.ruler-step{width:40px;height:44px}.ruler-key{gap:8px}.all-day strong{gap:6px}}
.timeline-card .segments li{grid-template-columns:1fr auto}
.duration-custom{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-top:12px}
.duration-custom[hidden]{display:none}
.duration-custom input{width:5rem;padding:7px;border-radius:7px;border:1px solid var(--line);background:#fff}
@media(max-width:540px){.result-scope{gap:9px}.order-control{gap:4px}.results-toolbar{gap:6px}.order-control select{padding:6px}.fav-filter{font-size:.84rem}}

.query-note{
  position:sticky;top:24px;display:block;width:100%;min-width:0;text-align:left;
  padding:18px 16px 14px;border:1px solid #d8c99a;border-radius:4px 9px 7px 4px;
  background:#fff4cd repeating-linear-gradient(to bottom,transparent 0 23px,#d9cc994a 23px 24px);
  box-shadow:2px 3px 0 #e6dfbf;transform:rotate(-.55deg);
}
.query-note::after{
  content:"";position:absolute;top:-9px;right:20px;width:9px;height:25px;
  border:2px solid #aa8265;border-radius:7px;box-shadow:inset 1px 0 #fff8dc;transform:rotate(14deg);pointer-events:none;
}
.note-head,.note-place,.note-time{display:block;overflow-wrap:anywhere}
.note-head{font-size:.8rem;font-weight:750;letter-spacing:.08em;color:#72603c}
#note-selection{display:block;margin:10px 0 16px;line-height:24px;font-size:.88rem;color:#4d523e}
.note-place{font-weight:680;color:#354738}
.note-time{font-variant-numeric:tabular-nums}
.note-toggle{display:none}
.note-action{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;min-height:44px;padding:8px 12px;
  background:#334c3d;color:#fffdf4;border-radius:7px;font-weight:700;font-size:.91rem}
.note-action:hover,.note-action:focus-visible{background:#264332}
@media(min-width:681px){.note-action::before{content:"";position:absolute;inset:0}}
.room-until{display:flex;align-items:baseline;gap:10px;margin:13px 0 4px;border-top:1px dashed #d1d8c9;padding-top:11px}
.room-until>span{font-size:.86rem;color:#53624c}
.room-until{--mark:#c9e5cb}
.room-until.limited{--mark:#f4d5a7}
.room-until strong{padding:0 5px;color:#273d2c;background:linear-gradient(177deg,transparent 0 32%,var(--mark) 33% 88%,transparent 89%);
  font:700 clamp(1.75rem,3.2vw,2.15rem)/1.13 var(--mono);letter-spacing:-.06em}
.room-facts{display:flex;align-items:baseline;justify-content:space-between;flex-wrap:wrap;gap:2px 12px;color:#505e49;font-size:.83rem}
.room-facts .crowd-label{margin-left:auto}
.room-until.limited+.room-facts b{color:#795332}
.room-day,.all-day-line{position:relative;margin-top:12px;border-top:1px dashed #d5dace}
.room-card .room-day{padding:2px 0 0}
.all-day-line{display:flex;justify-content:space-between;gap:8px;align-items:center;min-height:44px;font-size:.86rem;color:var(--muted)}
.all-day-line time{font-family:var(--mono)}
.day-toggle{display:flex;align-items:center;gap:11px;width:100%;min-height:45px;padding:6px 3px;text-align:left;font-size:.87rem;font-weight:650}
.day-toggle::after,.note-toggle::after{content:"";flex:none;width:7px;height:7px;margin-left:auto;margin-right:4px;border:solid #627959;border-width:0 1.5px 1.5px 0;transform:rotate(45deg)}
.day-toggle[aria-expanded="true"]::after,.note-toggle[aria-expanded="true"]::after{transform:rotate(225deg)}
.day-toggle .pencil-pal{width:14px;height:23px;margin:0 2px 5px 3px;transform-origin:50% 85%}
.day-toggle[aria-expanded="true"] .pencil-pal{transform:rotate(-28deg)}
.room-day .ruler-body{margin:0}
.room-day .tracks{padding:0;border-radius:4px;box-shadow:none}
.room-day .tracks[inert] .status-track{height:8px}
.room-day .tracks[inert]::after,.room-day .tracks[inert] .clock-pin,.room-day .tracks[inert]+.day-axis{display:none}
.room-day .tracks[inert] [aria-pressed="true"]{box-shadow:none}
.room-day .tracks:not([inert]){padding-bottom:5px}
.day-toggle[aria-expanded="false"]::before{content:"";position:absolute;z-index:1;inset:0}
.room-day .day-info .ruler-key{padding:5px 0}
.room-day .segments{margin-bottom:0}
@media(min-width:681px){.form-layout{grid-template-columns:minmax(0,1fr) clamp(220px,24vw,285px)}}
@media(max-width:680px){
  body:has(.query-note){padding-bottom:calc(84px + env(safe-area-inset-bottom))}
  html:has(.query-note){scroll-padding-bottom:calc(84px + env(safe-area-inset-bottom))}
  .query-note{position:fixed;z-index:5;top:auto;bottom:0;left:0;right:0;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:0 10px;
    margin:0;padding:6px max(14px,env(safe-area-inset-right)) calc(6px + env(safe-area-inset-bottom)) max(14px,env(safe-area-inset-left));
    background:#fff4cd;border-width:1px 0 0;border-radius:0;box-shadow:0 -2px 12px #34433114;transform:none}
  .query-note::after,.query-note .note-head{display:none}
  .note-toggle{display:flex;align-items:center;gap:7px;text-align:left;min-height:44px;padding:0;min-width:0;font-size:.86rem;color:#45523f}
  .note-toggle span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .note-action{width:auto;font-size:.86rem}
  .query-note #note-selection{display:none;grid-column:1/-1;grid-row:1;margin:0 0 5px;padding:8px 0;max-height:35dvh;overflow:auto;border-bottom:1px solid #d9cda1}
  .query-note:has(.note-toggle[aria-expanded="true"]) #note-selection{display:block}
}
@media(prefers-reduced-motion:no-preference){
  .query-note,.note-action,.day-toggle::after{transition:transform .16s ease,background-color .16s ease}
  .room-day .status-track{transition:height .18s ease}
}
@media(min-width:681px) and (hover:hover){.query-note:hover{transform:rotate(0)}}
