/* =============================================================
   PROMPT ASSISTANT — Redesigned
   All colours use theme CSS variables so the section adapts
   automatically when the user switches themes in Settings.
   ============================================================= */

/* ── Hero Section ─────────────────────────────────────────── */
.prompt-hero-section {
    position: relative;
    padding-top: clamp(2.25rem, 5vw, 4.25rem);
    padding-bottom: clamp(2.25rem, 5vw, 4.25rem);
    color: var(--color-text);
    background:
        radial-gradient(ellipse at 8% 12%, rgba(31, 111, 235, 0.14), transparent 52%),
        radial-gradient(ellipse at 92% 8%, rgba(0, 179, 164, 0.11), transparent 48%),
        radial-gradient(ellipse at 50% 108%, rgba(31, 111, 235, 0.06), transparent 50%),
        var(--color-background);
    overflow: hidden;
}

/* Subtle dot-grid texture */
.prompt-hero-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, var(--color-border) 1px, transparent 1px);
    background-size: 28px 28px;
    opacity: 0.28;
    pointer-events: none;
    z-index: 0;
}

/* Soft diagonal light wash */
.prompt-hero-section::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(130deg, rgba(255, 255, 255, 0.52) 0%, rgba(255, 255, 255, 0) 62%);
    pointer-events: none;
    z-index: 1;
}

.prompt-hero-section .container-custom,
.prompt-hero-section .hero-content {
    position: relative;
    z-index: 2;
}

/* ── Badge / Pill ─────────────────────────────────────────── */
.prompt-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.375rem 1rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.045em;
    text-transform: uppercase;
    background: rgba(31, 111, 235, 0.09);
    color: var(--color-primary);
    border: 1px solid rgba(31, 111, 235, 0.2);
    margin-bottom: 1.125rem;
    transition: background 0.2s, border-color 0.2s;
}

.prompt-hero-badge i {
    font-size: 0.9rem;
}

/* ── Hero Head ────────────────────────────────────────────── */
.prompt-hero-head {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 2.25rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.prompt-hero-head h1 {
    font-size: clamp(1.5rem, 2.8vw, 2.2rem);
    font-weight: 800;
    letter-spacing: -0.025em;
    margin-bottom: 0.65rem;
    line-height: 1.22;
    color: var(--color-text);
}

.prompt-hero-head .lead {
    font-size: clamp(0.95rem, 1.35vw, 1.05rem);
    color: var(--color-textMuted);
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.45;
}

/* ── Chat Shell ───────────────────────────────────────────── */
.prompt-chat-shell {
    width: 100%;
    border-radius: 1.375rem;
    border: 1px solid var(--color-border);
    background: linear-gradient(165deg, var(--color-background) 0%, var(--color-surface) 100%);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.65) inset,
        0 32px 60px -32px rgba(15, 23, 42, 0.42),
        0 8px 20px -8px rgba(31, 111, 235, 0.08);
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.prompt-chat-shell:focus-within {
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.65) inset,
        0 32px 60px -32px rgba(15, 23, 42, 0.48),
        0 0 0 3px rgba(31, 111, 235, 0.13);
}

/* ── Workspace Layout ─────────────────────────────────────── */
.prompt-chat-workspace {
    margin: 0 auto;
}

.prompt-chat-workspace-public {
    max-width: 1100px;
}

.prompt-chat-workspace-auth {
    max-width: 1320px;
    display: grid;
    grid-template-columns: minmax(260px, 300px) minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
    transition: grid-template-columns 0.24s ease;
}

/* ── Chat Header ──────────────────────────────────────────── */
.prompt-chat-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.875rem 1.5rem;
    border-bottom: 1px solid var(--color-border);
    background: linear-gradient(120deg, rgba(31, 111, 235, 0.09) 0%, rgba(0, 179, 164, 0.07) 100%);
}

.prompt-chat-dots {
    display: inline-flex;
    gap: 0.4rem;
}

.prompt-chat-dots span {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 50%;
}

.prompt-chat-dots span:nth-child(1) { background: #ff5f56; }
.prompt-chat-dots span:nth-child(2) { background: #ffbd2e; }
.prompt-chat-dots span:nth-child(3) { background: #27c93f; }

.prompt-chat-badge {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-primary);
    background: rgba(255, 255, 255, 0.88);
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
    border: 1px solid rgba(31, 111, 235, 0.14);
}

.prompt-chat-status {
    margin-left: auto;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--color-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.prompt-chat-status::before {
    content: "";
    width: 8px;
    height: 8px;
    background: var(--color-primary);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(31, 111, 235, 0.45);
    animation: prompt-pulse 2s infinite;
}

@keyframes prompt-pulse {
    0%   { transform: scale(0.95); opacity: 0.55; }
    50%  { transform: scale(1.05); opacity: 1;    }
    100% { transform: scale(0.95); opacity: 0.55; }
}

/* ── Chat Layout ──────────────────────────────────────────── */
.prompt-chat-layout {
    display: grid;
    min-height: 500px;
}

.prompt-chat-layout-main { grid-template-columns: 1fr; }

/* ── History Sidebar ──────────────────────────────────────── */
.prompt-chat-history {
    padding: 1.125rem;
    background: linear-gradient(165deg, var(--color-background) 0%, var(--color-surface) 100%);
}

.prompt-chat-history-sidebar {
    border: 1px solid var(--color-border);
    border-radius: 1.375rem;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.65) inset,
        0 32px 60px -32px rgba(15, 23, 42, 0.42),
        0 8px 20px -8px rgba(31, 111, 235, 0.08);
    position: sticky;
    top: 1rem;
    height: clamp(420px, 72vh, 760px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: padding 0.24s ease, box-shadow 0.24s ease;
}

.prompt-chat-history-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.625rem 0.75rem;
    border: 1px solid var(--color-border);
    border-radius: 0.875rem;
    background: linear-gradient(120deg, rgba(31, 111, 235, 0.09) 0%, rgba(0, 179, 164, 0.07) 100%);
    margin-bottom: 1rem;
}

.prompt-history-actions {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.prompt-history-action-btn {
    width: 2rem;
    height: 2rem;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    line-height: 1;
    overflow: hidden;
}

.prompt-chat-history-title {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0;
    background: rgba(255, 255, 255, 0.88);
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
    border: 1px solid rgba(31, 111, 235, 0.14);
}

.prompt-chat-history-note {
    font-size: 0.875rem;
    color: var(--color-textMuted);
    line-height: 1.55;
}

.assistant-history-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
}

.assistant-history-empty {
    color: var(--color-textMuted);
    font-size: 0.875rem;
    line-height: 1.5;
    padding: 0.5rem 0.25rem;
}

.assistant-history-item {
    margin: 0;
    font-size: 0.875rem;
    color: var(--color-textMuted);
}

.assistant-history-thread-btn {
    width: 100%;
    border: 1px solid var(--color-border);
    background: var(--color-background);
    color: var(--color-text);
    border-radius: 0.75rem;
    padding: 0.6rem 0.75rem;
    text-align: left;
    display: grid;
    grid-template-rows: auto auto;
    row-gap: 0.1rem;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.assistant-history-thread-btn:hover,
.assistant-history-thread-btn:focus-visible {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(31, 111, 235, 0.12);
    background: var(--color-surface);
    outline: none;
}

.assistant-history-thread-btn.is-active {
    border-color: var(--color-primary);
    background: rgba(31, 111, 235, 0.06);
}

.assistant-history-thread-title {
    display: block;
    font-size: 0.875rem;
    color: var(--color-text);
    font-weight: 600;
    line-height: 1.25;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}

.assistant-history-thread-meta {
    display: block;
    font-size: 0.75rem;
    color: var(--color-textMuted);
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}

.prompt-history-export-btn {
    border: 1px solid var(--color-border);
    background: var(--color-background);
    color: var(--color-text);
    border-radius: 0.5rem;
    transition: all 0.2s;
}

.prompt-history-new-btn {
    border: 1px solid var(--color-border);
    background: var(--color-background);
    color: var(--color-text);
    border-radius: 0.5rem;
    transition: all 0.2s;
}

.prompt-history-toggle-btn {
    border: 1px solid var(--color-border);
    background: var(--color-background);
    color: var(--color-text);
    border-radius: 0.5rem;
    transition: all 0.2s;
}

.prompt-history-new-btn .material-symbols-outlined {
    display: inline-block;
    font-size: 1.2rem;
    line-height: 1;
    vertical-align: middle;
}

.prompt-history-export-btn i {
    font-size: 1rem;
    line-height: 1;
    vertical-align: middle;
}

.prompt-history-toggle-btn .material-symbols-outlined {
    font-size: 1.2rem;
    line-height: 1;
    vertical-align: middle;
}

.prompt-history-new-btn:hover,
.prompt-history-new-btn:focus-visible {
    background: var(--color-surface);
    border-color: var(--color-primary);
    color: var(--color-primary);
    outline: none;
}

.prompt-history-export-btn:hover:not(:disabled) {
    background: var(--color-surface);
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.prompt-history-toggle-btn:hover,
.prompt-history-toggle-btn:focus-visible {
    background: var(--color-surface);
    border-color: var(--color-primary);
    color: var(--color-primary);
    outline: none;
}

/* ── Chat Main ────────────────────────────────────────────── */
.prompt-chat-main {
    padding: 1.75rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    height: 100%;
    min-height: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.35), transparent 55%);
}

.prompt-chat-main > .assistant-preview {
    order: 1;
    min-height: 0;
}

.prompt-chat-main > .assistant-result-link-container {
    order: 2;
}

.prompt-chat-main > .prompt-disambiguation-panel {
    order: 3;
    margin-top: 0;
}

.prompt-chat-main > .prompt-chat-suggestions {
    order: 4;
}

.prompt-chat-main > .assistant-form {
    order: 5;
    margin-top: auto;
    padding-top: 0.75rem;
    border-top: 1px solid var(--color-border);
}

/* ── Suggestion Chips ─────────────────────────────────────── */
.prompt-chat-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.625rem;
}

.prompt-suggestion-chip {
    border: 1px solid var(--color-border);
    background: var(--color-background);
    color: var(--color-text);
    border-radius: 0.875rem;
    padding: 0.45rem 0.9rem;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.4;
    transition: all 0.2s ease;
}

.prompt-suggestion-chip:hover {
    background: var(--color-surface);
    border-color: var(--color-primary);
    color: var(--color-primary);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px -4px rgba(31, 111, 235, 0.18);
}

/* ── Composer ─────────────────────────────────────────────── */
.prompt-composer-container {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.prompt-composer {
    display: grid;
    grid-template-columns: auto auto 1fr auto;
    gap: 0.625rem;
    align-items: flex-end;
    border: 1.5px solid var(--color-border);
    border-radius: 1rem;
    background: var(--color-background);
    padding: 0.75rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.prompt-composer:focus-within {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(31, 111, 235, 0.13);
}

/* ── Icon Buttons ─────────────────────────────────────────── */
.prompt-icon-btn {
    width: 2.5rem;
    height: 2.5rem;
    border: 1px solid var(--color-border);
    border-radius: 0.75rem;
    background: var(--color-surface);
    color: var(--color-textMuted);
    transition: all 0.2s;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.prompt-icon-btn:hover:not(:disabled) {
    background: var(--color-background);
    border-color: var(--color-primary);
    color: var(--color-primary);
    box-shadow: 0 2px 8px -2px rgba(31, 111, 235, 0.18);
}

.prompt-icon-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.prompt-icon-btn.is-listening {
    background: rgba(31, 111, 235, 0.1);
    border-color: var(--color-primary);
    color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(31, 111, 235, 0.12);
}

.prompt-icon-btn.is-listening i {
    animation: mic-listening-pulse 1s ease-in-out infinite;
}

.prompt-icon-btn.is-disabled-by-support {
    opacity: 0.4;
    cursor: not-allowed;
}

@keyframes mic-listening-pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.12);
    }

    100% {
        transform: scale(1);
    }
}

/* ── Textarea Input ───────────────────────────────────────── */
.prompt-composer-input {
    min-height: 2.5rem;
    max-height: 200px;
    padding: 0.5rem 0;
    border: none;
    background: transparent;
    color: var(--color-text);
    font-size: 1rem;
    line-height: 1.5;
    resize: none;
}

.prompt-composer-input::placeholder {
    color: var(--color-textMuted);
    opacity: 0.85;
}

.prompt-composer-input:focus {
    outline: none;
    box-shadow: none;
    background: transparent;
}

/* ── Send Button ──────────────────────────────────────────── */
.prompt-send-btn {
    width: 2.5rem;
    height: 2.5rem;
    border: none;
    background: var(--gradient-accent, linear-gradient(135deg, var(--color-primary), var(--color-accent)));
    color: #ffffff;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
    box-shadow: 0 8px 20px -10px rgba(15, 23, 42, 0.55);
}

.prompt-send-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 12px 24px -12px rgba(15, 23, 42, 0.65);
}

.prompt-send-btn:disabled {
    background: var(--color-surface);
    color: var(--color-textMuted);
    box-shadow: none;
}

.prompt-send-btn .btn-label,
.prompt-send-btn .btn-spinner {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* ── Attachment Label ─────────────────────────────────────── */
.prompt-attachment-label {
    font-size: 0.8125rem;
    color: var(--color-textMuted);
    padding: 0 0.25rem;
    margin: 0;
}

/* ── Execute Row ──────────────────────────────────────────── */
.assistant-execute-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.prompt-execute-btn {
    padding: 0.45rem 1.125rem;
    border: 1.5px solid var(--color-primary);
    border-radius: 0.75rem;
    background: transparent;
    color: var(--color-primary);
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.prompt-execute-btn:hover:not(:disabled) {
    background: var(--color-primary);
    color: white;
}

.prompt-execute-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    border-color: var(--color-border);
    color: var(--color-textMuted);
}

.prompt-execute-hint {
    font-size: 0.8125rem;
    color: var(--color-textMuted);
    line-height: 1.4;
}

/* ── Preview Output ───────────────────────────────────────── */
.assistant-preview {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.assistant-preview-output {
    flex: 1;
    min-height: 240px;
    margin-bottom: 0;
    background: var(--color-background);
    border: 1.5px solid var(--color-border);
    color: var(--color-text);
    border-radius: 1rem;
    padding: 1.25rem;
    font-family: inherit;
    font-size: 0.9375rem;
    line-height: 1.6;
    transition: border-color 0.25s;
    white-space: pre-wrap;
    word-break: break-word;
    overflow-y: auto;
}

.assistant-preview-output a {
    color: var(--color-primary);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.assistant-preview-output a:hover,
.assistant-preview-output a:focus {
    color: var(--color-accent);
}

/* ── Feature Highlights Row ───────────────────────────────── */
.prompt-hero-features {
    list-style: none;
    padding: 0;
    margin: 2.5rem auto 0;
    max-width: 780px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.prompt-hero-feature {
    display: inline-flex;
    align-items: center;
    gap: 0.475rem;
    padding: 0.5rem 1.25rem;
    border-radius: 999px;
    background: var(--color-background);
    border: 1px solid var(--color-border);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-textMuted);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    cursor: default;
    white-space: nowrap;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.prompt-hero-feature:hover {
    border-color: var(--color-primary);
    box-shadow: 0 3px 8px -3px rgba(31, 111, 235, 0.15);
}

.prompt-hero-feature i {
    font-size: 1.05rem;
    color: var(--color-primary);
    flex-shrink: 0;
}

/* ── Force classic-landing visible for auth users on alt themes */
html[data-theme='solstice'] .classic-landing.classic-landing-force-visible,
html[data-theme='horizon']  .classic-landing.classic-landing-force-visible,
html[data-theme='aurora']   .classic-landing.classic-landing-force-visible {
    display: block;
}

/* ── Theme-specific prompt hero backgrounds ───────────────── */

/* Solstice Bloom */
html[data-theme='solstice'] .prompt-hero-section {
    background:
        radial-gradient(ellipse at 8% 12%, rgba(255, 107, 107, 0.13), transparent 52%),
        radial-gradient(ellipse at 92% 8%, rgba(78, 205, 196, 0.11), transparent 48%),
        var(--color-background);
}

html[data-theme='solstice'] .prompt-hero-badge {
    background: rgba(196, 77, 88, 0.09);
    color: #c44d58;
    border-color: rgba(196, 77, 88, 0.2);
}

html[data-theme='solstice'] .prompt-chat-header {
    background: linear-gradient(120deg, rgba(255, 107, 107, 0.09) 0%, rgba(78, 205, 196, 0.07) 100%);
}

html[data-theme='solstice'] .prompt-chat-history-header {
    background: linear-gradient(120deg, rgba(255, 107, 107, 0.09) 0%, rgba(78, 205, 196, 0.07) 100%);
}

/* Horizon Magazine */
html[data-theme='horizon'] .prompt-hero-section {
    background:
        radial-gradient(ellipse at 8% 12%, rgba(0, 217, 255, 0.10), transparent 52%),
        radial-gradient(ellipse at 92% 8%, rgba(255, 176, 32, 0.08), transparent 48%),
        var(--color-background);
}

html[data-theme='horizon'] .prompt-chat-header {
    background: linear-gradient(120deg, rgba(0, 217, 255, 0.08) 0%, rgba(255, 176, 32, 0.06) 100%);
}

html[data-theme='horizon'] .prompt-chat-history-header {
    background: linear-gradient(120deg, rgba(0, 217, 255, 0.08) 0%, rgba(255, 176, 32, 0.06) 100%);
}

/* Aurora Flow */
html[data-theme='aurora'] .prompt-hero-section {
    background:
        radial-gradient(ellipse at 8% 12%, rgba(99, 102, 241, 0.12), transparent 52%),
        radial-gradient(ellipse at 92% 8%, rgba(16, 185, 129, 0.09), transparent 48%),
        var(--color-background);
}

html[data-theme='aurora'] .prompt-chat-header {
    background: linear-gradient(120deg, rgba(99, 102, 241, 0.08) 0%, rgba(16, 185, 129, 0.06) 100%);
}

html[data-theme='aurora'] .prompt-chat-history-header {
    background: linear-gradient(120deg, rgba(99, 102, 241, 0.08) 0%, rgba(16, 185, 129, 0.06) 100%);
}

@media (min-width: 901px) {
    .prompt-chat-workspace-auth.history-collapsed {
        grid-template-columns: 72px minmax(0, 1fr);
    }

    .prompt-chat-workspace-auth.history-collapsed .prompt-chat-history-sidebar {
        padding: 0.75rem;
    }

    .prompt-chat-workspace-auth.history-collapsed .prompt-chat-history-header {
        justify-content: center;
        margin-bottom: 0;
    }

    .prompt-chat-workspace-auth.history-collapsed .prompt-history-actions {
        justify-content: center;
    }

    .prompt-chat-workspace-auth.history-collapsed .prompt-chat-history-title,
    .prompt-chat-workspace-auth.history-collapsed #assistantHistoryList,
    .prompt-chat-workspace-auth.history-collapsed #assistantHistoryStatus,
    .prompt-chat-workspace-auth.history-collapsed #assistantNewChatButton,
    .prompt-chat-workspace-auth.history-collapsed #assistantHistoryExportButton {
        display: none;
    }
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 1100px) {
    .prompt-chat-workspace-auth {
        grid-template-columns: minmax(220px, 260px) minmax(0, 1fr);
    }
}

@media (max-width: 900px) {
    .prompt-chat-workspace-auth {
        grid-template-columns: 1fr;
    }

    .prompt-chat-history-sidebar {
        position: static;
        height: auto;
        max-height: 280px;
    }
}

@media (max-width: 768px) {
    .prompt-chat-history-sidebar {
        display: none;
    }

    .prompt-chat-main {
        padding: 1.25rem;
    }

    .prompt-chat-status {
        display: none;
    }

    .prompt-hero-head {
        margin-bottom: 1.4rem;
    }

    .prompt-chat-layout {
        min-height: 420px;
    }

    .prompt-hero-features {
        gap: 0.5rem;
        margin-top: 2rem;
    }

    .prompt-hero-feature {
        font-size: 0.8125rem;
        padding: 0.425rem 1rem;
    }
}

@media (max-width: 576px) {
    .prompt-hero-section {
        padding-top: 2.5rem;
        padding-bottom: 2.5rem;
    }

    .prompt-hero-head h1 {
        font-size: 1.5rem;
    }

    .prompt-hero-features {
        flex-direction: column;
        align-items: stretch;
        max-width: 100%;
        gap: 0.5rem;
    }

    .prompt-hero-feature {
        justify-content: center;
        white-space: normal;
        text-align: center;
    }

    .prompt-chat-shell {
        border-radius: 1rem;
    }

    .prompt-composer {
        gap: 0.5rem;
    }

    .prompt-chat-main {
        padding: 1rem;
    }

    .prompt-chat-suggestions {
        gap: 0.5rem;
    }

    .prompt-suggestion-chip {
        font-size: 0.8125rem;
        padding: 0.4rem 0.75rem;
    }
}

/* ── Disambiguation Panel ─────────────────────────────────── */
.prompt-disambiguation-panel {
    border: 1.5px solid var(--color-border);
    border-radius: 0.875rem;
    background: var(--color-surface);
    padding: 1rem 1.125rem;
    margin-top: 0.75rem;
}

.prompt-disambiguation-question {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--color-text);
    margin-bottom: 0.625rem;
}

.prompt-disambiguation-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.625rem;
}

.prompt-disambiguation-btn {
    border-color: var(--color-primary);
    color: var(--color-primary);
    font-weight: 600;
}

.prompt-disambiguation-btn:hover,
.prompt-disambiguation-btn:focus {
    background: var(--color-primary);
    color: #fff;
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* ── Result Link Container ────────────────────────────────── */
.assistant-result-link-container {
    border: 1.5px solid var(--color-border);
    border-radius: 0.875rem;
    background: var(--color-surface);
    padding: 0.875rem 1.125rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.assistant-result-link-message {
    font-size: 0.9375rem;
    color: var(--color-text);
    margin-bottom: 0;
}

.assistant-result-link {
    align-self: flex-start;
    font-weight: 600;
}
