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

:root {
    --bg: #070b14;
    --panel: #0d1320;
    --panel-2: #111827;
    --border: rgba(148, 163, 184, 0.14);
    --text: #f8fafc;
    --muted: #94a3b8;
    --accent: #7c3aed;
    --accent-2: #06b6d4;
    --success: #22c55e;
    --warning: #f59e0b;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    background:
        radial-gradient(
            circle at 70% 10%,
            rgba(124, 58, 237, 0.15),
            transparent 30%
        ),
        radial-gradient(
            circle at 10% 40%,
            rgba(6, 182, 212, 0.08),
            transparent 28%
        ),
        var(--bg);

    color: var(--text);
    min-height: 100vh;
}


/* =====================================================
   APP SHELL
===================================================== */

.app-shell {
    display: flex;
    min-height: 100vh;
}


/* =====================================================
   SIDEBAR
===================================================== */

.sidebar {
    width: 255px;
    min-height: 100vh;

    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;

    display: flex;
    flex-direction: column;

    padding: 24px 18px;

    background:
        linear-gradient(
            180deg,
            rgba(15, 23, 42, 0.98),
            rgba(7, 11, 20, 0.98)
        );

    border-right: 1px solid var(--border);

    z-index: 20;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;

    padding: 4px 8px 28px;
}

.brand-icon {
    width: 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 13px;

    font-size: 22px;
    font-weight: 800;

    background:
        linear-gradient(
            135deg,
            #7c3aed,
            #2563eb
        );

    box-shadow:
        0 10px 30px rgba(124, 58, 237, 0.3);
}

.brand-name {
    font-size: 17px;
    font-weight: 800;
    letter-spacing: -0.3px;
}

.brand-subtitle {
    margin-top: 2px;

    color: var(--muted);

    font-size: 11px;
}

.sidebar-label {
    padding: 0 10px 10px;

    color: #64748b;

    font-size: 10px;
    font-weight: 800;

    letter-spacing: 1.5px;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;

    padding: 12px 13px;

    border: 1px solid transparent;
    border-radius: 11px;

    color: #94a3b8;

    font-size: 13px;
    font-weight: 600;

    transition:
        background 0.2s ease,
        color 0.2s ease,
        border 0.2s ease;
}

.nav-item span:first-child {
    width: 18px;

    text-align: center;

    color: #64748b;
}

.nav-item.active {
    color: white;

    background:
        linear-gradient(
            90deg,
            rgba(124, 58, 237, 0.2),
            rgba(124, 58, 237, 0.06)
        );

    border-color:
        rgba(124, 58, 237, 0.25);
}

.nav-item.active span:first-child {
    color: #a78bfa;
}

.nav-item:hover {
    color: white;

    background: rgba(255, 255, 255, 0.04);
}

.sidebar-bottom {
    margin-top: auto;
}

.agent-card {
    padding: 14px;

    border-radius: 13px;

    background:
        linear-gradient(
            145deg,
            rgba(34, 197, 94, 0.08),
            rgba(15, 23, 42, 0.5)
        );

    border: 1px solid rgba(34, 197, 94, 0.13);
}

.agent-card-top {
    display: flex;
    align-items: center;
    gap: 7px;

    font-size: 12px;
    font-weight: 700;
}

.online-dot,
.status-dot {
    width: 7px;
    height: 7px;

    display: inline-block;

    border-radius: 50%;

    background: var(--success);

    box-shadow:
        0 0 10px rgba(34, 197, 94, 0.8);
}

.agent-card p {
    margin-top: 8px;

    color: #64748b;

    font-size: 11px;
    line-height: 1.5;
}

.architecture-mini {
    margin-top: 14px;
    padding: 12px 8px;
}

.mini-title {
    margin-bottom: 8px;

    color: #475569;

    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1.2px;
}

.mini-flow {
    display: flex;
    align-items: center;
    gap: 5px;

    color: #64748b;

    font-size: 9px;
}

.mini-flow b {
    color: #475569;
}


/* =====================================================
   MAIN
===================================================== */

.main-content {
    width: calc(100% - 255px);

    margin-left: 255px;

    min-height: 100vh;

    padding: 0 42px 50px;
}


/* =====================================================
   TOPBAR
===================================================== */

.topbar {
    max-width: 1180px;

    margin: auto;

    min-height: 105px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    border-bottom: 1px solid var(--border);
}

.eyebrow,
.section-kicker {
    color: #8b5cf6;

    font-size: 10px;
    font-weight: 800;

    letter-spacing: 1.7px;
}

.topbar h1 {
    margin-top: 5px;

    font-size: 24px;
    letter-spacing: -0.8px;
}

.topbar p {
    margin-top: 4px;

    color: var(--muted);

    font-size: 12px;
}

.topbar-status {
    display: flex;
    align-items: center;
    gap: 9px;

    padding: 9px 13px;

    border: 1px solid rgba(34, 197, 94, 0.14);
    border-radius: 10px;

    background: rgba(34, 197, 94, 0.04);
}

.topbar-status strong {
    display: block;

    font-size: 11px;
}

.topbar-status small {
    display: block;

    margin-top: 2px;

    color: #64748b;

    font-size: 9px;
}


/* =====================================================
   HERO
===================================================== */

.hero-section {
    max-width: 940px;

    margin: 0 auto;

    padding: 72px 0 65px;

    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;

    padding: 7px 12px;

    border: 1px solid rgba(124, 58, 237, 0.25);
    border-radius: 999px;

    color: #c4b5fd;

    background: rgba(124, 58, 237, 0.08);

    font-size: 10px;
    font-weight: 700;
}

.hero-badge span {
    color: #a78bfa;
}

.hero-section h2 {
    margin-top: 22px;

    font-size: clamp(42px, 6vw, 70px);

    line-height: 0.98;

    letter-spacing: -3.5px;

    font-weight: 850;
}

.hero-section h2 span {
    background:
        linear-gradient(
            90deg,
            #a78bfa,
            #22d3ee
        );

    -webkit-background-clip: text;
    background-clip: text;

    color: transparent;
}

.hero-description {
    max-width: 650px;

    margin: 22px auto 0;

    color: #94a3b8;

    font-size: 14px;

    line-height: 1.7;
}


/* =====================================================
   ASK BOX
===================================================== */

.ask-box {
    max-width: 760px;

    margin: 35px auto 0;

    padding: 6px;

    display: flex;
    align-items: center;

    border: 1px solid rgba(124, 58, 237, 0.35);

    border-radius: 15px;

    background:
        rgba(15, 23, 42, 0.88);

    box-shadow:
        0 18px 70px rgba(0, 0, 0, 0.3),
        0 0 45px rgba(124, 58, 237, 0.08);
}

.input-wrapper {
    flex: 1;

    display: flex;
    align-items: center;

    padding-left: 14px;
}

.input-icon {
    color: #64748b;

    font-size: 19px;
}

#questionInput {
    width: 100%;

    padding: 15px 12px;

    outline: none;

    border: none;

    background: transparent;

    color: white;

    font-size: 13px;
}

#questionInput::placeholder {
    color: #64748b;
}

#askButton {
    min-width: 120px;

    padding: 13px 15px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    border: none;
    border-radius: 10px;

    background:
        linear-gradient(
            135deg,
            #7c3aed,
            #4f46e5
        );

    color: white;

    font-size: 12px;
    font-weight: 800;

    cursor: pointer;

    box-shadow:
        0 8px 25px rgba(124, 58, 237, 0.25);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

#askButton:hover {
    transform: translateY(-1px);

    box-shadow:
        0 12px 32px rgba(124, 58, 237, 0.38);
}

.button-arrow {
    font-size: 15px;
}


/* =====================================================
   DEMO PROMPTS
===================================================== */

.demo-area {
    margin-top: 32px;

    text-align: left;
}

.demo-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-bottom: 11px;
}

.demo-heading span {
    color: #64748b;

    font-size: 9px;
    font-weight: 800;

    letter-spacing: 1.5px;
}

.demo-heading small {
    color: #475569;

    font-size: 10px;
}

.demo-prompts {
    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 9px;
}

.demo-prompt {
    min-height: 105px;

    padding: 13px;

    display: flex;
    flex-direction: column;
    align-items: flex-start;

    position: relative;

    text-align: left;

    border: 1px solid var(--border);

    border-radius: 13px;

    background:
        rgba(15, 23, 42, 0.65);

    color: white;

    cursor: pointer;

    transition:
        transform 0.2s ease,
        border 0.2s ease,
        background 0.2s ease;
}

.demo-prompt:hover {
    transform: translateY(-3px);

    border-color:
        rgba(124, 58, 237, 0.4);

    background:
        rgba(30, 41, 59, 0.75);
}

.prompt-icon {
    width: 29px;
    height: 29px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 12px;

    border-radius: 8px;

    font-size: 13px;
    font-weight: 800;
}

.calculator-icon {
    background: rgba(59, 130, 246, 0.12);
    color: #60a5fa;
}

.search-icon {
    background: rgba(6, 182, 212, 0.12);
    color: #22d3ee;
}

.quiz-icon {
    background: rgba(168, 85, 247, 0.12);
    color: #c084fc;
}

.plan-icon {
    background: rgba(34, 197, 94, 0.12);
    color: #4ade80;
}

.demo-prompt strong {
    display: block;

    font-size: 11px;
}

.demo-prompt small {
    display: block;

    margin-top: 4px;

    color: #64748b;

    font-size: 9px;

    line-height: 1.4;
}

.demo-prompt > b {
    position: absolute;

    right: 12px;
    bottom: 11px;

    color: #475569;

    font-size: 13px;
}


/* =====================================================
   COMMON SECTIONS
===================================================== */

.response-panel,
.workflow-section,
.capabilities-section {
    max-width: 1180px;

    margin: 0 auto 35px;
}

.response-panel {
    padding: 24px;

    border:
        1px solid rgba(124, 58, 237, 0.18);

    border-radius: 17px;

    background:
        linear-gradient(
            145deg,
            rgba(17, 24, 39, 0.9),
            rgba(13, 19, 32, 0.85)
        );

    box-shadow:
        0 20px 70px rgba(0, 0, 0, 0.18);
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    margin-bottom: 18px;
}

.section-header h3 {
    margin-top: 5px;

    font-size: 19px;

    letter-spacing: -0.5px;
}

.validated-badge {
    display: flex;
    align-items: center;
    gap: 6px;

    padding: 6px 9px;

    border: 1px solid rgba(34, 197, 94, 0.16);
    border-radius: 7px;

    background: rgba(34, 197, 94, 0.06);

    color: #86efac;

    font-size: 9px;
    font-weight: 800;

    text-transform: uppercase;
}

.answer-box {
    padding: 16px;

    border-radius: 12px;

    background:
        rgba(2, 6, 23, 0.65);

    border: 1px solid var(--border);

    color: #dbeafe;

    font-size: 13px;

    line-height: 1.7;

    white-space: normal;

    height: auto;
    min-height: 0;
}
    


/* =====================================================
   SOURCES
===================================================== */

.sources-section {
    margin-top: 20px;

    padding-top: 18px;

    border-top: 1px solid var(--border);
}

.sources-title {
    display: flex;
    align-items: center;
    gap: 7px;

    margin-bottom: 10px;

    color: #94a3b8;

    font-size: 11px;
    font-weight: 800;
}

#sourcesBox {
    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 8px;
}

#sourcesBox a {
    display: block;

    padding: 11px;

    border: 1px solid var(--border);
    border-radius: 9px;

    color: #93c5fd;

    background: rgba(15, 23, 42, 0.5);

    font-size: 10px;

    text-decoration: none;

    transition: border 0.2s ease;
}

#sourcesBox a:hover {
    border-color:
        rgba(59, 130, 246, 0.35);
}


/* =====================================================
   WORKFLOW
===================================================== */

.workflow-section {
    padding: 25px;

    border: 1px solid var(--border);

    border-radius: 17px;

    background:
        rgba(13, 19, 32, 0.65);
}

.workflow-caption {
    color: #64748b;

    font-size: 10px;
}

.workflow-container {
    display: flex;
    align-items: center;

    overflow-x: auto;

    padding: 12px 4px 20px;
}

.workflow-node {
    min-width: 170px;

    padding: 14px;

    display: flex;
    align-items: center;
    gap: 11px;

    border: 1px solid var(--border);

    border-radius: 12px;

    background:
        rgba(15, 23, 42, 0.72);

    transition:
        border 0.3s ease,
        background 0.3s ease,
        box-shadow 0.3s ease;
}

.workflow-icon {
    width: 32px;
    height: 32px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 9px;

    background:
        rgba(124, 58, 237, 0.1);

    color: #a78bfa;

    font-size: 9px;
    font-weight: 900;
}

.workflow-title {
    font-size: 10px;
    font-weight: 800;
}

.node-status {
    margin-top: 4px;

    color: #475569;

    font-size: 8px;

    text-transform: uppercase;

    letter-spacing: 0.7px;
}

.workflow-line {
    width: 35px;
    height: 1px;

    flex-shrink: 0;

    background:
        linear-gradient(
            90deg,
            #334155,
            #475569
        );
}

.workflow-node.active {
    border-color:
        rgba(124, 58, 237, 0.45);

    background:
        rgba(124, 58, 237, 0.08);

    box-shadow:
        0 0 25px rgba(124, 58, 237, 0.1);
}

.workflow-node.active .workflow-icon {
    background:
        rgba(124, 58, 237, 0.2);

    color: #c4b5fd;
}

.workflow-node.success {
    border-color:
        rgba(34, 197, 94, 0.35);

    background:
        rgba(34, 197, 94, 0.06);
}

.workflow-node.success .workflow-icon {
    background:
        rgba(34, 197, 94, 0.12);

    color: #4ade80;
}

.workflow-node.success .node-status {
    color: #4ade80;
}


/* =====================================================
   AGENT PRINCIPLE
===================================================== */

.agent-principle {
    margin-top: 12px;

    padding: 15px;

    display: flex;
    align-items: flex-start;
    gap: 12px;

    border: 1px solid rgba(6, 182, 212, 0.13);

    border-radius: 11px;

    background:
        rgba(6, 182, 212, 0.035);
}

.principle-icon {
    width: 29px;
    height: 29px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 8px;

    color: #67e8f9;

    background:
        rgba(6, 182, 212, 0.1);
}

.agent-principle strong {
    font-size: 11px;
}

.agent-principle p {
    margin-top: 4px;

    color: #64748b;

    font-size: 10px;

    line-height: 1.5;
}


/* =====================================================
   CAPABILITIES
===================================================== */

.capabilities-section {
    padding: 5px 0 10px;
}

.capabilities-section h3 {
    margin-top: 5px;

    font-size: 19px;

    letter-spacing: -0.5px;
}

.capability-grid {
    display: grid;

    grid-template-columns:
        repeat(6, 1fr);

    gap: 9px;

    margin-top: 17px;
}

.capability-card {
    min-height: 105px;

    padding: 14px;

    border: 1px solid var(--border);

    border-radius: 12px;

    background:
        rgba(13, 19, 32, 0.6);

    transition:
        transform 0.2s ease,
        border 0.2s ease;
}

.capability-card:hover {
    transform: translateY(-2px);

    border-color:
        rgba(124, 58, 237, 0.3);
}

.capability-card > span {
    width: 28px;
    height: 28px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 11px;

    border-radius: 7px;

    background: rgba(124, 58, 237, 0.1);

    color: #a78bfa;

    font-size: 12px;
    font-weight: 800;
}

.capability-card strong {
    display: block;

    font-size: 10px;
}

.capability-card small {
    display: block;

    margin-top: 4px;

    color: #64748b;

    font-size: 8px;

    line-height: 1.4;
}


/* =====================================================
   FOOTER
===================================================== */

.footer {
    max-width: 1180px;

    margin: 25px auto 0;

    padding: 20px 0;

    display: flex;
    align-items: center;
    justify-content: space-between;

    border-top: 1px solid var(--border);

    color: #475569;

    font-size: 9px;
}

.footer strong {
    color: #64748b;

    margin-right: 8px;
}

.footer-tech {
    color: #334155;
}


/* =====================================================
   RESPONSIVE
===================================================== */

@media (max-width: 1100px) {

    .demo-prompts {
        grid-template-columns:
            repeat(2, 1fr);
    }

    .capability-grid {
        grid-template-columns:
            repeat(3, 1fr);
    }

    .main-content {
        padding-left: 25px;
        padding-right: 25px;
    }
}


@media (max-width: 800px) {

    .sidebar {
        width: 70px;

        padding:
            18px 10px;
    }

    .brand {
        justify-content: center;
        padding-left: 0;
        padding-right: 0;
    }

    .brand > div:not(.brand-icon),
    .sidebar-label,
    .nav-item span:last-child,
    .sidebar-bottom {
        display: none;
    }

    .nav-item {
        justify-content: center;
    }

    .main-content {
        width: calc(100% - 70px);

        margin-left: 70px;

        padding:
            0 18px 40px;
    }

    .topbar {
        min-height: 90px;
    }

    .topbar p {
        display: none;
    }

    .topbar-status {
        padding: 7px 9px;
    }

    .hero-section {
        padding-top: 55px;
    }

    .hero-section h2 {
        font-size: 47px;
        letter-spacing: -2.4px;
    }

    .workflow-container {
        align-items: stretch;
    }

    .workflow-line {
        width: 18px;
    }
}


@media (max-width: 560px) {

    .topbar {
        align-items: flex-start;

        padding-top: 20px;
        padding-bottom: 20px;
    }

    .topbar h1 {
        font-size: 20px;
    }

    .topbar-status {
        display: none;
    }

    .hero-section h2 {
        font-size: 39px;
    }

    .hero-description {
        font-size: 12px;
    }

    .ask-box {
        flex-direction: column;

        align-items: stretch;
    }

    .input-wrapper {
        padding: 0 8px;
    }

    #askButton {
        width: 100%;
    }

    .demo-prompts {
        grid-template-columns: 1fr;
    }

    #sourcesBox {
        grid-template-columns: 1fr;
    }

    .capability-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }

    .workflow-section,
    .response-panel {
        padding: 18px;
    }

    .footer {
        flex-direction: column;

        align-items: flex-start;

        gap: 7px;
    }
}

/* =====================================================
   MARKDOWN TABLE
===================================================== */

.table-wrapper {
    width: 100%;
    overflow-x: auto;
    margin: 18px 0;
    border-radius: 12px;
}

.markdown-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
    font-size: 14px;
}

.markdown-table th,
.markdown-table td {
    padding: 12px 14px;
    text-align: left;
    border: 1px solid rgba(255, 255, 255, 0.12);
    vertical-align: top;
}

.markdown-table th {
    font-weight: 700;
}

.markdown-table td {
    line-height: 1.5;
}

.markdown-table tr {
    display: table-row;
}

.markdown-table th,
.markdown-table td {
    display: table-cell;
}

/* =====================================================
   AI ANSWER TABLE
===================================================== */

.table-wrapper {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    margin: 16px 0;
    -webkit-overflow-scrolling: touch;
}

.markdown-table {
    width: 100%;
    max-width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.markdown-table th,
.markdown-table td {
    padding: 12px 10px;
    text-align: left;
    vertical-align: top;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.markdown-table th {
    font-weight: 700;
}

.markdown-table th:nth-child(1),
.markdown-table td:nth-child(1) {
    width: 15%;
}

.markdown-table th:nth-child(2),
.markdown-table td:nth-child(2) {
    width: 30%;
}

.markdown-table th:nth-child(3),
.markdown-table td:nth-child(3) {
    width: 55%;
}


/* Mobile / Tablet */

@media (max-width: 700px) {

    .markdown-table {
        font-size: 13px;
    }

    .markdown-table th,
    .markdown-table td {
        padding: 10px 8px;
    }
}

/* ================================
   QUIZ CONTAINER
================================ */

.quiz-container {
    width: 100%;
    max-width: 820px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
}


/* ================================
   QUIZ HEADER
================================ */

.quiz-header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 20px;
}

.quiz-progress {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: auto;
    min-width: 70px;
    height: 34px;

    padding: 0 12px;

    border-radius: 20px;
    background: rgba(124, 58, 237, 0.15);
    border: 1px solid rgba(124, 58, 237, 0.3);

    color: #c4b5fd;
    font-size: 13px;
    font-weight: 600;

    white-space: nowrap;
    writing-mode: horizontal-tb;
}


/* ================================
   QUIZ QUESTION CARD
================================ */

.quiz-card {
    width: 100%;
    height: auto;
    min-height: 0;

    padding: 24px;
    margin: 0;

    box-sizing: border-box;

    border-radius: 16px;

    background: rgba(2, 6, 23, 0.72);
    border: 1px solid rgba(124, 58, 237, 0.2);

    overflow: visible;
}


/* ================================
   QUESTION
================================ */

.quiz-question {
    width: 100%;

    margin: 0 0 22px 0;
    padding: 0;

    color: #e5e7eb;

    font-size: 18px;
    line-height: 1.5;
    font-weight: 700;

    text-align: left;

    height: auto;
    min-height: 0;
}


/* ================================
   OPTIONS
================================ */

.quiz-options {
    width: 100%;

    display: flex;
    flex-direction: column;

    gap: 12px;

    margin: 0;
    padding: 0;
}


/* ================================
   OPTION
================================ */

.quiz-option {
    width: 100%;
    min-height: 58px;
    height: auto;

    padding: 16px 18px;

    box-sizing: border-box;

    display: flex;
    align-items: center;
    gap: 14px;

    border-radius: 12px;

    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.18);

    color: #dbeafe;

    font-size: 14px;
    line-height: 1.4;

    cursor: pointer;

    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

.quiz-option:hover {
    background: rgba(124, 58, 237, 0.12);
    border-color: rgba(124, 58, 237, 0.45);

    transform: translateY(-1px);
}


/* ================================
   OPTION LETTER
================================ */

.quiz-option-letter {
    flex: 0 0 36px;

    width: 36px;
    height: 36px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 9px;

    background: rgba(124, 58, 237, 0.15);

    color: #c4b5fd;

    font-weight: 700;
}


/* ================================
   ANSWER TEXT
================================ */

.quiz-option-text {
    flex: 1;

    min-width: 0;

    color: #e2e8f0;

    white-space: normal;
    overflow-wrap: break-word;
}


/* ================================
   MOBILE
================================ */

@media (max-width: 700px) {

    .quiz-container {
        padding: 10px;
    }

    .quiz-card {
        padding: 18px;
    }

    .quiz-question {
        font-size: 16px;
        margin-bottom: 18px;
    }

    .quiz-option {
        min-height: 54px;
        padding: 13px 14px;
    }

    .quiz-option-letter {
        width: 32px;
        height: 32px;
        flex-basis: 32px;
    }

}

/* =========================================
   INTERACTIVE QUIZ - FINAL SPACING FIX
========================================= */

.interactive-quiz {
    width: 100%;
    max-width: 820px;
    margin: 0 auto;
    padding: 0;
    height: auto !important;
    min-height: 0 !important;
    box-sizing: border-box;
}

.quiz-loading {
    padding: 20px;
    text-align: center;
}


/* QUIZ HEADER */

.interactive-quiz .quiz-header {
    width: 100%;
    height: auto !important;
    min-height: 0 !important;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 15px;
    margin: 0 0 18px 0;
    padding: 0;

    box-sizing: border-box;
}


/* TITLE */

.interactive-quiz .quiz-title {
    flex: 1;
    min-width: 0;

    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;

    color: #e5e7eb;
}


/* QUESTION NUMBER */

.interactive-quiz .quiz-progress {
    flex: 0 0 auto;

    width: auto !important;
    height: auto !important;
    min-width: 75px !important;
    min-height: 32px !important;

    padding: 7px 12px !important;
    margin: 0 !important;

    display: inline-flex !important;
    align-items: center;
    justify-content: center;

    white-space: nowrap !important;
    writing-mode: horizontal-tb !important;
    word-break: normal !important;

    border-radius: 18px;

    font-size: 12px;
    font-weight: 600;

    color: #c4b5fd;
    background: rgba(124, 58, 237, 0.15);
    border: 1px solid rgba(124, 58, 237, 0.3);

    box-sizing: border-box;
}


/* QUESTION AREA */

.interactive-quiz .quiz-question {
    width: 100%;

    height: auto !important;
    min-height: 0 !important;

    margin: 0 !important;
    padding: 22px !important;

    box-sizing: border-box;

    border-radius: 16px;

    background: rgba(2, 6, 23, 0.72);
    border: 1px solid rgba(124, 58, 237, 0.2);
}


/* QUESTION TEXT */

.interactive-quiz .quiz-question h3 {
    height: auto !important;
    min-height: 0 !important;

    margin: 0 0 20px 0 !important;
    padding: 0 !important;

    color: #e5e7eb;

    font-size: 17px;
    line-height: 1.5;

    font-weight: 700;
}


/* OPTIONS */

.interactive-quiz .quiz-options {
    width: 100%;

    display: flex;
    flex-direction: column;

    gap: 10px;

    margin: 0 !important;
    padding: 0 !important;

    height: auto !important;
    min-height: 0 !important;
}


/* OPTION BUTTON */

.interactive-quiz .quiz-option {
    width: 100%;
    height: auto !important;
    min-height: 52px !important;

    display: flex;
    align-items: center;

    gap: 12px;

    padding: 13px 15px !important;
    margin: 0 !important;

    box-sizing: border-box;

    border-radius: 11px;

    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.18);

    color: #e2e8f0;

    text-align: left;

    cursor: pointer;

    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}


.interactive-quiz .quiz-option:hover {
    background: rgba(124, 58, 237, 0.12);
    border-color: rgba(124, 58, 237, 0.45);
    transform: translateY(-1px);
}


/* OPTION KEY */

.interactive-quiz .quiz-option-key {
    flex: 0 0 32px;

    width: 32px;
    height: 32px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 8px;

    background: rgba(124, 58, 237, 0.15);

    color: #c4b5fd;

    font-size: 13px;
    font-weight: 700;
}


/* OPTION TEXT */

.interactive-quiz .quiz-option-text {
    flex: 1;
    min-width: 0;

    line-height: 1.4;

    white-space: normal;
    overflow-wrap: break-word;
}


/* FEEDBACK */

.interactive-quiz .quiz-feedback {
    width: 100%;

    height: auto !important;
    min-height: 0 !important;

    margin: 16px 0 0 0 !important;
    padding: 0 !important;
}


/* NEXT BUTTON */

.interactive-quiz .quiz-next {
    margin-top: 16px;

    padding: 11px 18px;

    border: 0;
    border-radius: 9px;

    background: #7c3aed;
    color: white;

    font-weight: 600;

    cursor: pointer;
}

.interactive-quiz .quiz-next:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}


/* RESULT */

.interactive-quiz .quiz-result {
    width: 100%;

    height: auto !important;
    min-height: 0 !important;

    padding: 30px 20px;

    text-align: center;

    box-sizing: border-box;
}


/* MOBILE */

@media (max-width: 700px) {

    .interactive-quiz .quiz-header {
        align-items: flex-start;
    }

    .interactive-quiz .quiz-title {
        font-size: 15px;
    }

    .interactive-quiz .quiz-question {
        padding: 16px !important;
    }

    .interactive-quiz .quiz-question h3 {
        font-size: 16px;
    }

    .interactive-quiz .quiz-progress {
        min-width: 70px !important;
        padding: 6px 9px !important;
        font-size: 11px;
    }
}

/* =====================================================
   AGENT WORKFLOW - COMPETITION POLISH
===================================================== */

.workflow-container {
    gap: 0;
    scrollbar-width: thin;
    scrollbar-color: rgba(124, 58, 237, 0.35) transparent;
}

.workflow-node {
    min-width: 190px;
    position: relative;
    overflow: hidden;
}

.workflow-node::after {
    content: "";
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            110deg,
            transparent 20%,
            rgba(255, 255, 255, 0.045) 50%,
            transparent 80%
        );

    transform: translateX(-120%);
    transition: transform 0.6s ease;

    pointer-events: none;
}

.workflow-node.active::after {
    transform: translateX(120%);
}

.workflow-node.active {
    animation: workflowPulse 1.8s ease-in-out infinite;
}

.workflow-node.success {
    box-shadow:
        0 0 18px rgba(34, 197, 94, 0.06);
}

.workflow-node.active .node-status {
    color: #c4b5fd;
}

.workflow-line {
    width: 42px;
    position: relative;
    overflow: hidden;
}

.workflow-line::after {
    content: "";

    position: absolute;
    top: 0;
    left: -100%;

    width: 100%;
    height: 100%;

    background:
        linear-gradient(
            90deg,
            transparent,
            #a78bfa,
            transparent
        );

    opacity: 0;
}

.workflow-node.active + .workflow-line::after {
    opacity: 1;
    animation: workflowFlow 0.9s linear infinite;
}

@keyframes workflowPulse {

    0%,
    100% {
        box-shadow:
            0 0 0 rgba(124, 58, 237, 0);
    }

    50% {
        box-shadow:
            0 0 24px rgba(124, 58, 237, 0.16);
    }
}

@keyframes workflowFlow {
    from {
        left: -100%;
    }

    to {
        left: 100%;
    }
}


/* Tool names can be slightly longer than normal statuses */

.workflow-node .node-status {
    max-width: 145px;

    line-height: 1.35;

    white-space: normal;
    overflow-wrap: anywhere;
}


/* Mobile workflow */

@media (max-width: 800px) {

    .workflow-node {
        min-width: 180px;
    }

    .workflow-line {
        width: 24px;
    }
}

/* =====================================================
   AGENT WORKFLOW - NODE CONNECTION POLISH
===================================================== */

.workflow-container {
    position: relative;
}

/* Connector line */
.workflow-line {
    height: 2px;
    width: 42px;

    background: linear-gradient(
        90deg,
        rgba(100, 116, 139, 0.25),
        rgba(124, 58, 237, 0.55),
        rgba(100, 116, 139, 0.25)
    );

    border-radius: 999px;
}

/* Small connection point */
.workflow-line::before,
.workflow-line::after {
    content: "";

    position: absolute;

    width: 5px;
    height: 5px;

    top: 50%;

    border-radius: 50%;

    transform: translateY(-50%);

    background: #475569;
}

.workflow-line::before {
    left: 0;
}

.workflow-line::after {
    right: 0;
}

/* Active connection */
.workflow-node.active + .workflow-line {
    background: linear-gradient(
        90deg,
        #7c3aed,
        #a78bfa,
        #7c3aed
    );

    box-shadow:
        0 0 10px rgba(124, 58, 237, 0.35);
}

.workflow-node.active + .workflow-line::before,
.workflow-node.active + .workflow-line::after {
    background: #a78bfa;

    box-shadow:
        0 0 8px rgba(167, 139, 250, 0.7);
}

/* Successful connection */
.workflow-node.success + .workflow-line {
    background: linear-gradient(
        90deg,
        rgba(34, 197, 94, 0.65),
        rgba(34, 197, 94, 0.25)
    );
}

.workflow-node.success + .workflow-line::before {
    background: #4ade80;
}

/* Better node depth */
.workflow-node {
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.025),
        0 8px 25px rgba(0, 0, 0, 0.12);
}

.workflow-node:hover {
    transform: translateY(-2px);

    border-color:
        rgba(124, 58, 237, 0.3);

    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

/* =====================================================
   AGENT WORKFLOW - LIVE ICON ANIMATION
===================================================== */

.workflow-node.active .workflow-icon {
    animation: workflowIconPulse 1s ease-in-out infinite;
}

@keyframes workflowIconPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 rgba(124, 58, 237, 0);
    }

    50% {
        transform: scale(1.08);
        box-shadow: 0 0 14px rgba(124, 58, 237, 0.28);
    }
}

.workflow-node.success .workflow-icon {
    animation: workflowSuccess 0.45s ease-out;
}

@keyframes workflowSuccess {
    0% {
        transform: scale(0.9);
    }

    60% {
        transform: scale(1.12);
    }

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

/* =====================================================
   AGENT WORKFLOW - LIVE EXECUTION INDICATOR
===================================================== */

.workflow-caption {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.workflow-caption::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.65);
    animation: liveDot 1.4s ease-in-out infinite;
}

@keyframes liveDot {
    0%, 100% {
        opacity: 0.45;
        transform: scale(0.85);
    }

    50% {
        opacity: 1;
        transform: scale(1.15);
    }
}

/* =====================================================
   AGENT WORKFLOW - HEADER POLISH
===================================================== */

.workflow-section h2 {
    font-size: 16px;
    font-weight: 900;
    letter-spacing: -0.2px;
    color: #f8fafc;
}

.workflow-section h2::before {
    content: "✦";
    margin-right: 7px;
    color: #a78bfa;
    text-shadow: 0 0 10px rgba(167, 139, 250, 0.45);
}

.workflow-caption {
    margin-top: 5px;
    font-size: 9px;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}/* =====================================================
   RESPONSE PANEL - COMPETITION POLISH
===================================================== */

.response-section {
    position: relative;
    overflow: hidden;
}

.response-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;

    background: linear-gradient(
        90deg,
        transparent,
        rgba(124, 58, 237, 0.7),
        rgba(6, 182, 212, 0.45),
        transparent
    );

    opacity: 0.8;
}

.response-section:hover {
    border-color: rgba(124, 58, 237, 0.22);

    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.16),
        0 0 30px rgba(124, 58, 237, 0.04);

    transition:
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}

#answerBox {
    line-height: 1.7;
}

#answerBox p {
    margin-bottom: 12px;
}

#answerBox h1,
#answerBox h2,
#answerBox h3 {
    color: #f8fafc;
    margin-top: 18px;
    margin-bottom: 10px;
}

#answerBox strong {
    color: #c4b5fd;
}
/* =====================================================
   RESPONSE PANEL - COMPETITION POLISH
===================================================== */

.response-section {
    position: relative;
    overflow: hidden;
}

.response-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;

    background: linear-gradient(
        90deg,
        transparent,
        rgba(124, 58, 237, 0.7),
        rgba(6, 182, 212, 0.45),
        transparent
    );

    opacity: 0.8;
}

.response-section:hover {
    border-color: rgba(124, 58, 237, 0.22);

    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.16),
        0 0 30px rgba(124, 58, 237, 0.04);

    transition:
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}

#answerBox {
    line-height: 1.7;
}

#answerBox p {
    margin-bottom: 12px;
}

#answerBox h1,
#answerBox h2,
#answerBox h3 {
    color: #f8fafc;
    margin-top: 18px;
    margin-bottom: 10px;
}

#answerBox strong {
    color: #c4b5fd;
}

/* =====================================================
   SOURCES - RESEARCH CARD POLISH
===================================================== */

.source-card {
    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease;
}

.source-card:hover {
    transform: translateY(-2px);

    border-color: rgba(6, 182, 212, 0.28);

    background: rgba(6, 182, 212, 0.045);

    box-shadow:
        0 8px 24px rgba(0, 0, 0, 0.14),
        0 0 18px rgba(6, 182, 212, 0.04);
}

.source-card a {
    transition: color 0.2s ease;
}

.source-card:hover a {
    color: #67e8f9;
}

/* =====================================================
   CAPABILITIES - COMPETITION POLISH
===================================================== */

.capability-card {
    position: relative;
    overflow: hidden;

    transition:
        transform 0.22s ease,
        border-color 0.22s ease,
        box-shadow 0.22s ease,
        background 0.22s ease;
}

.capability-card::before {
    content: "";

    position: absolute;
    top: 0;
    left: -100%;

    width: 100%;
    height: 1px;

    background: linear-gradient(
        90deg,
        transparent,
        #a78bfa,
        #67e8f9,
        transparent
    );

    transition: left 0.5s ease;
}

.capability-card:hover {
    transform: translateY(-4px);

    border-color: rgba(124, 58, 237, 0.28);

    background: rgba(124, 58, 237, 0.045);

    box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.16),
        0 0 22px rgba(124, 58, 237, 0.05);
}

.capability-card:hover::before {
    left: 100%;
}

.capability-card:hover .capability-icon {
    transform: scale(1.08);

    box-shadow:
        0 0 16px rgba(124, 58, 237, 0.22);
}

.capability-icon {
    transition:
        transform 0.22s ease,
        box-shadow 0.22s ease;
}

/* =====================================================
   FOOTER - FINAL BRANDING POLISH
===================================================== */

footer {
    position: relative;
    margin-top: 30px;
    padding-top: 22px;
    border-top: 1px solid rgba(148, 163, 184, 0.10);
}

footer::before {
    content: "";

    position: absolute;
    top: -1px;
    left: 35%;
    width: 30%;
    height: 1px;

    background: linear-gradient(
        90deg,
        transparent,
        rgba(124, 58, 237, 0.65),
        rgba(6, 182, 212, 0.45),
        transparent
    );
}

footer a {
    transition:
        color 0.2s ease,
        text-shadow 0.2s ease;
}

footer a:hover {
    color: #c4b5fd;
    text-shadow: 0 0 10px rgba(167, 139, 250, 0.35);
}

/* =====================================================
   SIDEBAR - NAVIGATION POLISH
===================================================== */

.sidebar nav a {
    position: relative;
    overflow: hidden;

    transition:
        color 0.2s ease,
        background 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

.sidebar nav a::before {
    content: "";

    position: absolute;
    left: 0;
    top: 20%;
    width: 2px;
    height: 60%;

    border-radius: 999px;

    background: #a78bfa;

    transform: scaleY(0);
    transition: transform 0.2s ease;
}

.sidebar nav a:hover {
    color: #f8fafc;
    background: rgba(124, 58, 237, 0.08);
    transform: translateX(2px);
}

.sidebar nav a:hover::before {
    transform: scaleY(1);
}

.sidebar nav a.active {
    color: #f8fafc;
    background:
        linear-gradient(
            90deg,
            rgba(124, 58, 237, 0.16),
            rgba(124, 58, 237, 0.05)
        );

    border-color: rgba(124, 58, 237, 0.22);

    box-shadow:
        inset 0 0 18px rgba(124, 58, 237, 0.04);
}

.sidebar nav a.active::before {
    transform: scaleY(1);
}

/* =====================================================
   SIDEBAR - AGENT STATUS POLISH
===================================================== */

.sidebar .status-dot {
    position: relative;

    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: #22c55e;

    box-shadow:
        0 0 8px rgba(34, 197, 94, 0.65);
}

.sidebar .status-dot::after {
    content: "";

    position: absolute;
    inset: -4px;

    border-radius: 50%;

    border: 1px solid rgba(34, 197, 94, 0.25);

    animation: sidebarStatusPulse 1.8s ease-out infinite;
}

@keyframes sidebarStatusPulse {
    0% {
        transform: scale(0.7);
        opacity: 0.8;
    }

    70% {
        transform: scale(1.5);
        opacity: 0;
    }

    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

/* =====================================================
   SIDEBAR - BRANDING POLISH
===================================================== */

.sidebar .logo {
    transition:
        transform 0.25s ease,
        filter 0.25s ease;
}

.sidebar .logo:hover {
    transform: translateX(2px);
    filter: drop-shadow(
        0 0 10px rgba(124, 58, 237, 0.28)
    );
}

.sidebar .logo-icon {
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.sidebar .logo:hover .logo-icon {
    transform: scale(1.06);

    box-shadow:
        0 0 18px rgba(124, 58, 237, 0.25);
}

.sidebar .logo-text {
    letter-spacing: -0.3px;
}

/* =====================================================
   SIDEBAR - BOTTOM AREA POLISH
===================================================== */

.sidebar-bottom {
    border-top: 1px solid rgba(148, 163, 184, 0.08);
    padding-top: 14px;
}

.sidebar-bottom > * {
    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

.sidebar-bottom > *:hover {
    background: rgba(124, 58, 237, 0.06);
    border-color: rgba(124, 58, 237, 0.18);
    transform: translateY(-1px);
}

.sidebar-bottom .profile,
.sidebar-bottom .user-profile {
    border-radius: 12px;
}

.sidebar-bottom .avatar {
    box-shadow:
        0 0 0 1px rgba(124, 58, 237, 0.18),
        0 0 14px rgba(124, 58, 237, 0.08);
}

/* =====================================================
   AI THINKING / LOADING STATE
===================================================== */

.loading {
    min-height: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    color: #94a3b8;
    text-align: center;
    animation: loadingFadeIn 0.35s ease;
}

.loading p {
    margin: 0;
    font-size: 12px;
    letter-spacing: 0.2px;
}

.spinner {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid rgba(124, 58, 237, 0.16);
    border-top-color: #a78bfa;
    border-right-color: #06b6d4;
    animation: agentSpin 0.85s linear infinite;
    box-shadow:
        0 0 18px rgba(124, 58, 237, 0.16);
}

@keyframes agentSpin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes loadingFadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

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

/* =====================================================
   ERROR STATE - COMPETITION POLISH
===================================================== */

.error-message {
    position: relative;
    margin: 4px 0;
    padding: 18px 20px;

    border: 1px solid rgba(239, 68, 68, 0.22);
    border-radius: 12px;

    background:
        linear-gradient(
            135deg,
            rgba(239, 68, 68, 0.07),
            rgba(15, 23, 42, 0.55)
        );

    color: #cbd5e1;

    animation: errorFadeIn 0.3s ease;
}

.error-message strong {
    display: block;
    margin-bottom: 7px;

    color: #fca5a5;
    font-size: 13px;
}

.error-message p {
    margin: 0;

    color: #94a3b8;
    font-size: 11px;
    line-height: 1.6;

    overflow-wrap: anywhere;
}

.error-message::before {
    content: "⚠";

    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 28px;
    height: 28px;
    margin-bottom: 10px;

    border-radius: 8px;

    background: rgba(239, 68, 68, 0.10);
    color: #f87171;

    font-size: 14px;
}

@keyframes errorFadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

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

/* =====================================================
   RESPONSIVE - FINAL COMPETITION POLISH
===================================================== */

@media (max-width: 900px) {

    .app-shell {
        overflow-x: hidden;
    }

    .sidebar {
        width: 210px;
    }

    .main-content {
        margin-left: 210px;
    }

    .workflow-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 14px;
    }

    .workflow-node {
        min-width: 175px;
        flex-shrink: 0;
    }

    .workflow-line {
        flex-shrink: 0;
    }

    .response-panel {
        width: 100%;
        box-sizing: border-box;
    }

    .sources-section {
        width: 100%;
        box-sizing: border-box;
    }

    .source-card {
        max-width: 100%;
        overflow-wrap: anywhere;
    }
}


/* =====================================================
   TABLET / SMALL SCREEN
===================================================== */

@media (max-width: 700px) {

    .sidebar {
        width: 72px;
        padding-left: 10px;
        padding-right: 10px;
    }

    .main-content {
        margin-left: 72px;
    }

    .brand-name,
    .brand-subtitle,
    .sidebar-label,
    .sidebar-nav .nav-item span:last-child,
    .sidebar-bottom {
        display: none;
    }

    .brand {
        justify-content: center;
    }

    .brand-icon {
        margin: 0 auto;
    }

    .sidebar-nav .nav-item {
        justify-content: center;
        padding: 11px 8px;
    }

    .hero-section,
    .response-panel,
    .workflow-section,
    .capabilities-section {
        margin-left: 10px;
        margin-right: 10px;
    }

    .workflow-node {
        min-width: 165px;
    }

    .workflow-line {
        width: 24px;
    }

    .demo-area {
        grid-template-columns: 1fr;
    }
}


/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 480px) {

    .sidebar {
        width: 58px;
    }

    .main-content {
        margin-left: 58px;
    }

    .topbar {
        padding-left: 12px;
        padding-right: 12px;
    }

    .hero-section,
    .response-panel,
    .workflow-section,
    .capabilities-section {
        margin-left: 6px;
        margin-right: 6px;
        border-radius: 13px;
    }

    .workflow-container {
        padding-left: 2px;
        padding-right: 2px;
    }

    .workflow-node {
        min-width: 155px;
    }

    .workflow-title {
        font-size: 9px;
    }

    .node-status {
        font-size: 7px;
    }

    .source-card {
        padding: 11px;
    }

    #answerBox {
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    .markdown-table {
        min-width: 500px;
    }

    .table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .interactive-quiz {
        width: 100%;
        max-width: 100%;
        overflow: visible;
    }
}

  
    
