/* ============================================================
   Newton Academy Uzbekistan — профориентационный тест
   Дизайн-система «Newton Clean Report», вариант Light (см. ТЗ, раздел 12)
   ============================================================ */

:root {
    --brand-primary: #4F46E5;
    --brand-purple: #A855F7;
    --brand-pink: #EC4899;
    --brand-gradient: linear-gradient(135deg, #4F46E5 0%, #A855F7 50%, #EC4899 100%);

    --bg-page: #FAFAFA;
    --bg-card: #FFFFFF;
    --bg-soft: #F4F4F8;
    --text-primary: #0F0F11;
    --text-muted: #6B7280;
    --border: #E5E7EB;

    --ok: #0F9D68;
    --danger: #DC2626;

    --radius-card: 20px;
    --radius-sm: 12px;
    --shadow-card: 0 4px 24px rgba(15, 15, 17, .06);
    --shadow-lift: 0 12px 32px rgba(15, 15, 17, .10);

    --tap: 48px;              /* минимальная тап-зона по ТЗ */
    --page-max: 940px;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-page);
    color: var(--text-primary);
    line-height: 1.55;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
}

/* ============================================================
   Прогресс-бар — липкая полоса 4px сверху
   ============================================================ */
.progress-rail {
    position: fixed;
    inset: 0 0 auto 0;
    height: 4px;
    background: var(--border);
    z-index: 60;
}

.progress-rail[hidden] { display: none; }

.progress-fill {
    height: 100%;
    width: 0;
    background: var(--brand-gradient);
    transition: width .35s cubic-bezier(.4, 0, .2, 1);
}

/* ============================================================
   Верхняя панель
   ============================================================ */
.topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 20px;
    background: rgba(250, 250, 250, .88);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}

/* Знак Newton + текстовое начертание. Фирменный логотип Newton Academy
   Uzbekistan заказчик передаёт отдельно — тогда это заменяется одной картинкой. */
.topbar-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-primary);
}

.topbar-brand img { width: 38px; height: 38px; flex: none; }

.topbar-wordmark {
    font-size: .92rem;
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -.02em;
}

.lang-switcher {
    display: inline-flex;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 3px;
    flex: none;
}

.lang-btn {
    min-width: 52px;
    min-height: 38px;
    padding: 0 14px;
    border: none;
    background: none;
    border-radius: 999px;
    font: inherit;
    font-size: .92rem;
    font-weight: 700;
    color: var(--text-muted);
    cursor: pointer;
    transition: background .18s ease, color .18s ease;
}

.lang-btn.is-active {
    background: var(--brand-primary);
    color: #fff;
}

/* ============================================================
   Каркас страницы
   ============================================================ */
.app {
    flex: 1;
    width: 100%;
    max-width: var(--page-max);
    margin: 0 auto;
    padding: 28px 20px 56px;
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    padding: 28px;
}

/* ============================================================
   Лендинг
   ============================================================ */
.hero {
    background: var(--brand-gradient);
    border-radius: var(--radius-card);
    padding: 48px 32px;
    color: #fff;
    text-align: center;
    box-shadow: var(--shadow-lift);
}

.hero h1 {
    font-size: clamp(1.9rem, 5vw, 3rem);
    font-weight: 800;
    letter-spacing: -.025em;
    line-height: 1.1;
}

.hero p {
    margin: 14px auto 0;
    max-width: 30em;
    font-size: clamp(1rem, 2vw, 1.15rem);
    opacity: .92;
}

.hero-meta {
    display: inline-block;
    margin-top: 20px;
    padding: 7px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .18);
    font-size: .92rem;
    font-weight: 600;
}

.hero-cta { margin-top: 26px; }

.section-title {
    font-size: clamp(1.4rem, 3vw, 1.9rem);
    font-weight: 700;
    letter-spacing: -.02em;
    margin: 44px 0 18px;
}

.method-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
}

.method-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    padding: 24px;
}

.method-icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    font-size: 1.4rem;
    background: #EEEAFF;
    margin-bottom: 14px;
}

.method-card:nth-child(2) .method-icon { background: #FDEAF7; }
.method-card:nth-child(3) .method-icon { background: #E7F6EF; }

.method-card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 6px; }
.method-card p { color: var(--text-muted); font-size: .96rem; }

.audience-list {
    display: grid;
    gap: 10px;
    list-style: none;
}

.audience-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 14px 18px;
    font-size: 1rem;
}

.audience-list li::before {
    content: '✓';
    display: grid;
    place-items: center;
    flex: none;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #EEEAFF;
    color: var(--brand-primary);
    font-weight: 800;
    font-size: .85rem;
}

/* ============================================================
   Формы
   ============================================================ */
.form-head { margin-bottom: 22px; }
.form-head h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 700; letter-spacing: -.02em; }
.form-head p { color: var(--text-muted); margin-top: 6px; }

.field { margin-bottom: 18px; }

.field label {
    display: block;
    font-size: .92rem;
    font-weight: 600;
    margin-bottom: 7px;
}

.req { color: var(--brand-pink); }

.field input,
.field select {
    width: 100%;
    min-height: var(--tap);
    padding: 0 16px;
    font: inherit;
    font-size: 1rem;
    color: var(--text-primary);
    background: var(--bg-card);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    transition: border-color .18s ease, box-shadow .18s ease;
}

.field select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 20px;
    padding-right: 44px;
}

.field input:focus,
.field select:focus {
    outline: none;
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, .13);
}

.field.has-error input,
.field.has-error select { border-color: var(--danger); }

.field-error {
    display: none;
    margin-top: 6px;
    font-size: .87rem;
    color: var(--danger);
}

.field.has-error .field-error { display: block; }

.consent {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 22px 0;
    font-size: .95rem;
    line-height: 1.5;
}

.consent input {
    flex: none;
    width: 22px;
    height: 22px;
    margin-top: 1px;
    accent-color: var(--brand-primary);
    cursor: pointer;
}

.consent a { color: var(--brand-primary); }

.consent.has-error { color: var(--danger); }

/* ============================================================
   Кнопки
   ============================================================ */
.btn {
    min-height: var(--tap);
    padding: 0 26px;
    border: 2px solid transparent;
    border-radius: var(--radius-sm);
    font: inherit;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
    transition: background .16s ease, border-color .16s ease, color .16s ease, transform .1s ease, box-shadow .16s ease;
}

.btn:active { transform: translateY(1px); }

.btn:focus-visible {
    outline: 3px solid rgba(79, 70, 229, .45);
    outline-offset: 2px;
}

.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }

.btn-primary {
    background: var(--brand-primary);
    color: #fff;
    box-shadow: 0 8px 20px rgba(79, 70, 229, .26);
}

.btn-primary:hover:not([disabled]) { background: #4338CA; }

.btn-secondary {
    background: transparent;
    color: var(--brand-primary);
    border-color: var(--brand-primary);
}

.btn-secondary:hover:not([disabled]) { background: #EEEAFF; }

.btn-ghost {
    background: var(--bg-card);
    color: var(--text-muted);
    border-color: var(--border);
}

.btn-ghost:hover:not([disabled]) { color: var(--brand-primary); border-color: var(--brand-primary); }

.btn-block { width: 100%; }

.btn-white {
    background: #fff;
    color: var(--brand-primary);
    box-shadow: 0 10px 26px rgba(15, 15, 17, .18);
}

/* ============================================================
   Инструкция к блоку
   ============================================================ */
.instr { text-align: center; padding: 40px 28px; }

.instr-step {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 999px;
    background: #EEEAFF;
    color: var(--brand-primary);
    font-size: .85rem;
    font-weight: 700;
    letter-spacing: .03em;
    text-transform: uppercase;
}

.instr h2 {
    margin: 16px 0 10px;
    font-size: clamp(1.5rem, 3.4vw, 2.1rem);
    font-weight: 700;
    letter-spacing: -.02em;
}

.instr p { color: var(--text-muted); max-width: 34em; margin: 0 auto; }

.instr-meta {
    margin-top: 18px;
    font-size: .92rem;
    font-weight: 600;
    color: var(--brand-purple);
}

.instr .btn { margin-top: 26px; }

/* ============================================================
   Экран вопроса
   ============================================================ */
.q-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.q-block {
    display: inline-block;
    padding: 5px 13px;
    border-radius: 999px;
    background: #EEEAFF;
    color: var(--brand-primary);
    font-size: .82rem;
    font-weight: 700;
}

.q-counter { font-size: .92rem; color: var(--text-muted); font-variant-numeric: tabular-nums; }

.q-text {
    font-size: clamp(1.2rem, 3vw, 1.45rem);
    font-weight: 500;
    line-height: 1.4;
    margin-bottom: 22px;
}

.q-text:focus { outline: none; }

/* Варианты MBTI — крупные карточки */
.options { display: grid; gap: 12px; }

.option {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: var(--tap);
    padding: 16px 18px;
    background: var(--bg-card);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 1.05rem;
    cursor: pointer;
    transition: border-color .16s ease, background .16s ease, box-shadow .16s ease;
}

.option:hover { border-color: var(--brand-primary); background: #FBFAFF; }

.option:focus-visible {
    outline: 3px solid rgba(79, 70, 229, .4);
    outline-offset: 2px;
}

.option.is-selected {
    border-color: var(--brand-primary);
    background: #F5F3FF;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, .12);
}

.option-mark {
    flex: none;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 2px solid var(--border);
    display: grid;
    place-items: center;
    color: #fff;
    font-size: .8rem;
    font-weight: 800;
    transition: all .16s ease;
}

.option.is-selected .option-mark {
    background: var(--brand-primary);
    border-color: var(--brand-primary);
}

.option-label { flex: 1; }

/* Шкала Ликерта */
.likert { display: grid; gap: 10px; }

.likert .option { font-size: 1rem; }

.likert-value {
    flex: none;
    width: 30px;
    height: 30px;
    border-radius: 9px;
    background: var(--bg-soft);
    color: var(--text-muted);
    display: grid;
    place-items: center;
    font-weight: 700;
    font-size: .92rem;
    font-variant-numeric: tabular-nums;
}

.option.is-selected .likert-value { background: var(--brand-primary); color: #fff; }

/* ============================================================
   Белбин — распределение баллов
   ============================================================ */
.points-bar {
    position: sticky;
    top: 74px;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 16px;
    padding: 13px 18px;
    border-radius: var(--radius-sm);
    background: #EEEAFF;
    color: var(--brand-primary);
    font-weight: 700;
    font-size: .98rem;
}

.points-bar.is-done { background: #E7F6EF; color: var(--ok); }
.points-bar.is-over { background: #FDECEC; color: var(--danger); }

.points-hint { font-weight: 500; font-size: .87rem; opacity: .85; }

.stmt-list { display: grid; gap: 10px; }

.stmt {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    background: var(--bg-card);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    transition: border-color .16s ease, background .16s ease;
}

.stmt.has-points { border-color: var(--brand-primary); background: #FBFAFF; }

.stmt-text { flex: 1; font-size: 1rem; line-height: 1.45; }

.stmt-input {
    flex: none;
    width: 62px;
    min-height: var(--tap);
    padding: 0 6px;
    text-align: center;
    font: inherit;
    font-size: 1.1rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: var(--text-primary);
    background: var(--bg-soft);
    border: 1.5px solid var(--border);
    border-radius: 10px;
    -moz-appearance: textfield;
}

.stmt-input::-webkit-outer-spin-button,
.stmt-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.stmt-input:focus {
    outline: none;
    border-color: var(--brand-primary);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(79, 70, 229, .13);
}

.stmt.has-points .stmt-input { background: #fff; border-color: var(--brand-primary); color: var(--brand-primary); }

/* ============================================================
   Навигация по тесту
   ============================================================ */
.nav-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 24px;
}

.nav-row .btn-ghost { min-width: 120px; }
.nav-row .btn-primary { min-width: 150px; }

/* ============================================================
   Экран обработки
   ============================================================ */
.processing { text-align: center; padding: 72px 28px; }

.spinner {
    width: 52px;
    height: 52px;
    margin: 0 auto 22px;
    border: 4px solid var(--border);
    border-top-color: var(--brand-primary);
    border-radius: 50%;
    animation: spin .8s linear infinite;
}

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

.processing h2 { font-size: 1.5rem; font-weight: 700; }
.processing p { color: var(--text-muted); margin-top: 6px; }

/* ============================================================
   Результат
   ============================================================ */
.result-hero {
    background: var(--brand-gradient);
    color: #fff;
    border-radius: var(--radius-card);
    padding: 34px 30px;
    box-shadow: var(--shadow-lift);
    margin-bottom: 22px;
}

.result-hero h1 { font-size: clamp(1.6rem, 4vw, 2.3rem); font-weight: 800; letter-spacing: -.025em; }
.result-hero p { margin-top: 8px; opacity: .92; font-size: 1rem; }

.result-section {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    padding: 26px 28px;
    margin-bottom: 18px;
}

.result-section h2 {
    font-size: clamp(1.2rem, 2.6vw, 1.6rem);
    font-weight: 700;
    letter-spacing: -.015em;
    color: var(--brand-purple);
    margin-bottom: 16px;
}

.big-code {
    font-family: 'JetBrains Mono', 'Inter', ui-monospace, monospace;
    font-size: clamp(2.4rem, 8vw, 3.6rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: .04em;
    background: var(--brand-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.code-name { font-size: 1.25rem; font-weight: 700; margin: 8px 0 12px; }

.result-section p { color: var(--text-muted); margin-bottom: 10px; }
.result-section p:last-child { margin-bottom: 0; }
.result-section strong { color: var(--text-primary); }

.sub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 14px;
    margin-top: 16px;
}

.sub-card {
    background: var(--bg-soft);
    border-radius: var(--radius-sm);
    padding: 16px 18px;
}

/* Строгий CSP (style-src 'self') запрещает атрибут style, поэтому варианты
   раскладки живут в классах, а не в разметке. */
.sub-grid.is-single { grid-template-columns: 1fr; }
.sub-grid.is-spaced { margin-top: 14px; }

.sub-card h3 { font-size: .82rem; text-transform: uppercase; letter-spacing: .05em; color: var(--text-muted); margin-bottom: 7px; }
.sub-card p { color: var(--text-primary); margin: 0; font-size: .96rem; }

/* Шкалы RIASEC */
.bars { display: grid; gap: 11px; margin: 6px 0 18px; }

.bar-row {
    display: grid;
    grid-template-columns: 148px 1fr 62px;
    align-items: center;
    gap: 12px;
}

.bar-label { font-size: .93rem; color: var(--text-primary); }

.bar-track {
    display: block;              /* span по умолчанию строчный — иначе высота и ширина не применяются */
    height: 12px;
    background: var(--bg-soft);
    border-radius: 999px;
    overflow: hidden;
}

.bar-fill {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: #C9C6E8;
    transition: width .6s cubic-bezier(.4, 0, .2, 1);
}

.bar-fill.is-top { background: var(--brand-gradient); }

.bar-val {
    font-size: .87rem;
    font-weight: 700;
    color: var(--text-muted);
    text-align: right;
    font-variant-numeric: tabular-nums;
}

/* Роли Белбина */
.role-list { display: grid; gap: 12px; }

.role-item {
    display: flex;
    gap: 14px;
    padding: 16px 18px;
    background: var(--bg-soft);
    border-radius: var(--radius-sm);
    border-left: 4px solid var(--brand-primary);
}

.role-rank {
    flex: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--brand-primary);
    color: #fff;
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: .9rem;
}

.role-body h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 4px; }
.role-body p { margin: 0; font-size: .95rem; }

/* Профессии и вузы */
.chip-list { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 4px; }

.chip {
    padding: 9px 15px;
    border-radius: 999px;
    background: #EEEAFF;
    color: var(--brand-primary);
    font-size: .93rem;
    font-weight: 600;
}

.uni-list { display: grid; gap: 10px; list-style: none; margin-top: 4px; }

.uni-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 16px;
    background: var(--bg-soft);
    border-radius: var(--radius-sm);
    font-size: .98rem;
}

.uni-list li::before {
    content: '🎓';
    flex: none;
    font-size: 1.1rem;
}

/* CTA после результата */
.cta-card {
    background: var(--brand-gradient);
    color: #fff;
    border-radius: var(--radius-card);
    padding: 32px 30px;
    text-align: center;
    box-shadow: var(--shadow-lift);
    margin-bottom: 18px;
}

.cta-card h2 { font-size: clamp(1.3rem, 3vw, 1.8rem); font-weight: 700; letter-spacing: -.02em; }
.cta-card p { margin: 10px auto 22px; max-width: 34em; opacity: .93; }

.result-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

/* Ошибка сохранения */
.save-error {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 18px 20px;
    border-radius: var(--radius-sm);
    background: #FDECEC;
    border: 1px solid #F5C2C2;
    margin-bottom: 18px;
}

.save-error h3 { font-size: 1.02rem; font-weight: 700; color: var(--danger); margin-bottom: 4px; }
.save-error p { font-size: .93rem; color: #7F1D1D; margin: 0 0 12px; }

/* ============================================================
   Футер
   ============================================================ */
.footer {
    border-top: 1px solid var(--border);
    background: var(--bg-card);
    padding: 26px 20px;
}

.footer-inner {
    max-width: var(--page-max);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    text-align: center;
}

.footer-logo { width: 34px; height: 34px; }
.footer-note { color: var(--text-muted); font-size: .9rem; }
.footer-link { color: var(--brand-primary); font-weight: 600; text-decoration: none; font-size: .93rem; }
.footer-link:hover { text-decoration: underline; }

/* ============================================================
   Тосты
   ============================================================ */
.toasts {
    position: fixed;
    left: 50%;
    bottom: 22px;
    transform: translateX(-50%);
    z-index: 200;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: min(420px, calc(100vw - 32px));
}

.toast {
    padding: 13px 18px;
    border-radius: var(--radius-sm);
    background: var(--text-primary);
    color: #fff;
    font-size: .94rem;
    box-shadow: var(--shadow-lift);
    animation: toast-in .2s ease-out;
}

.toast.is-error { background: var(--danger); }

@keyframes toast-in {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: none; }
}

/* ============================================================
   Адаптив — iPhone SE (375) и Samsung A (360)
   ============================================================ */
@media (max-width: 640px) {
    .app { padding: 20px 14px 44px; }
    .card, .result-section { padding: 20px 17px; }
    .hero { padding: 34px 20px; }
    .result-hero, .cta-card { padding: 26px 20px; }
    .instr { padding: 30px 18px; }

    .topbar { padding: 11px 14px; }
    .topbar-brand img { width: 32px; height: 32px; }
    .topbar-wordmark { font-size: .84rem; }

    .bar-row { grid-template-columns: 96px 1fr 62px; gap: 8px; }
    .bar-label { font-size: .84rem; }
    .bar-val { font-size: .8rem; white-space: nowrap; }

    .stmt { gap: 10px; padding: 10px 12px; }
    .stmt-text { font-size: .95rem; }
    .stmt-input { width: 56px; }

    .points-bar { top: 62px; padding: 11px 14px; font-size: .93rem; }

    .nav-row { gap: 10px; }
    .nav-row .btn { flex: 1; min-width: 0; padding: 0 14px; }

    .result-actions .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        transition-duration: .01ms !important;
    }
}

/* ============================================================
   Печать — экран результата на A4 (используется для «Сохранить в PDF»)
   ============================================================ */
@media print {
    @page { size: A4; margin: 12mm; }

    .topbar, .footer, .progress-rail, .toasts, .result-actions, .cta-card { display: none !important; }

    body { background: #fff; }
    .app { max-width: none; padding: 0; }

    .result-hero {
        background: none !important;
        color: #000 !important;
        box-shadow: none;
        border: none;
        border-bottom: 3px solid var(--brand-primary);
        border-radius: 0;
        padding: 0 0 12px;
        margin-bottom: 16px;
    }

    .result-section {
        box-shadow: none;
        border: 1px solid #D7D7E0;
        break-inside: avoid;
        page-break-inside: avoid;
        padding: 16px 18px;
        margin-bottom: 12px;
    }

    .big-code {
        -webkit-text-fill-color: var(--brand-primary);
        color: var(--brand-primary);
        background: none;
    }

    .bar-fill, .bar-fill.is-top {
        background: var(--brand-primary) !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .chip, .role-item, .sub-card, .uni-list li {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}
