/* ============================================================
   Site Assistant — Direction 2A ("Refined + Warm")
   B3's own brand: calm, premium, professional. Does NOT inherit
   the host site's colors. Applied only to the Business persona
   (`.b3chat.b3chat-business`); Panel/FullPage keep b3-chat.css.
   ============================================================ */

.b3chat.b3chat-business {
    /* Brand ----------------------------------------------------- */
    --b3-indigo:        oklch(40% 0.16 286);   /* primary: buttons, user bubbles, active icons */
    --b3-indigo-hover:  oklch(34% 0.16 286);
    --b3-teal:          oklch(52% 0.10 195);   /* secondary accent: highlighted words, links */
    --b3-lavender:      oklch(96.5% 0.022 286);/* assistant bubbles, icon chips, pills, CTA bg */
    --b3-lavender-bd:   oklch(91% 0.03 286);
    /* Neutrals -------------------------------------------------- */
    --b3-paper:         oklch(98.5% 0.008 75); /* scroll-area body background */
    --b3-paper-2:       oklch(97.5% 0.01 75);  /* subtle chips */
    --b3-surface:       #ffffff;
    --b3-ink:           oklch(24% 0.02 286);   /* primary text */
    --b3-muted:         oklch(51% 0.015 60);   /* secondary text */
    --b3-hair:          oklch(91% 0.009 70);   /* hairlines / borders */
    --b3-hair-2:        oklch(93.5% 0.008 70); /* inner dividers */
    /* Shape ----------------------------------------------------- */
    --b3-r-panel: 16px;
    --b3-r-card:  13px;
    --b3-r-pill:  999px;
    --b3-shadow:  0 1px 2px rgba(70,50,20,.05), 0 22px 48px -18px rgba(70,50,20,.2);
    --b3-shadow-sm: 0 1px 2px rgba(70,50,20,.05), 0 8px 20px -12px rgba(70,50,20,.18);

    font-family: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 15px;
    color: var(--b3-ink);
    background: var(--b3-surface);
}

/* Material Symbols Rounded — thin (weight 300), rendered via ligatures. */
.b3chat.b3chat-business .material-symbols-rounded {
    font-family: 'Material Symbols Rounded';
    font-weight: normal;
    font-style: normal;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    direction: ltr;
    font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 24;
    -webkit-font-feature-settings: 'liga';
    -webkit-font-smoothing: antialiased;
    user-select: none;
}

/* "Lego brick" mark — a CSS shape (rounded body + two studs) drawn in
   currentColor, used wherever Blocks / features are referenced. */
.b3chat.b3chat-business .b3-lego {
    display: inline-block;
    position: relative;
    width: 1em;
    height: 0.82em;
    vertical-align: -0.10em;
    flex-shrink: 0;
}
.b3chat.b3chat-business .b3-lego::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0.15em;
    width: 0.24em;
    height: 0.20em;
    border-radius: 0.08em 0.08em 0 0;
    background: currentColor;
    box-shadow: 0.46em 0 0 currentColor;
}
.b3chat.b3chat-business .b3-lego::after {
    content: "";
    position: absolute;
    top: 0.16em;
    left: 0;
    width: 1em;
    height: 0.66em;
    border-radius: 0.16em;
    background: currentColor;
}

/* ─── HEADER ──────────────────────────────────────────────────── */
.b3chat.b3chat-business .b3chat-business-header {
    background: var(--b3-surface);
    border-bottom: 1px solid var(--b3-hair);
    /* right padding leaves room for the bubble's external close (X) button */
    padding: 12px 52px 12px 14px;
    gap: 10px;
}

.b3chat.b3chat-business .b3chat-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.b3chat.b3chat-business .b3chat-brand-tile {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 9px;
    background: var(--b3-indigo);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Geist Mono', ui-monospace, monospace;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: -0.02em;
}

.b3chat.b3chat-business .b3chat-panel-title.b3chat-brand {
    font-family: 'Geist', sans-serif;
    font-weight: 600;
    font-size: 1.02rem;
    color: var(--b3-ink);
    letter-spacing: -0.01em;
    gap: 10px;
}

.b3chat-business-header-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Blocks button (lego mark + label) */
.b3chat.b3chat-business .b3chat-blocks-btn {
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    background: var(--b3-surface);
    color: var(--b3-ink);
    border: 1px solid var(--b3-hair);
    border-radius: var(--b3-r-pill);
    padding: 6px 12px 6px 11px;
    font-family: 'Geist', sans-serif;
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    transition: all .15s ease;
}
.b3chat.b3chat-business .b3chat-blocks-btn .b3-lego { font-size: 15px; color: var(--b3-indigo); }
.b3chat.b3chat-business .b3chat-blocks-btn:hover {
    border-color: var(--b3-lavender-bd);
    background: var(--b3-lavender);
}

/* Round icon pill (history) */
.b3chat.b3chat-business .b3chat-icon-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    background: var(--b3-surface);
    color: var(--b3-muted);
    border: 1px solid var(--b3-hair);
    border-radius: 10px;
    cursor: pointer;
    transition: all .15s ease;
}
.b3chat.b3chat-business .b3chat-icon-pill .material-symbols-rounded { font-size: 19px; }
.b3chat.b3chat-business .b3chat-icon-pill:hover {
    color: var(--b3-indigo);
    border-color: var(--b3-lavender-bd);
    background: var(--b3-lavender);
}

/* New-chat button — filled indigo "+" */
.b3chat.b3chat-business .b3chat-newchat-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    background: var(--b3-indigo);
    color: #fff;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background .15s ease;
}
.b3chat.b3chat-business .b3chat-newchat-btn .material-symbols-rounded { font-size: 21px; }
.b3chat.b3chat-business .b3chat-newchat-btn:hover { background: var(--b3-indigo-hover); }

/* ─── BODY / SCROLL AREA ──────────────────────────────────────── */
.b3chat.b3chat-business .b3chat-messages {
    background: var(--b3-paper);
    padding: 16px 16px 20px;
    gap: 12px;
}

/* Context chip ("Home page · demo") */
.b3chat.b3chat-business .b3chat-context-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    align-self: flex-start;
    background: var(--b3-paper-2);
    border: 1px solid var(--b3-hair);
    border-radius: var(--b3-r-pill);
    padding: 5px 12px;
    font-size: 0.8rem;
    color: var(--b3-muted);
    font-weight: 500;
}
.b3chat.b3chat-business .b3chat-context-chip .material-symbols-rounded { font-size: 16px; }
.b3chat.b3chat-business .b3chat-convo-chip { align-self: center; }

/* ─── WELCOME ─────────────────────────────────────────────────── */
.b3chat.b3chat-business .b3chat-business-welcome {
    padding: 4px 0 0;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.b3chat.b3chat-business .b3chat-business-welcome h3 {
    margin: 8px 0 0;
    font-size: 1.5rem;
    line-height: 1.18;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--b3-ink);
}

.b3chat.b3chat-business .b3chat-business-welcome-sub {
    margin: -6px 0 0;
    color: var(--b3-muted);
    font-size: 0.95rem;
    line-height: 1.4;
}

/* Hairline-divided starting-point list */
.b3chat.b3chat-business .b3chat-welcome-list {
    display: flex;
    flex-direction: column;
    background: var(--b3-surface);
    border: 1px solid var(--b3-hair);
    border-radius: var(--b3-r-card);
    overflow: hidden;
    box-shadow: var(--b3-shadow-sm);
}

.b3chat.b3chat-business .b3chat-welcome-row {
    display: flex;
    align-items: center;
    gap: 13px;
    width: 100%;
    padding: 14px 14px;
    background: transparent;
    border: none;
    border-top: 1px solid var(--b3-hair-2);
    cursor: pointer;
    text-align: left;
    font-family: 'Geist', sans-serif;
    font-size: 0.98rem;
    font-weight: 500;
    color: var(--b3-ink);
    transition: background .12s ease;
}
.b3chat.b3chat-business .b3chat-welcome-row:first-child { border-top: none; }
.b3chat.b3chat-business .b3chat-welcome-row:hover:not(:disabled) { background: var(--b3-paper-2); }
.b3chat.b3chat-business .b3chat-welcome-row:disabled { opacity: .55; cursor: not-allowed; }
.b3chat.b3chat-business .b3chat-welcome-row .b3chat-welcome-ico {
    color: var(--b3-indigo);
    display: inline-flex;
}
.b3chat.b3chat-business .b3chat-welcome-row .b3chat-welcome-ico .material-symbols-rounded { font-size: 22px; }
.b3chat.b3chat-business .b3chat-welcome-row .b3chat-welcome-label { flex: 1; min-width: 0; }
.b3chat.b3chat-business .b3chat-welcome-row .b3chat-chevron {
    color: var(--b3-muted);
    opacity: .7;
}
.b3chat.b3chat-business .b3chat-welcome-row .b3chat-chevron .material-symbols-rounded { font-size: 20px; }

/* "Add a feature" CTA — lavender panel */
.b3chat.b3chat-business .b3chat-feature-cta {
    display: flex;
    align-items: center;
    gap: 13px;
    width: 100%;
    padding: 15px 15px;
    background: var(--b3-lavender);
    border: 1px solid var(--b3-lavender-bd);
    border-radius: var(--b3-r-card);
    cursor: pointer;
    text-align: left;
    transition: filter .12s ease, transform .12s ease;
}
.b3chat.b3chat-business .b3chat-feature-cta:hover { filter: brightness(.985); transform: translateY(-1px); }
.b3chat.b3chat-business .b3chat-feature-cta .b3chat-feature-mark {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    border-radius: 11px;
    background: var(--b3-surface);
    border: 1px solid var(--b3-lavender-bd);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--b3-indigo);
}
.b3chat.b3chat-business .b3chat-feature-cta .b3chat-feature-mark .b3-lego { font-size: 20px; }
.b3chat.b3chat-business .b3chat-feature-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.b3chat.b3chat-business .b3chat-feature-title {
    font-weight: 600;
    font-size: 0.98rem;
    color: var(--b3-ink);
}
.b3chat.b3chat-business .b3chat-feature-sub {
    font-size: 0.84rem;
    color: var(--b3-muted);
    margin-top: 2px;
    line-height: 1.35;
}
.b3chat.b3chat-business .b3chat-feature-cta .b3chat-feature-arrow { color: var(--b3-indigo); }
.b3chat.b3chat-business .b3chat-feature-cta .b3chat-feature-arrow .material-symbols-rounded { font-size: 22px; }

.b3chat.b3chat-business .b3chat-business-context {
    margin-top: 2px;
    padding: 9px 12px;
    background: var(--b3-paper-2);
    border: 1px solid var(--b3-hair);
    border-radius: 10px;
    font-size: 0.84rem;
    color: var(--b3-muted);
}
.b3chat.b3chat-business .b3chat-business-context strong { color: var(--b3-ink); font-weight: 600; }

/* ─── SUB-HEADER (Content voice / B3 Blocks views) ────────────── */
.b3chat.b3chat-business .b3chat-subhead {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 4px;
}
.b3chat.b3chat-business .b3chat-back-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: var(--b3-surface);
    border: 1px solid var(--b3-hair);
    color: var(--b3-ink);
    cursor: pointer;
    transition: all .15s ease;
}
.b3chat.b3chat-business .b3chat-back-btn .material-symbols-rounded { font-size: 20px; }
.b3chat.b3chat-business .b3chat-back-btn:hover { background: var(--b3-lavender); border-color: var(--b3-lavender-bd); }
.b3chat.b3chat-business .b3chat-subhead h4 {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--b3-ink);
}
.b3chat.b3chat-business .b3chat-subhead-desc {
    margin: 0 2px 6px;
    color: var(--b3-muted);
    font-size: 0.9rem;
    line-height: 1.4;
}

/* ─── CONTENT VOICE VIEW ──────────────────────────────────────── */
.b3chat.b3chat-business .b3chat-voice-view {
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: var(--b3-paper);
    padding: 16px;
    overflow-y: auto;
}
.b3chat.b3chat-business .b3chat-voice-cards {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.b3chat.b3chat-business .b3chat-voice-card {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 13px 14px;
    background: var(--b3-surface);
    border: 1.5px solid var(--b3-hair);
    border-radius: var(--b3-r-card);
    cursor: pointer;
    text-align: left;
    transition: all .13s ease;
}
.b3chat.b3chat-business .b3chat-voice-card:hover { border-color: var(--b3-lavender-bd); background: var(--b3-lavender); }
.b3chat.b3chat-business .b3chat-voice-card.selected {
    border-color: var(--b3-indigo);
    background: var(--b3-lavender);
}
.b3chat.b3chat-business .b3chat-voice-card-body { flex: 1; min-width: 0; }
.b3chat.b3chat-business .b3chat-voice-name {
    font-weight: 600;
    font-size: 0.98rem;
    color: var(--b3-ink);
}
.b3chat.b3chat-business .b3chat-voice-desc {
    font-size: 0.85rem;
    color: var(--b3-muted);
    margin-top: 2px;
    line-height: 1.35;
}
.b3chat.b3chat-business .b3chat-voice-check {
    color: var(--b3-indigo);
    display: none;
}
.b3chat.b3chat-business .b3chat-voice-card.selected .b3chat-voice-check { display: inline-flex; }
.b3chat.b3chat-business .b3chat-voice-check .material-symbols-rounded {
    font-size: 22px;
    font-variation-settings: 'FILL' 1, 'wght' 300, 'GRAD' 0, 'opsz' 24;
}

.b3chat.b3chat-business .b3chat-done-btn {
    margin-top: 6px;
    width: 100%;
    padding: 13px;
    background: var(--b3-indigo);
    color: #fff;
    border: none;
    border-radius: var(--b3-r-card);
    font-family: 'Geist', sans-serif;
    font-size: 0.98rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s ease;
}
.b3chat.b3chat-business .b3chat-done-btn:hover { background: var(--b3-indigo-hover); }

/* ─── COMPOSER ────────────────────────────────────────────────── */
.b3chat.b3chat-business .b3chat-input-area {
    background: var(--b3-surface);
    border-top: 1px solid var(--b3-hair);
    padding: 12px 14px 12px;
}

/* Voice chip (opens the Content voice view) */
.b3chat.b3chat-business .b3chat-voice-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: var(--b3-lavender);
    border: 1px solid var(--b3-lavender-bd);
    border-radius: var(--b3-r-pill);
    padding: 5px 10px 5px 11px;
    margin-bottom: 10px;
    font-family: 'Geist', sans-serif;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--b3-ink);
    cursor: pointer;
    max-width: 100%;
    transition: filter .13s ease;
}
.b3chat.b3chat-business .b3chat-voice-chip:hover { filter: brightness(.985); }
.b3chat.b3chat-business .b3chat-voice-chip .b3chat-voice-chip-mic { color: var(--b3-indigo); display: inline-flex; }
.b3chat.b3chat-business .b3chat-voice-chip .b3chat-voice-chip-mic .material-symbols-rounded { font-size: 16px; }
.b3chat.b3chat-business .b3chat-voice-chip .b3chat-voice-chip-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.b3chat.b3chat-business .b3chat-voice-chip .material-symbols-rounded.b3chat-voice-chip-caret { font-size: 18px; color: var(--b3-muted); }

.b3chat.b3chat-business .b3chat-input-row {
    gap: 8px;
    align-items: center;
}
.b3chat.b3chat-business .b3chat-input {
    font-family: 'Geist', sans-serif;
    font-size: 0.95rem;
    padding: 12px 14px;
    min-height: 46px;
    border: 1px solid var(--b3-hair);
    border-radius: 13px;
    background: var(--b3-surface);
    color: var(--b3-ink);
}
.b3chat.b3chat-business .b3chat-input::placeholder { color: var(--b3-muted); }
.b3chat.b3chat-business .b3chat-input:focus {
    border-color: var(--b3-indigo);
    box-shadow: 0 0 0 3px oklch(40% 0.16 286 / .14);
}

.b3chat.b3chat-business .b3chat-send-btn {
    width: 44px;
    height: 44px;
    background: var(--b3-indigo);
    border-radius: 12px;
    color: #fff;
    flex-shrink: 0;
}
.b3chat.b3chat-business .b3chat-send-btn .material-symbols-rounded { font-size: 21px; }
.b3chat.b3chat-business .b3chat-send-btn:hover:not(:disabled) { background: var(--b3-indigo-hover); opacity: 1; }

/* Copy / discard meta row */
.b3chat.b3chat-business .b3chat-meta-row {
    justify-content: flex-end;
    gap: 12px;
    padding: 8px 2px 0;
}
.b3chat.b3chat-business .b3chat-copy-btn {
    font-family: 'Geist', sans-serif;
    font-size: 0.8rem;
    color: var(--b3-muted);
    opacity: 1;
    gap: 6px;
}
.b3chat.b3chat-business .b3chat-copy-btn .material-symbols-rounded { font-size: 16px; }
.b3chat.b3chat-business .b3chat-copy-btn:hover { background: var(--b3-paper-2); color: var(--b3-ink); }
.b3chat.b3chat-business .b3chat-copy-btn.copied { color: var(--b3-teal); }
.b3chat.b3chat-business .b3chat-discard-btn {
    font-family: 'Geist', sans-serif;
    font-size: 0.8rem;
    background: none;
    border: none;
    cursor: pointer;
    color: #a83232;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 2px 6px;
    border-radius: 6px;
}
.b3chat.b3chat-business .b3chat-discard-btn .material-symbols-rounded { font-size: 16px; }
.b3chat.b3chat-business .b3chat-discard-btn:hover { background: #fbf2f2; }

/* Composer stacks its children top-to-bottom: approve · chip · input · copy row */
.b3chat.b3chat-business .b3chat-input-area { display: flex; flex-direction: column; }
.b3chat.b3chat-business .b3chat-voice-chip { align-self: flex-start; }

/* One-click "Approve This" — call-to-action shown when the assistant paused to
   ask permission. Prominent indigo button above the composer. */
.b3chat.b3chat-business .b3chat-approve-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin-bottom: 10px;
    padding: 12px;
    background: var(--b3-indigo);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-family: 'Geist', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: var(--b3-shadow-sm);
    transition: background .15s ease, transform .12s ease;
}
.b3chat.b3chat-business .b3chat-approve-btn:hover:not(:disabled) { background: var(--b3-indigo-hover); transform: translateY(-1px); }
.b3chat.b3chat-business .b3chat-approve-btn:disabled { opacity: .55; cursor: not-allowed; }
.b3chat.b3chat-business .b3chat-approve-btn .material-symbols-rounded {
    font-size: 20px;
    font-variation-settings: 'FILL' 1, 'wght' 300, 'GRAD' 0, 'opsz' 24;
}

/* ─── MESSAGE BUBBLES ─────────────────────────────────────────── */
.b3chat.b3chat-business .b3chat-msg {
    font-size: 0.96rem;
    line-height: 1.55;
    padding: 12px 14px;
    border-radius: 14px;
    max-width: 88%;
}
.b3chat.b3chat-business .b3chat-msg.user {
    background: var(--b3-indigo);
    color: #fff;
    border-bottom-right-radius: 5px;
}
.b3chat.b3chat-business .b3chat-msg.assistant {
    position: relative;
    margin-left: 34px;
    background: var(--b3-lavender);
    color: var(--b3-ink);
    border: 1px solid var(--b3-lavender-bd);
    border-bottom-left-radius: 5px;
}
.b3chat.b3chat-business .b3chat-msg.assistant::before {
    content: "B3";
    position: absolute;
    left: -34px;
    top: 0;
    width: 26px;
    height: 26px;
    border-radius: 8px;
    background: var(--b3-indigo);
    color: #fff;
    font-family: 'Geist Mono', ui-monospace, monospace;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.01em;
    display: flex;
    align-items: center;
    justify-content: center;
}
.b3chat.b3chat-business .b3chat-msg.assistant a { color: var(--b3-teal); font-weight: 500; text-decoration: none; }
.b3chat.b3chat-business .b3chat-msg.assistant a:hover { text-decoration: underline; }
.b3chat.b3chat-business .b3chat-msg.assistant :not(pre) > code {
    font-family: 'Geist Mono', ui-monospace, monospace;
    font-size: 0.82em;
    background: var(--b3-surface);
    border: 1px solid var(--b3-lavender-bd);
    color: var(--b3-indigo);
    padding: 0.08em 0.4em;
    border-radius: 6px;
}
.b3chat.b3chat-business .b3chat-cursor { color: var(--b3-indigo); }

/* ─── B3 BLOCKS STORE ─────────────────────────────────────────── */
.b3chat.b3chat-business .b3chat-block-catalog {
    background: var(--b3-paper);
    padding: 16px !important;
    gap: 10px;
}
.b3chat.b3chat-business .b3chat-block-card {
    display: grid;
    grid-template-columns: 42px 1fr;
    grid-template-areas: "ico info" "foot foot";
    gap: 4px 12px;
    padding: 14px;
    background: var(--b3-surface);
    border: 1px solid var(--b3-hair);
    border-radius: var(--b3-r-card);
    box-shadow: var(--b3-shadow-sm);
}
.b3chat.b3chat-business .b3chat-block-ico {
    grid-area: ico;
    width: 42px;
    height: 42px;
    border-radius: 11px;
    background: var(--b3-lavender);
    border: 1px solid var(--b3-lavender-bd);
    color: var(--b3-indigo);
    display: flex;
    align-items: center;
    justify-content: center;
}
.b3chat.b3chat-business .b3chat-block-ico .material-symbols-rounded { font-size: 22px; }
.b3chat.b3chat-business .b3chat-block-card .b3chat-block-info { grid-area: info; }
.b3chat.b3chat-business .b3chat-block-name {
    font-size: 0.98rem;
    font-weight: 600;
    color: var(--b3-ink);
    margin-bottom: 3px;
}
.b3chat.b3chat-business .b3chat-block-desc {
    font-size: 0.85rem;
    color: var(--b3-muted);
    line-height: 1.4;
}
.b3chat.b3chat-business .b3chat-block-foot {
    grid-area: foot;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 8px;
}
.b3chat.b3chat-business .b3chat-block-price {
    font-family: 'Geist Mono', ui-monospace, monospace;
    color: var(--b3-ink);
}
.b3chat.b3chat-business .b3chat-block-price .amt { font-size: 1.05rem; font-weight: 600; }
.b3chat.b3chat-business .b3chat-block-price .per { font-size: 0.8rem; color: var(--b3-muted); }
.b3chat.b3chat-business .b3chat-block-add-btn {
    margin: 0;
    background: var(--b3-indigo);
    color: #fff;
    border: none;
    border-radius: 9px;
    font-family: 'Geist', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 8px 15px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    transition: background .15s ease;
}
.b3chat.b3chat-business .b3chat-block-add-btn:hover { background: var(--b3-indigo-hover); }
.b3chat.b3chat-business .b3chat-block-add-btn .material-symbols-rounded { font-size: 17px; }

/* Empty state on paper */
.b3chat.b3chat-business .b3chat-empty-state { color: var(--b3-muted); }

/* ─── STATUS / SPINNER ────────────────────────────────────────── */
.b3chat.b3chat-business .b3chat-status { color: var(--b3-muted); font-size: 0.8rem; }
.b3chat.b3chat-business .b3chat-spinner { border-color: var(--b3-hair); border-top-color: var(--b3-indigo); }
.b3chat.b3chat-business .b3chat-cancel-btn { border-color: var(--b3-hair); color: var(--b3-muted); }
.b3chat.b3chat-business .b3chat-cancel-btn:hover { background: #a83232; border-color: #a83232; color: #fff; }
.b3chat.b3chat-business .b3chat-model-switch-bar {
    color: var(--b3-indigo);
    background: oklch(40% 0.16 286 / .07);
    border-color: oklch(40% 0.16 286 / .22);
    border-radius: 8px;
}

/* ─── REVIEW CARD (Commit / Work on it / Revert) ──────────────── */
.b3chat-review-card {
    margin: 12px 0 4px;
    padding: 16px 14px;
    background: var(--b3-surface);
    border: 1px solid var(--b3-hair);
    border-radius: var(--b3-r-card);
    box-shadow: var(--b3-shadow-sm);
}
.b3chat-review-header { text-align: center; margin-bottom: 14px; }
.b3chat-review-header h4 { margin: 0 0 4px; font-size: 1.1rem; font-weight: 600; color: var(--b3-ink); }
.b3chat-review-header p { margin: 0; color: var(--b3-muted); font-size: 0.88rem; }
.b3chat-review-actions { display: flex; flex-direction: column; gap: 10px; }
.b3chat-review-btn {
    display: grid;
    grid-template-columns: 30px 1fr;
    grid-template-areas: "icon title" "icon sub";
    align-items: center;
    gap: 2px 12px;
    padding: 12px 14px;
    border-radius: 11px;
    border: 1.5px solid var(--b3-hair);
    background: var(--b3-surface);
    cursor: pointer;
    transition: all .15s ease;
    text-align: left;
}
.b3chat-review-btn i { grid-area: icon; font-size: 1.35rem; align-self: center; }
.b3chat-review-btn-title { grid-area: title; font-weight: 600; font-size: 0.98rem; color: var(--b3-ink); }
.b3chat-review-btn-sub { grid-area: sub; font-size: 0.82rem; color: var(--b3-muted); line-height: 1.3; }
.b3chat-review-btn:hover { transform: translateY(-1px); box-shadow: var(--b3-shadow-sm); }
.b3chat-review-commit { border-color: var(--b3-lavender-bd); }
.b3chat-review-commit i { color: var(--b3-indigo); }
.b3chat-review-commit:hover { background: var(--b3-lavender); }
.b3chat-review-work i { color: var(--b3-muted); }
.b3chat-review-work:hover { background: var(--b3-paper-2); }
.b3chat-review-revert { border-color: #e0b4b4; }
.b3chat-review-revert i { color: #a83232; }
.b3chat-review-revert:hover { background: #fbf2f2; border-color: #a83232; }
.b3chat-commit-go { background: var(--b3-indigo) !important; }
.b3chat-commit-go:hover { background: var(--b3-indigo-hover) !important; }

/* ─── PUBLISH / ACTION BAR ────────────────────────────────────── */
.b3chat-publish-bar {
    margin-top: 10px;
    padding: 12px;
    background: var(--b3-paper-2);
    border: 1px solid var(--b3-hair);
    border-radius: 11px;
    font-size: 0.88rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 7px;
}
/* Post-revert bar reads as a lavender "assistant/system" info strip, distinct
   from the warm-paper publish bar. */
.b3chat.b3chat-business .b3chat-postrevert-bar {
    background: var(--b3-lavender);
    border-color: var(--b3-lavender-bd);
}

.b3chat-publish-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--b3-indigo);
    color: #fff;
    border: none;
    padding: 9px 15px;
    border-radius: 10px;
    font-family: 'Geist', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: all .15s ease;
}
.b3chat-publish-btn:hover:not(:disabled) { background: var(--b3-indigo-hover); transform: translateY(-1px); }
.b3chat-publish-btn:disabled { opacity: .5; cursor: not-allowed; }
.b3chat-publish-btn.b3chat-publish-action { background: oklch(58% 0.11 65); }
.b3chat-publish-btn.b3chat-publish-action:hover:not(:disabled) { background: oklch(51% 0.11 65); }
.b3chat-publish-hint { color: var(--b3-muted); font-size: 0.82rem; }
.b3chat-publish-confirm { display: flex; flex-direction: column; gap: 6px; }
.b3chat-publish-confirm strong { color: var(--b3-ink); }
.b3chat-publish-confirm span { color: var(--b3-muted); font-size: 0.85rem; }
.b3chat-publish-actions { display: flex; gap: 8px; margin-top: 6px; }
.b3chat-publish-go {
    background: var(--b3-indigo);
    color: #fff;
    border: none;
    padding: 9px 16px;
    border-radius: 9px;
    font-family: 'Geist', sans-serif;
    font-weight: 600;
    cursor: pointer;
}
.b3chat-publish-go:hover { background: var(--b3-indigo-hover); }
.b3chat-publish-cancel {
    background: transparent;
    color: var(--b3-muted);
    border: 1px solid var(--b3-hair);
    padding: 9px 14px;
    border-radius: 9px;
    font-family: 'Geist', sans-serif;
    cursor: pointer;
}
.b3chat-publish-cancel:hover { background: var(--b3-paper-2); }
.b3chat-publish-progress { display: flex; align-items: center; gap: 10px; color: var(--b3-muted); padding: 4px 0; }
.b3chat-publish-result { display: flex; align-items: center; gap: 8px; padding: 4px 0; font-weight: 500; }
.b3chat-publish-result.success, .b3chat-publish-result.success i { color: var(--b3-indigo); }
.b3chat-publish-result.error, .b3chat-publish-result.error i { color: #a83232; }
.b3chat-publish-dismiss {
    margin-left: auto;
    background: transparent;
    color: inherit;
    border: 1px solid currentColor;
    padding: 4px 12px;
    border-radius: 7px;
    cursor: pointer;
    font-size: 0.85rem;
    opacity: .7;
}
.b3chat-publish-dismiss:hover { opacity: 1; }

/* "Discard / Cancel changes" red confirm (shared with review revert) */
.b3chat-cancel-go { background: #a83232 !important; }
.b3chat-cancel-go:hover { background: #842525 !important; }

/* Legacy business buttons kept for non-review discard confirm styling */
.b3chat-business-cancel,
.b3chat-business-newchat {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: var(--b3-r-pill);
    font-family: 'Geist', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    background: transparent;
    transition: all .15s ease;
}
.b3chat-business-cancel { color: #a83232; border: 1.5px solid #a83232; }
.b3chat-business-cancel:hover { background: #a83232; color: #fff; }
.b3chat-business-newchat { color: var(--b3-indigo); border: 1.5px solid var(--b3-indigo); }
.b3chat-business-newchat:hover { background: var(--b3-indigo); color: #fff; }

/* Hide power-user surfaces if they slip through */
.b3chat.b3chat-business .b3chat-model-select-inline,
.b3chat.b3chat-business .b3chat-lock-btn { display: none !important; }

@media (max-width: 480px) {
    .b3chat.b3chat-business .b3chat-business-welcome h3 { font-size: 1.35rem; }
}
