/* Calendar parts (calendar-parts.js): the booking blocks, the bands, Month, the List and its rows.
   Moved from app.css on 2026-10-14 in the same order (docs/audits/calendar-2026-10-14-erp.md "Build packages").
   Loaded right after app.css. */
.cal-open { position: absolute; left: 0; right: 0; background: var(--bg); } /* open hours: the page itself, like Apple Calendar (Paul, 2026-10-17: no white); it covers the column's closed grey (.cal-col) */
.cal-closed { position: absolute; left: 0; right: 0; pointer-events: none; }
.cal-closed span { display: block; padding: 6px 8px; font-size: var(--t-caption2); font-weight: 600; color: color-mix(in srgb, var(--ink) 72%, transparent); }
.cal-off, .cal-busy { position: absolute; left: 0; right: 0; z-index: 1; overflow: hidden; pointer-events: none; }
.cal-off { background: rgba(0, 0, 0, .09); border-top: 2px solid rgba(0, 0, 0, .22); }
.cal-busy { left: 3px; right: 3px; background: rgba(31, 59, 209, .05); outline: 1px dotted rgba(0, 0, 0, .45); outline-offset: -1px; }
.cal-off span, .cal-busy span { display: block; padding: 3px 6px; font-size: var(--t-caption2); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: color-mix(in srgb, var(--ink) 72%, transparent); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Bookings: a clear tint of the person's colour, a colour edge on the left, and in this order:
   the time (what you scan for), the client's name (bold), the service. Rounded like the rest of the app. */
.bk {
  position: absolute; left: 3px; right: 3px; z-index: 3; overflow: hidden; padding: 3px 7px 3px 8px; cursor: pointer;
  background: color-mix(in srgb, var(--c, var(--faint)) 24%, var(--bg)); color: var(--ink);
  border-left: 4px solid var(--c, var(--faint)); border-radius: 6px;
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--c, var(--faint)) 22%, transparent);
  font-size: var(--t-footnote); line-height: 1.25; text-align: left;
}
/* Every card, every view: the time (small), the client (bold), the service, at the same sizes and in that order.
   calendar.js picks one of three layouts by the card's height (CARD there matches these sizes):
   l3 = three lines · l2 = the time and the name on one line, the service under · l1 = the time and the name only. */
.bk .bk-time { display: flex; align-items: center; gap: 5px; font-size: max(11px, var(--t-caption1)); font-weight: 600; color: color-mix(in srgb, var(--ink) 78%, transparent); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bk .bk-start { display: none; }
.bk > b, .bk-line > b { font-size: var(--t-footnote); font-weight: 600; letter-spacing: -.005em; }
.bk > .bk-what { display: block; font-size: var(--t-caption1); color: color-mix(in srgb, var(--ink) 80%, transparent); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bk.l3 { display: flex; flex-direction: column; justify-content: flex-start; align-items: stretch; }
.bk.l1, .bk.l2 { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 5px; align-content: start; align-items: baseline; }
.bk.l1 { display: flex; align-items: center; gap: 4px; padding-top: 0; padding-bottom: 0; line-height: 1.15; white-space: nowrap; }
.bk.l1 > b { flex: 0 1 auto; min-width: 0; }
.bk.l1 > .bk-what { flex: 1 1 0; min-width: 0; } /* one line at its true height: "10:15–10:30 Maya Roy · Eyebrow wax"; the rest on tap */
.bk.l1 > .bk-what::before { content: "· "; }
.bk.l2 > .bk-what { grid-column: 1 / -1; }
.bk.l1 .bk-range, .bk.l2 .bk-range, .bk.l1 .bk-start, .bk.l2 .bk-start { display: none; }
.bk.l1 .bk-compact, .bk.l2 .bk-compact { display: inline; } /* a short card still shows its start and end */
@media (max-width: 699px), (max-height: 500px) and (pointer: coarse) {
  .is-week .bk.l2 { display: flex; flex-direction: column; align-items: stretch; } /* a phone's narrow week column: the time, then the name */
  .is-week .bk.l2 > .bk-what { display: none; }
  .is-week .bk { padding: 3px 4px 3px 6px; border-left-width: 3px; }
  .is-week .bk .bk-time { font-size: 12px; letter-spacing: -.01em; } /* "11 h 45–12 h" whole in a third of a phone */
}
@container (max-width: 210px) { .bk.l1 > .bk-what { display: none; } } /* no room for the service: the time and the name (the rest on tap) */
.bk .bk-compact { display: none; }
@container (max-width: 150px) { .bk .bk-range { display: none; } .bk .bk-compact { display: inline; } }
.bk .bk-range, .bk .bk-compact, .bk .bk-start { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* calendar.js measures: a range that would be cut drops its a.m./p.m. first (time-mid), and only a short range
   that still would not fit becomes the start time alone (time-short). Never a cut time. */
.bk .bk-time.time-mid .bk-range { display: none; }
.bk .bk-time.time-mid .bk-compact { display: inline; }
/* Too narrow even for the short range (calendar.js measured it): the start time alone, never a cut time. */
.bk .bk-time.time-short .bk-range, .bk .bk-time.time-short .bk-compact { display: none; }
.bk .bk-time.time-short .bk-start { display: inline; }
/* Never fewer than the start and end: a range too wide for its column breaks after the dash. */
.bk.l3 .bk-time.time-wrap { white-space: normal; }
.bk.l3 .bk-time.time-wrap .bk-compact { white-space: normal; overflow: visible; }
/* A tall card: the service runs to two or three lines (calendar.js sets --lines from the card's height). */
.bk.bk-wrap > .bk-what { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: var(--lines, 2); line-clamp: var(--lines, 2); white-space: normal; overflow-wrap: anywhere; }
/* Done: a small tick before the time, so it is not shown by a paler colour alone. */
.bk-done { display: inline-flex; flex: none; color: var(--ink); }
.bk-done svg { width: 12px; height: 12px; stroke-width: 2.5; }
.bk b { display: flex; align-items: center; gap: 3px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bk b > .bk-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.bk b svg { flex: none; width: 11px; height: 11px; }
.bk { container-type: inline-size; }
/* Name first, then the service; the time range only when the block is tall enough (calendar.js). */
@container (max-width: 28px) { .bk > b, .bk-line, .bk .bk-time { display: none; } } /* a stub like "Q." helps nobody: the colour block only (the label has it all) */
@media (hover: hover) { .bk:hover { z-index: 4; background: color-mix(in srgb, var(--c, var(--faint)) 32%, var(--bg)); } }
.bk:focus-visible { z-index: 5; outline: 2px solid var(--ink); outline-offset: 1px; }
.bk.pending { border-left-style: dashed; border-radius: 6px; background: color-mix(in srgb, var(--c, var(--faint)) 6%, var(--bg)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c, var(--faint)) 40%, transparent); }
.bk.l1 .bk-time, .bk.l2 .bk-time { flex: none; }
/* A 15-minute card is short on screen: on touch screens its tap area still reaches 44px (above and below it). */
@media (pointer: coarse) {
  .bk.l1 { overflow: visible; }
  .bk.l1::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 44px; transform: translateY(-50%); }
}
/* Done: still easy to read (it is your day), just quieter than what is coming. */
.bk.done { background: color-mix(in srgb, var(--c, var(--faint)) 17%, var(--bg)); color: color-mix(in srgb, var(--ink) 80%, transparent); box-shadow: 0 0 0 1px var(--hair-ink); border-left-color: color-mix(in srgb, var(--c, var(--faint)) 55%, var(--bg)); }
.bk.noshow { background: #eceee9; color: color-mix(in srgb, var(--ink) 70%, transparent); box-shadow: 0 0 0 1px var(--hair-ink); border-left-color: #8a8f86; }
.bk.noshow b { text-decoration: line-through; }
.bk.noshow > span { color: inherit; }
/* What needs attention, in words (not only colour). */
.bk-tag { position: static; flex: none; margin-left: auto; padding: 0 5px; border-radius: 4px; font-style: normal; font-size: var(--t-caption2); font-weight: 600; line-height: 15px; letter-spacing: .02em; text-transform: uppercase; white-space: nowrap; }
.bk-tag.bad { background: var(--red); color: #fff; }
.bk-tag.due { background: #fff3c4; color: #6b4e00; box-shadow: inset 0 0 0 1px #e6c34d; }
.bk-tag.gone { background: #5f645b; color: #fff; }
.bk-tag.here { background: var(--ok-soft); color: var(--ok); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ok) 45%, transparent); } /* Arrived (plan 56) */
/* Narrow cards: the tag becomes a round mark that keeps a symbol (! Conflict, $ Deposit due, × No-show, a clock for Outside hours)
   and a darker ring, so it never says it by colour alone. The word is in the tooltip and the label. */
@container (max-width: 170px) {
  .bk-tag { display: inline-grid; place-items: center; font-size: 0; width: 16px; height: 16px; padding: 0; border-radius: 50%; letter-spacing: 0; }
  .bk-tag::before { content: attr(data-mark); font-size: 12px; line-height: 1; font-weight: 600; }
  .bk-tag.bad { box-shadow: 0 0 0 1px #8f000c; }
  .bk-tag.due { box-shadow: inset 0 0 0 1px #8a6700; }
  .bk-tag.gone { box-shadow: 0 0 0 1px #2f322d; }
  .bk-tag.out::before { content: ''; width: 11px; height: 11px; background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E") center / contain no-repeat; }
}
.bk.clash { box-shadow: 0 0 0 2px var(--red); }
/* Overlap: a small red dot in the corner, off the name (the key explains the red outline). */
.bk-flag { position: absolute; right: 3px; bottom: 3px; width: 8px; height: 8px; border-radius: 50%; background: var(--red); }
.fit .bk { padding: 2px 3px; border-left-width: 2px; font-size: var(--t-caption1); }
.fit .bk b { font-weight: 600; }
/* Clean-up time after a booking (the service's buffer): quiet, a light grey hatch with small grey words,
   clearly less than a booking (iPhone review, 2026-10-13). */
.bk-buffer { position: absolute; left: 3px; right: 3px; z-index: 2; pointer-events: none; border-radius: 0 0 5px 5px; background: repeating-linear-gradient(135deg, rgba(0, 0, 0, .025) 0 4px, rgba(0, 0, 0, .07) 4px 5px); }
/* Drag the bottom edge to change the length. */
.bk-grip { position: absolute; left: 0; right: 0; bottom: 0; height: 8px; cursor: ns-resize; }
.bk-grip::after { content: ""; position: absolute; left: 50%; bottom: 2px; width: 22px; height: 3px; margin-left: -11px; border-radius: 2px; background: color-mix(in srgb, var(--c, var(--ink)) 60%, transparent); opacity: 0; }
@media (hover: hover) { .bk:hover .bk-grip::after { opacity: 1; } }
.bk.resizing .bk-grip::after { opacity: 1; }
/* 17: the booking whose panel is open is filled, like Apple Calendar's selected event, with a thick ink outline
   (a red ring means Conflict, so the open card must never look like one). */
.bk.open { z-index: 5; background: color-mix(in srgb, var(--c) 38%, var(--bg)); box-shadow: none; outline: 3px solid var(--ink); outline-offset: 1px; }
@media (pointer: coarse) { .bk-grip { height: 16px; } }
.bk.can-drag { touch-action: manipulation; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.bk.dragging, .bk.resizing { z-index: 9; cursor: grabbing; box-shadow: 0 8px 22px rgba(0, 0, 0, .2); overflow: visible; }
.bk.warn { box-shadow: 0 8px 22px rgba(0, 0, 0, .2), inset 0 0 0 2px var(--warn); }
.bk.bad { opacity: .7; box-shadow: 0 8px 22px rgba(0, 0, 0, .2), inset 0 0 0 2px var(--red); }
.bk.saving { opacity: .55; }
.bk.resizing .drag-time { top: auto; bottom: -24px; }
.bk.bad .drag-time { background: var(--red); color: #fff; }
/* Month: whole weeks; each day says how many bookings and how full it is; the picked day beside or under it. */
.month-wrap { display: grid; gap: 18px; }
.month-wrap.beside { grid-template-columns: minmax(0, 1fr) clamp(260px, 26vw, 340px); align-items: start; }
.month-main { display: grid; gap: 10px; min-width: 0; }
.month-chips { display: flex; flex-wrap: wrap; gap: 6px; }
@media (max-width: 699px), (max-height: 500px) and (pointer: coarse) { .month-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; } .month-chips::-webkit-scrollbar { display: none; } .month-chips .chip { flex: none; } }
.month-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-top: 1px solid var(--ink); border-left: 1px solid var(--line-ink); background: none; }
.month-dow { padding: 8px 8px; font-size: var(--t-caption2); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: color-mix(in srgb, var(--ink) 72%, transparent); border-right: 1px solid var(--line-ink); border-bottom: 1px solid var(--line-ink); background: var(--bg); }
.month-cell {
  position: relative; display: flex; flex-direction: column; align-items: stretch; gap: 6px; min-width: 0; min-height: 64px; padding: 6px 6px 10px;
  background: none; border: 0; border-right: 1px solid var(--line-ink); border-bottom: 1px solid var(--line-ink); text-align: left; color: var(--ink);
}
.month-cell:not(.outside) { container-type: inline-size; }
@container (max-width: 130px) { .month-item-time { display: none; } .month-count small { display: none; } }
.month-top { display: flex; align-items: center; justify-content: space-between; gap: 4px; min-width: 0; }
.month-cell .num { display: grid; place-items: center; min-width: 26px; height: 26px; margin: -2px 0 0 -3px; padding: 0 4px; border-radius: 9999px; font-family: var(--display); font-stretch: 112%; font-size: var(--t-subhead); line-height: 1; font-weight: 600; letter-spacing: -.02em; }
.month-count { font-size: var(--t-footnote); font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.month-count small { font-size: var(--t-caption2); font-weight: 500; color: color-mix(in srgb, var(--ink) 72%, transparent); }
.month-closed { font-size: var(--t-caption2); font-weight: 600; color: color-mix(in srgb, var(--ink) 72%, transparent); }
@media (hover: hover) { button.month-cell:hover { background: rgba(0, 0, 0, .035); } }
/* Closed: a flat grey and the word. Days of the months around: muted, no stripes, so the two never look alike. */
.month-cell.closed { background: rgba(0, 0, 0, .055); }
.month-cell.outside { background: var(--bg); color: color-mix(in srgb, var(--ink) 72%, transparent); cursor: pointer; }
.month-cell.outside .num { font-weight: 400; }
.month-cell.past .num { color: color-mix(in srgb, var(--ink) 72%, transparent); }
.month-cell.today .num { color: var(--today-text); font-weight: 600; }
/* The picked day: the ink circle; picked and today: the red circle (the same rule as the Day strip and Week). */
.month-cell.picked .num { background: var(--ink); color: var(--bg); }
.month-cell.today.picked .num { background: var(--red); color: #fff; }
/* How full: booked staff hours out of open staff hours. The bar is at least 3:1 against its track (4:1 when quiet). */
.month-fill { position: absolute; left: 6px; right: 6px; bottom: 5px; height: 4px; border-radius: 4px; background: rgba(0, 0, 0, .07); }
.month-fill i { display: block; height: 100%; border-radius: inherit; background: color-mix(in srgb, #1f3bd1 78%, transparent); }
.month-cell.busy .month-fill i, .month-cell.full .month-fill i { background: #1f3bd1; }
.month-fill em { position: absolute; right: 0; bottom: 7px; font-style: normal; font-size: var(--t-caption2); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: #1f3bd1; }
.month-items { display: grid; gap: 4px; min-width: 0; }
.month-item { display: flex; align-items: center; gap: 6px; min-width: 0; font-size: var(--t-footnote); line-height: 1.35; white-space: nowrap; }
.month-item > i, .month-item-time { flex: none; }
.month-item-name { flex: 1 1 auto; }
.month-item-time { color: color-mix(in srgb, var(--ink) 72%, transparent); font-variant-numeric: tabular-nums; font-size: var(--t-caption1); }
.month-item-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.month-item.pending .month-item-name { color: color-mix(in srgb, var(--ink) 72%, transparent); }
.month-more { font-size: var(--t-caption1); font-weight: 600; color: color-mix(in srgb, var(--ink) 72%, transparent); }
.month-agenda { padding-bottom: 6px; border-top: 1px solid var(--ink); }
.month-wrap.beside .month-agenda { position: sticky; top: 0; max-height: 100%; overflow: auto; padding: 0 0 12px; border: 0; border-left: 1px solid var(--line-ink); padding-left: 18px; }
.month-agenda-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding: 12px 0 8px; }
.month-wrap.beside .month-agenda-head { padding-top: 2px; }
.month-agenda-head b { display: block; font-family: var(--display); font-stretch: 112%; font-size: var(--t-headline); font-weight: 600; letter-spacing: -.02em; }
.month-agenda-head span { font-size: var(--t-footnote); color: var(--fade); }
.month-agenda-list { display: grid; }
.month-none { display: grid; justify-items: start; gap: 8px; padding: 6px 0 14px; }
.month-none .all-none { padding: 6px 0 0; }
.month-none .btn svg { width: 14px; height: 14px; }
@media (min-width: 700px) and (min-height: 501px), (min-width: 700px) and (pointer: fine) {
  .month-cell { min-height: 118px; padding: 7px 8px 14px; }
  .month-cell .num { font-size: var(--t-body); }
}
/* Phones: a compact month. Each day is its number and, when booked, one dot (amber when something needs you).
   Closed days: a faded number. The picked day's bookings read in full under it. */
@media (max-width: 699px), (max-height: 500px) and (pointer: coarse) {
  .month-grid { border-left: 0; }
  .month-dow { padding: 6px 0; text-align: center; border-right: 0; }
  .month-cell { min-height: 46px; align-items: center; gap: 0; padding: 4px 0 5px; border-right: 0; }
  .month-top { flex-direction: column; align-items: center; gap: 3px; }
  .month-cell .num { width: 30px; min-width: 30px; height: 30px; margin: 0; padding: 0; font-size: var(--t-subhead); }
  .month-cell.closed, .month-cell.outside { background: none; }
  .month-cell.outside .num { color: color-mix(in srgb, var(--ink) 34%, transparent); }
  .month-cell.closed:not(.picked) .num { color: color-mix(in srgb, var(--ink) 34%, transparent); font-weight: 500; }
  .month-wrap { gap: 10px; }
  .month-main { gap: 8px; }
}
.month-key { display: flex; align-items: center; gap: 8px; margin: 0; font-size: var(--t-footnote); color: color-mix(in srgb, var(--ink) 72%, transparent); }
.month-key .day-dot { width: 6px; height: 6px; }
/* The picked day's name is the way into that day on a phone (with a chevron, like a Settings row). */
.month-agenda-head.as-link { width: 100%; align-items: center; padding: 10px 0 6px; text-align: left; border-radius: 0; }
.month-agenda-head.as-link b { font-size: var(--t-headline); }
@media (hover: hover) { .month-agenda-head.as-link:hover .lr-go { color: var(--ink); } }
.list-day { position: sticky; top: 0; z-index: 2; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 14px 0 6px; background: var(--bg); border-bottom: 1px solid var(--ink); color: var(--ink); font-size: var(--t-subhead); }
.list-day b { font-family: var(--display); font-stretch: 112%; font-weight: 600; letter-spacing: -.02em; }
.list-day span { font-size: var(--t-footnote); font-weight: 400; color: var(--fade); }
.list-day .list-day-count { color: var(--ink); } /* the count is ink on its grey pill (it was grey on grey, 4.29:1) */
.list-day.today b { color: var(--today-text); }
.list-off { padding: 8px 0 8px 12px; border-left: 3px solid rgba(0, 0, 0, .18); background: rgba(0, 0, 0, .05); font-size: var(--t-footnote); color: var(--fade); border-bottom: 1px solid var(--hair-ink); }
.fit .bk-flag { display: none; }
.month-cell.picked .month-more { color: var(--ink); }
.bk.is-class { border-left-style: double; }
.bk.is-class .bk-what { font-variant-numeric: tabular-nums; font-weight: 600; }
.bk-what { font-weight: 600; }
.bk:active:not(.dragging):not(.resizing) { background: color-mix(in srgb, var(--c, var(--faint)) 30%, var(--bg)); }
/* A finger holding a booking: it sinks a little while the hold counts down, so the drag is expected. */
.bk.pressing { transform: scale(.97); transition: transform .35s ease-out; }
.bk.dragging, .bk.resizing { will-change: transform; transition: none; opacity: .92; }
.bk.dragging .drag-time { top: -26px; }
@media (prefers-reduced-motion: reduce) {
  .bk.pressing { transform: none; box-shadow: inset 0 0 0 2px var(--ink); }
}
.key-bk.bk { position: relative; left: 0; right: 0; display: block; width: 140px; height: 46px; cursor: default; }
.key-month { position: relative; display: flex; align-items: center; gap: 8px; width: 140px; height: 30px; }
.key-month .month-fill { left: 0; right: 40px; bottom: auto; top: 13px; }
.key-month .month-dot { position: static; }
.key-word { display: block; width: 140px; }
/* ---------- List rows (List view and the month's day panel) ----------
   Wide: aligned columns — time, client, service, staff, status, and an arrow (the whole row opens the booking).
   Narrow (phones, the month panel): the time on the left; client and service; staff and status under them. */
.list-wrap { display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; gap: 4px; min-width: 0; }
/* Above the list (iPhone review, 2026-10-13): the search and a filter button on one row, then two small chips
   (status, dates). Ranges, one day and from–to are in the dates sheet, not on the page. */
.list-bar, .list-filters { min-width: 0; }
.list-bar { display: grid; gap: 8px; padding: 2px 0 4px; }
/* Computers: all on one row, so more bookings fit on screen. */
@media (min-width: 900px) {
  .list-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 0 0 4px; }
  .list-bar > .list-filters { flex: 0 1 480px; }
  .list-bar > .list-active { flex: 1 1 100%; }
  .cal-list .list-day, .lrows .list-day { padding-top: 10px; }
  .lrow-head { padding-top: 4px; }
}
.list-filters { display: flex; gap: 8px; align-items: center; }
.list-filters .list-search { flex: 1 1 auto; min-width: 0; }
.list-filter { flex: none; width: var(--tap); height: var(--tap); border-radius: var(--r-field); background: var(--fill); color: var(--ink); }
.list-filter svg { width: 20px; height: 20px; }
.list-filter.on { background: var(--ink); color: var(--bg); }
@media (pointer: fine) { .list-filter { width: 36px; height: 36px; } }
.list-chips { display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; }
.list-chip { position: relative; display: inline-flex; align-items: center; gap: 4px; max-width: 100%; min-height: 36px; padding: 0 11px 0 14px; border-radius: 9999px; background: var(--fill); color: var(--ink); font-size: var(--t-footnote); font-weight: 600; white-space: nowrap; }
.list-chip > span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.list-chip.on { background: var(--ink); color: var(--bg); }
.list-chip-mark { display: inline-flex; flex: none; }
.list-chip-mark svg { width: 12px; height: 12px; stroke-width: 2.25; }
@media (pointer: coarse) { .list-chip::after { content: ""; position: absolute; inset: -4px 0; } } /* 44pt to tap */
@media (hover: hover) { .list-chip:not(.on):hover, .list-filter:not(.on):hover { background: var(--fill-2); } }
/* The dates and filters sheets: one tick for what is chosen. */
.list-preset { justify-content: space-between; }
.list-tick { display: inline-flex; color: var(--ink); }
.list-tick svg { width: 18px; height: 18px; color: var(--ink); stroke-width: 2.25; }
.list-active { margin: 0; font-size: var(--t-footnote); color: var(--fade); }
.list-active:empty { display: none; }
.lrows { container-type: inline-size; display: grid; }
.cal-list .list-day, .lrows .list-day { position: sticky; top: 0; z-index: 2; display: flex; align-items: baseline; justify-content: flex-start; gap: 10px; padding: 16px 2px 8px; margin: 0; background: var(--bg); border-bottom: 1.5px solid var(--ink); font-size: var(--t-subhead); }
.lrows .list-day b { font-family: var(--display); font-stretch: 112%; font-weight: 600; letter-spacing: -.02em; }
.list-day-count { padding: 1px 8px; border-radius: 9999px; background: var(--fill); font-size: var(--t-caption1); font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.lrow {
  display: grid; grid-template-columns: 9.5rem minmax(8rem, 1.3fr) minmax(7rem, 1.2fr) minmax(6rem, .8fr) 8.5rem 20px; align-items: center; gap: 14px;
  width: 100%; min-height: 56px; margin: 0; padding: 8px 8px 8px 12px; text-align: left; color: var(--ink);
  background: none; border: 0; border-bottom: 1px solid var(--hair-ink); border-left: 3px solid var(--c, var(--faint)); border-radius: 0; cursor: pointer;
}
@media (hover: hover) { .lrow:hover { background: rgba(0, 0, 0, .04); } .lrow:hover .lr-go { color: var(--ink); transform: translateX(2px); } }
.lrow:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; }
.lr-time b { display: block; font-family: var(--display); font-size: var(--t-subhead); font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.lr-time small { display: block; font-size: var(--t-caption1); color: color-mix(in srgb, var(--ink) 72%, transparent); }
.lr-client { display: flex; align-items: center; gap: 6px; min-width: 0; }
.lr-client b { font-size: var(--t-body); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lr-repeat svg { width: 14px; height: 14px; color: var(--fade); }
.lr-service, .lr-staff { min-width: 0; font-size: var(--t-subhead); color: color-mix(in srgb, var(--ink) 78%, transparent); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lr-staff { display: flex; align-items: center; gap: 7px; }
.lr-staff i { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--c); }
.lr-go { display: grid; place-items: center; color: color-mix(in srgb, var(--ink) 35%, transparent); transition: transform .15s, color .15s; }
.lr-go svg { width: 16px; height: 16px; }
.st { display: inline-block; padding: 2px 9px; border-radius: 9999px; font-style: normal; font-size: var(--t-caption1); font-weight: 600; line-height: 1.35; white-space: nowrap; }
.st-on { background: var(--fill); color: color-mix(in srgb, var(--ink) 75%, transparent); }
.st-due { background: #fff3c4; color: #6b4e00; box-shadow: inset 0 0 0 1px #e6c34d; }
.st-ok { background: var(--ok-soft); color: var(--ok); }
.st-gone { background: #5f645b; color: #fff; }
.st-here { background: var(--ok-soft); color: var(--ok); }
.st-off { background: none; color: var(--fade); box-shadow: inset 0 0 0 1px var(--hair-ink); }
.st-bad { background: var(--red); color: #fff; }
.lrow.is-cancelled .lr-client b, .lrow.is-noshow .lr-client b { text-decoration: line-through; color: color-mix(in srgb, var(--ink) 60%, transparent); }
.lrow.is-pending { border-left-style: dashed; }
/* Narrow (phones, the month's day): two lines. The time and length on the left; the client, then the service.
   Whose booking (only when everyone is shown) and the status (only when not Booked) sit at the right end. */
@container (max-width: 43rem) {
  .lrow { grid-template-columns: 7.1rem minmax(0, 1fr) auto 14px; grid-template-areas: "time client status go" "time service staff go"; gap: 1px 10px; align-items: baseline; min-height: 0; padding: 8px 2px 8px 10px; }
  .lr-time { grid-area: time; align-self: start; }
  .lr-client { grid-area: client; }
  .lr-service { grid-area: service; }
  .lr-staff { grid-area: staff; justify-self: end; gap: 5px; font-size: var(--t-footnote); }
  .lr-staff i { width: 8px; height: 8px; }
  .lr-status { grid-area: status; justify-self: end; }
  .lr-status .st-quiet { display: none; }
  .lr-status .st { padding: 0 7px; font-size: var(--t-caption2); }
  .lr-go { grid-area: go; align-self: center; }
  .no-staff .lr-staff { display: none; }
}
.list-active .btn.sm { margin-left: 2px; }
.list-active-more { display: block; margin-top: 6px; }
.list-active-more .btn.sm { margin-left: 0; }
.list-wrap { max-width: 1180px; }
.lrow-head { display: grid; grid-template-columns: 9.5rem minmax(8rem, 1.3fr) minmax(7rem, 1.2fr) minmax(6rem, .8fr) 8.5rem 20px; gap: 14px; padding: 10px 8px 6px 15px; font-size: var(--t-caption2); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: color-mix(in srgb, var(--ink) 70%, transparent); }
@container (max-width: 43rem) { .lrow-head { display: none; } }
.lr-time { min-width: 0; }
.lr-time small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@container (max-width: 43rem) { .lr-time b { white-space: normal; font-size: var(--t-footnote); line-height: 1.25; letter-spacing: -.01em; } } /* a long range breaks after the dash only */
.lr-status { display: flex; flex-wrap: wrap; gap: 4px; justify-content: flex-start; }
.st-quiet { background: none; padding-left: 0; padding-right: 0; color: color-mix(in srgb, var(--ink) 72%, transparent); font-weight: 600; }
.st-done, .st-on { background: none; padding-left: 0; padding-right: 0; color: color-mix(in srgb, var(--ink) 72%, transparent); font-weight: 600; }
.st-done + .st-quiet::before, .st-on + .st-quiet::before { content: "· "; }
/* Month: what the number, the bar and the mark mean: one item each, sample first, wrapping as whole items. */
.month-caption { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; margin: 0; padding: 0; list-style: none; font-size: var(--t-caption1); color: color-mix(in srgb, var(--ink) 72%, transparent); }
.month-caption li { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
@media (max-width: 699px), (max-height: 500px) and (pointer: coarse) { .month-caption li { align-items: flex-start; } .month-caption li > :first-child { margin-top: 3px; } .month-caption li > .mc-bar { margin-top: 7px; } .month-caption li > .month-caption .mc-info { width: 28px; height: 28px; min-height: 0; margin-left: -2px; }
.month-caption .mc-info svg { width: 16px; height: 16px; }
.mc-num { margin-top: 0; } }
.mc-num { min-width: 1.4em; font-weight: 600; color: var(--ink); text-align: center; font-variant-numeric: tabular-nums; }
.mc-bar { display: inline-block; flex: none; width: 28px; height: 4px; border-radius: 4px; background: rgba(0, 0, 0, .07); }
.mc-bar i { display: block; height: 100%; border-radius: inherit; background: #1f3bd1; }
@media (max-width: 699px), (max-height: 500px) and (pointer: coarse) { .month-caption { display: grid; gap: 6px; } }
/* Names: the full name wherever it fits; "Camille R." only where calendar.js measured that it would be cut. */
.bk .nm-short { display: none; }
.bk .use-short .nm-full { display: none; } .bk .use-short .nm-short { display: inline; }
/* Clean-up time: said in words on the stripes when there is room. */
.bk-buffer { overflow: hidden; }
.bk-buffer-label { display: block; padding: 1px 6px; font-size: var(--t-caption1); font-weight: 500; line-height: 15px; color: color-mix(in srgb, var(--ink) 60%, transparent); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Month: what needs you comes first in a day, in the list's words; the names fit the cell (full, or "Emma P."). */
.month-flags { display: flex; flex-wrap: wrap; gap: 3px; min-width: 0; }
.month-flags .st { padding: 0 6px; font-size: var(--t-caption2); line-height: 15px; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.month-flags .st-n { font-weight: 600; font-variant-numeric: tabular-nums; }
@container (max-width: 130px) { .month-flags .st { padding: 0 4px; letter-spacing: 0; } }
.month-item-name .nm-short { display: none; }
.month-item-name.use-short .nm-full { display: none; } .month-item-name.use-short .nm-short { display: inline; }
/* Phones: one dot per day, in the colour of what matters most (red Conflict, yellow Deposit due, grey No-show), ringed. */
.month-dot { position: absolute; top: 6px; right: 6px; width: 8px; height: 8px; border-radius: 50%; background: #e6c34d; box-shadow: 0 0 0 1.5px #8a6700; }
.month-dot.bad { background: var(--red); box-shadow: 0 0 0 1.5px #8f000c; }
.month-dot.gone { background: #8a8f86; box-shadow: 0 0 0 1.5px #3f433c; }
.month-dot.mc-dot { position: static; flex: none; margin: 0 2px; }
.mc-flag { flex: none; padding: 0 6px; font-size: var(--t-caption2); line-height: 15px; }
/* What needs you sits at the end of the time row (it never covers the name); the time shortens first. */
.bk .bk-time > span { flex: 0 1 auto; }
.bk-tag.out { background: var(--bg); color: var(--ink); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ink) 55%, transparent); }
/* ---------- calendar on phones (2026-10-13 review) ---------- */
/* Clean-up time: a short word in a narrow column, and it sits over the now line, never under it. */
.bk-buffer { z-index: 3; container-type: inline-size; }
.bk-buffer-label { display: inline-block; max-width: 100%; border-radius: 4px; background: color-mix(in srgb, var(--bg) 88%, transparent); }
.bk-buffer-label .buf-short { display: none; }
@container (max-width: 110px) { .bk-buffer-label .buf-long { display: none; } .bk-buffer-label .buf-short { display: inline; } }
/* List: the length of time is a dropdown on phones, next to Jump to a date; search and status share one row. */
.list-span-pick { display: none; }
@media (max-width: 699px), (max-height: 500px) and (pointer: coarse) {
  .list-range { display: flex; gap: 8px; align-items: center; }
  .list-range > .list-span { display: none; }
  .list-range > .list-span-pick { display: block; flex: 1 1 auto; min-width: 0; width: auto; }
  .list-range > .list-jump { flex: none; }
  .list-filters { flex-wrap: nowrap; }
  .list-filters .list-search { flex: 1 1 120px; }
  .list-filters select { flex: 0 1 46%; min-width: 0; }
  .list-bar { gap: 8px; }
}
.key-num { font-family: var(--display); font-weight: 600; font-size: var(--t-subhead); }
/* ---------- calendar on phones, round 2 (2026-10-13 audit): fewer controls, one mark per day, compact rows ---------- */
/* A short booking: time, name, then the service as far as it fits (it used to drop the service). */
.bk-svc-inline { display: none; }
.bk.short b { flex: 0 1 auto; }
.bk.short .bk-svc-inline { display: block; flex: 1 1 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--t-caption1); color: color-mix(in srgb, var(--ink) 72%, transparent); }
/* List: the search has its icon; on phones one row of controls (search and Filters), the rest in the Filters sheet. */
.list-search-wrap { position: relative; display: flex; flex: 1 1 220px; min-width: 0; }
.list-search-wrap .list-search { flex: 1 1 auto; width: 100%; padding-left: 38px; }
.list-search-icon { position: absolute; left: 12px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); color: var(--fade); pointer-events: none; }
.list-search-icon svg { width: 18px; height: 18px; display: block; }
.list-filter-btn { display: none; flex: none; align-items: center; gap: 6px; }
.list-filter-btn > span { display: inline-flex; }
.list-filter-btn svg { width: 18px; height: 18px; }
.list-filter-count { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9999px; background: var(--ink); color: var(--bg); font-style: normal; font-size: var(--t-caption2); font-weight: 600; line-height: 18px; text-align: center; }
.list-filter-sheet .list-custom { display: grid; gap: 8px; }
@media (max-width: 699px), (max-height: 500px) and (pointer: coarse) {
  /* Month: one mark, the number of bookings; nothing on an empty day. The picked day is a circle (like Apple
     Calendar): black, or red when it is today. */
  .month-fill { display: none; }
  .month-cell.picked { background: transparent; box-shadow: none; }
  .month-cell.picked:not(.today) .num { background: var(--ink); color: var(--bg); }
  /* List rows: time, client, service; the staff only when more than one person shows; "Booked" goes without saying;
     the length is in the time range. */
  .list-filters select, .list-range { display: none; }
  .list-filter-btn { display: inline-flex; }
  .lr-time small.lr-len { display: none; }
  .lrow .st-on { display: none; }
  .lrows.one-person .lr-staff { display: none; }
  .lrows .list-day { border-bottom: 1px solid var(--sep); }
  .list-day.today b { color: var(--ink); }
  .list-day-count { padding: 0; background: none; font-weight: 400; color: var(--fade); }
}
@media (max-height: 500px) and (pointer: coarse) and (orientation: landscape) {
  /* The List: the search, Filters and the two chips in one row; the column names go (each row says what it is). */
  .list-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-bottom: 0; }
  .list-bar > .list-filters { flex: 1 1 240px; }
  .list-bar > .list-active { flex: 1 1 100%; }
  .lrow-head { display: none; }
  .cal-list .list-day, .lrows .list-day { padding-top: 8px; padding-bottom: 6px; }
  .lrow { min-height: 48px; padding-top: 6px; padding-bottom: 6px; }
  .month-dow { padding: 3px 0; }
  .month-cell { min-height: 38px; padding: 2px 0 3px; }
  .month-cell .num { width: 28px; min-width: 28px; height: 28px; font-size: var(--t-subhead); }
  .month-top { gap: 2px; }
  .month-wrap.beside { grid-template-columns: minmax(0, 1fr) minmax(240px, 44%); gap: 16px; }
  .month-wrap.beside .month-agenda { padding-left: 14px; }
  .month-wrap.beside .month-agenda-head.as-link { padding-top: 0; }
  .month-wrap.beside .lrow { grid-template-columns: 5.5rem minmax(0, 1fr) auto 14px; } /* the day beside the month: the name gets the room */
}
/* A two-line booking (about 30 minutes): the time on top, then the name and the service on one line. */
.bk-line { display: flex; align-items: baseline; gap: 6px; min-width: 0; }
.bk-line > b { flex: 0 1 auto; min-width: 0; }
.bk.bk-two .bk-line > .bk-svc-inline { display: block; flex: 1 1 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--t-caption1); color: color-mix(in srgb, var(--ink) 72%, transparent); }
.list-filter-sheet .list-span-pick { display: block; width: 100%; }
.bk-health { display: inline-flex; margin-inline-start: 4px; }

/* ---------- calendar checklist, Package C (2026-10-14 audit: rows 19–22, 28–33) ---------- */
/* Ten staff colours (CAL-UX-14). s6–s9 are dark enough for white initials (4.6:1 or more) and none is red. */
.s6 { --c: #0e7f8c; } .s7 { --c: #5856d6; } .s8 { --c: #8e5b3a; } .s9 { --c: #5b7a12; }

/* The bands (CAL-UX-03): one band per reason, its words where there is room. Break and "Starts at" read like Not working. */
.cal-off.why-shut { background: rgba(0, 0, 0, .11); }
.cal-closed.why-outside { background: rgba(0, 0, 0, .045); }
.cal-closed span, .cal-off span, .cal-busy span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cal-head-sub { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cal-head-sub.warn { display: inline-flex; }
@container (max-width: 150px) { .cal-head-sub .head-hours { display: none; } }

/* Booking blocks (type audit 2026-10-17, was layout spec 3's 12/14/13): the client in Footnote semibold, the service and
   the time in Caption 1, marks in Caption 2 (Apple Calendar's own cards are this small). Never under 11 px. A card grown to its hit size (grown) keeps its real time in its words. */
.bk { padding: 4px 6px 4px 8px; font-size: var(--t-footnote); }
.bk .bk-time { font-size: max(11px, var(--t-caption1)); font-weight: 600; }
.bk > b, .bk-line > b { font-size: var(--t-footnote); font-weight: 600; }
.bk > .bk-what { font-size: var(--t-caption1); }
.bk.l1 { padding-top: 0; padding-bottom: 0; }
.bk.grown { box-shadow: 0 0 0 1px color-mix(in srgb, var(--c, var(--faint)) 30%, transparent); }
/* Words never break in the middle (CAL-UX-12): a long service wraps between words, with hyphens where the language allows. */
.bk.bk-wrap > .bk-what { overflow-wrap: normal; word-break: normal; hyphens: auto; }
.bk .nm-first { display: none; }
/* A phone's Week: the start time and the first name only ("10 Olivia"); the rest is on tap. */
.bk.bk-brief .bk-range, .bk.bk-brief .bk-compact { display: none; }
.bk.bk-brief .bk-start { display: inline; }
.bk.bk-brief .nm-full, .bk.bk-brief .use-short .nm-short, .bk.bk-brief .nm-short { display: none; }
.bk.bk-brief .nm-first { display: inline; }
.bk.bk-brief > .bk-what { display: none; }
@media (max-width: 699px), (max-height: 500px) and (pointer: coarse) { .is-week .bk .bk-time { font-size: 12px; } }

/* Month (CAL-UX-05): today is the ink number in a thin ring, never red; the picked day is a filled ink circle and an
   outline round the cell; today and picked: the filled circle with the ring. Red stays for conflicts only. */
.month-cell.today .num { color: var(--ink); font-weight: 600; box-shadow: inset 0 0 0 1.5px var(--ink); }
.month-cell.picked { box-shadow: inset 0 0 0 2px var(--ink); }
.month-cell.picked .num { background: var(--ink); color: var(--bg); box-shadow: none; }
.month-cell.today.picked .num { background: var(--ink); color: var(--bg); box-shadow: 0 0 0 2px var(--bg), 0 0 0 3.5px var(--ink); }
@media (max-width: 699px), (max-height: 500px) and (pointer: coarse) {
  .month-cell.picked { box-shadow: none; }
  .month-cell.picked:not(.today) .num, .month-cell.today.picked .num { background: var(--ink); color: var(--bg); }
}
/* Names in a cell: the full name, cut to "Emma P." only where it would not fit (calendar-parts.js fitNames). */
.month-item-name .nm-short { display: none; }
.month-item-name.use-short .nm-full { display: none; }
.month-item-name.use-short .nm-short { display: inline; }
.month-item.gone .month-item-name { text-decoration: line-through; color: color-mix(in srgb, var(--ink) 60%, transparent); }
/* A computer: the month fills the height (no page scroll for the month), the caption is pinned under it, and the day
   panel beside it scrolls on its own (CAL-UX-08, layout spec 6–7). */
@media (min-width: 700px) and (min-height: 501px), (min-width: 700px) and (pointer: fine) {
  .cal-month:has(.month-wrap.fits) { overflow: hidden; }
  .month-wrap.fits { height: 100%; min-height: 0; align-items: stretch; }
  .month-wrap.fits .month-main { display: flex; flex-direction: column; min-height: 0; height: 100%; }
  .month-wrap.fits .month-grid { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; grid-template-rows: auto; grid-auto-rows: minmax(104px, 1fr); }
  .month-wrap.fits .month-dow { position: sticky; top: 0; z-index: 1; background: var(--bg); }
  .month-wrap.fits .month-cell { min-height: 0; overflow: hidden; }
  .month-wrap.fits .month-caption { flex: none; padding: 2px 0 4px; }
  .month-wrap.fits.beside { grid-template-columns: minmax(0, 1fr) 320px; }
  .month-wrap.fits.beside .month-agenda { position: static; height: 100%; max-height: none; overflow: auto; }
}
.month-agenda-tools { display: inline-flex; align-items: center; gap: 4px; }
.month-agenda.in-sheet { border-top: 0; }
.month-agenda.in-sheet .month-agenda-head { padding-top: 0; }
.mc-panel { margin-left: auto; }

/* List (layout spec 5): Time · Client · Service · Staff · Status · Paid · ›. The client always has room (CAL-UX-01). */
.lrow, .lrow-head { grid-template-columns: 9.5rem minmax(10rem, 1.4fr) minmax(6rem, 1.2fr) minmax(0, 10rem) 7rem 6.5rem 20px; }
.lr-staff { max-width: 10rem; }
.lr-staff > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.lr-staff-first { display: none; }
.lr-status .lr-owed { display: none; }
.lr-paid { min-width: 0; }
.lr-status .st-on { background: none; padding-left: 0; padding-right: 0; color: color-mix(in srgb, var(--ink) 72%, transparent); font-weight: 600; }
.st-part { background: #fff3c4; color: #6b4e00; }
@container (max-width: 43rem) {
  /* Two lines: time · client · status / length · service · first name. The staff cell never takes the client's room. */
  .lrow { grid-template-columns: 7.1rem minmax(8rem, 1fr) minmax(0, max-content) 14px; }
  .lrow-head { display: none; }
  .lr-paid { display: none; }
  .lr-status .lr-owed { display: inline-block; }
  .lrow .lr-status .st-on { display: inline-block; }
  .lr-staff { max-width: 40cqw; }
  .lr-staff-full { display: none; }
  .lr-staff-first { display: inline; }
  .lr-client b { min-width: 0; }
}
@container (max-width: 22rem) { .lrow { grid-template-columns: 5.6rem minmax(6rem, 1fr) minmax(0, max-content) 14px; } }
/* The day panel beside the month: the client's name first, the staff and status cut before it (CAL-UX-01). */
.month-wrap.beside .lrows .lrow { grid-template-columns: 5.5rem minmax(7rem, 1fr) minmax(0, max-content) 14px; }
.month-agenda .lr-staff { max-width: 6.5rem; }
/* A conflict on a phone's narrow week card: the red outline says it; the round mark would cover the time. */
.bk.bk-brief .bk-tag.bad { display: none; }
/* The cancel question inside the notice time (booking sheet, day.js cancelAsk): two big, plain choices. */
.btn.cancel-who { display: grid; justify-items: start; gap: 2px; min-height: 56px; padding: 10px 16px; text-align: left; white-space: normal; }
.btn.cancel-who span { font-weight: 500; font-size: var(--t-footnote); color: color-mix(in srgb, var(--ink) 72%, transparent); }

/* The forecast (plan 47): faint, beside the real numbers. A dashed look when it is a rough guess (under 4 weeks to learn from). */
.month-fill-exp { position: absolute; top: -2px; width: 2px; height: 8px; margin-left: -1px; border-radius: 1px; background: color-mix(in srgb, var(--ink) 38%, transparent); }
.month-expect { position: absolute; left: 6px; right: 6px; bottom: 12px; overflow: hidden; font-size: var(--t-caption2); line-height: 1.2; white-space: nowrap; text-overflow: ellipsis; color: color-mix(in srgb, var(--ink) 55%, transparent); }
.month-expect.rough, .day-expect.rough { font-style: italic; }
.day-expect { display: block; max-width: 100%; overflow: hidden; font-size: var(--t-caption2); font-weight: 400; white-space: nowrap; text-overflow: ellipsis; color: color-mix(in srgb, var(--ink) 55%, transparent); }
.cal-quiet { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 4px 0 8px; font-size: var(--t-footnote); color: color-mix(in srgb, var(--ink) 72%, transparent); }
.cal-quiet[hidden] { display: none; }
.cal-quiet b { font-weight: 600; color: var(--ink); }
.cal-quiet .quiet-day { padding: 2px 8px; border: 1px solid var(--line, rgba(0, 0, 0, .12)); border-radius: 9999px; background: none; color: inherit; font: inherit; cursor: pointer; }
.cal-quiet .rough-tag { padding: 1px 6px; border-radius: 4px; background: var(--fill, rgba(0, 0, 0, .06)); font-style: italic; }
@media (max-width: 767px) { .month-expect { display: none; } }
.month-expect .exp-short { display: none; }
@container (max-width: 159px) { .month-expect .exp-long { display: none; } .month-expect .exp-short { display: inline; } }

/* Booked by the client's own AI assistant (plan 48): a small word tag on the block and in the booking. */
/* .bk-square (plan 54): the same small tag, "Square" on a booking from Square. */
.bk-ai { display: inline-flex; align-items: center; margin-inline-start: 4px; padding: 0 4px; border-radius: 4px; font-size: var(--t-caption2); font-weight: 600; line-height: 14px; border: 1px solid currentColor; opacity: .8; }

/* ---------- Calendar redesign (2026-10-16, docs/audits/calendar-2026-10-16-redesign.md) ----------
   Loaded after app.css, so these win over the older phone rules with the same weight. */
/* Phones: the header is two rows. 1) the date (the count and value small under it) · ‹ Today › · ⋯
   2) Day / Week / Month / List · whose bookings (a face). Every control 44 × 44. */
@media (max-width: 699px) {
  .cal-toolbar.slim { display: grid; gap: 4px; margin: -2px 0 6px; }
  .cal-toolbar.slim .cal-bar-date { display: flex; align-items: center; gap: 0; min-width: 0; }
  .cal-toolbar.slim .cal-title-wrap { flex: 1 1 auto; min-width: 0; align-self: center; }
  .cal-toolbar.slim .cal-title { gap: 0; padding-top: 0; padding-bottom: 0; }
  .cal-toolbar.slim .cal-title-main { font-size: var(--t-title3); line-height: 1.15; }
  .cal-toolbar.slim .cal-subrow-text { display: block; min-width: 0; font-size: var(--t-caption1); line-height: 1.3; color: var(--fade); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
  .cal-toolbar.slim .cal-nav { margin-right: 0; }
  .cal-toolbar.slim .cal-nav .icon-btn { width: 44px; height: 44px; min-height: 44px; }
  .cal-toolbar.slim .cal-nav .cal-today { height: 44px; min-height: 44px; min-width: 44px; padding: 0 6px; font-size: var(--t-footnote); }
  .cal-toolbar.slim .cal-more-mini { position: relative; flex: none; width: 44px; height: 44px; margin-right: -10px; background: none; color: var(--ink); }
  .cal-toolbar.slim .cal-more-mini::after { content: none; }
  .cal-toolbar.slim .cal-bar-top { display: flex; align-items: center; gap: 8px; min-width: 0; }
  .cal-toolbar.slim .cal-bar-top > .cal-modes { display: grid; flex: 1 1 auto; width: auto; min-width: 0; }
  .cal-toolbar.slim .cal-modes button { min-height: 30px; height: 30px; font-weight: 500; } /* matches Reports' dates (app.css, 2026-10-17); the tap area stays 44 px */
  .cal-toolbar.slim .cal-modes button[aria-pressed="true"] { font-weight: 600; }
  .cal-toolbar.slim .cal-bar-top > .cal-whobtn:not([hidden]) { display: inline-grid; }
  .cal-toolbar.slim .cal-whobtn { position: relative; place-items: center; flex: none; width: 34px; height: 34px; max-width: none; padding: 0; border-radius: 50%; background: var(--fill); }
  .cal-toolbar.slim .cal-whobtn::after { content: ""; position: absolute; inset: -5px; } /* 34 px to the eye, 44 px to the finger */
  .cal-toolbar.slim .cal-whobtn .av.sm { width: 26px; height: 26px; font-size: 11px; }
  .cal-toolbar.slim .cal-whobtn .av.all { background: none; }
  .cal-toolbar.slim .cal-whobtn-name, .cal-toolbar.slim .cal-whobtn-short, .cal-toolbar.slim .cal-whobtn-mark { display: none; }
  .cal-toolbar.slim .cal-whobtn.on { box-shadow: inset 0 0 0 2px var(--ink); }
  /* Scrolling the grid: the date gets a little smaller, the summary stays. */
  .cal-toolbar.slim.compact .cal-title-main { font-size: var(--t-headline); }
}
@media (max-height: 500px) and (pointer: coarse) and (orientation: landscape) {
  .cal-toolbar.slim .cal-bar-date, .cal-toolbar.slim .cal-bar-top { display: contents; }
  .cal-toolbar.slim .cal-bar-top > .cal-whobtn:not([hidden]) { display: inline-flex; }
}
/* The phone's grid swipes a whole day (or person) at a time, stopping right after the hour column. The old phone rule
   lost to the base .cal rule written after it in app.css (same weight), so the swipe stopped 14 px off. */
@media (max-width: 699px), (max-height: 500px) and (pointer: coarse) {
  .cal { scroll-snap-type: x mandatory; scroll-padding-left: 42px; }
  .cal.cal-month, .cal.cal-list { scroll-snap-type: none; }
}
/* The bottom of every view clears the dock and the + (one value everywhere). --dock-space (main dock, app.css) already
   holds the home bar's safe area; the fallback and the floor add it, so it is counted once, never left out. */
@media (max-width: 767px), (max-height: 500px) and (pointer: coarse) {
  .cal { scroll-padding-bottom: max(var(--dock-space, calc(96px + env(safe-area-inset-bottom))), calc(84px + env(safe-area-inset-bottom))); }
  .cal-end { height: max(var(--dock-space, calc(96px + env(safe-area-inset-bottom))), calc(84px + env(safe-area-inset-bottom))); }
  .month-wrap, .list-wrap, .cal > .empty, .cal.all-list { padding-bottom: max(var(--dock-space, calc(96px + env(safe-area-inset-bottom))), calc(84px + env(safe-area-inset-bottom))); }
}
/* Now: the red line meets its time in the hour column (no gap between the label and the line). */
.cal-now { left: -1px; }
/* The forecast, when the person shows it: ONE line that scrolls sideways (never a wall of chips). */
.cal-quiet { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; white-space: nowrap; gap: 6px; margin: 0 0 6px; }
.cal-quiet::-webkit-scrollbar { display: none; }
.cal-quiet b { flex: none; }
.cal-quiet .quiet-day, .cal-quiet .quiet-fill { flex: none; min-height: 44px; padding: 0 12px; border: 0; border-radius: 9999px; background: var(--fill); color: var(--ink); font: inherit; font-weight: 600; cursor: pointer; }
.cal-quiet .quiet-fill { background: none; text-decoration: underline; text-underline-offset: 3px; }
@media (pointer: fine) { .cal-quiet .quiet-day, .cal-quiet .quiet-fill { min-height: 30px; } }
/* Month: the day marks (cal.monthMarks) and their legend. */
.day-n { min-width: 16px; padding: 0 4px; border-radius: 9999px; font-size: var(--t-caption2); font-weight: 600; line-height: 15px; text-align: center; color: color-mix(in srgb, var(--ink) 72%, transparent); font-variant-numeric: tabular-nums; }
.day-n.need { background: #fff3c4; color: #6b4e00; box-shadow: inset 0 0 0 1px #e6c34d; }
.month-cell.tint-1 { background: rgba(31, 59, 209, .08); }
.month-cell.tint-2 { background: rgba(31, 59, 209, .2); }
.month-cell.tint-3 { background: rgba(31, 59, 209, .36); }
.month-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; margin: 0; padding: 0; list-style: none; font-size: var(--t-caption1); color: color-mix(in srgb, var(--ink) 72%, transparent); }
.month-legend li { display: inline-flex; align-items: center; gap: 5px; }
.month-legend .day-dot { width: 6px; height: 6px; }
.lg-tint { display: inline-block; width: 14px; height: 10px; border-radius: 3px; box-shadow: inset 0 0 0 1px var(--hair-ink); }
.lg-tint.tint-1 { background: rgba(31, 59, 209, .08); } .lg-tint.tint-2 { background: rgba(31, 59, 209, .2); } .lg-tint.tint-3 { background: rgba(31, 59, 209, .36); }
@media (max-width: 699px), (max-height: 500px) and (pointer: coarse) {
  .month-cell { min-height: 48px; }
  .month-top { gap: 1px; }
  .month-cell.tint-1, .month-cell.tint-2, .month-cell.tint-3 { border-radius: 0; }
  .month-cell.outside .day-n { display: none; }
  /* The agenda under the month: the day's name is a 44pt row; then its bookings. */
  .month-agenda-head.as-link { min-height: 44px; padding: 6px 0 4px; }
}
/* List: the search (show.search) and denser rows; "Booked" is no longer written on normal rows. */
.list-search-btn { flex: none; width: var(--tap); height: var(--tap); border-radius: var(--r-field); background: var(--fill); color: var(--ink); }
.list-search-btn svg { width: 20px; height: 20px; }
.list-bar.search-shut .list-filters { gap: 8px; }
.list-bar.search-shut .list-filters > .list-chips { flex: 1 1 auto; min-width: 0; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.list-bar.search-shut .list-filters > .list-chips::-webkit-scrollbar { display: none; }
.list-chip { min-height: 44px; }
@media (pointer: fine) { .list-chip { min-height: 32px; } .list-search-btn { width: 36px; height: 36px; } }
.list-search { min-height: 44px; }
@media (pointer: fine) { .list-search { min-height: 36px; } }
@media (max-width: 699px), (max-height: 500px) and (pointer: coarse) {
  .list-bar.search-compact > .list-chips { display: none; } /* status and dates are in Filters (the title says the dates) */
  .list-bar { padding: 0 0 2px; }
  .cal-list .list-day, .lrows .list-day { padding: 10px 2px 5px; }
  .lrow { padding-top: 6px; padding-bottom: 6px; min-height: 44px; }
  .lr-client b { font-size: var(--t-subhead); }
}
/* Computers: denser List rows too (the time and its length on two short lines). */
@media (min-width: 700px) and (min-height: 501px), (min-width: 700px) and (pointer: fine) {
  .lrow { min-height: 46px; padding-top: 5px; padding-bottom: 5px; }
}
/* A no-show: the client's name is struck through, never its "No-show" mark. */
.bk.noshow b { text-decoration: none; }
.bk.noshow b .bk-name { text-decoration: line-through; }
@media (max-width: 699px), (max-height: 500px) and (pointer: coarse) { .lr-status { flex-wrap: nowrap; } }

/* ---------- The toolbar on computers and iPads, in groups (shell audit 2026-10-16, point 5) ----------
     [small month] [Day|Week|Month|List]  [‹ Today › date ▾ · Closed days hidden · Show all 7]  ......
     [Location ▾  Showing: Sam ▾  Next person ›]  [⋯ More]  [+ New booking]
   calendar.js fitBar steps when tight: fit-1 Staff and Location get shorter, More and the closed-days switch keep
   only their short form; fit-2 Staff is its face, Next person its arrow; fit-3 New booking its + (last of all). */
.cal-toolbar.cal-bar { column-gap: 6px; }
.cal-bar > .cal-datebar { display: flex; align-items: center; gap: 4px; flex: 1 1 8rem; min-width: 0; }
.cal-datebar > .cal-nav { flex: none; }
.cal-datebar > .cal-title-wrap { flex: 0 1 auto; min-width: 5.5rem; padding: 0 4px; }
.cal-toolbar.cal-bar.stack > .cal-datebar { order: 10; flex: 1 1 100%; }
.cal-filters { display: flex; align-items: center; gap: 6px; flex: 0 1 auto; min-width: 0; }
.cal-filters > * { flex: none; }
.cal-filters > .cal-staff, .cal-filters > .cal-loc { flex: 0 1 auto; min-width: 3rem; }
.cal-allweek { flex: none; align-self: flex-end; margin-bottom: 1px; min-height: 28px; padding: 0 10px; border-radius: 9999px; background: var(--fill); color: var(--ink);
  font-size: var(--t-footnote); font-weight: 600; white-space: nowrap; }
.cal-allweek[hidden], .cal-nextp[hidden] { display: none; }
.cal-allweek .cal-allweek-short { display: none; }
@media (hover: hover) { .cal-allweek:hover { background: var(--fill-2); } }
.cal-nextp { display: inline-flex; align-items: center; gap: 4px; background: none; box-shadow: inset 0 0 0 1px var(--line-ink); white-space: nowrap; }
.cal-nextp-mark { display: inline-flex; }
.cal-nextp-mark svg { width: 13px; height: 13px; }
@media (hover: hover) { .cal-nextp:hover { background: var(--fill); } }
.cal-more-btn { display: inline-flex; align-items: center; gap: 6px; background: none; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-ink); white-space: nowrap; }
.cal-more-btn .cal-more-icon { display: inline-flex; }
.cal-more-btn .cal-more-icon svg { width: 16px; height: 16px; }
@media (hover: hover) { .cal-more-btn:hover { background: var(--fill); } }
.cal-more-menu .menu-note:first-child { font-weight: 600; color: var(--ink); }
/* New booking is the primary button: its words stay until the very last step. */
.cal-toolbar.cal-bar:not(.fit-3) .cal-add { width: auto; padding: 0 14px 0 12px; gap: 6px; }
.cal-toolbar.cal-bar:not(.fit-3) .cal-add .cal-add-words { display: inline-flex; }
.cal-toolbar.cal-bar.fit-3 .cal-add { width: 32px; padding: 0; justify-content: center; }
.cal-toolbar.cal-bar.fit-3 .cal-add .cal-add-words { display: none; }
@media (pointer: coarse) { .cal-toolbar.cal-bar.fit-3 .cal-add { width: 44px; } }
/* fit-1 */
.cal-toolbar.cal-bar:is(.fit-1, .fit-2, .fit-3) .cal-staff.has-short .cal-whobtn-name { display: none; }
.cal-toolbar.cal-bar.fit-1 .cal-staff.has-short .cal-whobtn-short { display: inline; }
.cal-toolbar.cal-bar:is(.fit-1, .fit-2, .fit-3) .cal-loc .cal-loc-name { display: none; }
.cal-toolbar.cal-bar:is(.fit-1, .fit-2, .fit-3) .cal-loc .cal-loc-icon { display: inline-flex; }
.cal-toolbar.cal-bar:is(.fit-1, .fit-2, .fit-3) .cal-more-btn .cal-more-words { display: none; }
.cal-toolbar.cal-bar:is(.fit-1, .fit-2, .fit-3) .cal-more-btn { width: 32px; padding: 0; justify-content: center; }
.cal-toolbar.cal-bar:is(.fit-1, .fit-2, .fit-3) .cal-allweek .cal-allweek-long { display: none; }
.cal-toolbar.cal-bar:is(.fit-1, .fit-2, .fit-3) .cal-allweek .cal-allweek-short { display: inline; }
/* fit-2 */
.cal-toolbar.cal-bar:is(.fit-2, .fit-3) .cal-staff .cal-whobtn-name, .cal-toolbar.cal-bar:is(.fit-2, .fit-3) .cal-staff .cal-whobtn-short { display: none; }
.cal-toolbar.cal-bar:is(.fit-2, .fit-3) .cal-staff { padding-right: 8px; }
.cal-toolbar.cal-bar:is(.fit-2, .fit-3) .cal-nextp .cal-nextp-words { display: none; }
.cal-toolbar.cal-bar:is(.fit-2, .fit-3) .cal-nextp { width: 32px; padding: 0; justify-content: center; }
@media (pointer: coarse) { .cal-toolbar.cal-bar:is(.fit-1, .fit-2, .fit-3) .cal-more-btn, .cal-toolbar.cal-bar:is(.fit-2, .fit-3) .cal-nextp { width: 44px; } }
.cal-toolbar.cal-bar:is(.fit-2, .fit-3) .cal-modes button { min-width: 44px; padding: 0 6px; }

/* An empty time tapped: marked while its choice menu is open (New booking · Fill my chair). */
.slot-pick { position: absolute; left: 2px; right: 2px; z-index: 3; border-radius: 8px; background: color-mix(in srgb, var(--tint) 14%, transparent);
  box-shadow: inset 0 0 0 1.5px var(--tint); color: var(--tint); font-size: var(--t-caption1); font-weight: 600; padding: 2px 8px; pointer-events: none; }

/* ---------- Reservations lane (plan 57) ----------
   A lane is a column for one reservation service: its cards in .lane-blocks (clear of the strip), and the people
   seated each half hour in .res-cov at the right edge (a small bar against the seats, and the number). */
.lane-blocks { position: absolute; inset: 0 30px 0 0; pointer-events: none; }
.lane-blocks .bk, .lane-blocks .bk-buffer { pointer-events: auto; }
.res-cov { position: absolute; right: 2px; width: 26px; z-index: 1; display: grid; align-items: end; justify-items: center; pointer-events: auto; border-radius: 5px; overflow: hidden; background: color-mix(in srgb, var(--ink) 5%, transparent); }
.res-cov i { position: absolute; left: 0; right: 0; bottom: 0; background: color-mix(in srgb, var(--accent, #2f6f4e) 26%, transparent); }
.res-cov.near i { background: color-mix(in srgb, #ff9500 34%, transparent); }
.res-cov.full i { background: color-mix(in srgb, var(--red, #d70015) 30%, transparent); }
.res-cov b { position: relative; align-self: center; font-size: max(10px, .6875rem); font-weight: 600; font-variant-numeric: tabular-nums; color: color-mix(in srgb, var(--ink) 82%, transparent); }
.bk .bk-party { font-weight: 600; font-variant-numeric: tabular-nums; }
.cal-head.lane .av { display: inline-grid; place-items: center; }
/* Week's day columns are narrow: a slimmer strip, so the cards keep their room. */
.cal-inner.is-week .lane-blocks { right: 20px; }
.cal-inner.is-week .res-cov { width: 17px; right: 1px; }
.cal-inner.is-week .res-cov b { font-size: max(9px, .5625rem); }
