/* ═══════════════════════════════════════════════════════════════
   FlowiLead Dashboard — v4 Overlay (Echo identity)
   ───────────────────────────────────────────────────────────────
   This sheet loads AFTER dashboard.css + overview-v5.css and:
     1) Remaps legacy CSS vars (--accent, --green, etc.) to the
        new mint/Echo palette from tokens.css.
     2) Refines typography, spacing and motion at key surfaces.
     3) Adds the ambient film-grain overlay.
     4) Tightens sidebar + topbar to the editorial direction.

   Zero structural changes to legacy markup. Reversible by
   removing the <link> in app.html.
   ═══════════════════════════════════════════════════════════════ */

:root {
    /* ── Legacy vars REMAPPED to v4 (Echo mint identity) ── */
    --bg-dark:         #050507;
    --bg-surface:      #09090B;
    --bg-card:         #131316;
    --bg-card-hover:   #18181B;
    --bg-card-active:  #1F1F23;
    --bg-input:        #131316;
    --bg-elevated:     #18181B;
    --border:          rgba(255,255,255,0.08);
    --border-light:    rgba(255,255,255,0.05);
    --border-focus:    #00E6A0;
    --text-primary:    #FAFAFA;
    --text-secondary:  #A1A1AA;
    --text-muted:      #71717A;
    --text-dim:        #52525B;

    /* The accent IS the voice — mint */
    --accent:          #00E6A0;
    --accent-hover:    #00FFB8;
    --accent-glow:     rgba(0, 230, 160, 0.20);
    --accent-soft:     rgba(0, 230, 160, 0.10);
    --accent-bright:   #4DFFC2;

    /* States */
    --green:           #10B981;
    --green-soft:      rgba(16, 185, 129, 0.12);
    --green-dim:       rgba(16, 185, 129, 0.06);
    --red:             #F43F5E;
    --red-soft:        rgba(244, 63, 94, 0.10);
    --blue:            #6366F1;   /* indigo — replaces legacy blue */
    --blue-soft:       rgba(99, 102, 241, 0.12);
    --yellow:          #F59E0B;
    --yellow-soft:     rgba(245, 158, 11, 0.10);
    --purple:          #6366F1;   /* indigo */
    --purple-soft:     rgba(99, 102, 241, 0.10);

    /* New gradients — voice-driven */
    --grad-flow:       linear-gradient(135deg, #4DFFC2 0%, #00E6A0 60%, #818CF8 110%);
    --grad-cta:        linear-gradient(135deg, #00FFB8, #00E6A0);

    /* Shadows tightened */
    --shadow-sm:       0 1px 3px rgba(0,0,0,0.40);
    --shadow:          0 4px 16px rgba(0,0,0,0.45);
    --shadow-lg:       0 16px 40px rgba(0,0,0,0.55);
    --shadow-glow:     0 0 0 1px rgba(0,230,160,0.20), 0 0 24px rgba(0,230,160,0.18);

    /* Transitions slightly faster — Linear-style */
    --transition-fast:   120ms cubic-bezier(0.16, 1, 0.3, 1);
    --transition:        200ms cubic-bezier(0.16, 1, 0.3, 1);
    --transition-spring: 320ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ─────────────────────────────────────────────────────────────
   GLOBAL — film grain + better typography
   ───────────────────────────────────────────────────────────── */

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
}

/* Ambient film grain on top of the entire app — fixed, doesn't scroll */
body::after {
    content: "";
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.32 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.42'/%3E%3C/svg%3E");
    background-size: 180px 180px;
    opacity: 0.18;
    mix-blend-mode: overlay;
    pointer-events: none;
    z-index: 9999;
}

/* Better scrollbars (subtle, dark) */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.06);
    border: 2px solid var(--bg-dark);
    border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.12); }

/* ─────────────────────────────────────────────────────────────
   SIDEBAR — refined editorial
   ───────────────────────────────────────────────────────────── */

.sidebar {
    background: var(--bg-surface);
    border-right: 1px solid var(--border-light);
}

.sidebar__brand {
    font-family: 'Geist', 'Inter', sans-serif;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.sidebar__workspace-plan {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    color: var(--text-muted);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.sidebar__group-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    color: var(--text-dim);
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.sidebar__link {
    border-radius: 6px;
    transition: background var(--transition-fast), color var(--transition-fast);
}
.sidebar__link:hover {
    background: rgba(255,255,255,0.04);
}
.sidebar__link.active {
    background: var(--accent-soft);
    color: var(--accent-bright);
}
.sidebar__link.active::before {
    background: var(--accent);
    box-shadow: 0 0 8px var(--accent);
}

/* ─────────────────────────────────────────────────────────────
   TOPBAR — minimal editorial header
   ───────────────────────────────────────────────────────────── */

.topbar {
    background: rgba(5, 5, 7, 0.72);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-light);
}

.topbar__title {
    font-family: 'Geist', 'Inter', sans-serif;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.topbar__search {
    background: var(--bg-card);
    border-color: var(--border);
}
.topbar__search:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}

/* ─────────────────────────────────────────────────────────────
   CARDS — tighter borders, mono numbers, refined hover
   ───────────────────────────────────────────────────────────── */

.card,
.stat-card,
.kanban-card,
.activity-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    box-shadow: none;
    transition: border-color var(--transition-fast), background var(--transition-fast);
}

.card:hover,
.stat-card:hover {
    border-color: rgba(255,255,255,0.14);
    background: var(--bg-card);
    box-shadow: 0 12px 32px rgba(0,0,0,0.30);
}

/* Stat card numbers in mono + tabular */
.stat-card__value,
.stat-card__number,
.metric-value {
    font-family: 'Geist', 'Inter', sans-serif;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.03em;
}

.stat-card__change--up   { color: var(--green); }
.stat-card__change--down { color: var(--red); }

/* ─────────────────────────────────────────────────────────────
   BUTTONS — accent = mint
   ───────────────────────────────────────────────────────────── */

.btn--primary,
.button--primary {
    background: var(--accent);
    color: #050507;
    border-color: var(--accent);
    font-weight: 500;
    transition: background var(--transition-fast), box-shadow var(--transition-fast);
}
.btn--primary:hover,
.button--primary:hover {
    background: var(--accent-hover);
    box-shadow: var(--shadow-glow);
}

/* ─────────────────────────────────────────────────────────────
   BADGES & PILLS
   ───────────────────────────────────────────────────────────── */

.badge,
.tag,
.chip {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* ─────────────────────────────────────────────────────────────
   PAGE HEADERS — editorial bigger
   ───────────────────────────────────────────────────────────── */

.page-header__title,
.page-content h1 {
    font-family: 'Geist', 'Inter', sans-serif;
    font-weight: 700;
    letter-spacing: -0.03em;
}

/* ─────────────────────────────────────────────────────────────
   OVERVIEW — brand pillars to use new gradient
   ───────────────────────────────────────────────────────────── */

.brand-pillar {
    background: var(--bg-card);
    border-color: var(--border);
}
.brand-pillar::before {
    background: var(--accent);
}
.brand-pillar:hover {
    border-color: rgba(0, 230, 160, 0.30);
}
.brand-pillar__value {
    background: linear-gradient(180deg, var(--accent-bright), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

/* Demo banner */
.demo-banner {
    background: linear-gradient(135deg, rgba(0,230,160,0.10), rgba(99,102,241,0.06));
    border: 1px solid rgba(0,230,160,0.20);
}
.demo-banner__icon { background: var(--accent); }

/* ─────────────────────────────────────────────────────────────
   ACTIVITY FEED — colored dots use new palette
   ───────────────────────────────────────────────────────────── */

.activity-item__dot[data-type="lead_created"]   { background: linear-gradient(135deg, #4DFFC2, #00E6A0); }
.activity-item__dot[data-type="lead_contacted"] { background: linear-gradient(135deg, #00E6A0, #818CF8); }
.activity-item__dot[data-type="lead_won"]       { background: #00E6A0; box-shadow: 0 0 0 3px rgba(0,230,160,0.20); }
.activity-item__dot[data-type="followup_sent"]  { background: #6366F1; }

/* ─────────────────────────────────────────────────────────────
   KANBAN — refined
   ───────────────────────────────────────────────────────────── */

.kanban__column {
    background: var(--bg-card);
    border: 1px solid var(--border);
}
.kanban__body.drag-over {
    background: var(--accent-soft);
    border-color: var(--accent);
}
.kanban-card.dragging {
    border-color: var(--accent);
    box-shadow: var(--shadow-glow);
}

/* ─────────────────────────────────────────────────────────────
   COMMAND PALETTE — editorial type
   ───────────────────────────────────────────────────────────── */

.command-palette__input {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    letter-spacing: -0.01em;
}
.command-palette__shortcut kbd {
    font-family: 'JetBrains Mono', monospace;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    color: var(--text-muted);
}

/* ─────────────────────────────────────────────────────────────
   PROGRESS BARS — mint default
   ───────────────────────────────────────────────────────────── */

.progress-bar__fill,
.progress-bar__fill--accent { background: var(--accent); }
.progress-bar__fill--green  { background: var(--green); }
.progress-bar__fill--red    { background: var(--red); }
.progress-bar__fill--blue   { background: var(--blue); }

/* ─────────────────────────────────────────────────────────────
   STATUS DOTS — refined glow
   ───────────────────────────────────────────────────────────── */

.status-dot--online {
    background: var(--green);
    box-shadow: 0 0 0 3px rgba(16,185,129,0.20);
}
.status-dot--offline {
    background: var(--text-muted);
    box-shadow: none;
}
.status-dot--checking {
    background: var(--yellow);
    animation: fl-live-dot 1.8s ease-out infinite;
}

/* ─────────────────────────────────────────────────────────────
   TOASTS — refined
   ───────────────────────────────────────────────────────────── */

.toast {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
}
.toast--success { border-left: 3px solid var(--green); }
.toast--error   { border-left: 3px solid var(--red); }
.toast--info    { border-left: 3px solid var(--accent); }
.toast--warn    { border-left: 3px solid var(--yellow); }

/* ─────────────────────────────────────────────────────────────
   FORMS — input focus = mint ring
   ───────────────────────────────────────────────────────────── */

input[type="text"],
input[type="email"],
input[type="number"],
input[type="password"],
input[type="tel"],
input[type="search"],
textarea,
select {
    background: var(--bg-input);
    border: 1px solid var(--border);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
input:focus,
textarea:focus,
select:focus {
    border-color: var(--accent) !important;
    outline: none;
    box-shadow: 0 0 0 3px var(--accent-soft);
}

/* ─────────────────────────────────────────────────────────────
   VOICE PAGE — flagship surface (overrides specifically)
   ───────────────────────────────────────────────────────────── */

[data-page="voice"] .page-header__title::after,
.voice-page h1::after {
    content: " ·";
    color: var(--accent);
    margin-left: 4px;
}

/* Voice live indicator helper for voice.js usage */
.voice-live-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 2px 10px;
    background: var(--accent-soft);
    border: 1px solid rgba(0,230,160,0.30);
    border-radius: 9999px;
    font: 600 10px/1 'JetBrains Mono', monospace;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent-bright);
}
.voice-live-pill::before {
    content: "";
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--accent);
    animation: fl-live-dot 1.8s ease-out infinite;
}

/* ─────────────────────────────────────────────────────────────
   LOGIN SCREEN — editorial refinement
   ───────────────────────────────────────────────────────────── */

#loginContainer .login-card,
.login-container .login-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
}
.login-container h1,
.login-card h1 {
    font-family: 'Geist', 'Inter', sans-serif;
    font-weight: 700;
    letter-spacing: -0.03em;
}

/* ─────────────────────────────────────────────────────────────
   TABLES — refined
   ───────────────────────────────────────────────────────────── */

.data-table th,
table th {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
}
.data-table td,
table td {
    border-bottom-color: var(--border-light);
}

/* Mono numbers anywhere they appear */
.num, .number, [data-mono] {
    font-family: 'JetBrains Mono', monospace;
    font-variant-numeric: tabular-nums;
}


/* ═══════════════════════════════════════════════════════════════
   SIDEBAR — v4 enhancements (flagship + live dot + user drawer)
   ═══════════════════════════════════════════════════════════════ */

/* Flagship link (Voz IA) — subtle mint inner glow */
.sidebar__link--flagship {
    position: relative;
}
.sidebar__link--flagship::after {
    content: "";
    position: absolute;
    top: 0; bottom: 0; right: 0;
    width: 2px;
    background: var(--accent);
    opacity: 0;
    transition: opacity 200ms ease-out;
    border-radius: 9999px;
}
.sidebar__link--flagship:hover::after,
.sidebar__link--flagship.active::after { opacity: 0.6; }

/* Live dot on voice link */
.sidebar__live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    margin-left: auto;
    flex-shrink: 0;
    box-shadow: 0 0 0 0 rgba(0, 230, 160, 0.55);
    animation: fl-live-dot 1.8s ease-out infinite;
}

/* User chip + drawer */
.sidebar__user-wrap {
    position: relative;
    margin-bottom: 8px;
}
.sidebar__user {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 8px 10px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 8px;
    color: inherit;
    cursor: pointer;
    text-align: left;
    transition: background 120ms ease-out, border-color 120ms ease-out;
}
.sidebar__user:hover {
    background: var(--bg-card-hover);
    border-color: var(--border);
}
.sidebar__user-chevron {
    margin-left: auto;
    color: var(--text-muted);
    transition: transform 200ms ease-out;
    flex-shrink: 0;
}
.sidebar__user[aria-expanded="true"] .sidebar__user-chevron {
    transform: rotate(180deg);
}
.sidebar__user-name {
    font: 600 13px/1.1 'Inter', sans-serif;
    color: var(--text-primary);
    display: block;
}
.sidebar__user-role {
    font: 500 10px/1 'JetBrains Mono', monospace;
    color: var(--text-muted);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    display: block;
    margin-top: 2px;
}

/* User drawer */
.sidebar__user-drawer {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 0;
    right: 0;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 6px;
    box-shadow: 0 24px 48px rgba(0,0,0,0.55), 0 0 0 1px rgba(255,255,255,0.04);
    z-index: 50;
    animation: fl-fade-in 120ms ease-out;
}
.sidebar__user-drawer[hidden] { display: none; }
.sidebar__user-drawer__section {
    padding: 6px 0;
    border-bottom: 1px solid var(--border-light);
}
.sidebar__user-drawer__section:last-child { border-bottom: 0; }
.sidebar__user-drawer__label {
    font: 600 9px/1 'JetBrains Mono', monospace;
    color: var(--text-dim);
    letter-spacing: 0.14em;
    padding: 4px 10px 8px;
    text-transform: uppercase;
}
.sidebar__user-drawer__item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 8px 10px;
    background: transparent;
    border: 0;
    border-radius: 6px;
    color: var(--text-primary);
    font: 500 13px/1 'Inter', sans-serif;
    cursor: pointer;
    text-align: left;
    text-decoration: none;
    transition: background 120ms ease-out, color 120ms ease-out;
}
.sidebar__user-drawer__item:hover {
    background: var(--bg-card-hover);
}
.sidebar__user-drawer__item svg {
    flex-shrink: 0;
    color: var(--text-muted);
}
.sidebar__user-drawer__item--danger {
    color: var(--red);
}
.sidebar__user-drawer__item--danger:hover {
    background: var(--red-soft);
    color: var(--red);
}
.sidebar__user-drawer__item--danger svg { color: var(--red); }
.sidebar__user-drawer__kbd {
    margin-left: auto;
    font: 600 10px/1 'JetBrains Mono', monospace;
    color: var(--text-muted);
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 3px 6px;
    border-radius: 4px;
}


/* ═══════════════════════════════════════════════════════════════
   AGENDA · CITAS PAGE
   ═══════════════════════════════════════════════════════════════ */

.agenda__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px;
    margin-bottom: 32px;
}
.agenda__header__actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* Stats strip */
.agenda__stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 24px;
    padding: 16px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
}
@media (max-width: 700px) {
    .agenda__stats { grid-template-columns: repeat(2, 1fr); }
}
.agenda__stat__num {
    font: 700 28px/1 'Geist', 'Inter', sans-serif;
    color: var(--text-primary);
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.025em;
}
.agenda__stat__lbl {
    font: 500 11px/1 'JetBrains Mono', monospace;
    color: var(--text-muted);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-top: 4px;
}

/* Layout */
.agenda__layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
}
@media (max-width: 1100px) {
    .agenda__layout { grid-template-columns: 1fr; }
}

/* Calendar */
.agenda__cal {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
}
.agenda__cal__dows {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border);
}
.agenda__cal__dow {
    padding: 10px 8px;
    text-align: center;
    font: 600 10px/1 'JetBrains Mono', monospace;
    color: var(--text-muted);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.agenda__cal__grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    grid-auto-rows: minmax(96px, auto);
}
.agenda__cal__cell {
    border-right: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
    padding: 8px 8px 10px;
    background: var(--bg-card);
    position: relative;
    min-height: 96px;
    transition: background 120ms ease-out;
}
.agenda__cal__cell:hover { background: var(--bg-card-hover); }
.agenda__cal__cell--muted { background: rgba(255,255,255,0.01); }
.agenda__cal__cell--muted .agenda__cal__cell__num { color: var(--text-dim); }
.agenda__cal__cell--today { background: rgba(0,230,160,0.06); }
.agenda__cal__cell--today .agenda__cal__cell__num {
    color: var(--accent-bright);
    font-weight: 700;
}
.agenda__cal__cell__num {
    font: 600 13px/1 'JetBrains Mono', monospace;
    color: var(--text-primary);
    margin-bottom: 6px;
    font-variant-numeric: tabular-nums;
}
.agenda__cal__pills {
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.agenda__cal__pill {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 3px 6px;
    border-radius: 4px;
    font: 500 10px/1.3 'Inter', sans-serif;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.agenda__cal__pill__time {
    font-family: 'JetBrains Mono', monospace;
    flex-shrink: 0;
    font-weight: 600;
}
.agenda__cal__pill__title {
    overflow: hidden;
    text-overflow: ellipsis;
}
.agenda__cal__more {
    margin-top: 3px;
    font: 500 10px/1 'JetBrains Mono', monospace;
    color: var(--text-muted);
    text-align: left;
}

/* Upcoming list (right column) */
.agenda__upcoming {
    display: flex;
    flex-direction: column;
    margin-top: 16px;
}
.agenda__upcoming__item {
    display: grid;
    grid-template-columns: 56px 1fr auto;
    align-items: center;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-light);
}
.agenda__upcoming__item:last-child { border-bottom: 0; }
.agenda__upcoming__date {
    text-align: center;
    padding: 6px 0;
    background: var(--bg-elevated);
    border-radius: 8px;
    border: 1px solid var(--border-light);
}
.agenda__upcoming__date__d {
    font: 700 20px/1 'Geist', 'Inter', sans-serif;
    color: var(--text-primary);
    font-variant-numeric: tabular-nums;
}
.agenda__upcoming__date__m {
    font: 600 10px/1 'JetBrains Mono', monospace;
    color: var(--text-muted);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-top: 2px;
}
.agenda__upcoming__title {
    font: 600 14px/1.3 'Inter', sans-serif;
    color: var(--text-primary);
}
.agenda__upcoming__meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font: 400 12px/1 'Inter', sans-serif;
    color: var(--text-muted);
    margin-top: 4px;
}
.agenda__upcoming__status {
    padding: 4px 8px;
    border-radius: 9999px;
    font: 600 10px/1 'JetBrains Mono', monospace;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
}


/* ═══════════════════════════════════════════════════════════════
   INTEGRATIONS PAGE
   ═══════════════════════════════════════════════════════════════ */

.integ__header { margin-bottom: 24px; }

.integ__summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 32px;
    padding: 18px 22px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
}
@media (max-width: 700px) {
    .integ__summary { grid-template-columns: 1fr; }
}
.integ__sum__num {
    font: 700 28px/1 'Geist', 'Inter', sans-serif;
    color: var(--text-primary);
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.025em;
}
.integ__sum__lbl {
    font: 500 11px/1 'JetBrains Mono', monospace;
    color: var(--text-muted);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-top: 4px;
}

.integ-section { margin-bottom: 40px; }
.integ-section__header { margin-bottom: 18px; }

.integ-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 14px;
}

.integ-card {
    display: flex;
    flex-direction: column;
    padding: 20px 22px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: border-color 120ms ease-out, transform 120ms ease-out;
}
.integ-card:hover {
    border-color: rgba(255,255,255,0.14);
    transform: translateY(-2px);
}
.integ-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}
.integ-card__icon {
    width: 40px; height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-size: 20px;
}
.integ-card__name {
    font: 600 16px/1.2 'Geist', 'Inter', sans-serif;
    color: var(--text-primary);
    margin: 0 0 6px;
    letter-spacing: -0.02em;
}
.integ-card__desc {
    font: 400 13px/1.5 'Inter', sans-serif;
    color: var(--text-muted);
    margin: 0;
    min-height: 56px;
}
.integ-card__foot {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid var(--border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}
.integ-card__cat {
    font: 600 9px/1 'JetBrains Mono', monospace;
    color: var(--text-muted);
    letter-spacing: 0.12em;
}

/* Connected list */
.integ-conn {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    margin-top: 16px;
}
.integ-conn__head,
.integ-conn__row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.4fr auto;
    align-items: center;
    gap: 14px;
    padding: 12px 18px;
    border-bottom: 1px solid var(--border-light);
}
.integ-conn__head {
    background: var(--bg-elevated);
    font: 600 10px/1 'JetBrains Mono', monospace;
    color: var(--text-muted);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.integ-conn__row:last-child { border-bottom: 0; }
.integ-conn__row:hover { background: var(--bg-card-hover); }
.integ-conn__name {
    font: 600 14px/1.2 'Inter', sans-serif;
    color: var(--text-primary);
}
.integ-conn__type,
.integ-conn__last {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    color: var(--text-muted);
}
.integ-conn__status {
    font: 600 11px/1 'JetBrains Mono', monospace;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}


/* ═══════════════════════════════════════════════════════════════
   INTEGRATIONS — page header, filters, detail modal
   ═══════════════════════════════════════════════════════════════ */

.integ__h1 {
    font: 700 28px/1.1 'Geist', 'Inter', sans-serif;
    margin: 8px 0 4px;
    letter-spacing: -0.025em;
    color: var(--text-primary);
}
.integ__h2 {
    font: 700 22px/1.1 'Geist', 'Inter', sans-serif;
    margin: 8px 0 0;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}
.integ__lead {
    margin: 0;
    max-width: 640px;
    line-height: 1.55;
}

.integ__filters {
    display: inline-flex;
    gap: 4px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 9999px;
    padding: 4px;
    margin: 16px 0 24px;
}
.integ__filter {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    font: 500 12px/1 'Inter', sans-serif;
    color: var(--text-muted);
    background: transparent;
    border: 0;
    border-radius: 9999px;
    cursor: pointer;
    transition: background 120ms ease-out, color 120ms ease-out;
}
.integ__filter:hover { color: var(--text-primary); }
.integ__filter--active {
    background: var(--bg-card);
    color: var(--text-primary);
    box-shadow: 0 0 0 1px var(--border);
}
.integ__filter__count {
    font-size: 10px;
    color: var(--text-muted);
    padding: 2px 6px;
    background: rgba(255,255,255,0.04);
    border-radius: 9999px;
}

/* Detail modal content */
.integ-detail {
    display: flex;
    flex-direction: column;
    gap: 24px;
    max-width: 740px;
}
.integ-detail__head {
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 16px;
    align-items: flex-start;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-light);
}
.integ-detail__icon {
    width: 56px; height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    font-size: 28px;
}
.integ-detail__name {
    font: 700 22px/1.1 'Geist', 'Inter', sans-serif;
    margin: 0 0 6px;
    color: var(--text-primary);
    letter-spacing: -0.025em;
}
.integ-detail__desc {
    font: 400 14px/1.5 'Inter', sans-serif;
    color: var(--text-muted);
    margin: 0;
}
.integ-detail__section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.integ-detail__steps {
    margin: 0;
    padding-left: 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    color: var(--text-default);
    line-height: 1.5;
    font-size: 14px;
}
.integ-detail__steps li::marker {
    color: var(--accent);
    font-family: 'JetBrains Mono', monospace;
    font-weight: 600;
}

.integ-detail__endpoint {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
}
.integ-detail__endpoint code {
    font: 500 13px/1.4 'JetBrains Mono', monospace;
    color: var(--accent-bright);
    overflow-x: auto;
    flex: 1;
    white-space: nowrap;
}

.integ-detail__code-block {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    margin-top: 12px;
}
.integ-detail__code-block__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 14px;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-light);
}
.integ-detail__code-block pre {
    margin: 0;
    padding: 14px;
    overflow-x: auto;
    font: 500 12px/1.5 'JetBrains Mono', monospace;
    color: var(--text-default);
}
.integ-detail__code-block code {
    color: inherit;
    white-space: pre;
}

.integ-detail__oauth {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 20px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 10px;
}
.integ-detail__oauth__provider {
    font: 600 13px/1.4 'Inter', sans-serif;
    color: var(--text-primary);
    margin-bottom: 6px;
}
.integ-detail__oauth__scopes {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    align-items: center;
    color: var(--text-muted);
    font-size: 12px;
}

.integ-detail__form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.integ-detail__field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.integ-detail__field label {
    font: 500 13px/1 'Inter', sans-serif;
    color: var(--text-primary);
}
.integ-detail__field input,
.integ-detail__field select,
.integ-detail__field textarea {
    width: 100%;
    padding: 10px 12px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-primary);
    font: 400 14px/1.4 'Inter', sans-serif;
}
.integ-detail__field input[type="password"],
.integ-detail__field input[type="tel"],
.integ-detail__field input[type="email"] {
    font-family: 'JetBrains Mono', monospace;
}
.integ-detail__field__hint {
    margin: 0;
    font: 400 12px/1.4 'Inter', sans-serif;
    color: var(--text-muted);
}

/* Toggle switch */
.integ-detail__toggle {
    display: inline-block;
    position: relative;
    width: 40px;
    height: 22px;
    cursor: pointer;
}
.integ-detail__toggle input {
    opacity: 0; width: 0; height: 0;
}
.integ-detail__toggle__slider {
    position: absolute;
    inset: 0;
    background: var(--bg-card-hover);
    border: 1px solid var(--border);
    border-radius: 9999px;
    transition: background 120ms ease-out;
}
.integ-detail__toggle__slider::before {
    content: "";
    position: absolute;
    width: 16px; height: 16px;
    left: 2px; top: 2px;
    background: var(--text-secondary);
    border-radius: 50%;
    transition: transform 200ms cubic-bezier(0.16, 1, 0.3, 1), background 120ms ease-out;
}
.integ-detail__toggle input:checked + .integ-detail__toggle__slider {
    background: var(--accent-soft);
    border-color: var(--accent);
}
.integ-detail__toggle input:checked + .integ-detail__toggle__slider::before {
    transform: translateX(18px);
    background: var(--accent);
}

.integ-detail__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid var(--border-light);
    flex-wrap: wrap;
}


/* ═══════════════════════════════════════════════════════════════
   AGENDA — view switcher, week view, list view, day modal
   ═══════════════════════════════════════════════════════════════ */

.agenda__header__eyebrow {
    display: flex;
    align-items: center;
    gap: 12px;
}
.agenda__clock {
    font: 600 11px/1 'JetBrains Mono', monospace;
    color: var(--accent-bright);
    padding: 2px 8px;
    background: var(--accent-soft);
    border-radius: 4px;
    letter-spacing: 0.06em;
}
.agenda__header__h1 {
    font: 700 28px/1.05 'Geist', 'Inter', sans-serif;
    margin: 8px 0 0;
    letter-spacing: -0.025em;
    color: var(--text-primary);
}
.agenda__header__actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.agenda__view-switch {
    display: inline-flex;
    gap: 2px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 9999px;
    padding: 3px;
}
.agenda__view-tab {
    padding: 5px 14px;
    font: 500 12px/1 'Inter', sans-serif;
    color: var(--text-muted);
    background: transparent;
    border: 0;
    border-radius: 9999px;
    cursor: pointer;
    transition: background 120ms ease-out, color 120ms ease-out;
}
.agenda__view-tab:hover { color: var(--text-primary); }
.agenda__view-tab--active {
    background: var(--bg-card);
    color: var(--accent-bright);
    box-shadow: 0 0 0 1px var(--accent-soft);
}

.agenda__nav {
    display: inline-flex;
    gap: 4px;
    align-items: center;
}

/* Make month cells smaller and clickable */
.agenda__cal__cell {
    display: flex;
    flex-direction: column;
    text-align: left;
    border: 0;
    border-right: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
    padding: 6px 6px 8px;
    background: var(--bg-card);
    cursor: pointer;
    min-height: 72px;
    transition: background 120ms ease-out;
}
.agenda__cal__cell__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4px;
}
.agenda__cal__cell__today-badge {
    font: 700 8px/1 'JetBrains Mono', monospace;
    color: var(--accent-fg, #050507);
    background: var(--accent);
    padding: 2px 5px;
    border-radius: 3px;
    letter-spacing: 0.1em;
}
.agenda__cal__pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 5px;
    border-radius: 3px;
    font: 500 10px/1.2 'Inter', sans-serif;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    width: 100%;
    box-sizing: border-box;
}
.agenda__cal__pill__dot {
    width: 4px; height: 4px;
    border-radius: 50%;
    flex-shrink: 0;
}
.agenda__cal__pill__time {
    font: 600 10px/1 'JetBrains Mono', monospace;
}
.agenda__cal__more {
    margin-top: 2px;
    font: 500 9px/1 'JetBrains Mono', monospace;
    color: var(--accent);
}

/* Week view */
.agenda__week {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    margin-top: 16px;
}
@media (max-width: 900px) {
    .agenda__week { grid-template-columns: repeat(2, 1fr); }
}
.agenda__week__col {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    min-height: 240px;
    display: flex;
    flex-direction: column;
}
.agenda__week__col--today {
    border-color: var(--accent);
    box-shadow: 0 0 0 2px var(--accent-soft);
}
.agenda__week__col__head {
    padding: 8px 10px;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}
.agenda__week__col__dow {
    font: 600 10px/1 'JetBrains Mono', monospace;
    color: var(--text-muted);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.agenda__week__col__day {
    font: 700 16px/1 'Geist', 'Inter', sans-serif;
    color: var(--text-primary);
    font-variant-numeric: tabular-nums;
}
.agenda__week__col__day--today {
    color: var(--accent-bright);
}
.agenda__week__col__body {
    flex: 1;
    padding: 6px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.agenda__week__item {
    display: block;
    width: 100%;
    text-align: left;
    padding: 6px 8px;
    background: var(--bg-elevated);
    border: 0;
    border-left: 3px solid var(--accent);
    border-radius: 4px;
    cursor: pointer;
    transition: background 120ms ease-out;
}
.agenda__week__item:hover { background: var(--bg-card-hover); }
.agenda__week__item__time {
    display: block;
    font-size: 10px;
    color: var(--text-muted);
    margin-bottom: 2px;
}
.agenda__week__item__title {
    display: block;
    font: 500 12px/1.3 'Inter', sans-serif;
    color: var(--text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.agenda__week__empty {
    color: var(--text-dim);
    text-align: center;
    padding: 12px;
    font-size: 12px;
}

/* List view */
.agenda__list { margin-top: 16px; }
.agenda__list__group__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin: 24px 0 12px;
}
.agenda__list__row {
    display: grid;
    grid-template-columns: 56px auto 1fr auto auto;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    margin-bottom: 6px;
    text-align: left;
    cursor: pointer;
    transition: border-color 120ms ease-out;
    width: 100%;
}
.agenda__list__row:hover { border-color: var(--border); }
.agenda__list__date {
    text-align: center;
    padding: 6px 8px;
    background: var(--bg-elevated);
    border-radius: 6px;
}
.agenda__list__date__d {
    font: 700 20px/1 'Geist', 'Inter', sans-serif;
    color: var(--text-primary);
    font-variant-numeric: tabular-nums;
}
.agenda__list__date__m {
    font: 600 9px/1 'JetBrains Mono', monospace;
    color: var(--text-muted);
    margin-top: 2px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.agenda__list__time {
    color: var(--accent-bright);
    font-size: 13px;
}
.agenda__list__title {
    font: 600 14px/1.3 'Inter', sans-serif;
    color: var(--text-primary);
}
.agenda__list__notes {
    font: 400 12px/1.4 'Inter', sans-serif;
    color: var(--text-muted);
    margin-top: 2px;
}
.agenda__list__duration {
    color: var(--text-muted);
    font-size: 12px;
}
.agenda__list__status {
    padding: 4px 8px;
    border-radius: 9999px;
    font: 600 10px/1 'JetBrains Mono', monospace;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
}

/* Day modal */
.agenda__day-modal {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 380px;
    max-height: calc(100vh - 48px);
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: 0 24px 64px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.04);
    z-index: 80;
    overflow: hidden;
    animation: fl-modal-in 200ms ease-out;
    display: flex;
    flex-direction: column;
}
.agenda__day-modal[hidden] { display: none; }
.agenda__day-modal__inner {
    display: flex;
    flex-direction: column;
    height: 100%;
}
.agenda__day-modal__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px;
    border-bottom: 1px solid var(--border-light);
}
.agenda__day-modal__title {
    font: 700 16px/1.2 'Geist', 'Inter', sans-serif;
    margin: 6px 0 0;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    text-transform: capitalize;
}
.agenda__day-modal__body {
    overflow-y: auto;
    padding: 12px 14px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.agenda__day-modal__foot {
    padding: 12px 14px;
    border-top: 1px solid var(--border-light);
}

.agenda__day-item {
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 12px;
    padding: 10px;
    border-radius: 8px;
    background: var(--bg-card);
    border-left: 3px solid var(--accent);
}
.agenda__day-item__time {
    color: var(--accent-bright);
    font-size: 12px;
    align-self: start;
    padding-top: 2px;
}
.agenda__day-item__title {
    font: 600 13px/1.3 'Inter', sans-serif;
    color: var(--text-primary);
}
.agenda__day-item__notes {
    font: 400 12px/1.4 'Inter', sans-serif;
    color: var(--text-muted);
    margin-top: 4px;
}
.agenda__day-item__meta {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-top: 6px;
    font-size: 11px;
    color: var(--text-muted);
}


/* ═══════════════════════════════════════════════════════════════
   VOICE PAGE — Tabs + Management forms
   ═══════════════════════════════════════════════════════════════ */

.voice-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 24px;
    padding: 4px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 10px;
    width: fit-content;
}
.voice-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: transparent;
    border: 0;
    border-radius: 7px;
    color: var(--text-muted);
    font: 500 13px/1 'Inter', sans-serif;
    cursor: pointer;
    transition: background 120ms ease-out, color 120ms ease-out;
}
.voice-tab:hover { color: var(--text-primary); }
.voice-tab--active {
    background: var(--bg-card);
    color: var(--text-primary);
    box-shadow: 0 0 0 1px var(--border);
}
.voice-tab__icon {
    font-size: 14px;
    opacity: 0.85;
}

/* Management page wrapper */
.voice-mgmt {
    max-width: 880px;
}
.voice-mgmt__head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 16px;
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-light);
}
.voice-mgmt__title {
    font: 700 24px/1.1 'Geist', 'Inter', sans-serif;
    margin: 8px 0 4px;
    letter-spacing: -0.025em;
    color: var(--text-primary);
}
.voice-mgmt__sub {
    margin: 0;
    font-size: 13px;
    max-width: 540px;
}

.voice-mgmt__form {
    display: flex;
    flex-direction: column;
    gap: 28px;
}
.voice-mgmt__section {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
}
.voice-mgmt__section__title {
    padding: 14px 20px;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border-light);
    font: 600 11px/1 'JetBrains Mono', monospace;
    color: var(--text-secondary);
    letter-spacing: 0.12em;
    display: flex;
    align-items: center;
    gap: 12px;
}
.voice-mgmt__section__body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.voice-mgmt__field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.voice-mgmt__field--row {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.voice-mgmt__field label {
    font: 500 13px/1.2 'Inter', sans-serif;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.voice-mgmt__field input,
.voice-mgmt__field select,
.voice-mgmt__field textarea {
    width: 100%;
    padding: 10px 12px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-primary);
    font: 400 13px/1.4 'Inter', sans-serif;
}
.voice-mgmt__field textarea {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    line-height: 1.5;
    resize: vertical;
}
.voice-mgmt__field input[type="password"] {
    font-family: 'JetBrains Mono', monospace;
}
.voice-mgmt__field input[type="range"] {
    padding: 0;
    height: 6px;
    accent-color: var(--accent);
}
.voice-mgmt__field input:focus,
.voice-mgmt__field select:focus,
.voice-mgmt__field textarea:focus {
    border-color: var(--accent);
    outline: none;
    box-shadow: 0 0 0 3px var(--accent-soft);
}
.voice-mgmt__field__hint {
    margin: 0;
    font: 400 12px/1.4 'Inter', sans-serif;
    color: var(--text-muted);
}

/* Numbers table */
.voice-numbers {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 8px;
}
.voice-number {
    display: grid;
    grid-template-columns: 180px auto 1fr 100px auto auto;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
}
.voice-number__phone {
    font: 600 14px/1 'JetBrains Mono', monospace;
    color: var(--accent-bright);
    letter-spacing: -0.02em;
}
.voice-number__friendly {
    color: var(--text-secondary);
    font-size: 13px;
}
.voice-number__cost {
    color: var(--text-muted);
    font-size: 12px;
    text-align: right;
}
@media (max-width: 800px) {
    .voice-number { grid-template-columns: 1fr; }
    .voice-number__cost { text-align: left; }
}


/* ═══════════════════════════════════════════════════════════════
   VOICE AGENT CREATION WIZARD
   ═══════════════════════════════════════════════════════════════ */

.voice-wiz {
    max-width: 720px;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.voice-wiz__section { display: flex; flex-direction: column; gap: 12px; }

.voice-wiz__label {
    font: 600 11px/1 'JetBrains Mono', monospace;
    color: var(--accent-bright);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-light);
}

/* Use-case cards (radio buttons) */
.voice-wiz__cases {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 10px;
}
.voice-wiz__case {
    display: grid;
    grid-template-columns: 40px 1fr;
    gap: 12px;
    align-items: flex-start;
    padding: 14px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    cursor: pointer;
    transition: border-color 120ms ease-out, background 120ms ease-out;
}
.voice-wiz__case:hover {
    border-color: var(--border-strong);
}
.voice-wiz__case--selected {
    border-color: var(--accent);
    background: var(--accent-soft);
    box-shadow: 0 0 0 1px var(--accent);
}
.voice-wiz__case input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.voice-wiz__case__icon {
    font-size: 24px;
    line-height: 1;
    align-self: center;
}
.voice-wiz__case__title {
    font: 600 14px/1.2 'Inter', sans-serif;
    color: var(--text-primary);
    margin-bottom: 4px;
}
.voice-wiz__case__desc {
    font: 400 12px/1.4 'Inter', sans-serif;
    color: var(--text-muted);
}

/* Wizard form grid */
.voice-wiz__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}
.voice-wiz__grid .voice-mgmt__field:nth-child(3),
.voice-wiz__grid .voice-mgmt__field:nth-child(4) {
    grid-column: 1 / -1;
}
@media (max-width: 700px) {
    .voice-wiz__grid { grid-template-columns: 1fr; }
    .voice-wiz__grid .voice-mgmt__field:nth-child(n) { grid-column: 1; }
}

.voice-wiz__foot {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding-top: 16px;
    border-top: 1px solid var(--border-light);
}


/* ═══════════════════════════════════════════════════════════════
   SETUP PROGRESS CARD — guided onboarding
   ═══════════════════════════════════════════════════════════════ */

.fl-setup-card {
    background: linear-gradient(135deg, rgba(0,230,160,0.05), rgba(99,102,241,0.03));
    border: 1px solid rgba(0,230,160,0.20);
    border-radius: 14px;
    padding: 24px 28px;
    margin-bottom: 24px;
    transition: opacity 200ms ease-out;
    position: relative;
    overflow: hidden;
}
.fl-setup-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: var(--accent);
    box-shadow: 0 0 12px var(--accent);
}

.fl-setup-card__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}
.fl-setup-card__eyebrow {
    font: 600 10px/1 'JetBrains Mono', monospace;
    color: var(--accent-bright);
    letter-spacing: 0.12em;
    margin-bottom: 8px;
}
.fl-setup-card__title {
    font: 700 22px/1.15 'Geist', 'Inter', sans-serif;
    letter-spacing: -0.025em;
    color: var(--text-primary);
    margin: 0;
}
.fl-setup-card__actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}
.fl-setup-card__count {
    font: 600 14px/1 'JetBrains Mono', monospace;
    color: var(--text-secondary);
    padding: 6px 10px;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
    border-radius: 6px;
}
.fl-setup-card__dismiss {
    width: 28px; height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    transition: background 120ms ease-out, color 120ms ease-out;
}
.fl-setup-card__dismiss:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
}

.fl-setup-card__bar {
    height: 4px;
    width: 100%;
    background: rgba(255,255,255,0.05);
    border-radius: 9999px;
    overflow: hidden;
    margin-bottom: 16px;
}
.fl-setup-card__bar__fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-bright), var(--accent));
    border-radius: inherit;
    transition: width 600ms cubic-bezier(0.16, 1, 0.3, 1);
}

.fl-setup-card__steps {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.fl-setup__step {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-primary);
    transition: background 120ms ease-out, border-color 120ms ease-out, transform 120ms ease-out;
}
a.fl-setup__step:hover {
    background: rgba(255,255,255,0.03);
    border-color: var(--border);
    transform: translateX(2px);
}
.fl-setup__step--done {
    opacity: 0.55;
}
.fl-setup__num,
.fl-setup__check {
    flex-shrink: 0;
    width: 28px; height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font: 600 11px/1 'JetBrains Mono', monospace;
}
.fl-setup__num {
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-muted);
}
.fl-setup__check {
    background: var(--accent);
    color: #050507;
}
.fl-setup__body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.fl-setup__label {
    font: 500 14px/1.3 'Inter', sans-serif;
    color: var(--text-primary);
}
.fl-setup__step--done .fl-setup__label {
    text-decoration: line-through;
    text-decoration-color: rgba(255,255,255,0.20);
    color: var(--text-secondary);
}
.fl-setup__hint {
    font: 400 12px/1.3 'Inter', sans-serif;
    color: var(--text-muted);
}
.fl-setup__arrow {
    color: var(--accent);
    font: 600 16px/1 'JetBrains Mono', monospace;
    flex-shrink: 0;
    opacity: 0.5;
    transition: opacity 120ms ease-out, transform 120ms ease-out;
}
a.fl-setup__step:hover .fl-setup__arrow {
    opacity: 1;
    transform: translateX(2px);
}


/* ═══════════════════════════════════════════════════════════════
   USAGE CARD — plan + voice minutes + messages
   ═══════════════════════════════════════════════════════════════ */

.fl-usage-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px 22px;
    margin-bottom: 16px;
}
.fl-usage-card__header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}
.fl-usage-card__eyebrow {
    font: 600 10px/1 'JetBrains Mono', monospace;
    color: var(--text-muted);
    letter-spacing: 0.12em;
}
.fl-usage-card__plan {
    font: 700 16px/1 'Geist', 'Inter', sans-serif;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}
.fl-usage-card__meter {
    margin-bottom: 14px;
}
.fl-usage-card__meter:last-of-type { margin-bottom: 0; }
.fl-usage-card__meter__top {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 6px;
}
.fl-usage-card__meter__label {
    font: 500 12px/1 'Inter', sans-serif;
    color: var(--text-secondary);
}
.fl-usage-card__meter__val {
    font: 600 12px/1 'JetBrains Mono', monospace;
    color: var(--text-primary);
    font-variant-numeric: tabular-nums;
}
.fl-usage-card__bar {
    height: 4px;
    width: 100%;
    background: rgba(255,255,255,0.05);
    border-radius: 9999px;
    overflow: hidden;
}
.fl-usage-card__bar__fill {
    height: 100%;
    background: var(--accent);
    border-radius: inherit;
    transition: width 600ms cubic-bezier(0.16, 1, 0.3, 1);
}
