        /* ==========================================
           ASSESSMENT CSS (extracted from research.css)
           ========================================== */
        :root {
            --research-coral: #D4856A;
            --research-coral-hover: #C47259;
            --research-success: #2E7D32;
            --research-warning: #ED6C02;
            --research-danger: #D32F2F;
            --research-paradox: #7B1FA2;
            --research-card-shadow: 0 2px 12px rgba(0,0,0,0.08);
            --research-card-shadow-hover: 0 6px 20px rgba(0,0,0,0.12);
            --research-radius-card: 12px;
            --research-radius-btn: 8px;
            --research-bg-warm: #F5F0E8;
            --assess-navy: #0a2540;
            --assess-navy-light: #0f3558;
            --assess-teal: #0fa89e;
            --assess-teal-light: #e6f7f6;
            --assess-teal-bg: rgba(15, 168, 158, 0.08);
            --assess-gold: #d4a843;
            --assess-gold-light: #faf3e3;
            --assess-gold-bg: rgba(212, 168, 67, 0.08);
            --assess-coral: #e07a5f;
            --assess-warm-bg: #f5f0e8;
            --assess-page-bg: #efece8;
            --assess-progress: #9333ea;
            --assess-progress-light: rgba(147, 51, 234, 0.7);
            --assess-card-shadow: 0 6px 28px rgba(10, 37, 64, 0.12), 0 1px 3px rgba(10, 37, 64, 0.06);
            --assess-card-radius: 14px;
            /* Bootstrap-compat vars used by some assessment elements */
            --bs-primary: #0a2540;
            --bs-secondary: #6c757d;
            --bs-accent: #009688;
            --bs-accent-gold: #C9973B;
            --bs-heading-font-family: 'Instrument Serif', serif;
            --bs-editorial-font-family: 'Instrument Serif', serif;
        }

        body { background: var(--assess-page-bg); }

        /* Hide site header/footer during assessment */
        body.assess-active #header-placeholder,
        body.assess-active #footer-placeholder,
        body.assess-active .credibility-bar { display: none !important; }
        body.assess-active { background: var(--assess-page-bg); }

        /* Old progress bar (hidden during assessment, kept for non-assess pages) */
        .assessment-progress { display: none; }

        /* Minimal assessment header */
        .assess-header {
            background: var(--assess-navy);
            padding: 14px 28px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            max-width: 780px;
            margin: 0 auto;
            border-radius: 0;
        }
        .assess-header .logo {
            font-family: 'Plus Jakarta Sans', sans-serif;
            font-weight: 700;
            font-size: 0.95rem;
            color: white;
            letter-spacing: 1.2px;
            text-transform: uppercase;
            display: flex;
            align-items: center;
            gap: 8px;
            text-decoration: none;
        }
        .assess-header .logo .dot {
            width: 8px; height: 8px; border-radius: 50%;
            background: var(--assess-teal);
        }
        .assess-header .save-exit {
            font-size: 0.8rem;
            color: rgba(255,255,255,0.6);
            text-decoration: none;
            cursor: pointer;
            transition: color 0.2s;
            background: none;
            border: none;
        }
        .assess-header .save-exit:hover { color: white; }

        /* Study banner */
        .study-banner {
            background: linear-gradient(135deg, var(--assess-navy) 0%, var(--assess-navy-light) 100%);
            text-align: center;
            padding: 16px 20px 14px;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 14px;
            max-width: 780px;
            margin: 0 auto;
        }
        .study-icon {
            width: 40px; height: 40px; border-radius: 10px;
            background: rgba(15, 168, 158, 0.15);
            color: var(--assess-teal);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.1rem;
            flex-shrink: 0;
        }
        .study-banner .study-info { text-align: left; }
        .study-banner h1 {
            font-family: 'Instrument Serif', serif;
            font-size: 1.3rem;
            font-weight: 600;
            color: white;
            letter-spacing: 0.3px;
            line-height: 1.2;
            margin: 0;
        }
        .study-banner .study-badge-label {
            display: inline-block;
            margin-top: 3px;
            font-size: 0.6rem;
            font-weight: 700;
            letter-spacing: 1.2px;
            text-transform: uppercase;
            color: var(--assess-teal);
        }

        /* User identity */
        .user-identity {
            position: fixed;
            top: 14px; right: 20px;
            display: flex;
            align-items: center;
            gap: 8px;
            z-index: 100;
        }
        .user-identity .user-name {
            font-size: 0.72rem;
            font-weight: 600;
            color: rgba(255,255,255,0.7);
        }
        .user-avatar {
            width: 28px; height: 28px; border-radius: 50%;
            background: rgba(255,255,255,0.15);
            color: rgba(255,255,255,0.8);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.65rem;
            font-weight: 700;
            border: 1.5px solid rgba(255,255,255,0.25);
        }

        /* Progress bar */
        .progress-container {
            background: white;
            padding: 12px 28px 10px;
            border-bottom: 1px solid rgba(0,0,0,0.06);
            max-width: 780px;
            margin: 0 auto;
        }
        .progress-counter {
            margin-top: 6px;
            font-size: 0.68rem;
            color: rgba(10, 37, 64, 0.38);
        }
        .progress-labels {
            display: flex;
            gap: 3px;
            margin-bottom: 6px;
        }
        .progress-label {
            font-size: 0.62rem;
            font-weight: 600;
            letter-spacing: 0.5px;
            text-transform: uppercase;
            color: rgba(10, 37, 64, 0.35);
            transition: color 0.3s;
        }
        .progress-label.active { color: var(--assess-progress); }
        .progress-label.completed { color: var(--assess-navy); }
        .progress-label:nth-child(1) { flex: 3; }
        .progress-label:nth-child(2) { flex: 2; }
        .progress-label:nth-child(3) { flex: 2; }
        .progress-label:nth-child(4) { flex: 2; }
        .progress-bar-track {
            display: flex;
            gap: 3px;
            height: 6px;
            border-radius: 4px;
            overflow: visible;
        }
        .progress-segment {
            height: 100%;
            background: rgba(10, 37, 64, 0.06);
            border-radius: 3px;
            overflow: hidden;
            position: relative;
        }
        .progress-segment:nth-child(1) { flex: 3; }
        .progress-segment:nth-child(2) { flex: 2; }
        .progress-segment:nth-child(3) { flex: 2; }
        .progress-segment:nth-child(4) { flex: 2; }
        .progress-fill {
            height: 100%;
            background: linear-gradient(90deg, var(--assess-progress), var(--assess-progress-light));
            border-radius: 3px;
            transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
        }
        .progress-segment.completed .progress-fill {
            width: 100% !important;
            background: var(--assess-navy);
        }
        /* Legacy single-bar */
        .assessment-progress-fill { height: 100%; transition: width 0.35s ease; }
        .assessment-progress-fill.study-vulnerability {
            background: linear-gradient(90deg, var(--bs-accent) 0%, #00bfa5 100%);
        }
        .assessment-progress-fill.study-adoption {
            background: linear-gradient(90deg, var(--bs-accent-gold) 0%, #e8b84b 100%);
        }
        .assessment-progress-fill.study-friction {
            background: linear-gradient(90deg, var(--research-coral) 0%, #e09b82 100%);
        }

        /* Assessment container */
        .assessment-container {
            min-height: 60vh;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            padding: 32px 0 48px;
        }
        .assess-main {
            flex: 1;
            display: flex;
            align-items: flex-start;
            justify-content: center;
            padding: 20px 20px 32px;
        }
        .question-card {
            width: 100%;
            max-width: 780px;
            background: linear-gradient(170deg, #ffffff 0%, #f4f2ef 40%, #eae7e3 100%);
            border-radius: var(--assess-card-radius);
            box-shadow: var(--assess-card-shadow);
            padding: 32px 44px 36px;
            opacity: 1;
            transform: scale(1);
            transition: opacity 0.25s ease, transform 0.25s ease;
        }
        .question-card.exit { opacity: 0; transform: scale(0.97); }
        .question-card.enter { opacity: 0; transform: scale(1.02); }
        .question-wrapper {
            width: 100%;
            max-width: 800px;
            margin: 0 auto;
            background: white;
            border-radius: var(--research-radius-card);
            box-shadow: var(--research-card-shadow);
            padding: 36px 40px;
            transition: opacity 0.25s ease, transform 0.25s ease;
        }
        .question-enter { opacity: 0; transform: translateY(12px); }
        .question-visible { opacity: 1; transform: translateY(0); }
        .question-exit { opacity: 0; transform: translateY(-12px); }

        /* Purple instruction blocks */
        .purple-block {
            display: flex;
            align-items: flex-start;
            gap: 14px;
            padding: 18px 20px;
            background: rgba(147, 51, 234, 0.05);
            border-left: 3px solid var(--assess-progress);
            border-radius: 10px;
            margin-bottom: 24px;
            position: relative;
        }
        .purple-block-icon {
            width: 36px; height: 36px; min-width: 36px;
            border-radius: 8px;
            background: rgba(147, 51, 234, 0.1);
            color: var(--assess-progress);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.9rem;
        }
        .purple-block-label {
            font-size: 0.62rem;
            font-weight: 700;
            letter-spacing: 0.8px;
            text-transform: uppercase;
            color: var(--assess-progress);
            margin-bottom: 3px;
        }
        .purple-block-text {
            font-size: 0.92rem;
            color: #081d30;
            line-height: 1.55;
            font-weight: 600;
        }
        .purple-block-hint {
            font-size: 0.78rem;
            color: rgba(10, 37, 64, 0.45);
            margin-top: 2px;
        }
        .purple-block h3 {
            font-size: 0.92rem;
            color: #081d30;
            line-height: 1.55;
            font-weight: 600;
            margin: 0 0 2px;
        }
        .purple-block p {
            font-size: 0.82rem;
            color: rgba(10, 37, 64, 0.5);
            margin: 0;
        }
        .block-back {
            position: absolute;
            top: 14px; right: 16px;
            display: inline-flex;
            align-items: center;
            gap: 4px;
            font-size: 0.7rem;
            font-weight: 600;
            color: rgba(147, 51, 234, 0.45);
            text-decoration: none;
            cursor: pointer;
            transition: color 0.2s;
            z-index: 1;
            background: none;
            border: none;
        }
        .block-back:hover { color: var(--assess-progress); }

        /* Tradeoff cards */
        .tradeoff-row {
            display: flex;
            gap: 18px;
            margin-bottom: 32px;
        }
        .tradeoff-card {
            flex: 1;
            padding: 24px 24px 24px 46px;
            border-radius: 12px;
            font-size: 0.92rem;
            line-height: 1.65;
            position: relative;
            overflow: hidden;
        }
        .tradeoff-card::before {
            content: attr(data-letter);
            position: absolute;
            left: 2px; top: 50%;
            transform: translateY(-50%);
            font-family: 'Plus Jakarta Sans', sans-serif;
            font-size: 3.5rem;
            font-weight: 800;
            line-height: 1;
            pointer-events: none;
        }
        .tradeoff-card.card-a::before { color: rgba(15, 168, 158, 0.13); }
        .tradeoff-card.card-b::before { color: rgba(212, 168, 67, 0.13); }
        .tradeoff-card.card-a {
            background: var(--assess-teal-bg);
            border-left: 4px solid var(--assess-teal);
        }
        .tradeoff-card.card-b {
            background: var(--assess-gold-bg);
            border-left: 4px solid var(--assess-gold);
        }
        .tradeoff-card .card-label {
            font-size: 0.65rem;
            font-weight: 700;
            letter-spacing: 1px;
            text-transform: uppercase;
            margin-bottom: 8px;
            position: relative;
        }
        .tradeoff-card .card-text {
            position: relative;
            font-weight: 600;
            color: #081d30;
        }
        .card-a .card-label { color: var(--assess-teal); }
        .card-b .card-label { color: var(--assess-gold); }

        /* 5-point response scale */
        .response-row {
            display: flex;
            justify-content: center;
            gap: 0;
            padding-bottom: 14px;
        }
        .response-btn {
            flex: 1;
            max-width: 140px;
            padding: 14px 10px;
            border: 1px solid rgba(10, 37, 64, 0.12);
            background: white;
            cursor: pointer;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 6px;
            transition: all 0.2s;
            position: relative;
        }
        .response-btn:first-child { border-radius: 10px 0 0 10px; }
        .response-btn:last-child { border-radius: 0 10px 10px 0; }
        .response-btn .btn-icon {
            font-size: 1.4rem;
            line-height: 1;
            transition: transform 0.2s, color 0.2s;
        }
        .response-btn:nth-child(1) .btn-icon { color: var(--assess-teal); }
        .response-btn:nth-child(2) .btn-icon { color: rgba(15, 168, 158, 0.6); }
        .response-btn:nth-child(3) .btn-icon { color: rgba(10, 37, 64, 0.3); }
        .response-btn:nth-child(4) .btn-icon { color: rgba(212, 168, 67, 0.6); }
        .response-btn:nth-child(5) .btn-icon { color: var(--assess-gold); }
        .response-btn .btn-label {
            font-size: 0.62rem;
            font-weight: 600;
            letter-spacing: 0.3px;
            text-transform: uppercase;
            color: rgba(10, 37, 64, 0.5);
            transition: color 0.2s;
        }
        .response-btn:nth-child(1) { background: rgba(15, 168, 158, 0.12); border-color: rgba(15, 168, 158, 0.25); }
        .response-btn:nth-child(2) { background: rgba(15, 168, 158, 0.06); border-color: rgba(15, 168, 158, 0.15); }
        .response-btn:nth-child(3) { background: rgba(10, 37, 64, 0.02); }
        .response-btn:nth-child(4) { background: rgba(212, 168, 67, 0.06); border-color: rgba(212, 168, 67, 0.15); }
        .response-btn:nth-child(5) { background: rgba(212, 168, 67, 0.12); border-color: rgba(212, 168, 67, 0.25); }
        .response-btn:hover {
            background: rgba(10, 37, 64, 0.04);
            border-color: rgba(10, 37, 64, 0.2);
            z-index: 1;
        }
        .response-btn:hover .btn-icon { transform: scale(1.15); }
        .response-btn:hover .btn-label { color: var(--assess-navy); }
        .response-btn.selected {
            background: linear-gradient(135deg, var(--assess-navy) 0%, var(--assess-navy-light) 100%);
            border-color: var(--assess-navy);
            z-index: 2;
        }
        .response-btn.selected .btn-icon { color: white; transform: scale(1.15); }
        .response-btn.selected .btn-label { color: rgba(255,255,255,0.85); }
        .response-btn.selected .btn-badge { background: white; color: var(--assess-navy); }
        .btn-badge {
            position: absolute;
            bottom: -10px; left: 50%;
            transform: translateX(-50%);
            width: 20px; height: 20px; border-radius: 50%;
            background: var(--assess-navy);
            color: white;
            font-size: 0.58rem;
            font-weight: 700;
            display: flex;
            align-items: center;
            justify-content: center;
            line-height: 1;
            box-shadow: 0 1px 4px rgba(0,0,0,0.12);
            transition: background 0.2s, color 0.2s;
        }
        .response-btn:hover .btn-badge { background: var(--assess-teal); }

        /* Scenario context */
        .scenario-context {
            display: flex;
            align-items: flex-start;
            gap: 14px;
            padding: 18px 20px;
            background: rgba(147, 51, 234, 0.05);
            border-left: 3px solid var(--assess-progress);
            border-radius: 10px;
            margin-bottom: 24px;
            position: relative;
        }
        .scenario-context .ctx-icon {
            width: 36px; height: 36px; min-width: 36px;
            border-radius: 8px;
            background: rgba(147, 51, 234, 0.1);
            color: var(--assess-progress);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.9rem;
        }
        .scenario-context .ctx-label {
            font-size: 0.62rem;
            font-weight: 700;
            letter-spacing: 0.8px;
            text-transform: uppercase;
            color: var(--assess-progress);
            margin-bottom: 3px;
        }
        .scenario-context .ctx-text {
            font-size: 0.85rem;
            color: #081d30;
            line-height: 1.55;
            font-weight: 600;
        }

        /* Inline confidence probe */
        .confidence-inline {
            animation: assessSlideDown 0.3s ease both;
            margin-top: 6px;
            padding-top: 0;
            position: relative;
        }
        .confidence-inline::before {
            content: '';
            display: block;
            width: 1px; height: 14px;
            background: rgba(10, 37, 64, 0.12);
            margin: 0 auto 10px;
        }
        @keyframes assessSlideDown {
            0%   { opacity: 0; transform: translateY(-8px); }
            100% { opacity: 1; transform: translateY(0); }
        }
        .confidence-prompt {
            text-align: center;
            margin-bottom: 14px;
        }
        .confidence-prompt .conf-label {
            font-size: 0.62rem;
            font-weight: 700;
            letter-spacing: 1px;
            text-transform: uppercase;
            color: rgba(10, 37, 64, 0.35);
            margin-bottom: 2px;
        }
        .confidence-prompt h3 {
            font-size: 0.85rem;
            color: var(--assess-navy);
            font-weight: 600;
            margin: 0;
        }
        .confidence-options {
            display: flex;
            gap: 10px;
            justify-content: center;
        }
        .confidence-btn {
            flex: 1;
            max-width: 180px;
            padding: 12px 12px;
            border-radius: 10px;
            border: 1.5px solid rgba(10, 37, 64, 0.08);
            background: rgba(10, 37, 64, 0.02);
            cursor: pointer;
            text-align: center;
            transition: all 0.2s;
            display: flex;
            align-items: center;
            gap: 10px;
        }
        .confidence-btn .conf-icon { font-size: 1.1rem; flex-shrink: 0; }
        .confidence-btn .conf-text { text-align: left; }
        .confidence-btn .conf-title {
            font-size: 0.78rem;
            font-weight: 700;
            color: var(--assess-navy);
            line-height: 1.2;
        }
        .confidence-btn .conf-desc {
            font-size: 0.65rem;
            color: rgba(10, 37, 64, 0.45);
            line-height: 1.3;
        }
        .confidence-btn:hover {
            border-color: rgba(10, 37, 64, 0.18);
            background: rgba(10, 37, 64, 0.04);
            transform: translateY(-1px);
            box-shadow: 0 2px 8px rgba(10, 37, 64, 0.06);
        }
        .confidence-btn.selected {
            border-color: var(--assess-navy);
            background: linear-gradient(135deg, var(--assess-navy), var(--assess-navy-light));
            box-shadow: 0 2px 8px rgba(10, 37, 64, 0.2);
        }
        .confidence-btn.selected .conf-title { color: white; }
        .confidence-btn.selected .conf-desc { color: rgba(255,255,255,0.6); }
        .confidence-btn.selected .conf-icon i { color: white !important; }

        /* MaxDiff table */
        .maxdiff-table {
            width: 100%;
            border-collapse: separate;
            border-spacing: 0 6px;
        }
        .maxdiff-table thead th {
            font-size: 0.65rem;
            font-weight: 700;
            letter-spacing: 0.8px;
            text-transform: uppercase;
            padding: 0 0 8px;
            color: rgba(10, 37, 64, 0.4);
        }
        .maxdiff-table thead th:first-child { width: 60px; text-align: center; color: var(--assess-teal); }
        .maxdiff-table thead th:last-child { width: 60px; text-align: center; color: var(--assess-coral); }
        .maxdiff-row td { padding: 0; vertical-align: middle; }
        .maxdiff-row { transition: background 0.15s; cursor: pointer; }
        .maxdiff-row:hover { background: rgba(10, 37, 64, 0.02); }
        .maxdiff-radio-cell {
            width: 60px;
            text-align: center;
            padding: 12px 0;
        }
        .maxdiff-radio {
            width: 28px; height: 28px; min-width: 28px; min-height: 28px !important;
            max-width: 28px; max-height: 28px;
            border-radius: 50%;
            border: 2px solid rgba(10, 37, 64, 0.15);
            background: white;
            cursor: pointer;
            transition: all 0.2s;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            font-size: 0;
            flex-shrink: 0;
        }
        .maxdiff-radio:hover { border-color: rgba(10, 37, 64, 0.3); transform: scale(1.1); }
        .maxdiff-radio.most-selected {
            background: var(--assess-teal);
            border-color: var(--assess-teal);
            font-size: 0.65rem;
            color: white;
            box-shadow: 0 0 0 3px rgba(15, 168, 158, 0.15);
        }
        .maxdiff-radio.least-selected {
            background: var(--assess-coral);
            border-color: var(--assess-coral);
            font-size: 0.65rem;
            color: white;
            box-shadow: 0 0 0 3px rgba(224, 122, 95, 0.15);
        }
        .maxdiff-statement {
            padding: 14px 18px;
            font-size: 0.88rem;
            font-weight: 500;
            color: #081d30;
            line-height: 1.5;
            border-bottom: 1px solid rgba(10, 37, 64, 0.06);
            cursor: pointer;
        }
        .maxdiff-row:last-child .maxdiff-statement { border-bottom: none; }
        .maxdiff-row.has-most td { background: rgba(15, 168, 158, 0.06); }
        .maxdiff-row.has-most .maxdiff-statement { color: var(--assess-teal); font-weight: 600; }
        .maxdiff-row.has-least td { background: rgba(224, 122, 95, 0.06); }
        .maxdiff-row.has-least .maxdiff-statement { color: var(--assess-coral); font-weight: 600; }
        .maxdiff-row.highlighted td { background: rgba(10, 37, 64, 0.04); }
        .maxdiff-row.has-most.highlighted td { background: rgba(15, 168, 158, 0.1); }
        .maxdiff-row.has-least.highlighted td { background: rgba(224, 122, 95, 0.1); }
        .maxdiff-submit {
            display: flex;
            justify-content: center;
            margin-top: 24px;
        }
        .maxdiff-submit button {
            padding: 13px 36px;
            background: linear-gradient(135deg, var(--assess-navy), var(--assess-navy-light));
            color: white;
            border: none;
            border-radius: 10px;
            font-weight: 600;
            font-size: 0.88rem;
            cursor: pointer;
            transition: all 0.25s;
            box-shadow: 0 2px 8px rgba(10, 37, 64, 0.25);
            opacity: 0.4;
            pointer-events: none;
        }
        .maxdiff-submit button.ready { opacity: 1; pointer-events: auto; }
        .maxdiff-submit button.ready:hover {
            box-shadow: 0 4px 14px rgba(10, 37, 64, 0.35);
            transform: translateY(-1px);
        }
        .maxdiff-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 16px;
            margin-bottom: 24px;
        }

        /* Likert scale */
        .likert-scale {
            display: flex;
            justify-content: center;
            gap: 0;
        }
        .likert-btn {
            flex: 1;
            max-width: 150px;
            padding: 18px 10px;
            border: 1px solid rgba(10, 37, 64, 0.1);
            background: white;
            cursor: pointer;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 8px;
            transition: all 0.2s;
            position: relative;
        }
        .likert-btn:first-child { border-radius: 10px 0 0 10px; }
        .likert-btn:last-child { border-radius: 0 10px 10px 0; }
        .likert-btn .likert-dot {
            width: 12px; height: 12px; border-radius: 50%;
            border: 2px solid rgba(10, 37, 64, 0.2);
            transition: all 0.2s;
        }
        .likert-btn .likert-label-text {
            font-size: 0.62rem;
            font-weight: 600;
            letter-spacing: 0.3px;
            text-transform: uppercase;
            color: rgba(10, 37, 64, 0.45);
            transition: color 0.2s;
            text-align: center;
            line-height: 1.3;
        }
        .likert-btn:nth-child(1) { background: rgba(220, 80, 60, 0.06); }
        .likert-btn:nth-child(1) .likert-dot { border-color: rgba(220, 80, 60, 0.4); }
        .likert-btn:nth-child(2) { background: rgba(220, 140, 60, 0.05); }
        .likert-btn:nth-child(2) .likert-dot { border-color: rgba(220, 140, 60, 0.35); }
        .likert-btn:nth-child(3) { background: rgba(10, 37, 64, 0.02); }
        .likert-btn:nth-child(3) .likert-dot { border-color: rgba(10, 37, 64, 0.15); }
        .likert-btn:nth-child(4) { background: rgba(15, 168, 158, 0.05); }
        .likert-btn:nth-child(4) .likert-dot { border-color: rgba(15, 168, 158, 0.35); }
        .likert-btn:nth-child(5) { background: rgba(15, 168, 158, 0.08); }
        .likert-btn:nth-child(5) .likert-dot { border-color: rgba(15, 168, 158, 0.5); }
        .likert-btn:hover { z-index: 1; border-color: rgba(10, 37, 64, 0.2); }
        .likert-btn:hover .likert-dot { transform: scale(1.3); }
        .likert-btn:hover .likert-label-text { color: var(--assess-navy); }
        .likert-btn.selected {
            background: linear-gradient(135deg, var(--assess-navy) 0%, var(--assess-navy-light) 100%);
            border-color: var(--assess-navy);
            z-index: 2;
        }
        .likert-btn.selected .likert-dot {
            background: #22c55e;
            border-color: #22c55e;
            display: flex;
            align-items: center;
            justify-content: center;
            transform: scale(1.3);
        }
        .likert-btn.selected .likert-dot::after {
            content: '\e5ca';
            font-family: 'Material Symbols Rounded';
            font-weight: 400;
            font-size: 0.55rem;
            color: white;
        }
        .likert-btn.selected .likert-label-text { color: rgba(255,255,255,0.85); }

        /* Section interstitial */
        .interstitial {
            padding: 32px 36px;
            display: flex;
            flex-direction: row;
            align-items: center;
            gap: 24px;
        }
        .interstitial .big-icon {
            width: 56px; height: 56px; min-width: 56px;
            border-radius: 50%;
            background: linear-gradient(135deg, rgba(15, 168, 158, 0.18), rgba(15, 168, 158, 0.06));
            color: var(--assess-teal);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.5rem;
            box-shadow: 0 0 0 6px rgba(15, 168, 158, 0.06);
        }
        .interstitial .inter-text { flex: 1; }
        .interstitial .section-done-label {
            font-size: 0.72rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.08em;
            color: var(--assess-teal);
            margin-bottom: 2px;
        }
        .interstitial h2 {
            font-family: 'Instrument Serif', serif;
            font-size: 1.25rem;
            margin-bottom: 3px;
            color: var(--assess-navy);
        }
        .interstitial .next-section {
            color: rgba(10, 37, 64, 0.5);
            font-size: 0.85rem;
            line-height: 1.4;
        }
        .interstitial .next-section strong { color: var(--assess-navy); }
        .interstitial .continue-btn {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            padding: 13px 28px;
            background: linear-gradient(135deg, var(--assess-teal), #0e9890);
            color: white;
            border: none;
            border-radius: 10px;
            font-weight: 600;
            font-size: 0.88rem;
            cursor: pointer;
            transition: all 0.25s;
            white-space: nowrap;
            box-shadow: 0 2px 8px rgba(15, 168, 158, 0.3);
        }
        .interstitial .continue-btn:hover {
            background: linear-gradient(135deg, #0e9890, #0c867f);
            box-shadow: 0 4px 14px rgba(15, 168, 158, 0.4);
            transform: translateY(-1px);
        }
        .interstitial .continue-btn .btn-arrow {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 22px; height: 22px; border-radius: 50%;
            background: rgba(255,255,255,0.2);
            font-size: 0.72rem;
            transition: transform 0.2s;
        }
        .interstitial .continue-btn:hover .btn-arrow { transform: translateX(2px); }
        .interstitial.leaving { animation: interstitialOut 0.35s ease forwards; }
        @keyframes interstitialOut {
            0%   { opacity: 1; transform: translateY(0); }
            100% { opacity: 0; transform: translateY(-18px); }
        }
        .question-card.reveal { animation: cardReveal 0.4s ease both; }
        @keyframes cardReveal {
            0%   { opacity: 0; transform: translateY(16px) scale(0.98); }
            100% { opacity: 1; transform: translateY(0) scale(1); }
        }

        /* Feedback card */
        .feedback-header {
            display: flex;
            align-items: flex-start;
            gap: 14px;
            padding: 18px 20px;
            background: rgba(147, 51, 234, 0.05);
            border-left: 3px solid var(--assess-progress);
            border-radius: 10px;
            margin-bottom: 28px;
        }
        .feedback-header .fb-icon {
            width: 36px; height: 36px; min-width: 36px;
            border-radius: 8px;
            background: rgba(147, 51, 234, 0.1);
            color: var(--assess-progress);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.9rem;
        }
        .feedback-header .fb-label {
            font-size: 0.62rem;
            font-weight: 700;
            letter-spacing: 0.8px;
            text-transform: uppercase;
            color: var(--assess-progress);
            margin-bottom: 3px;
        }
        .feedback-header h3 {
            font-size: 0.92rem;
            color: #081d30;
            font-weight: 600;
            line-height: 1.55;
            margin: 0;
        }
        .feedback-header p {
            font-size: 0.82rem;
            color: rgba(10, 37, 64, 0.5);
            margin: 2px 0 0;
        }
        .fb-fields { display: flex; flex-direction: column; gap: 24px; }
        .fb-field-label {
            font-size: 0.78rem;
            font-weight: 700;
            color: var(--assess-navy);
            margin-bottom: 10px;
        }
        .fb-stars { display: flex; gap: 6px; }
        .fb-star {
            width: 38px; height: 38px; border-radius: 8px;
            border: 1.5px solid rgba(10, 37, 64, 0.1);
            background: white;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.1rem;
            color: rgba(10, 37, 64, 0.2);
            transition: all 0.15s;
        }
        .fb-star:hover { border-color: #f0b429; color: #f0b429; transform: scale(1.1); }
        .fb-star.filled { background: #fef9e7; border-color: #f0b429; color: #f0b429; }
        .fb-scale {
            display: flex;
            gap: 0;
            padding-bottom: 14px;
        }
        .fb-scale-btn {
            flex: 1;
            max-width: 120px;
            padding: 14px 10px;
            border: 1px solid rgba(10, 37, 64, 0.12);
            background: white;
            cursor: pointer;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 6px;
            transition: all 0.15s;
            position: relative;
        }
        .fb-scale-btn:first-child { border-radius: 10px 0 0 10px; }
        .fb-scale-btn:last-child { border-radius: 0 10px 10px 0; }
        .fb-scale-btn .fb-icon { font-size: 1.3rem; line-height: 1; transition: transform 0.15s; }
        .fb-scale-btn .fb-label {
            font-size: 0.62rem; font-weight: 600;
            letter-spacing: 0.3px; text-transform: uppercase;
            color: rgba(10, 37, 64, 0.5); transition: color 0.15s;
        }
        .fb-scale-btn:nth-child(1) { background: rgba(220, 60, 60, 0.06); border-color: rgba(220, 60, 60, 0.15); }
        .fb-scale-btn:nth-child(1) .fb-icon { color: #dc3c3c; }
        .fb-scale-btn:nth-child(2) { background: rgba(220, 130, 50, 0.06); border-color: rgba(220, 130, 50, 0.12); }
        .fb-scale-btn:nth-child(2) .fb-icon { color: rgba(220, 130, 50, 0.7); }
        .fb-scale-btn:nth-child(3) { background: rgba(10, 37, 64, 0.02); }
        .fb-scale-btn:nth-child(3) .fb-icon { color: rgba(10, 37, 64, 0.3); }
        .fb-scale-btn:nth-child(4) { background: rgba(15, 168, 158, 0.05); border-color: rgba(15, 168, 158, 0.12); }
        .fb-scale-btn:nth-child(4) .fb-icon { color: rgba(15, 168, 158, 0.6); }
        .fb-scale-btn:nth-child(5) { background: rgba(15, 168, 158, 0.1); border-color: rgba(15, 168, 158, 0.2); }
        .fb-scale-btn:nth-child(5) .fb-icon { color: var(--assess-teal); }
        .fb-scale-btn .fb-badge {
            position: absolute;
            bottom: -10px; left: 50%; transform: translateX(-50%);
            width: 20px; height: 20px; border-radius: 50%;
            background: var(--assess-navy); color: white;
            font-size: 0.58rem; font-weight: 700;
            display: flex; align-items: center; justify-content: center;
            line-height: 1;
            box-shadow: 0 1px 4px rgba(0,0,0,0.12);
            transition: background 0.15s, color 0.15s;
        }
        .fb-scale-btn:hover { z-index: 1; }
        .fb-scale-btn:hover .fb-icon { transform: scale(1.15); }
        .fb-scale-btn:hover .fb-label { color: var(--assess-navy); }
        .fb-scale-btn:hover .fb-badge { background: var(--assess-teal); }
        .fb-scale-btn.selected {
            background: linear-gradient(135deg, var(--assess-navy), var(--assess-navy-light));
            border-color: var(--assess-navy);
            z-index: 2;
        }
        .fb-scale-btn.selected .fb-icon { color: white; transform: scale(1.15); }
        .fb-scale-btn.selected .fb-label { color: rgba(255,255,255,0.85); }
        .fb-scale-btn.selected .fb-badge { background: white; color: var(--assess-navy); }
        .fb-pills { display: flex; gap: 10px; }
        .fb-pill {
            padding: 10px 20px;
            border-radius: 10px;
            border: 1.5px solid rgba(10, 37, 64, 0.1);
            background: white;
            cursor: pointer;
            font-size: 0.82rem;
            font-weight: 600;
            color: var(--assess-navy);
            transition: all 0.15s;
            display: flex;
            align-items: center;
            gap: 8px;
        }
        .fb-pill .pill-icon { font-size: 0.9rem; color: rgba(10, 37, 64, 0.3); }
        .fb-pill:hover { border-color: rgba(10, 37, 64, 0.25); background: rgba(10, 37, 64, 0.02); }
        .fb-pill.selected {
            border-color: var(--assess-progress);
            background: rgba(147, 51, 234, 0.06);
            color: var(--assess-progress);
        }
        .fb-pill.selected .pill-icon { color: var(--assess-progress); }
        .fb-comment {
            width: 100%;
            padding: 14px 16px;
            border: 1.5px solid rgba(10, 37, 64, 0.1);
            border-radius: 10px;
            font-family: 'Plus Jakarta Sans', sans-serif;
            font-size: 0.85rem;
            color: var(--assess-navy);
            resize: vertical;
            min-height: 80px;
            transition: border-color 0.2s;
            background: white;
        }
        .fb-comment::placeholder { color: rgba(10, 37, 64, 0.3); }
        .fb-comment:focus { outline: none; border-color: var(--assess-progress); box-shadow: 0 0 0 3px rgba(147, 51, 234, 0.08); }
        .fb-submit { display: flex; justify-content: center; margin-top: 8px; }
        .fb-submit button {
            padding: 14px 40px;
            background: linear-gradient(135deg, var(--assess-teal), #0e9890);
            color: white;
            border: none;
            border-radius: 10px;
            font-weight: 600;
            font-size: 0.88rem;
            cursor: pointer;
            transition: all 0.25s;
            box-shadow: 0 2px 8px rgba(15, 168, 158, 0.3);
            display: flex;
            align-items: center;
            gap: 8px;
        }
        .fb-submit button:hover {
            box-shadow: 0 4px 14px rgba(15, 168, 158, 0.4);
            transform: translateY(-1px);
        }

        /* Question counter (legacy, used by pre-assessment) */
        .question-counter {
            display: inline-flex;
            align-items: center;
            background: rgba(10, 37, 64, 0.07);
            color: var(--bs-primary);
            font-size: 0.78rem;
            font-weight: 700;
            letter-spacing: 0.4px;
            padding: 4px 12px;
            border-radius: 20px;
            margin-bottom: 20px;
        }
        .question-back-btn {
            font-size: 0.85rem;
            font-weight: 600;
            color: var(--bs-secondary);
            padding: 6px 12px;
            border-radius: var(--research-radius-btn);
            transition: all 0.2s ease;
        }
        .question-back-btn:hover {
            color: var(--bs-primary);
            background: rgba(10, 37, 64, 0.05);
        }

        /* Demographics form */
        .demographics-form {
            max-width: 700px;
            margin: 0 auto;
            background: white;
            border-radius: var(--research-radius-card);
            box-shadow: var(--research-card-shadow);
            padding: 36px 40px;
        }
        .demographics-form .form-label {
            font-weight: 600;
            font-size: 0.9rem;
            color: var(--bs-primary);
        }
        .demographics-form .form-select,
        .demographics-form .form-control {
            border-radius: var(--research-radius-btn);
            border-color: #d8dde3;
            padding: 10px 14px;
            font-size: 0.92rem;
            transition: border-color 0.2s ease, box-shadow 0.2s ease;
        }
        .demographics-form .form-select:focus,
        .demographics-form .form-control:focus {
            border-color: var(--bs-accent);
            box-shadow: 0 0 0 3px rgba(0, 150, 136, 0.12);
        }
        .demographics-section-header {
            font-family: var(--bs-heading-font-family);
            font-size: 1.15rem;
            color: var(--bs-primary);
            margin-bottom: 6px;
            padding-left: 14px;
            border-left: 3px solid var(--bs-accent);
            line-height: 1.4;
        }
        .demographics-section-note {
            font-size: 0.85rem;
            color: var(--bs-secondary);
            margin-bottom: 24px;
        }

        /* Pre-assessment screen */
        .pre-assessment-card {
            max-width: 680px;
            margin: 0 auto;
            background: white;
            border-radius: var(--research-radius-card);
            box-shadow: var(--research-card-shadow);
            padding: 48px 48px 40px;
            text-align: center;
        }
        .pre-assessment-card .pre-assessment-icon {
            width: 64px; height: 64px; border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 24px;
            font-size: 1.6rem;
        }
        .pre-assessment-card.study-vulnerability .pre-assessment-icon {
            background: rgba(0, 150, 136, 0.1);
            color: var(--bs-accent);
        }
        .pre-assessment-card.study-adoption .pre-assessment-icon {
            background: rgba(201, 151, 59, 0.1);
            color: var(--bs-accent-gold);
        }
        .pre-assessment-card.study-friction .pre-assessment-icon {
            background: rgba(212, 133, 106, 0.1);
            color: var(--research-coral);
        }
        .pre-assessment-card h2 {
            font-family: var(--bs-heading-font-family);
            font-size: 1.75rem;
            color: var(--bs-primary);
            margin-bottom: 12px;
        }
        .pre-assessment-card .lead {
            font-size: 1rem;
            color: var(--bs-secondary);
            margin-bottom: 32px;
            line-height: 1.6;
        }

        /* Loading state */
        .loading-pulse { animation: pulse 1.5s ease-in-out infinite; }
        @keyframes pulse {
            0%, 100% { opacity: 1; transform: scale(1); }
            50% { opacity: 0.6; transform: scale(0.95); }
        }
        .submission-loading { text-align: center; padding: 80px 0; }
        .submission-loading .icon { font-size: 3rem; margin-bottom: 16px; }
        .submission-loading p { font-size: 1.1rem; color: var(--bs-secondary); }

        /* Error states */
        .api-error-banner {
            background: rgba(211, 47, 47, 0.08);
            border: 1px solid rgba(211, 47, 47, 0.2);
            border-radius: 8px;
            padding: 16px 20px;
            color: var(--research-danger);
            text-align: center;
            margin-bottom: 24px;
        }
        .offline-banner {
            background: rgba(237, 108, 2, 0.08);
            border: 1px solid rgba(237, 108, 2, 0.2);
            border-radius: 8px;
            padding: 12px 20px;
            color: var(--research-warning);
            text-align: center;
            font-size: 0.9rem;
        }

        /* Responsive */
        @media (max-width: 768px) {
            .tradeoff-row { flex-direction: column; gap: 12px; }
            .question-card { padding: 24px 20px 28px; }
            .study-banner h1 { font-size: 1.15rem; }
            .response-btn { padding: 12px 8px; }
            .response-btn .btn-icon { font-size: 1.2rem; }
            .maxdiff-statement { font-size: 0.82rem; padding: 12px 12px; }
            .confidence-options { flex-direction: column; align-items: center; }
            .confidence-btn { max-width: 100%; }
            .likert-btn { padding: 14px 6px; }
            .likert-btn .likert-label-text { font-size: 0.55rem; }
            .interstitial { flex-direction: column; text-align: center; padding: 32px 24px; gap: 16px; }
            .interstitial .continue-btn { align-self: center; margin-top: 8px; }
            .question-wrapper { padding: 24px 20px; }
            .demographics-form { padding: 28px 24px; }
            .pre-assessment-card { padding: 36px 28px 32px; }
        }
        @media (max-width: 576px) {
            .response-row { flex-direction: column; gap: 10px; padding-bottom: 0; }
            .response-btn {
                max-width: 100%;
                flex-direction: row;
                gap: 10px;
                padding: 14px 18px;
                border-radius: 10px !important;
                justify-content: flex-start;
            }
            .btn-badge { position: static; transform: none; margin-left: auto; flex-shrink: 0; }
            .response-btn .btn-icon { font-size: 1.2rem; }
            .response-btn .btn-label { font-size: 0.72rem; }
            .progress-labels { display: none; }
            .likert-scale { flex-direction: column; gap: 8px; }
            .likert-btn {
                max-width: 100%;
                flex-direction: row;
                gap: 12px;
                padding: 14px 18px;
                border-radius: 10px !important;
                justify-content: flex-start;
            }
            .maxdiff-table thead { display: none; }
            .maxdiff-row { display: flex; flex-wrap: wrap; align-items: center; padding: 10px 0; border-bottom: 1px solid rgba(10,37,64,0.06); }
            .maxdiff-row td { display: block; }
            .maxdiff-statement { flex: 1; border-bottom: none; padding: 0 12px; }
            .maxdiff-radio-cell { width: auto; padding: 6px 8px; }
            .fb-pills { flex-wrap: wrap; }
            .fb-scale { flex-wrap: wrap; }
            .fb-scale-btn { border-radius: 8px !important; }
        }
        @media (prefers-reduced-motion: reduce) {
            .question-wrapper { transition: none; }
            .question-card { transition: none; }
            .assessment-progress-fill { transition: none; }
            .progress-fill { transition: none; }
            .loading-pulse { animation: none; }
            .confidence-inline { animation: none; }
            .interstitial.leaving { animation: none; }
            .question-card.reveal { animation: none; }
        }
        .response-btn, .likert-btn, .maxdiff-radio, .confidence-btn,
        .fb-scale-btn, .fb-star, .fb-pill { min-height: 44px; }
        .participation-selector .card { cursor: pointer; transition: all 0.2s ease; border: 2px solid #e6e6e6; }
        .participation-selector .card.selected { border-color: var(--bs-accent, #009688); box-shadow: 0 0 0 3px rgba(0, 150, 136, 0.15); }
        .participation-selector .card:hover { border-color: var(--bs-secondary, #6c757d); }

        /* Fix: research.css overrides .card background to dark navy via --bg-card.
           The assessment runs in light mode (--assess-page-bg), so all Bootstrap
           .card elements in the assessment flow must have a white background and
           dark readable text. Without this, card-title/card-text render as dark
           text (#212529) on dark navy (#0F3558) — invisible on mobile. */
        #assessment-container .card,
        .participation-selector .card {
            background-color: #fff !important;
            color: #212529 !important;
            border-color: #dee2e6 !important;
        }
        #assessment-container .card .card-title,
        .participation-selector .card .card-title {
            color: #1a1a2e !important;
        }
        #assessment-container .card .card-text,
        .participation-selector .card .card-text {
            color: #6c757d !important;
        }
        #assessment-container .card .text-muted,
        .participation-selector .card .text-muted {
            color: #6c757d !important;
        }
        /* Profile confirmation card: same light-theme reset */
        .demographics-form .card {
            background-color: #fff !important;
            color: #212529 !important;
        }
        .demographics-form .card .text-muted {
            color: #6c757d !important;
        }
        .demographics-form .card .fw-semibold {
            color: #1a1a2e !important;
        }
