/* Blackburn Mentoring v2 app styles. One stylesheet, no external fonts. */

:root {
  --bg: #f6f6f4;
  --surface: #ffffff;
  --ink: #111111;
  --ink-2: #3d3d3d;
  --mute: #6b6b6b;
  --faint: #9a9a9a;
  --line: #e6e6e3;
  --line-2: #d6d6d2;
  --hover: #f0f0ed;
  --green: #1f9d55;
  --amber: #b7791f;
  --amber-bg: #fbf5ea;
  --amber-line: #efdfc2;
  --red: #c53030;
  --red-bg: #fbeeee;
  --focus: #2f6fed;
  --sans: "Helvetica Neue", Helvetica, Inter, Arial, sans-serif;
  --serif: "Iowan Old Style", "Charter", Georgia, serif;
  --r: 10px;
  --r-btn: 8px;
  --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);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html, body { margin: 0; padding: 0; }
body {
  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.bm-locked, html.bm-locked body { overflow: hidden; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
img, svg { display: block; }
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
[hidden] { display: none !important; }
.bm-ic { flex: none; }
.bm-tnum { font-variant-numeric: tabular-nums; }
.bm-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

:focus { outline: none; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.bm-input:focus-visible, .bm-input:focus { outline: 2px solid var(--focus); outline-offset: 0; border-color: var(--focus); }

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

/* ---------- Wordmark ---------- */
.bm-wordmark { display: inline-flex; flex-direction: column; align-items: flex-start; line-height: 1; color: var(--ink); text-decoration: none; }
.bm-wm-top { font-size: 15px; letter-spacing: .24em; white-space: nowrap; }
.bm-wm-light { font-weight: 300; }
.bm-wm-bold { font-weight: 700; }
.bm-wm-sub { font-size: 9px; letter-spacing: .42em; margin-top: 6px; color: var(--mute); }
.bm-wordmark-sm .bm-wm-top { font-size: 13px; }
.bm-wordmark-sm .bm-wm-sub { font-size: 8px; margin-top: 5px; }

/* ---------- Shell ---------- */
.bm-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;
}
.bm-rail-brand { display: block; padding: 0 10px 28px; text-decoration: none; border-radius: 6px; }
.bm-rail-search {
  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(--mute); font-size: 13px; text-align: left;
  transition: border-color .15s var(--ease), background .15s var(--ease);
}
.bm-rail-search:hover { border-color: var(--line-2); background: var(--surface); }
.bm-rail-search span { flex: 1; }
kbd { font-family: var(--sans); font-size: 11px; color: var(--mute); border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 5px; padding: 1px 5px; background: var(--surface); white-space: nowrap; }
.bm-rail-nav { display: flex; flex-direction: column; gap: 2px; }
.bm-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);
}
.bm-rail-item:hover { background: var(--hover); color: var(--ink); }
.bm-rail-item.is-on { background: var(--hover); color: var(--ink); font-weight: 600; }
.bm-rail-label { flex: 1; }
.bm-badge { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 11px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; font-variant-numeric: tabular-nums; }
.bm-badge-amber { background: var(--amber); }
.bm-rail-foot { margin-top: auto; border-top: 1px solid var(--line); padding-top: 12px; }
.bm-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); }
.bm-rail-user:hover { background: var(--hover); }
.bm-rail-user-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.bm-rail-user-name { color: var(--ink); font-weight: 600; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bm-rail-user-role { font-size: 12px; color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.bm-top { display: none; }
.bm-tabbar { display: none; }
.bm-app { 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)); }
.bm-stage { margin-left: var(--rail); min-height: 100vh; display: flex; flex-direction: column; }
.bm-main { flex: 1; padding: var(--pad); outline: none; }

/* Join bar */
.bm-joinbar { position: sticky; top: 0; z-index: 15; background: var(--ink); color: #fff; }
.bm-joinbar-in { max-width: 1200px; margin: 0 auto; padding: 0 var(--pad); height: 48px; display: flex; align-items: center; gap: 12px; }
.bm-joinbar-text { flex: 1; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bm-joinbar-btn { background: #fff; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 13px; height: 32px; padding: 0 16px; border-radius: var(--r-btn); display: inline-flex; align-items: center; }
.bm-joinbar-btn:hover { background: #ececea; }
.bm-joinbar-btn:focus-visible { outline-color: #fff; }
.bm-live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); flex: none; box-shadow: 0 0 0 0 rgba(31, 157, 85, .6); animation: bm-pulse 2s infinite; display: inline-block; }
@keyframes bm-pulse { 0% { box-shadow: 0 0 0 0 rgba(31, 157, 85, .55); } 70% { box-shadow: 0 0 0 7px rgba(31, 157, 85, 0); } 100% { box-shadow: 0 0 0 0 rgba(31, 157, 85, 0); } }

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

/* ---------- Page ---------- */
.bm-page { max-width: 1200px; margin: 0 auto; }
.bm-page-narrow { max-width: 820px; }
.bm-page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 24px; margin-bottom: 28px; flex-wrap: wrap; }
.bm-page-head-big { margin: 8px 0 32px; }
.bm-page-titles { min-width: 0; flex: 1 1 320px; }
.bm-page-title { font-size: 28px; line-height: 1.15; font-weight: 700; letter-spacing: -0.02em; }
.bm-page-sub { color: var(--mute); margin-top: 6px; font-size: 14px; }
.bm-greeting { font-size: 40px; line-height: 1.1; font-weight: 700; letter-spacing: -0.025em; }
.bm-daily { font-size: 16px; color: var(--ink-2); margin-top: 10px; }
.bm-page-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.bm-kicker, .bm-label { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); font-weight: 600; margin-bottom: 8px; }
.bm-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; }
.bm-back:hover { color: var(--ink); background: var(--hover); }
.bm-page-foot { color: var(--mute); font-size: 13px; margin-top: 16px; text-align: center; }

.bm-grid-2 { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.bm-col { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.bm-stack { display: flex; flex-direction: column; gap: 16px; }
.bm-stack-sm { display: flex; flex-direction: column; gap: 8px; }
.bm-row-gap { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.bm-toolbar { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.bm-toolbar-right { margin-left: auto; }
.bm-stack > .bm-toolbar { margin-bottom: 0; }
.bm-mt { margin-top: 14px; }
.bm-mt-sm { margin-top: 8px; }
.bm-pad { padding: 20px 24px; }
.bm-muted { color: var(--mute); }
.bm-muted-text { color: var(--mute); font-size: 14px; }
.bm-amber { color: var(--amber); }
.bm-pre { white-space: pre-wrap; color: var(--ink-2); }

/* ---------- Cards ---------- */
.bm-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 20px 24px; min-width: 0; }
.bm-card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; min-height: 22px; }
.bm-card-title { font-size: 16px; font-weight: 600; letter-spacing: -0.01em; flex: 1; min-width: 0; }
.bm-card-meta { color: var(--mute); font-size: 13px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.bm-card-link { color: var(--ink); font-size: 13px; text-decoration: none; display: inline-flex; align-items: center; gap: 2px; font-weight: 600; white-space: nowrap; border-radius: 4px; }
.bm-card-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.bm-card-flush { padding: 0; overflow: hidden; }
.bm-card-flush-body { padding: 20px 0 4px; }
.bm-card-flush-body > .bm-card-head { padding: 0 24px; margin-bottom: 8px; }
.bm-card-private { background: #fcfbf8; }
.bm-card-attn { border-color: var(--amber-line); }

/* Serif reading */
.bm-serif { font-family: var(--serif); font-size: 17px; line-height: 1.6; color: var(--ink); white-space: pre-wrap; overflow-wrap: anywhere; }
.bm-serif-sm { font-size: 15px; }
.bm-clamp-6 { display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- Buttons ---------- */
.bm-btn {
  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; font-size: 14px; font-weight: 600; line-height: 1;
  text-decoration: none; white-space: nowrap; transition: background .15s var(--ease), border-color .15s var(--ease), color .15s var(--ease), opacity .15s; user-select: none;
}
.bm-btn-sm { height: 32px; padding: 0 12px; font-size: 13px; gap: 6px; }
.bm-btn-block { width: 100%; }
.bm-btn-primary { background: var(--ink); color: #fff; }
.bm-btn-primary:hover { background: #2a2a2a; }
.bm-btn-secondary { background: var(--surface); color: var(--ink); border-color: var(--line-2); }
.bm-btn-secondary:hover { background: var(--hover); }
.bm-btn-ghost { background: transparent; color: var(--ink-2); }
.bm-btn-ghost:hover { background: var(--hover); color: var(--ink); }
.bm-btn-ghost-danger { background: transparent; color: var(--red); }
.bm-btn-ghost-danger:hover { background: var(--red-bg); }
.bm-btn-danger { background: var(--red); color: #fff; }
.bm-btn-danger:hover { background: #a82828; }
.bm-btn-inverse { background: #fff; color: var(--ink); }
.bm-btn-inverse:hover { background: #ececea; }
.bm-btn-inverse-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .28); }
.bm-btn-inverse-ghost:hover { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .5); }
.bm-btn-inverse:focus-visible, .bm-btn-inverse-ghost:focus-visible { outline-color: #fff; }
.bm-btn-icon { width: 40px; padding: 0; }
.bm-btn:disabled, .bm-btn.is-closed { opacity: .45; cursor: not-allowed; }
.bm-btn.is-busy { opacity: .7; cursor: progress; }
.bm-iconbtn { width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; border-radius: var(--r-btn); border: 0; background: transparent; color: var(--mute); text-decoration: none; flex: none; transition: background .15s var(--ease), color .15s var(--ease); }
.bm-iconbtn:hover { background: var(--hover); color: var(--ink); }
.bm-link { color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; background: none; border: 0; padding: 0; cursor: pointer; border-radius: 3px; }
.bm-link:hover { text-decoration-color: var(--ink); }
.bm-link-sm { font-size: 13px; }
.bm-link-quiet { color: inherit; text-decoration: none; }
.bm-link-quiet:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Pills, tags, avatars ---------- */
.bm-pill { 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; }
.bm-pill-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--faint); }
.bm-pill-active .bm-pill-dot, .bm-pill-live .bm-pill-dot { background: var(--green); }
.bm-pill-live { color: var(--green); background: #ebf6ef; }
.bm-pill-scheduled { background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-2); }
.bm-pill-scheduled .bm-pill-dot { background: var(--ink); }
.bm-pill-completed { color: var(--mute); }
.bm-pill-completed .bm-pill-dot { background: var(--mute); }
.bm-pill-canceled, .bm-pill-no_show { color: var(--red); background: var(--red-bg); }
.bm-pill-canceled .bm-pill-dot, .bm-pill-no_show .bm-pill-dot { background: var(--red); }
.bm-pill-invited, .bm-pill-pending, .bm-pill-attention { color: var(--amber); background: var(--amber-bg); }
.bm-pill-invited .bm-pill-dot, .bm-pill-pending .bm-pill-dot, .bm-pill-attention .bm-pill-dot { background: var(--amber); }
.bm-pill-paused { color: var(--mute); }
.bm-pill-accepted { color: var(--green); background: #ebf6ef; }
.bm-pill-accepted .bm-pill-dot { background: var(--green); }
.bm-pill-archived { color: var(--faint); background: transparent; box-shadow: inset 0 0 0 1px var(--line); }
.bm-tag { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.bm-tag-amber { color: var(--amber); background: var(--amber-bg); }

.bm-av { position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 600; flex: none; letter-spacing: .02em; user-select: none; }
.bm-av-light { background: #ecebe7; color: var(--ink); }
.bm-av.has-photo { background: #e7e6e2; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .06); }
.bm-av.has-photo .bm-av-i { visibility: hidden; }
.bm-av-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.bm-av-28 { width: 28px; height: 28px; font-size: 11px; }
.bm-av-32 { width: 32px; height: 32px; font-size: 12px; }
.bm-av-36 { width: 36px; height: 36px; font-size: 13px; }
.bm-av-48 { width: 48px; height: 48px; font-size: 17px; }
.bm-av-56 { width: 56px; height: 56px; font-size: 19px; }
.bm-av-64 { width: 64px; height: 64px; font-size: 22px; }
.bm-av-72 { width: 72px; height: 72px; font-size: 24px; }
.bm-av-88 { width: 88px; height: 88px; font-size: 28px; }
.bm-av-96 { width: 96px; height: 96px; font-size: 30px; }

/* ---------- Forms ---------- */
.bm-form { display: flex; flex-direction: column; gap: 16px; }
.bm-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.bm-field-row { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.bm-field-label { font-size: 13px; font-weight: 600; color: var(--ink); }
.bm-optional { font-weight: 400; color: var(--faint); }
.bm-field-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.bm-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; transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
  -webkit-appearance: none; appearance: none;
}
.bm-input::placeholder { color: var(--faint); }
.bm-input:hover { border-color: #c4c4bf; }
.bm-input[readonly] { background: var(--bg); }
.bm-textarea { height: auto; min-height: 84px; padding: 10px 12px; line-height: 1.5; resize: vertical; }
.bm-serif-input { font-family: var(--serif); font-size: 16px; line-height: 1.6; }
.bm-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; }
.bm-select-sm { height: 32px; font-size: 13px; background-position: calc(100% - 17px) 13px, calc(100% - 12px) 13px; }
input[type=date].bm-input { padding-right: 8px; }
input[type=search].bm-input::-webkit-search-decoration { -webkit-appearance: none; }
.bm-hint { font-size: 13px; color: var(--mute); line-height: 1.45; }
.bm-fine { font-size: 12px; color: var(--faint); text-align: center; line-height: 1.5; }
.bm-form-actions { display: flex; justify-content: flex-end; gap: 8px; }
.bm-form-actions-split { justify-content: space-between; align-items: center; margin-top: 12px; }
.bm-form-error, .bm-note { display: flex; gap: 8px; align-items: flex-start; padding: 10px 12px; border-radius: var(--r); font-size: 13px; line-height: 1.45; }
.bm-form-error, .bm-note-error { background: var(--red-bg); color: #8f2323; }
.bm-form-error .bm-ic, .bm-note .bm-ic { margin-top: 1px; }
.bm-note-info { background: var(--hover); color: var(--ink-2); }

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

.bm-check { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: 14px; position: relative; min-height: 24px; }
.bm-check-input { position: absolute; opacity: 0; width: 20px; height: 20px; margin: 0; left: 0; top: 50%; transform: translateY(-50%); cursor: pointer; }
.bm-check-box { width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid var(--line-2); background: var(--surface); display: inline-flex; align-items: center; justify-content: center; flex: none; color: transparent; transition: background .15s var(--ease), border-color .15s var(--ease), color .15s; }
.bm-check:hover .bm-check-box { border-color: var(--mute); }
.bm-check-input:checked + .bm-check-box, .bm-check-box.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }
.bm-check-input:focus-visible + .bm-check-box { outline: 2px solid var(--focus); outline-offset: 2px; }
.bm-check-box.is-static { width: 18px; height: 18px; border-radius: 5px; }

.bm-switch-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 4px 0; }
.bm-switch-text { flex: 1; min-width: 0; }
.bm-switch-label { font-weight: 600; font-size: 14px; cursor: pointer; }
.bm-switch-text .bm-hint { margin-top: 2px; }
.bm-switch { position: relative; width: 40px; height: 24px; flex: none; margin-top: 1px; }
.bm-switch-input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; z-index: 1; width: 100%; height: 100%; }
.bm-switch-track { position: absolute; inset: 0; border-radius: 999px; background: var(--line-2); transition: background .15s var(--ease); }
.bm-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); }
.bm-switch-input:checked + .bm-switch-track { background: var(--ink); }
.bm-switch-input:checked + .bm-switch-track::after { transform: translateX(16px); }
.bm-switch-input:focus-visible + .bm-switch-track { outline: 2px solid var(--focus); outline-offset: 2px; }

.bm-seg { display: inline-flex; padding: 3px; gap: 2px; background: var(--hover); border-radius: 9px; max-width: 100%; }
.bm-seg-item { height: 30px; 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); }
.bm-seg-item:hover { color: var(--ink); }
.bm-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); }

.bm-save-state { font-size: 12px; color: var(--faint); white-space: nowrap; min-height: 16px; }
.bm-card-head .bm-save-state:empty { display: none; }
.bm-save-state.is-saved { color: var(--green); }
.bm-save-state.is-error { color: var(--red); }

/* ---------- Empty, progress, skeleton ---------- */
.bm-empty { text-align: center; padding: 40px 24px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.bm-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: 8px; }
.bm-empty-title { font-weight: 600; font-size: 15px; }
.bm-empty-text { color: var(--mute); max-width: 380px; font-size: 14px; }
.bm-empty .bm-btn, .bm-empty .bm-row-gap { margin-top: 12px; }
.bm-progress { height: 4px; background: var(--hover); border-radius: 999px; overflow: hidden; flex: 1; }
.bm-progress-bar { display: block; height: 100%; background: var(--ink); border-radius: 999px; transition: width .3s var(--ease); }
.bm-skel { background: linear-gradient(90deg, #ecebe7 0%, #f3f2ef 50%, #ecebe7 100%); background-size: 200% 100%; animation: bm-shimmer 1.4s ease-in-out infinite; border-radius: 8px; }
.bm-skel-gap { margin-top: 12px; }
.bm-skel-round { border-radius: 50%; flex: none; }
.bm-skel-hero { border-radius: var(--r); margin-bottom: 24px; }
.bm-skel-block { border-radius: var(--r); }
.bm-skel-card { display: flex; flex-direction: column; gap: 20px; }
.bm-skel-row { display: flex; gap: 12px; align-items: center; }
.bm-skel-dark { background: linear-gradient(90deg, #1c1c1c 0%, #262626 50%, #1c1c1c 100%); background-size: 200% 100%; }
@keyframes bm-shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* ---------- Hero (next session) ---------- */
.bm-hero { background: var(--ink); color: #fff; border-radius: 14px; padding: 28px 32px; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px 32px; margin-bottom: 24px; flex-wrap: wrap; position: relative; overflow: hidden; }
.bm-hero::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; }
.bm-hero::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; }
.bm-hero-main { min-width: 0; flex: 1 1 340px; position: relative; z-index: 1; }
.bm-hero-kicker { font-size: 12px; letter-spacing: .14em; font-weight: 600; color: rgba(255, 255, 255, .6); display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.bm-hero-count-inline { letter-spacing: .02em; text-transform: none; color: #fff; font-weight: 600; padding-left: 10px; border-left: 1px solid rgba(255, 255, 255, .2); }
.bm-hero-title { font-size: 32px; line-height: 1.1; font-weight: 700; letter-spacing: -0.02em; }
.bm-hero-at { font-weight: 300; color: rgba(255, 255, 255, .7); }
.bm-hero-sub { color: rgba(255, 255, 255, .72); margin-top: 8px; font-size: 15px; }
.bm-hero-count { margin-top: 14px; font-size: 13px; color: #fff; display: inline-flex; align-items: center; gap: 8px; padding: 5px 10px; border-radius: 999px; background: rgba(255, 255, 255, .1); }
.bm-hero-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; position: relative; z-index: 1; }
.bm-hero-note { width: 100%; font-size: 12px; color: rgba(255, 255, 255, .55); text-align: right; }
.bm-hero-empty { display: block; background: var(--surface); color: var(--ink); border: 1px dashed var(--line-2); }
.bm-hero-empty::before, .bm-hero-empty::after { display: none; }
.bm-hero-empty .bm-hero-kicker { color: var(--mute); }
.bm-hero-empty .bm-hero-title { font-size: 24px; }
.bm-hero-empty .bm-hero-sub { color: var(--mute); }
.bm-hero-empty .bm-hero-actions { margin-top: 18px; }
.bm-hero-empty .bm-btn-inverse { background: var(--ink); color: #fff; }
.bm-hero-person { display: flex; align-items: center; gap: 16px; }
.bm-hero-person .bm-av { background: #fff; color: var(--ink); }
.bm-hero-facts { display: flex; gap: 32px; margin-top: 22px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .12); flex-wrap: wrap; }
.bm-hero-fact { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: rgba(255, 255, 255, .6); }
.bm-hero-fact-n { font-size: 22px; font-weight: 700; color: #fff; line-height: 1; }
.bm-hero-fact-wide { flex: 1; min-width: 220px; }
.bm-hero-fact-l { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; }
.bm-hero-quote { font-family: var(--serif); font-size: 15px; color: rgba(255, 255, 255, .88); line-height: 1.5; }

/* ---------- Steps ---------- */
.bm-steps-progress { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.bm-steps-count { font-size: 13px; color: var(--mute); white-space: nowrap; font-variant-numeric: tabular-nums; }
.bm-steps-empty { color: var(--mute); padding: 8px 0; }
.bm-steps-list { display: flex; flex-direction: column; }
.bm-step { display: flex; align-items: center; gap: 8px; min-height: 48px; border-bottom: 1px solid var(--line); padding: 6px 0; }
.bm-step:last-child { border-bottom: 0; }
.bm-step-check { flex: 1; min-width: 0; padding: 6px 0; align-items: flex-start; }
.bm-step-check .bm-check-box { margin-top: 1px; }
.bm-step-check .bm-check-input { top: 16px; }
.bm-step-text { overflow-wrap: anywhere; line-height: 1.45; transition: color .15s; }
.bm-step.is-done .bm-step-text { color: var(--faint); text-decoration: line-through; text-decoration-color: var(--line-2); }
.bm-step-actions { display: flex; gap: 2px; opacity: 0; transition: opacity .15s; }
.bm-step:hover .bm-step-actions, .bm-step:focus-within .bm-step-actions { opacity: 1; }
.bm-step-meta { font-size: 12px; color: var(--faint); white-space: nowrap; }
.bm-step.is-editing { padding: 6px 0; }
.bm-steps-ro .bm-step { min-height: 40px; gap: 12px; align-items: flex-start; padding: 10px 0; }
.bm-steps-ro .bm-check-box { margin-top: 1px; }
.bm-step-add { display: flex; align-items: center; gap: 8px; margin-top: 8px; color: var(--faint); }
.bm-step-add .bm-input { flex: 1; border-color: var(--line); }
.bm-steps-foot { margin-top: 12px; text-align: right; }
.bm-card-steps .bm-steps-progress { margin-top: -4px; }

/* ---------- Messages preview, thread ---------- */
.bm-msg-preview { display: flex; flex-direction: column; gap: 12px; }
.bm-msg-prev { padding: 12px 14px; background: var(--bg); border-radius: var(--r); }
.bm-msg-prev.is-mine { background: transparent; box-shadow: inset 0 0 0 1px var(--line); }
.bm-msg-prev-head { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 4px; }
.bm-msg-prev-name { font-weight: 600; font-size: 13px; }
.bm-msg-prev-time { font-size: 12px; color: var(--faint); }
.bm-msg-prev-text { font-size: 14px; color: var(--ink-2); overflow-wrap: anywhere; }

.bm-thread { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); min-height: 0; overflow: hidden; }
.bm-thread-head { display: flex; align-items: center; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--line); flex: none; }
.bm-thread-head-text { flex: 1; min-width: 0; }
.bm-thread-name { font-weight: 600; font-size: 15px; }
.bm-thread-sub { font-size: 13px; color: var(--mute); }
.bm-thread-back { display: none; margin-left: -8px; }
.bm-thread-scroll { flex: 1; overflow-y: auto; padding: 20px 24px; min-height: 0; overscroll-behavior: contain; }
.bm-thread-inner { display: flex; flex-direction: column; gap: 4px; max-width: 760px; margin: 0 auto; }
.bm-thread-empty { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 6px; padding: 40px 16px; }
.bm-daysep { text-align: center; margin: 16px 0 8px; }
.bm-daysep span { font-size: 12px; color: var(--faint); font-weight: 600; letter-spacing: .04em; }
.bm-msg-group { display: flex; flex-direction: column; gap: 3px; max-width: 78%; margin-bottom: 8px; }
.bm-msg-group.is-mine { align-self: flex-end; align-items: flex-end; }
.bm-msg-group.is-theirs { align-self: flex-start; align-items: flex-start; }
.bm-bubble { padding: 9px 14px; border-radius: 18px; font-size: 14px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; max-width: 100%; }
.is-mine .bm-bubble { background: var(--ink); color: #fff; border-bottom-right-radius: 6px; }
.is-theirs .bm-bubble { background: #efefec; color: var(--ink); border-bottom-left-radius: 6px; }
.bm-bubble.is-pending { opacity: .6; }
.bm-msg-meta { font-size: 11px; color: var(--faint); padding: 0 6px; margin-top: 2px; }
.bm-composer-wrap { border-top: 1px solid var(--line); padding: 12px 16px 10px; flex: none; background: var(--surface); }
.bm-composer { display: flex; align-items: flex-end; gap: 8px; max-width: 760px; margin: 0 auto; }
.bm-composer-input { min-height: 44px; max-height: 180px; resize: none; padding: 11px 14px; border-radius: 22px; }
.bm-send { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--ink); color: #fff; display: inline-flex; align-items: center; justify-content: center; flex: none; transition: opacity .15s; }
.bm-send:disabled { opacity: .25; cursor: default; }
.bm-composer-hint { font-size: 11px; color: var(--faint); text-align: center; margin-top: 6px; }
.bm-page-thread { max-width: 860px; display: flex; flex-direction: column; height: calc(100vh - var(--pad) * 2); min-height: 420px; }
.bm-has-join .bm-page-thread { height: calc(100vh - var(--pad) * 2 - 48px); }
.bm-thread-full { flex: 1; }
.bm-crisis { font-size: 12px; color: var(--faint); text-align: center; margin-top: 10px; }
.bm-profile-thread .bm-thread { height: min(640px, calc(100vh - 300px)); min-height: 420px; }

/* ---------- Strip / stats ---------- */
.bm-strip { padding: 20px 24px; border: 1px solid var(--line); border-radius: var(--r); background: transparent; }
.bm-strip-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.bm-stat { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.bm-stat-n { font-size: 28px; font-weight: 700; letter-spacing: -0.02em; line-height: 1; }
.bm-stat-l { font-size: 12px; color: var(--mute); line-height: 1.3; }

/* ---------- People ---------- */
.bm-person { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.bm-person-name { font-weight: 600; font-size: 16px; }
.bm-person-sub { color: var(--mute); font-size: 13px; }

/* ---------- Session lists ---------- */
.bm-dateblock { width: 48px; height: 52px; border-radius: 10px; border: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; justify-content: center; flex: none; background: var(--surface); }
.bm-dateblock-mon { font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); font-weight: 600; }
.bm-dateblock-day { font-size: 20px; font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; }
.bm-dateblock.is-muted { background: var(--bg); }
.bm-dateblock.is-muted .bm-dateblock-day { color: var(--mute); }
.bm-slist, .bm-plist { display: flex; flex-direction: column; }
.bm-srow, .bm-prow { display: flex; align-items: center; gap: 16px; padding: 14px 24px; border-bottom: 1px solid var(--line); position: relative; transition: background .15s var(--ease); }
.bm-srow:last-child, .bm-prow:last-child { border-bottom: 0; }
.bm-srow:hover, .bm-prow:hover { background: #fafaf8; }
.bm-srow-main, .bm-prow-main { flex: 1; min-width: 0; }
.bm-srow-link { display: flex; flex-direction: column; gap: 2px; text-decoration: none; }
.bm-srow-link::after, .bm-prow-link { content: ""; position: absolute; inset: 0; z-index: 0; }
.bm-srow-title, .bm-prow-title { font-weight: 600; font-size: 15px; }
.bm-srow-sub { color: var(--mute); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bm-srow-side, .bm-prow-side { display: flex; align-items: center; gap: 8px; position: relative; z-index: 1; flex: none; }
.bm-srow-chev { color: var(--faint); }
.bm-srow.is-canceled .bm-srow-title, .bm-prow.is-canceled .bm-prow-title { text-decoration: line-through; color: var(--mute); }
.bm-prow-top { display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; }
.bm-prow-top .bm-muted { font-size: 13px; }
.bm-prow-excerpt { font-size: 13px; color: var(--ink-2); margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bm-prow-full { margin-top: 8px; font-size: 15px; }
.bm-prow-steps { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--mute); }
.bm-glyph { color: var(--faint); display: inline-flex; }
.bm-glyph.is-on { color: var(--ink); }
.bm-prow-link { display: block; }

/* ---------- Agenda (today) ---------- */
.bm-agenda { position: relative; display: flex; flex-direction: column; }
.bm-agenda-item { display: grid; grid-template-columns: 72px 20px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px 0; position: relative; }
.bm-agenda-item::before { content: ""; position: absolute; left: 93px; top: 0; bottom: 0; width: 1px; background: var(--line); }
.bm-agenda-item:first-child::before { top: 50%; }
.bm-agenda-item:last-child::before { bottom: 50%; }
.bm-agenda-item:only-child::before { display: none; }
.bm-agenda-time { display: flex; flex-direction: column; font-weight: 600; font-size: 14px; line-height: 1.25; }
.bm-agenda-len { font-size: 12px; color: var(--faint); font-weight: 400; }
.bm-agenda-node { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--ink); background: var(--surface); position: relative; z-index: 1; justify-self: center; display: inline-flex; align-items: center; justify-content: center; }
.bm-agenda-item.is-done .bm-agenda-node { background: var(--mute); border-color: var(--mute); color: #fff; width: 18px; height: 18px; }
.bm-agenda-item.is-live .bm-agenda-node { border-color: var(--green); background: var(--green); box-shadow: 0 0 0 4px #ebf6ef; }
.bm-agenda-item.is-canceled .bm-agenda-node, .bm-agenda-item.is-noshow .bm-agenda-node { border-color: var(--line-2); }
.bm-agenda-body { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: var(--r); border: 1px solid var(--line); text-decoration: none; min-width: 0; transition: border-color .15s var(--ease), background .15s; }
.bm-agenda-body:hover { border-color: var(--line-2); background: #fafaf8; }
.bm-agenda-name { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bm-agenda-item.is-done .bm-agenda-name, .bm-agenda-item.is-done .bm-agenda-time { color: var(--mute); }
.bm-agenda-item.is-canceled .bm-agenda-name { text-decoration: line-through; color: var(--faint); }

/* Needs attention */
.bm-att { display: flex; flex-direction: column; }
.bm-att-item { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.bm-att-item:first-child { padding-top: 0; }
.bm-att-item:last-child { border-bottom: 0; padding-bottom: 0; }
.bm-att-ic { width: 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.bm-att-amber { background: var(--amber-bg); color: var(--amber); }
.bm-att-text { flex: 1; min-width: 0; display: flex; flex-direction: column; text-decoration: none; }
.bm-att-link:hover .bm-att-title { text-decoration: underline; text-underline-offset: 3px; }
.bm-att-title { font-weight: 600; font-size: 14px; display: flex; align-items: center; gap: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bm-att-sub { font-size: 13px; color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bm-att-sub.bm-amber { color: var(--amber); white-space: normal; }
.bm-nowrap { white-space: nowrap; }
.bm-att-time { font-size: 12px; color: var(--faint); white-space: nowrap; }
.bm-unread-n { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 11px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.bm-caught { display: flex; align-items: center; gap: 10px; color: var(--ink-2); padding: 4px 0; }
.bm-caught-ic { width: 28px; height: 28px; border-radius: 50%; background: #ebf6ef; color: var(--green); display: inline-flex; align-items: center; justify-content: center; }

/* ---------- Clients list ---------- */
.bm-toolbar-wrap { gap: 12px 16px; }
.bm-search { position: relative; display: flex; align-items: center; flex: 0 1 300px; min-width: 200px; color: var(--faint); }
.bm-search .bm-ic { position: absolute; left: 12px; pointer-events: none; }
.bm-search-input { padding-left: 36px; }
.bm-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.bm-chip { 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: all .15s var(--ease); }
.bm-chip:hover { border-color: var(--mute); }
.bm-chip-n { color: var(--faint); font-weight: 600; font-variant-numeric: tabular-nums; }
.bm-chip.is-on { background: var(--ink); color: #fff; border-color: var(--ink); }
.bm-chip.is-on .bm-chip-n { color: rgba(255, 255, 255, .6); }
.bm-chip.is-amber:not(.is-on) .bm-chip-n { color: var(--amber); }

.bm-clist-head, .bm-crow { display: grid; grid-template-columns: minmax(220px, 2.2fr) 110px minmax(120px, 1.2fr) 110px 110px 40px; gap: 16px; align-items: center; padding: 0 24px; }
.bm-clist-head.has-mentor, .bm-crow.has-mentor { grid-template-columns: minmax(200px, 2fr) 100px minmax(110px, 1.1fr) 100px 100px minmax(110px, 1fr) 72px; }
.bm-clist-head { height: 40px; font-size: 12px; color: var(--mute); font-weight: 600; letter-spacing: .04em; border-bottom: 1px solid var(--line); background: #fbfbfa; }
.bm-crow { min-height: 64px; padding-top: 10px; padding-bottom: 10px; border-bottom: 1px solid var(--line); position: relative; transition: background .15s var(--ease); }
.bm-crow:last-child { border-bottom: 0; }
.bm-crow:hover { background: #fafaf8; }
.bm-crow.is-archived { opacity: .65; }
.bm-crow-link { position: absolute; inset: 0; z-index: 0; border-radius: 0; }
.bm-crow-link:focus-visible { outline-offset: -2px; }
.bm-crow-who { display: flex; align-items: center; gap: 12px; min-width: 0; text-decoration: none; }
.bm-crow-names { display: flex; flex-direction: column; min-width: 0; }
.bm-crow-name { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bm-crow-email { font-size: 13px; color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bm-cell-next { display: flex; flex-direction: column; font-size: 13px; line-height: 1.35; }
.bm-cell-next > span:not(.bm-muted):not(.bm-phone-label) { font-weight: 600; }
.bm-crow-next, .bm-crow-msg, .bm-crow-mentor, .bm-crow-steps { font-size: 13px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bm-crow-act { position: relative; z-index: 1; display: flex; justify-content: flex-end; }
.bm-crow-chev { color: var(--faint); }
.bm-phone-label { display: none; }
.bm-ministeps { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; }
.bm-ministeps-bar { width: 36px; height: 4px; border-radius: 999px; background: var(--hover); overflow: hidden; display: inline-block; }
.bm-ministeps-bar span { display: block; height: 100%; background: var(--ink); }
.bm-cell-msg { display: inline-flex; align-items: center; gap: 6px; color: var(--mute); }
.bm-cell-msg.is-unread { color: var(--ink); font-weight: 600; }
.bm-unread-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ink); display: inline-block; }

/* ---------- Profile ---------- */
.bm-profile-head { display: flex; align-items: center; gap: 20px; margin-bottom: 20px; flex-wrap: wrap; }
.bm-profile-id { flex: 1 1 280px; min-width: 0; }
.bm-profile-name-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.bm-profile-sub { display: flex; gap: 6px 16px; flex-wrap: wrap; color: var(--mute); font-size: 14px; margin-top: 6px; }
.bm-profile-sub > * + *::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; }
.bm-pinned { display: flex; align-items: baseline; gap: 12px; padding: 12px 16px; border-radius: var(--r); background: var(--amber-bg); border: 1px solid var(--amber-line); margin-bottom: 20px; flex-wrap: wrap; }
.bm-pinned-label { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; color: var(--amber); white-space: nowrap; }
.bm-pinned-text { flex: 1; min-width: 200px; color: var(--ink-2); }
.bm-pinned-link { font-size: 13px; font-weight: 600; color: var(--amber); white-space: nowrap; }
.bm-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 24px; overflow-x: auto; scrollbar-width: none; }
.bm-tabs::-webkit-scrollbar { display: none; }
.bm-tab { 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; text-decoration: none; position: relative; white-space: nowrap; border-radius: 6px 6px 0 0; }
.bm-tab:hover { color: var(--ink); }
.bm-tab.is-on { color: var(--ink); }
.bm-tab.is-on::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 2px; background: var(--ink); border-radius: 2px; }
.bm-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; }
.bm-next-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.bm-next-text { flex: 1; min-width: 160px; }
.bm-next-title { font-weight: 600; font-size: 16px; }
.bm-next-actions { display: flex; gap: 8px; }
.bm-next-none { flex: 1; font-weight: 600; }
.bm-facts { display: grid; grid-template-columns: auto 1fr; gap: 10px 16px; font-size: 14px; }
.bm-facts dt { color: var(--mute); }
.bm-facts dd { text-align: right; font-weight: 600; min-width: 0; overflow-wrap: anywhere; }

.bm-notes { display: flex; flex-direction: column; gap: 16px; max-width: 760px; }
.bm-private-label { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--mute); margin-bottom: 10px; }
.bm-note-list { display: flex; flex-direction: column; gap: 12px; }
.bm-note-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 20px; }
.bm-note-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.bm-note-author { font-weight: 600; font-size: 13px; }
.bm-note-time { font-size: 12px; color: var(--faint); flex: 1; }
.bm-note-text { white-space: pre-wrap; overflow-wrap: anywhere; color: var(--ink-2); }
.bm-note-del { opacity: .6; }
.bm-note-item:hover .bm-note-del { opacity: 1; }

/* ---------- Session detail ---------- */
.bm-detail-meta { display: flex; align-items: center; gap: 8px 18px; flex-wrap: wrap; color: var(--mute); margin: -16px 0 24px; font-size: 14px; }
.bm-page-detail .bm-page-head { margin-bottom: 24px; }

/* ---------- Settings ---------- */
.bm-set { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 32px; padding: 28px 0; border-top: 1px solid var(--line); }
.bm-set:first-of-type { border-top: 0; padding-top: 0; }
.bm-set-title { font-size: 16px; font-weight: 600; }
.bm-set-desc { color: var(--mute); font-size: 13px; margin-top: 4px; }
.bm-set-body { display: flex; flex-direction: column; gap: 16px; }
.bm-set-who { display: flex; align-items: center; gap: 14px; padding-bottom: 4px; }
.bm-set-name { font-weight: 600; font-size: 16px; }
.bm-set-info { display: flex; gap: 8px; align-items: center; color: var(--ink-2); padding-top: 12px; border-top: 1px solid var(--line); font-size: 13px; }
.bm-set-plan { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.bm-set-plan .bm-label { margin-bottom: 4px; }
.bm-set-help { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.bm-set-help p { flex: 1 1 260px; color: var(--ink-2); }

/* ---------- Pending ---------- */
.bm-pending { max-width: 640px; padding: 24px 0 40px; }
.bm-pending-inner { display: flex; flex-direction: column; gap: 20px; }
.bm-pending .bm-greeting { font-size: 36px; }
.bm-pending .bm-daily { margin: -8px 0 12px; }
.bm-next-steps .bm-label { margin-bottom: 16px; }
.bm-ol { display: flex; flex-direction: column; gap: 18px; }
.bm-ol-item { display: flex; gap: 14px; align-items: flex-start; }
.bm-ol-n { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line-2); display: inline-flex; align-items: center; justify-content: center; font-weight: 600; font-size: 13px; flex: none; font-variant-numeric: tabular-nums; }
.bm-ol-title { font-weight: 600; }
.bm-ol-text { color: var(--mute); font-size: 13px; }
.bm-pending-help { color: var(--mute); text-align: center; }
.bm-pending-links { display: flex; justify-content: center; gap: 8px; }

/* ---------- Calendar ---------- */
.bm-page-cal { max-width: 1400px; }
.bm-cal-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px 16px; margin-bottom: 16px; flex-wrap: wrap; }
.bm-cal-nav { display: flex; align-items: center; gap: 4px; min-width: 0; }
.bm-cal-nav .bm-btn { margin-right: 6px; }
.bm-cal-title { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; margin-left: 10px; white-space: nowrap; }
.bm-cal-tools { display: flex; align-items: center; gap: 12px; }
.bm-cal { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.bm-cal-head { display: grid; border-bottom: 1px solid var(--line); background: var(--surface); position: relative; z-index: 3; }
.bm-cal-gutter-h { font-size: 10px; color: var(--faint); display: flex; align-items: flex-end; justify-content: center; padding: 0 4px 8px; text-align: center; line-height: 1.2; overflow: hidden; }
.bm-cal-dayh { padding: 10px 8px; display: flex; align-items: baseline; justify-content: center; gap: 6px; border-left: 1px solid var(--line); }
.bm-cal-wd { font-size: 12px; color: var(--mute); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
.bm-cal-dn { font-size: 18px; font-weight: 600; font-variant-numeric: tabular-nums; width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; }
.bm-cal-dayh.is-today .bm-cal-dn { background: var(--ink); color: #fff; }
.bm-cal-dayh.is-today .bm-cal-wd { color: var(--ink); }
.bm-cal-scroll { max-height: calc(100vh - 230px); min-height: 360px; overflow-y: auto; overscroll-behavior: contain; }
.bm-has-join .bm-cal-scroll { max-height: calc(100vh - 278px); }
.bm-cal-grid { display: grid; position: relative; }
.bm-cal-gutter { position: relative; }
.bm-cal-hour { position: relative; }
.bm-cal-hour span { position: absolute; top: -7px; right: 8px; font-size: 11px; color: var(--faint); font-variant-numeric: tabular-nums; white-space: nowrap; }
.bm-cal-col { position: relative; border-left: 1px solid var(--line); cursor: copy; }
.bm-cal-col.is-today { background: #fcfcfa; }
.bm-cal-slotline { position: absolute; left: 0; right: 0; height: 48px; border-top: 1px solid var(--line); }
.bm-cal-slotline::after { content: ""; position: absolute; left: 0; right: 0; top: 24px; border-top: 1px dashed #f0f0ec; }
.bm-cal-col:hover .bm-cal-slotline { background: transparent; }
.bm-cal-block {
  position: absolute; z-index: 1; border-radius: 6px; padding: 4px 8px; text-align: left; overflow: hidden;
  background: var(--surface); border: 1px solid var(--ink); color: var(--ink); display: flex; flex-direction: column; gap: 1px; font-size: 12px; line-height: 1.25; cursor: pointer;
  transition: box-shadow .15s var(--ease), transform .15s var(--ease);
}
.bm-cal-block:hover { box-shadow: 0 4px 14px rgba(0, 0, 0, .1); z-index: 2; }
.bm-cal-block-name { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bm-cal-block-time { color: var(--mute); white-space: nowrap; }
.bm-cal-block.is-short { flex-direction: row; align-items: center; gap: 6px; padding-top: 2px; padding-bottom: 2px; }
.bm-cal-block.is-completed { background: #f1f1ee; border-color: #f1f1ee; color: var(--mute); }
.bm-cal-block.is-canceled { background: transparent; border: 1px dashed var(--line-2); color: var(--faint); }
.bm-cal-block.is-canceled .bm-cal-block-name { text-decoration: line-through; }
.bm-cal-block.is-canceled .bm-cal-block-time { color: var(--faint); }
.bm-cal-block.is-no_show { border-color: #efc9c9; background: var(--red-bg); color: var(--red); }
.bm-cal-block.is-due { box-shadow: inset 3px 0 0 var(--amber); border-color: var(--amber-line); background: var(--amber-bg); color: var(--ink); padding-left: 10px; }
.bm-cal-block.is-live { border-color: var(--green); box-shadow: inset 3px 0 0 var(--green); padding-left: 10px; }
.bm-cal-now { position: absolute; left: -1px; right: 0; height: 2px; background: var(--red); z-index: 2; pointer-events: none; }
.bm-cal-now::before { content: ""; position: absolute; left: -4px; top: -4px; width: 10px; height: 10px; border-radius: 50%; background: var(--red); }
.bm-cal-hint { font-size: 12px; color: var(--faint); margin-top: 10px; text-align: center; }
.bm-daystrip { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-bottom: 12px; }
.bm-daystrip-day { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 0 6px; border: 1px solid transparent; border-radius: 12px; background: transparent; min-height: 64px; }
.bm-daystrip-wd { font-size: 11px; color: var(--mute); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.bm-daystrip-n { font-size: 17px; font-weight: 600; font-variant-numeric: tabular-nums; }
.bm-daystrip-dots { display: flex; gap: 3px; height: 5px; }
.bm-daystrip-dots i { width: 4px; height: 4px; border-radius: 50%; background: var(--ink); }
.bm-daystrip-day.is-today .bm-daystrip-n { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px; }
.bm-daystrip-day.is-on { background: var(--ink); color: #fff; }
.bm-daystrip-day.is-on .bm-daystrip-wd { color: rgba(255, 255, 255, .7); }
.bm-daystrip-day.is-on .bm-daystrip-dots i { background: #fff; }

.bm-month { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.bm-month-head { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
.bm-month-wd { padding: 10px 12px; font-size: 12px; color: var(--mute); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
.bm-month-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); grid-auto-rows: minmax(118px, auto); }
.bm-month-cell { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 6px; display: flex; flex-direction: column; gap: 4px; min-width: 0; cursor: copy; }
.bm-month-cell:nth-child(7n) { border-right: 0; }
.bm-month-cell:nth-last-child(-n+7) { border-bottom: 0; }
.bm-month-cell.is-out { background: #fbfbfa; }
.bm-month-cell.is-out .bm-month-dn { color: var(--faint); }
.bm-month-dn { align-self: flex-start; width: 28px; height: 28px; border-radius: 50%; border: 0; background: transparent; font-weight: 600; font-size: 13px; font-variant-numeric: tabular-nums; display: inline-flex; align-items: center; justify-content: center; }
.bm-month-dn:hover { background: var(--hover); }
.bm-month-cell.is-today .bm-month-dn { background: var(--ink); color: #fff; }
.bm-month-chips { display: flex; flex-direction: column; gap: 3px; flex: 1; min-width: 0; }
.bm-month-chip { display: flex; gap: 6px; align-items: center; width: 100%; padding: 3px 6px; border-radius: 5px; border: 1px solid var(--line-2); background: var(--surface); font-size: 12px; text-align: left; min-width: 0; }
.bm-month-chip:hover { border-color: var(--ink); }
.bm-month-chip-t { color: var(--mute); white-space: nowrap; flex: none; }
.bm-month-chip-n { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.bm-month-chip.is-completed { background: #f1f1ee; border-color: #f1f1ee; color: var(--mute); }
.bm-month-chip.is-canceled { border-style: dashed; color: var(--faint); }
.bm-month-chip.is-canceled .bm-month-chip-n { text-decoration: line-through; }
.bm-month-chip.is-no_show { color: var(--red); background: var(--red-bg); border-color: #efc9c9; }
.bm-month-chip.is-due { box-shadow: inset 3px 0 0 var(--amber); background: var(--amber-bg); border-color: var(--amber-line); }
.bm-month-more { border: 0; background: none; font-size: 12px; color: var(--mute); font-weight: 600; text-align: left; padding: 2px 6px; border-radius: 4px; }
.bm-month-more:hover { color: var(--ink); background: var(--hover); }

/* ---------- Inbox ---------- */
.bm-page-inbox { max-width: 1200px; display: flex; flex-direction: column; height: calc(100vh - var(--pad) * 2); min-height: 480px; }
.bm-has-join .bm-page-inbox { height: calc(100vh - var(--pad) * 2 - 48px); }
.bm-inbox-head { margin-bottom: 20px; }
.bm-inbox { flex: 1; min-height: 0; display: grid; grid-template-columns: 320px minmax(0, 1fr); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.bm-inbox-list { border-right: 1px solid var(--line); overflow-y: auto; min-height: 0; }
.bm-threads { display: flex; flex-direction: column; padding: 6px; }
.bm-thread-item { display: flex; gap: 12px; padding: 12px; border-radius: var(--r-btn); text-decoration: none; position: relative; align-items: center; }
.bm-thread-item:hover { background: var(--bg); }
.bm-thread-item.is-on { background: var(--hover); }
.bm-thread-item.is-unread::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px; background: var(--ink); border-radius: 0 3px 3px 0; }
.bm-thread-item-main { flex: 1; min-width: 0; }
.bm-thread-item-top { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.bm-thread-item-name { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bm-thread-item.is-unread .bm-thread-item-name { font-weight: 700; }
.bm-thread-item-time { font-size: 12px; color: var(--faint); white-space: nowrap; }
.bm-thread-item-prev { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bm-thread-item-prev { display: block; }
.bm-thread-item-prev .bm-unread-n { float: right; margin-left: 8px; }
.bm-thread-item.is-unread .bm-thread-item-prev { color: var(--ink-2); }
.bm-inbox-pane { min-width: 0; min-height: 0; display: flex; flex-direction: column; }
.bm-thread-pane { border: 0; border-radius: 0; flex: 1; }
.bm-inbox-none { flex: 1; display: flex; align-items: center; justify-content: center; }

/* ---------- Team ---------- */
.bm-table-head, .bm-table-row { display: grid; gap: 16px; align-items: center; padding: 0 24px; }
.bm-team-cols { grid-template-columns: minmax(220px, 2.4fr) 110px 90px 120px 90px; }
.bm-table-head { height: 40px; font-size: 12px; color: var(--mute); font-weight: 600; letter-spacing: .04em; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fbfbfa; }
.bm-table-row { min-height: 64px; padding-top: 10px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.bm-table-row:last-child { border-bottom: 0; }
.bm-pend-list { display: flex; flex-direction: column; }
.bm-pend { display: flex; align-items: center; justify-content: space-between; gap: 12px 16px; padding: 12px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.bm-pend:first-child { padding-top: 0; }
.bm-pend:last-child { border-bottom: 0; padding-bottom: 0; }
.bm-pend-who { flex: 1 1 260px; }
.bm-pend-who:hover .bm-crow-name { text-decoration: underline; text-underline-offset: 3px; }
.bm-pend-assign { display: flex; gap: 8px; align-items: center; }
.bm-pend-assign .bm-select { width: 200px; }

/* ---------- Overlays ---------- */
.bm-overlay { position: fixed; inset: 0; z-index: 60; background: rgba(17, 17, 17, .32); display: flex; align-items: center; justify-content: center; padding: 24px; opacity: 0; transition: opacity .2s var(--ease); }
.bm-overlay.is-in { opacity: 1; }
.bm-dialog { background: var(--surface); border-radius: 14px; 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); }
.bm-overlay.is-in .bm-dialog { transform: none; }
.bm-dialog-sm { max-width: 420px; }
.bm-dialog-md { max-width: 560px; }
.bm-dialog-lg { max-width: 680px; }
.bm-dialog-head { display: flex; align-items: flex-start; gap: 12px; padding: 20px 24px 0; }
.bm-dialog-titles { flex: 1; min-width: 0; padding-top: 4px; }
.bm-dialog-title { font-size: 18px; font-weight: 700; letter-spacing: -0.01em; }
.bm-dialog-sub { color: var(--mute); font-size: 13px; margin-top: 2px; }
.bm-dialog-x { margin: -2px -10px 0 0; }
.bm-dialog-body { padding: 18px 24px 20px; overflow-y: auto; min-height: 0; }
.bm-dialog-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 24px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.bm-dialog-text { color: var(--ink-2); }

.bm-overlay-drawer { justify-content: flex-end; align-items: stretch; padding: 0; }
.bm-dialog-drawer { max-width: 400px; max-height: none; height: 100%; border-radius: 0; transform: translateX(24px); }
.bm-drawer { display: flex; flex-direction: column; gap: 20px; }
.bm-drawer-who { display: flex; gap: 14px; align-items: center; }
.bm-drawer-time { font-size: 18px; font-weight: 700; }
.bm-drawer-sec { border-top: 1px solid var(--line); padding-top: 16px; }
.bm-drawer-more { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.bm-drawer-more .bm-btn { padding: 0 10px; margin-left: -10px; }

.bm-overlay-palette { align-items: flex-start; padding-top: 14vh; }
.bm-dialog-palette { max-width: 600px; overflow: hidden; }
.bm-dialog-palette .bm-dialog-head { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); padding: 0; }
.bm-dialog-palette .bm-dialog-body { padding: 0; }
.bm-palette-search { display: flex; align-items: center; gap: 12px; padding: 0 18px; border-bottom: 1px solid var(--line); color: var(--faint); }
.bm-palette-input { flex: 1; height: 56px; border: 0; outline: none; font-size: 16px; background: transparent; color: var(--ink); min-width: 0; }
.bm-palette-input:focus-visible { outline: none; }
.bm-palette-list { max-height: 360px; overflow-y: auto; padding: 6px; }
.bm-palette-group { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); font-weight: 600; padding: 10px 12px 6px; }
.bm-palette-item { display: flex; align-items: center; gap: 12px; padding: 0 12px; height: 44px; border-radius: var(--r-btn); cursor: pointer; }
.bm-palette-item.is-on { background: var(--hover); }
.bm-palette-ic { width: 28px; height: 28px; border-radius: 8px; border: 1px solid var(--line); display: inline-flex; align-items: center; justify-content: center; color: var(--ink-2); flex: none; }
.bm-palette-label { font-weight: 600; white-space: nowrap; }
.bm-palette-sub { color: var(--faint); font-size: 13px; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.bm-palette-item kbd { margin-left: auto; }
.bm-palette-none { padding: 24px; text-align: center; color: var(--mute); }
.bm-palette-foot { display: flex; gap: 18px; padding: 10px 18px; border-top: 1px solid var(--line); font-size: 12px; color: var(--faint); background: #fbfbfa; }
.bm-palette-foot kbd { margin-right: 3px; }

/* Menu */
.bm-menu { position: fixed; z-index: 80; min-width: 210px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: 6px; animation: bm-pop .15s var(--ease); }
@keyframes bm-pop { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.bm-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; }
.bm-menu-item .bm-ic { color: var(--mute); }
.bm-menu-item:hover, .bm-menu-item:focus { background: var(--hover); outline: none; }
.bm-menu-item:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
.bm-menu-item.is-danger, .bm-menu-item.is-danger .bm-ic { color: var(--red); }
.bm-menu-sep { height: 1px; background: var(--line); margin: 6px 4px; }

/* Toasts */
.bm-toasts { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 90; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; width: max-content; max-width: calc(100vw - 32px); }
.bm-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%; }
.bm-toast.is-in { opacity: 1; transform: none; }
.bm-toast .bm-ic { color: #7fd1a1; }
.bm-toast-error .bm-ic { color: #f0a0a0; }

/* ---------- Schedule modal and pickers ---------- */
.bm-picked { display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 12px 0 8px; border: 1px solid var(--line-2); border-radius: var(--r); }
.bm-picked-name { flex: 1; font-weight: 600; }
.bm-picker-list { border: 1px solid var(--line); border-radius: var(--r); max-height: 196px; overflow-y: auto; padding: 4px; }
.bm-picker-item { display: flex; align-items: center; gap: 10px; width: 100%; height: 40px; padding: 0 8px; border: 0; background: none; border-radius: 7px; text-align: left; }
.bm-picker-item:hover { background: var(--bg); }
.bm-picker-item.is-on { background: var(--hover); }
.bm-picker-name { flex: 1; font-weight: 600; font-size: 14px; }
.bm-picker-none { padding: 14px; color: var(--mute); font-size: 13px; text-align: center; }
.bm-repeat-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.bm-repeat-count { display: flex; align-items: center; gap: 8px; color: var(--mute); }
.bm-count-select { width: 150px; height: 36px; background-position: calc(100% - 17px) 15px, calc(100% - 12px) 15px; }
.bm-sched-line { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; border-radius: var(--r); background: var(--bg); font-size: 13px; color: var(--ink-2); }
.bm-sched-line:empty { display: none; }
.bm-sched-tz { color: var(--mute); }
.bm-sched-warn { color: var(--amber); font-weight: 600; }
.bm-conflict { border: 1px solid var(--amber-line); background: var(--amber-bg); border-radius: var(--r); padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.bm-conflict-head { display: flex; gap: 8px; align-items: flex-start; color: #7a5114; font-size: 14px; }
.bm-conflict-head .bm-ic { color: var(--amber); margin-top: 2px; }
.bm-conflict-list { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--ink-2); padding-left: 24px; }
.bm-conflict-list li { display: flex; gap: 12px; justify-content: space-between; }
.bm-conflict-actions { display: flex; gap: 8px; padding-left: 24px; flex-wrap: wrap; }

/* Post-session sheet */
.bm-post .bm-textarea { min-height: 72px; }
.bm-newsteps { display: flex; flex-direction: column; }
.bm-newsteps:empty { display: none; }
.bm-newstep { display: flex; align-items: center; gap: 10px; min-height: 36px; font-size: 14px; border-bottom: 1px solid var(--line); }
.bm-newstep > span:nth-child(2) { flex: 1; }
.bm-newstep .bm-ic { color: var(--faint); }
.bm-newstep.is-existing { color: var(--mute); }
.bm-newstep-tag { font-size: 11px; color: var(--faint); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.bm-newstep .bm-iconbtn { width: 28px; height: 28px; }
.bm-post-next { padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r); }
.bm-post-next .bm-hint { margin-top: 4px; }

/* Invite done */
.bm-invite-done { align-items: flex-start; }
.bm-done-ic { width: 40px; height: 40px; border-radius: 50%; background: #ebf6ef; color: var(--green); display: inline-flex; align-items: center; justify-content: center; }
.bm-invite-done-title { font-size: 16px; }
.bm-copy { display: flex; gap: 8px; width: 100%; }
.bm-copy-input { font-size: 13px; color: var(--ink-2); }

/* ---------- Auth ---------- */
.bm-auth { min-height: 100vh; background: var(--bg); display: flex; align-items: center; justify-content: center; padding: 48px 16px; }
.bm-auth-inner { width: 100%; max-width: 420px; display: flex; flex-direction: column; align-items: center; }
.bm-auth-mark-link { text-decoration: none; margin-bottom: 32px; border-radius: 6px; }
.bm-auth-mark .bm-wm-top { font-size: 20px; }
.bm-auth-mark .bm-wm-sub { font-size: 10px; margin-top: 8px; }
.bm-auth-mark { align-items: center; }
.bm-auth-card { width: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 12px 40px rgba(0, 0, 0, .06); padding: 36px 36px 32px; display: flex; flex-direction: column; gap: 16px; }
.bm-auth-card .bm-form { gap: 16px; }
.bm-auth-title { font-size: 24px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; }
.bm-auth-text { color: var(--ink-2); font-size: 14px; margin-top: -8px; }
.bm-auth-title + .bm-auth-text { margin-top: -8px; }
.bm-auth-text-sm { color: var(--mute); font-size: 13px; margin-top: 0; }
.bm-auth-alt { text-align: center; color: var(--mute); font-size: 14px; padding-top: 4px; border-top: 1px solid var(--line); margin-top: 4px; padding-top: 18px; }
.bm-auth-foot { margin-top: 24px; color: var(--mute); font-size: 13px; }
.bm-auth-foot a { color: var(--ink); text-decoration: none; font-weight: 600; }
.bm-auth-ic { width: 44px; height: 44px; border-radius: 50%; background: var(--hover); display: inline-flex; align-items: center; justify-content: center; color: var(--ink); }
.bm-auth-back { align-self: center; font-weight: 600; font-size: 13px; }
.bm-invite-head { display: flex; flex-direction: column; gap: 8px; }
.bm-invite-head .bm-kicker { margin-bottom: 0; }
.bm-invite-email { display: flex; align-items: center; gap: 8px; color: var(--ink-2); font-size: 14px; padding: 10px 12px; background: var(--bg); border-radius: var(--r); }
.bm-tz-line { font-size: 13px; color: var(--mute); }
.bm-tz-row { display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: var(--r); color: var(--mute); }
.bm-tz-text { flex: 1; min-width: 0; display: flex; align-items: baseline; gap: 10px; overflow: hidden; white-space: nowrap; }
.bm-tz-name { color: var(--ink); font-weight: 600; font-size: 14px; overflow: hidden; text-overflow: ellipsis; }
.bm-tz-time { color: var(--mute); font-size: 13px; }
.bm-tz-line strong { color: var(--ink); font-weight: 600; }
.bm-honey { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Session room (dark focus mode) ---------- */
.bm-root-full { min-height: 100vh; }
body.bm-full { background: var(--bg); }
.bm-room { --rbg: #0c0c0c; --rpanel: #161616; --rline: #262626; --rmute: #9a9a9a; position: fixed; inset: 0; background: var(--rbg); color: #fff; display: flex; flex-direction: column; z-index: 1; }
.bm-room-loading { position: fixed; inset: 0; background: #0c0c0c; display: flex; align-items: center; justify-content: center; }
.bm-room-top { height: 56px; flex: none; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; padding: 0 12px; border-bottom: 1px solid var(--rline); }
.bm-room-leave { justify-self: start; display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px 0 8px; border-radius: var(--r-btn); border: 0; background: transparent; color: #fff; font-weight: 600; }
.bm-room-leave:hover { background: #1f1f1f; }
.bm-room-who { display: flex; align-items: center; gap: 10px; min-width: 0; justify-self: center; }
.bm-room-who .bm-av { background: #262626; color: #fff; }
.bm-room-who .bm-av.has-photo { background: #262626; box-shadow: 0 0 0 1px #333; }
.bm-room-title { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; text-align: left; }
.bm-room-title-main { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.bm-room-title-sub { font-size: 12px; color: var(--rmute); }
.bm-room-right { justify-self: end; display: flex; align-items: center; gap: 8px; }
.bm-room-timer { font-size: 13px; color: var(--rmute); padding: 0 6px; }
.bm-room-iconbtn { width: 36px; height: 36px; border-radius: var(--r-btn); border: 1px solid var(--rline); background: transparent; color: var(--rmute); display: inline-flex; align-items: center; justify-content: center; }
.bm-room-iconbtn:hover, .bm-room-iconbtn.is-on { color: #fff; background: #1f1f1f; }
.bm-room-end { height: 36px; padding: 0 14px; border-radius: var(--r-btn); border: 0; background: #fff; color: #111; font-weight: 600; font-size: 13px; }
.bm-room-end:hover { background: #e6e6e6; }
.bm-room :focus-visible { outline-color: #8fb1ff; }
.bm-room-body { flex: 1; min-height: 0; display: flex; }
.bm-room-video { flex: 1; min-width: 0; position: relative; background: #000; }
.bm-room-frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.bm-room-panel { width: 360px; flex: none; background: var(--rpanel); border-left: 1px solid var(--rline); display: flex; flex-direction: column; min-height: 0; transition: margin-right .25s var(--ease); }
.bm-room-panel.is-collapsed { margin-right: -360px; visibility: hidden; }
.bm-room-sheet-grab { display: none; }
.bm-room-tabs { display: flex; gap: 2px; padding: 10px 12px 0; border-bottom: 1px solid var(--rline); flex: none; }
.bm-room-tab { height: 40px; padding: 0 10px; border: 0; background: none; color: var(--rmute); font-weight: 600; font-size: 13px; position: relative; }
.bm-room-tab:hover { color: #fff; }
.bm-room-tab.is-on { color: #fff; }
.bm-room-tab.is-on::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 2px; background: #fff; border-radius: 2px; }
.bm-room-panel-body { flex: 1; min-height: 0; overflow-y: auto; padding: 16px; }
.bm-room-pane { display: flex; flex-direction: column; gap: 10px; height: 100%; }
.bm-room-pane-head { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--rmute); }
.bm-room .bm-input { background: #0f0f0f; border-color: var(--rline); color: #fff; }
.bm-room .bm-input::placeholder { color: #6b6b6b; }
.bm-room .bm-input:hover { border-color: #3a3a3a; }
.bm-room-ta { flex: 1; min-height: 240px; resize: none; }
.bm-room .bm-step { border-color: var(--rline); }
.bm-room .bm-check-box { background: transparent; border-color: #4a4a4a; }
.bm-room .bm-check-input:checked + .bm-check-box, .bm-room .bm-check-box.is-on { background: #fff; border-color: #fff; color: #111; }
.bm-room .bm-step.is-done .bm-step-text { color: #6b6b6b; text-decoration-color: #4a4a4a; }
.bm-room .bm-progress { background: #262626; }
.bm-room .bm-progress-bar { background: #fff; }
.bm-room .bm-steps-count, .bm-room .bm-steps-empty, .bm-room .bm-label { color: var(--rmute); }
.bm-room .bm-iconbtn { color: var(--rmute); }
.bm-room .bm-iconbtn:hover { background: #222; color: #fff; }
.bm-room .bm-btn-secondary { background: transparent; color: #fff; border-color: #3a3a3a; }
.bm-room .bm-btn-secondary:hover { background: #1f1f1f; }
.bm-room .bm-step-add { color: #6b6b6b; }
.bm-room .bm-save-state { color: #6b6b6b; }
.bm-room .bm-save-state.is-saved { color: #4cc27f; }
.bm-room-sheet-btn { display: none; }
.bm-room-state { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 32px 20px; gap: 10px; overflow-y: auto; }
.bm-room-state-ic { width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--rline); background: var(--rpanel); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 8px; }
.bm-room-state-title { font-size: 24px; font-weight: 700; letter-spacing: -0.02em; max-width: 520px; line-height: 1.25; text-wrap: balance; }
.bm-room-state-text { color: var(--rmute); font-size: 15px; max-width: 460px; }
.bm-room-count { font-size: 40px; font-weight: 700; letter-spacing: -0.02em; margin: 12px 0 4px; }
.bm-room-state-actions { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; justify-content: center; }
.bm-room-look { margin-top: 20px; width: 100%; max-width: 420px; text-align: left; background: var(--rpanel); border: 1px solid var(--rline); border-radius: var(--r); padding: 16px 20px; }
.bm-room-look .bm-steps-ro .bm-step:last-child { border-bottom: 0; }

/* ---------- Responsive: below 960 (top bar + tab bar) ---------- */
@media (max-width: 1180px) {
  .bm-clist-head.has-mentor, .bm-crow.has-mentor { grid-template-columns: minmax(200px, 2fr) 100px minmax(110px, 1.1fr) 90px minmax(110px, 1fr) 72px; }
  .bm-clist-head.has-mentor > :nth-child(5), .bm-crow.has-mentor > .bm-crow-msg { display: none; }
}

@media (max-width: 959px) {
  :root { --pad: 20px; }
  .bm-rail { display: none; }
  .bm-app { background: none; }
  .bm-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);
  }
  .bm-top-brand { text-decoration: none; border-radius: 6px; }
  .bm-top-right { display: flex; align-items: center; gap: 6px; }
  .bm-top-user { width: 44px; height: 44px; border: 0; background: none; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; padding: 0; }
  .bm-top-search { width: 44px; height: 44px; }
  .bm-stage { margin-left: 0; min-height: calc(100vh - var(--top)); padding-bottom: calc(var(--tabbar) + var(--safe-b)); }
  .bm-tabbar {
    display: grid; grid-auto-flow: column; grid-auto-columns: 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);
  }
  .bm-role-pending .bm-tabbar { display: none; }
  .bm-role-pending .bm-stage { padding-bottom: 0; }
  .bm-tabbar-item { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; text-decoration: none; color: var(--faint); font-size: 11px; font-weight: 600; min-height: 44px; }
  .bm-tabbar-item.is-on { color: var(--ink); }
  .bm-tabbar-ic { position: relative; display: inline-flex; }
  .bm-tab-badge { position: absolute; top: -4px; right: -9px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 10px; display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 0 0 2px #fff; }
  .bm-tab-badge.bm-badge-amber { background: var(--amber); }
  .bm-joinbar { position: fixed; left: 0; right: 0; top: auto; bottom: calc(var(--tabbar) + var(--safe-b)); z-index: 24; }
  .bm-joinbar-in { padding: 0 16px; height: 52px; }
  .bm-has-join .bm-stage { padding-bottom: calc(var(--tabbar) + var(--safe-b) + 52px); }
  .bm-toasts { bottom: calc(var(--tabbar) + var(--safe-b) + 16px); }
  .bm-has-join .bm-toasts { bottom: calc(var(--tabbar) + var(--safe-b) + 68px); }
  .bm-full .bm-toasts { bottom: 24px; }
  .bm-hide-phone { display: none !important; }

  .bm-grid-2 { grid-template-columns: minmax(0, 1fr); }
  .bm-greeting { font-size: 32px; }
  .bm-page-head-big { margin: 4px 0 24px; }

  .bm-page-thread { height: calc(100vh - var(--top) - var(--tabbar) - var(--safe-b) - var(--pad) * 2); }
  .bm-has-join .bm-page-thread { height: calc(100vh - var(--top) - var(--tabbar) - var(--safe-b) - var(--pad) * 2 - 52px); }
  .bm-page-inbox { height: calc(100vh - var(--top) - var(--tabbar) - var(--safe-b) - var(--pad) * 2); }
  .bm-has-join .bm-page-inbox { height: calc(100vh - var(--top) - var(--tabbar) - var(--safe-b) - var(--pad) * 2 - 52px); }
  .bm-inbox { grid-template-columns: minmax(0, 1fr); }
  .bm-inbox-list { border-right: 0; }
  .bm-page-inbox:not(.has-thread) .bm-inbox-pane { display: none; }
  .bm-page-inbox.has-thread .bm-inbox-list { display: none; }
  .bm-page-inbox.has-thread .bm-inbox-head { display: none; }
  .bm-thread-back { display: inline-flex; }

  .bm-clist-head { display: none; }
  .bm-crow, .bm-crow.has-mentor { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "who status" "next act"; gap: 6px 12px; padding: 14px 16px; min-height: 0; }
  .bm-crow-who { grid-area: who; }
  .bm-crow-status { grid-area: status; }
  .bm-crow-next { grid-area: next; padding-left: 48px; }
  .bm-crow-act { grid-area: act; }
  .bm-crow-steps, .bm-crow-msg, .bm-crow-mentor, .bm-crow-chev { display: none; }
  .bm-crow .bm-cell-next { flex-direction: row; gap: 6px; display: inline-flex; }
  .bm-phone-label { display: inline !important; color: var(--faint); font-weight: 400 !important; }
  .bm-crow-act:empty { display: none; }
  .bm-team-cols { grid-template-columns: minmax(0, 1fr) auto; }
  .bm-team-cols > :nth-child(3), .bm-team-cols > :nth-child(4) { display: none; }
  .bm-team-cols > :nth-child(5) { grid-column: 1 / -1; justify-content: flex-start; padding-left: 48px; }
  .bm-team-cols > :nth-child(5):empty { display: none; }
  .bm-table-head { display: none; }
  .bm-table-row { padding: 12px 16px; }

  .bm-set { grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 24px 0; }
  .bm-cal-scroll { max-height: calc(100vh - var(--top) - var(--tabbar) - 250px); }
  .bm-profile-head .bm-page-actions { width: 100%; }
}

@media (max-width: 719px) {
  :root { --pad: 16px; }
  .bm-greeting { font-size: 30px; }
  .bm-daily { font-size: 15px; }
  .bm-page-title { font-size: 24px; }
  .bm-page-titles { flex-basis: 180px; }
  .bm-page-head { align-items: center; margin-bottom: 20px; }
  .bm-page-head-big { align-items: flex-end; }
  .bm-profile-sub { flex-direction: column; gap: 2px; }
  .bm-profile-sub > * + *::before { display: none; }
  .bm-joinbar-pre { display: none; }
  .bm-card { padding: 18px 16px; }
  .bm-card-flush { padding: 0; }
  .bm-card-flush-body { padding: 18px 0 2px; }
  .bm-card-flush-body > .bm-card-head { padding: 0 16px; }
  .bm-hero { padding: 22px 20px; border-radius: 12px; }
  .bm-hero-title { font-size: 26px; }
  .bm-hero-actions { width: 100%; }
  .bm-hero-actions .bm-btn { flex: 1 1 auto; height: 44px; }
  .bm-hero-note { text-align: left; }
  .bm-hero-facts { gap: 18px; }
  .bm-btn { height: 44px; }
  .bm-btn-sm { height: 36px; }
  .bm-iconbtn { width: 44px; height: 44px; }
  .bm-input { height: 44px; font-size: 16px; }
  .bm-textarea { height: auto; }
  .bm-select { background-position: calc(100% - 17px) 19px, calc(100% - 12px) 19px; }
  .bm-field-pair { grid-template-columns: minmax(0, 1fr); }
  .bm-sched .bm-field-pair { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .bm-step { min-height: 52px; }
  .bm-step-actions { opacity: 1; }
  .bm-check-box { width: 22px; height: 22px; }
  .bm-srow, .bm-prow { padding: 14px 16px; gap: 12px; align-items: flex-start; }
  .bm-srow-sub { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .bm-srow-side .bm-iconbtn, .bm-srow.is-past .bm-srow-side .bm-pill { display: none; }
  .bm-srow-side, .bm-prow-side { align-self: center; }
  .bm-prow { flex-wrap: wrap; }
  .bm-prow-main { flex: 1 1 calc(100% - 64px); }
  .bm-prow-side { margin-left: 60px; align-self: flex-start; }
  .bm-prow-top { gap: 2px 10px; }
  .bm-prow-excerpt { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .bm-strip { padding: 18px 16px; }
  .bm-stat-n { font-size: 24px; }
  .bm-agenda-item { grid-template-columns: 68px 18px minmax(0, 1fr); gap: 10px; }
  .bm-agenda-item::before { left: 86px; }
  .bm-agenda-time { font-size: 13px; white-space: nowrap; }
  .bm-agenda-item > .bm-btn { grid-column: 3; justify-self: start; }
  .bm-agenda-body { padding: 10px 12px; }
  .bm-search { flex: 1 1 100%; }
  .bm-chips { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px; padding: 0 16px 2px; scrollbar-width: none; width: calc(100% + 32px); }
  .bm-chips::-webkit-scrollbar { display: none; }
  .bm-chip { flex: none; height: 36px; }
  .bm-cal-toolbar { gap: 10px; }
  .bm-cal-nav { width: 100%; }
  .bm-cal-title { font-size: 18px; margin-left: 4px; overflow: hidden; text-overflow: ellipsis; }
  .bm-cal-tools { width: 100%; justify-content: space-between; }
  .bm-cal.is-day .bm-cal-head { display: none; }
  .bm-month-wd { padding: 8px 4px; text-align: center; font-size: 11px; letter-spacing: .02em; }
  .bm-month-grid { grid-auto-rows: minmax(84px, auto); }
  .bm-month-cell { padding: 3px; }
  .bm-month-chip { padding: 2px 4px; font-size: 11px; }
  .bm-month-chip-t { display: none; }
  .bm-month-dn { width: 26px; height: 26px; font-size: 12px; }
  .bm-overlay { padding: 0; align-items: flex-end; }
  .bm-dialog { max-width: none; border-radius: 16px 16px 0 0; max-height: calc(100vh - 32px); transform: translateY(24px); }
  .bm-dialog-body { padding: 16px 16px 18px; }
  .bm-dialog-head { padding: 18px 16px 0; }
  .bm-dialog-foot { padding: 12px 16px calc(12px + var(--safe-b)); }
  .bm-dialog-foot .bm-btn { flex: 1 1 auto; }
  .bm-overlay-drawer { align-items: flex-end; }
  .bm-dialog-drawer { height: auto; max-height: 86vh; border-radius: 16px 16px 0 0; transform: translateY(24px); }
  .bm-overlay-palette { padding-top: 0; align-items: flex-start; }
  .bm-dialog-palette { border-radius: 0 0 16px 16px; transform: translateY(-12px); }
  .bm-palette-foot { display: none; }
  .bm-auth { padding: 32px 16px; align-items: flex-start; }
  .bm-auth-card { padding: 28px 20px 24px; }
  .bm-profile-head { gap: 14px; }
  .bm-profile-head .bm-page-actions .bm-btn-primary { flex: 1 1 auto; }
  .bm-pend-assign { width: 100%; }
  .bm-pend-assign .bm-select { flex: 1; width: auto; }
  .bm-set-plan { flex-wrap: wrap; }
  .bm-composer-hint { display: none; }
  .bm-thread-scroll { padding: 16px; }
  .bm-msg-group { max-width: 86%; }
  .bm-detail-meta { margin-top: -12px; gap: 6px 12px; }
  .bm-copy { flex-direction: column; }
  .bm-copy .bm-btn { width: 100%; }

  /* Room on phone: panel becomes a bottom sheet */
  .bm-room-top { grid-template-columns: auto minmax(0, 1fr) auto; padding: 0 8px; gap: 8px; }
  .bm-room-leave span { display: none; }
  .bm-room-leave { padding: 0 8px; width: 44px; height: 44px; justify-content: center; }
  .bm-room-title { align-items: flex-start; text-align: left; }
  .bm-room-who { justify-self: start; gap: 8px; }
  .bm-room-who .bm-av { width: 28px; height: 28px; font-size: 11px; }
  .bm-room-panel-toggle { display: none; }
  .bm-room-timer { display: none; }
  .bm-room-end { height: 40px; }
  .bm-room-panel {
    position: fixed; left: 0; right: 0; bottom: 0; width: auto; height: 72vh; z-index: 5; border-left: 0; border-top: 1px solid var(--rline);
    border-radius: 16px 16px 0 0; transform: translateY(105%); transition: transform .25s var(--ease); padding-bottom: var(--safe-b); box-shadow: 0 -12px 40px rgba(0, 0, 0, .5); visibility: hidden;
  }
  .bm-room-panel.is-collapsed { margin-right: 0; }
  .bm-room-panel.is-open { transform: none; visibility: visible; }
  .bm-room-sheet-grab { display: flex; align-items: center; justify-content: center; position: relative; height: 28px; flex: none; }
  .bm-room-grab { width: 40px; height: 4px; border-radius: 4px; background: #3a3a3a; }
  .bm-room-sheet-close { position: absolute; right: 6px; top: 2px; width: 44px; height: 44px; border: 0; background: none; color: var(--rmute); display: inline-flex; align-items: center; justify-content: center; }
  .bm-room-sheet-btn {
    display: inline-flex; align-items: center; gap: 8px; position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(16px + var(--safe-b)); z-index: 4;
    height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid #333; background: rgba(22, 22, 22, .94); color: #fff; font-weight: 600; box-shadow: 0 8px 24px rgba(0, 0, 0, .4);
  }
  .bm-room.is-live .bm-room-video { margin-bottom: calc(76px + var(--safe-b)); }
  .bm-room-count { font-size: 32px; }
  .bm-room-state-title { font-size: 21px; }
}

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

/* Stacked cards placed directly in a page */
.bm-page > .bm-card + .bm-card, .bm-page > .bm-card + .bm-page-foot { margin-top: 24px; }

/* Add to your home screen (phones, Home/Today) */
.bm-a2hs-slot:empty { display: none; }
.bm-a2hs-slot { margin-top: 24px; }
.bm-a2hs { position: relative; display: flex; align-items: flex-start; gap: 14px; padding-right: 52px; animation: bm-a2hs-in .25s var(--ease) both; }
.bm-a2hs-mark { flex: none; width: 40px; height: 40px; border-radius: 10px; background: var(--ink); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 20px; line-height: 1; letter-spacing: 0; }
.bm-a2hs-body { min-width: 0; flex: 1; }
.bm-a2hs-title { margin: 0; font-size: 14px; font-weight: 600; color: var(--ink); letter-spacing: -0.01em; }
.bm-a2hs-sub { margin: 2px 0 0; font-size: 13px; color: var(--mute); line-height: 1.5; }
.bm-a2hs-share { display: inline-flex; vertical-align: -3px; margin: 0 0 0 4px; color: var(--ink); }
.bm-a2hs-actions { margin-top: 12px; }
.bm-a2hs-actions .bm-btn { min-height: 40px; }
.bm-a2hs-x { position: absolute; top: 10px; right: 8px; width: 44px; height: 44px; }
@keyframes bm-a2hs-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .bm-a2hs { animation: none; } }
.bm-rm .bm-a2hs { animation: none; }

/* ===================== 2.2.0: photos and onboarding ===================== */

/* Onboarding progress */
.bm-stepper { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 4px; }
.bm-stepper-label { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.bm-stepper-bars { display: flex; gap: 4px; flex: 0 1 132px; }
.bm-stepper-bar { flex: 1; height: 3px; border-radius: 999px; background: var(--line); position: relative; overflow: hidden; }
.bm-stepper-bar.is-done { background: var(--ink); }
.bm-stepper-bar.is-on::after { content: ""; position: absolute; inset: 0; background: var(--ink); border-radius: inherit; transform-origin: left; animation: bm-bar-in .5s var(--ease) both; }
@keyframes bm-bar-in { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* Onboarding cards (wider than sign in, one focused task each) */
.bm-auth-onb .bm-auth-inner { max-width: 480px; }
.bm-auth-card-wide { padding: 32px 40px 32px; gap: 20px; }
.bm-auth-card-wide .bm-form { gap: 18px; }
.bm-auth-onb .bm-auth-card { animation: bm-rise .3s var(--ease) both; }
.bm-onb .bm-invite-head, .bm-auth-onb .bm-invite-head { gap: 8px; }
.bm-auth-onb .bm-invite-head .bm-auth-text { margin-top: 0; }
.bm-auth-title[tabindex="-1"]:focus, .bm-auth-title[tabindex="-1"]:focus-visible { outline: none; }
.bm-onb .bm-auth-title { font-size: 26px; }
.bm-onb-person { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r); background: #fbfbfa; }
.bm-onb-person-text { min-width: 0; }
.bm-onb-person-name { font-weight: 600; font-size: 15px; line-height: 1.3; }
.bm-onb-person-sub { color: var(--mute); font-size: 13px; line-height: 1.35; }
.bm-onb-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: -4px; }
.bm-onb-row .bm-link { color: var(--mute); text-decoration-color: transparent; font-weight: 600; padding: 6px 2px; }
.bm-onb-row .bm-link:hover { color: var(--ink); text-decoration-color: var(--line-2); }
.bm-onb-next { height: 44px; font-size: 15px; }
.bm-onb-next .bm-ic { order: 2; }
.bm-onb-done-ic { width: 48px; height: 48px; border-radius: 50%; background: var(--ink); color: #fff; display: inline-flex; align-items: center; justify-content: center; animation: bm-pop-in .45s var(--ease) both; }
@keyframes bm-pop-in { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: none; } }
.bm-onb-checks { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.bm-onb-check { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.bm-onb-check:last-child { border-bottom: 0; }
.bm-onb-check-ic { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--line-2); flex: none; display: inline-flex; align-items: center; justify-content: center; margin-top: 1px; }
.bm-onb-check.is-done .bm-onb-check-ic { background: var(--ink); border-color: var(--ink); color: #fff; }
.bm-onb-check-label { font-weight: 600; font-size: 14px; }
.bm-onb-check.is-done .bm-onb-check-label { color: var(--mute); }
.bm-onb-check-hint { color: var(--mute); font-size: 13px; line-height: 1.45; margin-top: 1px; }
.bm-meet { display: flex; gap: 16px; align-items: center; padding: 18px; border-radius: 12px; background: var(--ink); color: #fff; position: relative; overflow: hidden; }
.bm-meet::after { content: ""; position: absolute; right: -60px; top: -80px; width: 200px; height: 200px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .08); pointer-events: none; }
.bm-meet .bm-av { background: #fff; color: var(--ink); box-shadow: 0 0 0 3px rgba(255, 255, 255, .12); }
.bm-meet-text { min-width: 0; position: relative; z-index: 1; }
.bm-meet-name { font-size: 18px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.25; }
.bm-meet-title { color: rgba(255, 255, 255, .66); font-size: 13px; margin-top: 2px; }
.bm-meet-bio { font-family: var(--serif); font-size: 15px; line-height: 1.5; color: rgba(255, 255, 255, .9); margin-top: 8px; }
.bm-onb-next-wrap .bm-label { margin-bottom: 14px; }
.bm-onb-ol { gap: 14px; }
.bm-ol-title-plain { font-weight: 400; color: var(--ink-2); display: flex; align-items: center; flex-wrap: wrap; gap: 0 4px; }

/* Photo picker */
.bm-photo { display: flex; align-items: center; gap: 18px; }
.bm-photo-file { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.bm-photo-face { position: relative; border: 0; padding: 0; background: none; border-radius: 50%; flex: none; cursor: pointer; }
.bm-photo-face .bm-av { transition: filter .15s var(--ease); }
.bm-photo-face:hover .bm-av { filter: brightness(.94); }
.bm-photo-face.is-busy .bm-av { opacity: .6; }
.bm-photo-face .bm-av:not(.has-photo) { background: var(--hover); color: var(--faint); box-shadow: inset 0 0 0 1px var(--line-2); }
.bm-photo-badge { position: absolute; right: -2px; bottom: -2px; width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: #fff; display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 0 0 3px var(--surface); }
.bm-photo-text { min-width: 0; flex: 1; }
.bm-photo-label { font-weight: 600; font-size: 13px; }
.bm-photo-hint { color: var(--mute); font-size: 13px; line-height: 1.45; margin-top: 2px; }
.bm-photo-actions { display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap; }
.bm-photo-err { color: #8f2323; font-size: 13px; margin-top: 8px; }
.bm-set-photo { padding-bottom: 4px; }
.bm-photo-dialog .bm-photo { padding: 4px 0; }

/* Profile header photo (staff can change it) */
.bm-profile-face { position: relative; border: 0; padding: 0; background: none; border-radius: 50%; flex: none; }
.bm-profile-face .bm-photo-badge { width: 24px; height: 24px; opacity: 0; transform: scale(.85); transition: opacity .15s var(--ease), transform .15s var(--ease); }
.bm-profile-face:hover .bm-photo-badge, .bm-profile-face:focus-visible .bm-photo-badge { opacity: 1; transform: none; }
.bm-profile-face:hover .bm-av { filter: brightness(.95); }

/* Getting-started checklist (Today, Home) */
.bm-setup { position: relative; display: grid; grid-template-columns: minmax(220px, 300px) minmax(0, 1fr); gap: 8px 40px; padding: 24px 28px; margin-bottom: 24px; transition: opacity .18s var(--ease), transform .18s var(--ease); }
.bm-setup.is-leaving { opacity: 0; transform: translateY(-4px); }
.bm-setup-intro { padding-right: 8px; }
.bm-setup-intro .bm-kicker { margin-bottom: 10px; }
.bm-setup-title { font-size: 20px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.25; }
.bm-setup-sub { color: var(--mute); font-size: 14px; margin-top: 6px; }
.bm-setup-progress { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.bm-setup-count { font-size: 13px; color: var(--mute); white-space: nowrap; }
.bm-setup-list { display: flex; flex-direction: column; margin: -8px 0; padding-right: 36px; }
.bm-setup-item + .bm-setup-item { border-top: 1px solid var(--line); }
.bm-setup-row { display: flex; align-items: center; gap: 14px; width: 100%; padding: 12px 10px; margin: 0 -10px; width: calc(100% + 20px); border: 0; background: none; text-align: left; border-radius: var(--r-btn); color: var(--ink); transition: background .15s var(--ease); }
button.bm-setup-row:hover { background: #fafaf8; }
button.bm-setup-row:hover .bm-setup-act { color: var(--ink); }
button.bm-setup-row:hover .bm-setup-ic { border-color: var(--ink); }
.bm-setup-ic { width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid var(--line-2); flex: none; display: inline-flex; align-items: center; justify-content: center; transition: border-color .15s var(--ease); }
.bm-setup-item.is-done .bm-setup-ic { background: var(--ink); border: 0; color: #fff; }
.bm-setup-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.bm-setup-label { font-weight: 600; font-size: 14px; display: flex; align-items: center; gap: 8px; }
.bm-setup-item.is-done .bm-setup-label { color: var(--mute); }
.bm-setup-opt { font-size: 11px; font-weight: 600; color: var(--faint); letter-spacing: .06em; text-transform: uppercase; }
.bm-setup-hint { font-size: 13px; color: var(--mute); line-height: 1.4; }
.bm-setup-act { display: inline-flex; align-items: center; gap: 2px; font-size: 13px; font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.bm-setup-done { font-size: 12px; font-weight: 600; color: var(--faint); white-space: nowrap; }
.bm-setup-x { position: absolute; top: 12px; right: 12px; }
.bm-setup-client { grid-template-columns: minmax(200px, 260px) minmax(0, 1fr); }

/* Message rows with the sender's avatar */
.bm-msg-row { display: flex; align-items: flex-end; gap: 8px; align-self: flex-start; max-width: 82%; margin-bottom: 8px; }
.bm-msg-row > .bm-av { margin-bottom: 20px; }
.bm-msg-row > .bm-msg-group { max-width: 100%; margin-bottom: 0; min-width: 0; }

/* Mentor card bio */
.bm-person-bio { font-family: var(--serif); font-size: 15px; line-height: 1.5; color: var(--ink-2); margin: -4px 0 16px; }

/* Invite sheet and invited rows */
.bm-invite-done-head { display: flex; align-items: center; gap: 14px; }
.bm-invite-done-text { min-width: 0; }
.bm-invite-done-title { font-size: 16px; line-height: 1.35; }
.bm-invite-done-email { color: var(--mute); font-size: 13px; overflow-wrap: anywhere; }
.bm-copy-btn { flex: none; }
.bm-invite-acts { display: flex; align-items: center; gap: 4px; }
.bm-invite-acts .bm-iconbtn { width: 32px; height: 32px; }
.bm-clist-head, .bm-crow { grid-template-columns: minmax(220px, 2.2fr) 110px minmax(120px, 1.2fr) 110px 110px 112px; }
.bm-clist-head.has-mentor, .bm-crow.has-mentor { grid-template-columns: minmax(200px, 2fr) 100px minmax(110px, 1.1fr) 100px 100px minmax(110px, 1fr) 112px; }
.bm-team-cols { grid-template-columns: minmax(220px, 2.4fr) 150px 80px 110px 112px; }
.bm-team-status { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; }
.bm-team-when { font-size: 12px; color: var(--mute); padding-left: 2px; }

/* Install dialog */
.bm-install-link { display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 14px; border: 1px solid var(--line); border-radius: var(--r); background: var(--bg); color: var(--mute); }
.bm-install-url { flex: 1; min-width: 0; color: var(--ink); font-weight: 600; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bm-install-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.bm-install-cols .bm-label { margin-bottom: 12px; }
.bm-install-ol { gap: 12px; }
.bm-install-ol .bm-ol-n { width: 24px; height: 24px; font-size: 12px; }
.bm-set-help-row { padding-bottom: 14px; margin-bottom: 14px; border-bottom: 1px solid var(--line); }

@media (max-width: 1180px) {
  .bm-clist-head.has-mentor, .bm-crow.has-mentor { grid-template-columns: minmax(200px, 2fr) 100px minmax(110px, 1.1fr) 90px minmax(110px, 1fr) 112px; }
}
@media (max-width: 959px) {
  .bm-setup { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .bm-setup-intro { padding-right: 40px; }
  .bm-crow, .bm-crow.has-mentor { grid-template-columns: minmax(0, 1fr) auto; }
  .bm-team-cols { grid-template-columns: minmax(0, 1fr) auto; }
  .bm-team-status { align-items: flex-end; }
  /* Team rows on phones: name left, status right, actions under the name. */
  .bm-table-row.bm-team-cols > .bm-crow-who { grid-area: auto; grid-column: 1; grid-row: 1; }
  .bm-table-row.bm-team-cols > .bm-team-status { grid-column: 2; grid-row: 1; justify-self: end; }
  .bm-table-row.bm-team-cols > :nth-child(5) { grid-column: 1 / -1; grid-row: 2; }
  .bm-setup-list { padding-right: 0; }
}
@media (max-width: 719px) {
  .bm-auth-card-wide { padding: 26px 20px 24px; gap: 18px; }
  .bm-onb .bm-auth-title { font-size: 24px; }
  .bm-setup { padding: 20px 16px 12px; margin-bottom: 20px; }
  .bm-setup-title { font-size: 18px; }
  .bm-setup-progress { margin-top: 14px; }
  .bm-setup-row { padding: 12px 8px; margin: 0 -8px; width: calc(100% + 16px); gap: 12px; }
  .bm-setup-act .bm-ic { display: none; }
  .bm-setup-act { font-size: 12px; padding: 5px 10px; border-radius: 999px; background: var(--hover); color: var(--ink); }
  .bm-photo { gap: 14px; }
  .bm-photo-actions .bm-btn { height: 36px; }
  .bm-install-cols { grid-template-columns: minmax(0, 1fr); }
  .bm-msg-row { max-width: 92%; }
  .bm-invite-acts .bm-iconbtn { width: 36px; height: 36px; }
  .bm-copy .bm-copy-btn { width: 100%; }
}
