/* v5 BUBBLE LAYER: the platform design standard (Logan, Tue 13:53). Rounded clay cards, sunk tiles,
   change pills, the rounded toggle, list rows and pill buttons, the way Home draws them.
   Every colour, radius and shadow is a token from /v5/home.css (--r-card, --r-tile, --clay-up,
   --c-sunk ...), so light and dark follow data-theme / cs-theme with no second set of values.
   Styling only: it changes no data, wording or binding. Loaded after home.css on every app page.
   NOT loaded by login, sign-up, the invite landing, terms, privacy or the marketing site. */
.bb { display: grid; gap: var(--gap); grid-template-columns: repeat(12, minmax(0, 1fr)); }
.bb > * { grid-column: span 12; min-width: 0; }
.bb p, .bb ul { margin: 0; padding: 0; }
.bb h2 { font-size: 17px; font-weight: 700; letter-spacing: -.01em; margin: 0 0 14px; color: var(--c-ink); }
.bb-sub { font-size: 12.5px; color: var(--c-ink-3); font-weight: 500; }
.bb-head2 { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 14px; }
.bb-head2 h2 { margin: 0; }
.bb-k { font-size: 13px; font-weight: 500; color: var(--c-ink-3); margin: 0 0 8px; }
.bb-num { font-size: 30px; font-weight: 700; letter-spacing: -.03em; line-height: 1.1; color: var(--c-ink); }
.bb-say { font-size: 13px; color: var(--c-ink-3); margin-top: 8px; }
.bb-row { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; min-width: 0; }
.bb-pill { display: inline-flex; align-items: center; font-size: 12.5px; font-weight: 600; line-height: 1; padding: 5px 10px; border-radius: 999px; background: var(--c-sunk); color: var(--c-ink-2); white-space: nowrap; }
.bb-pill.up { background: var(--c-up-bg, rgba(54,160,110,.16)); color: var(--c-up, var(--status-positive)); }
.bb-pill.dn { background: var(--c-down-bg, rgba(200,90,70,.15)); color: var(--c-down, var(--status-negative)); }
.bb-hero { padding: 28px; display: flex; flex-direction: column; justify-content: center; }
.bb-hero .bb-num { font-size: 56px; letter-spacing: -.045em; }
.bb-math { font-size: 13px; color: var(--c-ink-3); margin-top: 14px; line-height: 1.45; }
.bb-math b { color: var(--c-ink-2); font-weight: 600; }
.bb-stat .bb-num { font-size: 28px; }
/* top: hero + share side by side; second row: three small stat bubbles */
.bb .b-hero { grid-column: span 12; }
.bb .b-share { grid-column: span 12; }
.bb .b-stat { grid-column: span 6; }
.bb .b-today, .bb .b-health, .bb .b-trend, .bb .b-opps { grid-column: span 12; }
.bb .b-pro { grid-column: span 12; }
@media (min-width: 900px) {
  .bb .b-hero { grid-column: span 7; }
  .bb .b-share { grid-column: span 5; }
  .bb .b-stat { grid-column: span 4; }
  .bb .b-today { grid-column: span 7; }
  .bb .b-health { grid-column: span 5; }
  .bb .b-trend { grid-column: span 7; }
  .bb .b-opps { grid-column: span 5; }
}
/* tiles inside a card: smaller bubbles */
.bb-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.bb-tile { background: var(--c-sunk); border-radius: var(--r-tile); padding: 14px 14px 12px; min-width: 0; }
.bb-tile .bb-num { font-size: 26px; }
.bb-tile .bb-k { margin-bottom: 6px; }
.bb-tile .bb-say { margin-top: 6px; font-size: 12px; }
/* a figure and its change chip share a line while they fit, and the chip drops below when they don't ("$0" + "No change" in a narrow tile) */
.bb-tile .bb-num { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-start; column-gap: 8px; row-gap: 6px; min-width: 0; }
.bb-tile .bb-pill { max-width: 100%; min-width: 0; align-self: flex-start; }
.bb-tile.warn .bb-num { color: var(--c-down, var(--status-negative)); }
.bb-stack { display: flex; gap: 3px; height: 10px; margin-top: 16px; border-radius: 999px; overflow: hidden; }
.bb-stack i { display: block; height: 100%; }
.bb-note { font-size: 12.5px; color: var(--c-ink-3); margin-top: 12px; }
.bb-list { list-style: none; display: grid; gap: 10px; margin-top: 14px; }
.bb-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--c-sunk); border-radius: var(--r-tile); padding: 12px 14px; }
.bb-item > div { min-width: 0; }
.bb-item.done { opacity: .62; }
.bb-t { font-size: 15px; font-weight: 600; color: var(--c-ink); }
.bb-s { font-size: 12.5px; color: var(--c-ink-3); margin-top: 2px; }
.bb-r { font-size: 15px; font-weight: 700; text-align: right; white-space: nowrap; color: var(--c-ink); }
.bb-r small { display: block; font-size: 12px; font-weight: 400; color: var(--c-ink-3); }
.bb-chip { display: inline-block; margin-top: 6px; font-size: 11.5px; font-weight: 600; color: var(--c-down, var(--status-negative)); background: var(--c-down-bg, rgba(200,90,70,.15)); border-radius: 999px; padding: 2px 9px; }
.bb-act { font-size: 13px; font-weight: 700; color: var(--c-navy); text-decoration: none; background: var(--c-card); border-radius: 999px; padding: 9px 14px; box-shadow: var(--clay-up); white-space: nowrap; }
.bb-av { width: 38px; height: 38px; border-radius: 50%; background: var(--c-card); color: var(--c-navy); display: grid; place-items: center; font-size: 13px; font-weight: 700; flex: none; box-shadow: var(--clay-up); }
.bb-who { display: flex; align-items: center; gap: 12px; min-width: 0; }
/* weekly trend */
.bb-bars { display: grid; gap: 8px; align-items: end; }
.bb-bar { display: flex; flex-direction: column; align-items: stretch; gap: 8px; padding: 0; background: none; border: 0; cursor: pointer; font: inherit; color: inherit; }
.bb-plot { display: flex; align-items: flex-end; height: 150px; }
.bb-fill { display: block; width: 100%; height: calc(var(--h, 0) * 1.5px); min-height: 2px; border-radius: 12px 12px 6px 6px; background: color-mix(in srgb, var(--c-ink-3) 38%, var(--c-sunk)); box-shadow: none; transition: background .15s; }
.bb-bar[aria-pressed="true"] .bb-fill { background: var(--c-blue); box-shadow: none; }
.bb-dl { font-size: 10.5px; letter-spacing: -.01em; color: var(--c-ink-3); text-align: center; white-space: nowrap; overflow: hidden; }
.bb-bar[aria-pressed="true"] .bb-dl { color: var(--c-ink); font-weight: 600; }
.bb-insp { margin-top: 16px; background: var(--c-sunk); border-radius: var(--r-tile); padding: 12px 14px; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.bb-insp .a { font-size: 17px; font-weight: 700; color: var(--c-ink); }
.bb-insp .b { font-size: 13px; color: var(--c-ink-2); text-align: right; }
.bb-pro { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px; }
.bb-pro a { color: var(--c-ink); text-decoration: none; font-weight: 600; }
@media (max-width: 520px) {
  .bb { gap: 12px; }
  .bb .b-stat.b-last { grid-column: span 12; }
  .bb .b-share { grid-column: span 12; }
  .bb-hero { padding: 22px 20px; }
  .bb-hero .bb-num { font-size: clamp(40px, 13vw, 56px); }
  .bb-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .bb-tile { padding: 12px 10px 10px; }
  .bb-tile .bb-num { font-size: 22px; }
  .bb-stat .bb-num { font-size: 24px; }
  .bb-item { padding: 11px 12px; }
}
@media (max-width: 520px) { .bb-bars { gap: 5px; } .bb-dl { font-size: 9.5px; } }
.rd-vh { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.bb-hero .bb-row { align-items: center; }

/* ---- Shop (owner): capacity ring, chair meters, 4-up tiles, tags ---- */
/* the Shop's two loaders (#rd-cap, #rd-rest) sit in the grid as plain wrappers; their cards are the grid items */
.bb-shop > #rd-cap, .bb-shop > #rd-rest { display: contents; }
.bb .b-cap, .bb .b-fin, .bb .b-chealth, .bb .b-appt, .bb .b-board { grid-column: span 12; }
/* the owner's order: capacity, leaderboard (full width), client health, appointments, financials.
   Wide screens pair health | appointments; financials runs full width. */
@media (min-width: 900px) {
  .bb .b-chealth, .bb .b-appt { grid-column: span 6; }
}
.bb-caphero { display: flex; align-items: center; gap: 24px; }
.bb-ring { width: 148px; height: 148px; flex: none; }
.bb-ring-bg { fill: none; stroke: var(--c-sunk); stroke-width: 12; }
.bb-ring-fg { fill: none; stroke: var(--c-blue); stroke-width: 12; stroke-linecap: round; }
.bb-ring-t { font-size: 30px; font-weight: 700; fill: var(--c-ink); letter-spacing: -.02em; }
.bb-line { font-size: 16px; color: var(--c-ink-2); margin-top: 4px; }
.bb-line b { color: var(--c-ink); font-weight: 700; }
.bb-grow { flex: 1; min-width: 0; }
.bb-meter { height: 8px; border-radius: 99px; background: var(--c-card); margin: 8px 0 6px; overflow: hidden; box-shadow: var(--clay-down); }
.bb-meter i { display: block; height: 100%; background: var(--c-blue); border-radius: 99px; }
.bb-meter.under i { background: var(--c-down); }
.bb-tiles4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 900px) { .bb-tiles4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .bb-ring { width: 168px; height: 168px; } }
.bb-tag { display: inline-block; font-size: 11px; font-weight: 600; padding: 2px 9px; border-radius: 999px; background: var(--c-card); color: var(--c-ink-2); vertical-align: 1px; margin-left: 4px; box-shadow: var(--clay-up); }
.bb-tag.acc { background: var(--c-up-bg, rgba(54,160,110,.16)); color: var(--c-up, var(--status-positive)); box-shadow: none; }
.bb-chair .bb-chip { margin: 0 0 0 4px; vertical-align: 1px; }
.bb-item.bb-total .bb-r { font-size: 17px; }
.bb-pill:empty { display: none; }
@media (max-width: 520px) {
  .bb-caphero { gap: 14px; }
  .bb-ring { width: 104px; height: 104px; }
  .bb-head2 { flex-wrap: wrap; }
  .bb-line { font-size: 14.5px; }
  .bb-tiles4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.bb-shop .b-cap .bb-list { margin-top: 18px; }
.bb-shop .b-fin { align-self: start; }

/* =====================================================================
   PLATFORM LAYER: the same bubble language on every other app page.
   Short lists become sunk tile rows; the long Clients directory keeps its hairlines (a sixty-row
   list of tinted lozenges stops being a list). Colours and radii are home.css tokens only.
   ===================================================================== */
/* page title + the rounded toggle already match Home (.v5-head, .v5-tabs); keep the title weight identical */
.v5-head h1, .cl-head h1 { letter-spacing: -.03em; }
/* cards: every card is a bubble */
.v5-card { border-radius: var(--r-card); }
/* card headings: Home's 17px bold, no extra rule underneath */
.v5-h, .cl-h .v5-h, .rp-view h2:not(.rp-title) { font-size: 17px; font-weight: 700; letter-spacing: -.01em; }

/* short lists inside a card: sunk tile rows, gap between, no hairlines */
.cl-card:not(.cl-dir) .cl-list { display: grid; gap: 10px; }
.cl-card:not(.cl-dir) .cl-list li, .tm-list li, .pay-past .cl-list li, .pr-list li, .rp-svc li {
  border-top: 0; }
.cl-card:not(.cl-dir) .cl-list li, .tm-list li, .pay-past .cl-list li { background: var(--c-sunk); border-radius: var(--r-tile); padding: 2px 14px; }
.cl-card:not(.cl-dir) .cl-list .cl-row, .tm-list .cl-row, .pay-past .cl-list .cl-row { margin: 0; width: 100%; padding: 10px 0; }
.pr-list { display: grid; gap: 10px; }
.pr-list li { background: var(--c-sunk); border-radius: var(--r-tile); padding: 2px 14px; }
.pr-reqlist, .pr-anslist { list-style: none; display: grid; gap: 10px; margin: 0; padding: 0; }
.rp-svc ol { gap: 10px; }
.rp-svc li { background: var(--c-sunk); border-radius: var(--r-tile); padding: 11px 14px; }
.rp-busy dl > div { background: var(--c-sunk); border-radius: var(--r-tile); padding: 12px 14px; }
.rp-busy dd { margin-top: 4px; }
/* the sunk fill carries ink-2 labels (ink-3 is 3.75:1 on it, below AA): lift the quiet greys inside tiles */
.cl-card:not(.cl-dir) .cl-list li .mt, .tm-list li .mt, .pr-list li .rn, .rp-svc li, .rp-busy dt { color: var(--c-ink-2); }
/* avatar circles inside sunk rows are the card colour, as on Home */
.cl-card:not(.cl-dir) .v5-av, .tm-list .v5-av, .pr-list .v5-av { background: var(--c-card); box-shadow: var(--clay-up); }

/* buttons: Home's pill action */
.mr-btn, .set-btn, .cl-more, .rp-print, .rp-retry { border-radius: var(--r-pill); }
.pr-st, .rp-d, .v5-pill { border-radius: var(--r-pill); }

/* stat tiles that are their own card: Home's number and label sizes */
.v5-stat .v5-num, .rp-tile .v5-num, .tm-num .v5-num { font-size: 28px; letter-spacing: -.03em; }
.rp-tile, .cl-tile, .pr-stat, .tm-num { padding: 20px 20px 18px; }
.rp-months button[aria-current="true"], .rp-months button:hover { border-radius: var(--r-pill); }

@media (max-width: 520px) {
  .cl-card:not(.cl-dir) .cl-list li, .tm-list li, .pay-past .cl-list li, .pr-list li { padding: 2px 12px; }
}

/* charts: Home's bar look (brand blue, rounded tops) wherever a chart appears */
.rp-bars .b { background: var(--c-blue); border-radius: 12px 12px 6px 6px; }
.v5-bars-plot .bar-now { fill: var(--c-blue); }
.v5-bars-plot .bar-now.on { fill: var(--c-blue-deep); }
.v5-bars-plot .bar-then { fill: color-mix(in srgb, var(--c-ink-3) 38%, var(--c-sunk)); }
/* the roster (Team) and the rent owner's chair lists are wide tables of rows: keep their columns on the header's grid.
   The sunk row's side padding is taken out of the first/last column so headings and cells stay lined up. */
@media (min-width: 761px) {
  .tm-list li, .pr-list li { padding: 0; }
  .tm-list .cl-row.tm-row { padding-left: 14px; padding-right: 14px; margin: 0; width: 100%; }
  .tm-cols, .pr-cols { padding-left: 14px; padding-right: 14px; }
  .pr-list li .pr-row { padding-left: 14px; padding-right: 14px; }
}
/* settings: a divider between facts is a gap, not a rule */
.set-plan { border-top: 0; padding-top: 4px; margin-top: 14px; }
.set-rows li { border-top: 0; }
.set-rows { display: grid; gap: 10px; }
.set-rows li { background: var(--c-sunk); border-radius: var(--r-tile); padding: 11px 14px; }

/* roster headings sit on the same grid as the rows (which now carry 14px of side padding) */
@media (min-width: 761px) {
  .tm-cols { column-gap: inherit; }
  .tm-list .cl-row.tm-row .gap { overflow: hidden; text-overflow: ellipsis; }
}

/* ---- Assistant button: the page always scrolls clear of it and of the phone nav ---- */
@media (max-width: 760px) {
  /* right-hand figures stay out of the button's zone while it floats over a card */
  .bb-item .bb-r, .bb-meter-v, .bb-item > .bb-v { margin-right: 0; }
}
/* ---- Team: Last booked wraps instead of clipping; stacks under the name on narrower screens ---- */
.tm-list .cl-row.tm-row .gap { white-space: normal; overflow: visible; text-overflow: clip; }
@media (min-width: 761px) and (max-width: 1099px) {
  .tm-cols { display: none; }
  .tm-list .cl-row.tm-row { grid-template-columns: 40px minmax(0, 1.4fr) minmax(0, 1.6fr) auto;
    grid-template-areas: "av nm rt bk" "av vis gap gap"; row-gap: 2px; padding-top: 10px; padding-bottom: 10px; }
}
@media (min-width: 1100px) {
  .tm-list .cl-row.tm-row .gap { white-space: normal; overflow: visible; text-overflow: clip; line-height: 1.3; }
  :root { --tm-cols: 40px minmax(0, 1.5fr) minmax(0, 1.3fr) minmax(0, 1.5fr) minmax(0, 1.5fr) minmax(0, 1fr); }
}
.bb-pill.flat { background: var(--c-sunk); color: var(--c-ink-2); }

/* the roster headings sit on the rows' own grid: same inset, same gap, so each heading starts over its column */
@media (min-width: 1100px) {
  .tm-cols { margin-left: 14px; margin-right: 14px; padding-left: 0; padding-right: 0; column-gap: 12px; box-sizing: border-box; }
}

/* Home, barber (home-next): Overdue Clients rows open a profile; Overdue tile jumps to them; the board is one tile. */
.bb-jump { text-decoration: none; color: inherit; display: block; cursor: pointer; }
.bb-jump:focus-visible, .bb-open:focus-visible, .bb-lb-hit:focus-visible, .bb-phone:focus-visible { outline: 2px solid var(--c-focus); outline-offset: 2px; }
.bb-open { width: 100%; border: 0; font: inherit; text-align: left; color: inherit; cursor: pointer; }
.bb-open .bb-who { display: flex; align-items: center; gap: 12px; min-width: 0; }
.bb-open .bb-who > span:last-child { display: block; min-width: 0; }
.bb-open .bb-t, .bb-open .bb-s { display: block; }
.bb-list > li { list-style: none; }
.bb-prof { margin: 0 0 14px; }
.bb-prof .bb-s { margin: 2px 0 0; }
.bb-phone { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border: 0; border-radius: var(--r-ctl, 14px); background: var(--c-sunk); color: var(--c-ink); font: inherit; font-weight: 600; font-variant-numeric: tabular-nums; cursor: pointer; }
.bb-toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 12px); opacity: 0; pointer-events: none; background: var(--c-ink); color: var(--c-card); padding: 10px 18px; border-radius: 999px; font-size: 14px; font-weight: 600; transition: opacity .15s, transform .15s; z-index: 80; }
.bb-toast.on { opacity: 1; transform: translate(-50%, 0); }
.bb-lb { padding: 0; }
.bb-lb-hit { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 56px; padding: 18px 22px; border: 0; background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.bb-lb-sum { display: inline-flex; align-items: center; gap: 12px; font-variant-numeric: tabular-nums; }
.bb-lb-sum b { font-size: 22px; font-weight: 700; letter-spacing: -.01em; }
.bb-lb-sum span { color: var(--c-ink-2); font-weight: 600; }
.bb-chev { flex: none; color: var(--c-ink-2); transition: transform .15s; }
.bb-lb.open .bb-chev { transform: rotate(180deg); }
#bb-lb-body { padding: 0 22px 16px; }
#bb-lb-body[hidden] { display: none; }
.bb-board-in { padding: 14px 16px 14px; }
.bb-board-in .lb-you { margin: 0 0 6px; }
.bb-board-in .lb-more { margin-bottom: 0; }
body.cb-has .bb-board-in { padding-bottom: 14px; }
/* A leaderboard row that opens to its Pro Score parts: one 44px button for name and score, the parts in a panel under it. */
.lb-row.can { display: block; padding: 0; }
.lb-hit { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 44px; padding: 8px 0; border: 0; background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; border-radius: var(--r-tile); }
.lb-hit .nm, .lb-hit .bb-who { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.lb-hit .sc, .lb-hit .bb-r { flex: none; margin-left: auto; font-variant-numeric: tabular-nums; }
.lb-hit:focus-visible { outline: 2px solid var(--c-focus); outline-offset: 2px; }
.lb-chev { flex: none; color: var(--c-ink-2); transition: transform .15s; }
.lb-hit[aria-expanded="true"] .lb-chev { transform: rotate(180deg); }
.lb-panel { padding: 2px 0 10px; }
.lb-panel[hidden] { display: none; }
.lb-row .sc { margin-left: auto; text-align: right; }
.lb-row:not(.can):not([hidden]) { display: flex; align-items: center; min-height: 44px; }
.lb-row[hidden] { display: none; }
.lb-row:not(.can) .nm { flex: 1 1 auto; }
.lb-row:not(.can) .sc { margin-right: 26px; }
.lb-parts { list-style: none; margin: 4px 0 2px; padding: 0; display: grid; gap: 8px; }
.lb-part { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; row-gap: 4px; align-items: baseline; font-size: 13px; font-weight: 500; color: var(--c-ink-2); }
.lb-pl { min-width: 0; overflow-wrap: anywhere; }
.lb-pw { color: var(--c-ink-3); font-variant-numeric: tabular-nums; margin-left: 4px; }
.lb-ps { font-variant-numeric: tabular-nums; color: var(--c-ink); font-weight: 600; }
.lb-bar { grid-column: 1 / -1; height: 4px; border-radius: 999px; background: var(--c-line); overflow: hidden; }
.lb-bar i { display: block; height: 100%; border-radius: inherit; background: var(--c-ink-2); }
/* Shop (owner): the bubble row holds the button and its panel stacked */
.bb-item.bb-lbrow { display: block; padding: 0; }
.bb-lbrow .lb-hit { padding: 12px 14px; min-height: 56px; gap: 8px; }
.bb-lbrow .bb-who { gap: 10px; }
.bb-lbrow .lb-panel { padding: 0 14px 14px; }
.bb-lbrow .bb-t { margin: 0; }
.bb-lbrow .bb-r, .bb-lbrow .bb-r .bb-s { white-space: nowrap; }
.bb-lbrow .bb-who { flex: 1 1 auto; min-width: 0; }
.bb-lbrow .bb-r .bb-s { font-size: 12px; font-weight: 600; }
.bb-lbrow .bb-av { width: 34px; height: 34px; }
.bb-lbrow .bb-t { overflow-wrap: break-word; word-break: normal; }
.bb-lb .lb-row.me { font-weight: 700; color: var(--c-ink); }
.bb-lb .lb-tag { display: none; }

/* Home, Today: the day as a calendar. An hour rail and blocks sized by duration; it scrolls inside the tile. */
.cal { position: relative; margin-top: 14px; max-height: 460px; overflow-y: auto; overscroll-behavior: contain; border-radius: var(--r-tile); background: var(--c-sunk); }
.cal:focus-visible { outline: 2px solid var(--c-focus); outline-offset: 2px; }
.cal-in { position: relative; }
.cal-rail { position: absolute; inset: 0 auto 0 0; width: 56px; }
.cal-h { position: absolute; left: 0; right: 0; height: 0; }
.cal-h span { position: absolute; left: 10px; top: -8px; font-size: 11.5px; font-weight: 600; color: var(--c-ink-3); font-variant-numeric: tabular-nums; }
.cal-h::after { content: ""; position: absolute; left: 56px; right: 0; top: 0; border-top: 1px solid var(--c-line); }
.cal-grid { position: absolute; inset: 0 8px 0 60px; }
.cal-b { position: absolute; box-sizing: border-box; overflow: hidden; display: flex; flex-direction: column; justify-content: center; gap: 1px; padding: 4px 10px; border-radius: 10px; background: var(--c-card); box-shadow: var(--clay-up, 0 1px 3px rgba(0,0,0,.15)); border-left: 3px solid var(--c-navy); }
.cal-b.done { opacity: .62; }
/* A short slot puts the name and the time on one line, so a back-to-back day keeps every block close to its true length. */
.cal-b.tight { flex-direction: row; align-items: center; justify-content: flex-start; gap: 8px; padding: 2px 10px; }
.cal-b.tight .cal-t { flex: none; }
.cal-n { font-size: 13.5px; font-weight: 700; color: var(--c-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-t { font-size: 11.5px; color: var(--c-ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
:root[data-theme="dark"] .cal-b { border-left-color: var(--c-ink-2); }
/* UX round Nov 12 */
.bb-lb-t { display: grid; gap: 4px; text-align: left; }
.bb-lb-line { font-size: 15px; color: var(--c-ink-2); font-weight: 600; }
.bb-lb-line b { color: var(--c-ink); font-size: 18px; }
.bb-tops { list-style: none; margin: 0; padding: 0 22px 16px; display: grid; gap: 6px; }
.bb-top { display: grid; grid-template-columns: 22px 1fr auto; gap: 10px; align-items: center; font-size: 15px; color: var(--c-ink-2); }
.bb-top b { color: var(--c-ink); font-variant-numeric: tabular-nums; }
.bb-top.you .bb-top-w { color: var(--c-ink); font-weight: 700; }
.bb-top-n { color: var(--c-ink-3); font-variant-numeric: tabular-nums; }
.bb-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; margin-top: 12px; }
.bb-day { display: grid; gap: 2px; justify-items: center; min-height: 64px; padding: 8px 2px; border: 0; border-radius: var(--r-tile); background: var(--c-sunk); color: var(--c-ink-2); font: inherit; cursor: pointer; }
.bb-day[aria-pressed="true"] { background: var(--c-nav-on-bg); color: var(--c-nav-on-ink); }
.bb-day:focus-visible { outline: 2px solid var(--c-focus); outline-offset: 2px; }
.bb-dw { font-size: 11px; font-weight: 600; }
.bb-dn { font-size: 18px; font-weight: 700; font-variant-numeric: tabular-nums; }
.bb-dc { font-size: 11px; font-variant-numeric: tabular-nums; opacity: .8; }
.bb-tog { margin: 0; }
.bb-tog button { min-height: 36px; padding: 6px 12px; font-size: 13px; }
@media (max-width: 480px) { .bb-days { gap: 4px; } .bb-tog button { padding: 6px 9px; font-size: 12px; } }
.bb-drill { font: inherit; text-align: left; cursor: pointer; border: 0; color: inherit; display: block; width: 100%; }
.bb-drill[aria-expanded="true"] { outline: 2px solid var(--c-line-now); }
.bb-drillbox { margin-top: 12px; }.bb-drillbox[hidden] { display: none; }
.bb-drill > span { display: block; margin: 0; }.bb .bb-drillbox[hidden] { display: none !important; }
.bb-drill { align-self: stretch; }.bb .bb-drillbox { margin-top: 14px !important; }
.bb-appt-gap { }
.pr-row > .pr-rent { margin-left: auto; font-weight: 600; }.pr-yr { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px; border-radius: var(--r-md, 14px); background: var(--c-tile, rgba(127,127,127,.12)); margin-top: 8px; list-style: none; }.pr-card .pr-list .pr-yr { padding: 14px 16px !important; border-radius: 14px; margin-top: 8px; }
.bb-appt .bb-drillbox { margin-top: 18px !important; }
.b-appt-card, .bb .b-day { align-self: stretch; }.bb .b-today { align-self: stretch; }
.bb .bb-lb-line b { font-family: inherit; font-variant-numeric: normal; letter-spacing: 0; font-feature-settings: normal; }
@media (min-width: 900px) { .bb .b-today { align-self: start; } .bb .b-health { grid-row: span 2; } .bb .b-trend { grid-column: span 7; } }
.bb-lb .lb-row .sc { font-family: inherit; font-variant-numeric: normal; letter-spacing: 0; font-feature-settings: normal; }.bb-lb .lb-row .sc { font-weight: 600; font-size: 15px; font-kerning: normal; text-rendering: optimizeLegibility; }.bb-lb .lb-row .sc { font-variant-numeric: proportional-nums; font-feature-settings: "tnum" 0, "pnum" 1, "zero" 0; }
.bb-top b { font-family: inherit; font-variant-numeric: proportional-nums; font-feature-settings: "tnum" 0, "zero" 0; letter-spacing: 0; font-weight: 700; }
@media (min-width: 900px) { .bb .b-health { align-self: start; grid-row: auto; } }@media (min-width: 900px) { .bb .b-today { grid-column: 1 / span 7; grid-row: 4; } .bb .b-trend { grid-column: 1 / span 7; grid-row: 5; } .bb .b-health { grid-column: 8 / span 5; grid-row: 4; align-self: start; } }@media (min-width: 900px) { .bb .b-health { grid-row: 4 / span 2; } }
.bb-lb-wk { margin: 0; padding: 0 22px 8px; font-size: 13px; color: var(--c-ink-3); }
.b-board > .bb-lb-wk { padding: 0; margin: 0 0 8px; }
.bb-lb-month { padding: 4px 22px 16px; }
.b-board .bb-lb-month { padding: 14px 0 0; }
.bb-lb-month .bb-tops { padding: 0; }.bb-lb .bb-lb-wk { margin: 0; padding: 0 22px 8px; }.bb-tog { display: inline-flex; width: auto; flex: none; }
.bb-tog button { flex: none; width: auto; }.bb-donut { display: flex; align-items: center; gap: 14px; }
.bb-donut ul { list-style: none; margin: 0; padding: 0; font-size: 14px; display: grid; gap: 6px; }
.bb-donut i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 8px; }
.bb-donut .d1 { background: var(--c-accent, var(--accent-secondary)); }
.bb-donut .d2 { background: var(--c-sunk); border: 1px solid var(--c-ink-3); }.rp-prog { height: 12px; border-radius: 99px; background: var(--c-sunk); overflow: hidden; margin-top: 10px; }
.rp-prog i { display: block; height: 100%; background: var(--c-accent, var(--accent-secondary)); border-radius: 99px; }
.rp-mbars { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; }
.rp-mbars li { display: grid; grid-template-columns: 112px minmax(0, 1fr) 44px; align-items: center; gap: 10px; font-size: 14px; }
.rp-mbars li span { color: var(--c-ink-2); white-space: nowrap; }
.rp-mbars li b { text-align: right; }
.rp-chip { display: none; font: inherit; font-size: 14px; font-weight: 600; padding: 8px 14px; border-radius: var(--r-pill); border: 0; background: var(--c-card); color: var(--c-ink-2); box-shadow: var(--clay-solid); }
.rp-chip[aria-pressed="true"] { background: var(--c-nav-on-bg); color: var(--c-nav-on-ink); }
@media (max-width: 480px) { .rp-tile { padding: 18px 20px 16px; } .rp-tile .v5-num, .v5-stat.rp-tile .v5-num { font-size: 22px; } }
@media (max-width: 480px) { .rp-tools { flex-wrap: wrap; } .rp-pick { flex: 1 1 100% !important; } }
@media (max-width: 1100px) { .rp-chip { display: inline-block; } }
.rp-mbars li i { height: 10px; border-radius: 99px; background: var(--c-accent, var(--accent-secondary)); }

/* Home redesign (approved layout reference): wide screens read as rows, mobile stays one column. */
.bb .b-est { grid-column: span 12; display: flex; flex-direction: column; justify-content: center; }
.bb .b-est .bb-num { font-size: 40px; letter-spacing: -.04em; }
@media (min-width: 900px) {
  /* Barber: hero | leaderboard | retention; ticket | appointments; health | trend */
  .bb:not(.bb-shop) .b-hero { grid-column: span 5; grid-row: auto; }
  .bb:not(.bb-shop) .b-pro { grid-column: span 4; grid-row: auto; }
  .bb:not(.bb-shop) .b-stat { grid-column: span 3; grid-row: auto; }
  .bb:not(.bb-shop) .b-stat + .b-stat { grid-column: span 3; align-self: start; }
  .bb:not(.bb-shop) .b-today { grid-column: span 9; grid-row: auto; align-self: start; }
  .bb:not(.bb-shop) .b-health { grid-column: span 6; grid-row: auto; align-self: stretch; }
  .bb:not(.bb-shop) .b-trend { grid-column: span 6; grid-row: auto; }
  /* Owner: capacity | est. revenue; leaderboard | client health; appointments | financials */
  .bb-shop .b-cap { grid-column: span 8; }
  .bb-shop .b-est { grid-column: span 4; }
  .bb-shop .b-board { grid-column: 1 / span 6; grid-row: span 2; align-self: start; }
  .bb-shop .b-chealth { grid-column: 7 / span 6; align-self: start; }
  .bb-shop .b-appt { grid-column: 7 / span 6; align-self: start; }
  .bb-shop .b-fin { grid-column: span 12; }
  .bb-shop .b-chealth, .bb-shop .b-appt { grid-row: auto; }
}

/* Owner home on a phone: Booking capacity and Est. Revenue sit side by side, the Shop leaderboard directly beneath. */
@media (max-width: 520px) {
  .bb-shop .b-cap, .bb-shop .b-est { grid-column: span 6; }
  .bb-shop .b-cap .bb-caphero { flex-direction: column; align-items: flex-start; gap: 10px; }
  .bb-shop .b-cap .bb-ring { width: 96px; height: 96px; }
  .bb-shop .b-cap .bb-line { font-size: 13px; }
  .bb-shop .b-est .bb-num { font-size: 24px; }
}
