/* public/widgets/ht-calendar.css
   THE date and time kit: the calendar (ht-calendar.js), the time picker (ht-time.js), the When control
   (schedule-when.js), the day and time pair (ht-dt.js) and the Schedule window (schedule-view.js). The day grid, chips,
   arrows and month/year grids are the phone Schedule "Go to a date" sheet's own styles (public/mobile/schedule.html
   .dp-*), renamed htc- so every page can use them. Tokens only; light and dark come from the token layer. No em or en
   dashes in this file. */

/* The royal ink on soft royal: the phone's --m-ink-royal-strong where the page has it, the same two values on the web. */
.htc, .htw, .htt, .htc-overlay, .ht-dt, .hsv-back, .ht-daychip, .htw-time { --htk-ink: var(--m-ink-royal-strong, #1E4F8A); }
:root[data-theme="dark"] :is(.htc, .htw, .htt, .htc-overlay, .ht-dt, .hsv-back, .ht-daychip, .htw-time) { --htk-ink: var(--m-ink-royal-strong, #9EC5F5); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) :is(.htc, .htw, .htt, .htc-overlay, .ht-dt, .hsv-back, .ht-daychip, .htw-time) { --htk-ink: var(--m-ink-royal-strong, #9EC5F5); } }

.htc-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.htc-title { flex: 1; min-width: 0; }
.htc-zoom { appearance: none; -webkit-appearance: none; border: 0; background: transparent; font: inherit; font-size: 20px; font-weight: 800; color: var(--ink);
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 8px; margin-left: -8px; border-radius: 12px; min-height: 44px; cursor: pointer; }
.htc-zoom.is-zoomed { background: var(--brand-royal-soft); }
.htc-zoom i { font-style: normal; font-size: 13px; color: var(--htk-ink); }
.htc-zoom:disabled { color: var(--ink); opacity: 1; cursor: default; }
.htc-sub { display: block; font-size: 12px; font-weight: 600; color: var(--ink-3); }
.htc-arrow { appearance: none; -webkit-appearance: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface-2);
  color: var(--ink); display: grid; place-items: center; font-size: 20px; flex: none; cursor: pointer; }
.htc-arrow:disabled { opacity: .35; cursor: default; }
.htc-quick { display: flex; gap: 8px; margin-bottom: 12px; }
.htc-quick button { flex: 1; appearance: none; -webkit-appearance: none; border: 0; font: inherit; text-align: center; padding: 10px 0; border-radius: 12px; min-height: 44px;
  background: var(--surface-2); font-size: 13px; font-weight: 700; color: var(--ink); cursor: pointer; }
.htc-quick button.is-on { background: var(--brand-royal-soft); box-shadow: inset 0 0 0 1px var(--brand-royal); color: var(--htk-ink); }
.htc-quick button:disabled { opacity: .4; cursor: default; }
.htc-dow { display: grid; grid-template-columns: repeat(7, 1fr); font-size: 11px; font-weight: 700; color: var(--ink-3); text-align: center; margin-bottom: 4px; letter-spacing: .04em; }
.htc-grid { display: grid; grid-template-columns: repeat(7, 1fr); row-gap: 4px; }
.htc-d { appearance: none; -webkit-appearance: none; border: 0; background: transparent; font: inherit; height: 48px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; border-radius: 14px; font-size: 16px; font-weight: 700; color: var(--ink); cursor: pointer; position: relative; }
.htc-d i { font-style: normal; font-size: 10px; font-weight: 700; color: var(--htk-ink); height: 12px; line-height: 12px; }
.htc-d:hover:not(.is-sel):not(.is-off) { background: var(--surface-2); }
.htc-d:focus-visible { outline: 2px solid var(--brand-royal); outline-offset: 1px; }
.htc-d.is-out { color: var(--ink-3); opacity: .4; }
/* A Sunday is a normal day for staff (Richard 2026-11-16): no special color. Customers get is-off below. */
.htc-d.is-today { box-shadow: inset 0 0 0 2px var(--brand-royal); }
.htc-d.is-band { background: var(--brand-royal-soft); border-radius: 0; }
.htc-d.is-from { background: var(--brand-royal-soft); box-shadow: inset 0 0 0 2px var(--brand-royal); }
.htc-d.is-sel { background: var(--brand-royal); color: #fff; }
.htc-d.is-sel i { color: #fff; }
.htc-d.is-off { color: var(--ink-3); opacity: .45; cursor: not-allowed; }
.htc-skel { display: inline-block; width: 12px; height: 7px; border-radius: 4px; background: var(--surface-2); vertical-align: middle; }
.htc-mgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.htc-m { appearance: none; -webkit-appearance: none; border: 0; font: inherit; height: 72px; border-radius: 16px; background: var(--surface-2); cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 17px; font-weight: 800; color: var(--ink); }
.htc-m i { font-style: normal; font-size: 11px; font-weight: 700; color: var(--ink-3); margin-top: 3px; min-height: 13px; }
.htc-m.is-now { box-shadow: inset 0 0 0 2px var(--brand-royal); }
.htc-m.is-sel { background: var(--brand-royal); color: #fff; }
.htc-m.is-sel i { color: #fff; }
.htc-foot { text-align: center; font-size: 12px; font-weight: 600; color: var(--ink-3); margin-top: 12px; }

/* Day / time buttons of a form (the board's New event, the phone's event sheet): a button that opens THE calendar or THE
   time picker over a hidden input. 44px to tap. */
.htp-row { display: flex; gap: 10px; align-items: flex-end; }
.htp-row[hidden], .htp-check[hidden] { display: none; }
.htp-f { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.htp-to { flex: none; align-self: center; padding-top: 22px; font-size: 13px; font-weight: 700; color: var(--ink-3); }
.htp-btn { appearance: none; -webkit-appearance: none; width: 100%; box-sizing: border-box; display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 12px;
  border: 1px solid var(--border); border-radius: 12px; background: var(--surface); color: var(--ink); font: inherit; font-size: 15px; font-weight: 700; text-align: left; cursor: pointer; }
.htp-btn svg { flex: none; color: var(--htk-ink, var(--brand-royal)); }
.htp-btn:focus-visible { outline: 2px solid var(--brand-royal); outline-offset: 1px; }
.htp-rel { font-size: 12px; font-weight: 700; color: var(--htk-ink, var(--brand-royal)); background: var(--brand-royal-soft); padding: 2px 7px; border-radius: 999px; }
.htp-check { display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: 14px; font-weight: 600; color: var(--ink); cursor: pointer; }
.htp-check input { width: 20px; height: 20px; accent-color: var(--brand-royal); }

/* Compact (the board's left mini month, a 220px sidebar): the same calendar, smaller cells, no hint lines. */
.htc--compact .htc-head { margin-bottom: 6px; gap: 4px; }
.htc--compact .htc-zoom { font-size: 15px; min-height: 30px; padding: 2px 6px 2px 6px; margin-left: -6px; }
.htc--compact .htc-arrow { width: 28px; height: 28px; font-size: 16px; }
.htc--compact .htc-quick { gap: 4px; margin-bottom: 8px; }
.htc--compact .htc-quick button { min-height: 28px; padding: 4px 0; font-size: 11px; border-radius: 8px; }
.htc--compact .htc-dow { font-size: 9px; letter-spacing: 0; }
.htc--compact .htc-grid { row-gap: 2px; }
.htc--compact .htc-d { height: 32px; font-size: 12px; border-radius: 8px; }
.htc--compact .htc-d i { font-size: 8px; height: 9px; line-height: 9px; }
.htc--compact .htc-m { height: 46px; font-size: 13px; border-radius: 10px; }
.htc--compact .htc-m i { font-size: 9px; }
.htc--compact .htc-mgrid { gap: 6px; }

/* The sheet (phone) and the popover (computer). */
.htc-overlay { position: fixed; inset: 0; z-index: var(--z-popover, 1100); }
.htc-overlay.is-sheet { background: rgba(15, 23, 42, .45); display: flex; align-items: flex-end; justify-content: center; }
.htc-panel { background: var(--surface); color: var(--ink); box-sizing: border-box; }
.htc-overlay.is-sheet .htc-panel { width: 100%; max-width: 560px; max-height: min(92vh, calc(100% - env(safe-area-inset-top, 0px) - 12px)); overflow: auto; border-radius: 24px 24px 0 0; padding: 0 0 max(12px, env(safe-area-inset-bottom)); }
.htc-overlay.is-popover .htc-panel { position: fixed; width: 372px; max-width: calc(100vw - 16px); border: 1px solid var(--border); border-radius: 16px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, .18), 0 2px 6px rgba(15, 23, 42, .08); padding-bottom: 4px; }
.htc-grab { width: 44px; height: 5px; border-radius: 3px; background: var(--border); margin: 10px auto 2px; }
.htc-ptitle { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px 12px 20px; border-bottom: 1px solid var(--border);
  font-size: 17px; font-weight: 800; }
.htc-overlay.is-popover .htc-ptitle { font-size: 14px; padding: 8px 8px 8px 16px; }
.htc-x { appearance: none; border: 0; background: transparent; color: var(--ink); width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; cursor: pointer; }
.htc-x:hover { background: var(--surface-2); }
.htc--panel { padding: 16px 20px 4px; }
.htc-overlay.is-popover .htc--panel { padding: 12px 14px 8px; }
.htc-overlay.is-popover .htc-d { height: 42px; font-size: 15px; }
.htc-pfoot { padding: 10px 20px 4px; border-top: 1px solid var(--border); margin-top: 8px; }
.htc-close { appearance: none; width: 100%; min-height: 48px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface); color: var(--ink);
  font: inherit; font-size: 16px; font-weight: 700; cursor: pointer; }

/* The ONE "when is this visit" control (public/widgets/schedule-when.js): a day button that opens the calendar
   above, then the arrival windows as the calendar's own chips. */
.htw { display: flex; flex-direction: column; gap: 12px; container-type: inline-size; }
.htw-row { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 10px; align-items: start; }
.htw-lbl { font-size: 13px; font-weight: 700; color: var(--ink-3); padding-top: 13px; }
.htw-day { appearance: none; -webkit-appearance: none; display: flex; align-items: center; gap: 10px; width: 100%; min-height: 48px; padding: 0 14px;
  border: 1px solid var(--border); border-radius: 12px; background: var(--surface); color: var(--ink); font: inherit; font-size: 15px; font-weight: 700; text-align: left; cursor: pointer; }
.htw-day:hover { border-color: var(--brand-royal); }
.htw-day:focus-visible { outline: 2px solid var(--brand-royal); outline-offset: 1px; }
.htw-day svg:first-child { color: var(--htk-ink); flex: none; }
.htw-day svg:last-child { color: var(--ink-3); flex: none; margin-left: auto; }
.htw-day.is-empty .htw-day-t { color: var(--ink-3); font-weight: 600; }
.htw-rel { font-size: 12px; font-weight: 700; color: var(--htk-ink); background: var(--brand-royal-soft); padding: 3px 8px; border-radius: 999px; }
.htw-wins { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
@container (min-width: 640px) { .htw-wins { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.htw-win { appearance: none; -webkit-appearance: none; border: 0; font: inherit; min-height: 44px; padding: 8px 6px; border-radius: 12px; background: var(--surface-2);
  font-size: 13px; font-weight: 700; color: var(--ink); cursor: pointer; text-align: center; line-height: 1.2; }
.htw-win:hover:not(:disabled):not(.is-on) { box-shadow: inset 0 0 0 1px var(--border); }
.htw-win.is-on { background: var(--brand-royal); color: #fff; }
.htw-win.htw-alt { grid-column: span 1; background: transparent; box-shadow: inset 0 0 0 1px var(--border); color: var(--htk-ink); }
.htw-win.htw-alt.is-on { background: var(--brand-royal-soft); box-shadow: inset 0 0 0 1px var(--brand-royal); color: var(--htk-ink); }
.htw-win:disabled { opacity: .45; cursor: default; }
.htw-custom { display: flex; align-items: flex-end; gap: 10px; margin-left: 82px; }
.htw-tl { display: flex; flex-direction: column; gap: 4px; flex: 1; font-size: 12px; font-weight: 700; color: var(--ink-3); }
.htw-sel { min-height: 44px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); color: var(--ink); font: inherit; font-size: 15px; font-weight: 700; padding: 0 10px; }
.htw-to { padding-bottom: 12px; font-size: 13px; font-weight: 700; color: var(--ink-3); }
.htw-note, .htw-hint { margin: -4px 0 0 82px; font-size: 12px; font-weight: 600; color: var(--ink-3); }
.htw-note { color: var(--htk-ink); }
.htw-multi { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--ink); margin-left: 82px; min-height: 32px; cursor: pointer; }
.htw-multi input { width: 18px; height: 18px; margin: 0; }
.htw-sum { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); font-size: 14px; font-weight: 700; color: var(--ink); }
.htw-sum span { flex: 1; min-width: 0; }
.htw-clear { appearance: none; border: 0; background: transparent; color: var(--htk-ink); font: inherit; font-size: 13px; font-weight: 700; padding: 6px 8px; border-radius: 8px; cursor: pointer; min-height: 36px; }

/* Phone and narrow cards: two windows a row, labels above. */
@media (max-width: 560px) {
  .htw-row { grid-template-columns: 1fr; gap: 6px; }
  .htw-lbl { padding-top: 0; }
  .htw-wins { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .htw-win.htw-alt { grid-column: span 1; }
  .htw-custom, .htw-note, .htw-hint, .htw-multi { margin-left: 0; }
}

/* THE time picker (public/widgets/ht-time.js): the calendar's own chips, arrows and buttons. */
.htc-overlay.is-popover .htt-panel { width: 340px; }
.htt { padding: 14px 20px 8px; display: flex; flex-direction: column; gap: 10px; }
.htc-overlay.is-popover .htt { padding: 12px 14px 8px; }
.htt-read { display: flex; align-items: center; gap: 10px; justify-content: center; }
.htt-big { font-size: 34px; font-weight: 800; letter-spacing: -0.01em; min-width: 96px; text-align: center; color: var(--ink); }
.htt-big.is-empty { color: var(--ink-3); }
.htt-ampm { display: inline-flex; background: var(--surface-2); border-radius: 12px; padding: 3px; gap: 2px; }
.htt-ampm button { appearance: none; border: 0; background: transparent; font: inherit; font-size: 13px; font-weight: 800; color: var(--ink-2); min-width: 44px; min-height: 38px; border-radius: 9px; cursor: pointer; }
.htt-ampm button.is-on { background: var(--surface); color: var(--htk-ink); box-shadow: 0 1px 2px rgba(15, 23, 42, .14); }
.htt-ampm button:disabled { opacity: .45; cursor: default; }
.htt .htc-quick { margin-bottom: 0; }
.htt-lbl { font-size: 11px; font-weight: 700; color: var(--ink-3); letter-spacing: .04em; text-transform: uppercase; margin-bottom: -4px; }
.htt-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
.htt-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.htt-b { appearance: none; border: 0; font: inherit; min-height: 44px; border-radius: 12px; background: var(--surface-2); color: var(--ink); font-size: 15px; font-weight: 700; cursor: pointer; }
.htc-overlay.is-popover .htt-b { min-height: 38px; font-size: 14px; }
.htt-b:hover:not(.is-sel) { box-shadow: inset 0 0 0 1px var(--border); }
.htt-b.is-sel { background: var(--brand-royal); color: #fff; }
.htt-b:focus-visible { outline: 2px solid var(--brand-royal); outline-offset: 1px; }
.htt-warn { margin: 0; font-size: 13px; font-weight: 700; color: var(--danger, #B42318); }
.htt-done { appearance: none; border: 0; font: inherit; min-height: 48px; border-radius: 14px; background: var(--brand-royal); color: #fff; font-size: 16px; font-weight: 700; cursor: pointer; margin-top: 2px; }
.htc-overlay.is-popover .htt-done { min-height: 42px; font-size: 15px; }
.htt-done:disabled { background: var(--surface-2); color: var(--ink-3); cursor: default; }

/* A time as a button (opens the picker above), and a day as a chip (opens the calendar). */
.htw-time, .ht-daychip { appearance: none; -webkit-appearance: none; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px;
  border: 1px solid var(--border); border-radius: 12px; background: var(--surface); color: var(--ink); font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.htw-time:hover, .ht-daychip:hover { border-color: var(--brand-royal); }
.htw-time:focus-visible, .ht-daychip:focus-visible { outline: 2px solid var(--brand-royal); outline-offset: 1px; }
.htw-time svg, .ht-daychip svg { color: var(--htk-ink); flex: none; }
.htw-time.is-empty { color: var(--ink-3); font-weight: 600; }
.htw-custom .htw-time { width: 100%; justify-content: flex-start; }
.ht-daychip .ht-rel { font-size: 12px; font-weight: 700; color: var(--htk-ink); background: var(--brand-royal-soft); padding: 2px 7px; border-radius: 999px; }
.ht-dt { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

/* THE Schedule window (public/widgets/schedule-view.js): the When control and the crew on the left, the day's
   schedule on the right (the dispatch board in pick mode). A full sheet on a phone with a who-is-free grid. */
.hsv-back { position: fixed; inset: 0; z-index: 1000; background: rgba(15, 23, 42, .5); display: flex; align-items: center; justify-content: center; padding: 16px; }
.hsv { background: var(--surface); color: var(--ink); width: 100%; max-width: 1280px; height: min(860px, 94vh); display: flex; flex-direction: column; border-radius: 18px; overflow: hidden;
  box-shadow: 0 24px 64px rgba(15, 23, 42, .28); }
.hsv-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px 14px 22px; border-bottom: 1px solid var(--border); }
.hsv-ttl { flex: 1; min-width: 0; }
.hsv-ttl h2 { margin: 0; font-size: 19px; font-weight: 800; letter-spacing: -0.01em; }
.hsv-ttl p { margin: 2px 0 0; font-size: 13px; font-weight: 600; color: var(--ink-3); }
.hsv-body { flex: 1; min-height: 0; display: grid; grid-template-columns: 400px minmax(0, 1fr); }
.hsv-side { overflow: auto; padding: 18px 20px; border-right: 1px solid var(--border); display: flex; flex-direction: column; gap: 16px; }
.hsv-board { min-width: 0; overflow: auto; background: var(--bg); }
.hsv-was { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; border: 1px dashed var(--border); font-size: 13px; font-weight: 600; color: var(--ink-2); }
.hsv-was b { color: var(--ink); }
.hsv-sec { display: flex; flex-direction: column; gap: 8px; }
.hsv-sec-h { font-size: 12px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-3); }
.hsv-av { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 11px; font-weight: 800; }
.hsv-foot { display: flex; align-items: center; gap: 12px; padding: 12px 16px 12px 22px; border-top: 1px solid var(--border); background: var(--surface); }
.hsv-sum { flex: 1; min-width: 0; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.hsv-sum b { color: var(--ink); }
.hsv-btn { appearance: none; border: 1px solid var(--border); background: var(--surface); color: var(--ink); min-height: 44px; padding: 0 18px; border-radius: 12px; font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; }
.hsv-btn.is-primary { background: var(--brand-royal); border-color: var(--brand-royal); color: #fff; }
.hsv-btn:disabled { opacity: .5; cursor: default; }
.hsv-x { appearance: none; border: 0; background: transparent; color: var(--ink); width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; cursor: pointer; }
.hsv-x:hover { background: var(--surface-2); }
/* Who is free (phone): one row a technician, one cell an arrival window. */
.hsv-free { display: grid; grid-template-columns: minmax(84px, 1.1fr) repeat(4, minmax(0, 1fr)); gap: 4px; align-items: stretch; }
.hsv-free-h { font-size: 11px; font-weight: 800; color: var(--ink-3); text-align: center; padding: 2px 0 4px; line-height: 1.2; align-self: end; }
.hsv-free-t { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; min-width: 0; }
.hsv-free-t span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hsv-free-t .hsv-av { width: 24px; height: 24px; font-size: 9px; flex: none; }
.hsv-cell { appearance: none; border: 0; font: inherit; min-height: 44px; display: grid; place-items: center; text-align: center; border-radius: 10px; font-size: 11px; font-weight: 700; padding: 2px; cursor: pointer; line-height: 1.15;
  background: var(--surface-2); color: var(--ink-3); }
.hsv-cell.is-free { background: var(--surface); box-shadow: inset 0 0 0 1px var(--border); color: var(--htk-ink); }
.hsv-cell.is-busy { background: repeating-linear-gradient(135deg, var(--surface-2) 0 6px, transparent 6px 12px); color: var(--ink-3); cursor: default; }
.hsv-cell.is-here { background: transparent; color: var(--ink-2); outline: 2px dashed var(--border); outline-offset: -2px; }
.hsv-cell.is-pick { background: var(--brand-royal); color: #fff; box-shadow: none; outline: 0; }
.hsv-free-note { font-size: 12px; font-weight: 600; color: var(--ink-3); margin: 0; }
.hsv-free-wide { grid-column: 1 / -1; }
@media (max-width: 899px) {
  .hsv-back { padding: 0; align-items: flex-end; }
  .hsv { height: 100%; max-height: 100%; border-radius: 0; }
  /* Richard 2026-11-17: the title and X sat under the phone's clock and battery. The window is full screen, so its
     head clears the status bar (and a side notch in landscape), as the phone app bar does. */
  .hsv-head { padding: calc(10px + env(safe-area-inset-top, 0px)) calc(8px + env(safe-area-inset-right, 0px)) 10px calc(16px + env(safe-area-inset-left, 0px)); }
  .hsv-body { display: block; overflow: auto; }
  .hsv-side { border-right: 0; padding: 14px 16px 20px; overflow: visible; }
  .hsv-board { display: none; }
  .hsv-foot { flex-wrap: wrap; padding: 10px 16px max(10px, env(safe-area-inset-bottom)); }
  .hsv-sum { flex-basis: 100%; }
  .hsv-foot .hsv-btn { flex: 1; min-height: 48px; }
}

/* Phone: the day's board under the day and arrival windows (Richard 2026-11-17: the phone gets the web view, a lane
   per technician, not the who-is-free grid). The board's toolbar and status line are the day button above it. */
.hsv-pboard { height: min(560px, 62vh); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; background: var(--surface); }
.hsv-pboard .ht-dc-toolbar, .hsv-pboard .ht-dc-status { display: none !important; }
.hsv-pboard .ht-dc-cal-host > div { min-width: 0 !important; }
.hsv-pboard .dh-gutter, .hsv-pboard .tg-gutter { width: 44px !important; }

/* No board beside it: one column, the who-is-free grid is the schedule view. */
.hsv--noboard { max-width: 600px; }
.hsv--noboard .hsv-body { grid-template-columns: minmax(0, 1fr); }
.hsv--noboard .hsv-side { border-right: 0; }
.hsv--noboard .hsv-board { display: none; }

/* THE time picker drawn inside a card (HT_Time.mount) and the day chips beside it (HT_DT inline). */
.htt--inline { padding: 12px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); }
.htt--inline .htt-big { font-size: 30px; min-width: 88px; }
.htt--inline .htc-arrow { width: 40px; height: 40px; }
.htt--inline .htt-b { min-height: 40px; font-size: 14px; }
.htt--inline .htc-quick button { min-height: 38px; padding: 6px 0; font-size: 12px; }
.ht-dt--inline { display: flex; flex-direction: column; align-items: stretch; gap: 10px; width: 100%; }
.ht-days { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.ht-dayopt { appearance: none; border: 0; font: inherit; min-height: 40px; padding: 0 6px; border-radius: 12px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--border);
  font-size: 13px; font-weight: 700; color: var(--ink); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 6px; white-space: nowrap; }
.ht-dayopt svg { width: 15px; height: 15px; color: var(--htk-ink); flex: none; }
.ht-dayopt.is-on { background: var(--brand-royal); color: #fff; box-shadow: none; }
.ht-dayopt.is-on svg { color: #fff; }
.ht-dayopt:focus-visible { outline: 2px solid var(--brand-royal); outline-offset: 1px; }

/* The job and estimate trackers' calendar circle: a scheduled visit is moved by clicking it (the pencil badge and the
   ring say so). Here, not in design-system.css, because only the pages that load this kit draw it. */
.status-tracker .step.is-resched { cursor: pointer; }
.status-tracker .step.is-resched .step-circle { position: relative; }
.status-tracker .step.is-resched:hover .step-circle, .status-tracker .step.is-resched .step-circle:focus-visible { box-shadow: 0 0 0 5px var(--brand-royal-soft); }
.status-tracker .step.is-resched .step-circle::after { content: ""; position: absolute; right: -4px; bottom: -4px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%233D7CC9' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 20h9'/%3E%3Cpath d='M16.5 3.5a2.121 2.121 0 0 1 3 3L7 19l-4 1 1-4Z'/%3E%3C/svg%3E") center / 12px no-repeat;
  box-shadow: 0 0 0 1px var(--border), 0 1px 3px rgba(15, 23, 42, .18); }

/* The phone job and estimate pages' Schedule card: its head is the button that opens the Schedule sheet (the
   calendar in a royal circle, "Change"), and the visit reads as a day over a window. Here because only the pages
   that load this kit draw it. */
.m-sched-head { appearance: none; -webkit-appearance: none; width: 100%; border: 0; border-bottom: 1px solid var(--border-subtle); background: transparent;
  font: inherit; color: inherit; text-align: left; cursor: pointer; }
.m-sched-head:focus-visible { outline: 2px solid var(--brand-royal); outline-offset: -2px; }
.m-sched-cal { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-royal); color: #fff; flex: none; }
.m-sched-cal svg { width: 18px; height: 18px; }
.m-sched-go { margin-left: auto; font-size: var(--text-sm, 14px); font-weight: 700; color: var(--m-ink-royal-strong, #1E4F8A); white-space: nowrap; }
.m-sched-go::after { content: " \203A"; }
.m-sched-when { display: flex; flex-direction: column; gap: 2px; padding: var(--s-3, 12px) var(--s-4, 16px); }
.m-sched-when b { font-size: var(--text-lg, 17px); font-weight: 800; color: var(--ink); }
.m-sched-when span { font-size: var(--text-md, 15px); font-weight: 600; color: var(--ink-2); }
/* The estimate settings bar's expiration day chip. */
.est-expires-chip { min-height: 34px; padding: 0 10px; font-size: 14px; }
