/* Ballet Bloom admin shared component layer (admin UI unification, packet F1).
   Values ported from docs/design/imports/2026-10-03-admin-ui-unification/shared/components/bb-admin.css.
   Loaded after admin.css. Colours use the --bb-* tokens defined in admin.css; literal status colours
   come from the contract card. O11 (44px targets) wins over the import where they differ. */
:root {
  --bb-rose-20: rgba(196, 120, 138, 0.2);
  --bb-orchid-tint: rgba(190, 62, 114, 0.12);
  --bb-pill: 3rem;
}
.bb-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- type ---------- */
.bb-h1 { font-family: "Cormorant Garamond", Georgia, serif; font-weight: 400; font-size: 32px; line-height: 1.15; color: var(--bb-brown); margin: 0; letter-spacing: -0.005em; text-wrap: balance; }
.bb-h2 { font-family: "Cormorant Garamond", Georgia, serif; font-weight: 400; font-size: 23px; line-height: 1.2; color: var(--bb-brown); margin: 0; }
/* Operator section label: plain sentence case; the marketing hairline eyebrow is not used in the console. */
.bb-eyebrow { display: block; font-family: "Jost", system-ui, sans-serif; font-size: 14.5px; letter-spacing: 0; text-transform: none; color: var(--bb-ink); font-weight: 500; margin: 0; }
.bb-eyebrow::before { content: none; display: none; }
.bb-lede { font-size: 15px; color: var(--bb-muted); margin: 6px 0 0; max-width: 68ch; text-wrap: pretty; }
.bb-meta { font-size: 13.5px; color: var(--bb-muted); margin: 0; }
@media (max-width: 759px) { .bb-h1 { font-size: 27px; } .bb-h2 { font-size: 21px; } }

/* ---------- page header ---------- */
.bb-task { display: flex; flex-direction: column; gap: 6px; margin-bottom: 22px; }
.bb-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; margin: 0 0 2px; padding: 0; font-size: 13.5px; color: var(--bb-muted); }
.bb-crumbs a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; color: var(--bb-muted); text-decoration: none; }
.bb-crumbs a:hover { color: var(--bb-plum); text-decoration: underline; }
/* V3 trail: an ordered list of parents only (the current page is the H1), separated by a rose slash. */
.bb-crumb-list { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; margin: 0; padding: 0; list-style: none; }
.bb-crumb-list li { display: flex; align-items: center; gap: 2px; }
.bb-crumb-list li + li::before { content: "/"; color: var(--bb-rose); padding: 0 4px; }
.bb-crumb-list li > span { padding: 0 4px; }
.bb-back { display: none; }
.bb-task-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.bb-task-row > div:first-child { min-width: 0; flex: 1 1 360px; }
.bb-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
/* !important: legacy screen link rules (for example .bb-admin .bb-admin-c31 a[href]) set display at (0,3,1) and would show the phone-only back link on desktop. */
@media (min-width: 760px) { .bb-admin a.bb-back { display: none !important; } }
@media (max-width: 759px) {
  .bb-crumbs { display: none; }
  .bb-back { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; margin-left: -8px; padding: 0 8px; color: var(--bb-plum); text-decoration: none; font-size: 14.5px; }
  .bb-task-row > div:first-child { flex-basis: 100%; }
  .bb-actions { width: 100%; }
  .bb-actions .bb-btn.primary { flex: 1 1 auto; }
}

/* ---------- buttons ---------- */
.bb-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; min-width: 44px; padding: 0 20px; border-radius: var(--bb-pill); border: 1px solid rgba(125, 63, 82, 0.38); background: #fff; color: var(--bb-plum); font-family: inherit; font-size: 14.5px; font-weight: 500; line-height: 1.2; cursor: pointer; text-decoration: none; white-space: nowrap; transition: background 0.15s, border-color 0.15s, color 0.15s; }
.bb-btn:hover { background: var(--bb-blush); border-color: var(--bb-plum); color: var(--bb-plum); }
.bb-btn.primary { background: var(--bb-plum); border-color: var(--bb-plum); color: #fff; }
.bb-btn.primary:hover { background: var(--bb-brown); border-color: var(--bb-brown); color: #fff; }
.bb-btn.danger { color: #a3335f; border-color: rgba(190, 62, 114, 0.5); }
.bb-btn.danger:hover { background: var(--bb-orchid-tint); }
.bb-btn.danger.solid { background: #a3335f; border-color: #a3335f; color: #fff; }
.bb-btn.quiet { border-color: transparent; background: transparent; padding: 0 12px; }
.bb-btn.quiet:hover { background: var(--bb-plum-08); }
.bb-btn.icon { padding: 0; width: 44px; border-color: transparent; background: transparent; color: var(--bb-ink); }
.bb-btn.icon:hover { background: var(--bb-plum-08); color: var(--bb-plum); }
.bb-btn[disabled], .bb-btn[aria-disabled="true"] { background: #efe6e3; border-color: #efe6e3; color: #7e5c66; cursor: not-allowed; }
.bb-btn.icon[disabled] { background: transparent; border-color: transparent; color: var(--bb-ink); opacity: 0.35; }
.bb-btn .k { font-weight: 400; opacity: 0.85; }

/* ---------- fields ---------- */
.bb-form { display: flex; flex-direction: column; gap: 18px; }
.bb-body-record-recovery { white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; }
.bb-span-full { grid-column: 1 / -1; }
.bb-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.bb-grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 759px) { .bb-grid2, .bb-grid3 { grid-template-columns: minmax(0, 1fr); } }
.bb-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; margin-top: 0; }
.bb-field > label, .bb-field > .lbl, .bb-field legend { font-size: 14px; font-weight: 500; color: var(--bb-ink); padding: 0; margin: 0; letter-spacing: 0; text-transform: none; }
.bb-field .opt { font-weight: 400; color: var(--bb-muted); }
.bb-field .help { font-size: 13.5px; color: var(--bb-muted); margin: 0; }
.bb-field .err { font-size: 13.5px; color: #a3335f; display: flex; gap: 6px; align-items: flex-start; margin: 0; }
.bb-input, .bb-select, .bb-textarea { width: 100%; min-width: 0; min-height: 44px; padding: 10px 13px; border: 1px solid rgba(125, 63, 82, 0.32); border-radius: 10px; background: #fff; color: var(--bb-ink); font-family: inherit; font-size: 15px; line-height: 1.4; }
.bb-input:focus, .bb-select:focus, .bb-textarea:focus { outline: none; border-color: var(--bb-plum); box-shadow: 0 0 0 3px rgba(125, 63, 82, 0.18); }
.bb-input[readonly] { background: var(--bb-warm-white); color: var(--bb-muted); }
.bb-input[aria-invalid="true"], .bb-select[aria-invalid="true"], .bb-textarea[aria-invalid="true"] { border-color: #a3335f; box-shadow: 0 0 0 1px #a3335f; }
.bb-textarea { min-height: 110px; resize: vertical; line-height: 1.6; }
.bb-select { appearance: none; padding-right: 38px; background-image: linear-gradient(45deg, transparent 50%, var(--bb-plum) 50%), linear-gradient(135deg, var(--bb-plum) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; }
fieldset.bb-field { border: 0; margin: 0; padding: 0; }
.bb-choice { display: flex; gap: 12px; align-items: flex-start; min-height: 44px; padding: 12px 14px; border: 1px solid var(--bb-rose-20); border-radius: 12px; background: #fff; cursor: pointer; }
.bb-choice input { accent-color: var(--bb-plum); width: 20px; height: 20px; margin: 1px 0 0; flex-shrink: 0; }
.bb-choice.on { border-color: var(--bb-plum); background: #fbf5f6; }
.bb-check { display: flex; gap: 10px; align-items: center; min-height: 44px; font-size: 14.5px; cursor: pointer; }
.bb-check input { accent-color: var(--bb-plum); width: 20px; height: 20px; }

/* ---------- badges / notes ---------- */
.bb-badge { display: inline-flex; align-items: center; gap: 6px; border: 0; min-height: 0; font-size: 13px; font-weight: 500; line-height: 1; padding: 6px 10px; border-radius: var(--bb-pill); white-space: nowrap; background: var(--bb-plum-10); color: var(--bb-plum); }
.bb-badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.bb-badge.sage { background: rgba(139, 157, 131, 0.18); color: #4e6047; }
.bb-badge.champ { background: rgba(200, 169, 106, 0.22); color: #6b5224; }
.bb-badge.orchid { background: rgba(190, 62, 114, 0.12); color: #9c2f5a; }
.bb-badge.neutral { background: #f1eae8; color: #6e525a; }
.bb-badge.neutral::before { background: transparent; border: 1.5px solid currentColor; width: 5px; height: 5px; }
.bb-note { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 12px; background: #f7efec; color: var(--bb-ink); font-size: 14.5px; line-height: 1.5; }
.bb-note.warn { background: rgba(200, 169, 106, 0.16); }
.bb-note.bad { background: rgba(190, 62, 114, 0.09); }
.bb-note.ok { background: rgba(139, 157, 131, 0.15); }
.bb-note .bb-btn { margin-top: 8px; }

/* ---------- tabs / filters / pager ---------- */
.bb-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--bb-rose-20); margin-bottom: 18px; overflow-x: auto; scrollbar-width: none; }
.bb-tabs [role="tab"] { min-height: 44px; padding: 0 14px; border: 0; background: none; color: var(--bb-muted); font-family: inherit; font-size: 14.5px; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.bb-tabs [role="tab"][aria-selected="true"] { color: var(--bb-plum); border-bottom-color: var(--bb-plum); font-weight: 500; }
.bb-tabs a { min-height: 44px; padding: 0 14px; color: var(--bb-muted); font-size: 14.5px; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.bb-tabs a[aria-current="page"] { color: var(--bb-plum); border-bottom-color: var(--bb-plum); font-weight: 500; }
.bb-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.bb-tabs .n { font-size: 12.5px; background: var(--bb-plum-08); color: var(--bb-plum); padding: 2px 8px; border-radius: 20px; }
.bb-filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; margin-bottom: 14px; }
.bb-filters .bb-field { flex: 0 1 auto; }
.bb-filters > .bb-input { flex: 1 1 180px; width: auto; min-width: 0; }
.bb-search { position: relative; flex: 1 1 260px; min-width: 0; }
.bb-search svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--bb-muted); pointer-events: none; }
.bb-search .bb-input { padding-left: 40px; }
.bb-filters .bb-select { width: auto; min-width: 150px; }
.bb-results { font-size: 13.5px; color: var(--bb-muted); margin: 0 0 10px; }
.bb-pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--bb-rose-20); font-size: 13.5px; color: var(--bb-muted); flex-wrap: wrap; }
.bb-pager .bb-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.bb-pager .bb-btn[aria-current="page"] { background: var(--bb-plum-08); border-color: var(--bb-plum); color: var(--bb-plum); font-weight: 500; }
@media (max-width: 759px) { .bb-filters > .bb-field, .bb-filters > .bb-select { flex: 1 1 140px; } .bb-filters .bb-select { min-width: 0; } .bb-filters > .bb-btn { flex: 1 1 auto; } }

/* ---------- cards / table + narrow alternative ---------- */
.bb-card { background: #fff; border: 1px solid var(--bb-rose-20); border-radius: var(--bb-card-radius); padding: 20px 22px; }
.bb-card.flush { padding: 0; overflow: hidden; }
.bb-tablewrap { overflow-x: auto; }
.bb-tablewrap:focus-visible { outline-offset: -2px; }
.bb-table { width: 100%; border-collapse: collapse; border-spacing: 0; background: transparent; font-size: 14.5px; color: var(--bb-ink); }
.bb-table caption { text-align: left; padding: 0 0 10px; }
.bb-table th { text-align: left; font-weight: 500; color: #5e434b; font-size: 13.5px; letter-spacing: 0; text-transform: none; padding: 12px 16px; border-bottom: 1px solid var(--bb-rose-20); background: #fcf8f7; white-space: nowrap; }
.bb-table th button { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; border: 0; background: none; color: inherit; font-weight: 500; cursor: pointer; padding: 0; }
.bb-table td, .bb-table tbody th { padding: 12px 16px; border-bottom: 1px solid rgba(196, 120, 138, 0.14); vertical-align: middle; }
.bb-table tbody th { font-weight: 400; background: none; white-space: normal; color: inherit; font-size: inherit; }
/* A cell holding only a 44px action button drops its vertical padding, so the button (O11) does not stretch the row past the V3 height. */
.bb-table td:has(> .bb-btn, > form > .bb-btn) { padding-block: 0; }
.bb-table tbody tr:last-child > * { border-bottom: 0; }
.bb-table tbody tr:hover > * { background: #fdfaf9; }
.bb-table tbody tr.is-current > * { background: var(--bb-plum-08); }
/* The row link fills its cell (negative margin cancels the cell padding), so the 44px target (O11) does not make the
   row taller than the V3 row: one 22.5px line plus 12px padding either side. */
.bb-table td a.rowlink, .bb-table th a.rowlink { color: var(--bb-ink); font-weight: 500; text-decoration: none; display: block; margin: -12px -16px; padding: 12px 16px; }
.bb-table a.rowlink:hover { color: var(--bb-plum); text-decoration: underline; }
.bb-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.bb-table small { display: block; color: var(--bb-muted); font-size: 13px; }
.bb-cards { display: none; list-style: none; margin: 0; padding: 0; }
.bb-cards li { border-bottom: 1px solid var(--bb-rose-20); }
.bb-cards li:last-child { border-bottom: 0; }
.bb-cards li.is-current { background: var(--bb-plum-08); }
.bb-cards a, .bb-cards .c { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; text-decoration: none; color: var(--bb-ink); min-height: 44px; }
.bb-cards .bb-card-actions { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 16px 14px; }
.bb-cards .bb-card-actions form { margin: 0; }
.bb-cards .t { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; font-weight: 500; }
.bb-cards .t > span { min-width: 0; display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 8px; }
.bb-cards br { display: none; }
.bb-cards small { display: inline; font-size: 13.5px; font-weight: 400; color: var(--bb-muted); }
.bb-cards .m { font-size: 13.5px; color: var(--bb-muted); display: flex; flex-wrap: wrap; gap: 4px 14px; }
.bb-cardsort { display: none; flex-wrap: wrap; align-items: center; gap: 4px 8px; padding: 6px 16px; border-bottom: 1px solid var(--bb-rose-20); font-size: 13.5px; color: var(--bb-muted); }
.bb-cardsort a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 8px; color: var(--bb-plum); text-decoration: none; }
.bb-cardsort a[aria-current="true"] { font-weight: 500; text-decoration: underline; }
@media (max-width: 759px) { .bb-adapt .bb-tablewrap { display: none; } .bb-adapt .bb-cards { display: block; } .bb-adapt .bb-cardsort { display: flex; } }

/* ---------- states ---------- */
.bb-state { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 28px 24px; border: 1px dashed rgba(125, 63, 82, 0.3); border-radius: var(--bb-card-radius); background: #fff; }
.bb-state .ic { color: var(--bb-plum); display: flex; }
.bb-state h2 { margin: 0; font-family: "Cormorant Garamond", Georgia, serif; font-size: 23px; font-weight: 400; line-height: 1.2; color: var(--bb-brown); }
.bb-state p { margin: 0; color: var(--bb-muted); max-width: 56ch; }
.bb-skel { display: block; height: 14px; border-radius: 7px; background: linear-gradient(90deg, #f3ebe8, #faf4f2, #f3ebe8); background-size: 200% 100%; animation: bbsh 1.4s linear infinite; }
@keyframes bbsh { to { background-position: -200% 0; } }

/* ---------- edit bar + save status ---------- */
.bb-save { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px; border-radius: var(--bb-pill); font-size: 14px; border: 0; background: transparent; color: var(--bb-muted); }
.bb-save.saved { color: #4e6047; }
.bb-save.unsaved { color: #6b5224; }
.bb-save.error { color: #9c2f5a; background: rgba(190, 62, 114, 0.08); }
.bb-save.conflict { color: #6b5224; background: rgba(200, 169, 106, 0.16); }
/* A form with data-save-form shows the header "Saving…" status only while Turbo has it in flight (aria-busy). */
.bb-save-pending { display: none; }
body:has(form[data-save-form][aria-busy="true"]) .bb-save-pending { display: inline-flex; }
body:has(form[data-save-form][aria-busy="true"]) .bb-save:not(.bb-save-pending) { display: none; }
body:has(form[data-save-form][aria-busy="true"]) .bb-btn[form] { background: #efe6e3; border-color: #efe6e3; color: #7e5c66; pointer-events: none; }
.bb-spin { width: 14px; height: 14px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: bbspin 0.9s linear infinite; }
@keyframes bbspin { to { transform: rotate(360deg); } }
.bb-edbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 10px; min-height: 64px; padding: 10px 24px; background: #fff; border-bottom: 1px solid var(--bb-rose-20); flex-wrap: wrap; }
.bb-edbar .ttl { min-width: 0; flex: 1 1 240px; }
.bb-edbar .ttl b { display: block; font-weight: 500; font-size: 15.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bb-edbar .ttl small { display: block; color: var(--bb-muted); font-size: 13px; }
.bb-edbar .acts { display: flex; align-items: center; gap: 8px; }
/* Keep keyboard focus out from under the sticky edit bar (WCAG 2.2 focus not obscured). */
html:has(.bb-edbar), .bb-admin-main:has(.bb-edbar) { scroll-padding-top: 96px; }
@media (max-width: 1099px) { html:has(.bb-edbar), .bb-admin-main:has(.bb-edbar) { scroll-padding-top: 160px; } }
.bb-edbar .more { display: none; }
@media (max-width: 1099px) { .bb-edbar { top: 60px; padding: 8px 16px; } }
@media (max-width: 759px) { .bb-edbar { gap: 4px; } .bb-edbar .acts .wideonly { display: none; } .bb-edbar .more { display: inline-flex; } .bb-edbar .ttl { flex-basis: calc(100% - 100px); } .bb-edbar .acts { width: 100%; justify-content: space-between; } }

/* Two-line identity cells (name, then muted email/plan); see AdminIdentityHelper. */
.bb-identity { display: flex; flex-direction: column; align-items: flex-start; text-align: left; }
.bb-identity .bb-meta { font-size: 13.5px; color: var(--bb-muted); font-weight: 400; }
.bb-pane-empty .bb-pane-b { color: var(--bb-muted); }

/* ---------- split, detail pane, definition list (B1) ---------- */
.bb-split { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 24px; align-items: start; }
.bb-split.r { grid-template-columns: minmax(0, 1fr) 360px; }
.bb-split.half { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
@media (max-width: 1099px) { .bb-split, .bb-split.r, .bb-split.half { grid-template-columns: minmax(0, 1fr); } }
.bb-pane { background: #fff; border: 1px solid var(--bb-rose-20); border-radius: var(--bb-card-radius); min-width: 0; }
.bb-pane-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--bb-rose-20); }
.bb-pane-b { padding: 16px 18px; display: flex; flex-direction: column; gap: 16px; }
.bb-pane .bb-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.bb-pane .bb-actions form { margin: 0; }
.bb-pane-section { border-top: 1px solid var(--bb-rose-20); padding-top: 14px; display: flex; flex-direction: column; gap: 10px; }
.bb-dl { display: grid; grid-template-columns: minmax(120px, auto) minmax(0, 1fr); gap: 8px 18px; margin: 0; font-size: 14.5px; }
.bb-dl dt { color: var(--bb-muted); margin: 0; }
.bb-dl dd { margin: 0; color: var(--bb-ink); min-width: 0; overflow-wrap: anywhere; }
.bb-dl dd a { display: inline-flex; align-items: center; min-height: 44px; }
@media (max-width: 759px) { .bb-dl { grid-template-columns: minmax(0, 1fr); gap: 2px; } .bb-dl dd { margin-bottom: 10px; } }
/* Below 760px a split shows either the list or, once a row is chosen (?selected=), the detail pane. */
@media (max-width: 759px) {
  .bb-split.detail-swap:not(.has-selection) .bb-pane { display: none; }
  .bb-split.detail-swap.has-selection .bb-split-list { display: none; }
}
.bb-pane-back { display: none; }
@media (max-width: 759px) { .bb-split.detail-swap .bb-pane-back { display: inline-flex; } }

/* ---------- dialog ---------- */
.bb-dlg-scrim { position: fixed; inset: 0; z-index: 80; background: rgba(46, 26, 32, 0.36); display: flex; align-items: center; justify-content: center; padding: 24px; }
.bb-dlg { background: #fff; border-radius: 16px; width: min(560px, 100%); max-height: calc(100vh - 48px); overflow: auto; box-shadow: 0 30px 80px rgba(46, 26, 32, 0.24); }
.bb-dlg.wide { width: min(820px, 100%); }
.bb-dlg-h { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 20px 22px 0; }
.bb-dlg-b { padding: 12px 22px 4px; display: flex; flex-direction: column; gap: 14px; }
.bb-dlg-f { display: flex; justify-content: flex-end; gap: 10px; padding: 18px 22px 22px; flex-wrap: wrap; }
@media (max-width: 759px) { .bb-dlg-scrim { align-items: flex-end; padding: 0; } .bb-dlg { border-radius: 16px 16px 0 0; max-height: 92vh; } .bb-dlg-f { flex-direction: column-reverse; } .bb-dlg-f .bb-btn { width: 100%; } }

/* Email preview canvas (O9: blush only for preview canvases). */
.bb-preview-canvas { background: #F2E8E4; border-radius: 8px; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.bb-preview-canvas > .bb-preview { background: #FAF6F4; border-radius: 8px; padding: 14px 16px; max-height: none; }

/* Native <dialog> variant of the confirmation sheet (centred on desktop, bottom sheet on phone). */
dialog.bb-dlg { border: 0; padding: 0; margin: auto; color: var(--bb-ink); }
dialog.bb-dlg::backdrop { background: rgba(46, 26, 32, 0.36); }
@media (max-width: 759px) { dialog.bb-dlg { margin: auto 0 0; width: 100%; max-width: 100%; } dialog.bb-dlg .bb-dlg-f form { width: 100%; } }

/* ---------- segmented control (O11: 44px targets beat the import's 38px) ---------- */
.bb-seg { display: inline-flex; border: 1px solid rgba(125, 63, 82, 0.32); border-radius: var(--bb-pill); padding: 3px; background: #fff; gap: 2px; }
.bb-seg button { min-height: 44px; padding: 0 16px; border: 0; border-radius: var(--bb-pill); background: none; color: var(--bb-muted); cursor: pointer; font-size: 14px; }
.bb-seg button[aria-pressed="true"] { background: var(--bb-plum); color: #fff; }

@media (prefers-reduced-motion: reduce) {
  .bb-skel, .bb-spin { animation: none; }
  .bb-spin { border-right-color: currentColor; opacity: 0.6; }
  .bb-btn { transition: none; }
}

/* ---------- garden (progress visualisation only) ---------- */
.bb-garden { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px 16px; border: 1px solid var(--bb-rose-20); border-radius: 12px; background: #fff; }
.bb-bloom { width: 16px; height: 16px; border-radius: 50%; background: var(--bb-plum); opacity: 0.75; }
.bb-bloom.atelier { background: #c8a96a; opacity: 1; }

/* ---------- preview text (email source and rendered output) ---------- */
.bb-preview { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; overflow: auto; max-height: 22rem; font-family: inherit; font-size: 14.5px; }

/* ---------- shared Administrate templates (packet M8): index, show, new, edit ---------- */
.bb-resource { min-width: 0; }
.bb-resource .bb-adapt { min-width: 0; max-width: 100%; }
.bb-resource .bb-tablewrap { max-width: 100%; border: 1px solid var(--bb-rose-20); border-radius: 12px; background: #fff; }
.bb-resource .bb-table th a { color: inherit; text-decoration: none; display: inline-flex; align-items: center; gap: 4px; min-height: 44px; }
/* 44px sort target with 8px header padding is the V3 header height (36px kit button plus 12px padding): about 61px. */
.bb-resource .bb-table th:has(> a) { padding-block: 8px; }
.bb-resource .bb-table td.cell-label--action-button { padding-block: 0; }
.bb-resource .bb-table td.cell-data a.action-show { display: block; color: inherit; text-decoration: none; }
.bb-resource .bb-table td.cell-label--action-button { white-space: nowrap; }
.bb-resource .bb-table td.cell-label--action-button form { margin: 0; display: inline; }
.bb-resource .bb-table tr.js-table-row[data-url] { cursor: pointer; }
.bb-resource .bb-table tr.js-table-row:hover td { background: #fdfaf9; }
.bb-resource .bb-pager nav { margin: 0; }
.bb-confirm-destroy { display: inline; }
.bb-resource-card { display: block; min-width: 0; margin: 0 0 16px; padding: 20px 22px; border: 1px solid var(--bb-rose-20); border-radius: 12px; background: #fff; }
.bb-resource-card > legend, .bb-resource-card > h2 { margin: 0 0 12px; padding: 0; font-family: "Jost", system-ui, sans-serif; font-size: 15.5px; font-weight: 500; color: var(--bb-ink); }
.bb-resource-dl { display: grid; grid-template-columns: minmax(140px, 240px) minmax(0, 1fr); margin: 0; }
.bb-resource-dl dt, .bb-resource-dl dd { margin: 0; padding: 12px 0; border-bottom: 1px solid rgba(196, 120, 138, 0.14); overflow-wrap: anywhere; }
.bb-resource-dl dt { font-size: 14px; font-weight: 500; color: var(--bb-muted); padding-right: 16px; }
.bb-resource-dl dd { font-size: 14.5px; }
.bb-resource-dl dt:last-of-type, .bb-resource-dl dd:last-of-type { border-bottom: 0; }
/* Administrate floats .attribute-label/.attribute-data at 20%/80% widths; inside the grid that squeezed labels to a few pixels. */
.bb-resource-dl .attribute-label, .bb-resource-dl .attribute-data { float: none; clear: none; width: auto; margin: 0; text-align: left; }
@media (max-width: 759px) { .bb-resource-dl { grid-template-columns: minmax(0, 1fr); } .bb-resource-dl dt { padding-bottom: 0; border-bottom: 0; } }
.bb-resource-form { max-width: 880px; }
.bb-resource-form .field-unit { display: flex; flex-direction: column; gap: 6px; margin: 0 0 18px; }
.bb-resource-form .field-unit:last-child { margin-bottom: 0; }
.bb-resource-form .field-unit label { font-size: 14px; font-weight: 500; color: var(--bb-ink); float: none; width: auto; padding: 0; margin: 0; text-align: left; }
.bb-resource-form .field-unit > :not(label):not(.help) { max-width: 100%; }
.bb-resource-form input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="submit"]), .bb-resource-form select, .bb-resource-form textarea { width: 100%; min-height: 44px; padding: 10px 13px; border: 1px solid rgba(125, 63, 82, 0.32); border-radius: 10px; background: #fff; color: var(--bb-ink); font-family: inherit; font-size: 15px; line-height: 1.4; box-shadow: none; }
.bb-resource-form textarea { min-height: 110px; line-height: 1.6; resize: vertical; }
.bb-resource-form input:focus, .bb-resource-form select:focus, .bb-resource-form textarea:focus { outline: none; border-color: var(--bb-plum); box-shadow: 0 0 0 3px rgba(125, 63, 82, 0.18); }
.bb-resource-form input[type="checkbox"], .bb-resource-form input[type="radio"] { width: 20px; height: 20px; accent-color: var(--bb-plum); }
.bb-resource-form .field-unit--has-many select[multiple] { min-height: 160px; }
.bb-resource-form .form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 4px; }
.bb-resource-form [aria-invalid="true"] { border-color: #a3335f; box-shadow: 0 0 0 1px #a3335f; }
.bb-resource-form .field-unit .err { margin: 6px 0 0; }
.bb-resource-form .form-actions input[type="submit"] { width: auto; }
.bb-admin-flashes { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }

/* ---------- page editor: outline | preview | settings (C35) ---------- */
.bb-c35 { display: flex; flex-direction: column; gap: 16px; }
.bb-c35-grid { display: grid; grid-template-columns: 260px minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
.bb-c35-switch { align-self: stretch; display: flex; }
.bb-c35-switch button { flex: 1 1 0; justify-content: center; }
.bb-c35-switch[hidden] { display: none; }
/* The three panes need about 1000px of content; with the expanded admin rail that is a 1280px window. */
@media (min-width: 1280px) { .bb-c35-switch { display: none; } }
.bb-outline { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.bb-outline button { width: 100%; min-height: 44px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 12px; border: 1px solid transparent; border-radius: 10px; background: none; color: var(--bb-ink); font: inherit; font-size: 14.5px; text-align: left; cursor: pointer; }
.bb-outline button:hover { background: var(--bb-plum-08); }
.bb-outline button[aria-current="true"] { background: var(--bb-plum-08); border-color: var(--bb-rose-20); color: var(--bb-plum); }
.bb-c35-outline button { justify-content: flex-start; }
.bb-c35-outline button svg { flex: none; }
.bb-c35-outline-title { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bb-outline small { margin-left: auto; flex: none; color: var(--bb-muted); font-size: 12.5px; }
.bb-c35-empty { margin: 0; }
.bb-c35-page { background: #FAF6F4; border-radius: 8px; padding: 28px 24px; display: flex; flex-direction: column; gap: 12px; box-shadow: 0 10px 30px rgba(74, 37, 48, 0.08); }
.bb-c35-page.is-phone { width: 320px; max-width: 100%; margin: 0 auto; border: 8px solid var(--bb-brown); border-radius: 28px; padding: 20px 16px; }
.bb-c35-page > .bb-h2 { text-align: center; }
.bb-c35-block { border: 2px solid transparent; border-radius: 12px; padding: 12px 14px; overflow-wrap: anywhere; }
.bb-c35-block p { margin: 0; }
.bb-c35-block .bb-meta { margin-top: 6px; }
.bb-c35-block.is-selected { border-color: var(--bb-plum); }
.bb-c35-slot { display: flex; align-items: center; justify-content: center; min-height: 96px; border-radius: 8px; background: var(--bb-blush); color: var(--bb-muted); text-align: center; font-size: 14px; padding: 8px; }
.bb-c35-nothing { text-align: center; padding: 28px 8px; }
.bb-c35-block-actions { display: flex; flex-wrap: wrap; gap: 4px; }
.bb-c35-block-actions .bb-btn:disabled { opacity: 0.45; cursor: not-allowed; }
.bb-c35-add { position: relative; }
.bb-c35-add summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; }
.bb-c35-add summary::-webkit-details-marker { display: none; }
.bb-c35-add-menu { position: absolute; right: 0; top: calc(100% + 4px); z-index: 5; display: flex; flex-direction: column; gap: 4px; min-width: 160px; padding: 8px; background: #fff; border: 1px solid var(--bb-rose-20); border-radius: 12px; box-shadow: 0 12px 30px rgba(46, 26, 32, 0.16); }
.bb-c35-add-menu .bb-btn { justify-content: flex-start; gap: 8px; }
.bb-c35-page-settings { margin-top: 4px; }
.bb-c35-pane fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
@media (max-width: 1279px) {
  .bb-c35-grid { grid-template-columns: minmax(0, 1fr); }
  .bb-c35.is-switching .bb-c35-pane:not(.is-active-pane) { display: none; }
}

/* Placements (C36): content list, collection membership and a summary pane. The admin main-content h2 rule would
   otherwise restyle the small pane headings, so they restate the eyebrow type here. */
.bb-c35-pane .bb-pane-h h2.bb-eyebrow, .bb-c36 .bb-pane-h h2.bb-eyebrow { font-family: "Jost", system-ui, sans-serif; font-size: 14.5px; font-weight: 500; color: var(--bb-ink); margin: 0; }
.bb-c36-form { margin: 0; }
.bb-c36-grid { display: grid; grid-template-columns: 280px minmax(0, 1fr) 320px; gap: 18px; align-items: start; }
.bb-c36-list .bb-outline { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 2px; }
.bb-c36-list .bb-outline a { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; min-height: 56px; padding: 0 12px; border: 1px solid transparent; border-radius: 10px; color: var(--bb-ink); font-size: 14.5px; text-decoration: none; overflow-wrap: anywhere; }
.bb-c36-list .bb-outline a:hover { background: var(--bb-plum-08); }
.bb-c36-list .bb-outline a[aria-current="page"] { background: var(--bb-plum-08); border-color: var(--bb-rose-20); color: var(--bb-plum); }
.bb-c36-list .bb-outline .bb-meta { font-weight: 400; }
.bb-c36-fieldset { border: 0; padding: 0; margin: 0; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.bb-c36-table input[type="number"] { width: 72px; }
.bb-c36-table td, .bb-c36-table th { white-space: nowrap; }
.bb-c36-table td { padding-top: 8px; padding-bottom: 8px; }
.bb-c36-table td:first-child { white-space: normal; }
@media (max-width: 1099px) {
  .bb-c36-grid { grid-template-columns: minmax(0, 1fr); }
  .bb-c36-list .bb-outline { flex-direction: row; overflow-x: auto; padding-bottom: 4px; }
  .bb-c36-list .bb-outline li { flex: 0 0 min(240px, 70%); }
}
@media (max-width: 599px) {
  .bb-c36-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .bb-c36-table, .bb-c36-table tbody, .bb-c36-table tr, .bb-c36-table td { display: block; }
  .bb-c36-table tbody tr { border: 1px solid var(--bb-rose-20); border-radius: var(--bb-card-radius); padding: 14px 16px; margin-bottom: 10px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; }
  .bb-c36-table td { padding: 0; border: 0; }
  .bb-c36-table td:first-child { flex: 1 1 100%; }
  .bb-c36-table td[data-label]:not(:first-child):not(:last-child)::before { content: attr(data-label) " "; color: var(--bb-muted); }
  .bb-c36-table td:last-child { margin-left: auto; }
}

/* Account form: Contact and Roles cards, one column up to the content width (C50). */
.bb-account-form { max-width: 720px; }

/* ---------- type and layout helpers used by Home and the Advanced template (B4) ---------- */
/* .bb-h3: contract 15.5px Jost 500 ink; covers h2/h3/legend/dt. */
.bb-admin .main-content .bb-h3 { font-family: "Jost", system-ui, sans-serif; font-weight: 500; font-size: 15.5px; line-height: 1.35; color: var(--bb-ink); margin: 0; }
.bb-admin .main-content .bb-resource-card > .bb-h3 { margin: 0 0 12px; }
.bb-stack { display: flex; flex-direction: column; gap: 20px; min-width: 0; }

/* Home: next task card, icon + chevron link rows, readiness aside */
.bb-admin-home__next { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; border-color: rgba(125, 63, 82, 0.35); }
.bb-admin-home__next > div { flex: 1 1 280px; min-width: 0; }
.bb-admin-home__next h2 { margin-top: 6px; }
.bb-admin .main-content .bb-admin-home__other > .bb-h3 { margin: 0 0 10px; }
.bb-linkrows { list-style: none; margin: 0; padding: 0; }
.bb-linkrow + .bb-linkrow { border-top: 1px solid var(--bb-rose-20); }
.bb-linkrow a { display: flex; align-items: center; gap: 14px; min-height: 68px; padding: 12px 18px; color: var(--bb-ink); text-decoration: none; }
.bb-linkrow a:hover { background: var(--bb-plum-08); }
.bb-linkrow a:focus-visible { outline-offset: -3px; }
.bb-linkrow__icon { display: flex; flex: 0 0 auto; align-items: center; justify-content: center; width: 36px; height: 36px; border: 1px solid var(--bb-rose-20); border-radius: 10px; color: var(--bb-plum); }
.bb-linkrow__text { display: flex; flex: 1; flex-direction: column; min-width: 0; }
.bb-linkrow__text b { font-weight: 500; }
.bb-linkrow__chev { flex: 0 0 auto; color: var(--bb-muted); }
.bb-admin-home__readiness { display: flex; flex-direction: column; gap: 6px; }
.bb-readiness { list-style: none; margin: 6px 0 0; padding: 0; }
.bb-readiness li { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 52px; border-top: 1px solid var(--bb-rose-20); }
.bb-readiness a { display: flex; flex-direction: column; justify-content: center; min-height: 44px; color: var(--bb-ink); text-decoration: none; }
.bb-readiness a:hover { color: var(--bb-plum); }

/* Advanced template: protected-actions aside and a plain count in the pager */
.bb-protected { border-color: rgba(190, 62, 114, 0.35); display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.bb-protected h2 { display: flex; align-items: center; gap: 8px; }
.bb-protected form { margin: 8px 0 0; }
.bb-admin-home__label { font-size: 14.5px; font-weight: 500; color: var(--bb-ink); margin: 0; }

/* Contract focus ring (2px plum, offset 2px). Administrate's own :focus rules paint a blue ring on buttons and rail
   links that receive focus programmatically (drawer opening, dialog showModal). Fields keep their box-shadow ring. */
.bb-admin #bb-admin-rail :is(a, button):is(:focus, :focus-visible),
.bb-admin :is(button, [type=button], [type=submit], [type=reset], .button):focus {
  outline: 2px solid var(--bb-plum);
  outline-offset: 2px;
}

/* D2 shared sample-data switch: compact right-aligned switch, "Sample data" pill, dashed outline on sample content. */
.bb-sample-switch__tools { display: flex; justify-content: flex-end; align-items: center; gap: 10px; margin: 0 0 12px; font-size: 13px; }
.bb-sample-toggle { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 2px 0; border: 0; background: none; font: inherit; font-size: 13px; color: var(--bb-muted); cursor: pointer; }
.bb-sample-toggle:hover { color: var(--bb-ink); }
.bb-sample-toggle__track { position: relative; width: 28px; height: 16px; border-radius: 10px; background: #D9CBD0; transition: background 0.15s; }
.bb-sample-toggle__knob { position: absolute; top: 2px; left: 2px; width: 12px; height: 12px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25); transition: transform 0.15s; }
.bb-sample-toggle[aria-checked="true"] .bb-sample-toggle__track { background: #8A6B2E; }
.bb-sample-toggle[aria-checked="true"] .bb-sample-toggle__knob { transform: translateX(12px); }
.bb-sample-pill { padding: 1px 9px; border-radius: 20px; background: rgba(200, 169, 106, 0.22); color: #6B5224; font-size: 12px; font-weight: 600; }
.bb-sample-pill[hidden], .bb-sample-switch [hidden] { display: none; }
.bb-sample-body { position: relative; outline: 1px dashed rgba(200, 169, 106, 0.7); outline-offset: 6px; border-radius: 12px; }

/* Headline figures (Business Overview and Analytics). */
.bb-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin: 0 0 16px; }
.bb-metric { display: flex; flex-direction: column; gap: 4px; }
.bb-metric .v { font-family: var(--bb-font-serif, "Cormorant Garamond", Georgia, serif); font-size: 34px; line-height: 1; color: var(--bb-ink); }
.bb-metric .d { font-size: 13px; color: var(--bb-muted); }

/* Business > Analytics: period control, custom range and bar series. */
.bb-analytics-period { display: flex; justify-content: flex-end; margin: 0; max-width: 100%; overflow-x: auto; }
.bb-analytics-period .bb-seg button { white-space: nowrap; padding-inline: 12px; }
.bb-analytics-custom { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; margin: 0 0 16px; }
.bb-analytics-custom .bb-meta { flex-basis: 100%; margin: 0; }
.bb-metric .d b { font-weight: 500; color: var(--bb-ink); }
.bb-analytics-bars__plot { display: flex; align-items: flex-end; gap: 10px; height: 150px; border-bottom: 1px solid var(--bb-rose-20); }
.bb-analytics-bars__col { display: flex; flex: 1; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; min-width: 0; }
.bb-analytics-bars__bar { width: 100%; max-width: 44px; background: var(--bb-plum); border-radius: 6px 6px 0 0; }
.bb-analytics-bars__labels { display: flex; gap: 10px; margin-top: 6px; }
.bb-analytics-bars__labels span { flex: 1; min-width: 0; text-align: center; overflow: hidden; text-overflow: ellipsis; }
.bb-activity { list-style: none; margin: 0; padding: 0; }
.bb-activity li { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--bb-rose-20); }
.bb-activity b { font-weight: 500; }
.bb-sample-toggle:focus-visible { outline: 2px solid var(--bb-plum); outline-offset: 3px; border-radius: 6px; }

/* ---------- P03: shared admin shell, V3 menu composition (rail footer, account block, item metrics) ----------
   Values from the approved V3 shell-menu states. The official logo lockup stays in the brand slot (the 19px typeset
   wordmark in the mockup predates the official logo; see the P03 implementation note). */
.bb-admin .navigation#bb-admin-rail { font-family: "Jost", system-ui, sans-serif; font-size: 15px; line-height: 1.55; padding: 16px 12px; }
.bb-admin .navigation#bb-admin-rail { box-shadow: none; }
.bb-admin .navigation#bb-admin-rail.is-collapsed { padding: 16px 10px; }
.bb-admin .navigation#bb-admin-rail .bb-admin-navigation__topline { border: 0; margin: 0; padding: 0; }
.bb-admin .navigation#bb-admin-rail .bb-admin-brand { border-bottom: 0; margin: 0; min-height: 44px; padding: 0 8px 4px; }
.bb-admin .navigation#bb-admin-rail .bb-admin-brand__logo { height: 40px; max-height: none; width: auto; max-width: 100%; }
.bb-admin .navigation#bb-admin-rail .bb-admin-nav-icon { color: var(--bb-muted); }
.bb-admin .navigation#bb-admin-rail .bb-admin-section-toggle.is-current .bb-admin-nav-icon,
.bb-admin .navigation#bb-admin-rail .bb-admin-section-toggle[aria-current="page"] .bb-admin-nav-icon { color: var(--bb-plum); }
.bb-admin .navigation#bb-admin-rail .bb-admin-section-toggle,
.bb-admin .navigation#bb-admin-rail .bb-admin-rail-toggle,
.bb-admin .navigation#bb-admin-rail .bb-admin-nav-group__links .navigation__link { font-family: "Jost", system-ui, sans-serif !important; line-height: 1.55 !important; border-radius: 10px !important; gap: 12px; }
.bb-admin .navigation#bb-admin-rail .bb-admin-section-toggle { font-size: 14.5px !important; padding: 0 12px !important; }
.bb-admin .navigation#bb-admin-rail .bb-admin-nav-group__links .navigation__link { align-items: center; display: flex; padding: 0 12px 0 44px; }
.bb-admin .navigation#bb-admin-rail .bb-admin-rail-footer { border-top: 1px solid var(--bb-rose-20); display: flex; flex-direction: column; gap: 2px; padding-top: 12px; }
.bb-admin .navigation#bb-admin-rail .bb-admin-rail-footer .bb-admin-nav-group--secondary { border-top: 0; margin: 0; padding: 0; }
.bb-admin .navigation#bb-admin-rail .bb-admin-rail-footer .bb-admin-section-toggle:not(.is-current) { font-size: 14px !important; }
.bb-admin .navigation#bb-admin-rail .bb-admin-rail-toggle { color: var(--bb-ink) !important; font-size: 15px !important; margin: 0; padding: 0 12px !important; }
.bb-admin .navigation#bb-admin-rail .bb-admin-rail-toggle::before {
  background: currentColor; content: ""; flex: 0 0 18px; height: 18px; width: 18px;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 6l-6 6 6 6'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 6l-6 6 6 6'/%3E%3C/svg%3E") center / contain no-repeat;
}
.bb-admin .navigation#bb-admin-rail.is-collapsed .bb-admin-rail-toggle::before {
  font-size: 0;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6l6 6-6 6'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6l6 6-6 6'/%3E%3C/svg%3E");
}
.bb-admin .navigation#bb-admin-rail .bb-admin-rail-footer .button--nav { padding: 0 12px; }
.bb-admin .navigation#bb-admin-rail .bb-admin-account-footer { border-top: 0; font-size: 13.5px; gap: 10px; min-height: 44px; padding: 0 8px; }
.bb-admin .navigation#bb-admin-rail .bb-admin-account-menu { order: -1; }
.bb-admin .navigation#bb-admin-rail .account-menu-trigger { background: transparent; border: 0; margin: 0 -6px; }
.bb-admin .navigation#bb-admin-rail .account-menu-trigger > span {
  align-items: center; background: var(--bb-blush); border-radius: 50%; color: var(--bb-plum); display: inline-flex; font-size: 12.5px; font-weight: 500; height: 32px; justify-content: center; width: 32px;
}
.bb-admin .navigation#bb-admin-rail .bb-admin-account-identity strong { font-size: 13.5px; font-weight: 400; }
.bb-admin .navigation#bb-admin-rail .bb-admin-account-identity span { font-size: 12.5px; }
.bb-admin .navigation#bb-admin-rail.is-collapsed .bb-admin-account-footer { justify-content: center; padding: 0; }
.bb-admin .navigation#bb-admin-rail.is-collapsed .bb-admin-account-menu { order: 0; }
.bb-admin .navigation#bb-admin-rail.is-collapsed .account-menu-trigger { margin: 0; }
.bb-admin .navigation#bb-admin-rail .bb-admin-nav-primary { gap: 2px; }
.bb-admin .navigation#bb-admin-rail .bb-admin-nav-group__links:not([hidden]) { display: flex; flex-direction: column; gap: 2px; margin: 2px 0 8px; }
.bb-admin-drawer-close svg { fill: none; height: 22px; stroke: currentColor; stroke-linecap: round; stroke-width: 1.7; width: 22px; }

@media (max-width: 1099px) {
  .bb-admin .navigation#bb-admin-rail .bb-admin-navigation__panel {
    box-shadow: 0 20px 60px rgba(74, 37, 48, 0.18); max-width: min(320px, 88vw); padding: 12px 12px 16px; width: min(320px, 88vw);
  }
  .bb-admin .navigation#bb-admin-rail .bb-admin-drawer-brand { align-items: center; display: flex; margin: 0; max-width: none; min-height: 44px; padding: 0 0 10px; }
  .bb-admin .navigation#bb-admin-rail .bb-admin-drawer-brand img { height: 40px; max-height: none; width: auto; }
  .bb-admin .navigation#bb-admin-rail .bb-admin-drawer-close { border: 0 !important; border-radius: 10px !important; color: var(--bb-ink) !important; right: 12px; top: 12px; }
  .bb-admin .navigation#bb-admin-rail .bb-admin-nav-group--secondary { border-top: 1px solid var(--bb-rose-20); margin-top: 0; padding-top: 12px; }
  .bb-admin .navigation#bb-admin-rail .bb-admin-nav-group--secondary .bb-admin-section-toggle:not(.is-current) { color: var(--bb-muted) !important; font-size: 14px !important; }
  .bb-admin .navigation#bb-admin-rail .bb-admin-drawer-account { border-top: 0; gap: 10px; margin-top: 2px; min-height: 44px; padding: 0 8px; }
  .bb-admin-drawer-account__avatar { background: var(--bb-blush); border: 0; font-size: 12.5px; height: 32px; width: 32px; }
  .bb-admin-drawer-account__text strong { font-size: 13.5px; font-weight: 400; }
  .bb-admin-drawer-account__text span { font-size: 12.5px; }
}

/* Phone and tablet top bar: menu, brand, then the section name after a hairline; the account control sits at the end. */
@media (max-width: 1099px) {
  .bb-admin .navigation#bb-admin-rail { background: #fff; border-bottom: 1px solid var(--bb-rose-20); min-height: 60px; padding: 8px 12px; }
  .bb-admin .navigation#bb-admin-rail .bb-admin-navigation__topline { gap: 8px; grid-template-columns: 44px max-content minmax(0, 1fr) 44px; }
  .bb-admin .navigation#bb-admin-rail .bb-admin-brand { width: auto; }
  .bb-admin .navigation#bb-admin-rail .bb-admin-brand__logo { height: 36px; max-height: none; max-width: none; width: auto; }
  .bb-admin .navigation#bb-admin-rail .bb-admin-menu-toggle { color: var(--bb-ink) !important; }
  .bb-admin .navigation#bb-admin-rail .bb-admin-current-section {
    border-left: 1px solid var(--bb-rose-20); font-size: 14px; justify-self: start; min-width: 0; overflow: hidden; padding-left: 10px; text-overflow: ellipsis;
  }
  .bb-admin .navigation#bb-admin-rail .bb-admin-account-menu { margin: 0; }
}

/* ---------- P03: shell content area, Home and the shared empty state (V3 shell-home) ---------- */
.bb-admin .main-content.bb-admin-main { font-size: 15px; line-height: 1.55; padding: 28px 36px 64px; }
@media (max-width: 1099px) { .bb-admin .main-content.bb-admin-main { padding: 22px 24px 56px; } }
@media (max-width: 759px) { .bb-admin .main-content.bb-admin-main { padding: 16px 16px 48px; } }
.bb-admin-home__phase { font-size: 13.5px; line-height: 1.55; margin: 0; }
.bb-admin-home .bb-admin-page-header h1 { font-size: 32px; line-height: 1.15; max-width: none; }
.bb-admin-home .bb-admin-home__readiness { gap: 0; }
.bb-admin-home .bb-admin-home__readiness > .bb-meta { margin: 4px 0 12px; }
.bb-admin-home .bb-readiness { margin: 0; }
.bb-readiness--checks li { min-height: 48px; }
/* Shared empty state: the title is the 15.5px Jost row title, not a display heading. */
.bb-state h2 { font-family: "Jost", system-ui, sans-serif; font-size: 15.5px; font-weight: 500; line-height: 1.35; color: var(--bb-ink); }
/* Text rendering from the V3 shell: grayscale smoothing (matches the Content Studio shell) and tabular numerals. */
body.bb-admin { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; font-variant-numeric: tabular-nums; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
.bb-readiness li > span:first-child { display: flex; flex-direction: column; }
@media (max-width: 1099px) {
  .bb-admin .navigation#bb-admin-rail .bb-admin-rail-footer { border-top: 0; padding-top: 0; }
}
/* Administrate fills any focused button blue; the sample switch keeps its own look and the plum focus ring. */
.bb-admin .bb-sample-toggle:is(:focus, :focus-visible) { background: transparent; box-shadow: none; color: inherit; }
/* Messaging sequence timeline (V3 business-messaging): when each step goes out, its subject and its state. */
.bb-timeline { list-style: none; margin: 0; padding: 0; }
.bb-timeline li { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr) auto; gap: 4px 12px; align-items: center; min-height: 44px; border-top: 1px solid var(--bb-rose-20); padding: 4px 0; }
.bb-timeline li > a { overflow-wrap: anywhere; color: var(--bb-ink); display: flex; align-items: center; min-height: 44px; }
@media (max-width: 759px) { .bb-timeline li { grid-template-columns: minmax(0, 1fr) auto; } .bb-timeline li > .w { grid-column: 1 / -1; } }
