/* =============================================
   ZATELITAL OS — STANDALONE BRIEFING
   Full-screen layout with design system tokens
   ============================================= */

/* Override standalone-base container for full-screen */
body {
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
}

.container {
    display: none;
}

/* =============================================
   HEADER (full width)
   ============================================= */
.briefing-header {
    border-bottom: 1px solid var(--color-border);
    background: var(--color-surface);
}

.briefing-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
    max-width: 100%;
}

.header-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.75rem;
    border-radius: 9999px;
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    background: rgba(22, 22, 22, 0.06);
    color: rgba(22, 22, 22, 0.6);
}

.header-badge .material-icons-outlined {
    font-size: 14px;
}

.btn-close-briefing {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 1px solid var(--color-border);
    background: transparent;
    cursor: pointer;
    transition: background 0.2s;
    color: var(--color-muted);
}

.btn-close-briefing:hover {
    background: rgba(22, 22, 22, 0.04);
    color: var(--color-primary);
}

.btn-close-briefing .material-icons-outlined {
    font-size: 16px;
}

/* =============================================
   FORM FIELDS (matches admin modal design system)
   ============================================= */
.field-group {
    display: flex;
    flex-direction: column;
}

.field-label {
    display: block;
    font-family: var(--font-ibm);
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.field-input {
    width: 100%;
    background: #ffffff;
    border: 1px solid rgba(22, 22, 22, 0.1);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-family: var(--font-ibm);
    font-size: 0.875rem;
    color: var(--color-primary);
    outline: none;
    transition: border-color 0.2s;
}

.field-input:focus {
    border-color: #161616;
}

.field-input::placeholder {
    color: rgba(22, 22, 22, 0.35);
}

/* =============================================
   LEAD CAPTURE (Step 1 — centered full screen)
   ============================================= */
.briefing-fullscreen {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    animation: fadeUp 0.6s ease;
}

.lead-capture-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 10px;
    padding: 3rem 2.5rem;
    text-align: center;
    width: 100%;
    max-width: 420px;
}

.franklin-avatar-large {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--color-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.franklin-icon-large {
    font-size: 24px;
    color: #fff;
}

.lead-title {
    font-family: var(--font-alliance);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.lead-subtitle {
    font-family: var(--font-ibm);
    font-size: 0.85rem;
    color: rgba(22, 22, 22, 0.55);
    line-height: 1.65;
    max-width: 360px;
    margin: 0 auto 2rem;
}

.lead-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    text-align: left;
}

/* =============================================
   PHONE COUNTRY SELECTOR
   ============================================= */
.phone-input-wrapper {
    position: relative;
    display: flex;
    align-items: stretch;
    border: 1px solid rgba(22, 22, 22, 0.1);
    border-radius: 8px;
    background: #ffffff;
    transition: border-color 0.2s;
}

.phone-input-wrapper:focus-within {
    border-color: #161616;
}

.country-selector {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0 0.75rem;
    background: rgba(22, 22, 22, 0.02);
    border: none;
    border-right: 1px solid rgba(22, 22, 22, 0.08);
    border-radius: 7px 0 0 7px;
    cursor: pointer;
    transition: background 0.2s;
    flex-shrink: 0;
}

.country-selector:hover {
    background: rgba(22, 22, 22, 0.05);
}

.country-flag {
    display: inline-flex;
    align-items: center;
    line-height: 1;
}

.country-flag .fi {
    font-size: 0.9rem;
    border-radius: 2px;
}

.country-code {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--color-primary);
    letter-spacing: 0.02em;
}

.country-arrow {
    font-size: 16px !important;
    color: var(--color-muted);
    transition: transform 0.2s;
}

.country-selector.open .country-arrow {
    transform: rotate(180deg);
}

.phone-field {
    border: none !important;
    border-radius: 0 7px 7px 0 !important;
    flex: 1;
    min-width: 0;
}

.phone-field:focus {
    border-color: transparent !important;
}

/* Dropdown */
.country-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1), 0 2px 6px rgba(0, 0, 0, 0.05);
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: all 0.2s ease;
    overflow: hidden;
}

.country-dropdown.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.country-search-wrap {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 0.85rem;
    border-bottom: 1px solid var(--color-border);
}

.country-search-icon {
    font-size: 16px !important;
    color: var(--color-muted);
}

.country-search {
    width: 100%;
    border: none;
    outline: none;
    font-family: var(--font-ibm);
    font-size: 0.82rem;
    color: var(--color-primary);
    background: transparent;
}

.country-search::placeholder {
    color: rgba(22, 22, 22, 0.35);
}

.country-list {
    max-height: 220px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(22, 22, 22, 0.12) transparent;
}

.country-list::-webkit-scrollbar {
    width: 4px;
}

.country-list::-webkit-scrollbar-thumb {
    background: rgba(22, 22, 22, 0.12);
    border-radius: 9999px;
}

.country-option {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.55rem 0.85rem;
    cursor: pointer;
    transition: background 0.15s;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
}

.country-option:hover,
.country-option.active {
    background: rgba(22, 22, 22, 0.04);
}

.country-option .co-flag {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.country-option .co-flag .fi {
    font-size: 0.85rem;
    border-radius: 2px;
}

.country-option .co-name {
    font-family: var(--font-ibm);
    font-size: 0.82rem;
    color: var(--color-primary);
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.country-option .co-dial {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--color-muted);
    flex-shrink: 0;
}


.btn-primary {
    background: var(--color-primary);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    font-family: var(--font-ibm);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.1s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.btn-primary:hover {
    opacity: 0.85;
}

.btn-primary:active {
    transform: scale(0.98);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.btn-primary .material-icons-outlined {
    font-size: 18px;
}

/* =============================================
   CHAT (Step 2 — full screen)
   ============================================= */
.chat-container {
    display: none;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    overflow: hidden;
    animation: fadeUp 0.5s ease;
}

.chat-container.active {
    display: flex;
}

/* Split-screen layout */
.chat-split-layout {
    display: flex;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

.chat-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    transition: flex 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    min-height: 0;
    scrollbar-width: thin;
    scrollbar-color: rgba(22, 22, 22, 0.15) transparent;
}

.chat-msg {
    max-width: 720px;
    width: 100%;
}

/* Summary panel (right) */
.summary-panel {
    width: 0;
    overflow: hidden;
    opacity: 0;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1),
        opacity 0.4s ease 0.1s;
    border-left: 0 solid var(--color-border);
    display: flex;
    flex-direction: column;
}

.split-active .summary-panel {
    width: 380px;
    opacity: 1;
    border-left-width: 1px;
}

.summary-panel-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
}

.summary-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--color-border);
    font-family: var(--font-alliance);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--color-primary);
    flex-shrink: 0;
}

.summary-header .material-icons-outlined {
    font-size: 18px;
    color: var(--color-muted);
}

.summary-close-mobile {
    display: none;
    margin-left: auto;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.2rem;
    border-radius: 6px;
}

.summary-close-mobile:hover {
    background: rgba(22, 22, 22, 0.05);
}

.summary-close-mobile .material-icons-outlined {
    font-size: 18px;
    color: var(--color-muted);
}

/* Progress bar */
.summary-progress {
    height: 3px;
    background: var(--color-border);
    flex-shrink: 0;
}

.summary-progress-bar {
    height: 100%;
    width: 0%;
    background: var(--color-primary);
    border-radius: 0 3px 3px 0;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Summary content */
.summary-content {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(22, 22, 22, 0.15) transparent;
}

.summary-content::-webkit-scrollbar {
    width: 4px;
}

.summary-content::-webkit-scrollbar-thumb {
    background: rgba(22, 22, 22, 0.12);
    border-radius: 9999px;
}

/* Summary field cards */
.summary-field-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0.85rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    animation: fadeUp 0.35s ease;
}

.summary-field-card:hover {
    border-color: rgba(22, 22, 22, 0.2);
    background: var(--color-background);
}

.summary-field-card:hover .summary-field-edit {
    opacity: 1;
}

.summary-field-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(22, 22, 22, 0.04);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.summary-field-icon .material-icons-outlined {
    font-size: 16px;
    color: var(--color-muted);
}

.summary-field-body {
    flex: 1;
    min-width: 0;
}

.summary-field-label {
    font-family: var(--font-mono);
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-muted);
    margin-bottom: 0.15rem;
}

.summary-field-value {
    font-family: var(--font-ibm);
    font-size: 0.8rem;
    color: var(--color-primary);
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.summary-field-edit {
    opacity: 0;
    transition: opacity 0.2s ease;
    flex-shrink: 0;
}

.summary-field-edit .material-icons-outlined {
    font-size: 14px;
    color: var(--color-muted);
}

/* Summary empty state */
.summary-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 2rem 1rem;
    text-align: center;
    color: var(--color-muted);
}

.summary-empty .material-icons-outlined {
    font-size: 28px;
    opacity: 0.4;
}

.summary-empty p {
    font-family: var(--font-ibm);
    font-size: 0.78rem;
    opacity: 0.6;
    max-width: 200px;
}

/* Mobile summary toggle FAB */
.summary-toggle {
    position: fixed;
    bottom: 5.5rem;
    right: 1.25rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--color-primary);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 20;
    transition: transform 0.2s ease;
}

.summary-toggle:active {
    transform: scale(0.92);
}

.summary-toggle .material-icons-outlined {
    color: #fff;
    font-size: 22px;
}

.summary-toggle-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #ef4444;
    color: #fff;
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Message highlight for scroll-to-message */
.chat-msg.msg-highlight {
    animation: msgHighlight 2.5s ease;
}

@keyframes msgHighlight {
    0% {
        background: rgba(22, 22, 22, 0.08);
        border-radius: 10px;
    }

    70% {
        background: rgba(22, 22, 22, 0.04);
        border-radius: 10px;
    }

    100% {
        background: transparent;
    }
}

#chat-spacer,
#chat-spacer-bottom {
    flex-shrink: 0;
    max-width: 720px;
    width: 100%;
}

.chat-messages::-webkit-scrollbar {
    width: 5px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: rgba(22, 22, 22, 0.12);
    border-radius: 9999px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: rgba(22, 22, 22, 0.25);
}

.chat-msg {
    display: flex;
    gap: 0.75rem;
    animation: fadeUp 0.35s ease;
    align-items: flex-start;
}

.chat-msg.user {
    flex-direction: row-reverse;
}

.msg-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.msg-avatar.franklin {
    background: var(--color-primary);
}

.franklin-icon {
    font-size: 16px;
    color: #fff;
}

.msg-avatar.user-avatar {
    background: var(--color-background);
    border: 1px solid var(--color-border);
    font-family: var(--font-mono);
    font-weight: 600;
    font-size: 10px;
    color: var(--color-muted);
}

.msg-content {
    max-width: 80%;
}

.chat-msg.user .msg-content {
    text-align: right;
}

.msg-name {
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-muted);
    margin-bottom: 0.25rem;
}

.msg-bubble {
    padding: 0.85rem 1.1rem;
    border-radius: 10px;
    font-family: var(--font-ibm);
    font-size: 0.85rem;
    line-height: 1.65;
    color: var(--color-primary);
    display: inline-block;
    text-align: left;
}

.chat-msg:not(.user) .msg-bubble {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-bottom-left-radius: 3px;
}

.chat-msg.user .msg-bubble {
    background: var(--color-primary);
    color: #fff;
    border-bottom-right-radius: 3px;
}

/* Markdown inside AI bubbles */
.msg-bubble.markdown-body p {
    margin: 0 0 0.5rem;
}
.msg-bubble.markdown-body p:last-child {
    margin-bottom: 0;
}
.msg-bubble.markdown-body strong {
    font-weight: 700;
    color: inherit;
}
.msg-bubble.markdown-body em {
    font-style: italic;
}
.msg-bubble.markdown-body ul,
.msg-bubble.markdown-body ol {
    margin: 0.35rem 0 0.5rem 1.25rem;
    padding: 0;
}
.msg-bubble.markdown-body li {
    margin-bottom: 0.2rem;
}
.msg-bubble.markdown-body code {
    font-family: var(--font-mono);
    font-size: 0.8em;
    background: rgba(22, 22, 22, 0.06);
    padding: 0.1em 0.35em;
    border-radius: 4px;
}
.msg-bubble.markdown-body pre {
    background: rgba(22, 22, 22, 0.05);
    border-radius: 6px;
    padding: 0.75rem 1rem;
    overflow-x: auto;
    margin: 0.5rem 0;
}
.msg-bubble.markdown-body pre code {
    background: none;
    padding: 0;
}


/* Typing indicator */
.msg-typing {
    display: flex;
    gap: 4px;
    padding: 0.15rem 0;
}

.msg-typing span {
    width: 5px;
    height: 5px;
    background: var(--color-muted);
    border-radius: 50%;
    animation: typing 1.4s ease infinite;
}

.msg-typing span:nth-child(2) {
    animation-delay: 0.2s;
}

.msg-typing span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {

    0%,
    60%,
    100% {
        opacity: 0.3;
        transform: translateY(0);
    }

    30% {
        opacity: 1;
        transform: translateY(-3px);
    }
}

/* Multiple choice option chips */
.msg-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.5rem;
}

.option-chip {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 9999px;
    padding: 0.4rem 0.85rem;
    font-family: var(--font-ibm);
    font-size: 0.78rem;
    color: var(--color-primary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.option-chip:hover {
    border-color: var(--color-primary);
    background: rgba(22, 22, 22, 0.03);
}

.option-chip.selected {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}

.option-chip.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

.option-chip.disabled.selected {
    opacity: 0.8;
}

/* Chat input bar (pinned bottom, full width) */
.chat-input-bar {
    border-top: 1px solid var(--color-border);
    background: var(--color-surface);
    padding: 1rem 2rem;
    flex-shrink: 0;
}

.chat-input-inner {
    display: flex;
    gap: 0.75rem;
    max-width: 720px;
    margin: 0 auto;
}

.btn-send {
    background: var(--color-primary);
    border: none;
    border-radius: 8px;
    width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.1s;
    flex-shrink: 0;
}

.btn-send:hover {
    opacity: 0.85;
}

.btn-send:active {
    transform: scale(0.95);
}

.btn-send:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    transform: none;
}

.btn-send .material-icons-outlined {
    color: #fff;
    font-size: 18px;
}

/* Mic Button */
.btn-mic {
    background: transparent;
    border: 1px solid rgba(22, 22, 22, 0.1);
    border-radius: 8px;
    width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}

.btn-mic .material-icons-outlined {
    color: var(--color-secondary);
    font-size: 20px;
    transition: color 0.2s;
}

.btn-mic:hover {
    background: rgba(22, 22, 22, 0.05);
}

.btn-mic:hover .material-icons-outlined {
    color: var(--color-primary);
}

.btn-mic.recording {
    background: #fee2e2;
    border-color: #ef4444;
    animation: mic-pulse 1.5s infinite;
}

.btn-mic.recording .material-icons-outlined {
    color: #ef4444;
}

@keyframes mic-pulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.3);
    }

    50% {
        box-shadow: 0 0 0 6px rgba(239, 68, 68, 0);
    }
}

/* =============================================
   RESULTS (Step 3)
   ============================================= */
.briefing-results {
    display: none;
    flex: 1;
    overflow-y: auto;
    min-height: 0;
    animation: fadeUp 0.6s ease;
    scrollbar-width: thin;
    scrollbar-color: rgba(22, 22, 22, 0.15) transparent;
}

.briefing-results::-webkit-scrollbar {
    width: 5px;
}

.briefing-results::-webkit-scrollbar-track {
    background: transparent;
}

.briefing-results::-webkit-scrollbar-thumb {
    background: rgba(22, 22, 22, 0.12);
    border-radius: 9999px;
}

.briefing-results::-webkit-scrollbar-thumb:hover {
    background: rgba(22, 22, 22, 0.25);
}

.briefing-results.active {
    display: block;
}

.results-wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

.results-header {
    text-align: center;
    margin-bottom: 2rem;
}

.success-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(34, 197, 94, 0.08);
    border: 1px solid rgba(34, 197, 94, 0.15);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.success-icon .material-icons-outlined {
    color: #16a34a;
    font-size: 24px;
}

.results-title {
    font-family: var(--font-alliance);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 0.35rem;
}

.results-subtitle {
    font-family: var(--font-ibm);
    font-size: 0.85rem;
    color: rgba(22, 22, 22, 0.55);
}

/* Next Steps Section */
.next-steps-section {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.next-steps-section .section-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-alliance);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.next-steps-section .section-title .material-icons-outlined {
    font-size: 20px;
    color: var(--color-muted);
}

/* Objectives list (shared pattern with propuesta) */
.objectives-list {
    list-style: none;
}

.objectives-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.5rem 0;
}

.obj-num {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    background: rgba(22, 22, 22, 0.04);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 600;
    color: rgba(22, 22, 22, 0.4);
    margin-top: 2px;
}

.objectives-list li span:last-child {
    font-family: var(--font-ibm);
    font-size: 0.85rem;
    color: rgba(22, 22, 22, 0.65);
    line-height: 1.65;
}

/* Accept Section (shared with propuesta) */
.accept-section {
    background: var(--color-surface);
    border: none;
    border-radius: 14px;
    padding: 2.5rem 2rem;
    text-align: center;
    margin: 2rem 0;
}

.accept-section h3 {
    font-family: var(--font-alliance);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.accept-section p {
    font-family: var(--font-ibm);
    font-size: 0.85rem;
    color: rgba(22, 22, 22, 0.5);
    margin-bottom: 1.5rem;
}

.btn-accept {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 2.25rem;
    background: var(--color-primary);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-family: var(--font-ibm);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn-accept:hover {
    background: #2a2a2a;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(22, 22, 22, 0.2);
}

.btn-whatsapp-contact {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.7rem 2.25rem;
    background: transparent;
    color: var(--color-primary);
    border: 1.5px solid var(--color-border);
    border-radius: 10px;
    font-family: var(--font-ibm);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    margin-top: 0.75rem;
}

.btn-whatsapp-contact:hover {
    border-color: var(--color-primary);
    background: rgba(22, 22, 22, 0.03);
    transform: translateY(-1px);
}

/* Detail rows */
.detail-row {
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--color-border);
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-muted);
    display: block;
    margin-bottom: 0.35rem;
}

/* Tags */
.tags-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    background: var(--color-background);
    border: 1px solid var(--color-border);
    border-radius: 6px;
    padding: 0.35rem 0.75rem;
    font-family: var(--font-ibm);
    font-size: 0.78rem;
    color: var(--color-primary);
}

/* Sitemap tree */
.sitemap-tree {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.sitemap-item {
    padding: 0.75rem 1rem;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background: var(--color-background);
}

.sitemap-page {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-ibm);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-primary);
}

.sitemap-page .material-icons-outlined {
    font-size: 16px;
    color: var(--color-muted);
}

.sitemap-desc {
    font-family: var(--font-ibm);
    font-size: 0.78rem;
    color: rgba(22, 22, 22, 0.55);
    margin-top: 0.15rem;
    margin-left: 1.65rem;
}

.sitemap-sub {
    display: flex;
    align-items: flex-start;
    gap: 0.4rem;
    margin-top: 0.5rem;
    margin-left: 1.5rem;
}

.sitemap-sub .material-icons-outlined {
    font-size: 16px;
    color: var(--color-muted);
    margin-top: 0.1rem;
    flex-shrink: 0;
}

.sitemap-sub-name {
    font-family: var(--font-ibm);
    font-size: 0.85rem;
    color: var(--color-primary);
}

/* =============================================
   ERROR TOAST
   ============================================= */
.error-toast {
    position: fixed;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #ef4444;
    color: #fff;
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    font-family: var(--font-ibm);
    font-size: 0.8rem;
    font-weight: 500;
    z-index: 100;
    transition: transform 0.3s ease;
    max-width: 90%;
}

.error-toast.show {
    transform: translateX(-50%) translateY(0);
}

/* =============================================
   RESPONSIVE
   ============================================= */

/* Medium screens: narrower summary */
@media (max-width: 1024px) {
    .split-active .summary-panel {
        width: 320px;
    }
}

/* Mobile: summary becomes a bottom drawer + scrollable lead capture */
@media (max-width: 768px) {
    /* Make lead capture scrollable on limited viewports */
    .briefing-fullscreen {
        overflow-y: auto;
    }

    .split-active .summary-panel {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100% !important;
        height: 65vh;
        border-left: none;
        border-top: 1px solid var(--color-border);
        border-radius: 16px 16px 0 0;
        background: var(--color-surface);
        z-index: 50;
        transform: translateY(100%);
        opacity: 0;
        pointer-events: none;
        transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
            opacity 0.25s ease;
        box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.1);
    }

    .split-active .summary-panel.drawer-open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .summary-close-mobile {
        display: flex;
    }
}

@media (max-width: 640px) {
    .briefing-header-inner {
        padding: 0.85rem 1.25rem;
    }

    /* Make the lead capture step scrollable on short viewports */
    .briefing-fullscreen {
        overflow-y: auto;
        align-items: flex-start;
        padding-top: 2rem;
        padding-bottom: 2rem;
    }

    /* Center the card in available space, allow it to shrink on small screens */
    .lead-capture-card {
        padding: 2rem 1.5rem;
        margin: auto;
    }

    .lead-title {
        font-size: 1.25rem;
    }

    .chat-messages {
        padding: 1.25rem;
    }

    .chat-input-bar {
        padding: 0.85rem 1.25rem;
    }

    .msg-content {
        max-width: 85%;
    }

    .results-wrapper {
        padding: 1.5rem 1.25rem;
    }
}