:root { color-scheme: light; font-family: "Inter", "Segoe UI", sans-serif; color: #17231e; background: #f5f5ee; font-synthesis: none; --line: #dce0d4; --green: #163f32; --soft: #e6efe6; --muted: #54635a; }
* { box-sizing: border-box; }
body { margin: 0; }
.masthead { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem max(1.25rem, calc((100% - 1120px)/2)); background: #152f26; color: #fff; }
.brand, #account, .toolbar, nav, .actions { display: flex; align-items: center; gap: .65rem; flex-wrap: wrap; }
.brand small { display: block; margin-top: .13rem; color: #c4d7cb; }
.mark { width: 40px; height: 40px; display: grid; place-items: center; background: #d9ff87; color: #152f26; font-size: 1.4rem; font-weight: 850; border-radius: 12px 12px 3px 12px; }
main { max-width: 1160px; margin: auto; padding: 1.5rem 1.25rem 4rem; }
h1 { margin: 0; font-size: clamp(2rem, 5vw, 3.2rem); letter-spacing: -.055em; line-height: 1.04; }
h2 { letter-spacing: -.025em; margin: 0 0 .85rem; font-size: 1.25rem; }
h3 { margin: 0 0 .5rem; }
p { line-height: 1.5; }
small, .muted { color: var(--muted); }
.heading { display: flex; justify-content: space-between; align-items: end; gap: 1rem; margin: 1.5rem 0 1rem; flex-wrap: wrap; }
nav { border-bottom: 1px solid var(--line); padding-bottom: .65rem; margin-bottom: 1.15rem; }
button, select, input { font: inherit; }
button, input, select { border: 1px solid var(--line); border-radius: .55rem; padding: .56rem .72rem; color: inherit; background: #fff; }
button { cursor: pointer; font-weight: 650; min-height: 40px; }
button:hover { background: var(--soft); }
button.primary, button.active { background: var(--green); color: white; border-color: var(--green); }
button.primary:hover, button.active:hover { background: #235a48; }
#account button { background: transparent; color: white; border-color: #9db8a8; }
button:disabled { opacity: .48; cursor: wait; }
input[type=checkbox] { accent-color: var(--green); }
:focus-visible { outline: 3px solid #799e51; outline-offset: 3px; }
label { display: inline-flex; gap: .32rem; flex-direction: column; font-size: .88rem; font-weight: 620; }
label.inline { align-items: center; flex-direction: row; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: .9rem; padding: 1.1rem; margin-bottom: 1rem; }
.narrow { max-width: 490px; margin: 3.5rem auto; }
.narrow h1 { margin: .55rem 0 1rem; }
form { display: flex; flex-wrap: wrap; gap: .65rem; align-items: end; margin: .7rem 0; }
.narrow form { display: grid; }
form input, form select { max-width: 100%; }
.list { display: grid; gap: .5rem; }
.row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .7rem; border-top: 1px solid var(--line); padding: .65rem 0; }
.row:first-child { border-top: 0; }
.week { display: grid; grid-template-columns: repeat(auto-fit, minmax(145px, 1fr)); gap: .5rem; }
.day { min-width: 0; border: 1px solid var(--line); background: #fff; border-radius: .65rem; padding: .65rem; }
.day time { display: block; font-size: .85rem; color: var(--muted); margin: 0 0 .45rem; }
.availability-controls, .availability-legend { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem; }
.availability-controls { justify-content: space-between; margin-bottom: .85rem; }
.availability-legend > span { border: 1px solid var(--state-border); background: var(--state-bg); border-radius: .4rem; padding: .23rem .48rem; font-size: .8rem; }
.unavailable { --state-bg: #f9dedc; --state-border: #dbb2ad; }
.pending { --state-bg: #ffecad; --state-border: #d7b755; }
.available { --state-bg: #d9efcd; --state-border: #9dc18d; }
.lesson-tile { --state-bg: #ede6f8; --state-border: #c3b4df; }
.lesson-selected, .lesson-service { --state-bg: #ffd58a; --state-border: #d3923e; background: var(--state-bg); }
.lesson-selected.pending { --state-bg: #ffe3a2; --state-border: #d3923e; }
.overlap-lanes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .22rem; }
.overlap-kind { display: flex; gap: .16rem; min-width: 0; }
.overlap-track { position: relative; flex: 1; min-width: 0; }
.overlap-event { position: absolute; inset-inline: 0; display: flex; flex-direction: column; min-width: 0; }
.overlap-event > :is(.availability-slot, .service) { flex: 1; min-height: 0; margin: 0; overflow: hidden; }
.overlap-event .availability-slot { padding-block: .1rem; }
.overlap-lanes .availability-slot > span { display: block; }
.overlap-lanes .availability-slot > .time-dash { display: none; }
.overlap-lanes .service { overflow-wrap: anywhere; }
.planning-shift { --state-bg: #edf2eb; --state-border: #becbbf; }
.calendar-filters { display: flex; flex-wrap: wrap; gap: .35rem; }
.calendar-filters button[aria-pressed=true] { color: white; background: var(--green); border-color: var(--green); }
.availability-legend { margin-bottom: .7rem; }
.calendar-editor { display: flex; flex-wrap: wrap; gap: .65rem; align-items: end; padding: .8rem; margin: .7rem 0;
  border: 1px solid var(--line); background: #f7f9f4; border-radius: .6rem; }
.calendar-editor strong { align-self: center; }
.planning-editor { display: block; }
.calendar-add { min-height: 34px; padding: .1rem; color: var(--green); border: 1px dashed #a9b5a6; background: #f7f9f4; }
.calendar-badge { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: .1rem; }
.availability-day time { cursor: default; }
.panel > .actions + .availability-calendar { margin-top: .75rem; }
.month-table-wrap { max-height: 65vh; overflow: auto; margin: .75rem 0; border: 1px solid var(--line); border-radius: .6rem; }
.month-table { width: max-content; min-width: 100%; border-collapse: separate; border-spacing: 0; }
.month-table td, .month-table th { min-width: 78px; padding: .3rem; vertical-align: top; border-right: 1px solid var(--line); background: white; }
.month-table thead th { position: sticky; top: 0; z-index: 2; background: #edf2eb; text-align: center; }
.month-table tr > :first-child { position: sticky; left: 0; z-index: 1; width: 140px; min-width: 112px; max-width: 140px; overflow-wrap: anywhere; background: #edf2eb; }
.month-table thead tr > :first-child { z-index: 3; }
.month-table .sat { border-left: 2px solid #879a8a; }
.month-table .sun { border-right: 2px solid #879a8a; }
.month-table .sat, .month-table .sun { background: #f0f3e7; }
.month-table thead :is(.sat, .sun) { border-top: 2px solid #879a8a; }
.month-table tr:last-child td:is(.sat, .sun) { border-bottom: 2px solid #879a8a; }
.month-table .calendar-add { display: block; width: 100%; margin-top: .2rem; }
.month-table .availability-slot { display: block; margin-bottom: .2rem; }
.staff-details { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: .3rem .7rem; margin-block: .4rem; }
.staff-details dt { font-weight: 650; }
.staff-details dd { margin: 0; overflow-wrap: anywhere; }
.availability-calendar { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: .35rem; }
.availability-weekday { text-align: center; font-weight: 650; color: var(--muted); font-size: .85rem; }
.availability-day { display: grid; grid-auto-rows: min-content; gap: .25rem; min-width: 0; min-height: 4.1rem; border: 1px solid var(--line); padding: .3rem; border-radius: .45rem; }
.availability-day.outside { background: #f6f7f3; }
.availability-day time { font-size: .8rem; color: var(--muted); }
.availability-slot, .availability-slot:hover { background: var(--state-bg); border-color: var(--state-border); }
.availability-slot { width: 100%; padding: .3rem .1rem; font-size: .85rem; min-height: 36px; line-height: 1.15; font-variant-numeric: tabular-nums; }
.availability-slot:hover:not(:disabled) { box-shadow: inset 0 0 0 1px var(--state-border); }
.availability-slot:disabled { opacity: 1; cursor: default; }
.availability-slot.pending { border-style: dashed; }
.service { background: #edf1ed; border-radius: .35rem; padding: .35rem; margin-top: .35rem; font-size: .83rem; }
.mine { background: #def2bf; }
.vacant { background: #fff2d6; }
.metrics { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 1rem; }
.metrics div { min-width: 125px; background: var(--soft); padding: .7rem 1rem; border-radius: .5rem; }
.metrics strong { display: block; font-size: 1.3rem; }
#notice:empty { display: none; }
#notice { border-left: 4px solid #4a805e; padding: .7rem .85rem; background: #ecf5e9; margin-bottom: 1rem; overflow-wrap: anywhere; }
#notice.error { border-color: #af492c; background: #fff1e8; }
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: .9rem; }
th, td { padding: .6rem .45rem; border-bottom: 1px solid var(--line); text-align: left; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 1rem; }
.scroll { max-height: 35rem; overflow: auto; }
.stack { display: grid; gap: .65rem; }
summary { cursor: pointer; font-weight: 650; padding: .4rem 0; }
@media (max-width: 600px) {
  main { padding: .75rem .8rem 3rem; }
  .masthead { padding: .65rem .8rem; }
  #account > span { display: none; }
  .heading { align-items: start; }
  .week { grid-template-columns: repeat(2, 1fr); }
  .availability-calendar { gap: .2rem; }
  .availability-day { padding: .18rem; border-radius: .3rem; }
  .availability-slot { font-size: .73rem; min-height: 40px; }
  .availability-slot > span { display: block; }
  .availability-slot > .time-dash { display: none; }
  .overlap-lanes, .overlap-kind { gap: .12rem; }
  .overlap-lanes .availability-slot { padding-inline: 0; font-size: .56rem; }
  .overlap-lanes .calendar-badge { padding-inline: 0; }
}
