/* ── Base ──────────────────────────────────────────────────────────── */
html, body {
    font-family: 'Inter', 'Roboto', 'Helvetica Neue', sans-serif;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ── Scrollbar ────────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.12); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.2); }

/* ── Sidebar nav — target .mud-nav-item wrapper + inner link ────── */
.sky-nav.mud-navmenu .mud-nav-item {
    margin: 1px 10px !important;
    padding: 0 !important;
}

.sky-nav.mud-navmenu .mud-nav-item > .mud-nav-link {
    border-radius: 6px !important;
    padding: 6px 12px !important;
    font-size: 0.84rem !important;
    min-height: 34px !important;
    color: var(--mud-palette-text-secondary) !important;
    align-items: center !important;
}

.sky-nav.mud-navmenu .mud-nav-item > .mud-nav-link .mud-nav-link-icon {
    font-size: 1.15rem !important;
    margin-right: 12px !important;
    color: var(--mud-palette-text-disabled) !important;
    width: 20px !important;
    height: 20px !important;
}

@media (hover: hover) and (pointer: fine) {
    .sky-nav.mud-navmenu .mud-nav-item > .mud-nav-link:hover:not(.mud-nav-link-disabled) {
        background-color: var(--mud-palette-action-default-hover) !important;
        color: var(--mud-palette-text-primary) !important;
    }
}

.sky-nav.mud-navmenu .mud-nav-item > .mud-nav-link.active:not(.mud-nav-link-disabled) {
    background-color: rgba(59,130,246,0.12) !important;
    color: #3B82F6 !important;
}

.sky-nav.mud-navmenu .mud-nav-item > .mud-nav-link.active .mud-nav-link-icon {
    color: #3B82F6 !important;
}

/* Nav badge (Email Queue attention count). By default MudBadge's wrapper
 * is inline-block + content-sized, so the dot lands right after the link
 * text and gets clipped by .mud-drawer-content's overflow-x:hidden. Force
 * the wrapper to block+full-width so the dot sits at the row's right edge,
 * then pull it 16px inside the drawer so it isn't half-cut. */
.sky-nav .sky-nav-badge-root {
    display: block !important;
    width: 100% !important;
}
.sky-nav .sky-nav-badge-root .mud-badge.sky-nav-badge {
    top: 50% !important;
    right: 26px !important;
    transform: translateY(-50%) !important;
}

/* Tab header badge (linking proposals) */
.mud-tab-badge { display: inline-flex; align-items: center; }
.mud-tab-badge .mud-badge-root { position: relative; }

/* Section headers */
.sky-nav-section {
    padding: 18px 22px 6px 22px;
    font-size: 0.64rem;
    font-weight: 700;
    letter-spacing: 1.2px;
    color: var(--mud-palette-text-disabled);
    line-height: 1;
    user-select: none;
}

/* ── Drawer ────────────────────────────────────────────────────────── */
.mud-drawer {
    box-shadow: none !important;
}
.mud-drawer-content {
    justify-content: flex-start !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
}
.mud-drawer, .mud-drawer * {
    overflow-x: hidden !important;
}

/* ── Dark-mode paper border ───────────────────────────────────────── */
.mud-theme-dark .mud-paper:not(.mud-appbar):not(.mud-drawer):not(.mud-menu) {
    border: 1px solid rgba(255,255,255,0.08);
}

/* ── DataGrid headers ─────────────────────────────────────────────── */
.mud-table-head .mud-table-cell {
    font-weight: 600 !important;
    font-size: 0.72rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

/* ── Customer search bar in app bar ──────────────────────────────── */
.customer-search-bar-wrap {
    display: inline-flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 2px;
    margin-left: 16px;
}
/* MudMenu's root is display:inline-block by default, which in a flex
 * container with a wide neighbour (the autocomplete) can line-break on a
 * narrow viewport — force it to stay inline and self-center. */
.customer-search-bar-wrap > .mud-menu {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
}
.customer-search-bar .mud-input-outlined .mud-input-outlined-border {
    border-color: rgba(255,255,255,0.15) !important;
}
.customer-search-bar .mud-input {
    color: rgba(255,255,255,0.85) !important;
    font-size: 0.84rem !important;
}
.customer-search-bar .mud-input-adorment {
    color: rgba(255,255,255,0.4) !important;
}
.customer-search-bar .mud-input::placeholder,
.customer-search-bar .mud-input-slot input::placeholder {
    color: rgba(255,255,255,0.35) !important;
}

/* ── Gap utilities ────────────────────────────────────────────────── */
.gap-1 { gap: 4px; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }

/* ── Error UI ─────────────────────────────────────────────────────── */
.blazor-error-boundary {
    background: #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}
.blazor-error-boundary::after { content: "An error has occurred."; }

#blazor-error-ui {
    background: #1E1E2D;
    color: #F59E0B;
    bottom: 0;
    box-shadow: 0 -1px 4px rgba(0,0,0,0.4);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
    border-top: 2px solid #F59E0B;
}
#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

/* ── Splash / Login Screen ───────────────────────────────────────── */
.splash-bg {
    min-height: 100vh;
    background: radial-gradient(ellipse at 30% 20%, #0c1929 0%, #080e1a 50%, #050a12 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.splash-particles {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(1px 1px at 10% 20%, rgba(96,165,250,0.3) 0%, transparent 100%),
        radial-gradient(1px 1px at 80% 10%, rgba(96,165,250,0.2) 0%, transparent 100%),
        radial-gradient(1.5px 1.5px at 50% 50%, rgba(59,130,246,0.25) 0%, transparent 100%),
        radial-gradient(1px 1px at 20% 80%, rgba(96,165,250,0.15) 0%, transparent 100%),
        radial-gradient(1px 1px at 90% 60%, rgba(147,197,253,0.2) 0%, transparent 100%),
        radial-gradient(1.5px 1.5px at 40% 30%, rgba(59,130,246,0.2) 0%, transparent 100%),
        radial-gradient(1px 1px at 70% 90%, rgba(96,165,250,0.15) 0%, transparent 100%),
        radial-gradient(1px 1px at 30% 60%, rgba(147,197,253,0.12) 0%, transparent 100%);
    animation: splash-drift 30s linear infinite;
}

@keyframes splash-drift {
    0%   { transform: translateY(0); }
    100% { transform: translateY(-20px); }
}

.splash-content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 460px;
    padding: 0 24px;
}

.splash-card {
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(24px);
    border: 1px solid rgba(59, 130, 246, 0.15);
    border-radius: 20px;
    padding: 48px 40px 40px;
    box-shadow:
        0 0 80px rgba(59, 130, 246, 0.08),
        0 25px 60px rgba(0, 0, 0, 0.4);
    animation: splash-card-in 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes splash-card-in {
    0% { opacity: 0; transform: translateY(30px) scale(0.96); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

.splash-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 32px;
    animation: splash-logo-in 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
    animation-delay: 0.15s;
}

@keyframes splash-logo-in {
    0% { opacity: 0; transform: translateY(-20px) scale(0.9); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

.splash-logo img {
    width: 80px;
    height: auto;
    filter: drop-shadow(0 0 20px rgba(59, 130, 246, 0.35));
    margin-bottom: 16px;
}

.splash-logo-title {
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: #fff;
    margin: 0;
    line-height: 1;
}

.splash-logo-subtitle {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 3px;
    color: rgba(96, 165, 250, 0.6);
    text-transform: uppercase;
    margin-top: 8px;
}

.splash-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(59,130,246,0.3), transparent);
    margin: 24px 0;
}

.splash-code-display {
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: 10px;
    text-align: center;
    color: #60A5FA;
    padding: 16px;
    background: rgba(59, 130, 246, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 12px;
    text-shadow: 0 0 20px rgba(59, 130, 246, 0.4);
    animation: splash-pulse 2s ease-in-out infinite;
}

@keyframes splash-pulse {
    0%, 100% { border-color: rgba(59, 130, 246, 0.2); }
    50%      { border-color: rgba(59, 130, 246, 0.45); }
}

.splash-btn-ms {
    width: 100%;
    padding: 14px 24px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 12px;
    border: 1px solid rgba(59, 130, 246, 0.3);
    background: linear-gradient(135deg, rgba(59,130,246,0.15), rgba(59,130,246,0.05));
    color: #fff;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    position: relative;
    overflow: hidden;
}

.splash-btn-ms:hover {
    background: linear-gradient(135deg, rgba(59,130,246,0.25), rgba(59,130,246,0.1));
    border-color: rgba(59, 130, 246, 0.5);
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.15);
    transform: translateY(-1px);
}

.splash-btn-ms:active { transform: translateY(0); }

.splash-btn-ms:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.splash-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 0.7rem;
    color: rgba(255,255,255,0.2);
    letter-spacing: 0.5px;
}

.splash-status {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: rgba(59, 130, 246, 0.06);
    border-radius: 12px;
    border: 1px solid rgba(59, 130, 246, 0.1);
}

.splash-status-text { color: rgba(255,255,255,0.7); font-size: 0.85rem; }
.splash-success { background: rgba(34,197,94,0.06); border-color: rgba(34,197,94,0.2); }
.splash-error { background: rgba(239,68,68,0.06); border-color: rgba(239,68,68,0.2); }

/* ─────────────────────────────────────────────────────────────────────
   Mode tabs (Main / CRM / Billing) — AppBar center column
   ─────────────────────────────────────────────────────────────────────
   The AppBar uses a 3-column grid (1fr auto 1fr). The tabs live in the
   middle "auto" column which is natively centered by the two flanking
   1fr columns, regardless of left/right content widths. */
.sky-mode-tabs {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px;
    border-radius: 8px;
    /* Solid-ish backdrop so any overlap with the selected-customer chip
       on narrow screens is readable, not mushy. Blur helps on browsers
       that support it; the background color is the fallback. */
    background: rgba(22,22,29,0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.08);
    pointer-events: auto;
}

/* On narrow viewports shrink the search bar so the left column doesn't
   crowd the centered mode tabs. */
@media (max-width: 1100px) {
    .customer-search-bar { max-width: 200px !important; }
}
@media (max-width: 900px) {
    .customer-search-bar { max-width: 160px !important; }
}

.sky-mode-tab {
    appearance: none;
    -webkit-appearance: none;
    background: transparent;
    border: 0;
    color: rgba(255,255,255,0.7);
    font-family: inherit;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 5px 14px;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.12s ease, color 0.12s ease;
    line-height: 1.2;
    white-space: nowrap;
}

.sky-mode-tab:hover {
    background: rgba(255,255,255,0.07);
    color: #fff;
}

.sky-mode-tab--active {
    background: rgba(255,255,255,0.14);
    color: #fff;
    box-shadow: inset 0 -2px 0 currentColor;
}

/* ── Mobile / narrow screens ─────────────────────────────────────────── */
@media (max-width: 960px) {
    .sky-mode-tab { padding: 4px 10px; font-size: 0.72rem; }
}

@media (max-width: 720px) {
    .sky-mode-tabs { gap: 2px; padding: 2px; }
    .sky-mode-tab { padding: 3px 7px; font-size: 0.66rem; letter-spacing: 0.02em; }
}

/* ─────────────────────────────────────────────────────────────────────
   Mode accents — single source of truth via CSS custom properties.

   Each .mode-* class declares three vars consumed by the chrome rules
   below AND by the content-area overrides further down. To add a new
   mode, define the vars here and the rest of the system picks it up.
       --mode-accent      strong line/text/icon color
       --mode-accent-soft translucent background tint for "active" rows
       --mode-accent-on   lighter on-dark variant for the AppBar tab text
   ───────────────────────────────────────────────────────────────────── */

.mode-main {
    --mode-accent: #3B82F6;
    --mode-accent-soft: rgba(59,130,246,0.12);
    --mode-accent-on: #60A5FA;
    --mode-accent-rgb: 59,130,246;
    --mode-accent-darken: #2563EB;
    --mode-accent-lighten: #60A5FA;
}
.mode-crm {
    --mode-accent: #22C55E;
    --mode-accent-soft: rgba(34,197,94,0.14);
    --mode-accent-on: #86EFAC;
    --mode-accent-rgb: 34,197,94;
    --mode-accent-darken: #16A34A;
    --mode-accent-lighten: #4ADE80;
    --mode-section-label: rgba(134,239,172,0.7);
}
.mode-billing {
    --mode-accent: #EF4444;
    --mode-accent-soft: rgba(239,68,68,0.14);
    --mode-accent-on: #FCA5A5;
    --mode-accent-rgb: 239,68,68;
    --mode-accent-darken: #DC2626;
    --mode-accent-lighten: #F87171;
    --mode-section-label: rgba(252,165,165,0.7);
}
.mode-accounting {
    --mode-accent: #EAB308;
    --mode-accent-soft: rgba(234,179,8,0.14);
    --mode-accent-on: #FACC15;
    --mode-accent-rgb: 234,179,8;
    --mode-accent-darken: #CA8A04;
    --mode-accent-lighten: #FACC15;
    --mode-section-label: rgba(253,224,71,0.8);
}
.mode-hr {
    --mode-accent: #8B5CF6;
    --mode-accent-soft: rgba(139,92,246,0.14);
    --mode-accent-on: #C4B5FD;
    --mode-accent-rgb: 139,92,246;
    --mode-accent-darken: #7C3AED;
    --mode-accent-lighten: #A78BFA;
    --mode-section-label: rgba(196,181,253,0.7);
}
.mode-admin {
    --mode-accent: #F5F5F5;
    --mode-accent-soft: rgba(255,255,255,0.10);
    --mode-accent-on: #F5F5F5;
    --mode-accent-rgb: 245,245,245;
    --mode-accent-darken: #D4D4D4;
    --mode-accent-lighten: #FAFAFA;
    --mode-section-label: rgba(245,245,245,0.7);
}
.mode-assistent {
    --mode-accent: #C4C4CC;
    --mode-accent-soft: rgba(160,160,168,0.14);
    --mode-accent-on: #C4C4CC;
    --mode-accent-rgb: 160,160,168;
    --mode-accent-darken: #9CA3AF;
    --mode-accent-lighten: #D1D5DB;
    --mode-section-label: rgba(200,200,210,0.7);
}
.mode-tech {
    --mode-accent: #1D4ED8;
    --mode-accent-soft: rgba(29,78,216,0.16);
    --mode-accent-on: #93C5FD;
    --mode-accent-rgb: 29,78,216;
    --mode-accent-darken: #1E40AF;
    --mode-accent-lighten: #3B82F6;
    --mode-section-label: rgba(147,197,253,0.7);
}

/* Chrome rules — single block, var-driven. Replaces the 6× duplicated
   .mode-{name} blocks that lived here previously. */
[class*="mode-"] .sky-nav.mud-navmenu .mud-nav-item > .mud-nav-link.active:not(.mud-nav-link-disabled) {
    background-color: var(--mode-accent-soft) !important;
    color: var(--mode-accent) !important;
}
[class*="mode-"] .sky-nav.mud-navmenu .mud-nav-item > .mud-nav-link.active .mud-nav-link-icon {
    color: var(--mode-accent) !important;
}
[class*="mode-"] .sky-mode-tab--active {
    color: var(--mode-accent-on);
}
/* Section labels: only override when a mode supplies one — Main keeps the
   default muted grey from the base .sky-nav-section rule. */
.mode-crm .sky-nav-section,
.mode-billing .sky-nav-section,
.mode-accounting .sky-nav-section,
.mode-hr .sky-nav-section,
.mode-admin .sky-nav-section,
.mode-assistent .sky-nav-section,
.mode-tech .sky-nav-section {
    color: var(--mode-section-label);
}

/* ─────────────────────────────────────────────────────────────────────
   Mode accents — content area.

   The mode color used to stop at the drawer/AppBar. We extend it into
   <MudMainContent> by remapping MudBlazor's primary palette vars to the
   active mode's accent. Anything that calls Color="Color.Primary" in a
   page (buttons, tabs, switches, chips, focus rings, progress, etc.)
   picks this up automatically — no per-page work needed.

   Scoped to .mud-main-content so chrome (AppBar/Drawer) keeps its own
   tint logic, and so dialogs/snackbars (rendered outside the layout
   tree) keep their semantic colors.

   Excludes .mode-main on purpose: Main mode == default MudBlazor blue,
   so there's nothing to remap and we avoid restyling a page that's
   already correct. Also excludes .mode-admin since the "accent" there
   is near-white and would kill button contrast in light theme.
   ───────────────────────────────────────────────────────────────────── */
.mode-crm .mud-main-content,
.mode-billing .mud-main-content,
.mode-accounting .mud-main-content,
.mode-hr .mud-main-content,
.mode-assistent .mud-main-content,
.mode-tech .mud-main-content {
    --mud-palette-primary: var(--mode-accent);
    --mud-palette-primary-rgb: var(--mode-accent-rgb);
    --mud-palette-primary-darken: var(--mode-accent-darken);
    --mud-palette-primary-lighten: var(--mode-accent-lighten);
    --mud-palette-primary-hover: var(--mode-accent-soft);
    --mud-palette-primary-text: #FFFFFF;
}

/* Page-header accent bar — used by <SkyPageHeader>. Opt-in: pages that
   want the mode color on their H1 wrap it in this class. */
.sky-page-title {
    border-left: 3px solid var(--mode-accent, var(--mud-palette-primary));
    padding-left: 12px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.sky-page-title .sky-page-title-icon {
    color: var(--mode-accent, var(--mud-palette-primary));
}

/* ─────────────────────────────────────────────────────────────────────
   Mode tint — content surfaces.

   The Color.Primary remap above colored *interactive* elements. This
   block tints the *passive* surfaces too: the page background gets a
   subtle mode wash, and every MudPaper/MudCard inside the work area
   shifts toward the mode hue. Net effect: the entire workspace reads
   as "you are in CRM/Billing/etc." even when no buttons are visible.

   color-mix() is computed against the active theme's --mud-palette-*
   so it Just Works in both light and dark mode — no hardcoded hexes
   per (mode, theme) combination.

   Excluded: .mode-main (default already correct) and .mode-admin (the
   accent is near-white, which would wash the bg flat in light theme).
   ───────────────────────────────────────────────────────────────────── */

.mode-crm .mud-main-content,
.mode-billing .mud-main-content,
.mode-accounting .mud-main-content,
.mode-hr .mud-main-content,
.mode-assistent .mud-main-content,
.mode-tech .mud-main-content {
    background: color-mix(in srgb, var(--mud-palette-background) 90%, var(--mode-accent) 10%) !important;
}

/* Tint MudPaper/MudCard surfaces inside the work area — kanban columns,
   filter cards, expansion panels, dialogs (when they happen to render
   inline), data grids. Excludes AppBar/Drawer/Menu so chrome surfaces
   keep the cleaner palette. The 12% blend is strong enough to read on
   both light and dark themes without hurting contrast on text inside. */
.mode-crm .mud-main-content .mud-paper:not(.mud-appbar):not(.mud-drawer):not(.mud-menu),
.mode-billing .mud-main-content .mud-paper:not(.mud-appbar):not(.mud-drawer):not(.mud-menu),
.mode-accounting .mud-main-content .mud-paper:not(.mud-appbar):not(.mud-drawer):not(.mud-menu),
.mode-hr .mud-main-content .mud-paper:not(.mud-appbar):not(.mud-drawer):not(.mud-menu),
.mode-assistent .mud-main-content .mud-paper:not(.mud-appbar):not(.mud-drawer):not(.mud-menu) {
    background-color: color-mix(in srgb, var(--mud-palette-surface) 88%, var(--mode-accent) 12%);
}

/* Hairline mode-color border under the AppBar so chrome and content read
   as one tinted system instead of two unrelated layers. */
.mode-crm .mud-main-content,
.mode-billing .mud-main-content,
.mode-accounting .mud-main-content,
.mode-hr .mud-main-content,
.mode-assistent .mud-main-content {
    box-shadow: inset 0 2px 0 0 var(--mode-accent);
}

/* ─── Voice capture ────────────────────────────────────────────────
   Big circular mic button for /assistent/voice/*. Colour per state,
   scale driven by the live meter level from voice-recorder.js. Chat
   transcript uses MudBlazor surface tokens so it follows mode colour.
*/
.sky-voice-circle {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    cursor: pointer;
    transition: transform 120ms ease-in-out, background-color 200ms ease;
    background: var(--mode-accent);
    will-change: transform;
    user-select: none;
    border: none;
    outline: none;
}
.sky-voice-circle--idle      { background: var(--mode-accent); }
.sky-voice-circle--bot-speak { background: #16A34A; }
.sky-voice-circle--listen    { background: #2563EB; }
.sky-voice-circle--hearing   { background: #DC2626; }
.sky-voice-circle--upload    { background: #6B7280; }
.sky-voice-circle--recording {
    background: #DC2626;
    animation: sky-voice-rec-pulse 1.4s ease-in-out infinite;
}
.sky-voice-circle--disabled { background: #9CA3AF; cursor: not-allowed; }

@keyframes sky-voice-rec-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.6); }
    50%      { box-shadow: 0 0 0 14px rgba(220, 38, 38, 0); }
}

.sky-voice-caption {
    text-align: center;
    margin-top: 12px;
    font-size: 0.9rem;
    opacity: 0.75;
}

.sky-voice-stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 24px 0;
}

.sky-voice-bubble {
    padding: 10px 14px;
    border-radius: 14px;
    max-width: 80%;
    white-space: pre-wrap;
}
.sky-voice-bubble--bot {
    background: color-mix(in srgb, var(--mud-palette-surface) 70%, var(--mode-accent) 30%);
    align-self: flex-start;
}
.sky-voice-bubble--user {
    background: color-mix(in srgb, var(--mud-palette-primary) 18%, transparent);
    align-self: flex-end;
    text-align: right;
}

.sky-voice-submitted-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    margin: 2px 4px 2px 0;
    border-radius: 999px;
    background: color-mix(in srgb, #16A34A 18%, transparent);
    color: #166534;
    font-size: 0.85rem;
}

/* CRM email composer — Quill rich-text body. Keep height bounded so the editor
   sits naturally inside the deal-detail tab and the send-as-PDF switch stays
   in view. */
.crm-email-body-editor .ql-container {
    min-height: 240px;
    font-family: inherit;
    font-size: 0.95rem;
}
.crm-email-body-editor .ql-toolbar {
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
}

/* Anonymous booking page — /public/book/{token}. Minimal centered shell. */
.public-booking-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: #f5f5f7;
}
.public-booking-header {
    padding: 16px 24px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    background: #fff;
}
.public-booking-brand {
    font-weight: 600;
    letter-spacing: 0.08em;
    color: #1f2937;
}
.public-booking-main {
    flex: 1;
    display: flex;
    justify-content: center;
    padding: 32px 16px;
}
.public-booking-card {
    width: 100%;
    max-width: 720px;
    background: #fff;
    padding: 24px 28px;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08);
}
.public-booking-slots {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
