/* =========================================================
   DISHAAN — USER DESIGN SYSTEM
   ========================================================= */

/* ---------- Design Tokens ---------- */

:root {
    color-scheme: dark;

    --user-bg: #111318;
    --user-surface: #191c23;
    --user-surface-soft: #20242d;

    --user-text: #f2f4f8;
    --user-text-secondary: #b5bdca;
    --user-text-muted: #8f99aa;

    --user-border: #343945;
    --user-border-focus: #71809a;

    --user-primary: #e1e7f0;
    --user-primary-hover: #cbd5e4;

    --user-radius-sm: 8px;
    --user-radius-md: 12px;
    --user-radius-lg: 18px;

    --user-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.18);
    --user-shadow-md: 0 8px 30px rgba(0, 0, 0, 0.24);

    --user-content-width: 1100px;

    --user-space-xs: 4px;
    --user-space-sm: 8px;
    --user-space-md: 16px;
    --user-space-lg: 24px;
    --user-space-xl: 32px;
    --user-space-2xl: 48px;
    --user-space-3xl: 64px;
}


/* ---------- Reset ---------- */

* {
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;

    background: var(--user-bg);
    color: var(--user-text);

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

    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}


/* ---------- Typography ---------- */

h1,
h2,
h3,
h4 {
    margin: 0;
    color: var(--user-text);
    line-height: 1.25;
    letter-spacing: -0.02em;
}

h1 {
    font-size: 2.25rem;
    font-weight: 700;
}

h2 {
    font-size: 1.6rem;
    font-weight: 650;
}

h3 {
    font-size: 1.2rem;
    font-weight: 600;
}

p {
    margin: 0;
    color: var(--user-text-secondary);
}

.user-muted {
    color: var(--user-text-muted);
}


/* ---------- Layout ---------- */

.user-page {
    min-height: 100vh;
}

.user-container {
    width: min(
        calc(100% - 32px),
        var(--user-content-width)
    );

    margin: 0 auto;
}

.user-section {
    padding: var(--user-space-3xl) 0;
}


/* ---------- Header ---------- */

.user-header {
    height: 72px;

    display: flex;
    align-items: center;

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

    background: rgba(17, 19, 24, 0.92);

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.user-header-inner {
    width: min(
        calc(100% - 32px),
        var(--user-content-width)
    );

    margin: 0 auto;

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

.user-brand {
    color: var(--user-text);
    text-decoration: none;

    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}


/* ---------- Cards ---------- */

.user-card {
    background: var(--user-surface);

    border: 1px solid var(--user-border);
    border-radius: var(--user-radius-lg);

    box-shadow: var(--user-shadow-sm);
}

.user-card-body {
    padding: var(--user-space-xl);
}


/* ---------- Forms ---------- */

.user-form {
    display: flex;
    flex-direction: column;
    gap: var(--user-space-lg);
}

.user-form-group {
    display: flex;
    flex-direction: column;
    gap: var(--user-space-sm);
}

.user-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--user-text);
}

.user-input,
.user-textarea,
.user-select {
    width: 100%;

    border: 1px solid var(--user-border);
    border-radius: var(--user-radius-md);

    background: var(--user-surface);
    color: var(--user-text);

    font: inherit;

    outline: none;

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

.user-input,
.user-select {
    min-height: 48px;
    padding: 0 14px;
}

.user-textarea {
    height: 140px;
    min-height: 140px;
    max-height: 140px;
    padding: 14px;

    resize: none;
    overflow-y: auto;
}

.user-input:focus,
.user-textarea:focus,
.user-select:focus {
    border-color: var(--user-border-focus);

    box-shadow:
        0 0 0 3px rgba(23, 25, 28, 0.06);
}

.user-input::placeholder,
.user-textarea::placeholder {
    color: var(--user-text-muted);
}


/* ---------- Buttons ---------- */

.user-button {
    min-height: 46px;

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

    padding: 0 20px;

    border: 0;
    border-radius: var(--user-radius-md);

    background: var(--user-primary);
    color: #1b2029;

    font: inherit;
    font-weight: 600;

    cursor: pointer;

    transition:
        background 0.15s ease,
        transform 0.15s ease,
        box-shadow 0.15s ease;
}

.user-button:hover {
    background: var(--user-primary-hover);
    box-shadow: var(--user-shadow-sm);
}

.user-button:active {
    transform: translateY(1px);
}

.user-button-secondary {
    background: var(--user-surface);
    color: var(--user-text);

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

.user-button-secondary:hover {
    background: var(--user-surface-soft);
}


/* ---------- Answer / Content ---------- */

.user-answer {
    padding: var(--user-space-xl);

    background: var(--user-surface);

    border: 1px solid var(--user-border);
    border-radius: var(--user-radius-lg);

    box-shadow: var(--user-shadow-sm);
}

.user-answer-header {
    margin-bottom: var(--user-space-lg);
}

.user-answer-content {
    display: flex;
    flex-direction: column;
    gap: var(--user-space-md);

    color: var(--user-text);
    line-height: 1.75;
    overflow-wrap: anywhere;
}

/* Preserve intentional line breaks in plain-text answer blocks. */
.user-comparison-body p {
    white-space: pre-wrap;
}


/* ---------- Agent Activity ---------- */

.user-agent-status-list {
    display: flex;
    flex-direction: column;
    gap: var(--user-space-sm);
}

.user-agent-status {
    display: flex;
    align-items: center;
    gap: var(--user-space-sm);

    min-height: 28px;

    color: var(--user-text-secondary);
    font-size: 0.92rem;
}

.user-agent-status-indicator {
    width: 8px;
    height: 8px;

    flex: 0 0 8px;

    border-radius: 50%;

    background: var(--user-primary);

    animation: user-agent-pulse 1.2s ease-in-out infinite;
}

.user-agent-status.completed {
    color: var(--user-text);
}

.user-agent-status.completed
.user-agent-status-indicator {
    position: relative;

    background: var(--user-primary);

    animation: none;
}

.user-agent-status.completed
.user-agent-status-indicator::after {
    content: "✓";

    position: absolute;

    left: 50%;
    top: 50%;

    transform: translate(-50%, -50%);

    color: #ffffff;

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


/* ---------- Agent Answer Streaming ---------- */

/* ---------- Agent Activity Animation ---------- */

@keyframes user-agent-pulse {

    0%,
    100% {
        opacity: 0.35;
        transform: scale(0.85);
    }

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


/* ---------- Utility ---------- */

.user-stack-sm {
    display: flex;
    flex-direction: column;
    gap: var(--user-space-sm);
}

.user-stack-md {
    display: flex;
    flex-direction: column;
    gap: var(--user-space-md);
}

.user-stack-lg {
    display: flex;
    flex-direction: column;
    gap: var(--user-space-lg);
}

.user-row {
    display: flex;
    align-items: center;
    gap: var(--user-space-md);
}


/* ---------- Comparison Presentation ---------- */

.user-comparison {
    overflow: hidden;
}

.user-comparison-body {
    display: flex;
    flex-direction: column;
    gap: var(--user-space-lg);
}

.user-comparison-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--user-space-md);
    align-items: stretch;
}

.user-comparison-side {
    min-width: 0;

    background: var(--user-surface-soft);

    border: 1px solid var(--user-border);
    border-radius: var(--user-radius-md);
}

.user-comparison-side-body {
    padding: var(--user-space-lg);
}

.user-comparison-side-title {
    margin-bottom: var(--user-space-md);
    font-size: 1rem;
    font-weight: 650;
}

.user-comparison-points {
    margin: 0;
    padding-left: 20px;

    color: var(--user-text-secondary);
}

.user-comparison-points li + li {
    margin-top: var(--user-space-sm);
}

.user-comparison-differences-title {
    padding-top: var(--user-space-md);

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

    font-size: 0.95rem;
    font-weight: 650;
}

.user-comparison-differences {
    margin: 0;
    padding-left: 20px;

    color: var(--user-text-secondary);
}

.user-comparison-differences li + li {
    margin-top: var(--user-space-sm);
}


/* ---------- Evidence Presentation ---------- */

.user-evidence {
    overflow: hidden;
}

.user-evidence-body {
    display: flex;
    flex-direction: column;
    gap: var(--user-space-lg);
}

/* ---------- PYQ Evidence Readability ---------- */

#answerContent .user-evidence-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

#answerContent .user-evidence-item {
    padding: 14px 16px;
    line-height: 1.85;
}

#answerContent .user-evidence-meta {
    margin-bottom: 8px;
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.5;
    color: #b9c8df;
}

#answerContent .user-evidence-question {
    font-size: 0.96rem;
    line-height: 1.85;
    overflow-wrap: anywhere;
}

@media (max-width: 700px) {
    #answerContent .user-evidence-item {
        padding: 11px 12px;
    }
}
/* ---------- Evidence Summary ---------- */

.user-evidence-summary-count {
    color: var(--user-text-muted);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}


/* ---------- Evidence Section ---------- */

.user-evidence-section-title {
    margin-bottom: var(--user-space-sm);

    color: var(--user-text);
    font-size: 0.95rem;
    font-weight: 650;
}


/* ---------- Evidence List ---------- */

.user-evidence-list {
    display: flex;
    flex-direction: column;
    gap: var(--user-space-md);
}


/* ---------- Individual Evidence ---------- */

.user-evidence-item {
    padding: var(--user-space-lg);

    background: var(--user-surface-soft);

    border: 1px solid var(--user-border);
    border-radius: var(--user-radius-md);
}


/* ---------- Confusion Concept ---------- */

.user-evidence-confusion {
    display: flex;
    flex-direction: column;
    gap: var(--user-space-md);
}

.user-evidence-confusion-title {
    margin: 0;

    color: var(--user-text);

    font-size: 1rem;
    font-weight: 650;
    line-height: 1.4;
}


/* ---------- Structured Fields ---------- */

.user-structured-field {
    display: flex;
    flex-direction: column;
    gap: var(--user-space-xs);
}

.user-structured-field + .user-structured-field {
    padding-top: var(--user-space-md);

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


.user-structured-field-label {
    color: var(--user-text);

    font-size: 0.82rem;
    font-weight: 650;
    letter-spacing: 0.01em;
}


.user-structured-field-content {
    margin: 0;

    color: var(--user-text-secondary);

    font-size: 0.92rem;
    line-height: 1.7;
}


/* ---------- Evidence Metadata ---------- */

.user-evidence-meta {
    margin-bottom: var(--user-space-xs);

    color: var(--user-text-muted);

    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}


.user-evidence-question-number {
    margin-bottom: var(--user-space-sm);

    color: var(--user-text);

    font-size: 0.92rem;
    font-weight: 650;
}


.user-evidence-question {
    margin: 0;

    color: var(--user-text-secondary);

    line-height: 1.75;
    white-space: pre-wrap;
}


.user-evidence-text {
    margin: 0;

    color: var(--user-text-secondary);

    line-height: 1.75;
}
/* ---------- Depth Visual Presentation ---------- */

.user-depth-visual {
    overflow: hidden;
}

.user-depth-visual-body {
    display: flex;
    flex-direction: column;
    gap: var(--user-space-lg);
}

.user-depth-visual-title {
    font-size: 1rem;
    font-weight: 650;
}

.user-depth-levels {
    display: flex;
    flex-direction: column;
}

.user-depth-level {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr);
    gap: var(--user-space-md);

    position: relative;
}

.user-depth-level + .user-depth-level {
    margin-top: var(--user-space-lg);
}

.user-depth-level-number {
    width: 32px;
    height: 32px;

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

    border: 1px solid var(--user-border);
    border-radius: 50%;

    background: var(--user-surface-soft);
    color: var(--user-text);

    font-size: 0.85rem;
    font-weight: 650;
}

.user-depth-level-content {
    min-width: 0;
}

.user-depth-level-title {
    margin-bottom: var(--user-space-xs);

    font-size: 1rem;
    font-weight: 650;
}

.user-depth-level-focus {
    color: var(--user-text-secondary);
    line-height: 1.65;
}


/* Connecting line */

.user-depth-level:not(:last-child)::after {
    content: "";

    position: absolute;

    left: 15px;
    top: 32px;
    bottom: -24px;

    width: 1px;

    background: var(--user-border);
}
/* ---------- Responsive ---------- */

@media (max-width: 700px) {

    h1 {
        font-size: 1.8rem;
    }

    h2 {
        font-size: 1.4rem;
    }

    .user-section {
        padding: var(--user-space-2xl) 0;
    }

    .user-card-body,
    .user-answer {
        padding: var(--user-space-lg);
    }

    .user-header {
        height: 64px;
    }

    .user-button {
        width: 100%;
    }

    .user-comparison-grid {
        grid-template-columns: 1fr;
    }
}


/* User feedback comment textarea styling */

/* Answer feedback */
.user-feedback {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

.user-feedback-question {
    margin-bottom: 12px;
    font-weight: 600;
}

.user-feedback-actions {
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
}

#feedbackCommentGroup {
    margin-top: 12px;
}

#feedbackComment {
    display: block;
    width: 100%;
    min-height: 90px;
    box-sizing: border-box;
    resize: vertical;
}

#feedbackMessage {
    margin-top: 12px;
}
[hidden] {
    display: none !important;
}

/*=============*/

/* Agent history workspace */
.agent-workspace {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 20px;
}

.agent-history-sidebar {
    flex: 0 0 280px;
    min-width: 0;
    position: sticky;
    top: 16px;
    border: 1px solid var(--user-border, #343945);
    border-radius: 12px;
    padding: 16px;
    background: var(--user-card-bg, #191c23);
}

.agent-history-header {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 14px;
}

.agent-history-header h2 {
    margin: 0;
    line-height: 1.25;
}

.agent-history-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-height: 68vh;
    overflow-y: auto;
    padding-right: 4px;
    scrollbar-gutter: stable;
}

.agent-history-item {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 10px 11px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: transparent;
    color: var(--user-text, #f2f4f8);
    font: inherit;
    font-size: 13px;
    font-weight: 450;
    line-height: 1.45;
    text-align: left;
    cursor: pointer;
    overflow-wrap: anywhere;
    transition: background-color 140ms ease, border-color 140ms ease;
}

.agent-history-item:hover,
.agent-history-item.is-active {
    border-color: var(--user-border, #343945);
    background: var(--user-surface-soft, #20242d);
}

.agent-history-item:focus-visible {
    outline: 2px solid var(--user-border-focus, #a9bfdc);
    outline-offset: 2px;
}

.agent-history-item:disabled {
    cursor: wait;
    opacity: 0.6;
}

.agent-main-panel {
    flex: 1 1 auto;
    min-width: 0;
}

.agent-main-toolbar {
    margin-bottom: 16px;
}

.agent-workspace .user-container {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

.agent-workspace.history-collapsed .agent-history-sidebar {
    display: none;
}

@media (max-width: 760px) {
    .agent-workspace {
        flex-direction: column;
        padding: 0 12px;
    }

    .agent-history-sidebar {
        position: static;
        width: 100%;
        flex-basis: auto;
    }

    .agent-history-list {
        max-height: 220px;
    }

    .agent-main-panel {
        width: 100%;
    }
}
/*===========================*/

/* ---------- Agent Visual Presentation ---------- */

.user-visual-graphic {
    overflow: hidden;
}

.user-visual-graphic .user-card-body {
    display: flex;
    flex-direction: column;
    gap: var(--user-space-lg);
}

.user-visual-title {
    font-size: 1.1rem;
    font-weight: 650;
    line-height: 1.4;
}

.user-visual-flow {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: var(--user-space-sm);
}

.user-visual-node {
    min-width: 0;
    padding: var(--user-space-md) var(--user-space-lg);
    border: 1px solid var(--user-border);
    border-radius: var(--user-radius-md);
    background: var(--user-surface-soft);
    color: var(--user-text);
    overflow-wrap: anywhere;
}

.user-visual-node strong {
    display: block;
    color: var(--user-text);
    font-weight: 650;
}

.user-visual-node p {
    margin-top: var(--user-space-xs);
    line-height: 1.65;
}

.user-visual-connector {
    align-self: center;
    color: var(--user-text-muted);
    font-size: 1.25rem;
    line-height: 1.2;
}

.user-visual-evidence {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--user-space-sm);
    padding-top: var(--user-space-lg);
    border-top: 1px solid var(--user-border);
}

.user-visual-evidence-row {
    display: flex;
    flex-direction: column;
    gap: var(--user-space-xs);
    min-width: 0;
    padding: var(--user-space-md);
    border: 1px solid var(--user-border);
    border-radius: var(--user-radius-md);
    overflow-wrap: anywhere;
}

.user-visual-evidence-label {
    color: var(--user-text-muted);
    font-size: 0.82rem;
    font-weight: 600;
}

@media (max-width: 700px) {
    .user-visual-evidence {
        grid-template-columns: 1fr;
    }
}

.user-markdown-table-wrapper {
    max-width: 100%;
    overflow-x: auto;
    margin: 12px 0;
}


.user-markdown-table {
width: 100%;
border-collapse: collapse;
font-size: inherit;
}

.user-markdown-table th,
.user-markdown-table td {
padding: 10px 12px;
border: 1px solid var(--user-border);
text-align: left;
vertical-align: top;
}

.user-markdown-table th {
font-weight: 600;
background: var(--user-surface-soft);
}

.user-explanation-body > h2,
.user-explanation-body > h3,
.user-explanation-body > h4,
.user-action-body > h2,
.user-action-body > h3,
.user-action-body > h4 {
margin: 14px 0 8px;
}

.user-explanation-body > p,
.user-action-body > p {
line-height: 1.65;
margin: 8px 0;
}


/* ---------- PYQ Heatmap ---------- */

.user-heatmap-wrapper {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    border: 1px solid var(--user-border);
    border-radius: var(--user-radius-md);
    background: var(--user-surface);
}

.user-heatmap-table {
    width: 100%;
    min-width: 440px;
    border-collapse: separate;
    border-spacing: 4px;
    padding: 6px;
    font-size: 0.82rem;
}

.user-heatmap-table th {
    padding: 10px 8px;
    text-align: center;
    font-weight: 650;
    color: var(--user-text-secondary);
    background: var(--user-surface-soft);
    border-radius: var(--user-radius-sm);
}

.user-heatmap-table th:first-child {
    text-align: left;
}

.user-heatmap-table td {
    padding: 12px 8px;
    text-align: center;
    border-radius: var(--user-radius-sm);
    transition: background-color 0.15s ease;
}

.user-heatmap-table .user-heatmap-year {
    text-align: left;
    white-space: nowrap;
    font-weight: 650;
    color: var(--user-text);
    background: var(--user-surface-soft);
}

.user-heatmap-table .is-empty {
    color: var(--user-text-muted);
    background: var(--user-surface-soft);
}

.user-heatmap-table .is-observed,
.user-heatmap-table .is-low {
    color: #c8d9ff;
    background: #263b5c;
    font-weight: 650;
}

.user-heatmap-table .is-medium {
    color: #e0eaff;
    background: #34547d;
    font-weight: 700;
}

.user-heatmap-table .is-high {
    color: #f4f7ff;
    background: #315da8;
    font-weight: 700;
}

.user-heatmap-table tbody tr:hover .user-heatmap-year {
    background: #292f3a;
}

@media (max-width: 700px) {
    .user-heatmap-table {
        min-width: 440px;
    }
}


/* ---------- Conceptual Confusion Map ---------- */

.user-confusion-map {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.user-confusion-node {
    min-width: 0;
    padding: 18px;
    background: var(--user-surface);
    border: 1px solid var(--user-border);
    border-radius: var(--user-radius-md);
}

.user-confusion-title {
    margin: 0 0 14px;
    font-size: 1rem;
    line-height: 1.45;
}

.user-confusion-section + .user-confusion-section {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid var(--user-border);
}

.user-confusion-label {
    margin: 0 0 6px;
    font-size: 0.82rem;
    letter-spacing: 0;
}

.user-confusion-evidence,
.user-confusion-correct-check {
    font-size: 0.9rem;
    line-height: 1.7;
    overflow-wrap: anywhere;
}

.user-confusion-correct {
    padding: 12px;
    background: var(--user-surface-soft);
    border-radius: var(--user-radius-sm);
}

@media (max-width: 700px) {
    .user-confusion-map {
        grid-template-columns: 1fr;
    }
}


/* ---------- Agent Visual Bar Chart ---------- */

.user-visual-bars {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
}

.user-visual-bar-row {
    display: grid;
    grid-template-columns: minmax(130px, 1fr) minmax(100px, 2fr) 32px;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.user-visual-bar-label {
    min-width: 0;
    color: var(--user-text-secondary);
    font-size: 0.9rem;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.user-visual-pattern-track {
    display: block;
    width: 100%;
    height: 12px;
    overflow: hidden;
    background: var(--user-surface-soft);
    border: 1px solid var(--user-border);
    border-radius: 999px;
}

.user-visual-pattern-bar {
    display: block;
    height: 100%;
    min-width: 3px;
    background: var(--user-primary);
    border-radius: 999px;
    transition: width 0.25s ease;
}

.user-visual-bar-value {
    color: var(--user-text);
    font-size: 0.9rem;
    font-weight: 650;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

@media (max-width: 500px) {
    .user-visual-bar-row {
        grid-template-columns: minmax(90px, 1fr) minmax(70px, 1.5fr) 28px;
        gap: 8px;
    }

    .user-visual-bar-label,
    .user-visual-bar-value {
        font-size: 0.82rem;
    }
}


/* ---------- PYQ Timeline ---------- */

.user-visual-timeline {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 4px 0;
}

.user-visual-timeline-item {
    position: relative;
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    align-items: start;
    gap: 16px;

    padding: 0 0 20px 28px;
    border-left: 2px solid #cbd2da;
}

/* End the connector after the final event */
.user-visual-timeline-item:last-child {
    padding-bottom: 0;
    border-left-color: transparent;
}

/* Timeline marker */
.user-visual-timeline-item::before {
    content: "";
    position: absolute;
    left: -7px;
    top: 4px;

    width: 10px;
    height: 10px;

    border: 2px solid var(--user-surface);
    border-radius: 50%;
    background: var(--user-primary);
    box-shadow: 0 0 0 1px var(--user-border);
}

/* Year */
.user-visual-timeline-year {
    min-width: 0;
    color: var(--user-text);
    font-size: 0.95rem;
    font-weight: 650;
    font-variant-numeric: tabular-nums;
}

/* Event description — actual class used by JavaScript */
.user-visual-timeline-focus {
    min-width: 0;
    color: var(--user-text-secondary);
    line-height: 1.7;
    overflow-wrap: anywhere;
}

@media (max-width: 500px) {
    .user-visual-timeline-item {
        grid-template-columns: 1fr;
        gap: 4px;
        padding-left: 24px;
    }
}

/* Analysis dashboard panels */

.user-visual-dashboard {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.user-visual-dashboard-panel {
    min-width: 0;
    padding: 18px;
    border: 1px solid var(--user-border);
    border-radius: var(--user-radius-md);
    background: var(--user-surface-soft);
}

.user-visual-dashboard-panel-title {
    margin: 0 0 14px;
    color: var(--user-text);
    font-size: 1rem;
}

.user-visual-dashboard-items {
    display: grid;
    gap: 10px;
}

.user-visual-dashboard-item {
    min-width: 0;
    padding: 12px;
    border: 1px solid var(--user-border);
    border-radius: var(--user-radius-md);
    background: var(--user-surface);
    overflow-wrap: anywhere;
}

.user-visual-dashboard-item-title {
    margin: 0 0 6px;
    color: var(--user-text);
    font-size: 0.95rem;
}

.user-visual-dashboard-item p {
    margin: 6px 0 0;
    color: var(--user-text-secondary);
    line-height: 1.6;
}

.user-visual-dashboard-count {
    font-weight: 650;
    color: var(--user-text);
}

@media (max-width: 650px) {
    .user-visual-dashboard {
        grid-template-columns: 1fr;
    }
}


/* =========================================================
   DISHAAN — REUSABLE VISUAL COMPONENTS
   ========================================================= */

.user-visual-component {
    min-width: 0;
    padding: var(--user-space-lg);
    border: 1px solid var(--user-border);
    border-radius: var(--user-radius-md);
    background: var(--user-surface);
    box-shadow: var(--user-shadow-sm);
}

.user-visual-component > h3 {
    margin-bottom: var(--user-space-md);
}

.user-visual-subtitle {
    margin-bottom: var(--user-space-md);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Cards */

.user-visual-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--user-space-md);
}

.user-visual-item {
    min-width: 0;
    padding: var(--user-space-lg);
    border: 1px solid var(--user-border);
    border-radius: var(--user-radius-md);
    background: var(--user-surface-soft);
    overflow-wrap: anywhere;
}

.user-visual-item h4 {
    margin-bottom: var(--user-space-sm);
    font-size: 0.9rem;
    font-weight: 600;
}

.user-visual-item strong {
    display: block;
    color: var(--user-text);
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.4;
    font-variant-numeric: tabular-nums;
}

.user-visual-item p {
    margin-top: var(--user-space-sm);
    font-size: 0.88rem;
    line-height: 1.6;
}

/* Bars */

.user-visual-bar-row {
    display: grid;
    grid-template-columns: minmax(90px, 1fr) minmax(60px, 2fr) 40px;
    align-items: center;
    gap: var(--user-space-sm);
    margin-top: var(--user-space-md);
}

.user-visual-bar-label {
    color: var(--user-text-secondary);
    font-size: 0.88rem;
    overflow-wrap: anywhere;
}

.user-visual-bar-track {
    height: 10px;
    overflow: hidden;
    border: 1px solid var(--user-border);
    border-radius: 999px;
    background: var(--user-surface-soft);
}

.user-visual-bar {
    height: 100%;
    min-width: 0;
    border-radius: inherit;
    background: var(--user-primary);
    transition: width 0.25s ease;
}

.user-visual-bar-value {
    color: var(--user-text);
    text-align: right;
    font-size: 0.85rem;
    font-weight: 650;
    font-variant-numeric: tabular-nums;
}

/* Timeline */

.user-visual-timeline {
    margin: 0;
    padding-left: 24px;
}

.user-visual-timeline li {
    padding: 0 0 var(--user-space-lg) var(--user-space-sm);
    color: var(--user-text);
}

.user-visual-timeline li::marker {
    color: var(--user-primary);
    font-weight: 700;
}

.user-visual-timeline li:last-child {
    padding-bottom: 0;
}

.user-visual-timeline li strong {
    display: block;
    margin-bottom: var(--user-space-xs);
    overflow-wrap: anywhere;
}

.user-visual-timeline li p {
    font-size: 0.9rem;
    line-height: 1.65;
    overflow-wrap: anywhere;
}

/* Ordered steps */

.user-visual-steps {
    display: flex;
    flex-direction: column;
    gap: var(--user-space-sm);
    margin: 0;
    padding-left: 28px;
}

.user-visual-steps li {
    padding: var(--user-space-sm) var(--user-space-md);
    border: 1px solid var(--user-border);
    border-radius: var(--user-radius-sm);
    background: var(--user-surface-soft);
    color: var(--user-text-secondary);
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.user-visual-steps li::marker {
    color: var(--user-text);
    font-weight: 700;
}

/* Tables */

.user-visual-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.user-visual-component:has(.user-visual-table) {
    overflow-x: auto;
}

.user-visual-table th,
.user-visual-table td {
    padding: 12px;
    border: 1px solid var(--user-border);
    text-align: left;
    vertical-align: top;
    overflow-wrap: anywhere;
}

.user-visual-table th {
    background: var(--user-surface-soft);
    color: var(--user-text);
    font-weight: 650;
}

.user-visual-table td {
    color: var(--user-text-secondary);
}

/* Notes */

.user-visual-note {
    background: var(--user-surface-soft);
    box-shadow: none;
}

.user-visual-note p {
    line-height: 1.7;
    overflow-wrap: anywhere;
}

/* Responsive */

@media (max-width: 600px) {
    .user-visual-grid {
        grid-template-columns: 1fr;
    }

    .user-visual-component {
        padding: var(--user-space-md);
    }

    .user-visual-bar-row {
        grid-template-columns: minmax(75px, 1fr) minmax(45px, 1.5fr) 32px;
        gap: 8px;
    }

    .user-visual-bar-label,
    .user-visual-bar-value {
        font-size: 0.8rem;
    }

    .user-visual-table {
        min-width: 420px;
    }
}

/* ---------- Evidence-led answer hierarchy ---------- */
/* Keep the existing response schema and renderer intact; refine only presentation. */
.user-answer-header {
    padding-bottom: var(--user-space-md);
    border-bottom: 1px solid var(--user-border);
}

.user-answer-content > .user-explanation,
.user-answer-content > .user-key-points {
    border-left: 3px solid #879bb8;
}

.user-answer-content > .user-explanation .user-card-body,
.user-answer-content > .user-key-points .user-card-body {
    padding-left: calc(var(--user-space-xl) - 3px);
}

.user-answer-content > .user-evidence {
    border-color: #46546a;
    background: #171b22;
}

.user-answer-content > .user-evidence .user-evidence-item {
    background: #1e232c;
    border-color: #394353;
}

.user-answer-content > .user-action {
    background: #202631;
    border-color: #46546a;
}

.user-answer-content > .user-action .user-card-body {
    padding-top: var(--user-space-lg);
    padding-bottom: var(--user-space-lg);
}

.user-answer-content > .user-action h2,
.user-answer-content > .user-action h3,
.user-answer-content > .user-action h4 {
    color: var(--user-text);
}

.user-answer-content > .user-explanation h2,
.user-answer-content > .user-explanation h3,
.user-answer-content > .user-explanation h4,
.user-answer-content > .user-key-points h2,
.user-answer-content > .user-key-points h3,
.user-answer-content > .user-key-points h4,
.user-answer-content > .user-evidence h2,
.user-answer-content > .user-evidence h3,
.user-answer-content > .user-evidence h4,
.user-answer-content > .user-action h2,
.user-answer-content > .user-action h3,
.user-answer-content > .user-action h4 {
    line-height: 1.35;
    letter-spacing: -0.01em;
}

@media (max-width: 760px) {
    .user-answer {
        padding: var(--user-space-lg);
    }

    .user-answer-content {
        gap: var(--user-space-md);
    }
}


/* ---------- Evidence-led Answer Typography ---------- */

#answerContent {
    display: flex;
    flex-direction: column;
    gap: 16px;

    color: var(--user-text);
    font-size: 0.96rem;
    line-height: 1.8;

    overflow-wrap: anywhere;
}

/* Consistent spacing inside every answer block */
#answerContent .user-card-body {
    min-width: 0;
}

#answerContent p {
    margin: 0 0 12px;
    line-height: 1.8;
}

#answerContent p:last-child {
    margin-bottom: 0;
}

/* Clear hierarchy without changing response structure */
#answerContent h2,
#answerContent h3,
#answerContent h4,
#answerContent h5 {
    color: var(--user-text);
    line-height: 1.4;
    letter-spacing: -0.01em;
}

#answerContent h2 {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 20px 0 10px;
}

#answerContent h3 {
    font-size: 1.05rem;
    font-weight: 650;
    margin: 16px 0 8px;
}

#answerContent h4,
#answerContent h5 {
    font-size: 0.96rem;
    font-weight: 650;
    margin: 12px 0 6px;
}

/* Lists should be easy to scan */
#answerContent ul,
#answerContent ol {
    padding-left: 1.4rem;
    margin: 8px 0 14px;
}

#answerContent li {
    padding-left: 2px;
    line-height: 1.75;
}

#answerContent li + li {
    margin-top: 6px;
}

/* Preserve readable table layouts */
#answerContent .user-markdown-table-wrapper,
#answerContent .user-matrix-wrapper,
#answerContent .user-heatmap-wrapper {
    max-width: 100%;
    overflow-x: auto;
}

/* Marathi and English readability on narrow screens */
@media (max-width: 700px) {
    #answerContent {
        font-size: 0.94rem;
        line-height: 1.8;
        gap: 12px;
    }

    #answerContent .user-card-body {
        padding: var(--user-space-lg);
    }

    #answerContent h2 {
        font-size: 1.12rem;
    }

    #answerContent h3 {
        font-size: 1rem;
    }
}


/* ---------- Answer Block Hierarchy ---------- */

.user-answer-content {
    display: flex;
    flex-direction: column;
    gap: 14px;
    line-height: 1.75;
    overflow-wrap: anywhere;
}

/* Explanation: emphasize reasoning */
.user-explanation {
    border-left: 3px solid #8da9d5;
}

/* PYQ evidence: emphasize traceability */
.user-evidence {
    border-color: #46536a;
}

.user-evidence-item {
    background: var(--user-surface-soft);
    border-color: #3a4352;
}

/* Preparation guidance: distinguish actionable advice */
.user-action {
    background: #202630;
    border-color: #46536a;
}

/* Improve readability inside answer blocks */
.user-explanation-body,
.user-evidence-body,
.user-action-body {
    line-height: 1.75;
    overflow-wrap: anywhere;
}

/* Keep headings distinct from supporting text */
.user-explanation-body h2,
.user-explanation-body h3,
.user-action-body h2,
.user-action-body h3 {
    color: var(--user-text);
    line-height: 1.4;
    margin-top: 14px;
    margin-bottom: 8px;
}

/* Narrow screens */
@media (max-width: 640px) {
    .user-answer-content {
        gap: 10px;
    }

    .user-card-body {
        padding: var(--user-space-lg);
    }
}

/* ---------- History Sidebar Readability ---------- */

.agent-history-sidebar {
    min-width: 0;
}

#agentHistoryList {
    gap: 6px;
}

#agentHistoryList > * {
    min-width: 0;
}

#agentHistoryList button,
#agentHistoryList a {
    font-size: 12px;
    line-height: 1.5;
    padding: 10px 9px;
    overflow-wrap: anywhere;
    text-align: left;
}

#agentHistoryList button:hover,
#agentHistoryList a:hover {
    background: #252b35;
}

#agentHistoryList button:focus-visible,
#agentHistoryList a:focus-visible {
    outline: 2px solid #a9bfdc;
    outline-offset: 2px;
}

/* ---------- PYQ Evidence Readability ---------- */

#answerContent .user-evidence-question {
    padding: 12px 14px;
    margin: 10px 0;
    border: 1px solid #343d4c;
    border-radius: 10px;
    background: #191e27;
    line-height: 1.8;
    overflow-wrap: anywhere;
}

#answerContent .user-evidence-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 10px;
    margin-bottom: 8px;
    color: #aebdd4;
    font-size: 0.85rem;
    line-height: 1.5;
}

#answerContent .user-evidence-question strong {
    color: #f2f4f8;
}

#answerContent .user-evidence-question p {
    margin: 6px 0;
}

#answerContent .user-evidence-question p:last-child {
    margin-bottom: 0;
}

@media (max-width: 700px) {
    #answerContent .user-evidence-question {
        padding: 10px 11px;
    }
}

/* ---------- Evidence Source Readability ---------- */

#answerContent .user-evidence-item {
    padding: 16px 18px;
    margin: 0;
    border: 1px solid #3a4556;
    border-radius: 12px;
    background: #1a1f28;
    line-height: 1.8;
    overflow-wrap: anywhere;
}

#answerContent .user-evidence-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

#answerContent .user-evidence-meta {
    margin-bottom: 10px;
    color: #b9c8df;
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.5;
}

#answerContent .user-evidence-question-number {
    margin-bottom: 6px;
    color: #c4d5ef;
    font-size: 0.88rem;
    font-weight: 600;
}

#answerContent .user-evidence-question {
    margin: 0;
    color: var(--user-text);
    font-size: 0.96rem;
    line-height: 1.85;
    overflow-wrap: anywhere;
}

@media (max-width: 700px) {
    #answerContent .user-evidence-item {
        padding: 12px;
    }
}
/* ---------- Agent Workspace Introduction ---------- */

.agent-main-panel .user-stack-sm > p.user-muted {
    margin: 0 0 12px;
    color: #8faed8;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.agent-main-panel .user-stack-sm > h1 {
    margin: 0;
    color: #f3f5f9;
    font-size: clamp(2.1rem, 3vw, 2.75rem);
    font-weight: 750;
    line-height: 1.15;
    letter-spacing: -0.045em;
}

.agent-main-panel .user-stack-sm > h1 + p {
    max-width: 540px;
    margin: 14px 0 0;
    color: #aab6c8;
    font-size: 1rem;
    line-height: 1.75;
}

@media (max-width: 700px) {
    .agent-main-panel .user-stack-sm > h1 {
        font-size: 2rem;
        letter-spacing: -0.03em;
    }
}
/* ---------- Agent Intro Width ---------- */

.agent-main-panel .user-stack-sm > h1 {
    max-width: 900px;
}

.agent-main-panel .user-stack-sm > h1 + p {
    max-width: 560px;
}

/* ---------- Dishaan Header ---------- */

.user-header {
    background: #111318;
    border-bottom: 1px solid #2b313b;
}

.user-header-inner {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.user-header .user-brand {
    color: #f3f5f9;
    font-size: 1.35rem;
    font-weight: 750;
    letter-spacing: -0.04em;
    text-decoration: none;
}

.user-header .user-muted {
    color: #929daf;
    font-size: 0.95rem;
    font-weight: 500;
}

.user-header form {
    margin: 0;
}

.user-header .user-button-secondary {
    padding: 8px 14px;
    border: 1px solid #394353;
    border-radius: 8px;
    background: transparent;
    color: #d7deea;
    font-size: 0.875rem;
    transition: background 160ms ease, border-color 160ms ease;
}

.user-header .user-button-secondary:hover {
    background: #202631;
    border-color: #536177;
}

@media (max-width: 600px) {
    .user-header-inner {
        gap: 12px;
    }

    .user-header .user-muted {
        font-size: 0.8rem;
    }

    .user-header .user-brand {
        font-size: 1.2rem;
    }
}

/* ---------- Marathi Brand Header ---------- */

.user-header .user-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
    color: #f3f5f9;
    text-decoration: none;
}

.user-header .user-brand-name {
    font-size: 1.4rem;
    font-weight: 750;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

.user-header .user-brand-tagline {
    color: #aab6c8;
    font-size: 0.82rem;
    font-weight: 400;
    line-height: 1.5;
    letter-spacing: 0;
}

@media (max-width: 600px) {
    .user-header .user-brand-name {
        font-size: 1.2rem;
    }

    .user-header .user-brand-tagline {
        font-size: 0.72rem;
    }
}
.user-header .user-brand-tagline {
    color: #929daf;
    font-size: 0.82rem;
    font-weight: 400;
}
/* ---------- Agent History Sidebar Refinement ---------- */

.agent-history-sidebar .history-item,
.agent-history-sidebar a {
    line-height: 1.55;
}

.agent-history-sidebar .history-item {
    padding: 10px 12px;
    border-radius: 8px;
    overflow-wrap: anywhere;
    transition: background 150ms ease;
}

.agent-history-sidebar .history-item:hover {
    background: #222833;
}

.agent-history-sidebar .history-item.active,
.agent-history-sidebar .history-item[aria-current="true"] {
    background: #252d39;
}

/* ---------- History Sidebar Refinement ---------- */

#agentHistoryList {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

#agentHistoryList .agent-history-item {
    width: 100%;
    padding: 11px 12px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: transparent;
    color: #cbd3df;
    text-align: left;
    font-size: 0.88rem;
    line-height: 1.55;
    white-space: normal;
    overflow-wrap: anywhere;
    transition: background-color 150ms ease, border-color 150ms ease;
}

#agentHistoryList .agent-history-item:hover {
    background: #222833;
    border-color: #303b4b;
}

#agentHistoryList .agent-history-item.is-active {
    background: #252e3b;
    border-color: #43536b;
    color: #f3f6fb;
}

#agentHistoryList .agent-history-item:focus-visible {
    outline: 2px solid #8faed8;
    outline-offset: 2px;
}

/* ---------- Answer Reading Comfort ---------- */

#answerContent .user-card-body {
    line-height: 1.8;
}

#answerContent .user-card-body p {
    margin-top: 0;
    margin-bottom: 12px;
}

#answerContent .user-card-body ul,
#answerContent .user-card-body ol {
    padding-left: 22px;
    margin: 10px 0 14px;
}

#answerContent .user-card-body li {
    padding-left: 2px;
    margin-bottom: 7px;
}

#answerContent .user-card-body li:last-child {
    margin-bottom: 0;
}

#answerContent .user-card-body h3,
#answerContent .user-card-body h4 {
    margin-top: 18px;
    margin-bottom: 8px;
    line-height: 1.45;
}
/* ---------- Saved Answer Container ---------- */

#answerBox {
    border-color: #252b35;
    box-shadow: none;
}

#answerBox > .user-card-header {
    border-bottom-color: #303744;
}

/* ---------- Agent Answer Hierarchy ---------- */

/* 1. Primary answer — strongest visual emphasis */
#answerContent .user-comparison {
    background: #202733;
    border: 1px solid #536783;
    border-left: 3px solid #91acd3;
}

/* 2. Key points — clear, structured reading */
#answerContent .user-key-points {
    background: #191e27;
    border: 1px solid #384454;
}

/* 3. Explanation — quieter supporting detail */
#answerContent .user-explanation {
    background: #171b22;
    border: 1px solid #303844;
}

/* 4. Action — distinguish the practical next step */
#answerContent .user-action {
    background: #202630;
    border: 1px solid #45566d;
    border-left: 3px solid #7e9fc9;
}

/* Consistent readable spacing */
#answerContent .user-comparison-body,
#answerContent .user-key-points .user-card-body,
#answerContent .user-explanation-body,
#answerContent .user-action-body {
    line-height: 1.8;
}

#answerContent .user-comparison-body > p:first-child {
    margin-top: 0;
}

#answerContent .user-action-title {
    margin-top: 0;
}
/* ---------- Login Page Refinement ---------- */

.user-auth-card {
    width: 100%;
    max-width: 560px;
    margin-inline: auto;
}

.user-auth-card h1 {
    margin-bottom: 4px;
}

.user-auth-card h1 + p {
    margin-top: 0;
    color: #aab6c8;
}

@media (max-width: 600px) {
    .user-auth-card {
        max-width: 100%;
    }
}
/* ---------- Login Card Width ---------- */

.user-page .user-section > .user-card {
    width: 100%;
    max-width: 560px;
    margin-inline: auto;
}
/* ---------- Login Brand Hierarchy ---------- */

.user-header .user-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
    text-decoration: none;
}

.user-header .user-brand-name {
    color: #f3f5f9;
    font-size: 1.4rem;
    font-weight: 750;
    line-height: 1.3;
}

.user-header .user-brand-tagline {
    color: #929daf;
    font-size: 0.82rem;
    font-weight: 400;
    line-height: 1.5;
}


/* ---------- Landing Page Hero ---------- */

.landing-page {
    min-height: calc(100vh - 80px);
}

.landing-hero {
    padding: 80px 0 72px;
}

.landing-hero-content {
    max-width: 760px;
    margin: 0 auto;
}

.landing-eyebrow {
    margin: 0 0 22px;
    color: #9dbbe5;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.035em;
}

.landing-eyebrow span {
    padding: 0 5px;
    color: #66758a;
}

.landing-hero h1 {
    max-width: 720px;
    margin: 0 0 24px;
    color: #f3f5f9;
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 750;
    line-height: 1.3;
    letter-spacing: -0.025em;
}

.landing-hero-description {
    max-width: 680px;
    margin: 0;
    color: #b8c2d1;
    font-size: 1.05rem;
    line-height: 1.9;
}

.landing-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.landing-hero-note {
    margin: 18px 0 0;
    color: #8995a7;
    font-size: 0.82rem;
    line-height: 1.7;
}

@media (max-width: 600px) {
    .landing-hero {
        padding: 64px 0 76px;
    }

    .landing-hero h1 {
        font-size: 2rem;
        line-height: 1.4;
    }

    .landing-hero-description {
        font-size: 0.96rem;
    }
}

/* ---------- Landing Product Demonstration ---------- */

.landing-demo {
    padding: 72px 0 88px;
    border-top: 1px solid #252b35;
}

.landing-demo-heading {
    max-width: 700px;
    margin: 0 auto 32px;
}

.landing-demo-heading h2 {
    margin: 0 0 16px;
    color: #f3f5f9;
    font-size: clamp(1.65rem, 3vw, 2.3rem);
    line-height: 1.45;
}

.landing-demo-heading > p:last-child {
    margin: 0;
    color: #b8c2d1;
    font-size: 1rem;
    line-height: 1.85;
}

.landing-demo-caption {
    margin: 16px auto 0;
    color: #8995a7;
    font-size: 0.82rem;
    text-align: center;
}

@media (max-width: 600px) {
    .landing-demo {
        padding: 48px 0 60px;
    }
}

.landing-demo-image {
    max-width: 900px;
    margin: 0 auto;
    overflow: hidden;
    border: 1px solid #354256;
    border-radius: 12px;
    background: #191e27;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.22);
}

.landing-demo-image img {
    display: block;
    width: 100%;
    height: auto;
}

@media (max-width: 600px) {
    .landing-demo-image {
        border-radius: 8px;
    }
}


/* ---------- Landing Product Demonstration ---------- */

.landing-demo {
    padding: 60px 0 96px;
    border-top: 1px solid #252b35;
}

.landing-demo-heading {
    max-width: 760px;
    margin: 0 auto 40px;
}

.landing-demo-heading h2 {
    margin: 0 0 16px;
    color: #f3f5f9;
    font-size: clamp(1.7rem, 3vw, 2.4rem);
    line-height: 1.45;
}

.landing-demo-heading > p:last-child {
    margin: 0;
    color: #b8c2d1;
    font-size: 1rem;
    line-height: 1.85;
}

.landing-demo-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
    align-items: start;
}

.landing-demo-item {
    min-width: 0;
}

.landing-demo-step {
    margin: 0 0 10px;
    color: #9dbbe5;
    font-size: 0.78rem;
    font-weight: 650;
    letter-spacing: 0.04em;
}

.landing-demo-item h3 {
    margin: 0 0 10px;
    color: #f3f5f9;
    font-size: 1.2rem;
    line-height: 1.5;
}

.landing-demo-description {
    min-height: 52px;
    margin: 0 0 18px;
    color: #aeb9c9;
    font-size: 0.9rem;
    line-height: 1.75;
}

.landing-demo-image {
    overflow: hidden;
    border: 1px solid #354256;
    border-radius: 12px;
    background: #191e27;
}

.landing-demo-image img {
    display: block;
    width: 100%;
    height: auto;
}

@media (max-width: 760px) {
    .landing-demo {
        padding: 52px 0 64px;
    }

    .landing-demo-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 36px;
    }

    .landing-demo-description {
        min-height: 0;
    }
}
/* ---------- Landing Demo Readability ---------- */

.landing-demo-heading {
    max-width: 820px;
    margin-bottom: 48px;
}

.landing-demo-grid {
    gap: 32px;
}

.landing-demo-item h3 {
    font-size: 1.3rem;
}

.landing-demo-description {
    font-size: 0.95rem;
    line-height: 1.8;
}

.landing-demo-image {
    border-radius: 10px;
    background: #191e27;
}

.landing-demo-image img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

/* ---------- Landing Aspirant Questions ---------- */

.landing-questions {
    padding: 76px 0 88px;
    border-top: 1px solid #252b35;
}

.landing-questions-heading {
    max-width: 760px;
    margin: 0 auto 36px;
}

.landing-questions-heading h2 {
    margin: 0 0 14px;
    color: #f3f5f9;
    font-size: clamp(1.7rem, 3vw, 2.3rem);
    line-height: 1.45;
}

.landing-questions-heading > p:last-child {
    color: #b8c2d1;
    line-height: 1.85;
}

.landing-question-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.landing-question-card {
    padding: 24px;
    border: 1px solid #303b4b;
    border-radius: 12px;
    background: #171b22;
}

.landing-question-card h3 {
    margin: 0 0 12px;
    color: #edf1f7;
    font-size: 1.05rem;
    line-height: 1.6;
}

.landing-question-card p {
    margin: 0;
    color: #b8c2d1;
    font-size: 0.92rem;
    line-height: 1.85;
}

.landing-questions-cta {
    margin-top: 32px;
    text-align: center;
}

.landing-questions a {
    text-decoration: none;
}

@media (max-width: 760px) {
    .landing-questions {
        padding: 52px 0 64px;
    }

    .landing-question-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .landing-question-card {
        padding: 20px;
    }
}

/* ---------- Landing Feedback Note ---------- */

.landing-feedback-note {
    max-width: 600px;
    margin: 20px auto 0;
    color: #8995a7;
    font-size: 0.84rem;
    line-height: 1.8;
    text-align: center;
}

/* ---------- Landing Footer ---------- */

.landing-footer {
    border-top: 1px solid #252b35;
    background: #0e1014;
    padding: 36px 0 24px;
}

.landing-footer-main {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 32px;
    padding-bottom: 28px;
}

.landing-footer-brand {
    max-width: 420px;
}

.landing-footer-brand p {
    margin: 14px 0 0;
    color: #8995a7;
    font-size: 0.86rem;
    line-height: 1.8;
}

.landing-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.landing-footer-links a {
    color: #cbd5e1;
    font-size: 0.88rem;
    text-decoration: none;
}

.landing-footer-links a:hover {
    color: #ffffff;
}

.landing-footer-links a:focus-visible {
    outline: 2px solid #9dbbe5;
    outline-offset: 4px;
}

.landing-footer-bottom {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding-top: 20px;
    border-top: 1px solid #252b35;
}

.landing-footer-bottom p {
    margin: 0;
    color: #778397;
    font-size: 0.78rem;
    line-height: 1.8;
}

@media (max-width: 600px) {
    .landing-footer {
        padding-top: 28px;
    }

    .landing-footer-main,
    .landing-footer-bottom {
        flex-direction: column;
        gap: 20px;
    }

    .landing-footer-links {
        gap: 16px;
    }
}
/* Disclaimer shown at the bottom of the page */
.user-disclaimer {
    max-width: 1200px;
    margin: 16px auto;
    padding: 0 20px 12px;
    text-align: center;
    font-size: 12px;
    line-height: 1.6;
}


/* ---------- Hero Two-Column Layout ---------- */

.landing-hero {
    padding: 80px 0 72px;
}

.landing-hero-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
    align-items: center;
    gap: clamp(40px, 6vw, 80px);
}

.landing-hero-content {
    max-width: 680px;
    margin: 0;
}

/* Right-side example panel */

.landing-hero-preview {
    width: 100%;
    max-width: 460px;
    justify-self: end;
    padding: 28px;

    background: #191c23;
    border: 1px solid #343945;
    border-radius: 18px;

    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.2);
}

.landing-preview-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 22px;
}

.landing-preview-label {
    color: #9dbbe5;
    font-size: 0.82rem;
    font-weight: 650;
}

.landing-preview-context {
    color: #8995a7;
    font-size: 0.78rem;
}

.landing-preview-question {
    padding: 18px;
    background: #20242d;
    border: 1px solid #343945;
    border-radius: 12px;

    color: #f2f4f8;
    font-size: 1rem;
    line-height: 1.8;
}

.landing-preview-response {
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid #343945;
}

.landing-preview-response-label {
    margin-bottom: 16px;
    color: #f2f4f8;
    font-size: 0.92rem;
    font-weight: 650;
}

.landing-preview-point {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 11px 0;
}

.landing-preview-point + .landing-preview-point {
    border-top: 1px solid #2b313b;
}

.landing-preview-point span {
    color: #9dbbe5;
    font-size: 0.8rem;
    font-weight: 650;
}

.landing-preview-point p {
    color: #b5bdca;
    font-size: 0.9rem;
}

.landing-preview-note {
    margin-top: 16px;
    color: #8995a7;
    font-size: 0.78rem;
}

/* Responsive layout */

@media (max-width: 760px) {
    .landing-hero {
        padding: 64px 0 56px;
    }

    .landing-hero-layout {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .landing-hero-content {
        max-width: none;
    }

    .landing-hero-preview {
        max-width: none;
        justify-self: stretch;
    }
}

@media (max-width: 600px) {
    .landing-hero-preview {
        padding: 20px;
    }
}



/* =========================================================
   DISHAAN — USER GUIDE PAGE
   ========================================================= */

/* Header navigation */

.user-header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.user-guide-link {
    color: #b8c7dc;
    font-size: 0.88rem;
    text-decoration: none;
    transition: color 0.15s ease;
}

.user-guide-link:hover {
    color: #ffffff;
}


/* Guide hero */

.guide-hero {
    padding: 64px 0 48px;
    border-bottom: 1px solid #252b35;
}

.guide-hero .user-container {
    max-width: 1100px;
}

.guide-hero h1 {
    margin-bottom: 18px;
    font-size: clamp(2.1rem, 4vw, 3rem);
    font-weight: 750;
    line-height: 1.3;
}

.guide-hero > .user-container > p:last-child {
    max-width: 720px;
    color: #b8c2d1;
    font-size: 1.05rem;
    line-height: 1.85;
}


/* Guide sections */

.guide-section {
    padding: 64px 0;
    border-bottom: 1px solid #252b35;
}

.guide-section-alt {
    background: #14171d;
}

.guide-intro {
    max-width: 850px;
}

.guide-intro h2,
.guide-section-heading h2 {
    margin-bottom: 16px;
    font-size: clamp(1.5rem, 3vw, 2rem);
}

.guide-intro p,
.guide-section-heading > p:last-child {
    color: #b5bdca;
    font-size: 0.98rem;
    line-height: 1.9;
}

.guide-section-heading {
    max-width: 760px;
    margin-bottom: 32px;
}


/* Category cards */

.guide-category-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.guide-card {
    min-width: 0;
    padding: 24px;

    background: #191c23;
    border: 1px solid #343945;
    border-radius: 14px;

    display: flex;
    flex-direction: column;
}

.guide-card-number {
    margin-bottom: 18px;
    color: #9dbbe5;
    font-size: 0.8rem;
    font-weight: 700;
}

.guide-card h3 {
    margin-bottom: 12px;
    font-size: 1.08rem;
}

.guide-card > p {
    font-size: 0.9rem;
    line-height: 1.8;
}

.guide-example {
    margin-top: 18px;
    padding: 14px;

    background: #20242d;
    border: 1px solid #343945;
    border-radius: 9px;

    color: #cbd5e1;
    font-size: 0.86rem;
    line-height: 1.75;
    overflow-wrap: anywhere;
}


/* Asking better questions */

.guide-writing-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.guide-writing-card {
    min-width: 0;
    padding: 26px;

    background: #191c23;
    border: 1px solid #343945;
    border-radius: 14px;
}

.guide-writing-card h3 {
    margin-bottom: 18px;
}

.guide-writing-card ul {
    padding-left: 22px;
    color: #b5bdca;
    line-height: 1.9;
}

.guide-writing-card li + li {
    margin-top: 8px;
}

.guide-example-label {
    margin-top: 16px;
    color: #9dbbe5;
    font-size: 0.8rem;
    font-weight: 650;
}

.guide-example-label:first-of-type {
    margin-top: 0;
}

.guide-example-better {
    border-color: #536177;
}

.guide-small-note {
    margin-top: 20px;
    color: #8995a7;
    font-size: 0.86rem;
    line-height: 1.7;
}


/* Request limits */

.guide-limits-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.guide-limit {
    padding: 24px;
    background: #191c23;
    border: 1px solid #343945;
    border-radius: 12px;
}

.guide-limit strong {
    display: block;
    margin-bottom: 16px;
    color: #9dbbe5;
    font-size: 0.85rem;
}

.guide-limit h3 {
    margin-bottom: 10px;
    font-size: 1.05rem;
}

.guide-limit p {
    font-size: 0.9rem;
    line-height: 1.8;
}


/* Exam context */

.guide-context-list {
    max-width: 850px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.guide-context-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 20px;

    background: #191c23;
    border: 1px solid #343945;
    border-radius: 12px;
}

.guide-context-item > span {
    color: #9dbbe5;
    font-size: 0.85rem;
    font-weight: 700;
}

.guide-context-item h3 {
    margin-bottom: 6px;
    font-size: 1rem;
}

.guide-context-item p {
    font-size: 0.9rem;
    line-height: 1.7;
}


/* Important limitations */

.guide-notice-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.guide-notice {
    padding: 22px;

    background: #191c23;
    border: 1px solid #343945;
    border-radius: 12px;
}

.guide-notice h3 {
    margin-bottom: 10px;
    font-size: 1rem;
}

.guide-notice p {
    font-size: 0.9rem;
    line-height: 1.8;
}


/* Study routine */

.guide-routine {
    max-width: 850px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.guide-routine-step {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 17px 20px;

    background: #191c23;
    border: 1px solid #343945;
    border-radius: 10px;
}

.guide-routine-step span {
    color: #9dbbe5;
    font-size: 0.85rem;
    font-weight: 700;
}

.guide-routine-step p {
    color: #cbd5e1;
    font-size: 0.92rem;
    line-height: 1.7;
}


/* Bottom CTA */

.guide-bottom-cta {
    padding: 76px 0;
    text-align: center;
}

.guide-bottom-cta h2 {
    margin-bottom: 14px;
    font-size: clamp(1.5rem, 3vw, 2rem);
}

.guide-bottom-cta > .user-container > p {
    margin-bottom: 24px;
    line-height: 1.8;
}

.guide-bottom-cta .user-button {
    text-decoration: none;
}

.guide-bottom-cta .guide-free-note {
    margin-top: 16px;
    margin-bottom: 0;
    color: #8995a7;
    font-size: 0.8rem;
}


/* Responsive */

@media (max-width: 800px) {
    .guide-category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .guide-limits-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .user-header-actions {
        gap: 12px;
    }

    .user-guide-link {
        font-size: 0.78rem;
    }

    .guide-hero {
        padding: 48px 0 36px;
    }

    .guide-section {
        padding: 48px 0;
    }

    .guide-category-grid,
    .guide-writing-grid,
    .guide-notice-list {
        grid-template-columns: 1fr;
    }

    .guide-card,
    .guide-writing-card {
        padding: 20px;
    }

    .guide-context-item {
        gap: 14px;
        padding: 16px;
    }

    .guide-routine-step {
        align-items: flex-start;
        padding: 15px;
    }

    .guide-bottom-cta {
        padding: 56px 0;
    }
}


/* ---------- Semantic Response Block Headings ---------- */

#answerContent .user-response-block-heading {
    margin: 0 0 14px;
    padding-bottom: 10px;

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

    color: var(--user-text);
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: -0.01em;
}
