* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f5f5f5;
}

.container {
    max-width: 1500px;
    margin: 0 auto;
    background: white;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #ddd;
}

.header h1 {
    font-size: 24px;
    color: #333;
}

.breadcrumb {
    color: #666;
    font-size: 14px;
}

.main-title {
    background-color: #0066cc;
    color: white;
    padding: 15px;
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 20px;
}

.goal-header {
    background-color: #ffb300;
    color: #333;
    padding: 12px 15px;
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 20px;
}

.target-section {
    margin-bottom: 30px;
}

.target-title {
    background-color: #f0f0f0;
    padding: 10px 15px;
    font-size: 13px;
    font-weight: bold;
    margin-bottom: 15px;
    border-left: 4px solid #0066cc;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
    font-size: 12px;
}

.data-table th {
    background-color: #f8f8f8;
    padding: 10px 8px;
    text-align: left;
    font-weight: bold;
    border: 1px solid #ddd;
    font-size: 11px;
}

.data-table td {
    padding: 8px;
    border: 1px solid #ddd;
    vertical-align: top;
}

.data-table tr:hover {
    background-color: #f9f9f9;
}

.indicator-cell {
    min-width: 200px;
}

.number-cell {
    width: 60px;
    font-weight: bold;
}

input[type="text"],
input[type="number"] {
    width: 100%;
    padding: 6px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 12px;
}

input[type="text"]:focus,
input[type="number"]:focus {
    outline: none;
    border-color: #0066cc;
}

.small-text {
    font-size: 10px;
    color: #666;
    font-style: italic;
}

.data-source-cell {
    font-size: 10px;
    color: #666;
}

.trend-icon {
    cursor: pointer;
    color: #0066cc;
    text-decoration: underline;
}

.baseline-note {
    font-size: 10px;
    color: #666;
    margin-top: 2px;
}

.action-buttons {
    margin-top: 20px;
    text-align: right;
}

.btn {
    padding: 10px 20px;
    margin-left: 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.btn-primary {
    background-color: #0066cc;
    color: white;
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
}

.btn:hover {
    opacity: 0.9;
}


/* Chatbot Styles */
.chat-button {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #0b63b5 0%, #0052a3 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(11, 99, 181, 0.25);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
    z-index: 1000;
}

.chat-button:hover { transform: scale(1.08); }
.chat-button svg { width: 26px; height: 26px; fill: white; }


.chat-window {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 420px; /* fixed width for the dedicated right panel */
    height: 100vh;
    background: transparent;
    display: none;
    z-index: 2100; /* sits above the blurred backdrop so it remains sharp */
}

.chat-window.active { display: block; }

.chat-window > * { box-sizing: border-box; }

.chat-card {
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #ffffff 0%, #ffffff 100%);
    border-radius: 0; /* panel spans full height, rounded corners handled on left edge */
    position: relative;
    box-shadow: -20px 0 40px rgba(2, 19, 40, 0.12);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

@keyframes slideUp { from { transform: translateY(10px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

.chat-header {
    background: linear-gradient(90deg, #0066cc 0%, #0052a3 100%);
    color: white;
    padding: 14px 16px;
    display: flex;
    gap: 12px;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    box-shadow: inset 0 -1px 0 rgba(0,0,0,0.03);
}

.chat-header h3 { margin: 0; font-size: 15px; font-weight: 700; }
.chat-header .status { font-size: 12px; opacity: 0.95; color: rgba(255,255,255,0.95); }

.close-chat {
    background: none;
    border: none;
    color: white;
    font-size: 26px; /* increased size */
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 8px;
    margin-left: auto; /* push to end */
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 18px 20px;
    background: linear-gradient(180deg, #f6f8fb 0%, #f9fafb 100%);
}

.message {
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
}

.message.user {
    align-items: flex-end;
}

.message.assistant {
    align-items: flex-start;
}

.message-content {
    max-width: 78%;
    padding: 12px 16px;
    border-radius: 12px;
    word-wrap: break-word;
    font-size: 14px;
    line-height: 1.45;
}

.message.user .message-content { background: #0b63b5; color: white; border-bottom-right-radius: 6px; }
.message.assistant .message-content { background: white; color: #1f2933; border-bottom-left-radius: 6px; box-shadow: 0 4px 12px rgba(33,37,41,0.06); }

.typing-indicator { display: none; padding: 12px 16px; background: white; border-radius: 12px; box-shadow: 0 4px 12px rgba(33,37,41,0.06); max-width: 78%; }
.typing-indicator.active { display: inline-block; }
.typing-indicator span { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #0066cc; margin: 0 2px; animation: bounce 1.4s infinite ease-in-out both; }
.typing-indicator span:nth-child(1) { animation-delay: -0.32s; }
.typing-indicator span:nth-child(2) { animation-delay: -0.16s; }

@keyframes bounce { 0%, 80%, 100% { transform: scale(0); } 40% { transform: scale(1); } }

.chat-input-container { padding: 14px 18px; background: linear-gradient(180deg,#fff 0%, #fbfdff 100%); border-top: 1px solid #eef3f8; }
.chat-input { display: flex; gap: 12px; align-items: center; position: static; }
.chat-input input { flex: 1; padding: 10px 18px; height: 40px; border: 1px solid #e6e6e6; border-radius: 999px; font-size: 14px; outline: none; background: #ffffff; color: #6b7280; box-shadow: none; }
.chat-input input::placeholder { color: #bfc9cf; }
.chat-input input:focus { border-color: #e2e8f0; box-shadow: none; }

.send-backing { width: 56px; height: 56px; border-radius: 50%; background: #ffffff; box-shadow: 0 2px 6px rgba(8,20,40,0.06); z-index: 1; display: flex; align-items: center; justify-content: center; }

.send-button { width: 44px; height: 44px; background: #2066d6; border: none; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: transform 0.12s ease, box-shadow 0.12s ease; box-shadow: 0 6px 18px rgba(11,63,126,0.12); position: relative; z-index: 2; }
.send-button:hover { transform: translateY(-4px); box-shadow: 0 10px 26px rgba(11,63,126,0.14); }
.send-button:disabled { background: #ccc; cursor: not-allowed; box-shadow: none; }
.send-button svg { width: 16px; height: 16px; fill: white; }

.quick-actions { display: flex; gap: 8px; padding: 8px 12px; flex-wrap: wrap; }
.quick-action { padding: 8px 12px; background: #ffffff; border: 1px solid #0b63b5; border-radius: 18px; font-size: 13px; cursor: pointer; box-shadow: 0 2px 6px rgba(15,23,42,0.04); color: #0b2540; font-weight: 700; }
.quick-action:hover { transform: translateY(-2px); border-color: #0b63b5; }

/* Voice Controls */
.voice-controls {
    display: flex;
    gap: 8px;
    padding: 0 16px 12px;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.voice-controls-left {
    display: flex;
    gap: 8px;
    align-items: center;
}

.voice-controls-right {
    display: flex;
    gap: 8px;
    align-items: center;
}

.tts-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #666;
}

.toggle-switch {
    position: relative;
    width: 44px;
    height: 24px;
    background: #ccc;
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.3s;
}

/* Make existing tts toggle visually match pill style */
.tts-toggle { background: transparent; }
.tts-toggle span { display:none; }
.tts-toggle .toggle-switch { margin-left: 6px; }

.toggle-switch.active {
    background: #0066cc;
}

.toggle-switch::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: white;
    top: 2px;
    left: 2px;
    transition: transform 0.3s;
}

.toggle-switch.active::after {
    transform: translateX(20px);
}


.microphone-wrap {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(243,246,249,0.95);
    display: flex;
    align-items: center;
    justify-content: center;
}

.microphone-button {
    width: 36px;
    height: 36px;
    background: transparent;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.08s ease, box-shadow 0.12s ease;
}

.microphone-button:hover { transform: translateY(-2px); }
.microphone-button svg { width: 18px; height: 18px; fill: #9aa4af; }

/* Speaking overlay (split view) */
.speaking-overlay { position: absolute; inset: 0; display: none; z-index: 60; pointer-events: none; }
.speaking-overlay.active { display: flex; flex-direction: column; }
.speaking-top { height: 50%; display: flex; align-items: center; justify-content: center; background: #ffffff; box-shadow: inset 0 -1px 0 rgba(8,20,40,0.03); }
.speaking-top img { max-height: 92%; max-width: 96%; display: block; pointer-events: none; }
.speaking-bottom { height: 50%; display: flex; align-items: center; justify-content: center; background: transparent; }
.speaking-bottom-inner { padding: 18px; width: 100%; pointer-events: none; }

.microphone-button.recording { background: #ff4b4b; border-color: #ff2e2e; animation: pulse 1.2s infinite; box-shadow: 0 8px 20px rgba(255,75,75,0.12); }

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

.microphone-button svg { width: 22px; height: 22px; fill: #13304a; }
.microphone-button.recording svg { fill: white; }


/* Mode Toggle */
.mode-toggle { display:flex; align-items:center; gap:12px; justify-content:center; width:100%; }



/* Disabled states */
.microphone-button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background: #f0f0f0;
}

.microphone-button:disabled:hover {
    background: #f0f0f0;
    border-color: #ddd;
}

.chat-input input:disabled {
    background: #f5f5f5;
    color: #999;
    cursor: not-allowed;
}

/* Report Download Banner */
.report-banner {
    position: sticky;
    top: 0;
    z-index: 100;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    padding: 12px 16px;
    margin: -10px -10px 10px -10px;
    /* Extend to edges of chat-messages */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    border-radius: 0;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.report-banner-content {
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 100%;
}

/* Intro box (blue rounded panel shown at top of second mockup) */
.intro-box { padding: 12px 0 0 0; }
.intro-box .intro-content {
    background: linear-gradient(90deg,#0b63b5,#0170d6);
    color: white;
    padding: 14px 16px;
    border-radius: 12px;
    font-size: 13px;
    line-height: 1.45;
    box-shadow: 0 6px 20px rgba(3, 81, 138, 0.14);
}

/* Read aloud full-width pill */
.read-aloud-container { padding: 4px 10px; }
.read-aloud-pill {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center; /* center content per Figma */
    gap: 10px;
    background: #ffffff;
    border-radius: 28px;
    padding: 12px 18px;
    border: 1px solid rgba(0,0,0,0.12);
    box-shadow: 0 6px 16px rgba(11,20,30,0.06);
    cursor: pointer;
}
.read-aloud-pill .pill-icon { font-size: 16px; margin-right: 8px; color: #344e63; }
.read-aloud-pill .pill-text { font-weight: 800; color: #1f2933; letter-spacing: 0.1px; }
.read-aloud-pill .toggle-holder { display: none; }

.mode-label { font-weight: 700; color: #334155; margin-right: 8px; }

/* Tweak toggle inside read-aloud pill to align right */
.toggle-switch { display: none; }

.read-aloud-container { margin-bottom: 6px; }

/* Mode buttons (consolidated styles are defined earlier to avoid duplicates) */

/* ensure quick action pills align with layout */
.quick-actions { padding: 10px 16px; }

/* Controls footer matching second mockup: read aloud pill, mode buttons and large stop/send */
.voice-controls { padding: 12px 14px; border-top: 1px solid #eef3f8; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.voice-controls-left { display:flex; align-items:center; gap:12px; flex:1; justify-content:center; }
.tts-pill { background: white; color: #13304a; padding: 8px 12px; border-radius: 999px; border: 1px solid #e6eef7; font-weight:600; box-shadow: 0 4px 14px rgba(13,38,74,0.06); }
.mode-buttons { display:inline-flex; gap:14px; padding:10px; background: #f6f8fb; border-radius:999px; border:1px solid rgba(226,232,240,0.9); }
.mode-button { background: #ffffff; border: 1px solid rgba(15,23,42,0.04); padding: 12px 20px; border-radius:999px; font-weight:700; color:#8f9aa6; cursor:pointer; box-shadow: none; transition: transform 120ms ease, box-shadow 120ms ease, background 120ms ease; font-size:15px; }
.mode-button:hover { transform: translateY(-1px); box-shadow: 0 8px 16px rgba(3,102,214,0.06); }
.mode-button.active { background: linear-gradient(180deg,#eaf6ff,#dff4ff); color:#0b63b5; border: 1px solid #0b63b5; box-shadow: 0 10px 26px rgba(11,99,181,0.10), inset 0 1px 0 rgba(255,255,255,0.95), 0 0 0 6px rgba(11,99,181,0.06); padding:12px 20px; }

.controls-right { display:flex; align-items:center; gap:10px; }
.small-secondary { padding: 8px 12px; border-radius: 10px; background: #ffffff; border: 1px solid #f1f4f8; color: #13304a; font-weight:600; }
.stop-send { background: linear-gradient(180deg,#d83b3b,#b02a2a); color: white; padding: 10px 18px; border-radius: 999px; font-weight:700; border: none; box-shadow: 0 8px 22px rgba(208,59,59,0.18); }

/* Read aloud active (Stop) style */
.read-aloud-pill.on {
    background: linear-gradient(180deg,#c73a3a,#991f1f);
    border: none;
    color: white;
    box-shadow: 0 8px 22px rgba(199,58,58,0.16);
}
.read-aloud-pill.on .pill-text {
    color: white;
}
.read-aloud-pill.on .pill-icon {
    color: white;
}

/* Compact adjustments (removed fixed size so panel can be full-height) */
.chat-card { width: 100%; height: 100%; }
.chat-header { padding: 12px 14px; }
.chat-messages { padding: 14px; }
.quick-actions { padding: 10px 12px; }

.report-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.report-text {
    font-size: 15px;
    font-weight: 600;
    flex-grow: 1;
}

.report-banner-download {
    padding: 8px 16px;
    background: white;
    color: #28a745;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.report-banner-download:hover {
    background: #f8f9fa;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.report-banner-download:active {
    transform: translateY(0);
}

.top-contact-strip {
    width: 100%;
    background: #0f5b87; /* deep blue */
    color: #fff;
    font-size: 14px;
}
.top-contact-inner {
    max-width: 1500px;
    margin: 0 auto;
    padding: 8px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.top-contact-inner a { color: #fff; text-decoration: none; }
.top-contact-inner .contact-item { margin-left: 18px; }

.site-header {
    width: 100%;
    background: #fff;
    border-bottom: 1px solid #e6eef7;
}
.site-header-inner {
    max-width: 1500px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px;
    gap: 12px;
}
.site-logo img { height: 100px; display: block; }
.site-nav ul { list-style: none; display: flex; gap: 28px; align-items: center; margin: 0; padding: 0; }
.site-nav li { font-weight: 700; color: #0b2540; font-size: 15px; }
.site-nav .contact-link { font-size: 16px; letter-spacing: 0.6px; }
.partner-logos { display: flex; gap: 18px; align-items: center; }
.partner-logos img { height: 100px; display: block; }

@media (max-width: 1000px) {
    .site-nav ul { gap: 14px; font-size: 13px; }
    .partner-logos img { height: 40px; }
    .site-logo img { height: 56px; }
}
@media (max-width: 720px) {
    .site-header-inner { flex-direction: column; gap: 8px; align-items: stretch; }
    .site-nav ul { justify-content: center; flex-wrap: wrap; }
    .partner-logos { justify-content: center; }
}

.hero-banner {
    background-image: url('/static/gif/office%202.jpg');
    background-size: cover;
    background-position: center center;
    padding: 20px 0 20px 0;
    position: relative;
}
.hero-inner {
    max-width: 1600px; 
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    position: relative;
    overflow: hidden;
    min-height: 520px; 
}
.hero-content {
    max-width: 720px;
    color: #fff;
    padding: 28px 20px;
}
.hero-content { z-index: 1; position: relative; }
.hero-content h1 { font-size: 64px; margin: 0 0 8px 0; line-height: 0.95; font-weight: 800; text-shadow: 0 6px 18px rgba(3,12,20,0.5); }
.hero-sub { font-size: 20px; margin-bottom: 18px; color: rgba(255,255,255,0.95); }
.hero-ctas .btn { margin-right: 12px; }
.hero-wheel {
    position: absolute;
    /* keep wheel visually overlaid but within hero bounds */
    right: 24px;
    width: 36%;
    max-width: 460px;
    min-width: 260px;
    pointer-events: none;
}
.hero-wheel { z-index: 1; }

/* Dark translucent overlay over the hero backdrop */
.hero-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.45); /* semi-transparent black */
    z-index: 0; /* sits below .hero-content and .hero-wheel */
    pointer-events: none;
}
.hero-wheel img { width: 100%; height: auto; display: block; border-radius: 12px; box-shadow: 0 18px 48px rgba(3,12,20,0.36); }

@media (max-width: 1100px) {
    .hero-wheel { right: 32px; width: 320px; max-width: 36%; }
    .hero-content h1 { font-size: 48px; }
}
@media (max-width: 820px) {
    .hero-inner { flex-direction: column; align-items: flex-start; }
    .hero-wheel { position: static; width: 60%; margin-top: 18px; pointer-events: auto; }
    .hero-content h1 { font-size: 36px; }
}

.report-banner-close {
    background: transparent;
    border: none;
    color: white;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    padding: 0 4px;
    opacity: 0.8;
    transition: opacity 0.2s ease;
    flex-shrink: 0;
}

.report-banner-close:hover {
    opacity: 1;
}

.walkthrough-backdrop {
    position: fixed;
    inset: 0;
    display: none;
    z-index: 1200; /* sits below chat-window so chat stays sharp */
    background: rgba(255,255,255,0.04);
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
}
.walkthrough-backdrop.active { display: block; }

.walkthrough-overlay {
    position: fixed;
    right: 24px;
    bottom: 96px; 
    display: none;
    z-index: 2300; 
    pointer-events: auto;
    background: transparent;
}
.walkthrough-overlay.active { display: block; }
.walkthrough-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 18px 20px;
    width: 360px;
    max-width: calc(100vw - 48px);
    box-shadow: 0 18px 44px rgba(10,24,40,0.18);
    position: relative;
}

.walkthrough-card.arrow-down::after {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    bottom: -12px; 
    left: var(--walkthrough-arrow-left, 50%);
    transform: translateX(-50%);
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    border-top: 12px solid #ffffff; /* triangle color matches card */
    filter: drop-shadow(0 8px 18px rgba(10,24,40,0.12));
}

.walkthrough-card.arrow-down::before {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    bottom: -15px;
    /* left can be overridden by JS via --walkthrough-arrow-left (px or %). */
    left: var(--walkthrough-arrow-left, 50%);
    transform: translateX(-50%);
    border-left: 14px solid transparent;
    border-right: 14px solid transparent;
    border-top: 14px solid rgba(10,24,40,0.10);
    z-index: -1;
}
.walkthrough-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: transparent;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #6b7280;
}

.walkthrough-card.arrow-right::after {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    left: 100%;
    top: 36px; /* align vertically to card content */
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-left: 12px solid white;
    filter: drop-shadow(0 6px 10px rgba(8,20,40,0.08));
}
.walkthrough-card.arrow-right::before {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    left: 98%;
    top: 35px;
    border-top: 11px solid transparent;
    border-bottom: 11px solid transparent;
    border-left: 13px solid rgba(8,20,40,0.08);
    z-index: -1;
}
.walkthrough-title { margin: 0 0 6px 0; font-size: 16px; color: #0b2540; }
.walkthrough-content p { margin: 0 0 12px 0; color: #475569; font-size: 13px; line-height:1.3; }
.walkthrough-footer { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-top:6px; }
.walkthrough-counter { color:#94a3b8; font-weight:600; }
.walkthrough-actions { display:flex; gap:8px; }
.walkthrough-actions .small-secondary { background:#ffffff; border:1px solid #eef2f6; color:#0b2540; }
.walkthrough-actions .stop-send { background: linear-gradient(180deg,#1e7be6,#0b63b5); }


.chat-window.blurred .chat-card > * {
    filter: blur(1px);
    opacity: 0.98;
    pointer-events: none; 
}

.chat-window.blurred .voice-controls,
.chat-window.blurred .mode-toggle,
.chat-window.blurred .mode-buttons {
    filter: none;
    opacity: 1;
    pointer-events: auto;
    position: relative;
    z-index: 40; /* bring controls above blurred layer */
}


.chat-window.blurred.blur-controls .voice-controls,
.chat-window.blurred.blur-controls .mode-toggle,
.chat-window.blurred.blur-controls .mode-buttons,
.chat-window.blurred.blur-controls .chat-input-container,
.chat-window.blurred.blur-controls .chat-messages {
    filter: blur(1px) !important;
    opacity: 0.98 !important;
    pointer-events: none !important;
}

.chat-window.blurred.blur-controls .read-aloud-pill {
    filter: none !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    position: relative !important;
    /* Force the pill above the walkthrough backdrop and overlay */
    z-index: 99999 !important;
}

.chat-window.blurred.unblur-input .chat-input-container,
.chat-window.blurred.unblur-input .chat-messages {
    filter: none;
    opacity: 1;
    pointer-events: auto;
    position: relative;
    z-index: 40;
}

.mode-button.highlight {
    box-shadow: 0 12px 28px rgba(11,99,181,0.12), 0 0 0 6px rgba(14,106,204,0.06) !important;
    background: linear-gradient(180deg,#eaf6ff,#dff4ff) !important;
    color: #0b63b5 !important;
    transform: translateY(-2px);
    border: 1px solid #095aa8 !important;
}

.read-aloud-pill.highlight {
    box-shadow: 0 12px 28px rgba(11,99,181,0.12), 0 0 0 6px rgba(14,106,204,0.06) !important;
    background: linear-gradient(180deg,#eaf6ff,#dff4ff) !important;
    color: #0b63b5 !important;
    transform: translateY(-2px);
    border: 1px solid #095aa8 !important;
}

.assistant-hero {
    display: none;
    align-items: center;
    justify-content: center;
    padding: 12px 12px;
    background: transparent;
}
.assistant-hero img {
    width: 220px;
    height: 220px;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(8,20,40,0.06);
}

.chat-card[data-tts="on"] .assistant-hero.speaking {
    display: flex;
    flex: 0 0 30%;
    min-height: 180px;
    max-height: 48%;
}

.chat-card[data-tts="on"] .assistant-hero.listening {
     display: flex;
     flex: 0 0 30%;
     min-height: 180px;
     max-height: 48%;
}

.chat-messages { flex: 1 1 auto; overflow-y: auto; }