:root{color-scheme:light;--paper:#f5f1e9;--ink:#242321;--gold:#c49a3a}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font:15px/1.5 system-ui,Arial,sans-serif}a{color:inherit;text-underline-offset:3px}header{padding:20px 4%;background:var(--ink);color:var(--paper);display:flex;justify-content:space-between;align-items:center;gap:20px}header>a{font:italic 27px Georgia,serif;text-decoration:none}small{font-size:12px}header small{font:12px system-ui;display:block;color:#d6c49c}nav{display:flex;align-items:center;gap:22px}nav form{margin:0}main{max-width:1450px;padding:35px 4%;margin:auto}h1{font:40px/1.1 Georgia,serif;margin:0 0 24px}h2{font:25px/1.2 Georgia,serif;margin:0 0 20px}h3{font-size:17px}.eyebrow{text-transform:uppercase;font-size:11px;letter-spacing:2px;color:#8c6a21}.login{max-width:430px;margin:5vh auto;background:white;padding:32px;border:1px solid #ddd4c5}.panel{background:white;border:1px solid #ddd4c5;padding:25px;margin:24px 0}label{display:flex;flex-direction:column;gap:7px;margin-bottom:17px;font-size:13px}input,select,textarea{width:100%;padding:11px;border:1px solid #b8b0a3;border-radius:3px;background:white;color:var(--ink);font:16px system-ui}textarea{resize:vertical}input[type=number]{min-width:0}button,.button{padding:11px 17px;border:1px solid #b8b0a3;background:transparent;cursor:pointer;font:14px system-ui;text-decoration:none;display:inline-block;color:inherit}button:hover,.button:hover{border-color:var(--gold);background:#eee5d2}.primary{background:var(--gold);border-color:var(--gold);color:#181714}.muted{font-size:12px;color:#6a6358}.error,.success,.hint{padding:16px 20px;background:#f6ded8;border:1px solid #a24632}.success{background:#e2efdf;border-color:#62835b}.hint{background:#f5eedf;border-color:#c7af75;margin:25px 0}.topline{display:flex;justify-content:space-between;align-items:center;gap:20px}.formgrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 25px}fieldset{padding:0;border:0;margin:0;min-width:0}fieldset:disabled{opacity:.75}.filters{display:flex;align-items:end;gap:20px;flex-wrap:wrap}.filters label{margin:0;flex:1;min-width:200px}.weeknav{display:flex;justify-content:space-between;gap:15px;margin:25px 0}.weekgrid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:8px}.day{background:#ebe5da;min-height:170px;padding:10px}.day h2{font:600 13px system-ui;margin:0 0 15px}.event{display:flex;flex-direction:column;gap:5px;padding:10px;margin-bottom:10px;background:white;border-top:3px solid var(--gold);text-decoration:none;overflow-wrap:anywhere}.event strong{font-size:14px}.event span,.event small{font-size:11px}.table-wrap{overflow:auto}table{border-collapse:collapse;width:100%;white-space:nowrap;text-align:left}td,th{padding:12px;border-bottom:1px solid #e2d9ca;font-size:13px}th{font-size:12px}.admin-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:25px}.admin-grid .panel{margin:0}.admin-grid .panel:last-child{margin-top:0}footer{padding:30px 4%;font-size:12px;color:#6a6358}details{margin-top:25px}summary{cursor:pointer}:focus-visible{outline:3px solid var(--gold);outline-offset:3px}@media(max-width:850px){.weekgrid{grid-template-columns:repeat(2,minmax(0,1fr))}.admin-grid{grid-template-columns:1fr}header{align-items:flex-start;flex-direction:column}nav{gap:15px;flex-wrap:wrap}.topline{align-items:flex-start;flex-direction:column}.weeknav{font-size:12px}.formgrid{grid-template-columns:1fr}.panel{padding:20px}.login{margin:15px auto;padding:24px}h1{font-size:34px}}
header>a.brand{display:flex;align-items:center;gap:15px;flex-shrink:0}header .brand img{width:92px;height:54px;object-fit:contain;display:block}header .brand span{display:block}@media(max-width:420px){header .brand img{width:76px;height:45px}header>a.brand{gap:12px}}
header .brand img{clip-path:polygon(50% 0,100% 50%,50% 100%,0 50%)}
.calendar-toolbar{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:24px 0 0}.calendar-legend{display:flex;flex-wrap:wrap;gap:12px 22px;font-size:13px;font-weight:600}.calendar-legend>span{display:flex;align-items:center;gap:8px}.legend-in{color:#176b4c}.legend-out{color:#245da3}.fourweek-scroll{overflow-x:auto;padding:2px 2px 12px}.fourweek-grid{display:grid;grid-template-columns:repeat(7,minmax(145px,1fr));gap:10px;min-width:1070px}.calendar-day{min-height:170px;border:1px solid #ded6c8;border-radius:8px;background:#fdfbf7;padding:10px}.calendar-day.is-today{border:2px solid var(--gold);padding:9px;background:#fff9e9}.day-heading{display:flex;align-items:center;justify-content:space-between;gap:5px;margin-bottom:13px}.day-heading h2{margin:0;display:flex;align-items:baseline;gap:7px;font:600 14px system-ui}.day-heading h2 span{font-weight:400;color:#6a6358}.today-label{font-size:10px;font-weight:700;text-transform:uppercase;color:#785815;background:#f0dfa9;border-radius:4px;padding:3px 5px}.day-empty{font-size:11px;color:#8b8478}.calendar-event{display:flex;flex-direction:column;gap:6px;border:1px solid;border-left-width:4px;border-radius:7px;padding:10px;margin-bottom:9px;text-decoration:none;overflow-wrap:anywhere;box-shadow:0 2px 4px #24232108}.event-in{background:#eef8f1;border-color:#b4d9c2;border-left-color:#24845f}.event-out{background:#eef4fc;border-color:#bed0e9;border-left-color:#3977be}.calendar-event:hover{filter:brightness(.97)}.event-kind{display:flex;align-items:center;gap:7px;font-size:11px;font-weight:650}.event-in .event-kind{color:#176b4c}.event-out .event-kind{color:#245da3}.event-icon{display:flex;align-items:center;justify-content:center;flex-shrink:0;width:34px;height:34px;border-radius:7px;background:#fff}.event-kind time{display:block;font-size:17px;font-weight:750;font-variant-numeric:tabular-nums}.calendar-event>strong{font-size:13px;line-height:1.3}.event-customer{font-size:12px}.calendar-event>small{font-size:10px;color:#665f55}.calendar-scroll-hint{display:none;font-size:12px;color:#6a6358}@media(max-width:1150px){.calendar-scroll-hint{display:block}.fourweek-grid{min-width:1070px}}@media(max-width:650px){.calendar-toolbar{align-items:flex-start}.calendar-legend{gap:10px;font-size:12px}.weeknav{flex-wrap:wrap;align-items:center}.weeknav strong{order:-1;flex-basis:100%;text-align:center}}
.fourweek-focus{min-width:960px;--focus-columns:repeat(7,minmax(70px,1fr))}.focus-week{margin-bottom:20px;border:1px solid #dcd2c0;border-radius:9px;background:#eee8dd;padding:8px}.focus-days,.stay-track{display:grid;grid-template-columns:var(--focus-columns);gap:8px}.focus-days{align-items:stretch}.focus-days .calendar-day{min-width:0;min-height:150px;padding:9px 6px;border-color:#e4ded3;background:#f3f0ea}.focus-days .workday{padding:12px;background:#fffdf7;border-color:#d6bd81}.focus-days .day-heading h2{flex-wrap:wrap;font-size:12px;gap:3px}.focus-days .workday .day-heading h2{font-size:15px;gap:7px}.focus-days .quiet-day .day-heading{flex-wrap:wrap}.focus-days .calendar-day.is-today{border-color:var(--gold);background:#fff5d8}.quiet-day .calendar-event{padding:7px 4px;border-left-width:3px;gap:4px}.quiet-day .event-kind{flex-direction:column;align-items:flex-start;gap:4px}.quiet-day .event-icon{width:26px;height:26px}.quiet-day .event-icon img{width:23px;height:23px}.quiet-day .event-label{font-size:9px}.quiet-day .event-kind time{font-size:13px}.quiet-day .calendar-event>strong,.quiet-day .event-customer{font-size:10px;line-height:1.25}.quiet-day .calendar-event>small{font-size:9px}.week-stays{padding-top:7px}.stay-track{margin-top:5px;min-height:29px}.stay-line{display:flex;align-items:center;gap:7px;min-width:0;border-radius:15px;padding:5px 8px;text-decoration:none;color:var(--line-ink);background:var(--line-paper);border:1px solid var(--line-ink);box-shadow:inset 0 -3px 0 var(--line-ink);font-size:11px}.stay-line:hover{filter:brightness(.94)}.stay-caption{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-weight:600;flex:1}.stay-start,.stay-end{font-size:13px;flex-shrink:0}.stay-line.continued{border-left-style:dashed;border-top-left-radius:3px;border-bottom-left-radius:3px}.stay-line.continues{border-right-style:dashed;border-top-right-radius:3px;border-bottom-right-radius:3px}.tone-0{--line-ink:#71548d;--line-paper:#f0e9f8}.tone-1{--line-ink:#8c6722;--line-paper:#faf0d7}.tone-2{--line-ink:#28766e;--line-paper:#e3f3ef}.tone-3{--line-ink:#516c99;--line-paper:#e8eef9}.tone-4{--line-ink:#95596a;--line-paper:#f8e9ee}.tone-5{--line-ink:#60723d;--line-paper:#edf2e2}
.starts-1{--focus-columns:minmax(70px,1fr) minmax(230px,3fr) minmax(70px,1fr) minmax(70px,1fr) minmax(230px,3fr) minmax(70px,1fr) minmax(70px,1fr)}
.starts-2{--focus-columns:minmax(230px,3fr) minmax(70px,1fr) minmax(70px,1fr) minmax(230px,3fr) minmax(70px,1fr) minmax(70px,1fr) minmax(70px,1fr)}
.starts-3{--focus-columns:minmax(70px,1fr) minmax(70px,1fr) minmax(230px,3fr) minmax(70px,1fr) minmax(70px,1fr) minmax(70px,1fr) minmax(230px,3fr)}
.starts-4{--focus-columns:minmax(70px,1fr) minmax(230px,3fr) minmax(70px,1fr) minmax(70px,1fr) minmax(70px,1fr) minmax(230px,3fr) minmax(70px,1fr)}
.starts-5{--focus-columns:minmax(230px,3fr) minmax(70px,1fr) minmax(70px,1fr) minmax(70px,1fr) minmax(230px,3fr) minmax(70px,1fr) minmax(70px,1fr)}
.starts-6{--focus-columns:minmax(70px,1fr) minmax(70px,1fr) minmax(70px,1fr) minmax(230px,3fr) minmax(70px,1fr) minmax(70px,1fr) minmax(230px,3fr)}
.starts-7{--focus-columns:minmax(70px,1fr) minmax(70px,1fr) minmax(230px,3fr) minmax(70px,1fr) minmax(70px,1fr) minmax(230px,3fr) minmax(70px,1fr)}
.from-1{grid-column-start:1}.through-1{grid-column-end:2}
.from-2{grid-column-start:2}.through-2{grid-column-end:3}
.from-3{grid-column-start:3}.through-3{grid-column-end:4}
.from-4{grid-column-start:4}.through-4{grid-column-end:5}
.from-5{grid-column-start:5}.through-5{grid-column-end:6}
.from-6{grid-column-start:6}.through-6{grid-column-end:7}
.from-7{grid-column-start:7}.through-7{grid-column-end:8}
.mobile-calendar{display:none}@media(max-width:700px){.fourweek-scroll,.calendar-scroll-hint,.desktop-calendar-note{display:none}.mobile-calendar{display:block}.mobile-week{background:#fffdf8;border:1px solid #ddd4c4;border-radius:12px;padding:14px;margin:0 0 18px}.mobile-week>h2{font:600 17px system-ui;margin:0 0 14px}.mobile-date-strip{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px;margin-bottom:20px}.mobile-date-strip>span{display:flex;flex-direction:column;align-items:center;gap:4px;border-radius:7px;background:#efebe4;padding:7px 1px;font-size:10px;color:#746d62}.mobile-date-strip strong{font-size:13px}.mobile-date-strip .key-date{background:#f2e5c2;color:#674d17}.mobile-date-strip .current-date{outline:2px solid var(--gold);outline-offset:-2px}.mobile-day{margin:0 0 17px}.mobile-day>h3{font:600 13px system-ui;margin:0 0 9px;padding:0 0 0 9px;border-left:3px solid #c9c2b5}.key-mobile-day>h3{border-color:var(--gold)}.mobile-empty{font-size:12px;color:#7b7468;margin:0 0 0 12px}.mobile-event{display:flex;flex-direction:column;gap:7px;border:1px solid #c5d7cd;border-left-width:4px;border-radius:9px;padding:12px;margin-bottom:10px;text-decoration:none;min-width:0;overflow-wrap:anywhere}.mobile-event.event-out{border-color:#bed0e9;border-left-color:#3977be}.mobile-event.event-in{border-left-color:#24845f}.mobile-event-top{display:flex;align-items:center;gap:9px}.mobile-event-top>strong{font-size:13px}.mobile-event-top>time{font-size:23px;font-weight:750;margin-left:auto;font-variant-numeric:tabular-nums}.mobile-event.event-in .mobile-event-top{color:#176b4c}.mobile-event.event-out .mobile-event-top{color:#245da3}.mobile-vehicle{font-size:16px;line-height:1.3}.mobile-event>span{font-size:13px}.mobile-journey{display:flex;align-items:center;justify-content:space-between;gap:10px;border-radius:7px;background:var(--line-paper,#fff);color:var(--line-ink,#514c42);padding:10px;margin-top:3px;min-width:0}.mobile-journey>span:not(.journey-connection){display:flex;flex-direction:column;gap:3px;font-size:12px;font-variant-numeric:tabular-nums}.mobile-journey>span:last-child{text-align:right}.mobile-journey small{font-size:10px;font-weight:600}.mobile-journey b{font-size:13px}.journey-connection{flex:1;min-width:18px;height:2px;background:currentColor;position:relative;font-size:0}.journey-connection:before{content:'';position:absolute;width:6px;height:6px;border-radius:50%;background:currentColor;left:0;top:-2px}.journey-connection:after{content:'';position:absolute;right:0;top:-3px;width:7px;height:7px;border-top:2px solid currentColor;border-right:2px solid currentColor;transform:rotate(45deg)}.mobile-status{font-size:11px;color:#6c655a}.mobile-ongoing{display:flex;flex-direction:column;gap:5px;border:1px solid var(--line-ink);background:var(--line-paper);color:var(--line-ink);border-radius:8px;padding:12px;margin-top:10px;text-decoration:none;font-size:12px}.mobile-ongoing>small{font-size:10px;text-transform:uppercase;letter-spacing:.5px}.mobile-ongoing>strong{font-size:14px}header{padding:15px 4%;gap:14px}header>a.brand{font-size:24px}header .brand img{width:76px;height:45px}nav{width:100%;gap:7px 12px;font-size:12px}nav form{margin-left:auto}nav button{padding:7px 10px;font-size:12px}main{padding:24px 4%}h1{font-size:30px}.topline{gap:0}.topline .button{margin-bottom:15px}.filters{gap:10px;align-items:stretch}.filters label{min-width:0;flex-basis:100%}.filters button{align-self:flex-start}.calendar-toolbar{gap:10px}.calendar-toolbar .button{white-space:nowrap;padding:8px 10px;font-size:12px}.calendar-legend{gap:8px;font-size:10px}.calendar-legend>span{gap:5px}.calendar-legend img{width:21px;height:21px}.weeknav{gap:12px;font-size:11px}.weeknav strong{font-size:14px}}
@media(max-width:700px){.filters label{flex:1 1 calc(50% - 5px);font-size:11px;gap:5px}.filters input{font-size:14px;padding:8px;min-width:0}.filters button{padding:8px 14px;font-size:12px}.calendar-toolbar{margin-top:16px}.weeknav{margin:18px 0}.topline h1{font-size:28px;margin-bottom:15px}.topline .button{padding:9px 13px;font-size:12px;margin-bottom:14px}}
.next-free-card{display:flex;justify-content:space-between;gap:25px;align-items:center;background:#eaf3e8;border:1px solid #99b88e;border-radius:10px;padding:20px;margin:24px 0}.next-free-card .eyebrow{margin:0 0 7px;color:#456d39}.next-free-time{font-size:23px;line-height:1.3;color:#294b22}.next-free-card p{margin:8px 0 0}.next-free-card form{min-width:205px;margin:0}.next-free-card label{margin-bottom:10px}.absence-tag{display:block;font-size:10px;line-height:1.4;padding:5px 7px;border-radius:5px;background:#f5e8ee;color:#7b3a55;border:1px solid #dec0ce;margin:5px 0;overflow-wrap:anywhere}.absence-tag.closed-tag{background:#f7dfd9;color:#8b3828;border-color:#d9a99d}.checkbox-label{display:flex;flex-direction:row;align-items:center;gap:10px}.checkbox-label input{width:auto;flex-shrink:0}.absence-list-item{border-bottom:1px solid #e0d7ca;padding:15px 0;display:flex;align-items:center;justify-content:space-between;gap:18px}.absence-list-item p{font-size:13px;margin:6px 0}.absence-actions{display:flex;gap:8px;flex-wrap:wrap}.absence-actions form{margin:0}@media(max-width:700px){.next-free-card{display:block;margin:18px 0;padding:15px}.next-free-time{font-size:20px}.next-free-card form{margin-top:16px;min-width:0}.next-free-card form label{font-size:12px}.next-free-card form input{max-width:140px}.absence-tag{font-size:12px}.absence-list-item{display:block}.absence-actions{margin-top:10px}}
/* Calendar layout: one fluid desktop/tablet grid, separate phone agenda. */
.availability-details{margin:8px 0;background:#eaf3e8;border:1px solid #99b88e;border-radius:6px}
.availability-details>summary{padding:7px 10px;font-size:12px;color:#294b22;overflow-wrap:anywhere}
.availability-details>summary>span{font-size:10px;margin-left:12px;text-decoration:underline}
.availability-details .next-free-card{border:0;margin:0;padding:10px}
.absence-tag.school-tag{background:#e5eef5;color:#365b78;border-color:#b7cddd}
@media(min-width:701px){
body:has(.slot-calendar) header{padding:5px 2%;gap:8px;flex-direction:row;align-items:center;flex-wrap:wrap}
body:has(.slot-calendar) header>a.brand{font-size:21px;gap:8px}
body:has(.slot-calendar) header .brand img{width:58px;height:34px}
body:has(.slot-calendar) header small{font-size:10px}
body:has(.slot-calendar) nav{gap:12px;font-size:12px;flex-wrap:wrap}
body:has(.slot-calendar) button{padding:5px 9px;font-size:12px}
body:has(.slot-calendar) main{max-width:none;padding:7px 2% 3px}
body:has(.slot-calendar) .topline{flex-direction:row;align-items:center;gap:8px}
body:has(.slot-calendar) .topline .eyebrow{font-size:9px;line-height:1.2;margin:0}
body:has(.slot-calendar) h1{font-size:23px;margin:2px 0 5px}
body:has(.slot-calendar) .topline .button{padding:6px 10px;font-size:12px}
body:has(.slot-calendar) .filters{gap:10px;flex-wrap:nowrap}
body:has(.slot-calendar) .filters label{min-width:0;margin:0;gap:2px;font-size:10px;line-height:1.2}
body:has(.slot-calendar) .filters input{min-width:0;padding:4px 7px;font-size:13px}
.calendar-toolbar{margin:4px 0 0;gap:8px}
.calendar-legend{font-size:10px;gap:12px}
.calendar-legend>span{gap:4px}
.calendar-legend img{width:20px;height:20px}
.calendar-toolbar .button{padding:3px 8px;font-size:10px}
.weeknav{margin:4px 0;font-size:11px}
.calendar-scroll-hint{display:none}
.fourweek-scroll{overflow:visible;padding:0}
.fourweek-focus{min-width:0;--focus-columns:minmax(0,1fr) minmax(0,3fr) minmax(0,1fr) minmax(0,1fr) minmax(0,3fr) minmax(0,1fr) minmax(0,1fr)}
.focus-week{padding:3px;margin-bottom:4px;border-radius:5px}
.focus-days,.stay-track{gap:4px}
.focus-days .calendar-day,.focus-days .workday{min-width:0;min-height:32px;padding:3px 4px;border-radius:4px}
.focus-days .day-heading{margin-bottom:2px;flex-wrap:nowrap}
.focus-days .day-heading h2,.focus-days .workday .day-heading h2{font:600 11px/1.2 system-ui;gap:3px;flex-wrap:wrap}
.today-label{display:none}
.focus-days .day-empty{font-size:9px;line-height:1.2}
.focus-days .calendar-event{display:grid;grid-template-columns:57px minmax(0,1fr) minmax(0,1fr);align-items:center;gap:3px;padding:2px 4px;margin-bottom:2px;min-height:23px;border-radius:4px;box-shadow:none}
.focus-days .event-kind{grid-row:auto;gap:3px;flex-direction:row;align-items:center}
.focus-days .event-label{display:none}
.focus-days .event-icon,.focus-days .event-icon img{width:18px;height:18px}
.focus-days .event-kind time{font-size:11px}
.focus-days .calendar-event>strong,.focus-days .event-customer{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:11px;line-height:1.2}
.focus-days .calendar-event>small{display:none}
.focus-days .quiet-day .calendar-event{grid-template-columns:minmax(0,1fr);gap:0;padding:2px}
.focus-days .quiet-day .event-customer{display:none}
.week-stays{padding-top:1px}
.stay-track{min-height:13px;margin-top:1px}
.stay-line{font-size:10px;line-height:1;padding:1px 5px;box-shadow:none;border-radius:5px;gap:4px}
.stay-start,.stay-end{font-size:9px;line-height:1}
.absence-tag{font-size:9px;line-height:1.2;padding:2px 3px;margin:2px 0}
.desktop-calendar-note{font-size:9px;line-height:1.2;margin:3px 0}
body:has(.slot-calendar) main>p.muted:last-child{font-size:9px;line-height:1.2;margin:3px 0}
body:has(.slot-calendar) footer{padding:4px 2%;font-size:10px}
}
@media(min-width:701px) and (max-width:1000px){
.focus-days .calendar-event{grid-template-columns:55px minmax(0,1fr)}
.focus-days .event-customer{grid-column:2;font-size:10px}
.focus-days .event-kind{grid-row:span 2}
.focus-days .quiet-day .event-kind{grid-row:auto}
}
@media(max-width:700px){
.availability-details>summary{font-size:12px;padding:9px}
.availability-details>summary>span{display:block;margin:3px 0 0 14px}
.availability-details .next-free-card form{min-width:0}
body:has(.mobile-calendar) main{padding-top:12px}
.mobile-week{padding:10px;margin-bottom:12px}
.mobile-date-strip{margin-bottom:12px}
.mobile-event{padding:9px;gap:5px}
}
.focus-days .outside-month{background:#eeeae3;opacity:.65}
@media(max-width:700px){
.mobile-staying-list{margin:7px 0 0}
.mobile-staying-list>summary{font-size:12px;padding:7px 0;color:#6a6358}
.mobile-staying-list .mobile-ongoing{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:2px 8px;padding:7px 9px;margin-top:5px;border-radius:5px;font-size:11px}
.mobile-staying-list .mobile-ongoing>small{display:none}
.mobile-staying-list .mobile-ongoing>strong{font-size:12px}
.mobile-staying-list .mobile-journey{grid-column:1/-1;padding:3px 0;margin:0}
.mobile-staying-list .mobile-journey small{display:none}
.mobile-staying-list .mobile-journey>span{font-size:10px;gap:0}
.mobile-week>h2{font-size:14px;margin:0 0 7px}
.mobile-date-strip{margin-bottom:9px}
.mobile-date-strip>span{padding:4px 1px;gap:1px}
.mobile-day{margin:0 0 9px}
.mobile-day>h3{margin-bottom:5px;font-size:12px}
.mobile-event{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);padding:6px 8px;gap:3px 7px;margin-bottom:5px;border-radius:5px}
.mobile-event-top{grid-column:1/-1;gap:5px}
.mobile-event-top .event-icon,.mobile-event-top .event-icon img{width:22px;height:22px}
.mobile-event-top>strong{font-size:11px}
.mobile-event-top>time{font-size:17px}
.mobile-vehicle{font-size:13px;line-height:1.2}
.mobile-event>span{font-size:11px;line-height:1.2}
.mobile-event .mobile-journey{grid-column:1/-1;padding:4px 6px;margin:0}
.mobile-event .mobile-journey>span{font-size:10px;gap:1px}
.mobile-event .mobile-journey b{font-size:11px}
.mobile-event .mobile-journey small{font-size:9px}
.mobile-status{display:none}
.mobile-empty{font-size:11px}
}
@media(min-width:701px){
.focus-days .day-heading h2,.focus-days .workday .day-heading h2{font-size:10px;gap:2px;flex-wrap:nowrap}
.absence-tag{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
.focus-days .calendar-day{overflow:hidden}
.stay-track{min-height:12px}
.stay-line{font-size:10px;line-height:1;padding:0 5px;min-height:12px}
}
@media(max-width:700px){
body:has(.mobile-calendar) header{padding:7px 3%;gap:6px}
body:has(.mobile-calendar) header>a.brand{font-size:19px;gap:8px}
body:has(.mobile-calendar) header .brand img{width:54px;height:32px}
body:has(.mobile-calendar) header small{font-size:9px}
body:has(.mobile-calendar) nav{gap:5px 10px;font-size:10px;align-items:center}
body:has(.mobile-calendar) nav button{padding:3px 6px;font-size:10px}
body:has(.mobile-calendar) nav form{margin-left:0}
body:has(.mobile-calendar) main{padding:8px 3%}
body:has(.mobile-calendar) .topline{flex-direction:row;align-items:center;gap:5px}
body:has(.mobile-calendar) .topline .eyebrow{font-size:8px;line-height:1.1;margin:0}
body:has(.mobile-calendar) .topline h1{font-size:21px;line-height:1.1;margin:3px 0 7px}
body:has(.mobile-calendar) .topline .button{padding:5px 7px;font-size:10px;white-space:nowrap;margin:0}
body:has(.mobile-calendar) .filters{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.2fr) auto;gap:6px;align-items:end}
body:has(.mobile-calendar) .filters label{font-size:9px;gap:2px;margin:0;min-width:0}
body:has(.mobile-calendar) .filters input{font-size:12px;padding:5px 3px;min-width:0;height:30px}
body:has(.mobile-calendar) .filters button{font-size:10px;padding:7px 6px;align-self:end;height:30px}
.availability-details{margin:6px 0}
.availability-details>summary{padding:6px 7px;font-size:10px;line-height:1.3}
.availability-details>summary>span{font-size:9px;display:inline;margin:0 0 0 5px}
.calendar-toolbar{margin:3px 0;align-items:center;gap:4px}
.calendar-legend{font-size:9px;gap:5px}
.calendar-legend img{width:17px;height:17px}
.calendar-toolbar .button{padding:4px 6px;font-size:9px}
.weeknav{margin:6px 0 8px;gap:5px;font-size:10px}
.weeknav strong{font-size:15px}
.mobile-week{padding:7px 8px;margin-bottom:8px;border-radius:7px}
.mobile-week>h2{font-size:12px;margin-bottom:5px}
.mobile-date-strip{margin-bottom:6px;gap:3px}
.mobile-date-strip>span{padding:3px 1px;gap:0;font-size:9px}
.mobile-date-strip strong{font-size:11px}
.mobile-day{margin-bottom:6px}
.mobile-day>h3{font-size:11px;margin-bottom:3px}
.mobile-empty{font-size:10px}
.mobile-event{padding:4px 6px;gap:2px 6px;margin-bottom:4px}
.mobile-event-top .event-icon,.mobile-event-top .event-icon img{width:18px;height:18px}
.mobile-event-top>time{font-size:15px}
.mobile-event-top>strong{font-size:10px}
.mobile-vehicle{font-size:12px}
.mobile-event>span{font-size:10px}
.mobile-event .mobile-journey{padding:2px 4px}
.mobile-event .mobile-journey small{display:none}
.mobile-staying-list{margin-top:3px}
.mobile-staying-list>summary{font-size:10px;padding:4px 0}
}
@media(min-width:701px){
.focus-days .calendar-day,.focus-days .workday{min-height:22px;padding:2px 4px}
.focus-days .day-empty{display:none}
.focus-days .outside-month .calendar-event,.focus-days .outside-month .absence-tag{display:none}
.focus-days .calendar-event{grid-template-columns:53px minmax(0,1fr) minmax(0,1fr);min-height:21px;padding:1px 3px;gap:2px}
.focus-days .event-kind{grid-row:auto}
.focus-days .event-customer{grid-column:auto;font-size:10px}
.focus-days .quiet-day .calendar-event{grid-template-columns:minmax(0,1fr)}
.focus-days .quiet-day .event-kind{grid-row:auto}
.focus-days .quiet-day .event-customer{display:none}
}
.calendar-help{margin:5px 0;font-size:10px}
.calendar-help>summary{font-size:10px;text-transform:uppercase;letter-spacing:.5px;color:#6a6358;padding:4px 0}
.calendar-help .calendar-legend{margin:8px 0}
.weeknav{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:8px}
.weeknav>a{display:block;padding:6px 9px;border:1px solid #d3c6ae;border-radius:4px;background:#fffdf7;text-decoration:none;text-align:center;font-size:11px}
.weeknav>a:last-child{justify-self:stretch}
.weeknav>strong{text-align:center;font-size:17px}
.focus-days .day-heading{position:relative}
.focus-days .today-label{display:inline-block;font-size:7px;line-height:1;padding:2px 3px}
.focus-days .quiet-day .today-label{font-size:0;width:5px;height:5px;padding:0;border-radius:50%;background:#b78a29;flex-shrink:0}
@media(min-width:701px){
body:has(.slot-calendar) .filters select{font-size:13px;padding:4px 7px;min-width:0;height:27px}
.weeknav{margin:5px 0}
.weeknav>a{padding:4px 8px}
}
@media(max-width:700px){
body:has(.mobile-calendar) .filters select{font-size:12px;padding:5px 3px;min-width:0;height:30px}
.weeknav{margin:6px 0;grid-template-columns:1fr auto 1fr;gap:5px}
.weeknav>a{font-size:9px;padding:5px 4px}
.weeknav>strong{font-size:13px;order:0;flex-basis:auto;white-space:nowrap}
}
/* Strong week separation without an extra heading row. */
.week-number{display:none}
@media(min-width:701px){
.focus-week{display:grid;grid-template-columns:32px minmax(0,1fr);column-gap:5px;border:1px solid #8d9794;background:#dce2df;border-radius:5px;margin-bottom:5px;padding:3px}
.focus-week:nth-child(even){background:#d5dcdf}
.week-number{display:flex;grid-column:1;grid-row:1/3;align-items:center;justify-content:flex-start;flex-direction:column;gap:2px;padding:5px 1px;background:#343d3b;color:#fff;border-radius:3px}
.week-number>span{font-size:9px;line-height:1;letter-spacing:.5px;color:#e1d1a5}
.week-number>strong{font-size:15px;line-height:1.1;font-variant-numeric:tabular-nums}
.focus-days,.week-stays{grid-column:2;min-width:0}
.focus-days{grid-row:1}
.week-stays{grid-row:2}
.focus-days .calendar-day{background:#f4f5f2;border-color:#bdc5c0}
.focus-days .workday{background:#fffdf7;border-color:#bda36b}
.focus-days .outside-month{opacity:.72;background:#e6e8e3}
.focus-days .calendar-day.is-today{background:#fff2c7;border-color:#a77918}
.event-icon{background:transparent;border-radius:50%}
}
.mobile-kw{display:inline-block;background:#343d3b;color:#fff;padding:2px 5px;border-radius:3px;margin-right:4px;font-size:10px;line-height:1.1}
@media(max-width:700px){
.mobile-week{border-color:#8d9794;background:#fdfdf9;border-left:3px solid #596963}
.mobile-week>h2{display:flex;align-items:center;gap:3px}
.event-icon{background:transparent;border-radius:50%}
}
/* Compact stay editor; hidden fields never occupy form-grid cells. */
body:has(.stay-editor) header{padding:7px 3%;gap:10px;flex-direction:row;align-items:center;flex-wrap:wrap}
body:has(.stay-editor) header>a.brand{font-size:22px;gap:9px}
body:has(.stay-editor) header .brand img{width:64px;height:37px}
body:has(.stay-editor) nav{gap:13px;font-size:12px;flex-wrap:wrap}
body:has(.stay-editor) nav button{font-size:12px;padding:5px 9px}
body:has(.stay-editor) main{max-width:1450px;padding:12px 3% 5px}
body:has(.stay-editor) .topline{flex-direction:row;align-items:center;gap:12px}
body:has(.stay-editor) .topline .eyebrow{font-size:9px;margin:0}
body:has(.stay-editor) h1{font-size:27px;margin:3px 0 8px}
body:has(.stay-editor) .topline .button{font-size:12px;padding:6px 10px;margin:0}
.stay-editor.panel{padding:15px 18px;margin:10px 0}
.stay-editor h2{font-size:22px;margin:0 0 12px}
.stay-editor label{font-size:11px;gap:4px;margin-bottom:10px;min-width:0}
.stay-editor input,.stay-editor select,.stay-editor textarea{font-size:14px;padding:6px 8px;min-width:0;width:100%}
.stay-editor input,.stay-editor select{height:34px}
.stay-editor .formgrid{gap:0 14px}
.stay-editor textarea{min-height:46px;line-height:1.3}
.stay-editor button{padding:7px 15px;font-size:13px}
.stay-editor details{margin-top:10px;font-size:12px}
.stay-editor details>summary{font-size:12px}
.stay-editor .stay-forecast{border-top:1px solid #ded7ca;padding-top:9px}
body:has(.stay-editor) footer{padding:6px 3%;font-size:10px}
@media(min-width:1000px){.stay-editor fieldset:first-of-type .formgrid{grid-template-columns:repeat(4,minmax(0,1fr))}.stay-editor fieldset:nth-of-type(2) .formgrid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(min-width:600px) and (max-width:999px){.stay-editor .formgrid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:599px){
body:has(.stay-editor) header>a.brand{font-size:19px}
body:has(.stay-editor) header .brand img{width:54px;height:32px}
body:has(.stay-editor) nav{font-size:10px;gap:6px 10px}
body:has(.stay-editor) nav button{font-size:10px;padding:3px 6px}
body:has(.stay-editor) nav form{margin-left:0}
body:has(.stay-editor) main{padding:8px 3%}
body:has(.stay-editor) h1{font-size:22px}
body:has(.stay-editor) .topline .button{font-size:10px;padding:5px 7px}
.stay-editor.panel{padding:10px;margin:7px 0}
.stay-editor h2{font-size:19px;margin-bottom:9px}
.stay-editor label{margin-bottom:7px;font-size:10px;gap:3px}
.stay-editor input,.stay-editor select,.stay-editor textarea{font-size:13px;padding:5px 7px}
.stay-editor .formgrid{gap:0 10px}
}
.weeknav{display:flex;justify-content:flex-start;align-items:center;gap:5px;margin:6px 0}
.weeknav>strong{order:0;flex:0 0 auto;text-align:left;font-size:17px;margin-right:8px}
.weeknav>a,.weeknav>a:last-child{flex:0 0 27px;width:27px;height:25px;padding:0;display:inline-flex;align-items:center;justify-content:center;font:23px/1 system-ui;border:1px solid #b8b0a3;border-radius:4px;background:#fffdf7}
.weeknav>a:hover{background:#e8dfcd;border-color:#9e7a31}
@media(max-width:700px){.weeknav{margin:5px 0 7px;gap:5px}.weeknav>strong{font-size:16px;flex-basis:auto;margin-right:5px}.weeknav>a,.weeknav>a:last-child{width:28px;flex-basis:28px;height:27px}}
.weeknav>a svg{display:block;flex-shrink:0;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.weeknav>a,.weeknav>a:last-child{line-height:0}
/* One compact weekly agenda on every screen. */
.fourweek-scroll,.desktop-calendar-note,.calendar-scroll-hint{display:none!important}
.mobile-calendar{display:grid;grid-template-columns:minmax(0,1fr);gap:8px;align-items:start}
.mobile-week{min-width:0;background:#fffefa;border:1px solid #89978f;border-left:3px solid #596963;border-radius:6px;padding:7px 8px;margin:0}
.mobile-week>h2{display:flex;align-items:center;gap:4px;font:600 12px/1.2 system-ui;margin:0 0 6px}
.mobile-date-strip{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:3px;margin-bottom:7px}
.mobile-date-strip>span{display:flex;flex-direction:column;align-items:center;gap:0;background:#efebe4;border-radius:4px;padding:3px 1px;font-size:9px;color:#615b51}
.mobile-date-strip strong{font-size:11px}
.mobile-date-strip .key-date{background:#f2e5c2;color:#674d17}
.mobile-date-strip .current-date{outline:2px solid #b88c2e;outline-offset:-2px}
.mobile-day{margin:0 0 6px}
.mobile-day>h3{font:600 10px/1.2 system-ui;margin:0 0 3px;padding-left:7px;border-left:3px solid #c9c2b5}
.key-mobile-day>h3{border-color:#c49a3a}
.mobile-empty{font-size:10px;color:#746c5e;margin:0 0 0 10px}
.mobile-event{display:grid;grid-template-columns:62px minmax(0,1fr) minmax(0,1fr);gap:2px 6px;align-items:center;min-width:0;border:1px solid #b4d9c2;border-left:3px solid #24845f;border-radius:4px;padding:4px 6px;margin-bottom:4px;text-decoration:none;overflow-wrap:anywhere}
.mobile-event.event-out{border-color:#bed0e9;border-left-color:#3977be}
.mobile-event-top{grid-column:1;grid-row:1/3;display:flex;align-items:center;gap:4px;min-width:0}
.mobile-event-top>.event-icon,.mobile-event-top>.event-icon img{display:block;width:20px;height:20px;background:transparent;flex-shrink:0}
.mobile-event-top>strong{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.mobile-event-top>time{font-size:14px;line-height:1;font-weight:750;margin:0;font-variant-numeric:tabular-nums}
.mobile-event.event-in .mobile-event-top{color:#176b4c}
.mobile-event.event-out .mobile-event-top{color:#245da3}
.mobile-vehicle{grid-column:2;grid-row:1;font-size:11px;line-height:1.2;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.mobile-event>span{grid-column:3;grid-row:1;font-size:10px;line-height:1.2;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.mobile-event .mobile-journey{grid-column:2/4;grid-row:2;display:flex;align-items:center;justify-content:space-between;gap:5px;min-width:0;margin:0;padding:2px 0;border-radius:0;background:transparent;color:var(--line-ink,#514c42)}
.mobile-event .mobile-journey>span:not(.journey-connection){display:flex;flex-direction:row;align-items:baseline;gap:3px;font-size:9px;line-height:1.1;white-space:nowrap;font-variant-numeric:tabular-nums}
.mobile-event .mobile-journey b{font-size:9px;line-height:1.1}
.mobile-event .mobile-journey small,.mobile-status{display:none}
.journey-connection{flex:1;min-width:10px;height:1px;background:currentColor;position:relative;font-size:0}
.journey-connection:before{content:'';position:absolute;width:4px;height:4px;border-radius:50%;background:currentColor;left:0;top:-1.5px}
.journey-connection:after{content:'';position:absolute;right:0;top:-2px;width:5px;height:5px;border-top:1px solid currentColor;border-right:1px solid currentColor;transform:rotate(45deg)}
.mobile-staying-list{margin:3px 0 0}
.mobile-staying-list>summary{font-size:10px;color:#6a6358;padding:4px 0}
.mobile-staying-list .mobile-ongoing{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:2px 7px;border:1px solid var(--line-ink);background:var(--line-paper);color:var(--line-ink);padding:5px 7px;margin-top:4px;border-radius:4px;text-decoration:none;font-size:10px}
.mobile-staying-list .mobile-ongoing>small{display:none}
.mobile-staying-list .mobile-ongoing>strong{font-size:11px}
.mobile-staying-list .mobile-journey{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;gap:6px;padding:2px 0;margin:0}
.mobile-staying-list .mobile-journey small{display:none}
.absence-tag{font-size:10px;line-height:1.2;padding:3px 5px;margin:3px 0}
@media(min-width:701px){.mobile-calendar{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(min-width:1100px){.mobile-calendar{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:380px){.mobile-event{grid-template-columns:57px minmax(0,1fr) minmax(0,1fr);gap:2px 4px;padding:4px}.mobile-event-top>time{font-size:12px}.mobile-event-top>.event-icon,.mobile-event-top>.event-icon img{width:18px;height:18px}.mobile-event .mobile-journey>span:not(.journey-connection){flex-direction:column;gap:0}}
.mobile-event-top>img{display:block;width:20px;height:20px;flex:0 0 20px;object-fit:contain}.mobile-event-top>time{white-space:nowrap;flex-shrink:0}@media(max-width:380px){.mobile-event-top>img{width:18px;height:18px;flex-basis:18px}}
.slot-calendar{display:grid;grid-template-columns:minmax(0,1fr);gap:8px;align-items:start}
.slot-week{min-width:0;border:1px solid #89978f;border-left:3px solid #596963;background:#fffefa;border-radius:6px;padding:7px 8px}
.slot-week>h2{display:flex;align-items:center;gap:4px;font:600 12px/1.2 system-ui;margin:0 0 6px}
.slot-dates,.slot-row{display:grid;grid-template-columns:30px minmax(0,1fr);gap:5px}
.slot-axis{font-size:9px;align-self:center;color:#615b51}
.slot-seven{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:2px;min-width:0}
.slot-date{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;background:#efebe4;border-radius:4px;padding:3px 0;color:#615b51;min-width:0;line-height:1.15}
.slot-date>small{font-size:9px}.slot-date>b{font-size:11px}
.slot-date.key-date{background:#f2e5c2;color:#674d17}
.slot-date.current-date{outline:2px solid #b88c2e;outline-offset:-2px}
.slot-date.staff-closed{background:#f4d4d0;color:#822c23;border:1px solid #c8887f}
.slot-date.staff-one,.slot-date.staff-partial{background:#fae7be;color:#79520d;border:1px solid #d6b16a}
.slot-staff{font-size:8px;line-height:1.1;text-align:center;overflow-wrap:anywhere;margin-top:2px}
.slot-row{border-bottom:1px solid #e1e4df;min-height:44px;padding:3px 0}
.slot-label{font-size:13px;font-weight:700;align-self:center;text-align:center;color:#45574f}
.slot-content{min-width:0;display:flex;flex-direction:column;justify-content:center}
.slot-free{font-size:10px;color:#637164;line-height:1.2;margin-bottom:4px}
.slot-free-days>span,.slot-occupancy>span{height:5px;border-radius:2px;background:#edf1ea}
.slot-occupancy>span.occupied{background:var(--line-ink)}
.slot-vehicle{display:block;text-decoration:none;border:1px solid var(--line-ink);background:var(--line-paper);color:var(--line-ink);border-radius:4px;padding:3px 5px;margin-bottom:2px;min-width:0}
.slot-caption{display:flex;justify-content:space-between;gap:5px;line-height:1.2}
.slot-caption>strong{font-size:11px}.slot-caption>span{font-size:10px}
.slot-caption>*{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.slot-endpoints{display:flex;align-items:center;justify-content:space-between;gap:4px;min-height:15px;font-size:9px;line-height:1.1;margin:1px 0}
.slot-endpoints>span{display:flex;align-items:center;gap:3px;white-space:nowrap}
.slot-in{color:#176b4c}.slot-out{color:#245da3}.slot-late{color:#9c3429}
.slot-endpoints img{width:13px;height:13px}
.slot-dim{opacity:.45}
.slot-unassigned{background:#fff0cd;color:#79520d;padding:5px;font-size:10px;margin-top:4px}.slot-unassigned small{display:block}
.slot-week-notes{font-size:9px;color:#3b607c;margin-top:4px;display:flex;flex-wrap:wrap;gap:3px 8px}
.slot-explanation{font-size:10px;color:#6a6358;margin:5px 0}
@media(min-width:701px){.slot-calendar{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(min-width:1100px){.slot-calendar{grid-template-columns:repeat(3,minmax(0,1fr))}}
.slot-row.slot-lanes-1{min-height:44px}
.slot-row.slot-lanes-2{min-height:86px}
.slot-row.slot-lanes-3{min-height:128px}
.slot-row.slot-lanes-4{min-height:170px}
.slot-row.slot-lanes-5{min-height:212px}
.slot-row.slot-lanes-6{min-height:254px}
.slot-row.slot-lanes-7{min-height:296px}
.slot-row.slot-lanes-8{min-height:338px}
.slot-row.slot-lanes-9{min-height:380px}
.slot-row.slot-lanes-10{min-height:422px}
.slot-row.slot-lanes-11{min-height:464px}
.slot-row.slot-lanes-12{min-height:506px}
.slot-row.slot-lanes-13{min-height:548px}
.slot-row.slot-lanes-14{min-height:590px}
.slot-row.slot-lanes-15{min-height:632px}
.slot-row.slot-lanes-16{min-height:674px}
.slot-row.slot-lanes-17{min-height:716px}
.slot-row.slot-lanes-18{min-height:758px}
.slot-row.slot-lanes-19{min-height:800px}
.slot-row.slot-lanes-20{min-height:842px}
.slot-row.slot-lanes-21{min-height:884px}
.slot-row.slot-lanes-22{min-height:926px}
.slot-row.slot-lanes-23{min-height:968px}
.slot-row.slot-lanes-24{min-height:1010px}
.slot-row.slot-lanes-25{min-height:1052px}
.slot-row.slot-lanes-26{min-height:1094px}
.slot-row.slot-lanes-27{min-height:1136px}
.slot-row.slot-lanes-28{min-height:1178px}
.slot-row.slot-lanes-29{min-height:1220px}
.slot-row.slot-lanes-30{min-height:1262px}
.slot-row.slot-lanes-31{min-height:1304px}
.slot-row.slot-lanes-32{min-height:1346px}
.slot-date{height:52px}
.slot-row{min-height:40px;padding:2px 0}
.slot-vehicle{padding:2px 5px}
.slot-endpoints{min-height:13px}
.slot-free-days>span,.slot-occupancy>span{height:4px}
.slot-row.slot-lanes-1{min-height:40px}
.slot-row.slot-lanes-2{min-height:76px}
.slot-row.slot-lanes-3{min-height:112px}
.slot-row.slot-lanes-4{min-height:148px}
.slot-row.slot-lanes-5{min-height:184px}
.slot-row.slot-lanes-6{min-height:220px}
.slot-row.slot-lanes-7{min-height:256px}
.slot-row.slot-lanes-8{min-height:292px}
.slot-row.slot-lanes-9{min-height:328px}
.slot-row.slot-lanes-10{min-height:364px}
.slot-row.slot-lanes-11{min-height:400px}
.slot-row.slot-lanes-12{min-height:436px}
.slot-row.slot-lanes-13{min-height:472px}
.slot-row.slot-lanes-14{min-height:508px}
.slot-row.slot-lanes-15{min-height:544px}
.slot-row.slot-lanes-16{min-height:580px}
.slot-row.slot-lanes-17{min-height:616px}
.slot-row.slot-lanes-18{min-height:652px}
.slot-row.slot-lanes-19{min-height:688px}
.slot-row.slot-lanes-20{min-height:724px}
.slot-row.slot-lanes-21{min-height:760px}
.slot-row.slot-lanes-22{min-height:796px}
.slot-row.slot-lanes-23{min-height:832px}
.slot-row.slot-lanes-24{min-height:868px}
.slot-row.slot-lanes-25{min-height:904px}
.slot-row.slot-lanes-26{min-height:940px}
.slot-row.slot-lanes-27{min-height:976px}
.slot-row.slot-lanes-28{min-height:1012px}
.slot-row.slot-lanes-29{min-height:1048px}
.slot-row.slot-lanes-30{min-height:1084px}
.slot-row.slot-lanes-31{min-height:1120px}
.slot-row.slot-lanes-32{min-height:1156px}
.workload-card{margin:6px 0;border:1px solid #c1a469;background:#fff4dc;border-radius:5px;padding:6px 9px;font-size:11px}.workload-card>summary{font-size:11px}.workload-card p{margin:5px 0;font-size:10px}.workload-item{display:block;font-size:11px;padding:3px 0}.stay-editor input[name="remaining_hours"]{min-width:0}
.slot-rows{position:relative}
.slot-closure-shade{position:absolute;inset:0 0 0 35px;display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:2px;z-index:2;pointer-events:none}
.slot-closure-shade>.closed-column{background:rgba(199,57,44,.19);border-left:1px solid rgba(171,45,34,.45);border-right:1px solid rgba(171,45,34,.45)}
.slot-date.staff-closed{background:#ebafa7;color:#6f1f18;border-color:#b34a3e}
.slot-date.staff-closed .slot-staff{font-weight:800;font-size:10px;text-transform:uppercase}
.slot-closure-shade>.limited-column{background:rgba(229,160,35,.20);border-left:1px solid rgba(187,123,14,.45);border-right:1px solid rgba(187,123,14,.45)}
.slot-school-strip{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:2px;margin:0 0 3px 35px;min-height:12px}.school-line{grid-row:1;background:#d9eaf7;color:#285875;border-top:2px solid #4b8bb3;border-radius:3px;font-size:9px;line-height:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding:0 3px}
.slot-endpoints.has-day-events{display:none}
.slot-occupancy>span{height:19px;position:relative;background:transparent}
.slot-occupancy>span:after{content:'';position:absolute;left:0;right:0;bottom:0;height:4px;border-radius:2px;background:#edf1ea}
.slot-occupancy>span.occupied{background:transparent}
.slot-occupancy>span.occupied:after{background:var(--line-ink)}
.slot-day-events{display:flex;align-items:center;justify-content:center;gap:1px;position:relative;z-index:1;min-width:0}
.slot-day-events>span{display:flex;align-items:center;gap:1px;min-width:0}
.slot-day-events img{display:block;width:12px;height:12px;flex-shrink:0}
.slot-day-events time{font-size:8px;line-height:1;white-space:nowrap;font-weight:700;letter-spacing:-.3px}
.slot-closure-shade{z-index:0}.slot-row{position:relative}.slot-content{position:relative;z-index:1}.slot-vehicle{background:color-mix(in srgb,var(--line-paper) 78%,transparent)}
/* Diagonal hatching distinguishes absence columns beyond their color. */
.slot-closure-shade>.closed-column{background:repeating-linear-gradient(135deg,rgba(166,41,31,.19) 0,rgba(166,41,31,.19) 2px,transparent 2px,transparent 8px),rgba(199,57,44,.14)}
.slot-closure-shade>.limited-column{background:repeating-linear-gradient(135deg,rgba(168,109,12,.20) 0,rgba(168,109,12,.20) 2px,transparent 2px,transparent 8px),rgba(229,160,35,.15)}
/* Keep controls proportional instead of stretching them across wide monitors. */
@media(min-width:701px){
body:has(.slot-calendar) .filters{display:grid;grid-template-columns:220px minmax(240px,420px) auto;gap:10px;justify-content:start;align-items:end;width:max-content;max-width:100%}
body:has(.slot-calendar) .filters label{width:100%;min-width:0}
body:has(.slot-calendar) .filters button{white-space:nowrap}
body:has(.slot-calendar) .availability-details,body:has(.slot-calendar) .workload-card{width:fit-content;min-width:420px;max-width:760px}
body:has(.slot-calendar) .availability-details[open],body:has(.slot-calendar) .workload-card[open]{width:min(760px,100%)}
}
@media(min-width:701px) and (max-width:850px){body:has(.slot-calendar) .filters{grid-template-columns:190px minmax(220px,1fr) auto;width:100%;max-width:670px}}
.slot-date.staff-closed .slot-staff{white-space:nowrap;font-size:clamp(6px,1.8vw,9px);letter-spacing:-.25px;max-width:100%}

.calendar-menu .workshop-icon{display:inline-block;vertical-align:-.2em;width:15px;height:15px}
.calendar-menu a,.calendar-menu button{white-space:nowrap}
@media(max-width:620px){.calendar-menu{gap:4px 8px}.calendar-menu .workshop-icon{width:13px;height:13px}}
header .calendar-menu{gap:3px 5px;font-size:12px}
header .calendar-menu a,header .calendar-menu button{display:inline-flex;align-items:center;gap:5px;padding:4px 8px;border-radius:4px;text-decoration:none}
header .calendar-menu a:hover,header .calendar-menu a[aria-current="page"]{background:#3e392d;color:#f2dc9c}
header .calendar-menu a[aria-current="page"]{box-shadow:inset 0 -2px var(--gold)}
@media(max-width:620px){header .calendar-menu{gap:2px}header .calendar-menu a,header .calendar-menu button{padding:4px 5px}}
.arrival-notice{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:6px 12px;margin:6px 0;padding:7px 10px;border:1px solid #c59b51;border-left:4px solid #8c6722;border-radius:6px;background:#faf0d7;color:#503b16}
.arrival-notice p{margin:2px 0;font-size:13px}.arrival-notice small{display:block;margin-top:2px}
.arrival-notice form{display:flex;flex-wrap:wrap;gap:5px;margin:0}
.arrival-notice button{font-size:12px;padding:5px 8px}
