/* Feature frames share the main illustration's navy and blue palette. */
.connected-modes .mode-grid,
.gate-message-section .gate-message-card {
 background:linear-gradient(135deg,#06233f 0%,#103f75 58%,#1e58a0 100%);
 border-color:#194d80;
 box-shadow:0 12px 28px -22px rgba(5,31,62,.55);
}
.connected-story .connected-modes .mode-card {
 opacity:1;
 background:#edf4fa;
 border-color:#cddfea;
}
.connected-story .connected-modes .mode-card.story-active {
 background:#fff;
 border-color:#4398f0;
 box-shadow:0 0 0 1px rgba(67,152,240,.3),0 8px 20px -12px #02182e;
}
.connected-story .connected-modes .mode-card.story-active::before { background:#20c6cb; }
.connected-story .connected-modes .mode-card.story-active .mode-icon { background:#e2f7f7; }
.connected-story .connected-modes .mode-card.story-active::after { color:#245da0; }

/* Larger, full-contrast text in the sample chat. */
.gate-message-section .gate-message-card { height:auto; min-height:420px; }
.gate-message-section .gate-message-panel { height:auto; min-height:450px; }
.connected-story .gate-message-panel > article { opacity:1; }
.gate-message-section :is(.gate-chat-label,.gate-chat-name,.gate-chat-time,.gate-chat-bubble p,.gate-chat-file-copy strong,.gate-chat-file-copy span,.gate-chat-reaction) { color:#000; }
.gate-message-section :is(.gate-chat-label,.gate-chat-name,.gate-chat-bubble p) { font-size:16px; }
.gate-message-section .gate-chat-bubble p { line-height:1.5; }
.gate-message-section .gate-chat-time { font-size:12px; }
.gate-message-section .gate-chat-file-copy strong { font-size:14px; font-weight:600; }
.gate-message-section .gate-chat-file-copy span { font-size:12px; }
.gate-message-section .gate-chat-reaction span { font-size:14px; }
.gate-message-section .gate-chat-body { min-width:0; }
.gate-message-section .gate-badge-live { background:#b34f49; color:#fff; font-weight:700; letter-spacing:.04em; gap:6px; border:1px solid #ce7b74; }
.gate-message-section .gate-badge-view { background:#e4f2fb; color:#000; }
.gate-message-section .gate-badge-view svg { width:18px; height:18px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }

/* Portraits and a floating conversation surface. */
.gate-message-section .gate-message-card-wrap { padding-bottom:44px; }
.gate-message-section .gate-message-card { overflow:visible; padding:26px 24px 0; min-height:0; border-radius:28px; }
.gate-message-section .gate-message-panel { position:relative; top:18px; margin-bottom:-30px; padding:26px 22px 28px; border-radius:26px; border:1px solid #e3eaf1; box-shadow:0 24px 40px -18px rgba(4,28,53,.38),0 5px 12px -6px rgba(4,28,53,.2); }
.gate-message-section .gate-chat-avatar { width:48px;height:48px;flex-basis:48px;overflow:hidden;box-shadow:0 0 0 3px #fff,0 2px 7px #193e5b20; }
.gate-message-section .gate-chat-avatar::before,.gate-message-section .gate-chat-avatar::after { display:none; }
.gate-message-section .gate-chat-avatar img { display:block;width:100%;height:100%;object-fit:cover; }
.gate-message-section .gate-chat-head { flex-wrap:wrap;gap:6px; }
@media(max-width:640px) {
 .gate-message-section .gate-message-card { padding:22px 14px 0;border-radius:24px; }
 .gate-message-section .gate-message-panel { padding:22px 16px 26px;border-radius:22px; }
 .gate-message-section .gate-chat-avatar { width:42px;height:42px;flex-basis:42px; }
}

.gate-message-section .gate-message-card-top { gap:8px; }
.gate-message-section .gate-badge-live::before { content:""; width:6px; height:6px; border-radius:50%; background:#ffe3de; }
.gate-message-section .gate-badge-view { gap:6px; padding:0 10px; font-weight:500; }

/* Alternate the questioner portrait direction. */
.gate-message-section .gate-chat-avatar-blue img { transform:scaleX(-1); }
