/* Source Sans 3 is bundled under the SIL Open Font License in fonts/. */
@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url("fonts/source-sans-3-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C4,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url("fonts/source-sans-3-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

:root {
  color-scheme: light;
  --paper: #f5f6fa;
  --surface: #fff;
  --ink: #241f33;
  --muted: #635f73;
  --line: #e5e3ed;
  --accent: #514080;
  --accent-dark: #3e306c;
  --lavender: #eee9f8;
  --rail: #fff;
  --rail-text: #504b61;
  --bus1: #634691;
  --bus1-bg: #f1eafa;
  --bus2: #226b67;
  --bus2-bg: #e4f3f1;
  --radius: 12px;
  font-family: "Source Sans 3", system-ui, sans-serif;
  font-size: 100%;
  line-height: 1.5;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); }
button, input, select, textarea { font: inherit; }
button, select, summary { cursor: pointer; }
a { color: var(--accent-dark); text-underline-offset: .19em; }
h1,h2,h3,p { margin: 0; }
h1,h2,h3 { font-weight: 650; line-height: 1.2; }
h1 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); font-weight: 700; overflow-wrap: anywhere; }
h2 { font-size: 1.38rem; }
h3 { font-size: 1.04rem; }
p { color: var(--muted); }
small { color: var(--muted); }
:focus-visible { outline: 3px solid #806acc; outline-offset: 3px; }
[hidden] { display: none !important; }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { position: fixed; z-index: 30; top: 1rem; left: 1rem; padding: .6rem 1rem; background: var(--surface); }

.shell { display: grid; grid-template-columns: 198px minmax(0, 1fr); min-height: 100svh; }
.rail { position: sticky; top: 0; height: 100svh; display: flex; flex-direction: column; gap: 1.85rem; padding: 1.55rem .85rem 1rem; background: var(--rail); color: var(--ink); border-right: 1px solid var(--line); }
.brand { display: inline-flex; gap: .8rem; align-items: center; color: inherit; text-decoration: none; padding: .2rem .38rem; min-width: 0; }
.brand-icon { display: grid; place-items: center; flex: none; width: 42px; height: 42px; border-radius: 12px; background: #dfd5fa; color: #342552; font-size: 1.45rem; font-weight: 820; line-height: 1; }
.brand strong { display: block; font-size: 1.13rem; letter-spacing: -.02em; line-height: 1.25; }
.brand small { display: block; color: inherit; opacity: .75; font-size: .72rem; }
.main-nav { display: grid; gap: .26rem; min-height: 0; overflow: auto; }
.main-nav a { display: flex; gap: .58rem; align-items: center; color: var(--rail-text); text-decoration: none; padding: .62rem .65rem; border-radius: 8px; font-size: .9rem; font-weight: 580; }
.main-nav a span { display: grid; place-items: center; flex: none; width: 1.2rem; font-size: 1.04rem; color: var(--accent); }
.main-nav a:hover, .main-nav a[aria-current="page"] { background: var(--lavender); color: var(--accent-dark); }
.main-nav a[aria-current="page"] { font-weight: 730; }
.nav-group-label { margin: .5rem .65rem 0; padding-top: .65rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .72rem; font-weight: 700; }
.rail-bottom { margin-top: auto; border-top: 1px solid var(--line); padding: .9rem .25rem 0; }
.account-name { display: flex; align-items: center; gap: .62rem; color: var(--ink); font-size: .82rem; text-decoration: none; }
.account-name:hover .account-label strong { text-decoration: underline; }
.account-avatar { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 9px; background: var(--lavender); color: var(--accent); font-weight: 750; }
.account-label { display: grid; min-width: 0; }
.account-label strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-label small { font-size: .73rem; }
.mobile-dock { display: none; }
.main { width: 100%; min-width: 0; max-width: 1580px; justify-self: center; padding: clamp(1.1rem, 3vw, 2.45rem); }
.page-header, .page-heading { display: flex; align-items: end; justify-content: space-between; flex-wrap: wrap; gap: 1rem; margin-bottom: 1.45rem; }
.page-header p, .page-heading p { margin-top: .55rem; max-width: 68ch; }
.breadcrumb { display: inline-block; margin-bottom: .55rem; font-size: .78rem; font-weight: 720; color: var(--accent); letter-spacing: .045em; }
.auth-shell { min-height: 100svh; padding: 1.6rem 1.45rem; background: radial-gradient(ellipse at top right, #eae3f9, transparent 62%), var(--paper); }
.auth-brand { margin: .4rem; }
.auth-main { width: min(100%, 476px); margin: clamp(2rem, 12vh, 7rem) auto 2rem; }
.auth-main h1 { font-size: clamp(1.9rem, 4.5vw, 2.75rem); }
.auth-main .panel { padding: clamp(1.3rem, 4vw, 2.1rem); box-shadow: 0 12px 38px #3129490a; }
.auth-main .panel > * + * { margin-top: 1rem; }

.button { min-height: 2.45rem; display: inline-flex; flex: none; gap: .45rem; justify-content: center; align-items: center; padding: .47rem .79rem; color: #2c253d; background: var(--surface); border: 1px solid #ded9e5; border-radius: 8px; font-weight: 660; text-decoration: none; white-space: nowrap; }
.button:hover { background: #f3effa; border-color: #c4b7da; }
.button.primary, button.primary { color: white; background: var(--accent); border-color: var(--accent); }
.button.primary:hover { background: var(--accent-dark); }
.button.quiet { border-color: transparent; background: transparent; color: var(--accent-dark); }
.button.selected { background: var(--lavender); color: var(--accent-dark); border-color: #d9d0ef; }
.button.danger { color: #8b233b; }
button:disabled { cursor: not-allowed; opacity: .55; }
.panel { background: var(--surface); border-radius: var(--radius); border: 1px solid var(--line); box-shadow: 0 2px 6px #221a3607; }
.padded { padding: clamp(1rem, 2.7vw, 1.65rem); }
.main section.panel:not(.padded,.schedule,.calendar,.empty,.upcoming-card) { padding: clamp(1rem, 2.7vw, 1.65rem); }
.main > .panel + .panel { margin-top: 1rem; }
.panel > h2 + * { margin-top: .9rem; }
.details-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); column-gap: 1rem; }
.narrow { max-width: 760px; }
.stack { display: grid; gap: 1rem; }
.stack > * { min-width: 0; }
.actions, .table-tools, .move-controls { display: flex; gap: .55rem; align-items: center; flex-wrap: wrap; }
.muted { color: var(--muted); }
.connection-note, .message { padding: .75rem 1rem; border-radius: 8px; background: #f2edfa; color: #3f2d6e; overflow-wrap: anywhere; }
.connection-note { margin-bottom: 1rem; background: #fff0d6; color: #744800; }
.messages { display: grid; gap: .5rem; margin: 0 0 1rem; }
.message.success { background: #e7f4ea; color: #255739; }
.message.error, .errorlist { background: #fbe8ed; color: #851f3d; }
.errorlist { border-radius: 8px; padding: .45rem .75rem .45rem 1.7rem; margin: .3rem 0; }

.dot { display: inline-block; width: .55rem; height: .55rem; border-radius: 50%; margin-right: .25rem; background: var(--bus1); }
.dot.bus2 { background: var(--bus2); }
.dot.other { background: #82798f; }
.toolbar { display: flex; align-items: flex-start; flex-wrap: wrap; justify-content: space-between; gap: .75rem; padding: .85rem 1rem; }
.filters { display: flex; flex-wrap: wrap; gap: .5rem; align-items: start; flex: 1 1 420px; }
.search-field { flex: 1 1 10rem; }
.search-field input { width: 100%; min-width: 9rem; }
input:not([type=checkbox]):not([type=radio]), select, textarea {
  min-width: 0; min-height: 2.46rem; padding: .46rem .66rem; border-radius: 8px;
  border: 1px solid #d9d3df; background: white; color: var(--ink);
}
input[type=checkbox], input[type=radio] { width: 1.05rem; height: 1.05rem; accent-color: var(--accent); }
textarea { resize: vertical; min-height: 5.2rem; }
label { font-weight: 620; font-size: .87rem; }
label.check { display: inline-flex; gap: .42rem; align-items: center; }
label:not(.check) > input, label > select { display: block; }
form > p, .field, .form-row { display: grid; gap: .3rem; }
form > p { margin: .7rem 0; }
fieldset { border: 1px solid var(--line); border-radius: 8px; padding: .7rem; min-width: 0; margin: 0; }
legend { color: var(--accent-dark); font-weight: 690; padding: 0 .3rem; }
.advanced { flex-basis: 100%; }
.advanced summary { color: var(--accent-dark); font-size: .86rem; font-weight: 650; margin: .18rem 0; }
.advanced-fields { display: flex; flex-wrap: wrap; gap: .55rem; align-items: end; padding: .7rem 0; }
.advanced-fields fieldset { display: flex; align-items: end; gap: .5rem; flex-wrap: wrap; }
.advanced-fields input, .advanced-fields select { max-width: 100%; }
.table-wrap, .table-responsive, .table-scroll, .calendar-scroll, .planner-week-scroll { overflow-x: auto; scrollbar-color: #c4b8d5 transparent; }
table { border-collapse: collapse; width: 100%; font-size: .9375rem; text-align: left; }
th, td { padding: .68rem .72rem; vertical-align: middle; border-bottom: 1px solid var(--line); }
th { color: #4d465c; background: #f6f4fa; font-size: .8125rem; font-weight: 650; white-space: nowrap; }
td { overflow-wrap: anywhere; min-width: 4rem; max-width: 25rem; }
td:last-child { min-width: 2.6rem; }
.schedule td { white-space: nowrap; }
.schedule td a.row-link { white-space: normal; }
.schedule td:nth-child(5) { white-space: normal; }
tbody tr:hover { background: #fcfaff; }
.row-link { font-weight: 700; color: var(--ink); text-decoration: none; }
.row-link:hover { text-decoration: underline; }
.icon-link { display: inline-grid; place-items: center; text-decoration: none; width: 2rem; height: 2rem; border-radius: 8px; background: var(--lavender); font-size: 1.1rem; }
.empty-value { color: #777281; }
.pill, .status { display: inline-flex; align-items: center; width: fit-content; white-space: nowrap; padding: .2rem .54rem; border-radius: 999px; background: #eeebf1; color: #534e5d; font-size: .74rem; font-weight: 720; }
.pill.bus1, .event.bus1 { color: var(--bus1); background: var(--bus1-bg); }
.pill.bus2, .event.bus2 { color: var(--bus2); background: var(--bus2-bg); }
.status.confirmed { color: #285940; background: #e3f2ea; }
.status.draft { color: #794c13; background: #fff1d8; }
.status.completed { color: #275675; background: #e4f0f8; }
.status.cancelled { color: #8e3449; background: #faeaf0; }
.pagination { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .5rem; padding: .7rem .9rem; color: var(--muted); font-size: .8rem; }
.pagination nav { display: flex; gap: .4rem; }
.empty { padding: 2.8rem 1rem; text-align: center; display: grid; place-items: center; gap: .6rem; }
.column-list { list-style: none; padding: 0; margin: 0; }
.column-list li { display: flex; justify-content: space-between; align-items: center; gap: .6rem; padding: .52rem 0; border-bottom: 1px solid var(--line); }
.move-controls .button { padding: .2rem .55rem; min-height: 2rem; }
.calendar-nav { display: flex; align-items: center; gap: .6rem; }
.calendar-nav h2 { font-size: 1.12rem; }
.calendar-filter, .upcoming-filter { display: flex; align-items: end; gap: .55rem; margin: 0 1rem .8rem; }
.upcoming-filter { margin-left: 0; }
.calendar-grid { display: grid; min-width: 700px; grid-template-columns: repeat(7, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.weekday { padding: .6rem .65rem; color: var(--muted); font-size: .79rem; font-weight: 700; background: #f6f4fa; }
.day { min-height: 112px; border-top: 1px solid var(--line); border-right: 1px solid var(--line); padding: .45rem; }
.week .day { min-height: 270px; }
.day time { display: inline-grid; place-items: center; min-width: 1.57rem; height: 1.57rem; font-weight: 650; font-size: .82rem; margin-bottom: .35rem; }
.day.today time { border-radius: 50%; color: white; background: var(--accent); }
.day.out-month { background: #f9f7fa; }
.day.out-month time { color: var(--muted); }
.event { display: grid; gap: .15rem; margin-bottom: .3rem; padding: .3rem .4rem; border-radius: 6px; background: #eeedf2; color: #473f52; text-decoration: none; overflow-wrap: anywhere; }
.event small { color: inherit; font-size: .75rem; }
.event strong { font-size: .875rem; line-height: 1.3; }
.event:hover { text-decoration: underline; }
.event.cancelled strong { text-decoration: line-through; }
.day-group { display: grid; gap: .6rem; max-width: 820px; margin: 1.2rem 0; }
.day-group h2 { font-size: 1.06rem; }
.upcoming-card { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .85rem 1rem; text-decoration: none; color: var(--ink); }
.upcoming-card:hover { border-color: #c4b7da; }
.upcoming-card h3 { margin-top: .35rem; overflow-wrap: anywhere; }
.upcoming-card p { font-size: .85rem; margin-top: .25rem; }
.upcoming-time { flex: none; font-weight: 700; color: var(--accent-dark); font-size: .82rem; }
dl { margin: .4rem 0; }
dt { color: var(--muted); font-size: .82rem; font-weight: 650; }
dd { margin: 0 0 .65rem; overflow-wrap: anywhere; }
pre { max-width: 100%; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; }
code { font-family: "IBM Plex Mono", Consolas, monospace; font-size: .88em; }

@media (max-width: 860px) {
  .shell { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; }
  .rail { height: auto; position: static; flex-direction: row; align-items: center; justify-content: space-between; gap: .65rem; padding: max(.55rem, env(safe-area-inset-top)) .85rem .55rem; border: 0; border-bottom: 1px solid var(--line); }
  .main-nav { display: none; }
  .rail-bottom { margin: 0; border: 0; padding: 0; }
  .account-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .account-name { display: grid; place-items: center; min-width: 44px; min-height: 44px; }
  .mobile-dock { display: grid; position: fixed; z-index: 5; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .4rem; bottom: 0; inset-inline: 0; background: var(--surface); border-top: 1px solid var(--line); padding: .4rem .65rem calc(.4rem + env(safe-area-inset-bottom)); }
  .mobile-dock > a, .mobile-more > summary { display: grid; place-items: center; align-content: center; gap: .1rem; min-height: 44px; color: var(--rail-text); font-size: .75rem; font-weight: 650; text-decoration: none; border-radius: 8px; }
  .mobile-dock > a span, .mobile-more > summary span { font-size: 1rem; line-height: 1; }
  .mobile-dock > a[aria-current="page"], .mobile-more[open] > summary { background: var(--lavender); color: var(--accent-dark); }
  .mobile-more { position: relative; }
  .mobile-more > summary { list-style: none; }
  .mobile-more > summary::-webkit-details-marker { display: none; }
  .mobile-links { display: grid; width: min(13rem, 85vw); position: absolute; right: 0; bottom: calc(100% + .7rem); padding: .3rem; max-height: 70vh; max-height: min(70dvh, 28rem); overflow-y: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 12px 30px #241f3320; }
  .mobile-links a { display: flex; align-items: center; min-height: 44px; padding: .45rem .65rem; text-decoration: none; color: var(--ink); border-radius: 7px; font-weight: 600; }
  .mobile-links a:hover { background: var(--lavender); }
  .main { padding-bottom: calc(5rem + env(safe-area-inset-bottom)); }
  input:not([type=checkbox]):not([type=radio]), select, textarea { font-size: 16px; }
}
@media (max-width: 540px) {
  .page-header { align-items: start; gap: .65rem; margin-bottom: 1rem; }
  .main { padding: 1rem max(.82rem, env(safe-area-inset-right)) calc(5rem + env(safe-area-inset-bottom)) max(.82rem, env(safe-area-inset-left)); }
  .toolbar { padding: .7rem; }
  .filters { flex-basis: 100%; }
  .search-field { flex-basis: 100%; }
  .upcoming-time { white-space: normal; max-width: 7rem; }
  .brand-icon { width: 36px; height: 36px; }
}

.planner-header { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .85rem; margin-bottom: 1rem; }
.planner-header p { margin-top: .35rem; }
.planner-view-tabs { display: flex; flex-wrap: wrap; gap: .16rem; width: fit-content; padding: .2rem; border: 1px solid var(--line); border-radius: 9px; background: var(--paper); }
.planner-view-tabs a { display: inline-flex; align-items: center; min-height: 34px; padding: .35rem .68rem; border-radius: 6px; color: var(--rail-text); text-decoration: none; font-size: .85rem; font-weight: 640; white-space: nowrap; }
.planner-view-tabs a:hover { background: var(--surface); }
.planner-view-tabs [aria-current="page"] { color: var(--accent-dark); background: var(--surface); box-shadow: 0 1px 3px #241f3312; }
.planner-calendar { overflow: hidden; }
.planner-period { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .65rem 1rem; margin-bottom: .75rem; color: var(--ink); }
.planner-period + .calendar-filter { margin: 0 0 .8rem; align-items: center; }
.planner-period + .calendar-filter label { display: flex; align-items: center; gap: .45rem; }
.planner-week { table-layout: fixed; min-width: 710px; }
.planner-week th, .planner-week td { padding: .48rem; }
.planner-week td { vertical-align: top; border-inline-start: 1px solid var(--line); }
.planner-week tbody tr:hover { background: transparent; }
.planner-week .planner-week-corner, .planner-week .planner-week-lane { width: 91px; }
.planner-week-lane { white-space: normal; text-align: left; }
.planner-week-day { text-align: center; }
.planner-week-day.today, .planner-week-cell.today { background: #f9f6fe; }
.planner-week-day time { font-size: .94rem; color: var(--ink); }
.planner-week-cell { height: 88px; }
.planner-day-add, .planner-slot-add { display: inline-flex; align-items: center; justify-content: center; min-height: 26px; min-width: 26px; padding: .1rem .32rem; color: var(--accent); background: transparent; text-decoration: none; border-radius: 6px; font-weight: 700; }
.planner-day-add { gap: .24rem; }
.planner-week-day .planner-day-add { padding-inline: .42rem; }
.planner-day-add:hover, .planner-slot-add:hover { background: var(--lavender); }
.planner-slot-add { margin-top: .15rem; color: #685987; font-weight: 570; }
.planner-event { display: grid; gap: .23rem; margin-bottom: .25rem; padding: .45rem .48rem; border-inline-start: 3px solid #8b8499; border-radius: 6px; background: #f0eef3; color: var(--ink); text-decoration: none; line-height: 1.3; overflow-wrap: anywhere; }
.planner-event:hover strong { text-decoration: underline; }
.planner-event.bus1 { background: var(--bus1-bg); border-color: var(--bus1); }
.planner-event.bus2 { background: var(--bus2-bg); border-color: var(--bus2); }
.planner-event.cancelled strong { text-decoration: line-through; }
.planner-event strong { font-size: .9375rem; line-height: 1.3; }
.planner-event-time, .planner-event-place { font-size: .8125rem; color: var(--muted); }
.planner-event-time { font-variant-numeric: tabular-nums; }
.planner-event-place { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.planner-event .status, .event .status { max-width: 100%; white-space: normal; padding: .12rem .38rem; font-size: .75rem; }

.readiness-layout { display: grid; gap: 1.15rem; max-width: 1040px; }
.readiness-section { overflow: hidden; }
.readiness-list { list-style: none; margin: 0; padding: 0; display: grid; }
.readiness-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .65rem 1rem; padding: .85rem 0; }
.readiness-row + .readiness-row { border-top: 1px solid var(--line); }
.readiness-content { display: grid; flex: 1 1 290px; min-width: 0; gap: .35rem; }
.readiness-meta, .assignment-meta, .agenda-entry-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .32rem .55rem; font-size: .8rem; color: var(--muted); }
.readiness-issues { display: flex; flex-wrap: wrap; gap: .35rem; list-style: none; margin: 0; padding: 0; }
.readiness-issue { color: #794c13; background: #fff1d8; padding: .14rem .46rem; border-radius: 5px; font-size: .77rem; font-weight: 650; }
.agenda-filters { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; margin-bottom: 1.1rem; }
.agenda-filter { text-decoration: none; }
.agenda-filter[aria-current] { color: var(--accent-dark); background: var(--lavender); border-color: #cbbde7; }
.agenda-filter.bus1[aria-current] { color: var(--bus1); background: var(--bus1-bg); }
.agenda-filter.bus2[aria-current] { color: var(--bus2); background: var(--bus2-bg); }
.agenda-filters-more { margin-left: auto; }
.agenda-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .25rem .6rem; color: var(--muted); font-size: .91rem; font-weight: 720; margin-bottom: .2rem; }
.agenda-entry { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .4rem .7rem; padding: .82rem .92rem; color: var(--ink); text-decoration: none; border-inline-start: 3px solid #8b8499; }
.agenda-entry:hover { border-color: var(--accent); }
.agenda-entry.bus1, .assignment-card.bus1 { border-inline-start-color: var(--bus1); }
.agenda-entry.bus2, .assignment-card.bus2 { border-inline-start-color: var(--bus2); }
.agenda-entry-main { min-width: 0; display: grid; gap: .28rem; flex: 1 1 180px; overflow-wrap: anywhere; }
.assignment-list { display: grid; gap: .75rem; }
.assignment-card { border-inline-start: 3px solid #8b8499; scroll-margin-top: 1rem; }
.assignment-header { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .65rem; }
.assignment-location { color: var(--muted); }
.action-status-form { display: grid; gap: .25rem; margin-top: .75rem; }
.action-status-form label { color: var(--muted); }
.action-status-controls { display: flex; flex-wrap: wrap; gap: .45rem; align-items: center; }
.action-status-controls select { max-width: 100%; }

.booking-fields { background: var(--paper); padding: .95rem; border-radius: 9px; }
.booking-fields > p { margin: 0; }
.booking-fields .field { margin-bottom: .55rem; }
.booking-times { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; }
.booking-choices, .booking-choices > div { display: flex; flex-wrap: wrap; gap: .45rem; }
.booking-choices label { display: inline-flex; align-items: center; gap: .42rem; min-height: 40px; padding: .35rem .6rem; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); }
.booking-choices label:has(input:checked) { color: var(--accent-dark); background: var(--lavender); border-color: #cbbde7; }
.booking-status { display: grid; gap: .25rem; padding: .55rem .65rem; border-radius: 7px; background: var(--lavender); color: var(--accent-dark); }
.booking-status[data-state="available"] { background: #e7f3ee; color: #285940; }
.booking-status[data-state="conflict"] { background: #fff1d8; color: #794c13; }
.booking-status[data-state="error"] { background: #fbe8ed; color: #851f3d; }

@media (max-width: 860px) {
  .planner-header { align-items: center; gap: .55rem; }
  .planner-header .button, .agenda-heading .button, .agenda-filter { min-height: 44px; }
  .action-status-controls .button, .action-status-controls select { min-height: 44px; }
  .planner-view-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; }
  .planner-view-tabs a { min-width: 0; min-height: 44px; padding-inline: .35rem; }
}

@media (max-width: 540px) {
  .agenda-filters-more { flex-basis: 100%; margin-left: 0; }
  .agenda-entry .status { align-self: flex-start; }
  .booking-times .field input { width: 100%; }
}
