/* Front Desk staff app layout. Components come from lpk-components.css and ext/lpk-frontdesk-ext.css;
   this file only places them. Every colour / size is a --lpk-* token. */
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 65px; scroll-padding-bottom: calc(73px + env(safe-area-inset-bottom, 0px)); }

/* Staff app: flat primary fills (no dark border or offset shadow / crescent edge). */
:root, [data-theme], .lpk {
  --lpk-shadow-sign: none;
  --lpk-shadow-sign-pressed: none;
  --lpk-button-primary-shadow: none;
  --lpk-button-primary-shadow-pressed: none;
  --lpk-button-primary-border: transparent;
  --lpk-button-ai-border: transparent;
}
.lpk-btn--primary, .lpk-btn--ai { box-shadow: none; border-color: transparent; }
.lpk-btn--primary:active, .lpk-btn--primary.is-pressed, .lpk-btn--ai:active { box-shadow: none; }
.fd-main:focus, .fd-main:focus-visible { outline: none; }

body { margin: 0; background: var(--lpk-color-bg-page); color: var(--lpk-color-text-primary); font: var(--lpk-type-body); -webkit-font-smoothing: antialiased;
  padding-bottom: calc(68px + env(safe-area-inset-bottom, 0px)); min-height: 100dvh; -webkit-tap-highlight-color: transparent; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
[hidden] { display: none !important; }
p { margin: 0; }
button, input, select, textarea { font: inherit; }
:focus-visible { outline: var(--lpk-stroke-focus) solid var(--lpk-color-focus); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--lpk-color-text-primary); color: var(--lpk-color-text-inverse); padding: 8px 12px; border-radius: var(--lpk-radius-sm); z-index: 20; }
.skip:focus { left: 8px; }
.fd-muted { color: var(--lpk-color-text-secondary); }
.fd-pad { padding: var(--lpk-space-4); }
.fd-row { display: flex; gap: var(--lpk-space-3); align-items: center; flex-wrap: wrap; }
.fd-grow { flex: 1; min-width: 0; }
.fd-stack { display: grid; gap: var(--lpk-space-4); }
.fd-eyebrow { font: var(--lpk-type-label); letter-spacing: var(--lpk-tracking-label); text-transform: uppercase; color: var(--lpk-color-text-secondary); }
.fd-h1 { font: var(--lpk-type-heading); letter-spacing: var(--lpk-tracking-heading); }
.fd-lead { color: var(--lpk-color-text-secondary); max-width: 64ch; }
.fd-mono { font-family: var(--lpk-font-mono); font-variant-numeric: tabular-nums; }
.fd-badge { position: absolute; top: 4px; left: calc(50% + 6px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--lpk-color-ai); color: var(--lpk-color-text-on-accent); font: var(--lpk-type-label); line-height: 18px; text-align: center; }

/* top bar */
.fd-bar { position: sticky; top: 0; z-index: 5; background: var(--lpk-color-bg-surface); border-bottom: var(--lpk-stroke-hairline) solid var(--lpk-color-border-subtle); padding-top: env(safe-area-inset-top, 0px); }
.fd-bar__in { max-width: 1280px; margin: 0 auto; padding: 8px var(--lpk-space-4); display: flex; align-items: center; gap: var(--lpk-space-3); min-height: 56px; }
.fd-bar__mark { width: 28px; height: 28px; flex: none; }
.fd-bar__titles { flex: 1; min-width: 0; display: grid; min-height: 40px; }
.fd-bar__title { font: var(--lpk-type-small); font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.fd-bar__location { font: var(--lpk-type-small); color: var(--lpk-color-text-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.fd-bar__place { display: flex; align-items: center; gap: 8px; min-width: 0; }
.fd-bar__place #sample-chip { flex: none; min-height: 20px; padding: 0 8px; font-size: 10px; letter-spacing: 0.04em; }
.fd-bar__lang, .fd-bar__theme { display: inline-flex; border: var(--lpk-stroke-hairline) solid var(--lpk-color-border-strong); border-radius: var(--lpk-radius-full); overflow: visible; flex: none; }
.fd-bar__lang-btn, .fd-bar__theme-btn, .fd-bar__theme-toggle { min-height: 44px; min-width: 44px; padding: 0 10px; border: 0; background: transparent; color: var(--lpk-color-text-secondary); font: var(--lpk-type-small); font-weight: 700; cursor: pointer; display: grid; place-items: center; }
.fd-bar__theme-btn svg, .fd-bar__theme-toggle svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.fd-bar__lang-btn:first-child, .fd-bar__theme-btn:first-child { border-radius: var(--lpk-radius-full) 0 0 var(--lpk-radius-full); }
.fd-bar__lang-btn:last-child, .fd-bar__theme-btn:last-child { border-radius: 0 var(--lpk-radius-full) var(--lpk-radius-full) 0; }
.fd-bar__theme-toggle { border: var(--lpk-stroke-hairline) solid var(--lpk-color-border-strong); border-radius: var(--lpk-radius-full); display: none; }
.fd-bar__lang-btn[aria-pressed="true"], .fd-bar__theme-btn[aria-pressed="true"] { background: var(--lpk-color-text-primary); color: var(--lpk-color-text-inverse); }
.fd-bar__theme-btn:focus-visible, .fd-bar__lang-btn:focus-visible {
  outline: 2px solid var(--lpk-color-focus); outline-offset: -3px; border-radius: inherit; z-index: 1; position: relative;
}
.fd-bar__theme-toggle:focus-visible {
  outline: 2px solid var(--lpk-color-focus); outline-offset: -3px; border-radius: var(--lpk-radius-full); z-index: 1; position: relative;
}
@media (max-width: 767px) {
  #theme-switch, .fd-bar__theme-toggle { display: none !important; }
  #lang-switch { display: none; }
  .fd-ask-launch { min-width: 44px; min-height: 44px; padding: 0 12px; gap: 6px; }
  .fd-ask-launch [data-t] { display: inline; }
}
.fd-daynav .lpk-btn { min-height: 44px; }
.lpk-input:focus-visible { outline: 2px solid var(--lpk-color-focus); outline-offset: 2px; }

/* notices and toast */
.fd-notices { max-width: 1280px; margin: 0 auto; padding: 0 var(--lpk-space-4); display: grid; gap: var(--lpk-space-2); }
.fd-notices:empty { display: none; }
.fd-notices > * { margin-top: var(--lpk-space-2); }
.fd-toast { position: fixed; left: 50%; bottom: calc(84px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 15; display: flex; align-items: center; gap: var(--lpk-space-3);
  background: var(--lpk-color-text-primary); color: var(--lpk-color-text-inverse); padding: var(--lpk-space-3) var(--lpk-space-4); border-radius: var(--lpk-radius-md); box-shadow: var(--lpk-shadow-overlay); max-width: min(92vw, 480px); font: var(--lpk-type-small); }
.fd-toast[hidden] { display: none; }
.fd-toast .lpk-btn--ghost { color: var(--lpk-color-text-inverse); }

/* main + tabs */
.fd-main { max-width: 1280px; margin: 0 auto; padding: var(--lpk-space-4); display: grid; gap: var(--lpk-space-4); }
.fd-tabs { position: fixed; inset: auto 0 0 0; z-index: 5; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: var(--lpk-color-bg-surface); border-top: var(--lpk-stroke-hairline) solid var(--lpk-color-border-subtle); padding-bottom: env(safe-area-inset-bottom, 0px); }
.fd-tabs[hidden] { display: none; }
.fd-tabs a { position: relative; display: grid; justify-items: center; gap: 2px; padding: 8px 4px 10px; min-height: 60px; text-decoration: none; color: var(--lpk-color-text-secondary); font: var(--lpk-type-label); letter-spacing: 0; text-transform: none; font-size: 12px; }
.fd-tabs a[aria-current="page"] { color: var(--lpk-color-text-primary); }
.fd-tabs a[aria-current="page"] svg { stroke: var(--lpk-color-accent-text); }
.fd-tabs svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.fd-tabs svg circle { fill: currentColor; stroke: none; }
@media (min-width: 768px) {
  body { padding-bottom: var(--lpk-space-8); }
  body:has(#tabs:not([hidden])) { padding-left: 212px; }
  .fd-bar { z-index: 6; }
  .fd-tabs {
    position: fixed; top: 0; left: 0; bottom: 0; right: auto; width: 212px;
    grid-auto-flow: row; grid-auto-columns: 1fr; align-content: start; justify-content: stretch;
    border: 0; border-right: var(--lpk-stroke-hairline) solid var(--lpk-color-border-subtle);
    background: var(--lpk-color-bg-surface); padding: 72px var(--lpk-space-3) var(--lpk-space-4);
    max-width: none; margin: 0; z-index: 4;
  }
  .fd-tabs a { display: flex; justify-content: flex-start; align-items: center; gap: 12px; min-height: 44px; padding: 0 12px; font-size: 14px; border-radius: var(--lpk-radius-md); text-align: left; }
  .fd-tabs a svg { flex: none; }
  .fd-tabs a[aria-current="page"] { background: var(--lpk-color-bg-sunken); color: var(--lpk-color-text-primary); font-weight: 700; }
  .fd-tabs a[aria-current="page"]::after { content: none; }
  .fd-badge { position: static; margin-left: 4px; }
}

/* screens */
.fd-screen-head { display: flex; align-items: end; justify-content: space-between; gap: var(--lpk-space-4); flex-wrap: wrap; }
.fd-daynav { display: inline-flex; align-items: center; flex-wrap: nowrap; gap: var(--lpk-space-1); }
.fd-daynav__date { flex: none; min-width: 10ch; text-align: center; font: var(--lpk-type-title); font-size: 16px; line-height: 1.2; white-space: nowrap; }
.fd-iconbtn { width: 44px; height: 44px; display: grid; place-items: center; border-radius: var(--lpk-radius-md); border: var(--lpk-stroke-hairline) solid var(--lpk-color-border-strong); background: var(--lpk-color-bg-surface); color: var(--lpk-color-text-primary); cursor: pointer; }
.fd-iconbtn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.fd-select { height: 44px; padding: 0 var(--lpk-space-3); border-radius: var(--lpk-input-radius); border: var(--lpk-stroke-hairline) solid var(--lpk-input-border); background: var(--lpk-input-bg); color: var(--lpk-input-fg); max-width: 100%; }
.fd-login { max-width: 420px; margin: clamp(24px, 8vh, 80px) auto 0; }
.fd-login .lpk-field { max-width: none; }
.fd-login .lpk-alert svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.fd-login__token > summary { cursor: pointer; font-weight: 600; min-height: 44px; display: flex; align-items: center; }
.fd-login__token[open] > summary { margin-bottom: var(--lpk-space-3); }
.fd-logins li.fd-logins__row { display: grid; gap: var(--lpk-space-2); }
.fd-logins__edit { display: flex; flex-wrap: wrap; gap: var(--lpk-space-2); align-items: center; }
.fd-logins__edit .lpk-input { flex: 1 1 220px; min-width: 0; }
.fd-cards { display: grid; gap: var(--lpk-space-4); grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr)); align-items: start; }
.fd-chat { display: grid; gap: var(--lpk-space-4); }
@media (min-width: 768px) { .fd-chat { grid-template-columns: minmax(280px, 360px) 1fr; align-items: start; min-height: calc(100dvh - 120px); } .fd-chat__back { display: none; } .fd-chat__thread { min-width: 0; } }
@media (max-width: 767px) { .fd-chat[data-view="thread"] .fd-chat__list { display: none; } .fd-chat[data-view="list"] .fd-chat__thread { display: none; } }
.fd-chat__facts { display: flex; gap: var(--lpk-space-2); flex-wrap: wrap; align-items: center; }
.fd-chat__sim { display: grid; gap: var(--lpk-space-3); }
.fd-chat__sim .lpk-field { max-width: none; }
/* unified inbox: calls and web-chat tags, unread dot */
.fd-inbox__unread { width: 8px; height: 8px; border-radius: 50%; background: var(--lpk-color-focus); margin-left: auto; flex: none; }
.fd-kv { display: grid; grid-template-columns: max-content 1fr; gap: var(--lpk-space-2) var(--lpk-space-4); margin: 0; }
.fd-kv dt { font: var(--lpk-type-label); letter-spacing: var(--lpk-tracking-label); text-transform: uppercase; color: var(--lpk-color-text-secondary); align-self: center; }
.fd-kv dd { margin: 0; }
.fd-list { display: grid; gap: var(--lpk-space-2); margin: 0; padding: 0; list-style: none; }
.fd-list li { padding: var(--lpk-space-3) var(--lpk-space-4); border: var(--lpk-stroke-hairline) solid var(--lpk-color-border-subtle); border-radius: var(--lpk-radius-md); background: var(--lpk-color-bg-surface); display: flex; justify-content: space-between; gap: var(--lpk-space-3); }
.fd-gap-inner { position: absolute; left: 0; right: 0; background: repeating-linear-gradient(135deg, transparent 0 4px, var(--lpk-color-border-default) 4px 6px); opacity: .6; pointer-events: none; }
.lpk-modal-scrim { z-index: 30; }
.lpk-modal { max-height: 90dvh; overflow: auto; }
@media (prefers-reduced-motion: no-preference) { .fd-toast { animation: fd-rise var(--lpk-duration-base) var(--lpk-ease-out); } }
@keyframes fd-rise { from { opacity: 0; transform: translate(-50%, 8px); } to { opacity: 1; transform: translate(-50%, 0); } }

/* dialogs never grow past the viewport */
.lpk-modal-scrim .lpk-modal { max-height: calc(100dvh - 2 * var(--lpk-space-4)); overflow: auto; }

/* checkout: review QR + backbar lines */
.fd-checkout__qr { display: grid; grid-template-columns: 160px 1fr; gap: var(--lpk-space-4); align-items: center; }
.fd-qr svg { width: 160px; height: 160px; display: block; border: var(--lpk-stroke-hairline) solid var(--lpk-color-border-default); border-radius: var(--lpk-radius-md); background: var(--lpk-color-bg-surface); }
.fd-checkout__link { overflow-wrap: anywhere; font-size: 12px; }
@media (max-width: 480px) { .fd-checkout__qr { grid-template-columns: 1fr; justify-items: center; text-align: center; } }

/* triage: "decide on behalf of" picker sits on its own row above the decision buttons */
.fd-behalf { flex: 1 1 100%; }
/* business settings: a checkbox switch with its label */
.fd-switch { align-items: center; gap: var(--lpk-space-3); cursor: pointer; }
.fd-switch input { width: 22px; height: 22px; accent-color: var(--lpk-color-accent); }

/* #/ask — owner instructions: propose → confirm → apply */
.fd-ask__form { display: grid; gap: var(--lpk-space-3); }
.fd-ask__form .lpk-field { max-width: none; }
.fd-ask__examples { display: grid; gap: var(--lpk-space-2); justify-items: start; }
.fd-ask__example-list { display: flex; flex-direction: column; align-items: flex-start; gap: var(--lpk-space-2); }
.fd-ask__example-list .lpk-btn { min-height: 44px; text-decoration: none; }
.fd-ask__thread { display: grid; gap: var(--lpk-space-3); }
.fd-ask__you { justify-self: end; max-width: 80%; padding: var(--lpk-space-2) var(--lpk-space-3); border-radius: var(--lpk-radius-md); background: var(--lpk-color-bg-surface); border: var(--lpk-stroke-hairline) solid var(--lpk-color-border-subtle); }
.fd-ask__diff { display: grid; grid-template-columns: 1fr 1fr; gap: var(--lpk-space-3); }
.fd-ask__diff dl { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 2px var(--lpk-space-2); font-size: 14px; }
.fd-ask__diff dt { color: var(--lpk-color-text-secondary); }
.fd-ask__diff dd { margin: 0; overflow-wrap: anywhere; }
.fd-ask__diff dd.fd-ask__changed { font-weight: 700; }
.fd-ask__actions { display: flex; flex-wrap: wrap; gap: var(--lpk-space-2); align-items: center; }
@media (max-width: 599px) { .fd-ask__diff { grid-template-columns: 1fr; } }

/* Inbox demo practice panel — collapsed away from the real thread list */
.fd-chat__demo { padding: 0 var(--lpk-space-4) var(--lpk-space-4); }
.fd-chat__demo > summary {
  cursor: pointer; font: var(--lpk-type-small); font-weight: 700; list-style: none;
  min-height: 44px; display: flex; align-items: center; justify-content: space-between; gap: var(--lpk-space-3);
  margin: 0 calc(-1 * var(--lpk-space-4)); padding: 0 var(--lpk-space-4);
}
.fd-chat__demo > summary::-webkit-details-marker { display: none; }
.fd-chat__demo-chevron { width: 12px; height: 12px; flex: none; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); margin-top: 2px; }
.fd-chat__demo[open] > summary .fd-chat__demo-chevron { transform: rotate(45deg); margin-top: -2px; }
.fd-chat__demo .lpk-card__body { margin-top: var(--lpk-space-2); }
.fd-chat__demo-steps { margin: var(--lpk-space-3) 0; padding-left: 1.4em; color: var(--lpk-color-text-primary); }
.fd-chat__demo-steps li + li { margin-top: var(--lpk-space-1); }
.fd-chat__demo-examples { display: flex; flex-wrap: wrap; gap: var(--lpk-space-2); }
.fd-chat__demo-examples .lpk-btn { min-height: 44px; }
.fd-chat__demo-form { margin-top: var(--lpk-space-3); }
.fd-chat__demo .fd-chat__sim { border: 0; padding: var(--lpk-space-3) 0 0; box-shadow: none; background: transparent; }
.fd-chat__demo .lpk-btn--ai { box-shadow: none; }
.fd-chat__demo .lpk-btn--ai:active { transform: scale(.97); box-shadow: none; }
.fd-chat__demo--large { max-width: 36rem; }
.fd-chat__empty { padding: var(--lpk-space-4) 0; }

/* Day grid: scroll hint + narrower columns on a small screen */
.fd-cal-wrap { position: relative; min-width: 0; }
.fd-cal-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; }
.fd-cal-wrap.is-overflow::after {
  content: ""; pointer-events: none; position: absolute; top: 0; right: 0; bottom: 0; width: 28px;
  background: linear-gradient(to right, transparent, var(--lpk-color-bg-page));
}
.fd-cal-hint { margin: var(--lpk-space-2) 0 0; font: var(--lpk-type-small); color: var(--lpk-color-text-secondary); }
.lpk-calendar-grid {
  scroll-padding-top: 49px;
  scroll-padding-left: 84px;
  --lpk-cal-gutter: 84px;
  grid-template-columns: minmax(84px, auto) repeat(var(--lpk-cal-cols, 1), minmax(var(--lpk-cal-col), 1fr));
}
.lpk-calendar-grid__hour { white-space: nowrap; }
.lpk-calendar-grid__block, .lpk-calendar-grid__slot { scroll-margin-top: 49px; scroll-margin-left: 84px; }
.lpk-calendar-grid__slot.is-active { scroll-margin-bottom: calc(55dvh + 12px); }
html:has(#ask-sheet[open].is-book) { scroll-padding-bottom: calc(55dvh + env(safe-area-inset-bottom, 0px)); }
.lpk-calendar-grid__head {
  z-index: 8;
  background: var(--lpk-color-bg-surface);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  min-width: 0;
}
.lpk-calendar-grid__head--gutter { z-index: 9; }
.lpk-calendar-grid__block-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
@media (max-width: 767px) {
  .lpk-calendar-grid { --lpk-cal-col: 148px; }
  .lpk-calendar-grid__head:not(.lpk-calendar-grid__head--gutter) { padding: 4px var(--lpk-space-2); font-size: 13px; }
}
@media (max-width: 420px) {
  .lpk-calendar-grid {
    --lpk-cal-col: 136px;
    width: 100%;
    max-width: 100%;
    grid-template-columns: minmax(84px, auto) repeat(var(--lpk-cal-cols, 1), minmax(0, 1fr));
  }
}

/* ── Ask launcher, panel (≥1024) and sheet (<1024) ── */
.fd-ask-launch {
  display: none; align-items: center; gap: 6px; min-height: 44px; min-width: 44px; padding: 0 12px;
  border: var(--lpk-stroke-hairline) solid var(--lpk-color-border-strong); border-radius: var(--lpk-radius-full);
  background: var(--lpk-color-bg-surface); color: var(--lpk-color-text-primary); font: var(--lpk-type-small); font-weight: 700; cursor: pointer;
}
.fd-ask-launch:not([hidden]) { display: inline-flex; }
.fd-ask-launch svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.fd-ask-launch[aria-expanded="true"] { background: var(--lpk-color-bg-sunken); }
.fd-ask-dock {
  position: fixed; z-index: 16; background: var(--lpk-color-bg-surface); color: var(--lpk-color-text-primary);
  box-shadow: var(--lpk-shadow-overlay); display: flex; flex-direction: column; min-width: 0;
}
.fd-ask-dock[hidden] { display: none !important; }
#ask-panel {
  top: 0; right: 0; bottom: 0; width: 380px; border-left: var(--lpk-stroke-hairline) solid var(--lpk-color-border-subtle);
  padding-top: 64px;
}
#ask-sheet {
  inset: auto 0 0 0; left: 0; right: 0; width: 100%; max-width: 100%;
  max-height: 90dvh; height: auto; border: 0; padding: 0;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  margin: 0; box-sizing: border-box;
  border-radius: var(--lpk-radius-lg) var(--lpk-radius-lg) 0 0;
}
#ask-sheet:not([open]) { display: none; }
#ask-sheet[open] { display: flex; }
#ask-sheet.is-book { max-height: 55dvh; }
#ask-sheet.is-dragging { transition: none; }
#ask-sheet::backdrop { background: rgba(15, 26, 43, 0.4); }
.fd-ask-dock__handle { width: 40px; height: 4px; border-radius: 2px; background: var(--lpk-color-border-strong); margin: 8px auto 0; flex: none; grid-column: 1 / -1; }
.fd-ask-dock__head { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 0 var(--lpk-space-2); min-height: 48px; padding: 0 8px 0 var(--lpk-space-4); border-bottom: var(--lpk-stroke-hairline) solid var(--lpk-color-border-subtle); touch-action: none; cursor: grab; }
.fd-ask-dock__head:active { cursor: grabbing; }
.fd-ask-dock__head:not(.fd-ask-dock__head--grab) { cursor: default; touch-action: auto; }
.fd-ask-dock__title { margin: 0; font: var(--lpk-type-title); font-size: 16px; min-width: 0; }
.fd-ask-dock__body { overflow: auto; padding: var(--lpk-space-4); display: grid; gap: var(--lpk-space-4); min-width: 0; flex: 1; }
.fd-ask-context { display: flex; align-items: center; gap: 4px; max-width: 100%; min-width: 0; min-height: 28px; padding: 0 0 0 10px; border-radius: var(--lpk-radius-full); background: var(--lpk-color-bg-sunken); font: var(--lpk-type-small); }
.fd-ask-context > span { min-width: 0; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fd-ask-context button { flex: none; width: 44px; height: 44px; min-width: 44px; min-height: 44px; padding: 0; border: 0; background: transparent; cursor: pointer; color: inherit; }
#ask-sheet .lpk-modal__close, #ask-panel .lpk-modal__close { width: 44px; height: 44px; min-width: 44px; min-height: 44px; }
body { transition: none; }
body.fd-ask-open-desktop { padding-right: 380px; }
@media (max-width: 1023px) { #ask-panel { display: none !important; } }
@media (min-width: 1024px) { #ask-sheet { display: none !important; } }
@media (prefers-reduced-motion: no-preference) {
  body { transition: padding-right 280ms cubic-bezier(.32,.72,0,1); }
  #ask-panel { transform: translateX(100%); transition: transform 280ms cubic-bezier(.32,.72,0,1); }
  #ask-panel.is-open { transform: translateX(0); }
  #ask-sheet { transition: transform 280ms cubic-bezier(.32,.72,0,1); }
  #ask-sheet[open] { transform: translateY(0); }
  #ask-sheet.is-closing { transform: translateY(100%); transition-duration: 200ms; }
  #ask-panel.is-closing { transform: translateX(100%); transition-duration: 200ms; }
  #ask-sheet::backdrop { transition: opacity 280ms cubic-bezier(.32,.72,0,1); }
  #ask-sheet[open]::backdrop { opacity: 1; }
  @starting-style {
    #ask-sheet[open] { transform: translateY(100%); }
    #ask-sheet[open]::backdrop { opacity: 0; }
  }
  .fd-ask-applied { animation: fd-ask-in 180ms cubic-bezier(.32,.72,0,1); }
  .lpk-calendar-grid__block.is-new { animation: fd-block-in 200ms cubic-bezier(.32,.72,0,1); }
}
@media (prefers-reduced-motion: reduce) {
  #ask-panel, #ask-sheet, #ask-sheet::backdrop, .fd-ask-applied, .lpk-calendar-grid__block.is-new {
    transition: opacity 120ms ease; animation: none; transform: none;
  }
  #ask-panel.is-open, #ask-sheet[open], #ask-sheet[open]::backdrop { opacity: 1; }
  #ask-panel.is-closing, #ask-sheet[open].is-closing, #ask-sheet[open].is-closing::backdrop { opacity: 0; }
  @starting-style {
    #ask-panel.is-open, #ask-sheet[open], #ask-sheet[open]::backdrop { opacity: 0; }
  }
}
@keyframes fd-ask-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fd-block-in { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: scale(1); } }

/* Ask result + dest chips + before/after */
.fd-ask-dest { display: flex; flex-wrap: wrap; gap: var(--lpk-space-2); }
.fd-ask-dest__chip { display: inline-flex; align-items: center; min-height: 28px; padding: 0 10px; border-radius: var(--lpk-radius-full); border: var(--lpk-stroke-hairline) solid var(--lpk-color-border-strong); background: var(--lpk-color-bg-surface); font: var(--lpk-type-small); white-space: nowrap; }
.fd-ask-compare { container-type: inline-size; display: grid; gap: var(--lpk-space-2); min-width: 0; }
.fd-ask-row { display: grid; gap: 2px var(--lpk-space-3); min-width: 0; padding: var(--lpk-space-2) var(--lpk-space-3); border-radius: var(--lpk-radius-sm); background: var(--lpk-color-bg-sunken); }
.fd-ask-row__label { font: var(--lpk-type-small); color: var(--lpk-color-text-secondary); }
.fd-ask-row__values { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--lpk-space-2); min-width: 0; align-items: center; }
.fd-ask-row__caption { display: block; font: var(--lpk-type-label); letter-spacing: var(--lpk-tracking-label); text-transform: uppercase; color: var(--lpk-color-text-secondary); }
.fd-ask-row__from { color: var(--lpk-color-text-secondary); text-decoration: line-through; min-width: 0; overflow-wrap: break-word; word-break: normal; line-break: strict; }
:lang(ja) .fd-ask-row__from:not(.fd-ask-row__time) { text-decoration: none; }
.fd-ask-row__to { font-weight: 700; min-width: 0; overflow-wrap: break-word; word-break: normal; line-break: strict; font-variant-numeric: tabular-nums; }
.fd-ask-row__arrow { color: var(--lpk-color-text-secondary); justify-self: center; }
.fd-ask-row__time { white-space: nowrap; font-variant-numeric: tabular-nums; }
.fd-ask-row__arrow { transform: rotate(90deg); }
@container (min-width: 560px) {
  .fd-ask-row__values { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); }
  .fd-ask-row__arrow { transform: none; }
}
.lpk-alert svg, .fd-ask-applied svg {
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.fd-ask-applied { display: flex; flex-wrap: wrap; align-items: flex-start; gap: var(--lpk-space-3); min-width: 0; }
.fd-ask-applied__badge { flex: none; white-space: nowrap; font-weight: 700; }
.fd-ask-applied__body { min-width: 0; flex: 1 1 14em; overflow-wrap: break-word; word-break: normal; line-break: strict; }
.lpk-alert { min-width: 0; }
.lpk-alert > :not(svg) { min-width: 0; overflow-wrap: break-word; word-break: normal; line-break: strict; }

/* Grid slots and processing bands */
.lpk-calendar-grid__slot {
  position: absolute; left: 4px; right: 4px; z-index: 1; min-height: 0; padding: 0; border: 0; background: transparent;
  color: var(--lpk-color-text-secondary); font: var(--lpk-type-small); cursor: pointer; border-radius: var(--lpk-radius-sm);
  scroll-margin-top: 72px;
}
.lpk-calendar-grid__slot::after { content: ""; position: absolute; left: 0; right: 0; top: -6px; bottom: -6px; }
.lpk-calendar-grid__slot-label { opacity: 0; pointer-events: none; }
.lpk-calendar-grid__slot:hover .lpk-calendar-grid__slot-label,
.lpk-calendar-grid__slot:focus-visible .lpk-calendar-grid__slot-label { opacity: .8; }
.lpk-calendar-grid__slot:focus-visible { outline: 2px solid var(--lpk-color-focus); outline-offset: 1px; z-index: 3; }
.lpk-calendar-grid__slot.is-active { box-shadow: 0 0 0 2px var(--lpk-color-focus); z-index: 3; }
.lpk-calendar-grid__slot--free { z-index: 3; }
@media (hover: none) {
  .lpk-calendar-grid__slot:active { transform: scale(.98); }
}
.lpk-calendar-grid__free {
  position: absolute; left: 0; right: 0; background: var(--lpk-color-bg-surface);
  border-block: var(--lpk-stroke-hairline) solid var(--lpk-color-border-subtle); box-sizing: border-box; overflow: hidden; white-space: nowrap;
  display: grid; place-items: center; font: var(--lpk-type-small); color: var(--lpk-color-text-secondary); pointer-events: none;
}
.lpk-calendar-grid__block { z-index: 2; }
.lpk-calendar-grid__note { margin: var(--lpk-space-2) 0 0; font: var(--lpk-type-small); color: var(--lpk-color-text-secondary); }
.fd-quick { display: flex; flex-direction: column; gap: var(--lpk-space-3); min-height: 0; flex: 1; }
.fd-quick .lpk-field { max-width: none; }
.fd-quick__fields { display: grid; gap: var(--lpk-space-3); min-width: 0; }
#ask-sheet.is-book .fd-ask-dock__body { display: flex; flex-direction: column; overflow: hidden; }
#ask-sheet.is-book .fd-quick__fields { flex: 1; min-height: 0; overflow: auto; }
.fd-quick__actions {
  display: flex; flex-wrap: wrap; gap: var(--lpk-space-3); align-items: center;
  flex: none; position: sticky; bottom: 0; z-index: 2;
  background: var(--lpk-color-bg-surface);
  padding: var(--lpk-space-3) 0 calc(var(--lpk-space-3) + env(safe-area-inset-bottom, 0px));
  margin-top: auto;
  border-top: var(--lpk-stroke-hairline) solid var(--lpk-color-border-subtle);
}
#quick-time:focus, #quick-time:focus-visible, #quick-time:focus-within {
  outline: 2px solid var(--lpk-color-focus); outline-offset: 2px;
}
.fd-more .lpk-btn { min-height: 44px; }
.fd-ask-dock .lpk-btn { min-height: 44px; }
.fd-triage-line { font-weight: 700; }
.fd-triage-example { opacity: .85; }

/* A6 "To approve" card: who, what, when, price / deposit, assignee and SLA on the card itself; summary + photos beside it. */
.fd-triage-list { grid-template-columns: minmax(0, 1fr); max-width: 1040px; }
.fd-triage .lpk-triage-card__head { flex-wrap: nowrap; }
.fd-triage__who { display: grid; gap: var(--lpk-space-1); min-width: 0; }
.fd-triage__who .lpk-card__eyebrow { margin: 0; }
.fd-triage__client { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: var(--lpk-space-1) var(--lpk-space-3); font: var(--lpk-type-small); color: var(--lpk-color-text-secondary); }
.fd-triage__client .lpk-tag { padding: 2px 8px; }
.fd-triage__tags { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: var(--lpk-space-2); flex: none; }
.fd-triage__sla { flex: none; white-space: nowrap; font-variant-numeric: tabular-nums; }
.fd-triage__body { display: grid; gap: var(--lpk-space-4); }
@media (min-width: 900px) { .fd-triage__body { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: start; } }
.fd-triage__facts { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); margin: 0; align-items: start; }
.fd-triage__facts .lpk-triage-card__fact { align-content: start; }
.fd-triage__facts dd { display: grid; gap: 2px; align-content: start; justify-items: start; overflow-wrap: anywhere; }
.fd-triage__sub { font: var(--lpk-type-small); font-weight: 400; color: var(--lpk-color-text-secondary); }
.fd-triage__side { display: grid; gap: var(--lpk-space-3); min-width: 0; }
.fd-triage__photos { display: grid; gap: var(--lpk-space-2); }
.fd-triage__photos .lpk-card__eyebrow { margin: 0; }
.fd-quote { margin: 8px 0 0; display: grid; gap: 4px; }
.fd-quote__text { margin: 0; padding: 6px 10px; border-inline-start: 3px solid var(--lpk-color-border-strong); white-space: pre-wrap; overflow-wrap: anywhere; font: var(--lpk-type-small); }
.fd-triage__chat { font: var(--lpk-type-small); color: var(--lpk-color-link); justify-self: start; }
.fd-photo { padding: 0; cursor: pointer; overflow: hidden; width: 88px; height: 88px; }
.fd-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fd-photo:focus-visible { outline: var(--lpk-stroke-focus) solid var(--lpk-color-focus); outline-offset: 2px; }
.fd-photo-full { display: block; width: 100%; max-height: 70dvh; object-fit: contain; border-radius: var(--lpk-radius-md); background: var(--lpk-color-bg-sunken); }
@media (max-width: 480px) { .fd-triage .lpk-triage-card__head { flex-wrap: wrap; } .fd-triage__tags { justify-content: flex-start; } }

/* A7 inbox thread: client panel = right column on wide screens, collapsible header below the title otherwise. */
.fd-chat__panel { border: var(--lpk-stroke-hairline) solid var(--lpk-color-border-subtle); border-radius: var(--lpk-radius-md); background: var(--lpk-color-bg-surface); padding: 0 var(--lpk-space-4); min-width: 0; }
.fd-chat__panel > summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: var(--lpk-space-3); min-height: 48px; cursor: pointer; }
.fd-chat__panel > summary::-webkit-details-marker { display: none; }
.fd-chat__panel[open] > summary .fd-chat__demo-chevron { transform: rotate(45deg); margin-top: -2px; }
.fd-chat__panel-head { display: flex; align-items: baseline; gap: var(--lpk-space-2); min-width: 0; }
.fd-chat__panel-head .lpk-card__eyebrow { margin: 0; flex: none; }
.fd-chat__panel-sum { font: var(--lpk-type-small); color: var(--lpk-color-text-secondary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.fd-chat__panel-body { display: grid; gap: var(--lpk-space-4); padding-bottom: var(--lpk-space-4); }
.fd-chat__panel-list { display: grid; gap: var(--lpk-space-2); margin: 0; }
.fd-chat__panel-row { display: grid; grid-template-columns: minmax(88px, auto) 1fr; gap: var(--lpk-space-3); align-items: baseline; }
.fd-chat__panel-row dt { font: var(--lpk-type-label); letter-spacing: var(--lpk-tracking-label); text-transform: uppercase; color: var(--lpk-color-text-secondary); }
.fd-chat__panel-row dd { margin: 0; overflow-wrap: anywhere; }
.fd-chat__panel-row .lpk-tag { padding: 2px 8px; }
.fd-chat__panel-sec { display: grid; gap: var(--lpk-space-2); padding-top: var(--lpk-space-3); border-top: var(--lpk-stroke-hairline) solid var(--lpk-color-border-subtle); }
.fd-chat__panel-sec .lpk-card__eyebrow { margin: 0; }
.fd-chat__visit { display: grid; gap: var(--lpk-space-1); justify-items: start; }
.fd-chat__visit p { margin: 0; }
.fd-chat__visit-when { font-weight: 700; font-variant-numeric: tabular-nums; }
.fd-chat__visit-line { display: inline-flex; flex-wrap: wrap; align-items: center; gap: var(--lpk-space-1); }
.fd-sep { color: var(--lpk-color-text-secondary); }
@media (min-width: 1200px) {
  .fd-chat__thread { display: grid; grid-template-columns: minmax(0, 1fr) 300px; grid-template-rows: auto auto 1fr auto; column-gap: var(--lpk-space-5); row-gap: var(--lpk-space-4); align-items: start; }
  .fd-chat__thread > * { grid-column: 1; }
  /* sticks below the sticky app bar (--fd-bar-h is measured from #bar in app.js) */
  .fd-chat__thread > .fd-chat__panel { grid-column: 2; grid-row: 1 / span 4; position: sticky; top: calc(var(--fd-bar-h, 64px) + var(--lpk-space-4)); }
  .fd-chat__panel > summary { cursor: default; pointer-events: none; }
  .fd-chat__panel > summary .fd-chat__demo-chevron, .fd-chat__panel-sum { display: none; }
}

/* Narrow columns: start time only, so “9:00 AM” is not cut to “9:00 A”. */
.lpk-calendar-grid__col { container-type: inline-size; }
.lpk-calendar-grid__block-time-short { display: none; }
.fd-grid-note { margin: 0; font: var(--lpk-type-small); }
.fd-triage-example:focus, .fd-triage-example:focus-visible { outline: none; }

/* ── #/reports (reports.js): stat tiles, per-day bar chart, tables, source meters. Tokens only. ── */
.fd-report-controls { display: flex; gap: var(--lpk-space-3); align-items: center; justify-content: space-between; flex-wrap: wrap; }
.fd-report-custom { display: flex; gap: var(--lpk-space-3); align-items: end; flex-wrap: wrap; }
.fd-report-custom .lpk-field { min-width: 160px; }
.fd-report-custom [role="status"] { flex-basis: 100%; }
.fd-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); gap: var(--lpk-space-3); }
.fd-tile { padding: var(--lpk-space-4); border: var(--lpk-stroke-hairline) solid var(--lpk-color-border-subtle); border-radius: var(--lpk-radius-md); background: var(--lpk-color-bg-surface); display: grid; gap: var(--lpk-space-1); align-content: start; }
.fd-tile__label { font: var(--lpk-type-label); letter-spacing: var(--lpk-tracking-label); text-transform: uppercase; color: var(--lpk-color-text-secondary); }
.fd-tile__value { font: var(--lpk-type-heading); color: var(--lpk-color-text-primary); font-variant-numeric: tabular-nums; }
.fd-tile__note { font: var(--lpk-type-small); color: var(--lpk-color-text-secondary); }
.fd-chart { width: 100%; overflow: hidden; }
.fd-chart svg { display: block; width: 100%; height: auto; }
.fd-chart__bar { fill: var(--lpk-color-accent); }
.fd-chart__bar:hover { fill: var(--lpk-color-accent-hover); }
.fd-chart__grid { stroke: var(--lpk-color-border-subtle); stroke-width: 1; }
.fd-chart__axis { fill: var(--lpk-color-text-secondary); font: var(--lpk-type-small); font-size: 11px; font-variant-numeric: tabular-nums; }
.fd-chart__value { fill: var(--lpk-color-text-primary); font: var(--lpk-type-small); font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }
.fd-report-details summary { cursor: pointer; color: var(--lpk-color-link); padding: var(--lpk-space-2) 0; }
.fd-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.fd-table { width: 100%; border-collapse: collapse; font: var(--lpk-type-small); }
.fd-table th, .fd-table td { padding: var(--lpk-space-2) var(--lpk-space-3); text-align: left; border-bottom: var(--lpk-stroke-hairline) solid var(--lpk-color-border-subtle); white-space: nowrap; }
.fd-table thead th { font: var(--lpk-type-label); letter-spacing: var(--lpk-tracking-label); text-transform: uppercase; color: var(--lpk-color-text-secondary); }
.fd-table tbody th { font-weight: 600; color: var(--lpk-color-text-primary); }
.fd-table .is-num { text-align: right; font-variant-numeric: tabular-nums; }
.fd-meters { display: grid; gap: var(--lpk-space-3); margin: 0; padding: 0; list-style: none; }
.fd-meter { display: grid; grid-template-columns: 1fr auto; gap: var(--lpk-space-1) var(--lpk-space-3); align-items: center; }
.fd-meter__label { color: var(--lpk-color-text-primary); }
.fd-meter__value { color: var(--lpk-color-text-primary); font-variant-numeric: tabular-nums; }
.fd-meter__track { grid-column: 1 / -1; height: 8px; border-radius: var(--lpk-radius-full); background: var(--lpk-color-bg-sunken); overflow: hidden; }
.fd-meter__fill { display: block; height: 100%; border-radius: var(--lpk-radius-full); background: var(--lpk-color-accent); }
/* ── Day view (T2): identity first, compact header, legend chips, client search ── */
/* Staff column heads: up to two lines instead of a cut name; the full name is the element's title / aria-label. */
.lpk-calendar-grid__head-name { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; white-space: normal; overflow-wrap: anywhere; line-height: 1.2; min-width: 0; }
/* A block's identity: name, then service · time. One line (is-compact) when the room above a processing gap is short. */
.lpk-calendar-grid__block-meta { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.lpk-calendar-grid__block { padding-top: calc(4px + var(--fd-head-top, 0px)); } /* --fd-head-top: a gap that opens the visit sits above the identity */
.lpk-calendar-grid__block-time-min { display: none; }
.lpk-calendar-grid__block.is-compact { display: flex; align-items: baseline; gap: 6px; padding-top: calc(2px + var(--fd-head-top, 0px)); padding-bottom: 0; }
/* a 15-minute block: one 13px line inside the 16px row, nothing clipped through the middle */
.lpk-calendar-grid__block.is-tiny { padding-top: var(--fd-head-top, 0px); font-size: 12px; line-height: 14px; align-items: flex-start; border-width: var(--lpk-stroke-hairline); }
.lpk-calendar-grid__block--hold.is-tiny .lpk-calendar-grid__block-countdown { display: none; } /* the expiry time stays in the label / tooltip and the hold dialog */
/* a visit booked into another visit's gap is above that visit and its free-slot button; nothing bookable is drawn under it */
.lpk-calendar-grid__block.is-over { z-index: 4; }
.lpk-calendar-grid__slot--free::after { top: 0; bottom: 0; }
.lpk-calendar-grid__block.is-compact .lpk-calendar-grid__block-title { flex: 0 1 auto; }
.lpk-calendar-grid__block.is-compact .lpk-calendar-grid__block-meta { flex: 1 1 0; }
.lpk-calendar-grid__block.is-found { box-shadow: 0 0 0 2px var(--lpk-color-focus); z-index: 5; }
/* Holds: same two lines as a visit, with the countdown at the end of the first line. */
.lpk-calendar-grid__block--hold .lpk-calendar-grid__block-title { display: flex; align-items: baseline; justify-content: space-between; gap: var(--lpk-space-2); }
.lpk-calendar-grid__block-who { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.lpk-calendar-grid__block-countdown { flex: none; display: inline-flex; align-items: baseline; gap: 4px; font-weight: 500; color: var(--lpk-color-text-secondary); }
.lpk-calendar-grid__block .lpk-hold-timer__bar { display: none; }
.lpk-calendar-grid__block .lpk-hold-timer { font: inherit; }
.lpk-calendar-grid__block .lpk-hold-timer__digits { min-width: 0; font-size: inherit; line-height: inherit; }

/* Legend chips (replaces the three-line paragraph); each chip's title explains it in a sentence. */
.fd-legend { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px var(--lpk-space-4); font: var(--lpk-type-small); color: var(--lpk-color-text-secondary); }
.fd-legend__item { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.fd-legend__swatch { flex: none; width: 14px; height: 14px; box-sizing: border-box; border-radius: 3px; border: var(--lpk-stroke-hairline) solid var(--lpk-color-border-default); }
.fd-legend__swatch--busy { background: var(--lpk-color-success-subtle); }
.fd-legend__swatch--free { background: var(--lpk-color-bg-surface); border: var(--lpk-stroke-control) solid var(--lpk-color-border-strong); }
.fd-legend__swatch--pending { background: var(--lpk-color-info-subtle); border: var(--lpk-stroke-control) dashed var(--lpk-color-link); }
.fd-legend__swatch--off { background: repeating-linear-gradient(45deg, var(--lpk-color-bg-sunken) 0 3px, transparent 3px 6px); }

/* Phone: one row for day + search + refresh, the location picker (only with 2+ locations) on the next, no eyebrow. */
@media (max-width: 767px) {
  .fd-day { gap: var(--lpk-space-2); }
  .fd-day-head { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: var(--lpk-space-2); }
  .fd-day-head__title .fd-eyebrow { display: none; }
  .fd-day-head__tools { display: contents; }
  .fd-day-head__tools .fd-select { grid-column: 1 / -1; grid-row: 2; width: 100%; height: 40px; }
  .fd-day-head__tools [data-booking-badge] { grid-column: 1 / -1; grid-row: 3; justify-self: start; }
  .fd-day-head .fd-daynav { min-width: 0; }
  .fd-day-head .fd-daynav__date { min-width: 0; font-size: 15px; padding: 0 2px; }
  .fd-day-head .fd-daynav .lpk-btn { padding-left: var(--lpk-space-2); padding-right: var(--lpk-space-2); }
  .fd-legend { font-size: 12px; line-height: 16px; gap: 2px var(--lpk-space-3); }
  .fd-legend__swatch { width: 12px; height: 12px; }
}

/* Client search dialog */
.fd-search .lpk-field { max-width: none; }
.fd-search__status { margin: 0; font: var(--lpk-type-small); }
.fd-search__results { max-height: min(52dvh, 520px); overflow: auto; display: grid; gap: var(--lpk-space-2); }
.fd-search__more { margin: 0; font: var(--lpk-type-small); }
.fd-search__clients, .fd-search__visits { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--lpk-space-2); }
.fd-search__client { display: grid; gap: var(--lpk-space-2); padding: var(--lpk-space-3); border: var(--lpk-stroke-hairline) solid var(--lpk-color-border-subtle); border-radius: var(--lpk-radius-md); }
.fd-search__who { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--lpk-space-1) var(--lpk-space-3); }
.fd-search__name { font-weight: 700; }
.fd-search__phone { color: var(--lpk-color-text-secondary); }
.fd-search__group { display: grid; gap: var(--lpk-space-1); }
.fd-search__group .fd-eyebrow { margin: 0; }
.fd-search__visit { width: 100%; min-height: 44px; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 0 var(--lpk-space-3); padding: var(--lpk-space-2) var(--lpk-space-3); text-align: left;
  border: var(--lpk-stroke-hairline) solid var(--lpk-color-border-default); border-radius: var(--lpk-radius-sm); background: var(--lpk-color-bg-surface); color: var(--lpk-color-text-primary); font: var(--lpk-type-small); cursor: pointer; }
.fd-search__visit:hover { background: var(--lpk-color-bg-sunken); }
.fd-search__visit:focus-visible { outline: 2px solid var(--lpk-color-focus); outline-offset: 1px; }
.fd-search__when { grid-column: 1; font-weight: 700; font-variant-numeric: tabular-nums; }
.fd-search__what { grid-column: 1; color: var(--lpk-color-text-secondary); overflow-wrap: anywhere; }
.fd-search__visit .lpk-tag { grid-column: 2; grid-row: 1 / span 2; }
@media (max-width: 480px) {
  .fd-search__visit { grid-template-columns: minmax(0, 1fr); row-gap: 2px; }
  .fd-search__visit .lpk-tag { grid-column: 1; grid-row: auto; justify-self: start; }
}

/* Narrow columns (a phone, or many stylists on a wide screen): the name with the start time; a hold: the name with its countdown. */
@container (max-width: 280px) {
  .lpk-calendar-grid__block-service, .lpk-calendar-grid__block-time, .lpk-calendar-grid__block-state, .lpk-calendar-grid__block-countdown-label { display: none; }
  .lpk-calendar-grid__block-time-short { display: inline; }
  .lpk-calendar-grid__block { padding-left: 6px; padding-right: 6px; }
  /* 24–45px of room: two small lines (name, then start time) */
  .lpk-calendar-grid__block.is-snug, .lpk-calendar-grid__block.is-one { display: grid; gap: 0; padding-top: calc(1px + var(--fd-head-top, 0px)); font-size: 12px; line-height: 13px; }
  .lpk-calendar-grid__block.is-one { padding-top: var(--fd-head-top, 0px); line-height: 12px; }
  /* a 15-minute block: one small line, the name then the start time without AM / PM */
  .lpk-calendar-grid__block.is-tiny { gap: 4px; }
  .lpk-calendar-grid__block.is-tiny .lpk-calendar-grid__block-title { flex: 1 1 auto; }
  .lpk-calendar-grid__block.is-tiny .lpk-calendar-grid__block-meta { flex: none; }
  .lpk-calendar-grid__block.is-tiny .lpk-calendar-grid__block-time-short { display: none; }
  .lpk-calendar-grid__block.is-tiny .lpk-calendar-grid__block-time-min { display: inline; }
  /* a hold: the name, then the countdown (on the next line when there is room for two) */
  .lpk-calendar-grid__block--hold .lpk-calendar-grid__block-meta { display: none; }
  .lpk-calendar-grid__block--hold:not(.is-tiny) .lpk-calendar-grid__block-title { flex-wrap: wrap; row-gap: 0; }
  .lpk-calendar-grid__block--hold:not(.is-tiny) .lpk-calendar-grid__block-who { flex: 1 0 100%; }
  .lpk-calendar-grid__block--hold:not(.is-compact) .lpk-calendar-grid__block-title { row-gap: 2px; }
  .lpk-calendar-grid__block--hold:not(.is-compact) .lpk-calendar-grid__block-countdown-label { display: inline; }
}
@media (max-width: 480px) {
  .lpk-calendar-grid__block-service, .lpk-calendar-grid__block-time, .lpk-calendar-grid__block-state, .lpk-calendar-grid__block-countdown-label { display: none; }
  .lpk-calendar-grid__block-time-short { display: inline; }
  .lpk-calendar-grid__block { padding-left: 6px; padding-right: 6px; }
  /* 24–45px of room: two small lines (name, then start time) */
  .lpk-calendar-grid__block.is-snug, .lpk-calendar-grid__block.is-one { display: grid; gap: 0; padding-top: calc(1px + var(--fd-head-top, 0px)); font-size: 12px; line-height: 13px; }
  .lpk-calendar-grid__block.is-one { padding-top: var(--fd-head-top, 0px); line-height: 12px; }
  /* a 15-minute block: one small line, the name then the start time without AM / PM */
  .lpk-calendar-grid__block.is-tiny { gap: 4px; }
  .lpk-calendar-grid__block.is-tiny .lpk-calendar-grid__block-title { flex: 1 1 auto; }
  .lpk-calendar-grid__block.is-tiny .lpk-calendar-grid__block-meta { flex: none; }
  .lpk-calendar-grid__block.is-tiny .lpk-calendar-grid__block-time-short { display: none; }
  .lpk-calendar-grid__block.is-tiny .lpk-calendar-grid__block-time-min { display: inline; }
  /* a hold: the name, then the countdown (on the next line when there is room for two) */
  .lpk-calendar-grid__block--hold .lpk-calendar-grid__block-meta { display: none; }
  .lpk-calendar-grid__block--hold:not(.is-tiny) .lpk-calendar-grid__block-title { flex-wrap: wrap; row-gap: 0; }
  .lpk-calendar-grid__block--hold:not(.is-tiny) .lpk-calendar-grid__block-who { flex: 1 0 100%; }
  .lpk-calendar-grid__block--hold:not(.is-compact) .lpk-calendar-grid__block-title { row-gap: 2px; }
  .lpk-calendar-grid__block--hold:not(.is-compact) .lpk-calendar-grid__block-countdown-label { display: inline; }
}
/* #/settings/<section> (screens/catalog.js): services, staff, hours, time off */
.fd-cat__nav { display: flex; gap: var(--lpk-space-2); flex-wrap: wrap; }
.fd-cat__list .fd-cat__item { align-items: center; flex-wrap: wrap; }
.fd-cat__item > :first-child { flex: 1 1 240px; min-width: 0; overflow-wrap: anywhere; }
.fd-cat__form { display: grid; gap: var(--lpk-space-4); }
.fd-cat__form .lpk-field { max-width: none; }
.fd-cat__pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: var(--lpk-space-4); }
.fd-cat__text { height: auto; padding: var(--lpk-space-3) var(--lpk-space-4); }
.fd-cat__set { border: 0; margin: 0; padding: 0; display: grid; gap: var(--lpk-space-2); min-width: 0; }
.fd-cat__checks { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: var(--lpk-space-2); padding-left: var(--lpk-space-2); }
.fd-cat__week { display: grid; gap: var(--lpk-space-2); }
.fd-cat__day { display: grid; grid-template-columns: minmax(120px, 160px) 1fr; gap: var(--lpk-space-3); align-items: center; min-height: 44px; }
.fd-cat__times { display: flex; flex-wrap: nowrap; align-items: center; gap: var(--lpk-space-2); min-width: 0; }
.fd-cat__time { flex: 0 1 150px; width: auto; min-width: 0; padding: 0 var(--lpk-space-2); }
.fd-cat__daytimes { display: grid; gap: var(--lpk-space-2); justify-items: start; min-width: 0; }
.fd-cat__ivs { display: grid; gap: var(--lpk-space-2); min-width: 0; }
.fd-cat__iv { display: flex; align-items: center; gap: var(--lpk-space-2); min-width: 0; }
.fd-cat__day > .lpk-field__error { grid-column: 1 / -1; }
.fd-cat__num { max-width: 160px; }
@media (max-width: 480px) { .fd-cat__day { grid-template-columns: 1fr; gap: var(--lpk-space-1); padding-bottom: var(--lpk-space-2); border-bottom: var(--lpk-stroke-hairline) solid var(--lpk-color-border-subtle); } }

/* ── #/checkout (screens/checkout.js): ticket, tenders, receipt. Tokens only. ── */
.fd-co__cols { display: grid; gap: var(--lpk-space-4); align-items: start; }
@media (min-width: 900px) {
  .fd-co__cols { grid-template-columns: minmax(0, 1.5fr) minmax(320px, 1fr); }
  .fd-co__cols--receipt { grid-template-columns: minmax(0, 460px) minmax(0, 1fr); }
  .fd-co-pay { position: sticky; top: var(--lpk-space-4); }
}
.fd-co-lines, .fd-co-tenders, .fd-co-tickets { list-style: none; margin: 0; padding: 0; display: grid; }
.fd-co-line { display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto; gap: var(--lpk-space-3); align-items: center; padding: var(--lpk-space-3) 0; border-bottom: var(--lpk-stroke-hairline) solid var(--lpk-color-border-subtle); }
.fd-co-line:first-child { padding-top: 0; }
.fd-co-line:last-child { border-bottom: 0; }
.fd-co-line__what { display: grid; gap: 2px; min-width: 0; overflow-wrap: anywhere; }
.fd-co-line__what .fd-muted { font: var(--lpk-type-small); }
.fd-co-line__disc { margin: 0; font: var(--lpk-type-small); color: var(--lpk-color-success-text); display: flex; gap: var(--lpk-space-2); flex-wrap: wrap; align-items: center; overflow-wrap: anywhere; }
.fd-co-line__ctl { display: flex; gap: var(--lpk-space-2); align-items: center; }
.fd-co-line__net { min-width: 5.5em; text-align: right; }
.fd-co-line__acts { display: flex; gap: var(--lpk-space-2); align-items: center; }
@media (max-width: 599px) {
  .fd-co-line { grid-template-columns: minmax(0, 1fr) auto; }
  .fd-co-line__what { grid-column: 1 / -1; }
  .fd-co-line__acts { grid-column: 1 / -1; justify-content: space-between; }
}
.fd-co-qty { display: inline-flex; align-items: center; gap: var(--lpk-space-2); }
.fd-co-qty > span { min-width: 2ch; text-align: center; }
.fd-co-money { display: inline-flex; align-items: center; gap: var(--lpk-space-1); color: var(--lpk-color-text-secondary); }
.fd-co-amount { width: 7.5em; text-align: right; font-family: var(--lpk-font-mono); font-variant-numeric: tabular-nums; }
.fd-co-link { min-height: 32px; padding: 0 var(--lpk-space-1); border: 0; background: none; color: var(--lpk-color-link); font: inherit; text-decoration: underline; cursor: pointer; }
.fd-co-pair { display: grid; gap: var(--lpk-space-3); grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); align-items: start; }
.fd-co-pair .fd-select { width: 100%; }
.fd-co-totals { margin: 0; display: grid; gap: var(--lpk-space-2); }
.fd-co-total { display: flex; justify-content: space-between; gap: var(--lpk-space-4); align-items: baseline; }
.fd-co-total dt { color: var(--lpk-color-text-secondary); min-width: 0; overflow-wrap: anywhere; }
.fd-co-total dd { margin: 0; white-space: nowrap; }
.fd-co-total--strong { padding-top: var(--lpk-space-2); border-top: var(--lpk-stroke-hairline) solid var(--lpk-color-border-default); }
.fd-co-total--strong dt, .fd-co-total--strong dd { color: var(--lpk-color-text-primary); font-weight: 700; }
.fd-co-total--strong dd { font-size: 1.25rem; }
.fd-co-tender { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: var(--lpk-space-3); align-items: center; padding: var(--lpk-space-2) 0; border-bottom: var(--lpk-stroke-hairline) solid var(--lpk-color-border-subtle); overflow-wrap: anywhere; }
.fd-co-tender:last-child { border-bottom: 0; }
.fd-co-status { margin: 0; font-weight: 700; }
.fd-co-status--warn { color: var(--lpk-color-danger-text); }
.fd-co-status--ok { color: var(--lpk-color-success-text); }
.fd-co-paybtn { width: 100%; min-height: 52px; }
.fd-co-note { margin: 0; font: var(--lpk-type-small); }
.fd-co-form { display: grid; gap: var(--lpk-space-4); }
.fd-co-form .lpk-field { max-width: none; }
.fd-co-form .fd-select { width: 100%; }
.fd-co-form .fd-co-money { display: flex; }
.fd-co-form .fd-co-amount { flex: 1; width: auto; min-width: 0; text-align: left; }
.fd-co-ticket { border-bottom: var(--lpk-stroke-hairline) solid var(--lpk-color-border-subtle); }
.fd-co-ticket:last-child { border-bottom: 0; }
.fd-co-ticket__link { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; gap: var(--lpk-space-3); align-items: center; min-height: 48px; padding: var(--lpk-space-2) 0; color: inherit; text-decoration: none; }
.fd-co-ticket__link:hover .fd-co-ticket__what { text-decoration: underline; }
.fd-co-ticket__what { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fd-co-ticket__total { text-align: right; min-width: 5em; }
@media (max-width: 480px) { .fd-co-ticket__link { grid-template-columns: auto minmax(0, 1fr) auto; } .fd-co-ticket__link .lpk-tag { grid-column: 2; grid-row: 2; justify-self: start; } .fd-co-ticket__total { grid-row: 1 / span 2; grid-column: 3; } }
img.fd-qr { width: 160px; height: 160px; display: block; border: var(--lpk-stroke-hairline) solid var(--lpk-color-border-default); border-radius: var(--lpk-radius-md); }
.fd-receipt { max-width: 460px; display: grid; gap: var(--lpk-space-3); padding: var(--lpk-space-5); border: var(--lpk-stroke-hairline) solid var(--lpk-color-border-default); border-radius: var(--lpk-radius-md); background: var(--lpk-color-bg-surface); color: var(--lpk-color-text-primary); }
.fd-receipt:focus { outline: none; }
.fd-receipt:focus-visible { outline: var(--lpk-stroke-focus) solid var(--lpk-color-focus); outline-offset: 2px; }
.fd-receipt p { margin: 0; }
.fd-receipt__head { display: grid; gap: 2px; text-align: center; }
.fd-receipt__brand { font: var(--lpk-type-title); }
.fd-receipt__meta { text-align: center; font: var(--lpk-type-small); color: var(--lpk-color-text-secondary); }
.fd-receipt__state { text-align: center; font: var(--lpk-type-label); letter-spacing: var(--lpk-tracking-label); text-transform: uppercase; color: var(--lpk-color-danger-text); }
.fd-receipt__lines { list-style: none; margin: 0; padding: var(--lpk-space-3) 0; display: grid; gap: var(--lpk-space-2); border-top: var(--lpk-stroke-hairline) dashed var(--lpk-color-border-strong); border-bottom: var(--lpk-stroke-hairline) dashed var(--lpk-color-border-strong); }
.fd-receipt__lines li { display: flex; justify-content: space-between; gap: var(--lpk-space-4); overflow-wrap: anywhere; }
.fd-receipt__lines li > :last-child { white-space: nowrap; }
.fd-receipt__cards { display: grid; gap: var(--lpk-space-1); padding-top: var(--lpk-space-2); border-top: var(--lpk-stroke-hairline) dashed var(--lpk-color-border-strong); overflow-wrap: anywhere; }
.fd-receipt__thanks { text-align: center; color: var(--lpk-color-text-secondary); }
/* printing: the receipt only */
@media print {
  .fd-bar, .fd-notices, .fd-tabs, .fd-ask-dock, .fd-no-print, .skip { display: none !important; }
  .fd-main { max-width: none; padding: 0; }
  .fd-co__cols { display: block; }
  .fd-receipt { max-width: none; border: 0; padding: 0; }
}
/* #/audit (screens/audit.js): the owner's activity log */
.fd-audit__filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: var(--lpk-space-3); align-items: end; }
.fd-audit__filters .lpk-field { max-width: none; min-width: 0; }
.fd-audit__filters .fd-select, .fd-audit__filters .lpk-input { width: 100%; min-width: 0; max-width: none; box-sizing: border-box; }
.fd-audit__buttons, .fd-audit__filters > .lpk-field__error { grid-column: 1 / -1; }
.fd-audit__list .fd-audit__item { display: grid; grid-template-columns: minmax(150px, 190px) 1fr; gap: var(--lpk-space-3); align-items: start; }
.fd-audit__when { color: var(--lpk-color-text-secondary); font-variant-numeric: tabular-nums; }
.fd-audit__what { display: grid; gap: 2px; min-width: 0; overflow-wrap: anywhere; }
.fd-audit__entity .fd-mono { font-size: inherit; }
.fd-audit__pager { justify-content: space-between; }
@media (max-width: 600px) { .fd-audit__list .fd-audit__item { grid-template-columns: 1fr; gap: var(--lpk-space-1); } }

/* checkout: discount limit note, returned lines, one-time codes, settings; print without the sidebar offset */
.fd-co-limit { margin: 0; font: var(--lpk-type-small); color: var(--lpk-color-text-secondary); }
.fd-co-limit--over { color: var(--lpk-color-danger-text); font-weight: 700; }
.fd-co-returns { margin: 0; padding: 0; border: 0; display: grid; gap: var(--lpk-space-2); min-width: 0; }
.fd-co-ret { display: flex; gap: var(--lpk-space-3); align-items: center; justify-content: space-between; min-height: 44px; }
.fd-co-retqty { width: 5em; }
.fd-co-ret > label { flex: 1 1 auto; flex-wrap: nowrap; align-items: center; min-width: 0; }
.fd-co-ret > label > input { flex: none; }
.fd-co-code { font-weight: 700; overflow-wrap: anywhere; }
#checkout-refund-pending > .fd-stack, #checkout-refund-pending .fd-co-tenders { min-width: 0; }
@media print {
  @page { margin: 12mm; }
  body, body:has(#tabs:not([hidden])) { padding: 0 !important; margin: 0; background: none; }
  .fd-co { display: block; }
  /* a receipt-width column in the middle of the page, whatever the paper */
  .fd-co .fd-receipt { max-width: 560px; margin: 0 auto; }
}

/* ── #/clients and #/clients/:id (screens/client.js): the client list and one client's record. Tokens only. ── */
.fd-cr__link { color: var(--lpk-color-link); text-decoration: underline; text-underline-offset: 2px; font: var(--lpk-type-small); min-height: 24px; display: inline-flex; align-items: center; }
.fd-cr__link.fd-search__name { font: inherit; font-weight: 700; color: var(--lpk-color-text-primary); }
.fd-cr__link:focus-visible, .fd-cr__back:focus-visible, .fd-cr__row:focus-visible, .fd-cr__visit-main:focus-visible, .fd-cr__photo:focus-visible { outline: var(--lpk-stroke-focus) solid var(--lpk-color-focus); outline-offset: 2px; }
.fd-cr__titles { gap: var(--lpk-space-1); min-width: 0; }
.fd-cr__titles > * { margin: 0; }
.fd-cr__search { max-width: 520px; }
.fd-cr__status { margin: 0; font: var(--lpk-type-small); min-height: 1.4em; }
.fd-cr__group { gap: var(--lpk-space-2); }
.fd-cr__group > h2 { margin: 0; }
.fd-cr__list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--lpk-space-2); }
.fd-cr__row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: var(--lpk-space-3); min-height: 56px; padding: var(--lpk-space-2) var(--lpk-space-4); border: var(--lpk-stroke-hairline) solid var(--lpk-color-border-subtle); border-radius: var(--lpk-radius-md); background: var(--lpk-color-bg-surface); color: inherit; text-decoration: none; }
.fd-cr__row:hover { background: var(--lpk-color-bg-sunken); }
.fd-cr__row-main { display: grid; gap: 2px; min-width: 0; }
.fd-cr__row-name { font-weight: 700; overflow-wrap: anywhere; }
.fd-cr__row-meta { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: var(--lpk-space-2); font: var(--lpk-type-small); text-align: right; }

.fd-cr__back { display: inline-flex; align-items: center; gap: var(--lpk-space-1); min-height: 44px; width: max-content; color: var(--lpk-color-text-secondary); text-decoration: none; font: var(--lpk-type-small); }
.fd-cr__back:hover { color: var(--lpk-color-text-primary); }
.fd-cr__back svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.fd-cr__head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: var(--lpk-space-4); }
.fd-cr__avatar { width: 56px; height: 56px; font: var(--lpk-type-title); }
.fd-cr__head .fd-h1 { overflow-wrap: anywhere; }
.fd-cr__contact { display: flex; flex-wrap: wrap; align-items: center; gap: var(--lpk-space-1) var(--lpk-space-3); color: var(--lpk-color-text-secondary); overflow-wrap: anywhere; }
.fd-cr__stats { display: grid; grid-template-columns: repeat(4, auto); gap: var(--lpk-space-5); margin: 0; }
.fd-cr__stat { display: grid; gap: 2px; }
.fd-cr__stat dt { font: var(--lpk-type-label); letter-spacing: var(--lpk-tracking-label); text-transform: uppercase; color: var(--lpk-color-text-secondary); }
.fd-cr__stat dd { margin: 0; font: var(--lpk-type-title); font-variant-numeric: tabular-nums; }
.fd-cr__stat--warn dd { color: var(--lpk-color-danger-text); }
#client-alert-slot { display: grid; gap: var(--lpk-space-3); }
#client-alert-slot:focus, .fd-cr__section:focus, .fd-cr__record:focus, .fd-cr__note:focus { outline: none; }
#client-alert-slot:focus-visible, .fd-cr__section:focus-visible, .fd-cr__record:focus-visible, .fd-cr__note:focus-visible { outline: var(--lpk-stroke-focus) solid var(--lpk-color-focus); outline-offset: 2px; }
/* the allergy / sensitivity alert (client-alert.js): one look on the record, the Day view, To approve, the inbox, search and new booking */
.fd-client-alert { border: var(--lpk-stroke-hairline) solid var(--lpk-color-danger); align-items: start; min-width: 0; }
.fd-client-alert__body { display: grid; gap: var(--lpk-space-1); min-width: 0; }
.fd-client-alert__text { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; font: var(--lpk-type-body); }
.fd-client-alert--compact { padding: var(--lpk-space-2) var(--lpk-space-3); gap: var(--lpk-space-2); }
.fd-client-alert--compact .fd-client-alert__text { font: var(--lpk-type-small); }
.fd-client-alert-icon { display: inline-grid; place-items: center; width: 16px; height: 16px; margin-right: var(--lpk-space-1); vertical-align: -2px; border-radius: var(--lpk-radius-xs); background: var(--lpk-color-danger-subtle); color: var(--lpk-color-danger-text); flex: none; }
.fd-client-alert-icon svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.fd-cr__alert { display: grid; gap: var(--lpk-space-2); }
.fd-cr__alert .fd-client-alert__text { font: var(--lpk-type-body-lg); }
.fd-cr__alert-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--lpk-space-2) var(--lpk-space-3); }
.fd-cr__alert-foot > p { margin: 0; }
.fd-cr__alert-changes { gap: var(--lpk-space-3); padding: var(--lpk-space-2) 0 0; }
.fd-cr__plain .fd-cr__alert-change { display: grid; gap: var(--lpk-space-1); padding-left: var(--lpk-space-3); border-left: var(--lpk-stroke-hairline) solid var(--lpk-color-border-default); }
.fd-cr__was { font: var(--lpk-type-small); }
.fd-cr__quote { padding: var(--lpk-space-3); border: var(--lpk-stroke-hairline) solid var(--lpk-color-border-subtle); border-radius: var(--lpk-radius-md); background: var(--lpk-color-bg-sunken); }
.fd-cr__form > .fd-eyebrow { margin-bottom: calc(-1 * var(--lpk-space-2)); }
.fd-cr__noalert { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--lpk-space-3); padding: var(--lpk-space-3) var(--lpk-space-4); border: var(--lpk-stroke-hairline) dashed var(--lpk-color-border-default); border-radius: var(--lpk-radius-md); }
.fd-cr__text { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.fd-cr__meta { margin: 0; font: var(--lpk-type-small); }
.fd-cr__wrap { overflow-wrap: anywhere; }

.fd-cr__cols { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--lpk-space-4); align-items: start; }
@media (min-width: 1024px) { .fd-cr__cols { grid-template-columns: minmax(0, 1fr) 340px; } }
.fd-cr__main, .fd-cr__side { min-width: 0; }
.fd-cr__section { min-width: 0; }
.fd-cr__section-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--lpk-space-2) var(--lpk-space-3); }
.fd-cr__h2 { margin: 0; font: var(--lpk-type-title); }
.fd-cr__body { display: grid; gap: var(--lpk-space-3); min-width: 0; }
.fd-cr__body > p { margin: 0; }
.fd-cr__kv { grid-template-columns: minmax(96px, max-content) minmax(0, 1fr); }
.fd-cr__kv dd { min-width: 0; }
.fd-cr__side .fd-cr__kv { grid-template-columns: minmax(0, 1fr); gap: 2px; }
.fd-cr__side .fd-cr__kv dd { margin-bottom: var(--lpk-space-2); }
.fd-cr__side .fd-cr__kv dd:last-child { margin-bottom: 0; }

.fd-cr__visits, .fd-cr__records, .fd-cr__notes, .fd-cr__plain, .fd-cr__photos { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--lpk-space-2); }
.fd-cr__visit { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: var(--lpk-space-2) var(--lpk-space-3); padding: var(--lpk-space-2) var(--lpk-space-3); border: var(--lpk-stroke-hairline) solid var(--lpk-color-border-subtle); border-radius: var(--lpk-radius-md); }
.fd-cr__visit-main { display: grid; gap: 2px; min-height: 44px; align-content: center; padding: 0; border: 0; background: transparent; color: inherit; text-align: left; cursor: pointer; border-radius: var(--lpk-radius-sm); min-width: 0; }
.fd-cr__visit-main:hover .fd-cr__visit-when { text-decoration: underline; text-underline-offset: 2px; }
.fd-cr__visit-when { font-weight: 700; font-variant-numeric: tabular-nums; }
.fd-cr__visit-what { color: var(--lpk-color-text-secondary); overflow-wrap: anywhere; }
.fd-cr__visit-side { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: var(--lpk-space-2); }
.fd-cr__price { color: var(--lpk-color-text-secondary); font: var(--lpk-type-small); font-family: var(--lpk-font-mono); }

.fd-cr__record, .fd-cr__note { display: grid; gap: var(--lpk-space-3); padding: var(--lpk-space-3) var(--lpk-space-4); border: var(--lpk-stroke-hairline) solid var(--lpk-color-border-subtle); border-radius: var(--lpk-radius-md); background: var(--lpk-color-bg-surface); min-width: 0; }
.fd-cr__note { gap: var(--lpk-space-2); }
.fd-cr__record-head, .fd-cr__note-foot { display: flex; flex-wrap: wrap; align-items: start; justify-content: space-between; gap: var(--lpk-space-2) var(--lpk-space-3); }
.fd-cr__note-foot { align-items: center; }
.fd-cr__record-title { margin: 0; font-weight: 700; }
.fd-cr__table-wrap { overflow-x: auto; }
.fd-cr__formulas { width: 100%; border-collapse: collapse; font: var(--lpk-type-small); }
.fd-cr__formulas th { text-align: left; font: var(--lpk-type-label); letter-spacing: var(--lpk-tracking-label); text-transform: uppercase; color: var(--lpk-color-text-secondary); padding: 0 var(--lpk-space-3) var(--lpk-space-1) 0; white-space: nowrap; }
.fd-cr__formulas td { padding: var(--lpk-space-2) var(--lpk-space-3) var(--lpk-space-2) 0; border-top: var(--lpk-stroke-hairline) solid var(--lpk-color-border-subtle); vertical-align: top; overflow-wrap: anywhere; }
.fd-cr__shades { font-weight: 700; min-width: 140px; }
.fd-cr__photos { grid-template-columns: repeat(auto-fill, minmax(88px, max-content)); }
.fd-cr__photo { display: block; width: 88px; height: 88px; border-radius: var(--lpk-radius-md); overflow: hidden; border: var(--lpk-stroke-hairline) solid var(--lpk-color-border-subtle); background: var(--lpk-color-bg-sunken); }
.fd-cr__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fd-cr__photo-missing { display: grid; place-items: center; width: 100%; height: 100%; font: var(--lpk-type-small); color: var(--lpk-color-text-secondary); text-align: center; }
.fd-cr__photo-text { grid-column: 1 / -1; font: var(--lpk-type-small); }
.fd-cr__plain li { display: flex; flex-wrap: wrap; align-items: center; gap: var(--lpk-space-1) var(--lpk-space-3); font: var(--lpk-type-small); }
.fd-cr__money li { justify-content: space-between; padding: var(--lpk-space-2) 0; border-top: var(--lpk-stroke-hairline) solid var(--lpk-color-border-subtle); }
.fd-cr__money li:first-child { border-top: 0; padding-top: 0; }
.fd-cr__details summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; font: var(--lpk-type-small); color: var(--lpk-color-link); }
.fd-cr__details summary:focus-visible { outline: var(--lpk-stroke-focus) solid var(--lpk-color-focus); outline-offset: 2px; }

.fd-cr__form { display: grid; gap: var(--lpk-space-4); min-width: 0; }
.fd-cr__form .lpk-field { max-width: none; }
.fd-cr__form > p { margin: 0; }
.fd-cr__pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: var(--lpk-space-4); }
.fd-cr__textarea { height: auto; min-height: 88px; padding: var(--lpk-space-3) var(--lpk-space-4); resize: vertical; line-height: 1.5; }
.fd-cr__set, .fd-cr__formula { border: 0; margin: 0; padding: 0; display: grid; gap: var(--lpk-space-2); min-width: 0; }
.fd-cr__birthday { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); gap: var(--lpk-space-2); }
.fd-cr__birthday .lpk-input, .fd-cr__birthday .fd-select { width: 100%; min-width: 0; padding-left: var(--lpk-space-3); padding-right: var(--lpk-space-2); }
.fd-cr__formulas-edit { gap: var(--lpk-space-3); }
.fd-cr__formulas-edit > p { margin: 0; }
.fd-cr__formula-rows { display: grid; gap: var(--lpk-space-4); }
.fd-cr__formula { padding: var(--lpk-space-3); border: var(--lpk-stroke-hairline) solid var(--lpk-color-border-subtle); border-radius: var(--lpk-radius-md); }
.fd-cr__formula-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: var(--lpk-space-3); }
.fd-cr__problem { margin: 0; display: block; }
.fd-cr__problem a { color: inherit; font-weight: 700; }
@media (max-width: 767px) {
  .fd-cr__head { grid-template-columns: auto minmax(0, 1fr); }
  .fd-cr__stats { grid-column: 1 / -1; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--lpk-space-3) var(--lpk-space-4); padding: var(--lpk-space-3) var(--lpk-space-4); border: var(--lpk-stroke-hairline) solid var(--lpk-color-border-subtle); border-radius: var(--lpk-radius-md); background: var(--lpk-color-bg-surface); }
  .fd-cr__visit { grid-template-columns: minmax(0, 1fr); }
  .fd-cr__visit-side { justify-content: flex-start; }
  .fd-cr__row { grid-template-columns: auto minmax(0, 1fr); }
  .fd-cr__row-meta { grid-column: 2; justify-content: flex-start; text-align: left; }
  /* a formula reads as a labelled list on a phone: nothing is cut off to the right */
  .fd-cr__formulas thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .fd-cr__formulas, .fd-cr__formulas tbody { display: block; }
  .fd-cr__formulas tr { display: grid; gap: var(--lpk-space-1); padding: var(--lpk-space-2) 0; border-top: var(--lpk-stroke-hairline) solid var(--lpk-color-border-subtle); }
  .fd-cr__formulas td { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: var(--lpk-space-2); padding: 0; border: 0; }
  .fd-cr__formulas td::before { content: attr(data-label); font: var(--lpk-type-label); letter-spacing: var(--lpk-tracking-label); text-transform: uppercase; color: var(--lpk-color-text-secondary); }
  .fd-cr__formulas td:empty { display: none; }
}

/* #/settings/online (screens/online-booking.js): allowed websites, the tag to paste, the live preview */
.fd-ob__origins { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--lpk-space-2); }
.fd-ob__origin { display: flex; align-items: center; justify-content: space-between; gap: var(--lpk-space-3); padding: var(--lpk-space-2) var(--lpk-space-3); border: var(--lpk-stroke-hairline) solid var(--lpk-color-border-default); border-radius: var(--lpk-radius-sm); }
.fd-ob__origin code { font-family: var(--lpk-font-mono); overflow-wrap: anywhere; }
.fd-ob__choices { display: grid; gap: var(--lpk-space-3); grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.fd-ob__snippet { margin: 0; padding: var(--lpk-space-3); background: var(--lpk-color-bg-sunken); border-radius: var(--lpk-radius-sm); font-family: var(--lpk-font-mono); font-size: 13px; line-height: 20px; white-space: pre-wrap; overflow-wrap: anywhere; }
.fd-ob__preview { border: var(--lpk-stroke-hairline) dashed var(--lpk-color-border-default); border-radius: var(--lpk-radius-sm); min-height: 160px; overflow: hidden; }

/* ── #/setup: the first-run checklist (screens/setup.js) ── */
.fd-setup__progress { display: grid; gap: var(--lpk-space-2); max-width: 560px; }
.fd-setup__progress-text { margin: 0; font: var(--lpk-type-body); font-weight: 600; color: var(--lpk-color-text-primary); }
.fd-setup__bar { appearance: none; -webkit-appearance: none; width: 100%; height: 8px; border: 0; border-radius: var(--lpk-radius-full); background: var(--lpk-color-bg-sunken); overflow: hidden; accent-color: var(--lpk-color-accent); }
.fd-setup__bar::-webkit-progress-bar { background: var(--lpk-color-bg-sunken); border-radius: var(--lpk-radius-full); }
.fd-setup__bar::-webkit-progress-value { background: var(--lpk-color-accent); border-radius: var(--lpk-radius-full); }
.fd-setup__bar::-moz-progress-bar { background: var(--lpk-color-accent); border-radius: var(--lpk-radius-full); }
.fd-setup__list { display: grid; gap: var(--lpk-space-3); margin: 0; padding: 0; list-style: none; }
.fd-setup__item { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--lpk-space-3); padding: var(--lpk-space-4); border: var(--lpk-stroke-hairline) solid var(--lpk-color-border-subtle); border-radius: var(--lpk-radius-md); background: var(--lpk-color-bg-surface); }
.fd-setup__item--attention { border-color: var(--lpk-color-border-strong); }
.fd-setup__mark { width: 28px; height: 28px; border-radius: var(--lpk-radius-full); display: grid; place-items: center; background: var(--lpk-color-bg-sunken); color: var(--lpk-color-text-secondary); }
.fd-setup__mark svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.fd-setup__mark--done { background: var(--lpk-color-success-subtle); color: var(--lpk-color-success-text); }
.fd-setup__mark--attention { background: var(--lpk-color-warning-subtle); color: var(--lpk-color-warning-text); }
.fd-setup__body { display: grid; gap: var(--lpk-space-1); min-width: 0; }
.fd-setup__title-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--lpk-space-2); }
.fd-setup__title { margin: 0; font: var(--lpk-type-body-lg); font-weight: 600; color: var(--lpk-color-text-primary); }
.fd-setup__kind { font: var(--lpk-type-small); color: var(--lpk-color-text-secondary); }
.fd-setup__why, .fd-setup__note { margin: 0; font: var(--lpk-type-body); color: var(--lpk-color-text-secondary); overflow-wrap: anywhere; }
.fd-setup__note { color: var(--lpk-color-text-primary); }
.fd-setup__note--attention { color: var(--lpk-color-warning-text); }
.fd-setup__actions { margin-top: var(--lpk-space-2); flex-wrap: wrap; }
.fd-setup__page { display: flex; flex-wrap: wrap; gap: var(--lpk-space-6); align-items: center; justify-content: space-between; }
.fd-setup__page-text { display: grid; gap: var(--lpk-space-2); flex: 1 1 280px; min-width: 0; }
.fd-setup__page-text > p { margin: 0; }
.fd-setup__link { margin: 0; padding: var(--lpk-space-2) var(--lpk-space-3); border-radius: var(--lpk-radius-sm); background: var(--lpk-color-bg-sunken); color: var(--lpk-color-text-primary); overflow-wrap: anywhere; user-select: all; }
.fd-setup__copied:empty { display: none; }
img.fd-setup__qr { background: var(--lpk-color-bg-surface); flex: 0 0 auto; }
@media (max-width: 767px) {
  .fd-setup__item { padding: var(--lpk-space-3); }
  .fd-setup__page { flex-direction: column; align-items: flex-start; }
}

/* deep link #/triage?ticket=…: the named card, scrolled into view */
.fd-triage--focus { outline: var(--lpk-stroke-focus) solid var(--lpk-color-focus); outline-offset: 2px; }

/* ── #/week (screens/week.js): Day | Week switch, staff chips, 7-column grid (wide), day strip + list (phones). Tokens only. ── */
.fd-viewswitch { display: inline-flex; border: var(--lpk-stroke-hairline) solid var(--lpk-color-border-strong); border-radius: var(--lpk-radius-md); overflow: hidden; background: var(--lpk-color-bg-surface); }
.fd-viewswitch__item { display: inline-flex; align-items: center; justify-content: center; min-width: 56px; min-height: 44px; padding: 0 var(--lpk-space-3); color: var(--lpk-color-text-secondary); text-decoration: none; font-weight: 600; }
.fd-viewswitch__item + .fd-viewswitch__item { border-left: var(--lpk-stroke-hairline) solid var(--lpk-color-border-strong); }
.fd-viewswitch__item[aria-current="page"] { background: var(--lpk-color-text-primary); color: var(--lpk-color-text-inverse); }
.fd-viewswitch__item:focus-visible { outline: var(--lpk-stroke-focus) solid var(--lpk-color-focus); outline-offset: -3px; }
/* one stripe colour per stylist (the chip's swatch is the legend); the block's fill keeps the Day view's status grammar */
/* (not the AI orange: that colour means "needs review" on the Day grid) */
.fd-wk-c0 { --fd-wk-stylist: var(--lpk-color-link); }
.fd-wk-c1 { --fd-wk-stylist: var(--lpk-color-rating); }
.fd-wk-c2 { --fd-wk-stylist: var(--lpk-color-accent); }
.fd-wk-c3 { --fd-wk-stylist: var(--lpk-color-danger); }
.fd-wk-c4 { --fd-wk-stylist: var(--lpk-color-text-primary); }
.fd-wk-c5 { --fd-wk-stylist: var(--lpk-color-mark-dot); }
.fd-wk-cnone { --fd-wk-stylist: var(--lpk-color-border-strong); }
.fd-week__staff { display: flex; gap: var(--lpk-space-2); flex-wrap: wrap; min-width: 0; }
.fd-week__chip { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 var(--lpk-space-3); border-radius: var(--lpk-radius-full); border: var(--lpk-stroke-hairline) solid var(--lpk-color-border-strong); background: var(--lpk-color-bg-surface); color: var(--lpk-color-text-primary); cursor: pointer; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fd-week__chip[aria-pressed="true"] { background: var(--lpk-color-text-primary); color: var(--lpk-color-text-inverse); border-color: var(--lpk-color-text-primary); }
.fd-week__swatch { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--fd-wk-stylist); box-shadow: 0 0 0 1px var(--lpk-color-bg-surface); }
.fd-week__body { min-width: 0; }
.fd-week__wide { display: none; }
.fd-wk-grid { display: grid; grid-template-columns: 56px repeat(7, minmax(0, 1fr)); border: var(--lpk-stroke-hairline) solid var(--lpk-color-border-subtle); border-radius: var(--lpk-radius-md); background: var(--lpk-color-bg-surface); overflow: hidden; }
.fd-wk-grid__corner, .fd-wk-grid__head { border-bottom: var(--lpk-stroke-hairline) solid var(--lpk-color-border-subtle); background: var(--lpk-color-bg-surface); }
.fd-wk-grid__head { border-left: var(--lpk-stroke-hairline) solid var(--lpk-color-border-subtle); min-width: 0; }
.fd-wk-grid__day { display: grid; gap: 2px; width: 100%; min-height: 52px; padding: var(--lpk-space-2); border: 0; background: transparent; color: var(--lpk-color-text-primary); text-align: left; cursor: pointer; }
.fd-wk-grid__day:hover { background: var(--lpk-color-bg-sunken); }
.fd-wk-grid__day:focus-visible { outline: var(--lpk-stroke-focus) solid var(--lpk-color-focus); outline-offset: -3px; }
.fd-wk-grid__dayname { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fd-wk-grid__count { font: var(--lpk-type-small); color: var(--lpk-color-text-secondary); font-variant-numeric: tabular-nums; }
.fd-wk-grid__head.is-today .fd-wk-grid__dayname { color: var(--lpk-color-accent-text); }
.fd-wk-grid__head.is-today { box-shadow: inset 0 -2px 0 var(--lpk-color-accent); }
.fd-wk-grid__gutter { position: relative; }
.fd-wk-grid__hour { position: absolute; right: 6px; transform: translateY(-50%); font: var(--lpk-type-small); font-size: 11px; color: var(--lpk-color-text-secondary); white-space: nowrap; font-variant-numeric: tabular-nums; }
.fd-wk-grid__hour:first-child { transform: none; }
.fd-wk-grid__col { position: relative; border-left: var(--lpk-stroke-hairline) solid var(--lpk-color-border-subtle); min-width: 0;
  background: repeating-linear-gradient(to bottom, transparent 0 47px, var(--lpk-color-border-subtle) 47px 48px); }
.fd-wk-off { position: absolute; left: 0; right: 0; background: repeating-linear-gradient(45deg, var(--lpk-color-bg-sunken) 0 6px, transparent 6px 12px); opacity: .9; pointer-events: none; overflow: hidden; }
.fd-wk-off--closed { z-index: 1; opacity: 1; background: repeating-linear-gradient(45deg, var(--lpk-color-bg-sunken) 0 4px, var(--lpk-color-border-default) 4px 6px); }
.fd-wk-off--closed .fd-wk-off__label { font-weight: 700; color: var(--lpk-color-text-primary); }
.fd-week__strip-day.is-closed:not([aria-pressed="true"]) { background: repeating-linear-gradient(45deg, var(--lpk-color-bg-sunken) 0 4px, var(--lpk-color-bg-surface) 4px 8px); }
.fd-week__note--closed { font-weight: 700; color: var(--lpk-color-text-primary); }
.fd-wk-off__label { display: block; padding: 2px 6px; font: var(--lpk-type-small); font-size: 11px; color: var(--lpk-color-text-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fd-wk-block { position: absolute; z-index: 2; box-sizing: border-box; display: grid; align-content: start; gap: 0; padding: 2px 4px 2px 6px; overflow: hidden; text-align: left; cursor: pointer;
  border-radius: var(--lpk-radius-sm); border: var(--lpk-stroke-hairline) solid var(--lpk-color-border-default); border-left: 4px solid var(--fd-wk-stylist);
  background: var(--lpk-color-success-subtle); color: var(--lpk-color-text-primary); font: var(--lpk-type-small); font-size: 12px; line-height: 14px; }
.fd-wk-block:focus-visible { outline: var(--lpk-stroke-focus) solid var(--lpk-color-focus); outline-offset: 1px; z-index: 3; }
.fd-wk-block--hold, .fd-wk-block--triage, .fd-wk-block--requested { background: var(--lpk-color-info-subtle); border: var(--lpk-stroke-control) dashed var(--lpk-color-link); border-left: 4px solid var(--fd-wk-stylist); }
.fd-wk-block--cancelled { background: var(--lpk-color-bg-sunken); color: var(--lpk-color-text-secondary); text-decoration: line-through; }
.fd-wk-block--completed { background: var(--lpk-color-bg-sunken); color: var(--lpk-color-text-secondary); }
.fd-wk-block__title { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; display: flex; align-items: center; gap: 3px; }
.fd-wk-block__title svg { flex: none; width: 12px; height: 12px; }
.fd-wk-block__meta, .fd-wk-block__who { color: var(--lpk-color-text-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.fd-wk-block.is-short .fd-wk-block__meta, .fd-wk-block.is-short .fd-wk-block__who, .fd-wk-block.is-mid .fd-wk-block__who { display: none; }
.fd-wk-block.is-cut { border-bottom-left-radius: 0; border-bottom-right-radius: 0; border-bottom-style: dashed; }
/* "continues": the visit runs past the last row (past midnight); a chevron drawn with borders, the times are in the label */
.fd-wk-block__cont { position: absolute; right: 6px; bottom: 3px; width: 6px; height: 6px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); opacity: .7; }
.fd-wk-now { position: absolute; left: 0; right: 0; height: 2px; background: var(--lpk-color-danger); z-index: 4; pointer-events: none; }
/* phones and narrow tablets */
.fd-week__phone { display: grid; gap: var(--lpk-space-3); min-width: 0; }
.fd-week__strip { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.fd-week__strip-day { display: grid; justify-items: center; gap: 0; min-height: 60px; padding: 6px 0; border-radius: var(--lpk-radius-md); border: var(--lpk-stroke-hairline) solid var(--lpk-color-border-subtle); background: var(--lpk-color-bg-surface); color: var(--lpk-color-text-primary); cursor: pointer; min-width: 0; }
.fd-week__strip-day[aria-pressed="true"] { background: var(--lpk-color-text-primary); color: var(--lpk-color-text-inverse); border-color: var(--lpk-color-text-primary); }
.fd-week__strip-day.is-today:not([aria-pressed="true"]) { border-color: var(--lpk-color-accent); box-shadow: inset 0 0 0 1px var(--lpk-color-accent); }
.fd-week__strip-wd { font-size: 11px; line-height: 14px; text-transform: uppercase; letter-spacing: var(--lpk-tracking-label); opacity: .8; white-space: nowrap; overflow: hidden; max-width: 100%; }
.fd-week__strip-num { font-weight: 700; font-size: 17px; line-height: 22px; font-variant-numeric: tabular-nums; }
.fd-week__strip-count { font-size: 11px; line-height: 14px; font-variant-numeric: tabular-nums; opacity: .8; }
.fd-week__dayhead { display: flex; align-items: center; justify-content: space-between; gap: var(--lpk-space-3); flex-wrap: wrap; }
.fd-week__dayname { font: var(--lpk-type-title); font-size: 16px; }
.fd-week__list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--lpk-space-2); }
.fd-week__item { display: grid; grid-template-columns: minmax(64px, auto) minmax(0, 1fr); gap: var(--lpk-space-3); align-items: start; width: 100%; min-height: 52px; padding: var(--lpk-space-2) var(--lpk-space-3); box-sizing: border-box; text-align: left; cursor: pointer;
  border-radius: var(--lpk-radius-md); border: var(--lpk-stroke-hairline) solid var(--lpk-color-border-default); border-left: 4px solid var(--fd-wk-stylist); background: var(--lpk-color-success-subtle); color: var(--lpk-color-text-primary); }
.fd-week__item--hold, .fd-week__item--triage, .fd-week__item--requested { background: var(--lpk-color-info-subtle); border: var(--lpk-stroke-control) dashed var(--lpk-color-link); border-left: 4px solid var(--fd-wk-stylist); }
.fd-week__item--cancelled { background: var(--lpk-color-bg-sunken); color: var(--lpk-color-text-secondary); }
.fd-week__item--cancelled .fd-week__item-title { text-decoration: line-through; }
.fd-week__item--completed { background: var(--lpk-color-bg-sunken); }
.fd-week__item-time { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.fd-week__item-main { display: grid; gap: 2px; min-width: 0; }
.fd-week__item-title { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: flex; align-items: center; gap: 4px; }
.fd-week__item-meta { font: var(--lpk-type-small); color: var(--lpk-color-text-secondary); overflow-wrap: anywhere; }
.fd-week__note { padding: var(--lpk-space-2) var(--lpk-space-3); border-radius: var(--lpk-radius-md); border: var(--lpk-stroke-hairline) dashed var(--lpk-color-border-default); font: var(--lpk-type-small); color: var(--lpk-color-text-secondary); }
.fd-week__note--off { background: repeating-linear-gradient(45deg, var(--lpk-color-bg-sunken) 0 6px, transparent 6px 12px); }
.fd-week__empty { padding: var(--lpk-space-4) 0; }
@media (max-width: 767px) {
  .fd-day-head__tools .fd-viewswitch { grid-column: 1 / -1; grid-row: 2; justify-self: start; }
  .fd-day-head__tools .fd-viewswitch ~ .fd-select { grid-row: 3; }
  .fd-day-head__tools .fd-viewswitch ~ [data-booking-badge] { grid-row: 4; }
}
@media (max-width: 767px) { .fd-week__staff { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 2px; } .fd-week__chip { flex: none; } }
@media (max-width: 380px) { .fd-week__item { grid-template-columns: minmax(56px, auto) minmax(0, 1fr); gap: var(--lpk-space-2); } }
/* wide screens: the grid; below 1100 px (phones, tablets upright, the side bar taking room) the strip and the list */
@media (min-width: 1100px) { .fd-week__wide { display: block; } .fd-week__phone { display: none; } }
/* ── #/features (screens/features.js): the Features hub. Tokens only; square icon wells and tags, no rounded-over-rounded ── */
.fd-feature-lead {
  display: grid;
  gap: var(--lpk-space-1);
  max-width: 64ch;
}
.fd-feature-lead__meta {
  font: var(--lpk-type-small);
  color: var(--lpk-color-text-secondary);
}

.fd-features {
  display: grid;
  gap: var(--lpk-space-4);
  grid-template-columns: 1fr;
  align-items: start;
}
@media (min-width: 900px) {
  .fd-features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.fd-feature {
  display: grid;
  gap: var(--lpk-space-3);
  align-content: start;
  padding: var(--lpk-space-5);
  background: var(--lpk-color-bg-surface);
  border: var(--lpk-stroke-hairline) solid var(--lpk-color-border-subtle);
  border-radius: var(--lpk-radius-lg);
}
.fd-feature--attention {
  border-color: var(--lpk-color-border-strong);
}
.fd-feature--soon {
  background: var(--lpk-color-bg-page);
}

.fd-feature__top {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--lpk-space-3);
  align-items: start;
}
.fd-feature__icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  flex: none;
  background: var(--lpk-color-bg-sunken);
  color: var(--lpk-color-text-primary);
  border-radius: var(--lpk-radius-sm); /* square well, not a circle */
}
.fd-feature__icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.fd-feature--soon .fd-feature__icon {
  color: var(--lpk-color-text-secondary);
}

.fd-feature__title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--lpk-space-2);
  min-width: 0;
}
.fd-feature__title {
  margin: 0;
  font: var(--lpk-type-title);
  letter-spacing: var(--lpk-tracking-title);
  color: var(--lpk-color-text-primary);
}
.fd-feature__line {
  margin: 0;
  font: var(--lpk-type-body);
  color: var(--lpk-color-text-secondary);
  max-width: 46ch;
}
.fd-feature__line--attention {
  color: var(--lpk-color-text-primary);
}

.fd-feature__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--lpk-space-2);
}
.fd-feature__actions:empty { display: none; }
@media (max-width: 767px) {
  .fd-feature__actions .lpk-btn { min-height: 44px; }
}

.fd-feature__details {
  border-top: var(--lpk-stroke-hairline) solid var(--lpk-color-border-subtle);
  padding-top: var(--lpk-space-3);
  display: grid;
  gap: var(--lpk-space-3);
}
.fd-feature__details > summary {
  list-style: none;
  cursor: pointer;
  font: var(--lpk-type-small);
  font-weight: 700;
  color: var(--lpk-color-link);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: var(--lpk-space-2);
  width: fit-content;
}
.fd-feature__details > summary::-webkit-details-marker { display: none; }
.fd-feature__details > summary::before {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
  transition: transform var(--lpk-duration-fast) var(--lpk-ease-out);
}
.fd-feature__details[open] > summary::before {
  transform: rotate(45deg);
}
.fd-feature__details-body {
  display: grid;
  gap: var(--lpk-space-3);
}
.fd-feature__details-body p,
.fd-feature__details-body li {
  margin: 0;
  font: var(--lpk-type-small);
  color: var(--lpk-color-text-secondary);
}
.fd-feature__who {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: var(--lpk-space-2);
}
.fd-feature__who li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--lpk-space-2);
  align-items: start;
}
.fd-who {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 0 8px;
  font: var(--lpk-type-label);
  letter-spacing: var(--lpk-tracking-label);
  text-transform: uppercase;
  color: var(--lpk-color-text-primary);
  background: var(--lpk-color-bg-sunken);
  border-radius: var(--lpk-radius-sm); /* not a pill, avoids a crescent against the card */
  white-space: nowrap;
}

/* Guided sub-screens */
.fd-guide { display: grid; gap: var(--lpk-space-4); max-width: 640px; }
.fd-back {
  display: inline-flex;
  align-items: center;
  gap: var(--lpk-space-2);
  min-height: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--lpk-color-link);
  font: var(--lpk-type-small);
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
}
.fd-back svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.fd-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: var(--lpk-space-3);
}
.fd-steps li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--lpk-space-3);
  padding: var(--lpk-space-4);
  background: var(--lpk-color-bg-surface);
  border: var(--lpk-stroke-hairline) solid var(--lpk-color-border-subtle);
  border-radius: var(--lpk-radius-md);
}
.fd-steps li.is-current {
  border-color: var(--lpk-color-border-strong);
}
.fd-steps li.is-done {
  border-color: var(--lpk-color-border-subtle);
}
.fd-step-num {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: var(--lpk-radius-sm);
  background: var(--lpk-color-bg-sunken);
  color: var(--lpk-color-text-primary);
  font: var(--lpk-type-small);
  font-weight: 700;
}
.fd-steps li.is-done .fd-step-num {
  background: var(--lpk-color-success-subtle);
  color: var(--lpk-color-success-text);
}
.fd-step-body { display: grid; gap: var(--lpk-space-1); min-width: 0; }
.fd-step-body h2 {
  margin: 0;
  font: var(--lpk-type-body);
  font-weight: 700;
}
.fd-step-body p { margin: 0; color: var(--lpk-color-text-secondary); }
.fd-linkbox {
  margin: 0;
  padding: var(--lpk-space-2) var(--lpk-space-3);
  border-radius: var(--lpk-radius-sm);
  background: var(--lpk-color-bg-sunken);
  color: var(--lpk-color-text-primary);
  overflow-wrap: anywhere;
  user-select: all;
  font: var(--lpk-type-small);
}

@media (prefers-reduced-motion: reduce) {
  .fd-feature__details > summary::before { transition: none; }
}

/* Location switcher in the Features header */
.fd-loc-picker { display: grid; gap: 4px; justify-items: end; }
.fd-loc-picker label { font: var(--lpk-type-label); letter-spacing: var(--lpk-tracking-label); text-transform: uppercase; color: var(--lpk-color-text-secondary); }
.fd-loc-picker select {
  min-height: 44px;
  padding: 0 var(--lpk-space-4);
  font: var(--lpk-type-small);
  font-weight: 700;
  color: var(--lpk-color-text-primary);
  background: var(--lpk-color-bg-surface);
  border: var(--lpk-stroke-hairline) solid var(--lpk-color-border-strong);
  border-radius: var(--lpk-radius-md);
}

/* General request — compact, closed by default */
.fd-request {
  border-top: var(--lpk-stroke-hairline) solid var(--lpk-color-border-subtle);
  padding-top: var(--lpk-space-3);
}
.fd-request > summary {
  list-style: none;
  cursor: pointer;
  font: var(--lpk-type-small);
  font-weight: 700;
  color: var(--lpk-color-link);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.fd-request > summary::-webkit-details-marker { display: none; }
.fd-request__body {
  display: grid;
  gap: var(--lpk-space-3);
  max-width: 36rem;
  padding-top: var(--lpk-space-2);
}
.fd-request .lpk-field { max-width: none; }

/* Operator interest table */
.fd-op-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--lpk-color-bg-surface);
  border: var(--lpk-stroke-hairline) solid var(--lpk-color-border-subtle);
  border-radius: var(--lpk-radius-md);
  overflow: hidden;
}
.fd-op-table th, .fd-op-table td {
  text-align: left;
  padding: var(--lpk-space-3) var(--lpk-space-4);
  border-bottom: var(--lpk-stroke-hairline) solid var(--lpk-color-border-subtle);
  vertical-align: top;
}
.fd-op-table th {
  font: var(--lpk-type-label);
  letter-spacing: var(--lpk-tracking-label);
  text-transform: uppercase;
  color: var(--lpk-color-text-secondary);
  background: var(--lpk-color-bg-sunken);
}
.fd-op-table tr:last-child td { border-bottom: 0; }
.fd-op-table td { font: var(--lpk-type-small); }
.fd-op-notes { margin: 0; padding-left: 1.1em; color: var(--lpk-color-text-secondary); }

@media (max-width: 899px) {
  .fd-hub .fd-screen-head {
    flex-direction: column !important;
    align-items: stretch !important;
    flex-wrap: nowrap !important;
  }
  .fd-hub { overflow-x: hidden; max-width: 100%; }
  .fd-loc-picker {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 8px 12px;
    width: 100%;
    flex-basis: 100%;
    margin-top: 4px;
  }
  .fd-loc-picker select { width: 100%; flex: 1 1 100%; }
}

/* ── #/settings/import (screens/vagaro-import.js): files → check → import; the switch behind Details ── */
.fd-imp .lpk-card { max-width: 860px; }
.fd-imp__into { margin: 0; }
.fd-imp .fd-imp__title { font: var(--lpk-type-title); letter-spacing: var(--lpk-tracking-title); margin: 0; }
.fd-imp__list-help { margin: 0; }
.fd-imp__input { max-width: 100%; box-sizing: border-box; padding: var(--lpk-space-2); min-height: 48px; }
.fd-imp__files, .fd-imp__kinds, .fd-imp__checks, .fd-imp__rows, .fd-imp__notes { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--lpk-space-2); }
.fd-imp__file { display: grid; grid-template-columns: minmax(0, 1fr) minmax(160px, 220px) auto; gap: var(--lpk-space-3); align-items: center; padding: var(--lpk-space-3) var(--lpk-space-4); border: var(--lpk-stroke-hairline) solid var(--lpk-color-border-subtle); border-radius: var(--lpk-radius-md); background: var(--lpk-color-bg-surface); }
.fd-imp__file-name { display: grid; gap: 2px; min-width: 0; }
.fd-imp__file-name .lpk-field__error, .fd-imp__file-name .lpk-field__help { margin: 0; }
.fd-imp__name { font-weight: 600; overflow-wrap: anywhere; }
.fd-imp__size { font: var(--lpk-type-small); font-variant-numeric: tabular-nums; }
.fd-imp__file .fd-select { width: 100%; min-width: 0; }
.fd-imp__kind, .fd-imp__check { display: flex; flex-wrap: wrap; align-items: center; gap: var(--lpk-space-2) var(--lpk-space-3); padding: var(--lpk-space-3) var(--lpk-space-4); border: var(--lpk-stroke-hairline) solid var(--lpk-color-border-subtle); border-radius: var(--lpk-radius-md); background: var(--lpk-color-bg-surface); }
.fd-imp__kind-name { font-weight: 600; min-width: 120px; }
.fd-imp__chips { display: flex; flex-wrap: wrap; gap: var(--lpk-space-2); }
.fd-imp__chips .lpk-tag { font-variant-numeric: tabular-nums; }
.fd-imp__check { align-items: flex-start; flex-wrap: nowrap; }
.fd-imp__check .lpk-tag { flex: none; min-width: 52px; justify-content: center; }
.fd-imp__check-text { display: grid; gap: 2px; min-width: 0; overflow-wrap: anywhere; }
.fd-imp__check-title { font-weight: 600; }
.fd-imp__blocking { font: var(--lpk-type-small); color: var(--lpk-color-text-secondary); }
.fd-imp__summary { margin: 0; font-weight: 600; }
.fd-imp__summary .fd-muted { font-weight: 400; }
.fd-imp__h3 { font: var(--lpk-type-small); font-weight: 700; margin: 0; }
.fd-imp__row { display: grid; grid-template-columns: minmax(150px, 210px) minmax(0, 1fr); gap: var(--lpk-space-3); padding: var(--lpk-space-2) 0; border-bottom: var(--lpk-stroke-hairline) solid var(--lpk-color-border-subtle); font: var(--lpk-type-small); }
.fd-imp__row-where { color: var(--lpk-color-text-secondary); font-variant-numeric: tabular-nums; }
.fd-imp__row-what { display: grid; gap: 2px; min-width: 0; overflow-wrap: anywhere; }
.fd-imp__row-label { color: var(--lpk-color-text-primary); }
.fd-imp__notes li { font: var(--lpk-type-small); color: var(--lpk-color-text-secondary); overflow-wrap: anywhere; }
.fd-imp__more > summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; font: var(--lpk-type-small); font-weight: 600; color: var(--lpk-color-link); }
.fd-imp__more > summary:focus-visible { outline: var(--lpk-stroke-focus) solid var(--lpk-color-focus); outline-offset: 2px; }
.fd-imp__more[open] > summary { margin-bottom: var(--lpk-space-2); }
.fd-imp__opts { gap: var(--lpk-space-3); }
.fd-imp .fd-switch { flex-wrap: nowrap; align-items: flex-start; }
.fd-imp .fd-switch > span { min-width: 0; padding-top: 1px; }
.fd-imp .fd-switch input { flex: none; }
.fd-imp__caption { text-align: left; font: var(--lpk-type-small); color: var(--lpk-color-text-secondary); padding-bottom: var(--lpk-space-2); }
.fd-imp__phase { margin: 0; font-weight: 600; }
.fd-imp section[tabindex="-1"]:focus { outline: none; }
.fd-imp section[tabindex="-1"]:focus-visible { outline: var(--lpk-stroke-focus) solid var(--lpk-color-focus); outline-offset: 2px; }
@media (max-width: 600px) {
  .fd-imp__file { grid-template-columns: minmax(0, 1fr) auto; }
  .fd-imp__file .fd-select { grid-column: 1 / -1; grid-row: 2; }
  .fd-imp__row { grid-template-columns: 1fr; gap: 2px; }
  .fd-imp__kind-name { min-width: 0; flex-basis: 100%; }
