/* Business screens: Today, Pipeline, the client panel and the Add a past client dialog.
 * Look: the website (jayphotography.com.au). Structure and behaviour: the approved v4 prototype.
 * Type scale: tokens only (label 13 / body 18 / body-lg 20 / h3 24 / h2 32 / h1 44 / display).
 * --fs-label is for uppercase letterspaced labels, chips, pills and buttons only; every sentence
 * is --fs-body (18px) or larger. Hierarchy inside a card comes from weight, colour and the three
 * families (Anton display / Archivo body / Plex Mono data), never from a third size.
 * Colour: theme tokens (style.css), the five --stage-* tokens (a stage wears the same colour on
 * every surface), and the --biz-* tokens below (status tones, avatar tones). */

:root {
  --biz-r: 2px;
  --biz-edge: var(--hairline);
  --biz-col-bg: transparent;
  --biz-inset: var(--surface-2);
  --biz-inset-hover: color-mix(in srgb, var(--orange) 10%, var(--surface-2));
  --biz-lift: var(--lift);
  /* status tones (pills, age badges): orange for "waiting", stage blue for "sent", good/danger */
  --biz-bad: var(--danger);        --biz-bad-bg: rgba(179, 38, 30, 0.10);
  --biz-warn: var(--accent-ink);   --biz-warn-bg: rgba(245, 153, 31, 0.16);
  --biz-info: var(--stage-quoted); --biz-info-bg: rgba(42, 85, 214, 0.10);
  --biz-ok: var(--good);           --biz-ok-bg: var(--good-bg);
  /* avatar tones: the site's family (orange, periwinkle, lavender, teal, cream, coral); ink initials on each */
  --biz-av-1: #F5991F; --biz-av-2: #7C9CFF; --biz-av-3: #B794FF;
  --biz-av-4: #3CCFC0; --biz-av-5: #F2EEE3; --biz-av-6: #FF8A80;
}
:root:not([data-theme="light"]) {
  --biz-bad-bg: rgba(255, 138, 128, 0.16);
  --biz-info-bg: rgba(124, 156, 255, 0.18);
  --biz-inset-hover: #22264A;
}

/* ---------- shared pieces ---------- */
.biz-btn-sm.btn { min-height: var(--tap); padding: 0 18px; }

/* status pills: one look on the board, Today and the panel */
.biz-pill.chip { white-space: nowrap; border-color: transparent; }
.biz-pill.is-bad { background: var(--biz-bad-bg); color: var(--biz-bad); }
.biz-pill.is-warn { background: var(--biz-warn-bg); color: var(--biz-warn); }
.biz-pill.is-info { background: var(--biz-info-bg); color: var(--biz-info); }
.biz-pill.is-good { background: var(--biz-ok-bg); color: var(--biz-ok); }
.biz-pill.is-muted { background: var(--biz-inset); color: var(--text-2); }

/* avatars: a brand tone per client, ink initials, a hairline ring */
.biz-avatar {
  flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--biz-av-2); color: var(--ink); box-shadow: inset 0 0 0 1px rgba(11, 13, 26, 0.18);
  font: 600 var(--fs-body)/1 var(--font); letter-spacing: 0.02em;
}
.biz-avatar.is-tone-1 { background: var(--biz-av-1); }
.biz-avatar.is-tone-2 { background: var(--biz-av-2); }
.biz-avatar.is-tone-3 { background: var(--biz-av-3); }
.biz-avatar.is-tone-4 { background: var(--biz-av-4); }
.biz-avatar.is-tone-5 { background: var(--biz-av-5); }
.biz-avatar.is-tone-6 { background: var(--biz-av-6); }

/* The board needs the full content width, not the 1240px reading width. */
#view-root:has(> .biz-pipeline) { max-width: none; }

/* ---------- occasion filters (local only) ---------- */
.biz-filters { display: flex; gap: 8px; flex-wrap: wrap; margin: -6px 0 28px; }
.biz-filter.btn {
  min-height: var(--tap); padding: 0 16px; gap: 10px;
  background: transparent; color: var(--text-2); border: 1px solid var(--hairline); box-shadow: none;
}
.biz-filter.btn:hover { color: var(--text); border-color: var(--text); }
.biz-filter.btn[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.biz-filter-n { font-family: var(--font-mono); font-weight: 400; letter-spacing: 0.04em; font-variant-numeric: tabular-nums; opacity: 0.7; }

/* ---------- board ---------- */
.biz-board {
  --col-w: 264px;
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(var(--col-w), 1fr);
  gap: 16px; align-items: stretch;
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding: 0 4px;
  padding: 4px var(--gutter) 24px 4px;
}
.biz-board:focus { outline: none; }
.biz-board:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; }
@media (min-width: 1024px) { .biz-board { padding-right: 48px; } }

/* The wrapper bleeds to the window's right edge, so a board wider than the screen is cut
   there, and carries the edge fades (toggled from the scroll position, see edgeFades). */
.biz-board-wrap { position: relative; margin: 0 calc(var(--gutter) * -1) 0 -4px; }
@media (min-width: 1024px) { .biz-board-wrap { margin-right: -48px; } }
.biz-board-wrap::before, .biz-board-wrap::after {
  content: ""; position: absolute; top: 0; bottom: 24px; z-index: 2; width: 72px; pointer-events: none;
  opacity: 0; transition: opacity var(--dur) var(--ease);
}
.biz-board-wrap::before { left: 0; background: linear-gradient(to right, var(--bg), transparent); }
.biz-board-wrap::after { right: 0; background: linear-gradient(to left, var(--bg) 8%, transparent); }
.biz-board-wrap.fade-left::before, .biz-board-wrap.fade-right::after { opacity: 1; }

/* Instruction line: the drag wording only where there is a mouse. */
.biz-hint-coarse { display: none; }
@media (pointer: coarse), (hover: none) {
  .biz-hint-fine { display: none; }
  .biz-hint-coarse { display: inline; }
}
/* a column: a 1px frame with its stage colour as a 3px rule along the top */
.biz-col {
  display: flex; flex-direction: column; min-width: 0; min-height: 420px; scroll-snap-align: start;
  padding: 0 12px 12px; border-radius: var(--biz-r);
  background: var(--biz-col-bg); border: 1px solid var(--hairline); border-top: 3px solid var(--stage);
  transition: background var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.biz-col.is-over { background: color-mix(in srgb, var(--stage) 10%, transparent); box-shadow: inset 0 0 0 2px var(--stage); }
.biz-col-head { display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 4px 4px 2px; }
.biz-col-dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--stage); }
.biz-col-title.label { margin: 0; color: var(--text); }
.biz-col-count {
  margin-left: auto; color: var(--text-2);
  font: 400 var(--fs-label)/1 var(--font-mono); letter-spacing: 0.08em; font-variant-numeric: tabular-nums;
}
.biz-col-list { display: flex; flex-direction: column; gap: 10px; flex: 1; }
.biz-col-empty {
  display: grid; place-items: center; flex: 1; min-height: 140px; padding: 20px 12px; text-align: center;
  border: 1px dashed color-mix(in srgb, var(--text) 22%, transparent); border-radius: var(--biz-r);
  color: var(--text-2); font-size: var(--fs-body); line-height: 1.35;
}

/* ---------- card ---------- */
.biz-card {
  position: relative; border-radius: var(--biz-r); background: var(--surface);
  border: 1px solid var(--hairline);
  cursor: grab; transition: transform 350ms var(--ease), border-color 350ms var(--ease), box-shadow 350ms var(--ease), opacity var(--dur) var(--ease);
}
.biz-card:hover { transform: translateY(-3px); border-color: var(--accent-ink); box-shadow: var(--biz-lift); }
.biz-card.is-dragging { opacity: 0.35; transform: scale(0.97); }
.biz-card-main { display: flex; flex-direction: column; gap: 14px; padding: 16px; border-radius: inherit; outline-offset: 2px; }
.biz-card-main:focus-visible { outline: 3px solid var(--accent); }
.biz-card-head { display: flex; align-items: center; gap: 12px; }
.biz-card-who { min-width: 0; }
.biz-card-name {
  min-width: 0; font-size: var(--fs-body); font-weight: 600; line-height: 1.25; color: var(--text); overflow-wrap: anywhere;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden;
}
.biz-card-name.is-unnamed { color: var(--text-2); font-weight: 400; font-style: italic; }
.biz-card-meta { font-size: var(--fs-body); font-weight: 400; line-height: 1.35; color: var(--text-2); overflow-wrap: anywhere; }
.biz-card-foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.biz-card-src.label { margin-left: auto; color: var(--text-2); letter-spacing: 0.12em; }
.biz-card-foot .biz-card-src.label:only-child { margin-left: 0; }

/* Move to: the touch and keyboard path. Shown when the card holds focus, always on touch. */
.biz-move {
  display: flex; align-items: center; gap: 10px; padding: 0 16px; max-height: 0; overflow: hidden; opacity: 0;
  border-top: 1px solid transparent;
  transition: max-height var(--dur) var(--ease), opacity var(--dur) var(--ease), padding var(--dur) var(--ease);
}
.biz-card:focus-within .biz-move { max-height: 80px; opacity: 1; padding: 10px 16px 14px; border-top-color: var(--hairline); }
.biz-move-label { flex: none; font: 500 var(--fs-label)/1 var(--font-mono); letter-spacing: var(--ls-label); text-transform: uppercase; color: var(--text-2); }
.biz-move-select {
  flex: 1; min-width: 0; min-height: var(--tap); padding: 0 12px;
  border: 1px solid var(--hairline); border-radius: var(--biz-r); background: var(--field-bg); color: var(--text);
  font: 500 var(--fs-body)/1.2 var(--font); cursor: pointer;
}
.biz-move-select:focus-visible { outline: 3px solid var(--accent); outline-offset: 1px; }
@media (pointer: coarse) {
  .biz-card { cursor: default; }
  .biz-move { max-height: none; opacity: 1; padding: 10px 16px 14px; border-top-color: var(--hairline); }
}

.biz-more { margin-top: 8px; }
.biz-more .btn[aria-disabled="true"] { opacity: 0.45; cursor: progress; }

/* ---------- empty account ---------- */
.biz-empty { padding: 56px 24px 48px; gap: 10px; border-top: 3px solid var(--orange); }
.biz-empty .state-title { font-size: var(--fs-h2); }
.biz-empty .lede { max-width: 46ch; }
.biz-stage-strip { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 0; margin: 18px 0 10px; padding: 0; list-style: none; }
.biz-stage-step { display: flex; align-items: center; gap: 8px; padding: 8px 14px; }
.biz-stage-step .label { color: var(--text); }
.biz-stage-step + .biz-stage-step::before { content: ""; width: 20px; height: 1px; margin-right: 6px; background: color-mix(in srgb, var(--text) 22%, transparent); }
@media (max-width: 560px) {
  .biz-stage-strip { flex-direction: column; align-items: flex-start; flex-wrap: nowrap; gap: 0; margin: 16px auto 8px; }
  .biz-stage-step { position: relative; }
  .biz-stage-step + .biz-stage-step::before { position: absolute; left: 18px; top: -10px; width: 1px; height: 18px; margin: 0; }
}

/* ---------- toast (shared by the business screens): ink bar, orange rule ---------- */
.toast-region {
  position: fixed; left: 50%; bottom: 24px; z-index: 60; transform: translateX(-50%);
  width: max-content; max-width: calc(100vw - 32px); pointer-events: none;
}
.toast {
  display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 16px; pointer-events: auto;
  border-radius: var(--biz-r); background: var(--ink); color: var(--cream); border-left: 4px solid var(--orange); box-shadow: 0 22px 50px rgba(0, 0, 0, 0.45);
  animation: biz-toast-in 320ms var(--ease);
}
.toast-mark { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--orange); color: var(--ink); }
.toast--error .toast-mark { background: #FF8A80; }
.toast-mark .icon { stroke-width: 2.5; }
.toast-text { min-width: 0; font-size: var(--fs-body); font-weight: 500; line-height: 1.3; overflow-wrap: anywhere; }
.toast-action, .toast-close {
  flex: none; min-height: var(--tap); border: 0; border-radius: var(--biz-r); cursor: pointer; color: inherit;
  background: rgba(242, 238, 227, 0.12); transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.toast-action { padding: 0 16px; font: 600 var(--fs-label)/1 var(--font); letter-spacing: var(--ls-ui); text-transform: uppercase; }
.toast-close { display: grid; place-items: center; width: var(--tap); padding: 0; background: transparent; }
.toast-action:hover, .toast-close:hover { background: rgba(242, 238, 227, 0.2); color: var(--orange); }
.toast-action:focus-visible, .toast-close:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
@keyframes biz-toast-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ---------- entrance (first visit of the session only) ---------- */
.biz-col.is-entering { animation: biz-rise 520ms var(--ease) both; animation-delay: calc(var(--i, 0) * 60ms); }
@keyframes biz-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- widths ---------- */
@media (max-width: 767px) {
  .biz-filters { flex-wrap: nowrap; overflow-x: auto; margin: -10px calc(var(--gutter) * -1) 8px; padding: 4px var(--gutter) 16px; scrollbar-width: none; }
  .biz-filters::-webkit-scrollbar { display: none; }
  .biz-filter.btn { flex: none; }
  .biz-board-wrap { margin: 0 calc(var(--gutter) * -1); }
  .biz-board-wrap::before, .biz-board-wrap::after { width: 32px; }
  .biz-board { grid-auto-columns: calc(100% - 44px); gap: 12px; padding: 4px var(--gutter) 20px; scroll-padding: 0 var(--gutter); }
  .biz-col { min-height: 280px; }
  .toast-region { left: var(--gutter); right: var(--gutter); bottom: 16px; transform: none; width: auto; max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  .biz-col, .biz-card, .biz-move, .biz-filter.btn, .toast-action, .biz-board-wrap::before, .biz-board-wrap::after { transition: none; }
  .biz-col.is-entering, .toast { animation: none; }
  .biz-card:hover { transform: none; }
}

/* ---------- Today ----------
 * Sizes: --fs-display the hero figure, --fs-h1 the number tiles, --fs-h3 card titles and the
 * ring and date-badge numbers, --fs-body-lg the hero's words, --fs-body every sentence,
 * --fs-label labels, chips and pills. Layout follows v4's bento: hero (8) + pipeline (4),
 * then needs (7) + tiles and shoots (5); one column on phones, hero first. */
.biz-today:focus { outline: none; }
.biz-today-grid { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); grid-template-areas: "hero" "needs" "side" "pipe"; }
.biz-hero { grid-area: hero; }
.biz-tpipe { grid-area: pipe; }
.biz-today-needs { grid-area: needs; }
.biz-today-side { grid-area: side; display: grid; gap: 18px; align-content: start; }
@media (min-width: 768px) {
  .biz-today-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-areas: "hero hero" "needs needs" "side pipe"; align-items: start; }
}
@media (min-width: 1280px) {
  .biz-today-grid {
    grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: stretch;
    grid-template-areas:
      "hero hero hero hero hero hero hero hero pipe pipe pipe pipe"
      "needs needs needs needs needs needs needs side side side side side";
  }
}

/* cards: the site's card (1px line, square) with a mono eyebrow heading */
.biz-tcard { min-width: 0; padding: 26px 28px 28px; border-radius: var(--biz-r); background: var(--surface); border: 1px solid var(--hairline); }
.biz-today-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.biz-today-panel-head h2, .biz-tcard > h2 {
  font-family: var(--font-display); font-weight: 400; text-transform: uppercase; letter-spacing: 0.02em; line-height: 1;
  font-size: var(--fs-h3); color: var(--text);
}
.biz-tcard > h2.label { font-family: var(--font-mono); font-weight: 500; font-size: var(--fs-label); letter-spacing: var(--ls-label); line-height: 1.2; color: var(--text-2); }
.biz-today-list { display: flex; flex-direction: column; gap: 10px; margin: 14px 0 0; padding: 0; list-style: none; }

/* hero: the site's hero treatment on Jay's own frame (admin/images/hero.jpg, 100 KB), the veil,
   viewfinder corners, Anton figure, mono chips */
.biz-hero {
  position: relative; overflow: hidden; isolation: isolate; min-width: 0; min-height: 360px;
  display: flex; flex-direction: column; padding: 34px 40px 30px; border-radius: var(--biz-r);
  color: var(--cream); background: var(--ink) url("../images/hero.jpg") center 30% / cover no-repeat;
  border: 1px solid #2A2E52;
}
.biz-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(11, 13, 26, 0.88) 0, rgba(11, 13, 26, 0.62) 42%, rgba(11, 13, 26, 0.18) 72%),
    linear-gradient(180deg, rgba(11, 13, 26, 0.5), rgba(11, 13, 26, 0.1) 26%, rgba(11, 13, 26, 0.2) 55%, rgba(11, 13, 26, 0.94));
}
/* the two "blob" spans from v4 become the four viewfinder corners (3px orange, 26px in) */
.biz-hero-blob {
  position: absolute; z-index: 0; pointer-events: none; inset: 18px; width: auto; height: auto; filter: none; opacity: 1; border-radius: 0;
  background: none; mix-blend-mode: normal;
}
.biz-hero-blob::before, .biz-hero-blob::after { content: ""; position: absolute; width: 26px; height: 26px; border: 3px solid var(--orange); }
.biz-hero-blob.is-a::before { left: 0; top: 0; border-right: 0; border-bottom: 0; }
.biz-hero-blob.is-a::after { right: 0; top: 0; border-left: 0; border-bottom: 0; }
.biz-hero-blob.is-b::before { left: 0; bottom: 0; border-right: 0; border-top: 0; }
.biz-hero-blob.is-b::after { right: 0; bottom: 0; border-left: 0; border-top: 0; }
.biz-hero-main { position: relative; min-width: 0; padding-right: 200px; }
.biz-hero-label.label { display: inline-flex; align-items: center; gap: 12px; color: var(--orange); letter-spacing: 0.3em; }
.biz-hero-label.label::before { content: ""; width: 34px; height: 2px; background: currentColor; flex: none; }
.biz-hero-big { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 16px; margin: 18px 0 20px; }
.biz-hero-n {
  font-family: var(--font-display); font-weight: 400; font-size: var(--fs-display); line-height: 0.95; letter-spacing: 0.01em; color: var(--cream);
  font-variant-numeric: tabular-nums; text-shadow: 0 2px 24px rgba(0, 0, 0, 0.4);
}
.biz-hero-words { font-size: var(--fs-body-lg); font-weight: 500; line-height: 1.3; color: var(--cream); text-shadow: 0 1px 12px rgba(0, 0, 0, 0.5); }
.biz-hero-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.biz-hero-chip.chip { background: var(--ink); color: var(--orange); border-color: transparent; letter-spacing: 0.14em; padding: 6px 10px; }

/* the next shoot, as days left in the 14-day window: a lens ring (orange arc, dashed inner ring) */
@property --biz-p { syntax: "<number>"; inherits: true; initial-value: 0; }
.biz-hero-ring { position: absolute; z-index: 1; top: 34px; right: 40px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.biz-hero-ring-dial { --biz-p: var(--fill, 0); position: relative; display: grid; place-items: center; width: 150px; height: 150px; border-radius: 50%; }
.biz-hero-ring-dial::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(var(--orange) calc(var(--biz-p) * 1turn), rgba(242, 238, 227, 0.22) 0);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px));
          mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px));
}
.biz-hero-ring-dial::after { content: ""; position: absolute; inset: 12px; border-radius: 50%; border: 1px dashed rgba(242, 238, 227, 0.35); }
.biz-hero.is-entering .biz-hero-ring-dial::before { animation: biz-ring 1.6s var(--ease) 0.2s both; }
@keyframes biz-ring { from { --biz-p: 0; } }
.biz-hero-ring-n { position: relative; font-family: var(--font-display); font-weight: 400; font-size: var(--fs-h2); line-height: 1; color: var(--cream); }
.biz-hero-ring-cap.label { color: var(--orange); letter-spacing: 0.24em; }

/* the next 14 days: one square slot per day, booked shoots raised in orange */
.biz-hero-days { position: relative; margin-top: auto; padding-top: 30px; }
.biz-hero-strip { display: grid; grid-template-columns: repeat(15, minmax(0, 1fr)); gap: 5px; align-items: end; height: 56px; margin: 0; padding: 0; list-style: none; }
.biz-hero-strip li { height: 8px; border-radius: 0; background: rgba(242, 238, 227, 0.28); }
.biz-hero-strip li:first-child { background: var(--cream); }
.biz-hero-strip li.is-shoot { height: 100%; background: var(--orange); box-shadow: 0 8px 22px rgba(245, 153, 31, 0.45); }
.biz-hero.is-entering .biz-hero-strip li.is-shoot { animation: biz-grow 900ms var(--ease) 0.35s both; transform-origin: bottom; }
@keyframes biz-grow { from { transform: scaleY(0.15); } }
.biz-hero-strip-ends { display: flex; justify-content: space-between; margin-top: 12px; }
.biz-hero-strip-ends .label { color: rgba(242, 238, 227, 0.75); }

/* pipeline card */
.biz-kpi { display: flex; flex-direction: column; gap: 4px; margin-top: 12px; }
.biz-kpi-n { font-family: var(--font-display); font-weight: 400; font-size: var(--fs-h1); line-height: 1; letter-spacing: 0.01em; color: var(--text); font-variant-numeric: tabular-nums; }
.biz-kpi-sub { color: var(--text-2); }
.biz-kpi-note { font-weight: 500; color: var(--text-2); }
.biz-kpi-note.is-bad { color: var(--biz-bad); }
.biz-kpi-note.is-good { color: var(--biz-ok); }
.biz-tpipe-bar { display: flex; gap: 3px; height: 14px; margin: 22px 0 14px; }
.biz-tpipe-bar i { display: block; flex-basis: 0; min-width: 12px; border-radius: 0; background: var(--stage); }
.biz-tpipe-legend { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; margin: 0; padding: 0; list-style: none; }
.biz-tpipe-key {
  display: flex; align-items: center; gap: 10px; min-height: var(--tap); margin: 0 -8px; padding: 0 8px;
  border-radius: var(--biz-r); color: inherit; text-decoration: none; transition: background var(--dur) var(--ease);
}
.biz-tpipe-key:hover { background: var(--biz-inset); }
.biz-tpipe-key .biz-col-dot { width: 10px; height: 10px; border-radius: 0; }
.biz-tpipe-name { font-weight: 500; }
.biz-tpipe-n { margin-left: auto; font-family: var(--font-mono); font-weight: 500; font-variant-numeric: tabular-nums; }
.biz-tpipe-n.is-zero { color: var(--text-2); font-weight: 400; }

/* number tiles */
.biz-ttiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.biz-ttile { display: flex; flex-direction: column; gap: 10px; transition: transform 400ms var(--ease), border-color 400ms var(--ease), box-shadow 400ms var(--ease); }
.biz-ttile:hover { transform: translateY(-3px); border-color: var(--accent-ink); box-shadow: var(--biz-lift); }

/* shared row text */
.biz-today-text { min-width: 0; }
.biz-today-name {
  font-size: var(--fs-body); font-weight: 600; line-height: 1.3; color: var(--text); overflow-wrap: anywhere;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden;
}
.biz-today-name.is-unnamed { color: var(--text-2); font-weight: 400; font-style: italic; }
.biz-today-sub { font-size: var(--fs-body); font-weight: 400; line-height: 1.35; color: var(--text-2); overflow-wrap: anywhere; }

/* Needs you today: one row per job, its age in a square mono badge */
.biz-today-row {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 4px 16px;
  padding: 14px 16px; border-radius: var(--biz-r); background: var(--biz-inset); border: 1px solid transparent;
  transition: opacity 500ms var(--ease), background 500ms var(--ease), border-color 500ms var(--ease), transform 500ms var(--ease);
}
.biz-today-row:hover { background: var(--biz-inset-hover); border-color: var(--accent-ink); transform: translateX(4px); }
.biz-today-row:focus { outline: none; }
.biz-today-row:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.biz-todo-age, .biz-todo-ok {
  flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: var(--biz-r);
  font: 500 var(--fs-body)/1 var(--font-mono); font-variant-numeric: tabular-nums;
}
.biz-todo-age.is-bad { background: var(--biz-bad-bg); color: var(--biz-bad); box-shadow: inset 0 0 0 1px var(--biz-bad); }
.biz-todo-age.is-warn { background: var(--biz-warn-bg); color: var(--biz-warn); box-shadow: inset 0 0 0 1px var(--orange); }
.biz-todo-ok { border-radius: 50%; background: var(--good); color: var(--surface); }
.biz-todo-title {
  font-size: var(--fs-body); font-weight: 600; line-height: 1.3; color: var(--text); overflow-wrap: anywhere;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden;
}
.biz-todo-name.is-unnamed { color: var(--text-2); font-weight: 400; font-style: italic; }
.biz-today-act { min-height: var(--tap); }
.biz-today-row.is-done { opacity: 0.55; }
.biz-today-row.is-done .biz-todo-title { text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--text) 45%, transparent); }

/* All clear */
.biz-today-clear { display: flex; align-items: center; gap: 16px; margin-top: 12px; padding: 18px; border-radius: var(--biz-r); background: var(--biz-inset); }

/* Upcoming shoots (Booked only): date badge, who, when */
.biz-today-shoots .biz-today-list { gap: 0; margin-top: 4px; }
.biz-today-shoot { display: flex; align-items: center; gap: 18px; padding: 14px 0; border-top: 1px solid var(--hairline); }
.biz-today-shoot:first-child { border-top: 0; }
.biz-today-date {
  flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  width: 62px; padding: 8px 0; border-radius: var(--biz-r); background: var(--ink); color: var(--cream);
}
.biz-today-date .label { color: var(--orange); line-height: 1.2; letter-spacing: 0.14em; }
.biz-today-day { font-family: var(--font-display); font-weight: 400; font-size: var(--fs-h3); line-height: 1; color: var(--cream); font-variant-numeric: tabular-nums; }
.biz-today-none { padding: 10px 0 2px; }

/* entrance (first visit of the session only) */
.biz-today-grid > .is-entering { animation: biz-rise 700ms var(--ease) both; animation-delay: calc(var(--i, 0) * 60ms); }

/* tablet: the hero keeps its ring; phone: the ring goes, the hero tightens */
@media (max-width: 767px) {
  .biz-hero { min-height: 0; padding: 26px 22px 22px; }
  .biz-hero-blob { inset: 12px; }
  .biz-hero-blob::before, .biz-hero-blob::after { width: 18px; height: 18px; border-width: 2px; }
  .biz-hero-main { padding-right: 0; }
  .biz-hero-ring { display: none; }
  .biz-hero-big { margin: 12px 0 14px; }
  .biz-hero-strip { height: 44px; gap: 4px; }
  .biz-tcard { padding: 22px 20px; }
  .biz-ttiles { gap: 12px; }
  .biz-ttile.biz-tcard { padding: 20px; }
  .biz-today-row { grid-template-columns: auto minmax(0, 1fr); align-items: start; padding: 14px; gap: 4px 14px; }
  .biz-today-row:hover { transform: none; }
  .biz-today-act, .biz-today-done-chip { grid-column: 2; justify-self: start; margin-top: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  .biz-today-row, .biz-tpipe-key, .biz-ttile { transition: none; }
  .biz-today-grid > .is-entering, .biz-hero.is-entering .biz-hero-ring-dial::before, .biz-hero.is-entering .biz-hero-strip li.is-shoot { animation: none; }
  .biz-today-row:hover, .biz-ttile:hover { transform: none; }
}

/* ---------- client panel ----------
 * Sizes: --fs-h2 the client's name (--fs-h3 on phones), --fs-h3 section titles, --fs-body
 * the avatar initials, every value, title and sentence, --fs-label the Stage label, pills and
 * the stage names on the switch. Label and value differ by weight and colour, not size.
 * Colour: the client's avatar tone (same as on the board), --stage-* for the current stage
 * and the timeline's "now" dot, the shared status pills. */
html.biz-panel-lock, html.biz-panel-lock body { overflow: hidden; }

.biz-panel-layer { position: fixed; inset: 0; z-index: 55; }
.biz-scrim {
  position: absolute; inset: 0; opacity: 0;
  background: rgba(11, 13, 26, 0.55);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  transition: opacity 400ms var(--ease);
}
.biz-panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(560px, 100vw);
  display: flex; flex-direction: column; overflow: hidden; box-sizing: border-box;
  background: var(--surface); color: var(--text);
  border-left: 1px solid var(--hairline); box-shadow: -30px 0 80px rgba(0, 0, 0, 0.35);
  transform: translateX(100%); transition: transform 600ms var(--ease);
}
.biz-panel::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--stage, var(--orange)); z-index: 1; }
.biz-panel-layer.is-open .biz-scrim { opacity: 1; }
.biz-panel-layer.is-open .biz-panel { transform: none; }
.biz-panel:focus { outline: none; }
.biz-panel .biz-panel-grab { display: none; }

.biz-panel-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: start; gap: 18px; padding: 30px 24px 20px 32px; }
.biz-panel::before { background: var(--orange); }
.biz-panel-avatar.biz-avatar { width: 64px; height: 64px; font-size: var(--fs-h3); letter-spacing: 0; }
.biz-panel-who { min-width: 0; padding-top: 2px; }
.biz-panel-name {
  font-family: var(--font-display); font-weight: 400; text-transform: uppercase; font-size: var(--fs-h2); line-height: 1; letter-spacing: 0.01em; color: var(--text);
  overflow-wrap: anywhere; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden;
}
.biz-panel-name.is-unnamed { font-family: var(--font); text-transform: none; color: var(--text-2); font-weight: 400; font-style: italic; }
.biz-panel-meta { margin-top: 8px; font-size: var(--fs-body); line-height: 1.35; color: var(--text-2); overflow-wrap: anywhere; }
.biz-panel-status { margin-top: 12px; }
.biz-panel-x {
  display: grid; place-items: center; width: var(--tap); height: var(--tap); padding: 0; border: 1px solid var(--hairline); border-radius: var(--biz-r);
  background: transparent; color: var(--text); cursor: pointer;
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease), transform 300ms var(--ease);
}
.biz-panel-x:hover { border-color: var(--accent-ink); color: var(--accent-ink); transform: rotate(90deg); }
.biz-panel-x:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.biz-panel-x .icon, .biz-panel-gal-ic .icon, .biz-tl-act .icon { fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

.biz-panel-body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; gap: 30px; padding: 8px 32px 36px; }
.biz-panel-sec-h.label { margin: 0 0 10px; }
.biz-panel-sec-h.is-title {
  margin: 0 0 12px; font-family: var(--font-display); font-weight: 400; text-transform: uppercase; font-size: var(--fs-h3); line-height: 1; letter-spacing: 0.02em; color: var(--text);
  display: flex; align-items: center; gap: 14px;
}
.biz-panel-sec-h.is-title::after { content: ""; flex: 1; height: 1px; background: var(--hairline); }

/* stage switch: five square steps; the current stage is filled in its colour, ink text */
.biz-track { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; margin: 0; padding: 0; list-style: none; border: 1px solid var(--hairline); border-radius: var(--biz-r); overflow: hidden; }
.biz-track li + li { border-left: 1px solid var(--hairline); }
.biz-track-btn {
  display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; min-height: var(--tap);
  padding: 0 4px; border: 0; background: none; color: var(--text-2); cursor: pointer;
  transition: background 400ms var(--ease), color 400ms var(--ease);
}
.biz-track-bar { display: none; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--stage); }
.biz-track-name { font: 600 var(--fs-label)/1 var(--font); letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap; }
.biz-track-n { display: none; }
.is-done .biz-track-btn { color: var(--text); }
.is-current .biz-track-btn { background: var(--stage); color: var(--ink); cursor: default; }
.biz-track-btn:hover { color: var(--text); background: var(--biz-inset); }
.is-current .biz-track-btn:hover { color: var(--ink); background: var(--stage); }
.biz-track-btn:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; }
.biz-track-now { display: none; font-size: var(--fs-body); color: var(--text-2); margin-top: 10px; }
.biz-track-now-name { color: var(--text); font-weight: 600; }
.biz-panel-move { display: flex; align-items: center; gap: 14px; margin-top: 14px; }
.biz-panel-move .biz-move-select { flex: 0 1 240px; min-height: 48px; }

/* gallery row */
.biz-panel-gal {
  --gal: var(--stage-booked);
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px;
  padding: 14px 14px 14px 16px; border-radius: var(--biz-r); background: var(--biz-inset); border-left: 3px solid var(--gal);
}
.biz-panel-gal-ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--biz-r); background: color-mix(in srgb, var(--gal) 16%, var(--surface)); color: var(--gal); }
.biz-panel-gal-text { font-size: var(--fs-body); font-weight: 600; line-height: 1.3; color: var(--text); }
.biz-panel-gal.is-draft { --gal: var(--biz-warn); }
.biz-panel-gal.is-draft .biz-panel-gal-ic { background: var(--biz-warn-bg); }
.biz-panel-gal.is-sent { --gal: var(--biz-info); }
.biz-panel-gal.is-sent .biz-panel-gal-ic { background: var(--biz-info-bg); }
.biz-panel-gal.is-later { --gal: var(--text-2); background: transparent; border: 1px dashed color-mix(in srgb, var(--text) 22%, transparent); }
.biz-panel-gal.is-later .biz-panel-gal-ic { background: var(--biz-inset); }
.biz-panel-gal.is-later .biz-panel-gal-text { color: var(--text-2); font-weight: 400; }
.biz-panel-gal-act.btn { min-height: var(--tap); }

/* link an existing gallery: a secondary button under the row, then an inline chooser of cards */
.biz-panel-link-btn.btn { margin-top: 12px; min-height: var(--tap); }
.biz-link { margin-top: 14px; display: grid; gap: 12px; padding: 18px; border-radius: var(--biz-r); background: var(--biz-inset); border: 1px solid var(--hairline); }
.biz-link-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.biz-link-title { font-size: var(--fs-body); font-weight: 600; color: var(--text); margin: 0; }
.biz-link-note { font-size: var(--fs-body); color: var(--text-2); margin: 0; padding: 14px 16px; border-radius: var(--biz-r); border: 1px dashed color-mix(in srgb, var(--text) 22%, transparent); }
.biz-link-error { font-size: var(--fs-body); font-weight: 600; color: var(--danger); margin: 0; }
.biz-link-list { display: grid; gap: 8px; max-height: 320px; overflow-y: auto; padding: 2px; margin: -2px; }
.biz-link-row {
  display: grid; gap: 2px; width: 100%; text-align: left; font: inherit; cursor: pointer;
  padding: 14px 16px; min-height: var(--tap); border-radius: var(--biz-r); background: var(--surface); color: var(--text);
  border: 1px solid var(--hairline); overflow-wrap: anywhere;
  transition: transform 300ms var(--ease), border-color 300ms var(--ease), box-shadow 300ms var(--ease);
}
.biz-link-row:hover:not([disabled]) { transform: translateY(-2px); border-color: var(--accent-ink); box-shadow: var(--biz-lift); }
.biz-link-row:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.biz-link-row[disabled] { opacity: 0.6; cursor: default; }
.biz-link-name { font-size: var(--fs-body); font-weight: 600; line-height: 1.3; }
.biz-link-detail { font-size: var(--fs-body); font-weight: 400; color: var(--text-2); line-height: 1.3; }

/* details: label left, value right (v4) */
.biz-panel-facts { margin: 0; }
.biz-panel-fact { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 12px 0; border-top: 1px solid var(--hairline); }
.biz-panel-fact:first-child { border-top: 0; padding-top: 2px; }
.biz-panel-fact dt { flex: none; margin: 0; }
.biz-panel-fact-k { font-size: var(--fs-body); color: var(--text-2); }
.biz-panel-fact-v { min-width: 0; margin: 0; font-size: var(--fs-body); font-weight: 600; line-height: 1.4; text-align: right; color: var(--text); overflow-wrap: anywhere; }
.biz-panel-fact-v.is-empty { color: var(--text-2); font-weight: 400; }
.biz-panel-fact-v a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, var(--text) 25%, transparent); }
.biz-panel-fact-v a:hover { color: var(--accent-ink); text-decoration-color: var(--accent-ink); }

/* timeline: a vertical line with ringed dots (v4) */
.biz-tl { margin: 0; padding: 0; list-style: none; }
.biz-tl-item { position: relative; display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 12px; padding-bottom: 18px; }
.biz-tl-item:last-child { padding-bottom: 0; }
.biz-tl-item:not(:last-child)::before { content: ""; position: absolute; left: 9px; top: 22px; bottom: -2px; width: 1px; background: var(--hairline); }
.biz-tl-dot { width: 14px; height: 14px; margin: 5px 3px 0; border-radius: 50%; box-sizing: border-box; background: var(--surface); border: 2px solid color-mix(in srgb, var(--text) 35%, var(--surface)); }
.biz-tl-item.is-pending .biz-tl-dot { border-color: var(--stage-new); }
.biz-tl-item.is-current .biz-tl-dot { background: var(--stage); border-color: var(--stage); box-shadow: 0 0 0 4px color-mix(in srgb, var(--stage) 22%, transparent); }
.biz-tl-title { font-size: var(--fs-body); font-weight: 600; line-height: 1.35; color: var(--text); }
.biz-tl-item.is-pending .biz-tl-title { color: var(--stage-new); }
.biz-tl-item.is-current .biz-tl-title { color: var(--stage); }
.biz-tl-when { font-size: var(--fs-body); line-height: 1.35; color: var(--text-2); }
.biz-tl-act.btn { margin-top: 10px; }

/* notes: exactly as typed, line breaks kept */
.biz-panel-notes {
  padding: 16px 18px; border-radius: var(--biz-r); background: var(--biz-inset); border-left: 3px solid var(--orange);
  font-size: var(--fs-body); line-height: 1.5; color: var(--text); white-space: pre-wrap; overflow-wrap: anywhere;
}

/* phone: a bottom sheet; the stage switch becomes five colour bars and a "stage 3 of 5" line */
@media (max-width: 640px) {
  .biz-panel { top: auto; left: 0; right: 0; bottom: 0; width: auto; max-height: 92vh; max-height: 92dvh; border-left: 0; border-top: 1px solid var(--hairline); transform: translateY(100%); box-shadow: 0 -30px 80px rgba(0, 0, 0, 0.35); }
  .biz-panel .biz-panel-grab { display: none; }
  .biz-panel-head { gap: 14px; padding: 22px 16px 12px 20px; }
  .biz-panel-avatar.biz-avatar { width: 52px; height: 52px; font-size: var(--fs-body); }
  .biz-panel-who { padding-top: 2px; }
  .biz-panel-name { font-size: var(--fs-h3); line-height: 1.05; }
  .biz-panel-meta { margin-top: 6px; }
  .biz-panel-body { gap: 26px; padding: 8px 20px calc(28px + env(safe-area-inset-bottom, 0px)); }
  .biz-track { gap: 4px; padding: 0; border: 0; border-radius: 0; overflow: visible; }
  .biz-track li + li { border-left: 0; }
  .biz-track-name { display: none; }
  .biz-track-btn, .is-current .biz-track-btn, .biz-track-btn:hover, .is-current .biz-track-btn:hover { padding: 18px 0; background: none; }
  .biz-track-bar, .is-current .biz-track-bar { display: block; width: 100%; height: 8px; border-radius: 0; background: var(--track); }
  .is-done .biz-track-bar { background: color-mix(in srgb, var(--stage) 38%, var(--track)); }
  .is-current .biz-track-bar { background: var(--stage); }
  .biz-track-now { display: block; margin-top: 2px; }
  .biz-track-now-name { color: var(--stage); }
  .biz-panel-move .biz-move-select { flex: 1 1 auto; }
  .biz-panel-gal { grid-template-columns: auto minmax(0, 1fr); }
  .biz-panel-gal-act.btn { grid-column: 1 / -1; width: 100%; }
  .biz-link { padding: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .biz-panel, .biz-scrim, .biz-panel-x, .biz-track-btn, .biz-link-row { transition: none; }
  .biz-panel-x:hover, .biz-link-row:hover:not([disabled]) { transform: none; }
}

/* New gallery opened from a client card: where the prefilled details came from. */
.biz-prefill {
  display: flex; align-items: center; gap: 12px; margin: -4px 0 24px; padding: 12px 18px 12px 12px;
  width: fit-content; max-width: 100%; box-sizing: border-box;
  border-radius: var(--biz-r); background: var(--surface); border: 1px solid var(--hairline); border-left: 3px solid var(--stage-booked);
  font-size: var(--fs-body); line-height: 1.35; color: var(--text-2); overflow-wrap: anywhere;
}
.biz-prefill strong { font-weight: 600; color: var(--text); }
.biz-prefill-ic { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: var(--biz-r); background: color-mix(in srgb, var(--stage-booked) 14%, var(--surface)); color: var(--stage-booked); }
.biz-prefill-ic .icon { fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- backfill dialog (Add a past client) ----------
 * The site's quote-form card: a 6px orange rule on top, the orange halo. Sizes: --fs-h2 the
 * title, --fs-body every input, hint, button and message, --fs-label the uppercase mono field
 * labels and the quiet "optional" tag. Colour: theme tokens, --stage-* for the stage hint dot,
 * --good for "Added", --danger for an error. Shares the scrim, layer and close button with the
 * client panel. Centred on wider screens; a bottom sheet on phones. */
.biz-bf-layer { display: grid; place-items: center; padding: 24px; box-sizing: border-box; }
.biz-bf {
  position: relative; width: min(560px, 100%); max-height: 100%; display: flex; flex-direction: column;
  overflow: hidden; box-sizing: border-box;
  background: var(--surface); color: var(--text);
  border-top: 6px solid var(--orange); border-radius: var(--biz-r);
  box-shadow: 0 0 0 1px rgba(245, 153, 31, 0.35), 0 28px 70px rgba(0, 0, 0, 0.6), 0 0 90px rgba(245, 153, 31, 0.14);
  opacity: 0; transform: translateY(14px) scale(0.985);
  transition: opacity 260ms var(--ease), transform 360ms var(--ease);
}
.biz-bf-layer.is-open .biz-scrim { opacity: 1; }
.biz-bf-layer.is-open .biz-bf { opacity: 1; transform: none; }
.biz-bf:focus { outline: none; }
.biz-bf .biz-bf-grab { display: none; }

.biz-bf-head { display: flex; align-items: flex-start; gap: 16px; padding: 28px 24px 22px 32px; }
.biz-bf-who { flex: 1; min-width: 0; padding-top: 2px; }
.biz-bf-title { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; font-size: var(--fs-h2); line-height: 1; letter-spacing: 0.01em; color: var(--text); }
.biz-bf-lede { margin-top: 10px; font-size: var(--fs-body); line-height: 1.4; color: var(--text-2); }

.biz-bf-form { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.biz-bf-body {
  flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 16px; align-content: start;
  padding: 4px 32px 26px;
}
.biz-bf-field { min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.biz-bf-field.is-wide { grid-column: 1 / -1; }
.biz-bf-label { margin: 0; }
.biz-bf-opt { margin-left: 8px; font-weight: 400; letter-spacing: 0.08em; opacity: 0.8; }
.biz-bf .field { min-height: 52px; border: 1px solid var(--hairline); border-radius: var(--biz-r); font-weight: 400; background: var(--field-bg); }
.biz-bf .field:focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(245, 153, 31, 0.28); }
.biz-bf .field[aria-invalid="true"] { border-color: var(--danger); box-shadow: 0 0 0 3px rgba(179, 38, 30, 0.18); }
.biz-bf select.field { appearance: none; -webkit-appearance: none; padding-right: 44px; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--text-2) 50%), linear-gradient(135deg, var(--text-2) 50%, transparent 50%);
  background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; background-size: 6px 6px, 6px 6px; background-repeat: no-repeat; }
.biz-bf-hint { margin: 0; display: flex; align-items: center; gap: 10px; font-size: var(--fs-body); line-height: 1.35; color: var(--text-2); }
.biz-bf-dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--stage, var(--text-2)); }

.biz-bf-foot { flex: none; display: flex; flex-direction: column; gap: 14px; padding: 20px 32px 28px; border-top: 1px solid var(--hairline); background: var(--surface); }
.biz-bf-msgs { display: flex; flex-direction: column; }
.biz-bf-error { margin: 0; font-size: var(--fs-body); font-weight: 600; line-height: 1.35; color: var(--danger); overflow-wrap: anywhere; }
.biz-bf-error[hidden] { display: none; }
.biz-bf-status { min-height: 0; }
.biz-bf-added { margin: 0; font-size: var(--fs-body); font-weight: 600; line-height: 1.35; color: var(--good); overflow-wrap: anywhere; }
.biz-bf-added:not(:empty)::before { content: ''; display: inline-block; width: 18px; height: 18px; margin: 0 10px -3px 0; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat; }
.biz-bf-actions { display: flex; justify-content: flex-end; gap: 12px; }
.biz-bf-save[aria-disabled="true"] { opacity: 0.6; cursor: progress; }

/* phone: a bottom sheet; the buttons stay pinned below the scrolling fields */
@media (max-width: 640px) {
  .biz-bf-layer { place-items: end stretch; padding: 0; }
  .biz-bf { width: auto; max-height: 94vh; max-height: 94dvh; opacity: 1; transform: translateY(100%); transition: transform 420ms var(--ease); }
  .biz-bf .biz-bf-grab { display: none; }
  .biz-bf-head { padding: 20px 14px 14px 20px; }
  .biz-bf-title { font-size: var(--fs-h3); line-height: 1.05; }
  .biz-bf-body { grid-template-columns: minmax(0, 1fr); gap: 20px; padding: 2px 20px 22px; }
  .biz-bf-foot { padding: 14px 20px calc(16px + env(safe-area-inset-bottom, 0px)); }
  .biz-bf-actions .biz-bf-save { flex: 1 1 auto; padding: 0 16px; }
}

@media (prefers-reduced-motion: reduce) { .biz-bf { transition: none; } }
