/* Blackburn Monitoring portal 1.3.0. Same product family as the Blackburn Mentoring dashboard (2.12):
   its tokens, rail and tab bar shell, cards, pills, forms, dialogs, toasts and motion, with Monitoring's
   result colors (negative green, not negative red, missed or pending amber, excused gray) expressed in
   that language. One stylesheet, no external fonts. Class prefix bx- (the JS builds these classes). */

:root {
  /* Mentoring tokens (names and values) */
  --bg: #f6f6f4;
  --surface: #ffffff;
  --ink: #111111;
  --ink-2: #3d3d3d;
  --mute: #6b6b6b;
  --faint: #6d6d6d;
  --line: #e6e6e3;
  --line-2: #d6d6d2;
  --hover: #f0f0ed;
  --green: #1f9d55;
  --green-ink: #18793f;
  --amber: #8f5c12;
  --amber-fill: #b7791f;
  --amber-bg: #fbf5ea;
  --amber-line: #efdfc2;
  --red: #c53030;
  --red-bg: #fbeeee;
  --ok: #17733d;
  --ok-bg: #ecf6f0;
  --ok-line: #cfe6d8;
  --warn: #8a5a12;
  --danger: #b42318;
  --danger-line: #f1d0d0;
  --focus: var(--ink);
  --sans: "Helvetica Neue", Helvetica, Inter, Arial, sans-serif;
  --r: 10px;
  --r-btn: 8px;
  --r-lg: 14px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow: 0 12px 40px rgba(0, 0, 0, .12);
  --rail: 232px;
  --pad: 32px;
  --top: 56px;
  --tabbar: 64px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  /* Card padding (cards, flush lists and tables use these) */
  --cx: 24px;
  --cy: 20px;
  /* Monitoring result colors, Mentoring style: text shade, pale fill, line, strong fill */
  --neg: var(--ok); --neg-bg: var(--ok-bg); --neg-line: var(--ok-line); --neg-fill: var(--green);
  --non: var(--danger); --non-bg: var(--red-bg); --non-line: var(--danger-line); --non-fill: var(--red);
  --amb: var(--warn); --amb-bg: var(--amber-bg); --amb-line: var(--amber-line); --amb-fill: var(--amber-fill);
  --exc: #5c5c5c; --exc-bg: var(--hover); --exc-line: var(--line-2); --exc-fill: #a3a39e;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html, body { margin: 0; padding: 0; }
body.bx-app {
  background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 14px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: hidden;
}
html.bx-locked, html.bx-locked body { overflow: hidden; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
svg { display: block; }
.bx-ic { flex: none; }
[hidden] { display: none !important; }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
a[href^="tel:"] { white-space: nowrap; }
.bx-muted { color: var(--mute); }
.bx-mt { margin-top: 16px; }

/* Boot */
.bx-boot { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--bg); }
.bx-boot .bx-mark { opacity: .9; animation: bx-pulse 1.4s ease-in-out infinite; }
@keyframes bx-pulse { 50% { opacity: .35; } }

/* Wordmark (Mentoring bm-wordmark) */
.bx-mark { display: inline-flex; flex-direction: column; align-items: flex-start; line-height: 1; color: var(--ink); text-decoration: none; }
.bx-mark .w { font-size: 15px; letter-spacing: .24em; white-space: nowrap; }
.bx-mark .w i { font-style: normal; font-weight: 300; }
.bx-mark .w b { font-weight: 700; }
.bx-mark .s { font-size: 9px; letter-spacing: .42em; margin-top: 6px; color: var(--mute); white-space: nowrap; }
.bx-mark-sm .w { font-size: 13px; }
.bx-mark-sm .s { font-size: 8px; margin-top: 5px; }
.bx-mark-lg { align-items: center; }
.bx-mark-lg .w { font-size: 20px; }
.bx-mark-lg .s { font-size: 10px; margin-top: 8px; }
.bx-mark-inv { color: #fff; }
.bx-mark-inv .s { color: rgba(255, 255, 255, .6); }

.bx-skip { position: absolute; left: 12px; top: -60px; z-index: 3000; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: var(--r-btn); text-decoration: none; }
.bx-skip:focus { top: 12px; }

/* ---------- Shell: rail (desktop), top bar and tab bar (below 960) ---------- */
.bx-shell { min-height: 100vh; background: linear-gradient(to right, var(--surface) 0, var(--surface) calc(var(--rail) - 1px), var(--line) calc(var(--rail) - 1px), var(--line) var(--rail), transparent var(--rail)); }
.bx-rail {
  position: fixed; inset: 0 auto 0 0; width: var(--rail); z-index: 20; background: var(--surface); border-right: 1px solid var(--line);
  display: flex; flex-direction: column; padding: 28px 16px 16px; overflow-y: auto;
}
.bx-rail-brand { display: block; padding: 0 10px 28px; text-decoration: none; border-radius: 6px; }
.bx-rail-call {
  display: flex; align-items: center; gap: 8px; width: 100%; height: 36px; padding: 0 10px; margin-bottom: 16px; border: 1px solid var(--line);
  border-radius: var(--r-btn); background: var(--bg); color: var(--ink-2); font-size: 13px; font-weight: 600; text-decoration: none;
  transition: border-color .15s var(--ease), background .15s var(--ease);
}
.bx-rail-call:hover { border-color: var(--line-2); background: var(--surface); }
.bx-rail-nav { display: flex; flex-direction: column; gap: 2px; }
.bx-rail-item {
  display: flex; align-items: center; gap: 12px; height: 40px; padding: 0 12px; border-radius: var(--r-btn); color: var(--mute);
  text-decoration: none; font-size: 14px; transition: background .15s var(--ease), color .15s var(--ease);
}
.bx-rail-item:hover { background: var(--hover); color: var(--ink); }
.bx-rail-item.is-on { background: var(--hover); color: var(--ink); font-weight: 600; }
.bx-rail-label { flex: 1; min-width: 0; }
.bx-rail-foot { margin-top: auto; border-top: 1px solid var(--line); padding-top: 12px; }
.bx-rail-user { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px; border: 0; background: none; border-radius: var(--r-btn); text-align: left; color: var(--mute); }
.bx-rail-user:hover { background: var(--hover); }
.bx-rail-user-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.bx-rail-user-name { color: var(--ink); font-weight: 600; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bx-rail-user-role { font-size: 12px; color: var(--mute); }

.bx-badge { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--amber); color: #fff; font-size: 11px; font-weight: 600; line-height: 1; display: inline-flex; align-items: center; justify-content: center; font-variant-numeric: tabular-nums; }

.bx-top { display: none; }
.bx-tabbar { display: none; }
.bx-stage { margin-left: var(--rail); min-height: 100vh; display: flex; flex-direction: column; }
.bx-main { flex: 1; padding: var(--pad) var(--pad) 56px; outline: none; }

/* View entrance (Mentoring bm-enter) */
.bx-enter { animation: bx-rise .25s var(--ease) both; }
@keyframes bx-rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* Avatars (Mentoring bm-av, light) */
.bx-av { position: relative; display: inline-flex; align-items: center; justify-content: center; flex: none; border-radius: 999px; background: #ecebe7; color: var(--ink); font-weight: 600; letter-spacing: .02em; user-select: none; }
.bx-av-28 { width: 28px; height: 28px; font-size: 11px; }
.bx-av-32 { width: 32px; height: 32px; font-size: 12px; }
.bx-av-36 { width: 36px; height: 36px; font-size: 13px; }
.bx-av-40 { width: 40px; height: 40px; font-size: 14px; }
.bx-av-64 { width: 64px; height: 64px; font-size: 22px; }
.bx-rail-user .bx-av, .bx-user .bx-av { background: var(--ink); color: #fff; }

/* Account menu: popover above the rail user (desktop), bottom sheet (phones) */
.bx-menu-overlay { position: fixed; inset: 0; z-index: 2000; background: transparent; opacity: 0; transition: opacity .15s var(--ease); }
.bx-menu-overlay.is-in { opacity: 1; }
.bx-menu {
  position: fixed; left: 16px; bottom: 80px; width: 280px; max-height: calc(100vh - 100px); overflow-y: auto; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: 6px; outline: none;
  transform: translateY(4px); transition: transform .15s var(--ease);
}
.bx-menu-overlay.is-in .bx-menu { transform: none; }
.bx-menu-top { display: flex; align-items: center; gap: 10px; padding: 8px 8px 10px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.bx-menu-top .bx-av { background: var(--ink); color: #fff; }
.bx-menu-who { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.bx-menu-name { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bx-menu-mail { font-size: 12px; color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bx-menu .bx-menu-x { display: none; }
@media (min-width: 960px) {
  .bx-menu > nav.bx-menu-body, .bx-menu > nav.bx-menu-body + .bx-menu-sep { display: none; }
}
.bx-menu-body { display: flex; flex-direction: column; gap: 1px; }
.bx-menu-item {
  display: flex; align-items: center; gap: 10px; width: 100%; height: 38px; padding: 0 10px; border: 0; background: none; border-radius: 7px;
  font-size: 14px; color: var(--ink); text-decoration: none; text-align: left; white-space: nowrap;
}
.bx-menu-item .bx-ic { color: var(--mute); }
.bx-menu-item:hover { background: var(--hover); }
.bx-menu-item.is-on { font-weight: 600; }
.bx-menu-item.is-on .bx-ic { color: var(--ink); }
.bx-menu-item:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; }
.bx-menu-label { flex: 1; }
.bx-menu-sep { height: 1px; background: var(--line); margin: 6px 4px; }
.bx-menu-small { margin-top: 6px; padding: 10px 10px 6px; border-top: 1px solid var(--line); font-size: 12px; color: var(--mute); line-height: 1.5; }
.bx-menu-small p { margin: 0; }
.bx-menu-small a { color: var(--ink); font-weight: 600; text-decoration: none; }

/* ---------- Page ---------- */
.bx-page { max-width: 1200px; margin: 0 auto; }
.bx-role-client .bx-page { max-width: 1120px; }
.bx-page > * + * { margin-top: 24px; }
.bx-page > .bx-head + *, .bx-page > .bx-back + .bx-head, .bx-page > .bx-head-client + .bx-tabs { margin-top: 0; }
.bx-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 24px; margin-bottom: 28px; flex-wrap: wrap; }
.bx-head-titles { min-width: 0; flex: 1 1 320px; }
.bx-head-cap { margin: 0 0 8px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); font-weight: 600; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.bx-h1 { margin: 0; font-size: 28px; line-height: 1.15; font-weight: 700; letter-spacing: -0.02em; color: var(--ink); outline: none; overflow-wrap: anywhere; }
.bx-lead { margin: 6px 0 0; color: var(--mute); font-size: 14px; max-width: 46em; }
.bx-lead-sm { margin: 0; color: var(--ink-2); font-size: 15px; }
.bx-head-big { margin: 8px 0 32px; }
.bx-head-big .bx-h1 { font-size: 40px; line-height: 1.1; letter-spacing: -0.025em; }
.bx-head-big .bx-lead { margin-top: 10px; font-size: 16px; color: var(--ink-2); }
.bx-head-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.bx-back { display: inline-flex; align-items: center; gap: 4px; color: var(--mute); text-decoration: none; font-size: 13px; margin: -6px 0 16px -4px; padding: 4px 6px 4px 2px; border-radius: 6px; }
.bx-back:hover { color: var(--ink); background: var(--hover); }
.bx-cap { margin: 0 0 8px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); font-weight: 600; }
.bx-h3 { margin: 24px 0 12px; font-size: 16px; font-weight: 600; letter-spacing: -0.01em; color: var(--ink); }

/* Client profile head (Mentoring profile header) */
.bx-head-client { align-items: center; gap: 16px 20px; margin-bottom: 20px; }
.bx-head-client .bx-head-titles { flex: 1 1 280px; }
.bx-head-name { display: flex; align-items: center; gap: 8px 12px; flex-wrap: wrap; }
.bx-head-meta { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 4px 0 0; color: var(--mute); font-size: 14px; }
.bx-head-meta > * + *::before { content: ""; display: inline-block; width: 3px; height: 3px; border-radius: 50%; background: var(--faint); margin-right: 16px; vertical-align: middle; position: relative; top: -2px; }
.bx-head-name + .bx-head-meta { margin-top: 6px; }
.bx-head-meta a { color: var(--mute); text-decoration: none; }
.bx-head-meta a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Cards: sections, tools, panels ---------- */
.bx-card, .bx-sec, .bx-tool, .bx-panel {
  --cx: 24px; --cy: 20px;
  position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: var(--cy) var(--cx); min-width: 0;
}
.bx-card-flush { padding: 0; overflow: hidden; }
.bx-sec { overflow: hidden; }
.bx-sec-head, .bx-panel-head { display: flex; align-items: center; gap: 8px 12px; margin-bottom: 16px; min-height: 22px; flex-wrap: wrap; }
.bx-sec-num { display: none; }
.bx-sec-title, .bx-panel-title, .bx-tool-title { margin: 0; font-size: 16px; font-weight: 600; letter-spacing: -0.01em; color: var(--ink); line-height: 1.35; }
.bx-sec-title { flex: 1 1 auto; min-width: 0; }
.bx-sec-meta { margin: 0; color: var(--mute); font-size: 13px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.bx-sec-head > .bx-btn { margin: -6px 0; }
.bx-sec-head > .bx-sec-meta + .bx-btn { margin-left: 4px; }
.bx-tool-title { margin-bottom: 16px; }
.bx-tool-lead { margin: -8px 0 16px; color: var(--ink-2); font-size: 15px; }
.bx-tool p { max-width: 64ch; }
.bx-tool-plain { background: transparent; }
.bx-tool > .bx-btn { margin-top: 16px; }
.bx-tool > p { margin: 0 0 12px; }
.bx-tool > .bx-cap + .bx-card-line { margin-top: 0; }
.bx-sec-body > p { margin: 0 0 12px; color: var(--ink-2); }
.bx-sec-body > p:last-child { margin-bottom: 0; }

/* Layouts */
.bx-split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 24px; align-items: start; }
.bx-split > div > * + * { margin-top: 24px; }
/* Main column plus a side column (Mentoring bm-layout): forms sit in the side column on desktop. */
.bx-split.bx-layout { grid-template-columns: minmax(0, 1fr) 360px; }
.bx-layout-rev > :first-child { order: 2; }
.bx-layout .bx-tool .bx-grid-2 { grid-template-columns: minmax(0, 1fr); }
.bx-layout .bx-tool .bx-checks-2 { grid-template-columns: minmax(0, 1fr); }
.bx-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.bx-grid-2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.bx-grid-gap { gap: 24px; }
.bx-grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.bx-row-gap { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.bx-tabpanel { min-height: 200px; }
.bx-tabpanel > div > * + * { margin-top: 24px; }
.bx-tabpanel > div > .bx-grid-2 + .bx-sec { margin-top: 24px; }
.bx-tabpanel > .bx-split > *, .bx-tabpanel > div > .bx-grid-2 > *, .bx-page > .bx-split > * { margin-top: 0; }

/* Home (client): status hero and the side column (Mentoring grid-2, 2fr 1fr) */
.bx-home-top { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.bx-home-side { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.bx-home-side .bx-tel { width: 100%; }

/* ---------- Status hero (check-in card): Mentoring bm-hero ---------- */
.bx-status {
  position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: flex-start; gap: 8px;
  padding: 28px 32px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); color: var(--ink);
}
.bx-status-cap { display: flex; justify-content: space-between; align-items: center; gap: 12px; width: 100%; margin: 0 0 6px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: var(--mute); position: relative; z-index: 1; }
.bx-status-kick { display: inline-flex; align-items: center; gap: 10px; }
.bx-status-day { letter-spacing: .02em; text-transform: none; font-weight: 600; font-size: 13px; }
.bx-status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--faint); flex: none; }
.bx-status-title { margin: 0; font-size: 32px; line-height: 1.1; font-weight: 700; letter-spacing: -0.02em; position: relative; z-index: 1; }
.bx-status-text { margin: 0; max-width: 40em; font-size: 15px; color: var(--ink-2); position: relative; z-index: 1; }
.bx-status-btn { margin-top: 14px; position: relative; z-index: 1; }
/* Selected: the dark hero, the one thing to act on today */
.bx-status-selected { background: var(--ink); border-color: var(--ink); color: #fff; }
.bx-status-selected::after { content: ""; position: absolute; right: -120px; top: -160px; width: 420px; height: 420px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .06); pointer-events: none; }
.bx-status-selected::before { content: ""; position: absolute; right: -40px; top: -80px; width: 260px; height: 260px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .05); pointer-events: none; }
.bx-status-selected .bx-status-cap { color: rgba(255, 255, 255, .6); }
.bx-status-selected .bx-status-day { color: #fff; }
.bx-status-selected .bx-status-text { color: rgba(255, 255, 255, .72); }
.bx-status-selected .bx-status-dot { background: #f26b6b; box-shadow: 0 0 0 0 rgba(242, 107, 107, .6); animation: bx-ping 2s infinite; }
.bx-status-selected :focus-visible { outline-color: #fff; }
@keyframes bx-ping { 0% { box-shadow: 0 0 0 0 rgba(242, 107, 107, .55); } 70% { box-shadow: 0 0 0 7px rgba(242, 107, 107, 0); } 100% { box-shadow: 0 0 0 0 rgba(242, 107, 107, 0); } }
.bx-status-clear .bx-status-dot, .bx-status-done .bx-status-dot { background: var(--green); }
.bx-status-done { border-color: var(--ok-line); }
.bx-status-missed { background: var(--amber-bg); border-color: var(--amber-line); }
.bx-status-missed .bx-status-dot { background: var(--amber-fill); }
.bx-status-missed .bx-status-cap { color: var(--warn); }
.bx-status-quiet { border: 1px dashed var(--line-2); }
.bx-status-quiet .bx-status-title { font-size: 24px; }
.bx-status-quiet .bx-status-text { color: var(--mute); }
/* Confirmation code */
.bx-code { display: grid; gap: 2px; margin-top: 14px; padding: 14px 18px; border-radius: var(--r); background: var(--bg); min-width: min(100%, 300px); position: relative; z-index: 1; }
.bx-code-l { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: var(--mute); }
.bx-code-v { font-size: 34px; font-weight: 700; letter-spacing: .16em; line-height: 1.15; font-variant-numeric: tabular-nums; }
.bx-code-t { font-size: 13px; color: var(--mute); }
.bx-status-selected .bx-code { background: rgba(255, 255, 255, .1); }
.bx-status-selected .bx-code-l, .bx-status-selected .bx-code-t { color: rgba(255, 255, 255, .7); }
.bx-status-missed .bx-code { background: rgba(255, 255, 255, .7); }

/* Next steps (numbered rows) */
.bx-steps { list-style: none; margin: 0; padding: 0; counter-reset: bxst; }
.bx-steps li { counter-increment: bxst; position: relative; display: flex; flex-direction: column; gap: 2px; padding: 12px 0 12px 38px; border-bottom: 1px solid var(--line); color: var(--mute); font-size: 13px; line-height: 1.45; }
.bx-steps li:first-child { padding-top: 0; }
.bx-steps li:first-child::before { top: -2px; }
.bx-steps li:last-child { border-bottom: 0; padding-bottom: 0; }
.bx-steps li::before { content: counter(bxst); position: absolute; left: 0; top: 10px; width: 24px; height: 24px; border-radius: 50%; background: var(--hover); color: var(--ink); font-size: 12px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; font-variant-numeric: tabular-nums; }
.bx-steps li strong { color: var(--ink); font-size: 14px; font-weight: 600; }

/* Stats: Mentoring bm-strip */
.bx-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.bx-stat { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.bx-stat-n { font-size: 28px; font-weight: 700; letter-spacing: -0.02em; line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums; }
.bx-stat-l { font-size: 12px; color: var(--mute); line-height: 1.3; }
.bx-stat-negative .bx-stat-n { color: var(--neg); }
.bx-stat-nonneg .bx-stat-n { color: var(--non); }
.bx-stat-amber .bx-stat-n { color: var(--amb); }
.bx-stat-excused .bx-stat-n { color: var(--mute); }
.bx-stats-row { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; padding: 20px 24px; border: 1px solid var(--line); border-radius: var(--r); background: transparent; }
.bx-stats-row .bx-stat + .bx-stat { border-left: 1px solid var(--line); padding-left: 16px; }

/* Tiles (client Your record): three cells of one card */
.bx-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; }
.bx-tile { min-width: 0; padding: 0 24px; }
.bx-tile:first-child { padding-left: 0; }
.bx-tile:last-child { padding-right: 0; }
.bx-tile + .bx-tile { border-left: 1px solid var(--line); }
.bx-tile-btn { appearance: none; display: block; width: 100%; padding: 0; border: 0; background: none; text-align: left; color: inherit; border-radius: 6px; }
.bx-tile-btn:hover .bx-tile-big { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.bx-tile-big { margin: 0 0 8px; color: var(--ink); font-size: 20px; font-weight: 700; letter-spacing: -0.015em; line-height: 1.2; }
.bx-tile-sub { margin: 8px 0 0; color: var(--mute); font-size: 13px; }
.bx-result-line { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.bx-result-subs { font-size: 13px; color: var(--non); font-weight: 600; }
.bx-result-lab { font-size: 13px; color: var(--mute); }

/* ---------- Lists (Mentoring rows: hairlines inside a card) ---------- */
.bx-list, .bx-facts-list, .bx-sisters, .bx-audit { list-style: none; margin: 0; padding: 0; }
.bx-list > li { border-bottom: 1px solid var(--line); }
.bx-list > li:last-child { border-bottom: 0; }
.bx-list-row { display: flex; justify-content: space-between; align-items: center; gap: 8px 16px; padding: 12px 0; color: var(--ink); text-decoration: none; flex-wrap: wrap; }
.bx-list > li:first-child > .bx-list-row, .bx-list > li.bx-list-row:first-child { padding-top: 0; }
.bx-list > li:last-child > .bx-list-row, .bx-list > li.bx-list-row:last-child { padding-bottom: 0; }
.bx-list-main { min-width: 0; flex: 1 1 200px; color: var(--ink); text-decoration: none; font-weight: 500; font-size: 14px; }
.bx-list-main .bx-muted { font-weight: 400; }
.bx-list-meta { display: inline-flex; align-items: center; gap: 8px; color: var(--mute); font-size: 13px; white-space: nowrap; }
.bx-list-link:hover .bx-list-main { text-decoration: underline; text-underline-offset: 3px; }
a.bx-list-main:hover { text-decoration: underline; text-underline-offset: 3px; }
.bx-list-cols { column-count: 2; column-gap: 32px; }
.bx-cols .bx-list-cols { column-count: 1; }
.bx-list-cols > li { break-inside: avoid; }
.bx-list-cols > li.bx-list-row { flex-wrap: nowrap; }
.bx-list-cols .bx-list-main { flex: 1 1 auto; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.bx-facts-list li { padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--ink-2); font-size: 14px; }
.bx-facts-list li:first-child { padding-top: 0; }
.bx-facts-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.bx-facts-list li strong { display: block; margin-bottom: 2px; color: var(--ink); font-weight: 600; }

/* Facts: Mentoring key and value rows */
.bx-facts { margin: 0; }
.bx-fact { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.bx-fact:first-child { padding-top: 0; }
.bx-fact:last-child { border-bottom: 0; padding-bottom: 0; }
.bx-fact dt { color: var(--mute); }
.bx-fact dd { margin: 0; color: var(--ink); font-weight: 600; overflow-wrap: anywhere; }
.bx-fact dd .bx-muted { font-weight: 400; }
.bx-fact dd a { color: var(--ink); }

/* Rows (results, tests, documents): flush rows inside a card, Mentoring bm-srow */
.bx-rows { list-style: none; margin: 0 calc(var(--cx) * -1); padding: 0; border-top: 1px solid var(--line); }
.bx-sec-body > .bx-rows:last-child, .bx-day > .bx-rows:last-child { margin-bottom: calc(var(--cy) * -1); }
.bx-rows > li { border-bottom: 1px solid var(--line); }
.bx-rows > li:last-child { border-bottom: 0; }
.bx-row { appearance: none; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 16px; width: 100%; padding: 14px var(--cx); border: 0; background: none; text-align: left; color: var(--ink); font-size: 14px; transition: background .15s var(--ease); }
button.bx-row:hover { background: #fafaf8; }
button.bx-row:focus-visible { outline-offset: -2px; }
.bx-row-static { cursor: default; }
.bx-row-date { display: flex; flex-direction: column; gap: 1px; min-width: 92px; font-size: 12px; color: var(--mute); font-variant-numeric: tabular-nums; }
.bx-row-date b { color: var(--ink); font-size: 14px; font-weight: 600; }
.bx-row-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.bx-row-title { color: var(--ink); font-size: 15px; font-weight: 600; overflow-wrap: anywhere; }
.bx-row-sub { color: var(--mute); font-size: 13px; }
.bx-row-end { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.bx-row-end > .bx-ic { color: var(--faint); }
.bx-row-ic { width: 40px; height: 40px; border-radius: var(--r); border: 1px solid var(--line); display: inline-flex; align-items: center; justify-content: center; color: var(--ink-2); background: var(--surface); }
.bx-row.is-void .bx-row-title, .bx-row.is-void .bx-row-date b { text-decoration: line-through; color: var(--mute); }

/* ---------- Buttons (Mentoring bm-btn) ---------- */
.bx-btn {
  appearance: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px;
  border-radius: var(--r-btn); border: 1px solid transparent; background: var(--surface); color: var(--ink); font-size: 14px; font-weight: 600; line-height: 1;
  text-decoration: none; white-space: nowrap; user-select: none;
  transition: background .12s var(--ease), border-color .12s var(--ease), color .12s var(--ease), opacity .12s, transform 80ms var(--ease);
}
.bx-btn:not(:disabled):active { transform: scale(.98); }
.bx-btn-primary { background: var(--ink); color: #fff; }
.bx-btn-primary:hover { background: #2a2a2a; }
.bx-btn-secondary, .bx-btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line-2); }
.bx-btn-secondary:hover, .bx-btn-ghost:hover { background: var(--hover); }
.bx-dialog-foot > .bx-btn-ghost:first-child { background: transparent; border-color: transparent; color: var(--ink-2); }
.bx-dialog-foot > .bx-btn-ghost:first-child:hover { background: var(--hover); color: var(--ink); }
.bx-btn-danger { background: var(--red); color: #fff; }
.bx-btn-danger:hover { background: #a82828; }
.bx-btn-danger-ghost { background: transparent; color: var(--danger); }
.bx-btn-danger-ghost:hover { background: var(--red-bg); }
.bx-btn-inverse { background: #fff; color: var(--ink); }
.bx-btn-inverse:hover { background: #ececea; }
.bx-btn-link { height: auto; min-height: 28px; padding: 0 2px; background: none; border: 0; color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; border-radius: 3px; }
.bx-btn-link:hover { text-decoration-color: var(--ink); background: none; }
.bx-btn-sm { height: 32px; padding: 0 12px; font-size: 13px; gap: 6px; }
.bx-btn-sm.bx-btn-link { height: auto; padding: 0 2px; }
.bx-btn-lg { height: 48px; padding: 0 20px; font-size: 15px; border-radius: var(--r); }
.bx-btn-block { display: flex; width: 100%; }
.bx-btn:disabled { opacity: .45; cursor: not-allowed; }
.bx-btn-primary:disabled { opacity: 1; background: #d9d9d5; color: #5c5c5c; }
.bx-btn.is-busy { opacity: .7; cursor: progress; }
.bx-iconbtn { appearance: none; width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; padding: 0; border-radius: var(--r-btn); border: 0; background: transparent; color: var(--mute); flex: none; transition: background .15s var(--ease), color .15s var(--ease); }
.bx-iconbtn:hover { background: var(--hover); color: var(--ink); }
.bx-iconbtn.is-off { opacity: .3; pointer-events: none; }
.bx-linkbtn { appearance: none; background: none; border: 0; padding: 0; color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.bx-linkbtn:hover { text-decoration-color: currentColor; }
.bx-textbtn { appearance: none; background: none; border: 0; padding: 0 8px; min-height: 44px; color: var(--ink); font-weight: 600; }

/* ---------- Pills (Mentoring bm-pill) ---------- */
.bx-chip { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 9px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--hover); color: var(--ink-2); white-space: nowrap; line-height: 1; }
.bx-chip-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--faint); flex: none; }
.bx-chip-negative { color: var(--neg); background: var(--neg-bg); }
.bx-chip-negative .bx-chip-dot { background: var(--green); }
.bx-chip-nonneg { color: var(--non); background: var(--non-bg); }
.bx-chip-nonneg .bx-chip-dot { background: var(--red); }
.bx-chip-amber { color: var(--amb); background: var(--amb-bg); }
.bx-chip-amber .bx-chip-dot { background: var(--amber-fill); }
.bx-chip-excused { color: var(--exc); background: var(--exc-bg); }
.bx-chip-excused .bx-chip-dot { background: #8f8f8a; }
.bx-chip-plain { background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-2); color: var(--ink-2); }
.bx-chip-plain .bx-chip-dot { background: var(--ink); }
.bx-chip-ink { background: var(--ink); color: #fff; }
.bx-chip-ink .bx-chip-dot { background: #fff; }
.bx-dialog-result .bx-chip { height: 28px; padding: 0 12px; font-size: 13px; }

/* Filter chips (Mentoring client filters) */
.bx-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.bx-fchip { height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); font-size: 13px; font-weight: 600; color: var(--ink-2); display: inline-flex; align-items: center; gap: 6px; transition: border-color .15s var(--ease), background .15s var(--ease), color .15s var(--ease); }
.bx-fchip:hover { border-color: var(--mute); }
.bx-fchip.is-on { background: var(--ink); color: #fff; border-color: var(--ink); }
.bx-fchip-n { color: var(--faint); font-variant-numeric: tabular-nums; }
.bx-fchip.is-on .bx-fchip-n { color: rgba(255, 255, 255, .6); }

/* ---------- Forms (Mentoring bm-form) ---------- */
.bx-form { display: flex; flex-direction: column; gap: 16px; }
.bx-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.bx-label { display: block; padding: 0; font-size: 13px; font-weight: 600; color: var(--ink); }
.bx-optional { font-weight: 400; color: var(--faint); }
.bx-hint { margin: 0; font-size: 13px; line-height: 1.45; color: var(--mute); font-weight: 400; }
.bx-fine { margin: 0; font-size: 12px; line-height: 1.5; color: var(--faint); }
.bx-static { margin: 0; display: flex; align-items: center; min-height: 40px; padding: 0 12px; border-radius: var(--r); background: var(--bg); color: var(--ink-2); font-size: 14px; overflow-wrap: anywhere; }
.bx-input {
  width: 100%; height: 40px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--surface); color: var(--ink);
  font-size: 14px; line-height: 1.3; -webkit-appearance: none; appearance: none; transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.bx-input::placeholder { color: var(--faint); }
.bx-input:hover { border-color: #c4c4bf; }
.bx-input:focus, .bx-input:focus-visible { outline: 2px solid var(--ink); outline-offset: -1px; border-color: var(--ink); }
.bx-input[readonly] { background: var(--bg); }
.bx-textarea { height: auto; min-height: 84px; padding: 10px 12px; line-height: 1.5; resize: vertical; }
.bx-select { padding-right: 34px; background-image: linear-gradient(45deg, transparent 50%, var(--mute) 50%), linear-gradient(135deg, var(--mute) 50%, transparent 50%); background-position: calc(100% - 17px) 17px, calc(100% - 12px) 17px; background-size: 5px 5px; background-repeat: no-repeat; }
.bx-input-num { max-width: 110px; }
input[type=date].bx-input, input[type=time].bx-input { padding-right: 8px; min-width: 0; }
input[type=search].bx-input::-webkit-search-decoration { -webkit-appearance: none; }
.bx-fieldset { margin: 0; padding: 0; border: 0; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.bx-fieldset legend { margin-bottom: 8px; }
.bx-fieldset > .bx-hint { margin-top: -6px; }
.bx-inline { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.bx-checks-2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px 20px; }
.bx-days { display: flex; flex-wrap: wrap; gap: 8px; }
.bx-days .bx-check { height: 40px; padding: 0 12px 0 10px; border: 1px solid var(--line-2); border-radius: 999px; align-items: center; }
.bx-days .bx-check:has(.bx-check-input:checked) { border-color: var(--ink); }

.bx-pw { position: relative; }
.bx-pw .bx-input { padding-right: 44px; }
.bx-pw-toggle { position: absolute; right: 2px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border: 0; background: none; color: var(--mute); display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; }
.bx-pw-toggle:hover { color: var(--ink); }

.bx-check { position: relative; display: flex; align-items: flex-start; gap: 10px; cursor: pointer; color: var(--ink); font-size: 14px; line-height: 1.4; min-height: 24px; }
.bx-check-input { position: absolute; opacity: 0; width: 20px; height: 20px; margin: 0; left: 0; top: 0; cursor: pointer; }
.bx-check-box { flex: none; width: 20px; height: 20px; margin-top: 0; border-radius: 6px; border: 1.5px solid var(--line-2); background: var(--surface); display: inline-flex; align-items: center; justify-content: center; color: transparent; transition: background .15s var(--ease), border-color .15s var(--ease), color .15s; }
.bx-check:hover .bx-check-box { border-color: var(--mute); }
.bx-check-input:checked + .bx-check-box { background: var(--ink); border-color: var(--ink); color: #fff; }
.bx-check-input:focus-visible + .bx-check-box { outline: 2px solid var(--focus); outline-offset: 2px; }
.bx-check-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.bx-check.is-off { opacity: .45; cursor: not-allowed; }

.bx-switch-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); position: relative; }
.bx-switch-row:last-child { border-bottom: 0; }
.bx-switch-text { flex: 1; min-width: 0; }
.bx-switch-label { font-weight: 600; font-size: 14px; cursor: pointer; color: var(--ink); }
.bx-switch-text .bx-hint { margin-top: 2px; }
.bx-switch { position: relative; width: 40px; height: 24px; flex: none; margin-top: 1px; }
.bx-switch-input { position: absolute; inset: -10px -6px; opacity: 0; margin: 0; cursor: pointer; z-index: 1; width: auto; height: auto; }
.bx-switch-track { position: absolute; inset: 0; border-radius: 999px; background: var(--line-2); transition: background .15s var(--ease); }
.bx-switch-track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .2); transition: transform .15s var(--ease); }
.bx-switch-input:checked + .bx-switch-track { background: var(--ink); }
.bx-switch-input:checked + .bx-switch-track::after { transform: translateX(16px); }
.bx-switch-input:focus-visible + .bx-switch-track { outline: 2px solid var(--focus); outline-offset: 2px; }
.bx-form > .bx-switch-row { padding: 4px 0 14px; }
.bx-form > .bx-switch-row:last-of-type { border-bottom: 1px solid var(--line); }

/* Segmented control (Mentoring bm-seg) */
.bx-seg { display: inline-flex; flex-wrap: wrap; padding: 3px; gap: 2px; background: var(--hover); border-radius: 9px; max-width: 100%; align-self: flex-start; }
.bx-seg-item { appearance: none; min-height: 32px; padding: 0 12px; border: 0; background: transparent; border-radius: 7px; font-size: 13px; font-weight: 600; color: var(--mute); white-space: nowrap; transition: background .15s var(--ease), color .15s var(--ease); }
.bx-seg-item:hover { color: var(--ink); }
.bx-seg-item.is-on { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, .08), 0 0 0 1px rgba(0, 0, 0, .04); }
.bx-seg-item:focus-visible { outline-offset: 0; }
/* Choice chips (Mentoring bm-chip-opt): reasons, support kinds, lab status */
.bx-seg-wrap { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; background: none; border-radius: 0; }
.bx-seg-wrap .bx-seg-item { min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink-2); box-shadow: none; }
.bx-seg-wrap .bx-seg-item:hover { border-color: var(--mute); color: var(--ink); }
.bx-seg-wrap .bx-seg-item.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }
/* Option cards (test type) */
.bx-seg-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; padding: 0; background: none; border-radius: 0; width: 100%; }
.bx-seg-grid .bx-seg-item { min-height: 56px; padding: 8px 14px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--surface); color: var(--ink); white-space: normal; text-align: left; font-size: 14px; line-height: 1.25; box-shadow: none; }
.bx-seg-grid .bx-seg-item:hover { border-color: var(--mute); }
.bx-seg-grid .bx-seg-item.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }
/* Result buttons: colored when chosen */
.bx-seg-result { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 0; background: none; border-radius: 0; width: 100%; }
.bx-seg-result .bx-seg-item { min-height: 52px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--surface); color: var(--ink); font-size: 14px; box-shadow: none; }
.bx-seg-result .bx-seg-item:hover { border-color: var(--mute); }
.bx-seg-result .bx-seg-negative.is-on { background: var(--ok); border-color: var(--ok); color: #fff; }
.bx-seg-result .bx-seg-nonneg.is-on { background: var(--danger); border-color: var(--danger); color: #fff; }
.bx-seg-result .bx-seg-amber.is-on { background: var(--warn); border-color: var(--warn); color: #fff; }
.bx-seg-sm { flex-wrap: nowrap; }
.bx-seg-sm .bx-seg-item { min-height: 28px; padding: 0 10px; font-size: 12px; }
.bx-seg-sm .bx-seg-nonneg.is-on { background: var(--danger); color: #fff; }
.bx-seg-sm .bx-seg-amber.is-on { background: var(--warn); color: #fff; }

/* Tabs (Mentoring bm-tabs) */
.bx-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: 0 0 24px; overflow-x: auto; scrollbar-width: none; }
.bx-tabs::-webkit-scrollbar { display: none; }
.bx-tab { appearance: none; position: relative; display: inline-flex; align-items: center; gap: 6px; height: 44px; padding: 0 12px; border: 0; background: none; color: var(--mute); font-weight: 600; font-size: 14px; white-space: nowrap; border-radius: 6px 6px 0 0; }
.bx-tab:hover { color: var(--ink); }
.bx-tab.is-on { color: var(--ink); }
.bx-tab.is-on::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 2px; background: var(--ink); border-radius: 2px; }
.bx-tab-count { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--hover); color: var(--ink-2); font-size: 11px; display: inline-flex; align-items: center; justify-content: center; font-variant-numeric: tabular-nums; }

/* Notes (Mentoring callouts) */
.bx-note { display: flex; gap: 10px; align-items: flex-start; margin: 0; padding: 12px 14px; border-radius: var(--r); border: 1px solid transparent; background: var(--hover); color: var(--ink-2); font-size: 14px; line-height: 1.45; }
.bx-note .bx-ic { flex: none; margin-top: 1px; }
.bx-note-error { background: var(--red-bg); border-color: var(--danger-line); color: #8f2323; }
.bx-note-warn { background: var(--amber-bg); border-color: var(--amber-line); color: #6e480f; }

/* Link box (Mentoring bm-copy) */
.bx-linkbox { display: flex; gap: 8px; align-items: stretch; }
.bx-linkbox-input { font-size: 13px; color: var(--ink-2); min-width: 0; flex: 1 1 auto; }

/* Empty states (Mentoring bm-empty) */
.bx-empty { text-align: center; padding: 28px 16px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.bx-empty-ic { width: 44px; height: 44px; border-radius: 50%; background: var(--hover); color: var(--mute); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 6px; }
.bx-empty-title { margin: 0; font-weight: 600; font-size: 15px; color: var(--ink); }
.bx-empty-text { margin: 0; color: var(--mute); max-width: 380px; font-size: 14px; }
.bx-empty .bx-btn { margin-top: 10px; }
.bx-page > .bx-empty { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 40px 24px; }

/* ---------- Toasts and dialogs (Mentoring) ---------- */
.bx-toasts { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 3000; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; width: max-content; max-width: calc(100vw - 32px); }
.bx-toast { display: flex; align-items: center; gap: 10px; background: var(--ink); color: #fff; padding: 11px 16px; border-radius: 10px; font-size: 14px; box-shadow: var(--shadow); opacity: 0; transform: translateY(8px); transition: opacity .2s var(--ease), transform .2s var(--ease); max-width: 100%; }
.bx-toast.is-in { opacity: 1; transform: none; }
.bx-toast .bx-ic { color: #7fd1a1; }
.bx-toast-error .bx-ic { color: #f0a0a0; }

.bx-overlay { position: fixed; inset: 0; z-index: 2000; background: rgba(17, 17, 17, .32); display: flex; align-items: center; justify-content: center; padding: 24px; opacity: 0; transition: opacity .2s var(--ease); }
.bx-overlay.is-in { opacity: 1; }
.bx-dialog { --cx: 24px; --cy: 20px; position: relative; background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow); width: 100%; max-width: 520px; max-height: calc(100vh - 48px); display: flex; flex-direction: column; outline: none; transform: translateY(8px) scale(.985); transition: transform .2s var(--ease); }
.bx-overlay.is-in .bx-dialog { transform: none; }
.bx-dialog-sm { max-width: 420px; }
.bx-dialog-md { max-width: 560px; }
.bx-dialog-lg { max-width: 680px; }
.bx-dialog-head { display: flex; align-items: flex-start; gap: 12px; padding: 20px 24px 0; }
.bx-dialog-titles { flex: 1; min-width: 0; padding-top: 4px; }
.bx-dialog-cap { margin: 0 0 4px; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; color: var(--mute); }
.bx-dialog-title { margin: 0; font-size: 18px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.35; color: var(--ink); }
.bx-dialog-sub { margin: 2px 0 0; color: var(--mute); font-size: 13px; }
.bx-dialog-x { margin: -2px -10px 0 0; }
.bx-dialog-body { padding: 18px 24px 20px; overflow-y: auto; min-height: 0; -webkit-overflow-scrolling: touch; }
.bx-dialog-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 24px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.bx-dialog-text { margin: 0 0 12px; color: var(--ink-2); font-size: 14px; }
.bx-dialog-result { margin-bottom: 16px; }
.bx-dialog-body .bx-facts { margin-top: 4px; }
.bx-done-t { margin: 0 0 6px; color: var(--ink); font-size: 18px; font-weight: 700; letter-spacing: -0.01em; }
.bx-done p { color: var(--ink-2); }
.bx-test-detail > .bx-note { margin-bottom: 16px; }

/* Skeleton (Mentoring shimmer) */
.bx-skel { background: linear-gradient(90deg, #ecebe7 0%, #f3f2ef 50%, #ecebe7 100%); background-size: 200% 100%; animation: bx-shimmer 1.4s ease-in-out infinite; border-radius: 8px; }
.bx-skel-gap { margin-top: 12px; }
.bx-skel-block { border-radius: var(--r); margin-top: 24px; }
.bx-skel-cols { display: grid; grid-template-columns: 2fr 1fr; gap: 24px; }
@keyframes bx-shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* ---------- Auth (Mentoring sign in: wordmark, one card) ---------- */
.bx-auth { min-height: 100vh; background: var(--bg); display: flex; align-items: center; justify-content: center; padding: 48px 16px; }
.bx-auth-inner { width: 100%; max-width: 420px; display: flex; flex-direction: column; align-items: center; outline: none; }
.bx-auth-mark { text-decoration: none; margin-bottom: 32px; border-radius: 6px; }
.bx-auth-card { width: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: 0 12px 40px rgba(0, 0, 0, .06); padding: 36px 36px 32px; display: flex; flex-direction: column; gap: 16px; }
.bx-auth-cap { margin: 0 0 -8px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); font-weight: 600; }
.bx-auth-title { margin: 0; font-size: 24px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; color: var(--ink); outline: none; }
.bx-auth-sub { margin: -8px 0 0; color: var(--ink-2); font-size: 14px; }
.bx-auth-sub + .bx-auth-sub { margin-top: 0; }
.bx-auth-sub a { font-weight: 600; }
.bx-auth-alt { margin: 4px 0 0; padding-top: 18px; border-top: 1px solid var(--line); text-align: center; color: var(--mute); font-size: 14px; }
.bx-auth-alt a { color: var(--ink); font-weight: 600; text-decoration: none; }
.bx-auth-alt a:hover { text-decoration: underline; text-underline-offset: 3px; }
.bx-auth-foot { margin: 24px 0 0; color: var(--mute); font-size: 13px; text-align: center; line-height: 1.6; }
.bx-auth-foot a { color: var(--ink); text-decoration: none; font-weight: 600; }
.bx-auth-card .bx-fine { text-align: center; }

/* ---------- Results calendar (Mentoring month view) ---------- */
.bx-results { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 24px; align-items: start; }
.bx-results-cal { min-width: 0; }
.bx-results-cal > .bx-day { margin-top: 16px; }
.bx-cal { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.bx-cal-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px 14px 20px; border-bottom: 1px solid var(--line); }
.bx-cal-title { margin: 0; font-size: 18px; font-weight: 700; letter-spacing: -0.02em; color: var(--ink); }
.bx-cal-nav { display: flex; gap: 4px; }
.bx-cal-wd { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
.bx-cal-wd span { padding: 10px 10px; font-size: 12px; color: var(--mute); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
.bx-cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); grid-auto-rows: minmax(84px, auto); }
.bx-cal-cell {
  appearance: none; position: relative; display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 6px; min-width: 0;
  padding: 6px; border: 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); color: var(--ink); font-size: 13px; text-align: left; transition: background .15s var(--ease);
}
.bx-cal-cell:nth-child(7n) { border-right: 0; }
.bx-cal-cell:hover { background: #fafaf8; }
.bx-cal-cell:focus-visible { outline-offset: -2px; z-index: 1; }
.bx-cal-cell.is-blank { background: #fbfbfa; cursor: default; }
.bx-cal-cell.is-future { background: var(--surface); color: var(--faint); cursor: default; }
.bx-cal-cell.is-future .bx-cal-n { color: #8f8f8a; font-weight: 500; }
.bx-cal-n { width: 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 600; font-size: 13px; font-variant-numeric: tabular-nums; flex: none; }
.bx-cal-cell.is-today .bx-cal-n { background: var(--ink); color: #fff; }
.bx-cal-cell.is-picked { background: var(--hover); box-shadow: inset 0 0 0 2px var(--ink); z-index: 1; }
.bx-cal-l { display: block; width: 100%; padding: 3px 6px; border-radius: 5px; border: 1px solid var(--line-2); background: var(--surface); font-size: 12px; font-weight: 600; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bx-cal-cell.is-negative .bx-cal-l { color: var(--neg); background: var(--neg-bg); border-color: var(--neg-line); box-shadow: inset 3px 0 0 var(--neg-fill); padding-left: 8px; }
.bx-cal-cell.is-nonneg .bx-cal-l { color: var(--non); background: var(--non-bg); border-color: var(--non-line); box-shadow: inset 3px 0 0 var(--non-fill); padding-left: 8px; }
.bx-cal-cell.is-amber .bx-cal-l { color: var(--amb); background: var(--amb-bg); border-color: var(--amb-line); box-shadow: inset 3px 0 0 var(--amb-fill); padding-left: 8px; }
.bx-cal-cell.is-excused .bx-cal-l { color: var(--exc); background: var(--exc-bg); border-color: var(--exc-bg); }
.bx-legend { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 0; padding: 12px 20px; border-top: 1px solid var(--line); font-size: 12px; color: var(--mute); }
.bx-legend li { display: inline-flex; align-items: center; gap: 6px; }
.bx-legend li::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--line-2); }
.bx-legend li.is-negative::before { background: var(--neg-fill); }
.bx-legend li.is-nonneg::before { background: var(--non-fill); }
.bx-legend li.is-amber::before { background: var(--amb-fill); }
.bx-legend li.is-excused::before { background: var(--exc-fill); }
.bx-day { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: var(--cy) var(--cx); overflow: hidden; }
.bx-day > .bx-muted { margin: 0; }
.bx-day-title { margin: 0 0 14px; font-size: 16px; font-weight: 600; letter-spacing: -0.01em; color: var(--ink); }
.bx-results-list { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: var(--cy) var(--cx); overflow: hidden; }
.bx-results-list .bx-sec-head { margin-bottom: 14px; }
.bx-results-list > .bx-rows:last-child { margin-bottom: calc(var(--cy) * -1); }
.bx-results-list > .bx-empty { border-top: 1px solid var(--line); margin: 0 calc(var(--cx) * -1) calc(var(--cy) * -1); }

/* Upload (Mentoring drop area) */
.bx-file { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 140px; padding: 20px; border: 1px dashed var(--line-2); border-radius: var(--r); background: var(--bg); text-align: center; cursor: pointer; color: var(--ink); transition: border-color .15s var(--ease), background .15s var(--ease); }
.bx-file .bx-ic { color: var(--mute); margin-bottom: 4px; }
.bx-file:hover { border-color: var(--mute); background: var(--surface); }
.bx-file.has-file { border-style: solid; border-color: var(--ink); background: var(--surface); }
.bx-file:focus-within { outline: 2px solid var(--ink); outline-offset: 2px; }
.bx-file-input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.bx-file-t { font-weight: 600; font-size: 15px; }
.bx-file-name { font-size: 13px; color: var(--mute); overflow-wrap: anywhere; }
.bx-file.has-file .bx-file-name { color: var(--ink); font-weight: 600; }

/* Contacts and request cards */
.bx-contacts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.bx-contact { display: flex; flex-direction: column; gap: 14px; padding: 20px 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); min-width: 0; }
.bx-sec .bx-contact { background: var(--bg); border-color: transparent; padding: 18px 20px; }
.bx-contacts.is-past .bx-contact { opacity: .7; }
.bx-contact-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.bx-contact-head > div { min-width: 0; }
.bx-contact-name { margin: 0; color: var(--ink); font-size: 16px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.35; }
.bx-contact-rel { margin: 2px 0 0; color: var(--mute); font-size: 13px; overflow-wrap: anywhere; }
.bx-contact-rel a { color: var(--ink-2); }
.bx-contact-for { margin: 0 0 4px; font-size: 12px; color: var(--mute); }
.bx-contact-for a { color: var(--ink); font-weight: 600; }
.bx-contact .bx-facts { padding-top: 12px; border-top: 1px solid var(--line); }
.bx-contact .bx-fact { grid-template-columns: 120px minmax(0, 1fr); padding: 8px 0; font-size: 13px; }
.bx-contact .bx-fact:first-child { padding-top: 0; }
.bx-contact .bx-fact:last-child { padding-bottom: 0; }
.bx-contact > .bx-row-gap:empty { display: none; }
.bx-quote { margin: 0; padding: 12px 14px; border-radius: var(--r); background: var(--bg); color: var(--ink-2); white-space: pre-wrap; font-size: 14px; }

/* Billing */
.bx-card-line { margin: 0 0 4px; color: var(--ink); font-size: 20px; font-weight: 700; letter-spacing: -0.015em; }
.bx-card-line.bx-muted { color: var(--mute); font-weight: 600; }
.bx-card-brand { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; margin-right: 8px; border-radius: 6px; background: var(--ink); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .06em; vertical-align: 3px; }

/* Tables (Mentoring table head and rows), flush inside cards */
.bx-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.bx-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.bx-table th { height: 40px; padding: 0 12px; background: #fbfbfa; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; color: var(--mute); font-size: 12px; font-weight: 600; letter-spacing: .04em; white-space: nowrap; }
.bx-table td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: middle; color: var(--ink); }
.bx-table tr:last-child td { border-bottom: 0; }
.bx-table th:first-child, .bx-table td:first-child { padding-left: var(--cx); }
.bx-table th:last-child, .bx-table td:last-child { padding-right: var(--cx); }
.bx-table tbody tr { transition: background .15s var(--ease); }
.bx-table tbody tr:hover { background: #fafaf8; }
.bx-table td a { color: var(--ink); font-weight: 600; text-decoration: none; }
.bx-table td a:hover { text-decoration: underline; text-underline-offset: 3px; }
.bx-num { text-align: right; font-variant-numeric: tabular-nums; }
.bx-table th.bx-num { text-align: right; }
.bx-table td.is-amber { color: var(--amb); font-weight: 700; }
.bx-table td.is-nonneg { color: var(--non); font-weight: 700; }
.bx-table-report td:first-child { white-space: nowrap; }
.bx-sec-body > .bx-table, .bx-sec-body > .bx-table-wrap { margin: 0 calc(var(--cx) * -1) calc(var(--cy) * -1); width: calc(100% + var(--cx) * 2); border-top: 1px solid var(--line); }
.bx-page > .bx-table-wrap { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }

/* ---------- Support (dark card, Mentoring hero language) ---------- */
.bx-support { position: relative; overflow: hidden; padding: 28px 32px; border-radius: var(--r-lg); background: var(--ink); color: #fff; }
.bx-support::after { content: ""; position: absolute; right: -140px; bottom: -200px; width: 460px; height: 460px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .06); pointer-events: none; }
.bx-support > * { position: relative; z-index: 1; }
.bx-support :focus-visible { outline-color: #fff; }
.bx-support-cap { margin: 0 0 14px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: rgba(255, 255, 255, .6); }
.bx-support-title { margin: 0; max-width: 30ch; font-size: 26px; line-height: 1.15; font-weight: 700; letter-spacing: -0.02em; color: #fff; }
.bx-support-text { margin: 8px 0 0; max-width: 44em; color: rgba(255, 255, 255, .72); font-size: 15px; }
.bx-support-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 32px; margin-top: 20px; border-top: 1px solid rgba(255, 255, 255, .12); }
.bx-support-opt { appearance: none; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 2px 16px; padding: 14px 0; border: 0; border-bottom: 1px solid rgba(255, 255, 255, .12); background: none; color: #fff; text-align: left; }
.bx-support-opt .bx-ic { grid-row: 1 / span 2; grid-column: 2; color: rgba(255, 255, 255, .6); transition: transform .2s var(--ease), color .2s; }
.bx-support-opt:hover .bx-ic { transform: translateX(3px); color: #fff; }
.bx-support-opt:hover .bx-support-opt-t { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.bx-support-opt-t { font-size: 15px; font-weight: 600; }
.bx-support-opt-s { font-size: 13px; color: rgba(255, 255, 255, .6); }
.bx-support-open { margin: 16px 0 0; font-size: 14px; color: rgba(255, 255, 255, .85); }
.bx-support-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 22px; }
.bx-support-call { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: var(--r-btn); background: #fff; color: var(--ink); font-weight: 600; text-decoration: none; }
.bx-support-call:hover { background: #ececea; }
.bx-support-other { color: #fff; text-decoration-color: rgba(255, 255, 255, .4); }
.bx-sisters a { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 16px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.bx-sisters li:first-child a { padding-top: 0; }
.bx-sisters li:last-child a { border-bottom: 0; padding-bottom: 0; }
.bx-sisters .bx-ic { grid-row: 1 / span 2; grid-column: 2; color: var(--faint); }
.bx-sisters-l { font-size: 15px; font-weight: 600; }
.bx-sisters-t { font-size: 13px; color: var(--mute); }
.bx-sisters a:hover .bx-sisters-l { text-decoration: underline; text-underline-offset: 3px; }
.bx-crisis { margin-top: 16px; text-align: center; }

/* ---------- Staff: Today board ---------- */
.bx-daynav { display: inline-flex; align-items: center; gap: 2px; height: 40px; padding: 0 2px; border: 1px solid var(--line-2); border-radius: var(--r-btn); background: var(--surface); }
.bx-daynav .bx-input { width: auto; height: 34px; border: 0; padding: 0 6px; font-size: 14px; font-weight: 600; background: transparent; }
.bx-daynav .bx-input:focus { outline-offset: -2px; border-radius: 6px; }
.bx-daynav .bx-iconbtn { width: 34px; height: 34px; border-radius: 6px; }
.bx-board { list-style: none; margin: 0 calc(var(--cx) * -1) calc(var(--cy) * -1); padding: 0; border-top: 1px solid var(--line); }
.bx-board-row { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr) 120px minmax(0, 3fr); grid-template-areas: 'who check state acts'; gap: 8px 16px; align-items: center; padding: 12px var(--cx); border-bottom: 1px solid var(--line); min-height: 68px; transition: background .15s var(--ease); }
.bx-board-row:last-child { border-bottom: 0; }
.bx-board-row:hover { background: #fafaf8; }
.bx-board-who { grid-area: who; display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 12px; align-items: center; min-width: 0; }
.bx-board-av { grid-row: 1 / span 2; }
.bx-board-name { color: var(--ink); font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bx-board-name:hover { text-decoration: underline; text-underline-offset: 3px; }
.bx-board-meta { font-size: 13px; color: var(--mute); overflow-wrap: anywhere; }
.bx-board-meta a { color: var(--mute); text-decoration: none; }
.bx-board-meta a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.bx-board-check { grid-area: check; display: flex; flex-direction: column; gap: 1px; font-size: 13px; color: var(--mute); min-width: 0; }
.bx-board-check b { color: var(--ink); font-size: 14px; font-weight: 700; letter-spacing: .14em; font-variant-numeric: tabular-nums; }
.bx-board-check .bx-muted { color: var(--mute); }
.bx-board-state { grid-area: state; }
.bx-board-acts { grid-area: acts; display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.bx-board-row.is-done .bx-board-name, .bx-board-row.is-excused .bx-board-name { color: var(--mute); }
.bx-board-row.is-done .bx-board-av, .bx-board-row.is-excused .bx-board-av { opacity: .7; }

.bx-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: 12px 16px; }
.bx-search { position: relative; display: flex; align-items: center; flex: 0 1 320px; min-width: 200px; color: var(--faint); }
.bx-search .bx-ic { position: absolute; left: 12px; pointer-events: none; }
.bx-search .bx-input { padding-left: 36px; }

/* Clients list (Mentoring client table) */
.bx-clist-head { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr) 150px 18px; gap: 16px; align-items: center; height: 40px; padding: 0 24px; font-size: 12px; color: var(--mute); font-weight: 600; letter-spacing: .04em; border-bottom: 1px solid var(--line); background: #fbfbfa; }
.bx-clients { list-style: none; margin: 0; padding: 0; }
.bx-clients > li { border-bottom: 1px solid var(--line); }
.bx-clients > li:last-child { border-bottom: 0; }
.bx-client-row { display: grid; grid-template-columns: auto minmax(0, 3fr) minmax(0, 2fr) 150px 18px; align-items: center; gap: 6px 16px; min-height: 64px; padding: 10px 24px; color: var(--ink); text-decoration: none; transition: background .15s var(--ease); }
.bx-client-row:hover { background: #fafaf8; }
.bx-client-row:focus-visible { outline-offset: -2px; }
.bx-client-row > .bx-ic { color: var(--faint); }
.bx-client-row:hover .bx-client-name { text-decoration: underline; text-underline-offset: 3px; }
.bx-clist-head > :first-child { padding-left: 52px; }
.bx-initials { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: #ecebe7; color: var(--ink); font-size: 13px; font-weight: 600; letter-spacing: .02em; flex: none; }
.bx-client-main { display: flex; flex-direction: column; min-width: 0; }
.bx-client-name { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bx-client-sub { font-size: 13px; color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bx-client-last { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; min-width: 0; }
.bx-client-status { display: inline-flex; }
.bx-client-main + .bx-client-last { grid-column: 3; }

/* Audit trail */
.bx-audit li { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 4px 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.bx-audit li:first-child { padding-top: 0; }
.bx-audit li:last-child { border-bottom: 0; padding-bottom: 0; }
.bx-audit-t { color: var(--mute); font-size: 13px; font-variant-numeric: tabular-nums; }
.bx-audit-s { color: var(--ink-2); }
.bx-audit-s b { color: var(--ink); font-weight: 600; }
.bx-audit-d { grid-column: 2; }
.bx-audit-d summary { cursor: pointer; font-size: 13px; color: var(--mute); font-weight: 600; width: max-content; border-radius: 4px; }
.bx-audit-d summary:hover { color: var(--ink); }
.bx-audit-d dl { margin: 8px 0 0; padding: 10px 12px; border-radius: var(--r); background: var(--bg); font-size: 13px; }
.bx-audit-d dl div { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 10px; padding: 3px 0; }
.bx-audit-d dt { color: var(--mute); }
.bx-audit-d dd { margin: 0; color: var(--ink); overflow-wrap: anywhere; }

/* Record a test */
.bx-record-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.bx-record-col { display: flex; flex-direction: column; gap: 20px; min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 20px 24px; }
.bx-toggles { border-top: 1px solid var(--line); }
.bx-toggles > .bx-switch-row:last-of-type { border-bottom: 0; padding-bottom: 0; }
.bx-coc { padding: 4px 0 0; }
.bx-subs { border: 1px solid var(--line); border-radius: var(--r); padding: 2px 14px; }
.bx-subs:empty { display: none; }
.bx-sub { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.bx-sub:last-child { border-bottom: 0; }
.bx-sub-n { color: var(--ink); font-size: 14px; }
.bx-sub.is-pos .bx-sub-n { color: var(--non); font-weight: 700; }
.bx-more { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 0 24px; }
.bx-more > summary { display: flex; justify-content: space-between; align-items: center; min-height: 56px; cursor: pointer; list-style: none; color: var(--ink); font-size: 16px; font-weight: 600; letter-spacing: -0.01em; border-radius: var(--r); }
.bx-more > summary::-webkit-details-marker { display: none; }
.bx-more > summary::after { content: ""; width: 8px; height: 8px; border-right: 1.6px solid var(--mute); border-bottom: 1.6px solid var(--mute); transform: rotate(45deg); margin: -4px 4px 0 0; transition: transform .2s var(--ease); }
.bx-more[open] > summary::after { transform: rotate(-135deg); margin-top: 4px; }
.bx-more > .bx-form { padding: 4px 0 22px; border-top: 1px solid var(--line); padding-top: 18px; }
.bx-savebar { position: sticky; bottom: 0; z-index: 20; margin: 24px calc(var(--pad) * -1) 0; padding: 14px var(--pad); background: rgba(255, 255, 255, .92); border-top: 1px solid var(--line); -webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px); display: flex; justify-content: flex-end; }
.bx-savebar .bx-btn-block { display: inline-flex; width: auto; min-width: 220px; }
.bx-page > .bx-savebar:last-child { margin-bottom: -56px; }

/* Overflow menu (the ... button next to page actions) */
.bx-pop-overlay { position: fixed; inset: 0; z-index: 2000; }
.bx-pop { position: fixed; z-index: 2001; min-width: 220px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: 6px; display: flex; flex-direction: column; gap: 1px; animation: bx-pop .15s var(--ease); }
@keyframes bx-pop { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.bx-pop .bx-btn { justify-content: flex-start; width: 100%; height: 40px; padding: 0 10px; border: 0; border-radius: 7px; background: none; font-weight: 400; color: var(--ink); }
.bx-pop .bx-btn .bx-ic { color: var(--mute); }
.bx-pop .bx-btn:hover { background: var(--hover); }
.bx-pop .bx-btn-danger-ghost, .bx-pop .bx-btn-danger-ghost .bx-ic { color: var(--danger); }
.bx-more-btn { border: 1px solid var(--line-2); background: var(--surface); width: 40px; height: 40px; color: var(--ink); }
.bx-more-btn:hover { background: var(--hover); }

/* Settings: test types */
.bx-types { display: flex; flex-direction: column; }
.bx-type { display: grid; grid-template-columns: 2fr 1fr 3fr 1fr auto; gap: 12px 16px; align-items: end; padding: 16px 0; border-bottom: 1px solid var(--line); }
.bx-type:first-child { padding-top: 0; }
.bx-type:last-child { border-bottom: 0; padding-bottom: 0; }
.bx-type .bx-check { padding-bottom: 10px; }
.bx-type .bx-textarea { min-height: 40px; height: 40px; }

/* ---------- Below 1180: tighter columns ---------- */
@media (max-width: 1180px) {
  .bx-board-row { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: 'who state' 'check acts'; }
  .bx-board-check { padding-left: 48px; }
  .bx-type { grid-template-columns: 1fr 1fr; }
  .bx-type > :nth-child(3) { grid-column: 1 / -1; }
}

/* ---------- Below 960: top bar and tab bar (Mentoring) ---------- */
@media (max-width: 959px) {
  :root { --pad: 20px; }
  .bx-rail { display: none; }
  .bx-shell { background: none; }
  .bx-top {
    display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 25;
    height: calc(var(--top) + env(safe-area-inset-top, 0px)); padding: env(safe-area-inset-top, 0px) 16px 0; background: rgba(255, 255, 255, .92);
    -webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line);
  }
  .bx-top-mark { position: relative; text-decoration: none; border-radius: 6px; }
  .bx-top-mark::after { content: ""; position: absolute; left: -4px; right: -4px; top: 50%; height: 48px; transform: translateY(-50%); }
  .bx-top-tools { display: flex; align-items: center; gap: 6px; }
  .bx-top-call { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: var(--r-btn); color: var(--mute); }
  .bx-top-call:hover { background: var(--hover); color: var(--ink); }
  .bx-user { width: 44px; height: 44px; border: 0; background: none; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; padding: 0; }
  .bx-stage { margin-left: 0; min-height: calc(100vh - var(--top)); padding-bottom: calc(var(--tabbar) + var(--safe-b)); }
  .bx-main { padding-bottom: 40px; }
  .bx-tabbar {
    display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 25;
    height: calc(var(--tabbar) + var(--safe-b)); padding-bottom: var(--safe-b); background: rgba(255, 255, 255, .96);
    -webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px); border-top: 1px solid var(--line);
  }
  .bx-tabbar-item { appearance: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-width: 0; min-height: 44px; padding: 0 2px; border: 0; background: none; text-decoration: none; color: var(--mute); font-size: 11px; font-weight: 600; }
  .bx-tabbar-item.is-on { color: var(--ink); }
  .bx-tabbar-item:focus-visible { outline-offset: -4px; border-radius: 10px; }
  .bx-tabbar-ic { position: relative; display: inline-flex; }
  .bx-tabbar-label { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .bx-tab-badge { position: absolute; top: -4px; right: -9px; min-width: 16px; height: 16px; padding: 0 4px; font-size: 10px; box-shadow: 0 0 0 2px #fff; }
  .bx-toasts { bottom: calc(var(--tabbar) + var(--safe-b) + 16px); }

  .bx-menu-overlay { background: rgba(17, 17, 17, .32); }
  .bx-menu { left: 0; right: 0; bottom: 0; width: auto; max-height: calc(100vh - 32px); border: 0; border-radius: 16px 16px 0 0; padding: 4px 12px calc(12px + var(--safe-b)); transform: translateY(24px); transition: transform .2s var(--ease); }
  .bx-menu::before { content: ""; display: block; width: 36px; height: 4px; border-radius: 999px; background: var(--line-2); margin: 8px auto 4px; }
  .bx-menu .bx-menu-x { display: inline-flex; width: 44px; height: 44px; }
  .bx-menu-item { height: 48px; font-size: 15px; }

  .bx-home-top, .bx-split, .bx-split.bx-layout, .bx-cols, .bx-results, .bx-record-grid { grid-template-columns: minmax(0, 1fr); }
  .bx-layout-rev > :first-child { order: 0; }
  .bx-layout .bx-tool .bx-grid-2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .bx-head-big .bx-h1 { font-size: 32px; }
  .bx-head-big { margin: 4px 0 24px; }
  .bx-contacts { grid-template-columns: minmax(0, 1fr); }
  .bx-savebar { bottom: calc(var(--tabbar) + var(--safe-b)); }
  .bx-page > .bx-savebar:last-child { margin-bottom: -40px; }
  .bx-clist-head { display: none; }
  .bx-client-row { grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: 'av main status' 'av last last'; padding: 12px 16px; }
  .bx-client-row > .bx-initials { grid-area: av; align-self: start; }
  .bx-client-main { grid-area: main; }
  .bx-client-last { grid-area: last; }
  .bx-client-main + .bx-client-last { grid-column: auto; }
  .bx-client-status { grid-area: status; justify-self: end; }
  .bx-client-row > .bx-ic { display: none; }
}

/* ---------- Phones (Mentoring 719) ---------- */
@media (max-width: 719px) {
  :root { --pad: 16px; }
  .bx-card, .bx-sec, .bx-tool, .bx-panel, .bx-dialog, .bx-day, .bx-results-list, .bx-record-col { --cx: 16px; --cy: 18px; }
  .bx-day, .bx-results-list, .bx-record-col { padding: var(--cy) var(--cx); }
  .bx-card-flush { padding: 0; }
  .bx-head { align-items: center; margin-bottom: 20px; }
  .bx-head-titles { flex-basis: 180px; }
  .bx-h1 { font-size: 24px; }
  .bx-head-big .bx-h1 { font-size: 30px; }
  .bx-head-big .bx-lead { font-size: 15px; }
  .bx-head-big { align-items: flex-end; }
  .bx-head-actions { width: 100%; }
  .bx-head-actions > .bx-btn-primary { flex: 1 1 auto; }
  .bx-head-client { align-items: flex-start; gap: 14px; }
  .bx-head-client .bx-head-av { width: 56px; height: 56px; font-size: 19px; }
  .bx-head-client .bx-head-actions { flex-wrap: nowrap; }
  .bx-head-client .bx-head-actions > .bx-btn { flex: 1 1 auto; min-width: 0; padding: 0 12px; }
  .bx-head-client .bx-head-actions > .bx-more-btn { width: 44px; height: 44px; }
  .bx-head-meta { flex-direction: column; gap: 2px; }
  .bx-head-meta > * + *::before { display: none; }
  .bx-page > * + * { margin-top: 16px; }
  .bx-split > div > * + *, .bx-tabpanel > div > * + * { margin-top: 16px; }
  .bx-split, .bx-cols, .bx-results, .bx-home-top, .bx-record-grid { gap: 16px; }

  .bx-btn { height: 44px; }
  .bx-btn-sm { height: 36px; }
  .bx-btn-lg { height: 48px; }
  .bx-btn-link, .bx-btn-sm.bx-btn-link { height: auto; min-height: 36px; }
  .bx-iconbtn { width: 44px; height: 44px; }
  .bx-pop .bx-btn { height: 44px; }
  .bx-input { height: 44px; font-size: 16px; }
  .bx-textarea { height: auto; }
  .bx-select { background-position: calc(100% - 17px) 19px, calc(100% - 12px) 19px; }
  .bx-check-box { width: 22px; height: 22px; }
  .bx-check-input { width: 22px; height: 22px; }
  .bx-seg-item { min-height: 36px; }
  .bx-seg-wrap .bx-seg-item { min-height: 44px; }
  .bx-fchip { height: 36px; flex: none; }
  .bx-grid-2, .bx-checks-2, .bx-layout .bx-tool .bx-grid-2 { grid-template-columns: minmax(0, 1fr); }
  .bx-grid-4 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .bx-search { flex: 1 1 100%; }
  .bx-chips { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px; padding: 0 16px 2px; scrollbar-width: none; width: calc(100% + 32px); }
  .bx-chips::-webkit-scrollbar { display: none; }

  .bx-status { padding: 22px 20px; border-radius: 12px; }
  .bx-status-title { font-size: 26px; }
  .bx-status-quiet .bx-status-title { font-size: 22px; }
  .bx-status-btn { width: 100%; }
  .bx-code { width: 100%; }
  .bx-code-v { font-size: 30px; }
  .bx-support { padding: 22px 20px; border-radius: 12px; }
  .bx-support-title { font-size: 22px; }
  .bx-support-grid { grid-template-columns: minmax(0, 1fr); }
  .bx-support-call { height: 44px; }

  .bx-grid-3 { grid-template-columns: minmax(0, 1fr); }
  .bx-tile { padding: 16px 0; }
  .bx-tile:first-child { padding-top: 0; }
  .bx-tile:last-child { padding-bottom: 0; }
  .bx-tile + .bx-tile { border-left: 0; border-top: 1px solid var(--line); }
  .bx-stats-row { grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 16px; gap: 16px 12px; }
  .bx-stats-row .bx-stat + .bx-stat { border-left: 0; padding-left: 0; }
  .bx-stats-row .bx-stat:nth-child(3n + 2), .bx-stats-row .bx-stat:nth-child(3n) { border-left: 1px solid var(--line); padding-left: 12px; }
  .bx-stat-n { font-size: 24px; }

  .bx-row { grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; padding: 14px var(--cx); }
  .bx-row-date { flex-direction: row; gap: 8px; grid-column: 1 / -1; min-width: 0; }
  .bx-row-ic { display: none; }
  .bx-row-static .bx-row-end { grid-column: 1 / -1; justify-content: flex-start; }
  .bx-fact { grid-template-columns: 124px minmax(0, 1fr); gap: 12px; }
  .bx-contact .bx-fact { grid-template-columns: 110px minmax(0, 1fr); gap: 10px; }
  .bx-audit li { grid-template-columns: minmax(0, 1fr); }
  .bx-audit-d { grid-column: 1; }
  .bx-list-cols { column-count: 1; }
  .bx-contact { padding: 18px 16px; }

  .bx-board-row { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: 'who state' 'check check' 'acts acts'; padding: 14px var(--cx); }
  .bx-board-acts { justify-content: flex-start; padding-left: 48px; }
  .bx-board-acts .bx-btn-primary { flex: 1 1 auto; }
  .bx-daynav { flex: 1 1 auto; justify-content: space-between; height: 44px; }
  .bx-daynav .bx-iconbtn { width: 40px; height: 40px; }

  .bx-cal-head { padding: 10px 8px 10px 16px; }
  .bx-cal-wd span { padding: 8px 2px; text-align: center; font-size: 11px; letter-spacing: .02em; }
  .bx-cal-grid { grid-auto-rows: minmax(58px, auto); }
  .bx-cal-cell { padding: 4px; align-items: center; gap: 4px; }
  .bx-cal-n { width: 26px; height: 26px; font-size: 12px; }
  .bx-cal-l { height: 5px; padding: 0; border: 0; font-size: 0; border-radius: 999px; width: 70%; box-shadow: none !important; }
  .bx-cal-cell.is-negative .bx-cal-l { background: var(--neg-fill); }
  .bx-cal-cell.is-nonneg .bx-cal-l { background: var(--non-fill); }
  .bx-cal-cell.is-amber .bx-cal-l { background: var(--amb-fill); }
  .bx-cal-cell.is-excused .bx-cal-l { background: var(--exc-fill); }
  .bx-legend { padding: 12px 16px; }

  .bx-overlay { padding: 0; align-items: flex-end; }
  .bx-dialog { max-width: none; border-radius: 16px 16px 0 0; max-height: calc(100vh - 32px); transform: translateY(24px); }
  .bx-dialog::before { content: ""; display: block; width: 36px; height: 4px; border-radius: 999px; background: var(--line-2); margin: 8px auto -4px; flex: none; }
  .bx-dialog-head { padding: 18px 16px 0; }
  .bx-dialog-body { padding: 16px 16px 18px; }
  .bx-dialog-foot { padding: 12px 16px calc(12px + var(--safe-b)); }
  .bx-dialog-foot .bx-btn { flex: 1 1 auto; }
  .bx-toast { align-items: flex-start; line-height: 1.4; }
  .bx-toast .bx-ic { margin-top: 1px; }
  .bx-linkbox { flex-direction: column; }
  .bx-linkbox .bx-btn { width: 100%; }

  .bx-auth { padding: 32px 16px; align-items: flex-start; }
  .bx-auth-card { padding: 28px 20px 24px; }
  .bx-savebar { margin-left: -16px; margin-right: -16px; padding: 12px 16px; }
  .bx-savebar .bx-btn-block { width: 100%; }
  .bx-more { padding: 0 16px; }
  .bx-type { grid-template-columns: minmax(0, 1fr); }
  .bx-table { font-size: 13px; }
  .bx-table:not(.bx-table-report) { display: block; overflow-x: auto; }
  .bx-table th, .bx-table td { white-space: nowrap; }
}

/* Reduced motion (Mentoring) */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

/* =========================================================================
   1.2.0: receipts and check-in history, lab pipeline, disputes, messages,
   plans and payments, notifications and Add to Home Screen. Same tokens and
   card language as above.
   ========================================================================= */

/* Check-in receipt line and history */
.bx-code-h { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 13px; font-weight: 600; color: inherit; text-decoration: none; opacity: .8; }
.bx-code-h:hover { opacity: 1; text-decoration: underline; text-underline-offset: 3px; }
.bx-cols-checkin { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); }
.bx-attempts { list-style: none; margin: 0 calc(var(--cx) * -1) calc(var(--cy) * -1); padding: 0; border-top: 1px solid var(--line); }
.bx-attempt { display: grid; grid-template-columns: 112px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px var(--cx); border-bottom: 1px solid var(--line); }
.bx-attempt:last-child { border-bottom: 0; }
.bx-attempt-date { display: flex; flex-direction: column; font-size: 13px; color: var(--mute); font-variant-numeric: tabular-nums; }
.bx-attempt-date b { color: var(--ink); font-size: 14px; font-weight: 600; }
.bx-attempt-main { display: flex; flex-direction: column; min-width: 0; }
.bx-attempt-code { font-size: 15px; font-weight: 700; letter-spacing: .12em; font-variant-numeric: tabular-nums; }
.bx-attempt-sub { font-size: 13px; color: var(--mute); }
.bx-attempt.is-outside_window, .bx-attempt.is-refused { background: #fdfbf6; }

/* Lab pipeline chips */
.bx-pipe { display: flex; list-style: none; margin: 0 0 16px; padding: 0; gap: 0; counter-reset: pipe; }
.bx-pipe-i { position: relative; flex: 1 1 0; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-width: 0; padding-right: 6px; font-size: 12px; font-weight: 600; color: var(--mute); }
.bx-pipe-i::before { content: ""; position: absolute; top: 9px; left: 22px; right: 4px; height: 2px; background: var(--line-2); border-radius: 2px; }
.bx-pipe-i:last-child::before { display: none; }
.bx-pipe-i.is-done::before { background: var(--ink); }
.bx-pipe-dot { position: relative; z-index: 1; width: 20px; height: 20px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--surface); box-shadow: inset 0 0 0 2px var(--line-2); color: #fff; }
.bx-pipe-i.is-done .bx-pipe-dot { background: var(--ink); box-shadow: none; }
.bx-pipe-i.is-now .bx-pipe-dot { box-shadow: inset 0 0 0 2px var(--ink), 0 0 0 4px rgba(17, 17, 17, .08); }
.bx-pipe-i.is-now .bx-pipe-dot::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ink); }
.bx-pipe-i.is-now.is-lab .bx-pipe-dot { background: var(--ink); box-shadow: none; }
.bx-pipe-i.is-now.is-lab .bx-pipe-dot::after { background: #fff; }
.bx-pipe-i.is-now.is-negated .bx-pipe-dot { background: var(--green); box-shadow: none; }
.bx-pipe-i.is-now.is-negated .bx-pipe-dot::after { background: #fff; }
.bx-pipe-i.is-done, .bx-pipe-i.is-now { color: var(--ink); }
.bx-pipe-l { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }

/* Result detail */
.bx-dialog-result { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.bx-presume { font-size: 13px; color: var(--mute); }
.bx-sub-sec { margin-top: 8px; }
.bx-sub-sec > .bx-h3 { margin-top: 20px; }
.bx-tested { list-style: none; margin: 0; padding: 2px 14px; border: 1px solid var(--line); border-radius: var(--r); }
.bx-tested-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.bx-tested-row:last-child { border-bottom: 0; }
.bx-tested-n { display: flex; flex-direction: column; min-width: 0; }
.bx-tested-n b { font-weight: 600; font-size: 14px; }
.bx-tested-n span { font-size: 12px; color: var(--mute); font-variant-numeric: tabular-nums; }
.bx-tested-r { display: flex; align-items: center; gap: 8px; flex: none; }
.bx-tested-lab { font-size: 12px; color: var(--ink-2); font-weight: 600; }
.bx-tested-row.is-flag .bx-tested-n b { color: var(--non); }
.bx-disp { padding: 12px 0; border-bottom: 1px solid var(--line); }
.bx-disp:first-child { padding-top: 0; }
.bx-disp:last-child { border-bottom: 0; padding-bottom: 0; }
.bx-disp-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 13px; }
.bx-disp-r { margin: 6px 0 0; color: var(--ink); }
.bx-disp-n { margin: 6px 0 0; color: var(--ink-2); font-size: 13px; }
.bx-warn-t { display: inline-flex; align-items: center; gap: 4px; color: var(--warn); }

/* Counted textarea */
.bx-counted { position: relative; }
.bx-counted .bx-textarea { padding-bottom: 26px; }
.bx-count { position: absolute; right: 12px; bottom: 8px; font-size: 12px; color: var(--mute); font-variant-numeric: tabular-nums; pointer-events: none; }
.bx-count.is-near { color: var(--warn); font-weight: 600; }

/* Record test: collection */
.bx-indent { padding: 2px 0 12px; border-bottom: 1px solid var(--line); }
.bx-device { margin-top: 8px; }
.bx-device > .bx-field + .bx-grid-3 { margin-top: 12px; }
.bx-devgrid > .bx-field { margin: 0; }
.bx-devgrid { align-items: end; }
.bx-devgrid { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr); }
.bx-exp-warn { margin-top: 12px; }
.bx-urine { display: grid; gap: 16px; padding-bottom: 20px; margin-bottom: 4px; border-bottom: 1px solid var(--line); }
.bx-urine[hidden] { display: none; }
.bx-sub-n { display: flex; flex-direction: column; min-width: 0; }
.bx-sub-cut, .bx-sub-screen { font-size: 12px; color: var(--mute); font-weight: 400; font-variant-numeric: tabular-nums; }
.bx-sub-screen { color: var(--non); font-weight: 600; }
.bx-labnote { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--r); background: var(--bg); border: 1px solid var(--line); font-size: 14px; color: var(--ink-2); }
.bx-labnote .bx-ic { flex: none; margin-top: 1px; color: var(--ink); }
.bx-labnote b { color: var(--ink); }

/* Lab and disputes */
.bx-dispute .bx-pipe { margin: 0; }
.bx-dispute .bx-quote { margin: 0; }
.bx-lab-row .bx-board-check b { letter-spacing: .02em; }

/* Plans and payments */
.bx-plan-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.bx-plan-top .bx-cap { margin: 0; }
.bx-plan-name { margin: 10px 0 2px !important; font-size: 18px; font-weight: 700; letter-spacing: -0.01em; color: var(--ink); line-height: 1.3; }
.bx-plan-price { margin: 0 0 14px !important; color: var(--mute); font-size: 14px; }
.bx-plan-price b { color: var(--ink); font-size: 15px; font-variant-numeric: tabular-nums; }
.bx-plan-meter { height: 6px; border-radius: 999px; background: var(--hover); overflow: hidden; margin-bottom: 8px; }
.bx-plan-meter span { display: block; height: 100%; border-radius: 999px; background: var(--ink); }
.bx-plan .bx-facts { margin-bottom: 4px; }
.bx-plan .bx-fact { grid-template-columns: 120px minmax(0, 1fr); }
.bx-plan .bx-fact:last-child { border-bottom: 0; padding-bottom: 0; }
.bx-plan > .bx-row-gap { margin-top: 16px; }
.bx-plan.is-none > .bx-btn { margin-top: 12px; }
.bx-plans { display: grid; gap: 12px; }
.bx-plan-row { grid-template-columns: minmax(0, 1fr); gap: 12px; }
.bx-plan-row .bx-check { align-self: end; min-height: 40px; }
.bx-table-pay td { vertical-align: middle; }
.bx-nowrap { white-space: nowrap; }
.bx-linkbtn .bx-ic { vertical-align: -3px; margin-right: 4px; }
.bx-mono { font-variant-numeric: tabular-nums; line-height: 1.6; }
.bx-remind { display: flex; gap: 12px; padding: 14px 18px; border-radius: var(--r); background: var(--amber-bg); border: 1px solid var(--amber-line); color: #6e480f; }
.bx-remind-ic { flex: none; margin-top: 1px; }
.bx-remind-t b { display: block; color: #5a3a0b; }
.bx-remind-t ul { margin: 4px 0 0; padding: 0; list-style: none; font-size: 14px; }
.bx-remind-t a { color: inherit; font-weight: 600; }

/* Receipt */
.bx-rc { border: 1px solid var(--line); border-radius: var(--r); padding: 22px 22px 8px; background: var(--surface); }
.bx-rc-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding-bottom: 16px; border-bottom: 2px solid var(--ink); }
.bx-rc-no { display: flex; flex-direction: column; align-items: flex-end; font-size: 12px; color: var(--mute); text-transform: uppercase; letter-spacing: .12em; font-weight: 600; }
.bx-rc-no b { color: var(--ink); font-size: 14px; letter-spacing: .04em; text-transform: none; font-variant-numeric: tabular-nums; }
.bx-rc-amount { margin: 18px 0 2px; font-size: 34px; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.bx-rc-paid { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 14px; color: var(--neg); font-weight: 600; font-size: 14px; }
.bx-rc-list { margin: 0; }
.bx-rc-row { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 14px; }
.bx-rc-row dt { color: var(--mute); }
.bx-rc-row dd { margin: 0; color: var(--ink); font-weight: 600; overflow-wrap: anywhere; }
@media print {
  html.bx-print-receipt body > *:not(.bx-overlay) { display: none !important; }
  html.bx-print-receipt .bx-overlay { position: static; background: none; display: block; }
  html.bx-print-receipt .bx-dialog { box-shadow: none; border: 0; max-width: none; width: auto; transform: none; }
  html.bx-print-receipt .bx-dialog-head, html.bx-print-receipt .bx-dialog-foot { display: none; }
}

/* Banners (home) and notifications */
.bx-banner { display: flex; align-items: center; gap: 12px; padding: 12px 14px 12px 16px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.bx-banner-ink { background: var(--ink); color: #fff; border-color: var(--ink); }
.bx-banner-ink:hover { background: #2a2a2a; }
.bx-banner-ic { width: 36px; height: 36px; flex: none; display: inline-flex; align-items: center; justify-content: center; border-radius: 9px; background: var(--bg); }
.bx-banner-t { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; font-size: 14px; }
.bx-banner-ink .bx-banner-t { flex-direction: row; gap: 4px; flex-wrap: wrap; }
.bx-banner-t > span { color: var(--mute); font-size: 13px; }
.bx-banner-x { flex: none; }
.bx-notif { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; margin-bottom: 8px; }
.bx-notif .bx-hint { margin: 0; }
.bx-list-tight .bx-list-row { padding: 9px 0; }
.bx-sec-body > .bx-row-gap { margin-top: 12px; }

/* Add to Home Screen sheet */
.bx-inst-h { margin: 18px 0 8px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); font-weight: 600; }
.bx-inst { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--r); }
.bx-inst-step { display: grid; grid-template-columns: 28px minmax(0, 1fr) 40px; gap: 12px; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.bx-inst-step:last-child { border-bottom: 0; }
.bx-inst-n { width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 13px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.bx-inst-t { display: flex; flex-direction: column; font-size: 14px; }
.bx-inst-t span { color: var(--mute); font-size: 13px; }
.bx-inst-ic { width: 40px; height: 40px; border-radius: 10px; background: var(--bg); display: inline-flex; align-items: center; justify-content: center; color: #0a66d6; }
.bx-inst-android { margin: 0 !important; }

/* Messages */
.bx-thread { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; min-height: 420px; }
.bx-thread-list { flex: 1 1 auto; display: flex; flex-direction: column; gap: 10px; padding: 20px 24px; max-height: min(62vh, 640px); overflow-y: auto; background: #fbfbfa; }
.bx-thread-empty { margin: auto; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 32px 16px; }
.bx-thread-day { align-self: center; margin: 6px 0 2px; font-size: 12px; color: var(--mute); font-weight: 600; }
.bx-msg { display: flex; flex-direction: column; max-width: min(78%, 560px); }
.bx-msg.is-mine { align-self: flex-end; align-items: flex-end; }
.bx-msg.is-theirs { align-self: flex-start; }
.bx-msg-b { padding: 10px 14px; border-radius: 16px; font-size: 15px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.bx-msg.is-mine .bx-msg-b { background: var(--ink); color: #fff; border-bottom-right-radius: 6px; }
.bx-msg.is-theirs .bx-msg-b { background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-bottom-left-radius: 6px; }
.bx-msg-m { margin: 4px 4px 0; font-size: 12px; color: var(--mute); }
.bx-compose { padding: 14px 16px 16px; border-top: 1px solid var(--line); background: var(--surface); display: grid; gap: 10px; }
.bx-compose .bx-textarea { min-height: 64px; resize: vertical; }
.bx-compose-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.bx-compose-foot .bx-fine { margin: 0; }
.bx-inbox { display: grid; grid-template-columns: minmax(260px, 340px) minmax(0, 1fr); gap: 24px; align-items: start; }
.bx-threads { list-style: none; margin: 0; padding: 0; }
.bx-thr { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.bx-threads li:last-child .bx-thr { border-bottom: 0; }
.bx-thr:hover { background: #fafaf8; }
.bx-thr.is-on { background: var(--hover); }
.bx-thr-main { display: flex; flex-direction: column; min-width: 0; }
.bx-thr-name { font-weight: 600; }
.bx-thr-last { font-size: 13px; color: var(--mute); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bx-thr.is-unread .bx-thr-last { color: var(--ink); font-weight: 600; }
.bx-thr-end { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.bx-thr-t { font-size: 12px; color: var(--mute); white-space: nowrap; }
.bx-inbox-thread { display: grid; gap: 12px; min-width: 0; }
.bx-inbox-none { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); min-height: 300px; align-content: center; }
.bx-inbox-head { display: grid; gap: 8px; }
.bx-inbox-back { display: none; }
.bx-inbox-who { display: flex; align-items: center; gap: 12px; }
.bx-inbox-who p { margin: 0; font-size: 13px; }
.bx-inbox-who a { color: inherit; }
.bx-inbox-name { font-size: 17px; font-weight: 700; color: var(--ink) !important; text-decoration: none; }
.bx-badge-red { background: var(--red); }

/* Delivery logs */
.bx-notices { list-style: none; margin: 0; padding: 0; }
.bx-notice { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.bx-notice:last-child { border-bottom: 0; }
.bx-notice-ic { width: 28px; height: 28px; border-radius: 8px; background: var(--bg); display: inline-flex; align-items: center; justify-content: center; color: var(--mute); }
.bx-notice-main { min-width: 0; }
.bx-notice-main b { font-weight: 600; }
.bx-notice-st { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.bx-notice-err { font-size: 12px; color: var(--non); }
.bx-deliv { margin: 0; }
.bx-deliv > .bx-notices { padding: 0 0 8px; }

@media (max-width: 1180px) {
  .bx-cols-checkin { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 959px) {
  .bx-inbox { grid-template-columns: minmax(0, 1fr); }
  .bx-page-inbox.has-open .bx-inbox-list, .bx-page-inbox.has-open > .bx-head { display: none; }
  .bx-page-inbox:not(.has-open) .bx-inbox-none { display: none; }
  .bx-inbox-back { display: inline-flex; }
}
@media (max-width: 719px) {
  .bx-attempt { grid-template-columns: 84px minmax(0, 1fr); grid-template-areas: 'date main' 'date st'; row-gap: 6px; }
  .bx-attempt-date { grid-area: date; align-self: start; }
  .bx-attempt-main { grid-area: main; }
  .bx-attempt-st { grid-area: st; }
  .bx-pipe-i { font-size: 11px; padding-right: 2px; }
  .bx-pipe-l { white-space: normal; line-height: 1.25; }
  .bx-devgrid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .bx-devgrid > :first-child { grid-column: 1 / -1; }
  .bx-thread { min-height: 0; border-radius: 12px; }
  .bx-thread-list { padding: 16px; max-height: calc(100vh - 360px); min-height: 240px; }
  .bx-msg { max-width: 86%; }
  .bx-compose { padding: 12px; }
  .bx-compose-foot { flex-direction: column; align-items: stretch; }
  .bx-compose-foot .bx-btn { width: 100%; }
  .bx-rc { padding: 18px 16px 4px; }
  .bx-rc-row { grid-template-columns: 1fr; gap: 2px; }
  .bx-plan .bx-fact { grid-template-columns: 96px minmax(0, 1fr); gap: 10px; }
  .bx-notice { grid-template-columns: 28px minmax(0, 1fr); }
  .bx-notice-st { grid-column: 2; align-items: flex-start; flex-direction: row; flex-wrap: wrap; gap: 6px; }
  .bx-banner { flex-wrap: wrap; }
  .bx-banner .bx-banner-t { flex-basis: calc(100% - 104px); }
  .bx-banner > .bx-btn { order: 3; flex: 1 1 100%; margin-left: 48px; }
  .bx-hide-sm { display: none !important; }
  .bx-table-pay { white-space: normal; }
}
.bx-table .bx-linkbtn { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.bx-table .bx-linkbtn .bx-ic { margin: 0; vertical-align: 0; }
.bx-tool .bx-sub-sec { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.bx-more-rows { display: flex; justify-content: center; padding: 12px var(--cx) 0; border-top: 1px solid var(--line); margin: 0 calc(var(--cx) * -1); }
.bx-attempts:not(:last-child) { margin-bottom: 0; }
.bx-devgrid { gap: 12px; }
.bx-dialog-body > .bx-fine:last-child { margin-top: 16px; }
/* Settings: test types with one substance and cutoff per line; plan rows on one line on desktop */
.bx-types .bx-type { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr) auto; align-items: start; }
.bx-types .bx-type > :nth-child(3) { grid-column: 1 / -1; grid-row: 2; }
.bx-types .bx-type .bx-check { padding-top: 34px; padding-bottom: 0; }
.bx-type .bx-mono { height: auto; min-height: 96px; resize: vertical; }
.bx-plans .bx-plan-row { display: grid; grid-template-columns: minmax(0, 2.4fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.1fr) minmax(0, .7fr) auto; gap: 12px 16px; align-items: end; padding: 14px 0; border-bottom: 1px solid var(--line); }
.bx-plans .bx-plan-row:first-child { padding-top: 0; }
.bx-plans .bx-plan-row:last-child { border-bottom: 0; padding-bottom: 0; }
.bx-plan-row .bx-check { padding-bottom: 10px; }
.bx-plan-row .is-hidden { visibility: hidden; }
@media (max-width: 1180px) {
  .bx-plans .bx-plan-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .bx-plans .bx-plan-row > :first-child { grid-column: 1 / -1; }
  .bx-types .bx-type { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .bx-types .bx-type > :first-child { grid-column: 1 / -1; }
  .bx-types .bx-type > :nth-child(3) { grid-row: auto; }
  .bx-types .bx-type .bx-check { padding-top: 0; }
}
@media (max-width: 719px) {
  .bx-table-wrap .bx-table.bx-table-pay { display: block; overflow: visible; }
  .bx-table.bx-table-pay thead { display: none; }
  .bx-table.bx-table-pay tbody { display: block; }
  .bx-table.bx-table-pay tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; padding: 12px var(--cx); border-bottom: 1px solid var(--line); align-items: center; }
  .bx-table.bx-table-pay tr:last-child { border-bottom: 0; }
  .bx-table.bx-table-pay td { display: block; padding: 0; border: 0; white-space: normal; min-width: 0; }
  .bx-table.bx-table-pay td:nth-child(1) { grid-column: 1; grid-row: 2; color: var(--mute); font-size: 13px; }
  .bx-table.bx-table-pay td:nth-child(2) { grid-column: 1; grid-row: 1; font-weight: 600; }
  .bx-table.bx-table-pay td:nth-child(3) { grid-column: 2; grid-row: 1; text-align: right; font-weight: 600; }
  .bx-table.bx-table-pay td:nth-child(4) { grid-column: 2; grid-row: 2; justify-self: end; }
  .bx-table.bx-table-pay td:nth-child(5) { grid-column: 1; grid-row: 3; font-size: 13px; color: var(--mute); }
  .bx-table.bx-table-pay td:nth-child(6) { grid-column: 2; grid-row: 3; justify-self: end; }
  .bx-table.bx-table-pay td:nth-child(5):empty, .bx-table.bx-table-pay td:nth-child(6):empty { display: none; }
  .bx-table.bx-table-pay td .bx-muted { font-weight: 400; }
}

/* ---------- 1.3.0 ---------- */

/* Lab turnaround line on result screens */
.bx-turn { display: flex; align-items: flex-start; gap: 8px; margin: 14px 0 0; color: var(--mute); font-size: 13px; line-height: 1.45; }
.bx-turn .bx-ic { margin-top: 1px; }

/* Evening before: tomorrow's selection inside the dark status block */
.bx-tmrw { display: flex; gap: 12px; align-items: flex-start; margin-top: 20px; padding: 14px 16px; border-radius: var(--r); background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); }
.bx-status-quiet .bx-tmrw, .bx-status-clear .bx-tmrw, .bx-status-done .bx-tmrw { background: var(--bg); border-color: var(--line); }
.bx-tmrw-ic { flex: none; margin-top: 1px; }
.bx-tmrw-t { display: flex; flex-direction: column; gap: 2px; font-size: 14px; line-height: 1.45; }
.bx-tmrw-t span { opacity: .78; }

/* "Want support?" card: calm, light, never alarming */
.bx-care { padding: 22px 24px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: 0 1px 0 rgba(0, 0, 0, .02); }
.bx-care-head { display: flex; gap: 14px; align-items: flex-start; }
.bx-care-ic { flex: none; width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--ok-bg); color: var(--ok); }
.bx-care-title { margin: 2px 0 4px; font-size: 18px; font-weight: 700; letter-spacing: -0.01em; }
.bx-care-lead { margin: 0; max-width: 62ch; color: var(--ink-2); font-size: 15px; line-height: 1.5; }
.bx-care-opts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 18px; }
.bx-care-opt { appearance: none; display: flex; flex-direction: column; gap: 3px; min-height: 64px; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--surface); text-align: left; color: var(--ink); transition: border-color .15s var(--ease), background .15s var(--ease); }
.bx-care-opt:hover { border-color: var(--ink); background: #fafaf8; }
.bx-care-opt-t { font-size: 14px; font-weight: 600; line-height: 1.3; }
.bx-care-opt-s { font-size: 12.5px; color: var(--mute); line-height: 1.4; }
.bx-care-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin-top: 14px; }
.bx-care-foot .bx-hint { margin: 0; }
.bx-dialog .bx-care { margin-top: 18px; padding: 18px; box-shadow: none; }
.bx-dialog .bx-care-opts { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }

/* Court order */
.bx-order-prog { margin: 0 0 16px; }
.bx-order-prog-top { display: flex; align-items: baseline; gap: 8px; margin-bottom: 8px; }
.bx-order-prog-top b { font-size: 22px; letter-spacing: -0.02em; }
.bx-order-prog-top span { color: var(--mute); font-size: 13px; }
.bx-meter { height: 8px; border-radius: 99px; background: var(--hover); overflow: hidden; }
.bx-meter span { display: block; height: 100%; border-radius: 99px; background: var(--ink); }
.bx-parties { display: flex; flex-direction: column; gap: 8px; margin: 6px 0 10px; }
.bx-party { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 8px; align-items: center; }

/* Notice delivery chips on the Today board */
.bx-chan { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-top: 4px; font-size: 12px; color: var(--mute); }
.bx-chan-i { white-space: nowrap; }
.bx-chan-i::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 5px; border-radius: 50%; background: var(--line-2); vertical-align: 1px; }
.bx-chan-i.is-ok::before { background: var(--green); }
.bx-chan-i.is-bad { color: var(--danger); font-weight: 600; }
.bx-chan-i.is-bad::before { background: var(--red); }
.bx-chan-i.is-off { color: var(--faint); }
.bx-board-row.is-flag { background: var(--red-bg); }
.bx-board-row.is-flag:hover { background: #f8e6e6; }
.bx-remind-red { background: var(--red-bg); border-color: var(--danger-line); color: #7d2020; }
.bx-remind-red .bx-remind-t b { color: #6b1a1a; }
.bx-remind-sub { margin: 2px 0 8px; font-size: 13px; }
.bx-calls li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 8px 0; border-top: 1px solid var(--danger-line); }
.bx-calls-who { flex: 1 1 200px; display: flex; flex-direction: column; min-width: 0; }
.bx-calls-who a { font-weight: 700; }
.bx-calls-who span { font-size: 13px; }
.bx-remind-red .bx-btn-secondary { background: #fff; }

/* Weekend days in the schedule form */
.bx-days .bx-day-we { border-style: dashed; }
.bx-days + .bx-switch-row { margin-top: 12px; }

/* Referrer link on a contact card (staff) */
.bx-reflink { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; padding: 12px 14px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); font-size: 14px; }
.bx-reflink-t { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.bx-reflink-pick { flex: 1 1 320px; display: flex; gap: 8px; align-items: center; }
.bx-reflink-pick .bx-select { flex: 1 1 auto; min-width: 0; }

/* Support flags (staff) */
.bx-flag { display: flex; gap: 8px; align-items: flex-start; margin: 0; padding: 8px 12px; border-radius: var(--r); background: var(--amber-bg); color: #6e480f; font-size: 13px; }
.bx-flag .bx-ic { flex: none; margin-top: 1px; }
.bx-flag-t { color: var(--warn); font-size: 13px; }

/* Referrer dashboard */
.bx-perm { flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: -8px 0 4px; }
.bx-rf-head, .bx-rf-row { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(0, 1.4fr) minmax(0, 1.3fr) minmax(0, 2.4fr) 18px; gap: 16px; align-items: center; padding: 14px var(--cx); }
.bx-rf-head { padding-top: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); font-weight: 600; }
.bx-rfs { list-style: none; margin: 0; padding: 0; }
.bx-rfs li + li { border-top: 1px solid var(--line); }
.bx-rf-row { color: var(--ink); text-decoration: none; transition: background .15s var(--ease); }
.bx-rf-row:hover { background: #fafaf8; }
.bx-rf-row > .bx-ic { color: var(--mute); }
.bx-rf-who { display: flex; gap: 12px; align-items: center; min-width: 0; }
.bx-rf-id { display: flex; flex-direction: column; min-width: 0; }
.bx-rf-id b { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bx-rf-id span { font-size: 13px; color: var(--mute); }
.bx-rf-cell { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; font-size: 14px; min-width: 0; }
.bx-rf-rate { font-size: 18px; letter-spacing: -0.01em; }
.bx-rf-next { color: var(--ink-2); font-size: 13.5px; line-height: 1.45; }

@media (max-width: 959px) {
  .bx-care-opts { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
@media (max-width: 719px) {
  .bx-care { padding: 18px 16px; }
  .bx-care-opts, .bx-dialog .bx-care-opts { grid-template-columns: minmax(0, 1fr); }
  .bx-care-opt { min-height: 0; }
  .bx-party { grid-template-columns: minmax(0, 1fr) auto; }
  .bx-party .bx-input:nth-child(2) { grid-column: 1; grid-row: 2; }
  .bx-party .bx-iconbtn { grid-column: 2; grid-row: 1 / span 2; }
  .bx-rf-head { display: none; }
  .bx-rf-row { grid-template-columns: minmax(0, 1fr) 18px; gap: 10px 12px; padding: 16px var(--cx); }
  .bx-rf-row > .bx-ic { grid-column: 2; grid-row: 1; }
  .bx-rf-who { grid-column: 1; }
  .bx-rf-cell { grid-column: 1 / span 2; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
  .bx-rf-cell::before { content: attr(data-l); width: 100%; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); font-weight: 600; }
  .bx-reflink-pick { flex-wrap: wrap; }
}

.bx-sec-body > .bx-facts + .bx-hint { margin-top: 14px; }
@media (max-width: 719px) {
  .bx-chips.bx-perm { flex-wrap: wrap; overflow: visible; margin: -4px 0 4px; padding: 0; width: auto; }
}
.bx-seg + .bx-hint { margin-top: 10px; }

/* 1.4.0 billing-security: client Billing page, staff ledger, two-step sign-in, Security page. Prefix bs-. */
.bs-billing > * + *, .bs-ledger > * + * { margin-top: 20px; }
.bs-sum { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px 32px; align-items: center; }
.bs-due { display: flex; flex-direction: column; gap: 6px; margin: 0; }
.bs-due-l { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); }
.bs-due-n { font-size: 40px; font-weight: 700; letter-spacing: -0.02em; line-height: 1; font-variant-numeric: tabular-nums; }
.bs-sum-sub { margin: 10px 0 0; color: var(--ink-2); }
.bs-sum-next { display: flex; gap: 8px; align-items: center; margin: 8px 0 0; color: var(--mute); font-size: 13px; }
.bs-sum-act { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.bs-sum-act .bx-hint { margin: 0; text-align: right; max-width: 260px; }
.bs-sum-facts { display: flex; gap: 24px; margin: 0; }
.bs-sum-facts div { text-align: right; }
.bs-sum-facts dt { font-size: 12px; color: var(--mute); }
.bs-sum-facts dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.bs-item .bx-list-meta, .bs-entry .bx-list-meta { gap: 12px; }
.bs-entry .bx-list-meta { flex-direction: column; align-items: flex-end; gap: 2px; }
.bs-entry.is-reversed .bx-list-main b, tr.is-reversed td:nth-child(2) > span:first-child { text-decoration: line-through; text-decoration-color: var(--line-2); }
.bs-bal { font-size: 12px; color: var(--mute); }
.bs-minus { color: var(--neg); }
.bs-rc-acts { gap: 16px; }
.bs-rc-acts .bx-linkbtn { display: inline-flex; align-items: center; gap: 6px; }
.bs-ledger-link { margin-bottom: 16px; align-items: center; }
.bs-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.bs-acts { flex-wrap: wrap; }
.bs-sub { display: block; font-size: 12px; }
.bs-ledger-table td .bx-chip { margin-left: 8px; }
.bs-ledger-table td .bx-linkbtn + .bx-linkbtn { margin-left: 12px; }
/* Two-step sign-in */
.bs-steps { margin: 0 0 4px; padding-left: 20px; display: grid; gap: 14px; color: var(--ink-2); }
.bs-steps b { color: var(--ink); font-weight: 600; }
.bs-qr-wrap { margin: 12px 0 6px; }
.bs-qr { display: block; width: 184px; height: 184px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; }
.bs-qr-acc { margin: 0 0 6px; font-size: 12px; color: var(--mute); overflow-wrap: anywhere; }
.bs-key { margin: 8px 0 0; display: flex; flex-direction: column; gap: 4px; }
.bs-key code { font-size: 15px; letter-spacing: .06em; overflow-wrap: anywhere; }
.bs-code-input { font-size: 22px; letter-spacing: .3em; font-variant-numeric: tabular-nums; text-align: center; }
.bs-alt { display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: center; }
.bs-help { margin-top: 20px; text-align: center; }
.bs-codes { list-style: none; margin: 0 0 12px; padding: 16px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 16px; border: 1px dashed var(--line-2); border-radius: var(--r); background: var(--bg); }
.bs-codes code { font-size: 15px; letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.bs-2fa-on { display: flex; gap: 10px; align-items: center; margin-bottom: 12px; color: var(--mute); }
.bs-2fa .bx-facts { margin-bottom: 12px; }
.bs-2fa .bx-row-gap { flex-wrap: wrap; }
.bs-setup-page { max-width: 560px; }
.bs-person .bx-list-main { display: flex; gap: 12px; align-items: center; }
.bs-person-t { display: flex; flex-direction: column; min-width: 0; }
.bs-person-t .bx-muted { overflow-wrap: anywhere; }
@media (max-width: 719px) {
  .bs-sum { grid-template-columns: minmax(0, 1fr); }
  .bs-sum-act { align-items: stretch; }
  .bs-sum-act .bx-btn { width: 100%; justify-content: center; }
  .bs-sum-act .bx-hint { text-align: left; max-width: none; }
  .bs-sum-facts { justify-content: space-between; }
  .bs-sum-facts div { text-align: left; }
  .bs-due-n { font-size: 34px; }
  .bs-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bs-stats .bx-stat:nth-child(3) { border-left: 0; padding-left: 0; }
  .bs-stats .bx-stat:nth-child(2n) { border-left: 1px solid var(--line); padding-left: 12px; }
  .bs-acts .bx-btn { flex: 1 1 auto; }
  .bs-entry .bx-list-meta { flex-direction: row; align-items: baseline; gap: 10px; }
  .bs-rc-acts { white-space: normal; }
}
@media print {
  html.bs-print-codes body * { visibility: hidden; }
  html.bs-print-codes .bs-codes, html.bs-print-codes .bs-codes * { visibility: visible; }
  html.bs-print-codes .bs-codes { position: absolute; left: 0; top: 0; }
}
.bs-billing .bx-list-main > b, .bs-billing .bx-list-main > .bx-muted, .bs-ledger .bx-list-main > b, .bs-ledger .bx-list-main > .bx-muted { display: block; }
/* 1.4.0: signed releases and contact digests (scoped bx-rd-) */
.bx-rd-dialog .bx-rd-form { gap: 18px; }
.bx-rd-who { margin: 0; font-size: 16px; color: var(--ink); }
.bx-rd-text { max-height: 340px; overflow-y: auto; padding: 16px 18px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--bg); font-size: 19px; line-height: 1.55; color: var(--ink); }
/* 1.4.1: Civil Code 56.11 asks for 14 point type (18.67px) or larger: the authorization text, the level of access and the signature statement on the signing screen are 19px at every width. */
.bx-rd-text .bx-rd-title { font-size: 22px; }
.bx-rd-lines { line-height: 1.5; }
.bx-rd-item p + p, .bx-rd-item p + ul, .bx-rd-item ul + p { margin-top: 8px; }
.bx-rd-tchoice { list-style: none; padding-left: 0 !important; }
.bx-rd-tchoice li { display: flex; gap: 10px; align-items: flex-start; margin: 8px 0 !important; }
.bx-rd-tbox { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; margin-top: 4px; border: 1.5px solid var(--ink); border-radius: 4px; background: var(--surface); }
.bx-rd-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.bx-rd-level { margin: 0; padding: 0; border: 0; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.bx-rd-level-h { padding: 0; margin: 0 0 4px; font-size: 19px; font-weight: 700; color: var(--ink); }
.bx-rd-opt { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border: 1.5px solid var(--line-2); border-radius: var(--r); background: var(--surface); cursor: pointer; font-size: 19px; line-height: 1.5; color: var(--ink); }
.bx-rd-opt:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.bx-rd-radio { flex: none; width: 22px; height: 22px; margin: 4px 0 0; accent-color: var(--ink); }
.bx-rd-opt-t { min-width: 0; overflow-wrap: anywhere; }
.bx-rd-signbox { padding: 16px 18px; border: 1.5px solid var(--ink); border-radius: var(--r); background: var(--surface); }
.bx-rd-stmt { margin: 0 0 14px; font-size: 19px; line-height: 1.5; color: var(--ink); }
.bx-rd-signbox .bx-label, .bx-rd-sig { font-size: 19px; }
.bx-rd-copy { padding: 14px 16px; border-radius: var(--r); background: var(--bg); display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.bx-rd-copy-h { margin: 0 0 6px; font-weight: 700; color: var(--ink); }
.bx-rd-text:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.bx-rd-title { margin: 0 0 10px; font-size: 18px; font-weight: 700; letter-spacing: -0.01em; }
.bx-rd-item { margin: 0 0 12px; }
.bx-rd-item:last-child { margin-bottom: 0; }
.bx-rd-item p { margin: 0; }
.bx-rd-item .bx-rd-h { font-weight: 700; margin-bottom: 2px; }
.bx-rd-item ul { margin: 2px 0 0; padding-left: 20px; }
.bx-rd-item li { margin: 0 0 4px; }
.bx-rd-line { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding: 10px 12px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); font-size: 14px; color: var(--ink-2); }
.bx-rd-line > .bx-ic, .bx-rd-line > svg { flex: none; }
.bx-rd-line > span { flex: 1 1 200px; min-width: 0; }
.bx-rd-line.is-ok { color: var(--ink-2); }
.bx-rd-why { margin: 0; color: var(--ink-2); font-size: 14px; }
.bx-rd-digest { display: flex; flex-direction: column; gap: 12px; }
.bx-rd-digest[hidden] { display: none; }
.bx-rd-staff > .bx-sec + .bx-sec { margin-top: 24px; }
.bx-rd-need { margin: 0 0 18px; padding: 14px 16px; border-radius: var(--r); background: var(--bg); }
.bx-rd-need-t { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; font-weight: 600; color: var(--ink); }
.bx-rd-rows { list-style: none; margin: 0; padding: 0; }
.bx-rd-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.bx-rd-row:last-child { border-bottom: 0; }
.bx-rd-row-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1 1 320px; font-size: 14px; }
.bx-rd-row-main .bx-muted { font-size: 13px; overflow-wrap: anywhere; }
.bx-rd-row-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.bx-rd-stats { margin: 0 0 8px; }
.bx-rd-grace { margin-top: 24px; }
.bx-rd-past { margin-top: 24px; }
.bx-rd-past > .bx-contacts { padding-bottom: 20px; }
@media (max-width: 719px) {
  .bx-rd-text { max-height: 46vh; padding: 14px; font-size: 19px; }
  .bx-rd-opt { padding: 12px; }
  .bx-rd-signbox { padding: 14px; }
  .bx-rd-row-meta { width: 100%; }
  .bx-rd-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
}
/* ---------- 1.4.0 mobile booking: appointments, mobile collection, bookings calendar (scoped bx-bk-) ---------- */
.bx-bk-pick { display: flex; flex-direction: column; gap: 18px; }
.bx-bk-pickdate { margin: 0 0 8px; font-size: 14px; font-weight: 600; color: var(--ink); }
.bx-bk-group + .bx-bk-group { margin-top: 12px; }
.bx-bk-glabel { margin: 0 0 8px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); font-weight: 600; }
.bx-bk-slots { display: flex; flex-wrap: wrap; gap: 8px; }
.bx-bk-slot { appearance: none; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; min-width: 92px; min-height: 44px; padding: 4px 14px; border-radius: var(--r-btn); border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; transition: border-color .15s var(--ease), background .15s var(--ease); }
.bx-bk-slot small { font-size: 11px; font-weight: 500; color: var(--mute); }
.bx-bk-slot:hover { border-color: var(--ink); }
.bx-bk-slot.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }
.bx-bk-slot.is-on small { color: rgba(255, 255, 255, .7); }
.bx-bk-slot.is-full { background: var(--bg); color: var(--faint); border-style: dashed; }
.bx-bk-slot:disabled { cursor: not-allowed; }
.bx-bk-slotwrap { min-height: 44px; }
.bx-bk-done { display: flex; gap: 14px; padding: 18px 20px; border-radius: var(--r); background: var(--ok-bg); border: 1px solid var(--ok-line); }
.bx-bk-done-ic { flex: none; width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--surface); color: var(--ok); }
.bx-bk-done-t { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.bx-bk-done-t .bx-h3 { margin: 0; }
.bx-bk-done-t p { margin: 0; }
.bx-bk-done .bx-facts { background: transparent; }
.bx-bk-fee { align-items: flex-start; }
.bx-bk-card .bx-fact { grid-template-columns: 100px minmax(0, 1fr); }
.bx-bk-home:empty { display: none; }
.bx-bk-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; }
.bx-bk-nav, .bx-bk-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; min-width: 0; }
.bx-bk-filters .bx-select { width: auto; min-width: 180px; height: 40px; }
.bx-bk-range { margin: 0; font-size: 18px; font-weight: 700; letter-spacing: -0.01em; }
.bx-bk-drow { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
.bx-bk-drow.is-off .bx-row-title { color: var(--mute); text-decoration: line-through; text-decoration-color: var(--line-2); }
.bx-bk-dacts { display: flex; align-items: center; gap: 6px; padding-right: var(--cx); }
.bx-bk-dacts:empty { display: none; }
.bx-bk-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.bx-bk-col { min-width: 0; min-height: 260px; padding: 10px 8px 12px; border-left: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.bx-bk-col:first-child { border-left: 0; }
.bx-bk-col.is-today { background: #fbfbfa; }
.bx-bk-colh { appearance: none; border: 0; background: none; padding: 2px 4px; display: flex; align-items: baseline; gap: 6px; color: var(--ink); border-radius: 6px; text-align: left; }
.bx-bk-colh:hover { background: var(--hover); }
.bx-bk-wd { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); font-weight: 600; }
.bx-bk-dn { font-size: 15px; font-weight: 700; }
.bx-bk-col.is-today .bx-bk-dn { display: inline-flex; align-items: center; justify-content: center; min-width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 13px; }
.bx-bk-use { margin: 0 4px; font-size: 11px; line-height: 1.4; color: var(--mute); }
.bx-bk-blocks { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.bx-bk-block { appearance: none; width: 100%; display: flex; flex-direction: column; gap: 1px; padding: 6px 8px; border: 1px solid var(--line); border-left: 3px solid var(--ink); border-radius: 6px; background: var(--surface); text-align: left; color: var(--ink); font-size: 12px; min-width: 0; }
.bx-bk-block:hover { background: var(--hover); }
.bx-bk-block.is-mobile { border-left-color: var(--amber-fill); background: var(--amber-bg); }
.bx-bk-block.is-evening, .bx-bk-block.is-weekend { border-left-color: var(--mute); }
.bx-bk-block.is-done { opacity: .65; }
.bx-bk-btime { font-weight: 600; font-variant-numeric: tabular-nums; color: var(--mute); }
.bx-bk-bname { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bx-bk-bsub { color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bx-bk-types { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
@media (max-width: 1599px) { .bx-bk-types { grid-template-columns: minmax(0, 1fr); } .bx-bk-type { max-width: 820px; } }
.bx-bk-type.is-off .bx-bk-trows, .bx-bk-type.is-off .bx-bk-thead { opacity: .55; }
.bx-bk-thead, .bx-bk-trow { display: grid; grid-template-columns: 76px minmax(0, 1fr) minmax(0, 1fr) 92px 64px 36px; gap: 6px; align-items: center; }
.bx-bk-thead { margin: 12px 0 6px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); font-weight: 600; }
.bx-bk-trows { display: flex; flex-direction: column; gap: 6px; }
.bx-bk-trow .bx-input { height: 40px; padding: 0 8px; min-width: 0; }
.bx-bk-sets { gap: 12px 16px; }
.bx-bk-exform { padding-top: 16px; border-top: 1px solid var(--line); }
.bx-bk-recx { display: flex; flex-direction: column; gap: 12px; }
@media (max-width: 959px) {
  .bx-bk-week { grid-template-columns: minmax(0, 1fr); }
  .bx-bk-col { min-height: 0; border-left: 0; border-top: 1px solid var(--line); flex-direction: row; flex-wrap: wrap; align-items: baseline; }
  .bx-bk-col:first-child { border-top: 0; }
  .bx-bk-colh { width: 76px; flex: none; }
  .bx-bk-use { flex: 1 1 auto; }
  .bx-bk-blocks { flex: 1 1 100%; }
}
@media (max-width: 719px) {
  .bx-bk-tools, .bx-bk-nav, .bx-bk-filters { width: 100%; }
  .bx-bk-filters .bx-select { flex: 1 1 100%; min-width: 0; }
  .bx-bk-filters .bx-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; width: 100%; }
  .bx-bk-nav .bx-daynav { flex: 1 1 auto; justify-content: space-between; }
  .bx-bk-drow { grid-template-columns: minmax(0, 1fr); }
  .bx-bk-dacts { padding: 0 var(--cx) 12px; }
  .bx-bk-slot { min-width: 0; flex: 0 0 calc((100% - 16px) / 3); padding: 4px 6px; }
  .bx-bk-thead { display: none; }
  .bx-bk-trow { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 36px; padding: 10px 0; border-bottom: 1px solid var(--line); }
  .bx-bk-trow > :nth-child(1) { grid-column: 1 / span 2; grid-row: 1; }
  .bx-bk-trow > :nth-child(2) { grid-column: 1; grid-row: 2; }
  .bx-bk-trow > :nth-child(3) { grid-column: 2; grid-row: 2; }
  .bx-bk-trow > :nth-child(4) { grid-column: 1; grid-row: 3; }
  .bx-bk-trow > :nth-child(5) { grid-column: 2; grid-row: 3; }
  .bx-bk-trow > :nth-child(6) { grid-column: 3; grid-row: 1; }
  .bx-bk-sets { grid-template-columns: minmax(0, 1fr); }
  .bx-bk-done { padding: 16px; }
}
/* 1.4.0 Employers and HR (views-v14-employers.js). Reuses the referrer grid, rows and cards; only layout here. */
.bx-emp-grid { grid-template-columns: minmax(0, 2.4fr) minmax(0, 1.6fr) minmax(0, 1.6fr) minmax(0, 1.2fr) 18px; }
.bx-emp-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 24px; }
.bx-emp-stats + .bx-card { margin-bottom: 24px; }
.bx-emp-reqs { list-style: none; margin: 0 calc(var(--cx) * -1); padding: 0; border-top: 1px solid var(--line); }
.bx-sec-body > .bx-emp-reqs:last-child { margin-bottom: calc(var(--cy) * -1); }
.bx-emp-req { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 16px; padding: 14px var(--cx); border-bottom: 1px solid var(--line); }
.bx-emp-req:last-child { border-bottom: 0; }
.bx-emp-req .bx-row-title a { color: var(--ink); }
.bx-emp-reason { color: var(--ink-2); max-width: 60ch; overflow-wrap: anywhere; }
.bx-emp-req-state { display: inline-flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.bx-emp-req-acts { display: inline-flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.bx-emp-small { font-size: 12px; }
.bx-emp-kind { display: flex; align-items: center; gap: 6px; margin-top: 10px; }
.bx-emp-table .bx-emp-num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.bx-emp-total td { font-weight: 700; border-top: 1px solid var(--line-2); }
.bx-sec-body > .bx-emp-tw { margin: 0 calc(var(--cx) * -1); border-top: 1px solid var(--line); }
.bx-emp-table th:first-child, .bx-emp-table td:first-child { padding-left: var(--cx); }
.bx-emp-table th:last-child, .bx-emp-table td:last-child { padding-right: var(--cx); }
.bx-emp-consent + .bx-emp-consent { margin-top: 24px; }
.bx-emp-prompt { margin-bottom: 24px; }
.bx-emp-today:empty { display: none; }
.bx-emp-today > * + * { margin-top: 12px; }
@media (max-width: 719px) {
  .bx-emp-grid { grid-template-columns: minmax(0, 1fr) 18px; }
  .bx-emp-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bx-emp-stats .bx-stat:nth-child(3n + 2), .bx-emp-stats .bx-stat:nth-child(3n) { border-left: 0; padding-left: 0; }
  .bx-emp-stats .bx-stat:nth-child(2n) { border-left: 1px solid var(--line); padding-left: 12px; }
  .bx-emp-req { grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; }
  .bx-emp-req .bx-row-date { flex-direction: row; gap: 8px; grid-column: 1 / -1; min-width: 0; }
  .bx-emp-req-state { align-items: flex-end; }
  .bx-emp-req-acts { grid-column: 1 / -1; justify-content: flex-start; }
  .bx-emp-table thead { display: none; }
  .bx-emp-table, .bx-emp-table tbody, .bx-emp-table tr, .bx-emp-table td { display: block; width: auto; }
  .bx-emp-table tr { padding: 12px var(--cx); border-bottom: 1px solid var(--line); }
  .bx-emp-table td { padding: 2px 0 !important; border: 0; text-align: left !important; white-space: normal; overflow-wrap: anywhere; min-width: 0; }
  .bx-emp-tw { overflow-x: visible; }
  .bx-emp-table td[data-l]::before { content: attr(data-l); display: block; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); font-weight: 600; margin-top: 6px; }
  .bx-emp-total td:empty { display: none; }
}
/* ---------- 1.4.0 owner-students: owner dashboard (bx-ow-), Student tab and break notice (bx-stu-) ---------- */
.bx-ow-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.bx-ow-tiles { padding: 20px 24px; }
.bx-ow-grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.bx-ow-grid4 .bx-tile + .bx-tile { border-left: 1px solid var(--line); }
.bx-ow-big { font-size: 28px; font-variant-numeric: tabular-nums; }
.bx-ow-table td.bx-num, .bx-ow-src td.bx-num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.bx-ow-mlabel { display: block; font-weight: 600; }
.bx-ow-mhint { display: block; max-width: 52ch; margin-top: 2px; color: var(--mute); font-size: 12px; line-height: 1.4; }
.bx-ow-charts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 28px; }
.bx-ow-chart { margin: 0; min-width: 0; color: var(--ink); }
.bx-ow-chart-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 8px; margin-bottom: 6px; }
.bx-ow-chart-t { flex: 1 0 100%; color: var(--mute); font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.bx-ow-chart-n { font-size: 20px; letter-spacing: -0.015em; font-variant-numeric: tabular-nums; }
.bx-ow-chart-s { color: var(--mute); font-size: 13px; }
.bx-ow-svg { width: 100%; height: auto; overflow: visible; }
.bx-ow-svg .bx-ow-grid { stroke: currentColor; stroke-opacity: .12; stroke-width: 1; }
.bx-ow-svg .bx-ow-axis { stroke: currentColor; stroke-opacity: .35; stroke-width: 1; }
.bx-ow-svg .bx-ow-tick { fill: currentColor; fill-opacity: .62; font-size: 10px; font-family: var(--sans); font-variant-numeric: tabular-nums; }
.bx-ow-svg .bx-ow-bar { fill: currentColor; fill-opacity: .55; }
.bx-ow-svg .bx-ow-bar.is-now { fill-opacity: .9; }
.bx-ow-svg .bx-ow-line { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.bx-ow-svg .bx-ow-dot { stroke: var(--surface); stroke-width: 2; }
.bx-ow-svg .bx-ow-ink { stroke: currentColor; }
.bx-ow-svg .bx-ow-green { stroke: var(--green-ink); }
.bx-ow-svg circle.bx-ow-green { fill: var(--green-ink); stroke: var(--surface); }
.bx-ow-svg .bx-ow-amber { stroke: var(--amber-fill); }
.bx-ow-svg circle.bx-ow-amber { fill: var(--amber-fill); stroke: var(--surface); }
.bx-ow-svg .bx-ow-red { stroke: var(--red); }
.bx-ow-svg circle.bx-ow-red { fill: var(--red); stroke: var(--surface); }
.bx-ow-svg .bx-ow-hitbox { fill: transparent; }
.bx-ow-svg .bx-ow-hit:hover .bx-ow-hitbox { fill: currentColor; fill-opacity: .05; }
.bx-ow-svg .bx-ow-hit:hover .bx-ow-bar { fill-opacity: 1; }
.bx-ow-src-barh { width: 30%; }
.bx-ow-src-bar { display: block; height: 8px; border-radius: 4px; background: var(--hover); overflow: hidden; min-width: 60px; }
.bx-ow-src-bar span { display: block; height: 100%; border-radius: 4px; background: var(--ink); opacity: .7; }
.bx-ow > .bx-fine { margin-top: 16px; }
.bx-ow .bx-sec-meta { white-space: normal; }
.bx-ow-short { display: none; }
.bx-stu .bx-note + * { margin-top: 12px; }
.bx-stu .bx-facts + .bx-hint { margin-top: 12px; }
.bx-stu-rep { flex-wrap: wrap; align-items: flex-end; gap: 8px 12px; margin: 12px 0 4px; }
.bx-stu-rep .bx-field { margin: 0; min-width: 170px; }
.bx-stu-pause { display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; border-radius: var(--r); background: var(--ink); color: #fff; }
.bx-stu-pause-ic { flex: none; margin-top: 2px; }
.bx-stu-pause-t { margin: 0; font-size: 17px; font-weight: 700; letter-spacing: -0.01em; }
.bx-stu-pause-s { margin: 4px 0 0; color: rgba(255, 255, 255, .82); font-size: 14px; }
@media (max-width: 1180px) {
  .bx-ow-charts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 719px) {
  .bx-ow-grid4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 0; }
  .bx-ow-grid4 .bx-tile { padding: 0 12px; }
  .bx-ow-grid4 .bx-tile:nth-child(2n + 1) { padding-left: 0; border-left: 0; }
  .bx-ow-big { font-size: 22px; }
  .bx-ow-charts { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .bx-ow-mhint { display: none; }
  .bx-ow-long { display: none; }
  .bx-ow-short { display: inline; }
  .bx-ow-table th, .bx-ow-table td, .bx-ow-src th, .bx-ow-src td { padding-left: 6px; padding-right: 6px; }
  .bx-ow-table td, .bx-ow-src td { font-size: 13px; }
  .bx-ow-src-barh, .bx-ow-src-barc { display: none; }
}
