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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #EAEAEA;
    min-height: 100vh;
    min-height: 100dvh;
    overflow: hidden;
    color: #2C2C2C;
}

.app-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
    height: 100dvh;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.main-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    background: #EAEAEA;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-title h1 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2C2C2C;
    margin: 0;
    letter-spacing: 0.5px;
}

.header-buttons {
    display: flex;
    gap: 12px;
}

.header-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    color: #2C2C2C;
    background: white;
    text-decoration: none;
    border: 1px solid #D0D0D0;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
    cursor: pointer;
}

.header-btn:hover {
    background: #F5F5F5;
    border-color: #2C2C2C;
}

.view-database-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    color: white;
    text-decoration: none;
    border: none;
    border-radius: 24px;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.2s ease;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
    background: #2C2C2C;
}

.view-database-btn:hover {
    background: #444444;
    box-shadow: 0 4px 8px rgba(44, 44, 44, 0.3);
    transform: translateY(-1px);
}

.view-database-btn svg {
    width: 18px;
    height: 18px;
}

.content-area {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.content-area::-webkit-scrollbar {
    display: none;
}

.welcome-screen {
    text-align: center;
    color: #2C2C2C;
    padding: 0 20px;
    max-width: 800px;
    width: 100%;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.intro-content {
    text-align: left;
    display: inline-block;
}

.intro-headline {
    font-size: 36px;
    font-weight: 500;
    color: #444;
    margin: 0;
    line-height: 1.5;
    min-height: 1.5em;
}

.intro-headline .typewriter-cursor {
    display: inline-block;
    width: 2px;
    height: 1em;
    background-color: #444;
    margin-left: 2px;
    animation: blink 0.7s infinite;
    vertical-align: text-bottom;
}

.verify-arrow-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    margin-left: 8px;
    width: 28px;
    height: 28px;
    padding: 0;
    background: #444444;
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    opacity: 0;
    transform: scale(0.8);
}

.verify-arrow-btn.visible {
    opacity: 1;
    transform: scale(1);
    animation: popIn 0.3s ease-out forwards;
}

.verify-arrow-btn:hover {
    background: #555555;
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.verify-arrow-btn:active {
    transform: scale(1);
}

.verify-arrow-btn svg {
    stroke: currentColor;
    width: 14px;
    height: 14px;
}

@keyframes popIn {
    from {
        opacity: 0;
        transform: scale(0.5);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

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

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.intro-question {
    font-size: 1rem;
    color: #5A5A5A;
    margin: 0 0 24px 0;
    text-align: center;
    line-height: 1.5;
}

.intro-features {
    background: #FFFFFF;
    border: 1px solid #D0D0D0;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.intro-main-feature {
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #E0E0E0;
}

.intro-main-feature h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2C2C2C;
    margin: 0 0 8px 0;
}

.intro-main-feature p {
    font-size: 0.9rem;
    color: #6A6A6A;
    margin: 0;
    line-height: 1.5;
}

.intro-feature-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.intro-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.feature-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
    width: 28px;
    text-align: center;
}

.intro-feature-item div {
    flex: 1;
}

.intro-feature-item strong {
    font-size: 0.95rem;
    font-weight: 600;
    color: #2C2C2C;
    display: block;
    margin-bottom: 2px;
}

.intro-feature-item p {
    font-size: 0.85rem;
    color: #6A6A6A;
    margin: 0;
    line-height: 1.4;
}

#conversation-container {
    width: 100%;
    max-width: 800px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.message {
    width: 100%;
    position: relative;
}

.message-content {
    background: #FFFFFF;
    border: 1px solid #D0D0D0;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 8px;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    color: #2C2C2C;
}

/* Chat bubble styles - texting with a friend feel */
.chat-message {
    width: auto;
    max-width: 75%;
}

.chat-message.user-message {
    align-self: flex-end;
    margin-left: auto;
}

.chat-message.user-message .message-content {
    background: #2C2C2C;
    color: #FFFFFF;
    border-color: #2C2C2C;
    border-radius: 20px 20px 6px 20px;
    padding: 10px 14px;
    font-size: 15px;
    line-height: 1.5;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.chat-message.user-message .message-content .message-text {
    color: #FFFFFF;
}

.chat-message.ai-message {
    align-self: flex-start;
    margin-right: auto;
}

.chat-message.ai-message .message-content {
    background: #F0F0F0;
    color: #2C2C2C;
    border: none;
    border-radius: 20px 20px 20px 6px;
    padding: 10px 14px;
    font-size: 15px;
    line-height: 1.5;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.chat-message.ai-message .message-content p {
    margin: 0 0 8px 0;
    line-height: 1.5;
}

.chat-message.ai-message .message-content p:last-child {
    margin-bottom: 0;
}

/* Typing indicator - texting style */
.typing-indicator {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 12px 16px;
    background: #F0F0F0;
    border-radius: 20px 20px 20px 6px;
    width: fit-content;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.typing-indicator span {
    width: 8px;
    height: 8px;
    background: #888;
    border-radius: 50%;
    animation: typingBounce 1.4s infinite ease-in-out;
}

.typing-indicator span:nth-child(1) { animation-delay: 0s; }
.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingBounce {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
    30% { transform: translateY(-4px); opacity: 1; }
}

/* Casual mode thinking container - dots + text side by side */
.casual-thinking-container {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: #F0F0F0;
    border-radius: 20px 20px 20px 6px;
    width: fit-content;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.casual-thinking-container .typing-indicator {
    padding: 0;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
}

.thinking-text-display {
    font-size: 14px;
    color: #666;
    font-style: italic;
    transition: opacity 0.15s ease-in-out;
}

/* Message timestamp - subtle like iMessage */
.message-time {
    font-size: 11px;
    color: #999;
    margin-top: 4px;
    text-align: right;
}

.ai-message .message-time {
    text-align: left;
}

/* Inline fact verification indicators */
.fact-verified {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    background: #10b981;
    color: white;
    border-radius: 50%;
    font-size: 10px;
    font-weight: bold;
    margin-left: 2px;
    vertical-align: middle;
}

.fact-unverified {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    background: #f59e0b;
    color: white;
    border-radius: 50%;
    font-size: 10px;
    font-weight: bold;
    margin-left: 2px;
    vertical-align: middle;
}

.inline-source {
    color: #1a73e8;
    font-size: 11px;
    font-weight: 500;
    text-decoration: none;
    vertical-align: super;
}

.inline-source:hover {
    text-decoration: underline;
}

.inline-citation {
    color: #1a73e8;
    font-size: 12px;
    font-weight: 600;
    vertical-align: super;
}

.inline-citation.clickable {
    cursor: pointer;
    text-decoration: none;
}

.inline-citation.clickable:hover {
    text-decoration: underline;
    color: #0d47a1;
}

.input-disclaimer {
    text-align: center;
    font-size: 11px;
    color: #888;
    margin: 10px 0 0 0;
    font-style: italic;
    opacity: 0.8;
    white-space: nowrap;
}

.response-sources {
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid #E0E0E0;
    font-size: 13px;
}

.response-sources ul {
    margin: 8px 0 0 0;
    padding-left: 20px;
}

.response-sources li {
    margin-bottom: 4px;
}

.response-sources a {
    color: #1a73e8;
    text-decoration: none;
}

.response-sources a:hover {
    text-decoration: underline;
}

/* Embedded images in Deep Check responses */
.embedded-images {
    margin: 16px 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.embedded-figure {
    background: #f8f9fa;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e0e0e0;
    margin: 0;
}

.embedded-figure img {
    width: 100%;
    max-height: 300px;
    object-fit: contain;
    background: #fff;
    display: block;
}

.embedded-figure figcaption {
    padding: 10px 12px;
    font-size: 12px;
    color: #555;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.embedded-figure .fig-caption {
    color: #333;
    line-height: 1.4;
}

.embedded-figure .fig-source {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: #666;
}

.embedded-figure .fig-source a {
    color: #1a73e8;
    text-decoration: none;
}

.embedded-figure .fig-source a:hover {
    text-decoration: underline;
}

/* Source tier badges */
.source-tier {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.source-tier.tier-1 {
    background: #e3f2fd;
    color: #1565c0;
}

.source-tier.tier-2 {
    background: #f3e5f5;
    color: #7b1fa2;
}

/* Thinking/typing animation for Question mode */
.thinking-message {
    align-self: flex-start;
    margin-right: auto;
}

.thinking-content {
    background: #FFFFFF;
    border: 1px solid #D0D0D0;
    border-radius: 18px 18px 18px 4px;
    padding: 16px 20px;
    min-width: 60px;
}

.thinking-dots {
    display: flex;
    gap: 4px;
    align-items: center;
    justify-content: center;
}

.thinking-dots .dot {
    width: 8px;
    height: 8px;
    background: #888;
    border-radius: 50%;
    animation: thinking-bounce 1.4s ease-in-out infinite;
}

.thinking-dots .dot:nth-child(1) {
    animation-delay: 0s;
}

.thinking-dots .dot:nth-child(2) {
    animation-delay: 0.2s;
}

.thinking-dots .dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes thinking-bounce {
    0%, 60%, 100% {
        transform: translateY(0);
        opacity: 0.4;
    }
    30% {
        transform: translateY(-6px);
        opacity: 1;
    }
}

/* Joke display next to thinking dots */
.thinking-with-joke {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.joke-text {
    color: #666;
    font-size: 13px;
    font-style: italic;
    max-width: 280px;
    line-height: 1.4;
    opacity: 0;
    animation: joke-fade-in 0.5s ease-out forwards;
}

@keyframes joke-fade-in {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Typing cursor animation */
.joke-text .typing-cursor {
    display: inline-block;
    width: 2px;
    height: 14px;
    background: #888;
    margin-left: 2px;
    animation: cursor-blink 0.7s ease-in-out infinite;
    vertical-align: middle;
}

@keyframes cursor-blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* Thinking text cursor animation (Quick Chat mode) */
.thinking-text-display .thinking-cursor {
    display: inline-block;
    width: 2px;
    height: 12px;
    background: #666;
    margin-left: 2px;
    animation: cursor-blink 0.7s ease-in-out infinite;
    vertical-align: middle;
}

/* Static analyzing message (replaces rotating jokes) */
.analyzing-message {
    color: #666;
    font-size: 13px;
    font-style: italic;
    max-width: 350px;
    line-height: 1.5;
    animation: fade-in-message 0.8s ease-out forwards;
}

@keyframes fade-in-message {
    from {
        opacity: 0;
        transform: translateY(5px);
    }
    to {
        opacity: 0.85;
        transform: translateY(0);
    }
}

/* Background job notification banner */
.background-job-notification {
    animation: slide-in-notification 0.4s ease-out;
}

@keyframes slide-in-notification {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.background-job-notification .notification-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.background-job-notification .notification-content strong {
    width: 100%;
}

.background-job-notification .notification-content p {
    flex: 1;
    min-width: 150px;
}

.background-job-notification strong {
    font-size: 15px;
}

.background-job-notification p {
    margin: 0;
    font-size: 13px;
    opacity: 0.9;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

.background-job-notification .view-result-btn,
.background-job-notification .dismiss-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s ease;
}

.background-job-notification .view-result-btn {
    background: white;
    color: #4a90d9;
    font-weight: 600;
}

.background-job-notification .view-result-btn:hover {
    background: #f0f0f0;
}

.background-job-notification .dismiss-btn {
    background: transparent;
    color: white;
    border: 1px solid rgba(255,255,255,0.4);
}

.background-job-notification .dismiss-btn:hover {
    background: rgba(255,255,255,0.1);
}

/* Dive deeper prompt styling */
.dive-deeper-prompt {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    font-size: 13px;
    color: #666;
    font-style: italic;
    display: flex;
    align-items: center;
    gap: 10px;
}

.dive-deeper-prompt span {
    flex: 0 0 auto;
}

/* Dive deeper arrow button - slim horizontal cylinder/pill shape */
.dive-deeper-btn {
    width: 48px;
    height: 24px;
    border: none;
    border-radius: 12px;
    background: #3C3C3C;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.dive-deeper-btn:hover {
    background: #2C2C2C;
    transform: scale(1.03);
}

.dive-deeper-btn svg {
    width: 14px;
    height: 14px;
}

/* Delete thread button */
.delete-thread-btn {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 22px;
    height: 22px;
    border: 1px solid #D0D0D0;
    background: white;
    color: #5A5A5A;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    opacity: 0;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    z-index: 10;
}

.message:hover .delete-thread-btn,
.chat-message:hover .delete-thread-btn {
    opacity: 1;
}

.delete-thread-btn:hover {
    background: #F5F5F5;
    color: #2C2C2C;
    border-color: #B0B0B0;
}

/* Delete confirmation dropdown */
.delete-confirm-dropdown {
    display: none;
    position: absolute;
    top: 28px;
    right: -4px;
    background: white;
    border: 1px solid #D0D0D0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    padding: 4px;
    min-width: 140px;
    z-index: 1001;
    pointer-events: auto;
}

.delete-confirm-dropdown.show {
    display: block;
}

.delete-confirm-option {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 10px 12px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 14px;
    color: #5A5A5A;
    border-radius: 6px;
    transition: background 0.15s;
    text-align: left;
    white-space: nowrap;
}

.delete-confirm-option:hover {
    background: #F0F0F0;
    color: #2C2C2C;
}

.delete-confirm-option svg {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
}

/* Thread container for grouping messages */
.thread-container {
    position: relative;
}

.thread-container::before {
    content: '';
    position: absolute;
    left: -20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: transparent;
    transition: background 0.2s ease;
}

.thread-container:hover::before {
    background: rgba(90, 90, 90, 0.15);
}

.analysis-indicator {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    background: #1a73e8;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(26, 115, 232, 0.3);
    z-index: 10;
}

.analysis-indicator:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(26, 115, 232, 0.4);
}

.analysis-indicator svg {
    width: 18px;
    height: 18px;
    stroke: white;
}

.accuracy-percentage {
    color: white;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    user-select: none;
}

.analysis-indicator.loading {
    background: #f59e0b;
    animation: pulse-indicator 1.5s ease-in-out infinite;
}

.analysis-indicator.status-false {
    background: #1a73e8;
}

.analysis-indicator.status-true {
    background: #10b981;
}

.analysis-indicator.status-mixed {
    background: #eab308;
}

.analysis-indicator.status-misleading {
    background: #6b7280;
}

.analysis-indicator.status-mostly-false {
    background: #dc2626;
}

.analysis-indicator.status-unreliable {
    background: #f97316;
}

.analysis-indicator.status-mostly-true {
    background: #22c55e;
}

.analysis-indicator.status-unverified {
    background: #1f2937;
}

.analysis-indicator.status-meaningless,
.analysis-indicator.status-no-claims {
    background: #9ca3af;
}

.analysis-indicator.status-error {
    background: #dc2626;
}

.analysis-indicator.hollow {
    background: transparent;
    border: 2px solid #9ca3af;
    box-shadow: none;
}

.analysis-indicator.hollow:hover {
    border-color: #6b7280;
    box-shadow: 0 2px 8px rgba(156, 163, 175, 0.2);
}

.hollow-circle-icon {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes pulse-indicator {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(0.95); }
}

.message-text {
    font-size: 16px;
    line-height: 1.6;
    color: #2C2C2C;
    margin-bottom: 12px;
    white-space: pre-wrap;
}

.message-media {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 12px;
}

.message-media img {
    max-width: 100%;
    max-height: 400px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.message-media video {
    max-width: 100%;
    max-height: 400px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.message-media audio {
    width: 100%;
    max-width: 400px;
    min-height: 50px;
    background: #1A1A1A;
    border-radius: 24px;
    display: block;
    padding: 8px;
}

.media-remove-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(220, 53, 69, 0.9);
    color: white;
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    z-index: 5;
}

.media-remove-btn:hover {
    background: #dc3545;
    transform: scale(1.1);
}

.url-preview {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px;
    background: #F5F5F5;
    border: 1px solid #D0D0D0;
    border-radius: 8px;
    margin: 8px 0;
    font-size: 14px;
    color: #2C2C2C;
    max-width: 100%;
    overflow: hidden;
}

.url-preview svg {
    flex-shrink: 0;
    color: #2C2C2C;
}

.url-preview span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.analysis-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.analysis-modal-content {
    background: #FFFFFF;
    border: 1px solid #D0D0D0;
    border-radius: 16px;
    max-width: 700px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    animation: slideUp 0.3s ease-out;
}

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

.analysis-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    border-bottom: 1px solid #D0D0D0;
    position: sticky;
    top: 0;
    background: #FFFFFF;
    border-radius: 16px 16px 0 0;
}

.analysis-header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.analysis-header-left .analysis-indicator {
    position: static;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}

.analysis-header-left .accuracy-percentage {
    font-size: 13px;
}

.analysis-header h3 {
    font-size: 1.25rem;
    font-weight: 500;
    margin: 0;
}

/* Status text colors - match the indicator colors */
.analysis-header h3.status-text-true {
    color: #10b981;
}

.analysis-header h3.status-text-false {
    color: #1a73e8;
}

.analysis-header h3.status-text-mixed {
    color: #d97706;
}

.analysis-header h3.status-text-misleading {
    color: #6b7280;
}

.analysis-header h3.status-text-mostly-false {
    color: #dc2626;
}

.analysis-header h3.status-text-unreliable {
    color: #f97316;
}

.analysis-header h3.status-text-mostly-true {
    color: #22c55e;
}

.analysis-header h3.status-text-unverified {
    color: #9ca3af;
}

.analysis-header h3.status-text-meaningless,
.analysis-header h3.status-text-no-claims {
    color: #9ca3af;
}

.analysis-header h3.status-text-error {
    color: #dc2626;
}

.analysis-close {
    background: transparent;
    border: none;
    color: #5A5A5A;
    font-size: 28px;
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.analysis-close:hover {
    background: #E0E0E0;
    color: #2C2C2C;
}

.analysis-body {
    padding: 24px;
    color: #2C2C2C;
}

.analysis-text {
    font-size: 14px;
    line-height: 1.8;
    color: #2C2C2C;
    white-space: pre-wrap;
}

.analysis-text a {
    color: #2563EB;
    text-decoration: none;
    word-break: break-all;
}

.analysis-text a:hover {
    text-decoration: underline;
}

.input-section {
    background: #EAEAEA;
    padding: 16px 20px;
    padding-bottom: max(16px, env(safe-area-inset-bottom));
    box-sizing: border-box;
    overflow: visible;
    flex-shrink: 0;
}

#preview-container {
    margin-bottom: 12px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

#preview-content {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.input-bar {
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 12px;
    background: #F5F5F5;
    border: 1px solid #D0D0D0;
    border-radius: 20px;
    padding: 8px 12px;
    transition: all 0.3s ease;
    box-sizing: border-box;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.input-bar:focus-within {
    background: #FFFFFF;
    border-color: #2C2C2C;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

.input-left-column {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex-shrink: 0;
    overflow: visible;
}

.action-buttons {
    display: flex;
    gap: 4px;
    align-items: center;
    overflow: visible;
}

.action-btn {
    background: transparent;
    border: none;
    color: #5A5A5A;
    padding: 8px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
}

.action-btn:hover {
    background: #E0E0E0;
    color: #2C2C2C;
}

.action-btn.listening {
    background: #ff4444;
    color: white;
    animation: pulse-mic 1.5s infinite;
}

@keyframes pulse-mic {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 68, 68, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 8px rgba(255, 68, 68, 0);
    }
}

.mic-dropdown-container {
    position: relative;
    overflow: visible;
}

.mic-dropdown {
    display: none;
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    border: 1px solid #D0D0D0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    padding: 4px;
    min-width: 150px;
    margin-bottom: 8px;
    z-index: 1000;
}

.mic-dropdown.show {
    display: block;
}

.mic-dropdown-option {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 12px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 14px;
    color: #2C2C2C;
    border-radius: 6px;
    transition: background 0.15s;
    text-align: left;
}

.mic-dropdown-option:hover {
    background: #F0F0F0;
}

.mic-dropdown-option svg {
    flex-shrink: 0;
    color: #5A5A5A;
}

.input-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
    min-height: 0;
}

#media-preview-area {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid #E0E0E0;
}

#media-preview-area.hidden {
    display: none;
}

.media-preview-item {
    position: relative;
    max-width: 120px;
    border-radius: 8px;
    overflow: hidden;
    background: #F0F0F0;
}

.media-preview-item img,
.media-preview-item video {
    width: 100%;
    height: auto;
    max-height: 80px;
    object-fit: cover;
    display: block;
}

.media-preview-item .remove-media {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 20px;
    height: 20px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    line-height: 1;
}

.media-preview-item .remove-media:hover {
    background: rgba(0, 0, 0, 0.8);
}

.media-preview-item.audio-preview {
    max-width: none;
    width: 100%;
    min-width: 200px;
    padding: 10px 40px 10px 12px;
    background: #1A1A1A;
    border-radius: 24px;
    flex-shrink: 0;
    overflow: visible;
    box-sizing: border-box;
}

.media-preview-item.audio-preview .remove-media {
    top: 50%;
    right: 8px;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
}

.media-preview-item.audio-preview .remove-media:hover {
    background: rgba(255, 255, 255, 0.4);
}

.media-preview-item audio {
    width: 100%;
    height: 32px;
}

#text-input {
    width: 100%;
    border: none;
    background: transparent;
    font-size: 16px;
    outline: none;
    font-family: inherit;
    padding: 0 12px;
    color: #2C2C2C;
    resize: none;
    overflow-y: hidden;
    height: 24px;
    max-height: 120px;
    line-height: 24px;
    box-sizing: border-box;
}

#text-input::placeholder {
    color: #8A8A8A;
}

.mode-toggle-container {
    display: flex;
    align-items: center;
    gap: 0;
    position: relative;
}

.mode-toggle-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 20px;
    cursor: pointer;
    color: #6B6B6B;
    font-size: 12px;
    font-family: inherit;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.mode-toggle-btn:hover {
    background: #E0E0E0;
    color: #2C2C2C;
}

.mode-toggle-btn.active {
    background: #FFFFFF;
    border-color: #D0D0D0;
    color: #2C2C2C;
}

.mode-toggle-btn .mode-label {
    font-weight: 500;
}

.mode-toggle-btn .mode-arrow {
    width: 10px;
    height: 10px;
    flex-shrink: 0;
    transition: transform 0.2s ease;
    opacity: 1;
}

.mode-toggle-btn.mode-alt .mode-arrow {
    display: none;
}

.mode-toggle-container.expanded .mode-toggle-btn.active .mode-arrow {
    transform: rotate(180deg);
}

.mode-toggle-btn.hidden-alt {
    display: none;
}

.mode-alt-wrapper {
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%) translateX(-10px);
    display: flex;
    gap: 8px;
    margin-left: 8px;
    opacity: 0;
    pointer-events: none;
    z-index: 100;
    transition: opacity 0.25s ease-out, transform 0.25s ease-out;
}

.mode-toggle-container.expanded .mode-alt-wrapper {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(-50%) translateX(0);
}

.mode-alt-wrapper .mode-toggle-btn {
    border-color: #D0D0D0;
    background: #FFFFFF;
}

.submit-btn {
    background: #2C2C2C;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.submit-btn:hover {
    background: #1a1a1a;
    transform: scale(1.05);
}

.submit-btn:disabled {
    background: #D0D0D0;
    cursor: not-allowed;
    transform: none;
}

.preview-item {
    position: relative;
    background: white;
    border-radius: 8px;
    padding: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

.preview-item img {
    max-width: 80px;
    max-height: 80px;
    border-radius: 4px;
}

.preview-remove {
    position: absolute;
    top: 4px;
    right: 4px;
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
}

.btn-clear {
    background: transparent;
    border: 1px solid #5f6368;
    color: #5f6368;
    padding: 6px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s;
}

.btn-clear:hover {
    background: #5f6368;
    color: white;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #D0D0D0;
    border-top: 3px solid #2C2C2C;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 16px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.slim-progress-track {
    width: 100%;
    height: 6px;
    background: #D0D0D0;
    border-radius: 3px;
    overflow: hidden;
}

.slim-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #444444, #2C2C2C);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.progress-container .progress-message {
    font-size: 12px;
    color: #666;
    margin-top: 8px;
    font-style: italic;
}

.progress-container .analyze-joke {
    font-size: 13px;
    color: #888;
    margin-top: 8px;
    min-height: 20px;
    line-height: 1.4;
}

.hidden {
    display: none !important;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background: #FFFFFF;
    border: 1px solid #D0D0D0;
    border-radius: 16px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.15);
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: transparent;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #5A5A5A;
    transition: color 0.2s;
}

.modal-close:hover {
    color: #2C2C2C;
}

.modal-content h3 {
    margin-bottom: 20px;
    color: #2C2C2C;
    flex-shrink: 0;
}

#camera-preview {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 20px;
    background: #000;
}

.modal-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    flex-shrink: 0;
    margin-top: 20px;
}

.btn-primary, .btn-secondary, .btn-danger {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-primary {
    background: #2C2C2C;
    color: #FFFFFF;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.btn-primary:hover {
    background: #444444;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transform: translateY(-1px);
}

.btn-secondary {
    background: #E0E0E0;
    border: 1px solid #D0D0D0;
    color: #2C2C2C;
}

.btn-secondary:hover {
    background: #D0D0D0;
    border-color: #BDBDBD;
}

.btn-danger {
    background: #DC3545;
    color: white;
    box-shadow: 0 2px 6px rgba(220, 53, 69, 0.3);
}

.btn-danger:hover {
    background: #C82333;
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.4);
}

.btn-delete-small {
    background: #DC3545;
    color: white;
    border: none;
    border-radius: 4px;
    width: 24px;
    height: 24px;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
}

.btn-delete-small:hover {
    background: #C82333;
    transform: scale(1.1);
}

/* Interaction Details Modal Styles */
.interaction-details {
    padding: 10px 0;
}

.detail-row {
    display: flex;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.detail-label {
    font-weight: 600;
    color: #555;
    min-width: 120px;
    flex-shrink: 0;
}

.detail-value {
    color: #333;
}

.detail-section {
    margin-top: 20px;
}

.detail-section h4 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 14px;
    font-weight: 600;
    border-bottom: 2px solid #3498db;
    padding-bottom: 5px;
}

.detail-content {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 12px 15px;
    font-size: 14px;
    line-height: 1.6;
    white-space: pre-wrap;
    word-wrap: break-word;
    max-height: 300px;
    overflow-y: auto;
}

.query-content {
    background: #e8f4fd;
    border-color: #b8daff;
}

.response-content {
    background: #f0f7f0;
    border-color: #c3e6cb;
}

.sources-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sources-list li {
    padding: 6px 0;
    border-bottom: 1px solid #eee;
}

.sources-list li:last-child {
    border-bottom: none;
}

.sources-list a {
    color: #3498db;
    text-decoration: none;
}

.sources-list a:hover {
    text-decoration: underline;
}

.clickable-row:hover {
    background: #f5f5f5;
}

/* User Menu Styles */
.user-menu {
    position: relative;
}

.user-menu-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    color: white;
    cursor: pointer;
    transition: all 0.2s;
}

.user-menu-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

.user-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
}

.user-name {
    font-size: 14px;
    font-weight: 500;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    min-width: 220px;
    z-index: 1000;
    overflow: hidden;
}

.dropdown-section {
    padding: 8px;
}

.dropdown-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    color: #888;
    padding: 8px 12px 4px;
    letter-spacing: 0.5px;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 12px;
    background: none;
    border: none;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    transition: background 0.15s;
    text-align: left;
}

.dropdown-item:hover {
    background: #f5f5f5;
}

.dropdown-item svg {
    flex-shrink: 0;
    color: #666;
}

.workspace-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    background: #f8f9fa;
    border-radius: 8px;
    margin: 4px;
}

.workspace-name {
    font-weight: 500;
}

.workspace-type-badge {
    font-size: 11px;
    padding: 2px 8px;
    background: #e9ecef;
    border-radius: 10px;
    color: #666;
}

.workspace-type-badge.team {
    background: #d4edda;
    color: #28a745;
}

.dropdown-divider {
    height: 1px;
    background: #eee;
    margin: 4px 0;
}

.logout-item {
    color: #dc3545;
}

.logout-item:hover {
    background: #fff5f5;
}

.logout-item svg {
    color: #dc3545;
}

/* Workspace Modal Styles */
.workspace-modal-content,
.create-team-modal-content,
.join-team-modal-content,
.history-modal-content,
.team-members-modal-content {
    background: #FFFFFF;
    border: 1px solid #D0D0D0;
    max-width: 500px;
    padding: 24px;
    border-radius: 12px;
}

.modal-title {
    color: #2C2C2C;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.modal-subtitle {
    color: #666666;
    font-size: 14px;
    margin-bottom: 20px;
}

.workspace-list {
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 16px;
}

.workspace-item-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 12px 16px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.workspace-item-btn:hover {
    background: #e9ecef;
    border-color: #dee2e6;
}

.workspace-item-btn.active {
    background: #e8f4fd;
    border-color: #3498db;
}

.workspace-item-info {
    text-align: left;
}

.workspace-item-name {
    font-weight: 500;
    color: #333;
    margin-bottom: 2px;
}

.workspace-item-meta {
    font-size: 12px;
    color: #888;
}

.workspace-actions {
    display: flex;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid #eee;
}

.workspace-actions button {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* History Modal */
.history-modal-content {
    max-width: 600px;
}

.history-list {
    max-height: 400px;
    overflow-y: auto;
}

.history-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: background 0.15s;
}

.history-item:hover {
    background: #f8f9fa;
}

.history-item:last-child {
    border-bottom: none;
}

.history-verdict {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    color: white;
    flex-shrink: 0;
}

.history-verdict.true {
    background: #28a745;
}

.history-verdict.false {
    background: #dc3545;
}

.history-verdict.partial {
    background: #ffc107;
    color: #333;
}

.history-verdict.chat {
    background: #6c757d;
}

.history-content {
    flex: 1;
    min-width: 0;
}

.history-query {
    font-weight: 500;
    color: #333;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.history-meta {
    font-size: 12px;
    color: #888;
}

.history-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding-top: 16px;
    border-top: 1px solid #eee;
    margin-top: 16px;
}

.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #888;
}

.empty-state svg {
    width: 48px;
    height: 48px;
    margin-bottom: 12px;
    opacity: 0.5;
}

/* Team Members Modal */
.members-list {
    max-height: 250px;
    overflow-y: auto;
    margin-bottom: 20px;
}

.member-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.member-item:last-child {
    border-bottom: none;
}

.member-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: #666;
}

.member-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.member-info {
    flex: 1;
}

.member-name {
    font-weight: 500;
    color: #333;
}

.member-role {
    font-size: 12px;
    color: #888;
    text-transform: capitalize;
}

.invite-section {
    padding-top: 16px;
    border-top: 1px solid #eee;
}

.invite-section h3 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #333;
}

.invite-controls {
    display: flex;
    gap: 12px;
}

.invite-controls select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
}

.invite-link-display {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.invite-link-display input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 13px;
    background: #f8f9fa;
}

.recording-indicator {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: center;
    margin-bottom: 16px;
    color: #dc3545;
    font-weight: 600;
}

.pulse {
    width: 12px;
    height: 12px;
    background: #dc3545;
    border-radius: 50%;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.1); }
}

/* Login Modal Styles - Light Theme */
.login-modal-content {
    background: #FFFFFF;
    border: 1px solid #D0D0D0;
    max-width: 400px;
    padding: 32px;
    border-radius: 12px;
}

.login-modal-content .modal-close {
    color: #666666;
}

.login-modal-content .modal-close:hover {
    color: #2C2C2C;
}

.login-form-container {
    text-align: center;
}

.login-form-container.hidden {
    display: none;
}

.login-title {
    color: #2C2C2C;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.login-subtitle {
    color: #666666;
    font-size: 14px;
    margin-bottom: 24px;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.btn-social {
    width: 100%;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.2s;
    text-decoration: none;
}

.btn-google {
    background: #FFFFFF;
    color: #2C2C2C;
    border: 1px solid #D0D0D0;
}

.btn-google:hover {
    background: #F5F5F5;
    border-color: #B0B0B0;
}

.btn-apple {
    background: #000000;
    color: #FFFFFF;
    border: 1px solid #000000;
}

.btn-apple:hover {
    background: #333333;
}

.btn-github {
    background: #24292e;
    color: #FFFFFF;
    border: 1px solid #24292e;
}

.btn-github:hover {
    background: #3a3f44;
}

.login-footer {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid #E0E0E0;
    color: #666666;
    font-size: 13px;
}

.login-footer a {
    color: #4A90D9;
    text-decoration: none;
}

.login-footer a:hover {
    text-decoration: underline;
}

/* Waiting List Modal Styles */
.waitlist-modal-content {
    max-width: 800px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
}

.waitlist-split-layout {
    display: flex;
    gap: 24px;
    align-items: stretch;
}

.waitlist-left,
.waitlist-right {
    flex: 1;
    padding: 16px;
    display: flex;
    flex-direction: column;
}

.waitlist-form-fields {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.exclusive-offer {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.waitlist-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    flex-shrink: 0;
}

.waitlist-divider .divider-text {
    background: white;
    padding: 8px;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 600;
    color: #5A5A5A;
    border: 1px solid #D0D0D0;
}

.waitlist-form-fields {
    margin-top: 16px;
}

/* Mobile-only elements - hidden by default on desktop */
.mobile-only-btn {
    display: none;
}

.mobile-section-divider {
    display: none;
}

/* Desktop-only elements - visible by default */
.waitlist-buttons-row.desktop-only {
    display: flex;
}

@media (max-width: 768px) {
    .waitlist-split-layout {
        flex-direction: column;
    }
    
    .waitlist-divider {
        width: 100%;
        height: 40px;
    }
    
    .waitlist-divider-line {
        display: none;
    }
    
    /* Hide the desktop buttons row on mobile */
    .waitlist-buttons-row.desktop-only {
        display: none !important;
    }
    
    /* Show mobile-only buttons */
    .waitlist-left .mobile-only-btn,
    .exclusive-offer .mobile-only-btn,
    #submit-waitlist-mobile,
    #stripe-payment-link-mobile {
        display: block !important;
        width: 100%;
        margin-top: 20px;
    }
    
    /* Show section dividers on mobile */
    .waitlist-modal-content .mobile-section-divider {
        display: block !important;
        width: 100%;
        height: 1px;
        background: linear-gradient(to right, transparent, #D0D0D0, #444444, #D0D0D0, transparent);
        margin: 24px 0;
    }
    
    .waitlist-submit-btn {
        width: 100%;
    }
    
    /* Referral divider specific styling - between adopters and share message */
    .waitlist-modal-content .mobile-section-divider.referral-divider {
        display: block !important;
        margin-top: 20px;
        margin-bottom: 16px;
    }
}

#audio-timer {
    text-align: center;
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #495057;
}

@media (max-width: 768px) {
    .main-header {
        padding: 12px 16px;
    }
    
    .header-title h1 {
        font-size: 1.1rem;
    }
    
    .header-btn {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
    
    .welcome-screen {
        padding: 0 20px;
    }
    
    .intro-headline {
        font-size: clamp(16px, 5.5vw, 28px);
    }
    
    .intro-content {
        width: 100%;
        box-sizing: border-box;
    }
    
    .input-disclaimer {
        font-size: 8px;
    }
    
    .intro-question {
        font-size: 0.95rem;
        margin-bottom: 16px;
    }
    
    .intro-features {
        padding: 16px;
    }
    
    .intro-main-feature h3 {
        font-size: 1rem;
    }
    
    .intro-main-feature p {
        font-size: 0.85rem;
    }
    
    .intro-feature-item strong {
        font-size: 0.9rem;
    }
    
    .intro-feature-item p {
        font-size: 0.8rem;
    }
    
    .content-area {
        padding: 20px 12px 12px;
    }
    
    .input-section {
        padding: 12px 10px;
        padding-bottom: max(12px, env(safe-area-inset-bottom));
    }
    
    .input-bar {
        padding: 6px 8px;
        gap: 8px;
    }
    
    #text-input {
        font-size: 16px;
        padding: 0 8px;
        line-height: 24px;
        min-width: 0;
    }
    
    .action-btn {
        width: 32px;
        height: 32px;
        flex-shrink: 0;
    }
    
    .action-btn svg {
        width: 18px;
        height: 18px;
    }
    
    .action-buttons {
        flex-shrink: 0;
    }
    
    .message-card {
        padding: 12px;
    }
}

/* Extra small mobile devices */
@media (max-width: 480px) {
    .main-header {
        padding: 10px 12px;
    }
    
    .header-title h1 {
        font-size: 0.95rem;
    }
    
    .header-btn {
        padding: 5px 10px;
        font-size: 0.75rem;
    }
    
    .welcome-screen {
        padding: 0 20px;
    }
    
    .input-disclaimer {
        font-size: 7px;
    }
    
    .intro-question {
        font-size: 0.9rem;
        margin-bottom: 12px;
    }
    
    .intro-features {
        padding: 14px;
    }
    
    .intro-feature-list {
        gap: 10px;
    }
    
    .feature-icon {
        font-size: 1rem;
        width: 24px;
    }
    
    .content-area {
        padding: 16px 10px 10px;
    }
    
    .input-section {
        padding: 10px 8px;
        padding-bottom: max(10px, env(safe-area-inset-bottom));
    }
    
    .input-bar {
        padding: 5px 6px;
        gap: 6px;
        border-radius: 20px;
    }
    
    .action-btn {
        width: 28px;
        height: 28px;
        padding: 5px;
    }
    
    .action-btn svg {
        width: 16px;
        height: 16px;
    }
    
    #text-input {
        font-size: 16px;
        padding: 0 6px;
        line-height: 24px;
    }
}

/* Very small mobile devices (iPhone SE, small Android) */
@media (max-width: 360px) {
    .input-disclaimer {
        font-size: 6px;
    }
}

/* Breakdown Section Styles for Main Screen */
.breakdown-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.breakdown-container {
    background: #f8f9fa;
    border-radius: 8px;
    overflow: hidden;
}

.breakdown-toggle {
    width: 100%;
    background: #2C2C2C;
    color: white;
    border: none;
    padding: 12px 16px;
    text-align: left;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1em;
    transition: all 0.2s;
}

.breakdown-toggle:hover {
    background: #444444;
}

.breakdown-icon {
    font-size: 0.8em;
    transition: transform 0.2s;
}

.breakdown-details {
    padding: 16px;
}

.breakdown-details.hidden {
    display: none;
}

.breakdown-part {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 12px;
    display: flex;
    gap: 12px;
}

.breakdown-part:last-child {
    margin-bottom: 0;
}

.part-number {
    background: #2C2C2C;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.85em;
    flex-shrink: 0;
}

.part-content {
    flex: 1;
}

.part-claim {
    margin-bottom: 8px;
    line-height: 1.5;
}

.part-verdict {
    display: flex;
    gap: 8px;
    align-items: center;
    margin: 8px 0;
}

.part-correction {
    background: #ffe5e5;
    border-left: 3px solid #dc3545;
    padding: 8px 10px;
    margin: 8px 0;
    border-radius: 4px;
    font-size: 0.9em;
}

.part-evidence {
    background: #e7f3ff;
    border-left: 3px solid #007bff;
    padding: 8px 10px;
    margin: 8px 0;
    border-radius: 4px;
    font-size: 0.85em;
    color: #555;
}

/* Feedback Modal Styles */
.feedback-modal-content {
    max-width: 600px;
    transition: max-width 0.3s ease;
}

.feedback-modal-content.wide-modal {
    max-width: 900px;
}

.modal-subtitle {
    color: #6c757d;
    margin-bottom: 24px;
    font-size: 0.95rem;
    flex-shrink: 0;
}

.feedback-form {
    margin-bottom: 20px;
    overflow-y: auto;
    flex: 1;
    padding-right: 5px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #2C2C2C;
    font-weight: 500;
    font-size: 0.95rem;
}

.required-asterisk {
    color: #e53935;
    font-weight: bold;
}

.form-group textarea,
.form-group input[type="text"],
.form-group input[type="password"],
.form-group input[type="email"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #ced4da;
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: inherit;
    resize: vertical;
    transition: border-color 0.2s;
}

.form-group textarea:focus,
.form-group input[type="text"]:focus,
.form-group input[type="password"]:focus,
.form-group input[type="email"]:focus {
    outline: none;
    border-color: #2C2C2C;
}

.star-rating {
    display: flex;
    gap: 8px;
    font-size: 2.5rem;
    margin-top: 8px;
}

.star {
    cursor: pointer;
    color: #ddd;
    transition: all 0.2s;
}

.star:hover,
.star.active {
    color: #ffc107;
    transform: scale(1.1);
}

/* Likelihood Rating Styles */
.likelihood-rating {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin-top: 12px;
}

.likelihood-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    flex: 1;
    text-align: center;
}

.likelihood-option input[type="radio"] {
    display: none;
}

.likelihood-label {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 2px solid #ced4da;
    border-radius: 50%;
    font-weight: 600;
    font-size: 1rem;
    color: #2C2C2C;
    transition: all 0.2s ease;
    background: white;
}

.likelihood-option:hover .likelihood-label {
    border-color: #2C2C2C;
    color: #2C2C2C;
}

.likelihood-option input[type="radio"]:checked + .likelihood-label {
    background: #2C2C2C;
    border-color: #2C2C2C;
    color: white;
    transform: scale(1.1);
}

.likelihood-text {
    font-size: 0.7rem;
    color: #5A5A5A;
    margin-top: 6px;
    max-width: 60px;
    line-height: 1.2;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.name-fields {
    margin-top: 12px;
}

/* Feedback Separator and Waiting List Benefits */
.feedback-separator {
    height: 1px;
    background: linear-gradient(to right, transparent, #ced4da, transparent);
    margin: 24px 0;
}

.waiting-list-benefits {
    background: #F5F5F5;
    border: 1px solid #D0D0D0;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
}

.waiting-list-benefits h3 {
    color: #2C2C2C;
    font-size: 1.1rem;
    margin: 0 0 10px 0;
    font-weight: 600;
}

.waiting-list-benefits > p {
    color: #5A5A5A;
    font-size: 0.9rem;
    margin: 0 0 16px 0;
    line-height: 1.5;
}

.benefits-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.benefits-list li {
    padding: 8px 0;
    padding-left: 20px;
    color: #2C2C2C;
    font-size: 0.9rem;
    line-height: 1.5;
    position: relative;
}

.benefits-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: #2C2C2C;
    border-radius: 50%;
}

.benefits-list li strong {
    color: #2C2C2C;
}

/* Referral Message */
.referral-message {
    margin-top: 16px;
    padding: 14px 16px;
    background: linear-gradient(135deg, #fef9f3 0%, #fdf4eb 100%);
    border: 1px solid #f5e6d3;
    border-left: 3px solid #f0a858;
    border-radius: 8px;
    color: #7a6548;
    font-size: 0.85rem;
    line-height: 1.6;
    font-style: italic;
}

/* Feedback Split Layout (Side-by-Side) */
.feedback-split-layout {
    display: flex;
    gap: 0;
    min-height: 400px;
}

.split-left {
    flex: 6;
    padding: 0 20px 0 0;
}

.split-right {
    flex: 4;
    padding: 0 0 0 20px;
}

.split-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 40px;
    flex-shrink: 0;
}

.split-divider::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background: linear-gradient(to bottom, transparent, #D0D0D0, #2C2C2C, #D0D0D0, transparent);
    transform: translateX(-50%);
}

.divider-text {
    background: white;
    color: #2C2C2C;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 8px 0;
    z-index: 1;
}

/* Exclusive Offer Section */
.exclusive-offer {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.exclusive-offer h3 {
    color: #2C2C2C;
    font-size: 1.1rem;
    margin: 0 0 16px 0;
    font-weight: 600;
    text-align: center;
}

.offer-highlight {
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
    border: 2px solid #2C2C2C;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 0;
}

.offer-badge {
    display: inline-block;
    background: linear-gradient(135deg, #2C2C2C 0%, #444444 100%);
    color: white;
    font-weight: 700;
    font-size: 1rem;
    padding: 6px 16px;
    border-radius: 20px;
    margin-bottom: 12px;
}

.offer-highlight p {
    color: #495057;
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0 0 8px 0;
}

.offer-highlight p strong {
    color: #2C2C2C;
}

.offer-detail {
    font-size: 0.85rem;
    color: #5A5A5A;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.offer-note {
    font-size: 0.85rem !important;
    color: #6c757d !important;
    font-style: italic;
}

.forever-highlight {
    font-weight: 700;
    color: #2C2C2C !important;
    font-style: normal;
    font-size: 1rem;
}

.qr-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1;
    padding: 8px;
}

.qr-image {
    max-width: 180px;
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(44, 44, 44, 0.15);
}

.stripe-payment-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 16px;
}

.stripe-payment-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #2C2C2C;
    color: white;
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(44, 44, 44, 0.3);
    transition: all 0.2s ease;
}

.stripe-payment-btn:hover {
    transform: translateY(-2px);
    background: #444444;
    box-shadow: 0 6px 20px rgba(44, 44, 44, 0.4);
}

.waitlist-divider-line {
    width: 1px;
    background: #e0e0e0;
    margin: 0 20px;
    align-self: stretch;
}

.mission-text {
    margin-bottom: 16px;
}

.mission-text p {
    font-size: 0.9rem;
    color: #5A5A5A;
    line-height: 1.6;
    margin-bottom: 12px;
}

.mission-text p:last-child {
    margin-bottom: 0;
}

.waitlist-button-container {
    margin-top: 16px;
}

.waitlist-submit-btn {
    width: 100%;
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 600;
}

.mission-heading {
    margin-top: 0;
    margin-bottom: 12px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

@media (max-width: 768px) {
    .mission-heading {
        font-size: 1.1rem;
        line-height: 1.3;
    }
}

.waitlist-buttons-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.referral-message-footer {
    text-align: center;
    font-size: 0.85rem;
    color: #5A5A5A;
    margin-top: 16px;
    font-style: italic;
}

/* Responsive: Stack on smaller screens */
@media (max-width: 768px) {
    .feedback-split-layout {
        flex-direction: column;
        gap: 20px;
    }
    
    .split-left,
    .split-right {
        padding: 0;
    }
    
    .split-divider {
        width: 100%;
        height: 50px;
        flex-direction: row;
    }
    
    .split-divider::before {
        top: 50%;
        bottom: auto;
        left: 0;
        right: 0;
        width: auto;
        height: 2px;
        transform: translateY(-50%);
        background: linear-gradient(to right, transparent, #D0D0D0, #2C2C2C, #D0D0D0, transparent);
    }
    
    .divider-text {
        padding: 0 12px;
    }
    
    .qr-image {
        max-width: 150px;
    }
}

/* Welcome Modal Styles */
.welcome-modal-content {
    text-align: center;
}

.welcome-modal-content h2 {
    color: #2C2C2C;
    margin-bottom: 16px;
    font-size: 1.75rem;
}

.welcome-modal-content p {
    color: #5A5A5A;
    margin-bottom: 20px;
    line-height: 1.6;
}

.welcome-features {
    list-style: none;
    padding: 0;
    margin: 24px 0;
    text-align: left;
}

.welcome-features li {
    padding: 10px 16px;
    margin-bottom: 8px;
    background: #F5F5F5;
    border-radius: 8px;
    color: #2C2C2C;
    font-size: 0.95rem;
}

.welcome-cta {
    font-weight: 500;
    color: #2C2C2C;
    margin-top: 20px;
}

/* Payment Method Section */
.payment-method-section {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #e0e7ff;
}

.payment-toggle {
    margin-bottom: 16px;
}

.toggle-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    color: #2C2C2C;
    font-size: 0.95rem;
}

.toggle-label input[type="checkbox"] {
    margin-top: 3px;
    width: 18px;
    height: 18px;
    accent-color: #2C2C2C;
    cursor: pointer;
}

.toggle-text {
    font-weight: 500;
}

.payment-note {
    margin: 8px 0 0 28px;
    font-size: 0.85rem;
    color: #5A5A5A;
    line-height: 1.4;
}

.payment-form-container {
    background: #F5F5F5;
    border-radius: 12px;
    padding: 20px;
    margin-top: 12px;
    border: 1px solid #D0D0D0;
}

#payment-element {
    min-height: 120px;
}

#payment-message {
    color: #DC3545;
    font-size: 0.9rem;
    margin-top: 12px;
    padding: 10px;
    background: rgba(220, 53, 69, 0.1);
    border-radius: 6px;
    text-align: center;
}

#payment-message.success {
    color: #10b981;
    background: rgba(16, 185, 129, 0.1);
}

.payment-method-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.payment-tab {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 12px 8px;
    background: #FFFFFF;
    border: 2px solid #D0D0D0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #5A5A5A;
}

.payment-tab:hover {
    border-color: #2C2C2C;
    background: #F5F5F5;
}

.payment-tab.active {
    border-color: #2C2C2C;
    background: #2C2C2C;
    color: #FFFFFF;
}

.payment-tab .tab-icon {
    font-size: 1.5rem;
}

.payment-tab .tab-label {
    font-size: 0.8rem;
    font-weight: 500;
}

.payment-note {
    margin: 0 0 16px 0;
    font-size: 0.85rem;
    color: #5A5A5A;
    line-height: 1.4;
    text-align: center;
    padding: 8px 12px;
    background: #F5F5F5;
    border-radius: 6px;
}

.payment-note.warning {
    background: rgba(251, 191, 36, 0.15);
    color: #B45309;
}

.wallet-redirect-info {
    text-align: center;
    padding: 24px 16px;
    color: #5A5A5A;
    font-size: 0.95rem;
    line-height: 1.5;
}
