/* =========================================================
   AI report: one white "paper" card. Shared by the skills test (on its navy page), the assessments in
   tests/ (light page) and the admin panel, so it carries its own colours and needs nothing from the host
   page except brand/kdec.css (the --k-* tokens).
   Navy for structure, gold for the single accent, Alexandria for headings and numerals.
   No color-mix() in this file: the PDF is drawn by html2canvas, which cannot read it.
   ========================================================= */

:root {
    /* the four circles of the test (same values as includes/questions.php and report.js) */
    --ik-love: #de8468;
    --ik-good: #d9a93c;
    --ik-world: #74b08f;
    --ik-paid: #6a9fd4;
}

.ai-report {
    position: relative;
    margin: 2.5rem auto 2rem;
    padding: clamp(1rem, 3vw, 2rem);
    border-radius: var(--k-r-xl);
    text-align: start;
    color: var(--k-ink);
    background: var(--k-surface);
    border: 1px solid var(--k-line);
    box-shadow: var(--k-shadow);
    overflow: hidden;
}
/* the gold rule along the top edge */
.ai-report::before {
    content: "";
    position: absolute;
    inset-inline: 0;
    top: 0;
    height: 3px;
    background: var(--k-gold-grad);
}
.ai-report[data-state="streaming"]::before, .ai-report[data-state="loading"]::before {
    animation: rep-pulse 1.2s var(--k-ease-inout) infinite alternate;
}
@keyframes rep-pulse { from { opacity: .35; } to { opacity: 1; } }

.ai-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; }
.ai-head-copy { flex: 1 1 420px; min-width: 0; }
.ai-head h3 { margin: .6rem 0 .35rem; color: var(--k-navy); font-family: var(--k-font-display); font-weight: 700; font-size: clamp(1.25rem, 3vw, 1.6rem); line-height: 1.4; }
.ai-head p { margin: 0; color: var(--k-ink-2); font-size: .95rem; line-height: 1.8; max-width: 60ch; }
.ai-badge {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .2rem .7rem;
    border-radius: 6px;
    font-size: .8rem;
    font-weight: 600;
    color: var(--k-gold-ink);
    background: var(--k-gold-50);
    border: 1px solid var(--k-gold-light);
}
.ai-badge .ico { width: 1em; height: 1em; }
.ai-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.ai-actions[hidden] { display: none; }
.ai-disclaimer { margin: 1.5rem 0 0; padding-top: 1rem; border-top: 1px solid var(--k-line); color: var(--k-muted); font-size: .82rem; }

/* ---------- loader ---------- */
.rep-loader, .rep-error, .rep-start { margin-bottom: 1.25rem; }
.rep-loader { display: flex; align-items: center; gap: 1.5rem; padding: 1.25rem; border-radius: var(--k-r-lg); background: var(--k-surface-2); border: 1px dashed var(--k-line-strong); }
/* the four circles turn and breathe while the report is being written */
.rep-orb { position: relative; flex: none; width: 88px; height: 88px; animation: rep-spin 7s linear infinite; }
.rep-orb span {
    position: absolute;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    mix-blend-mode: multiply;
    opacity: .8;
    animation: rep-breathe 1.8s var(--k-ease-inout) infinite;
}
.rep-orb span:nth-child(1) { background: var(--ik-love); top: 0; left: 21px; }
.rep-orb span:nth-child(2) { background: var(--ik-world); top: 21px; right: 0; animation-delay: -.45s; }
.rep-orb span:nth-child(3) { background: var(--ik-paid); bottom: 0; left: 21px; animation-delay: -.9s; }
.rep-orb span:nth-child(4) { background: var(--ik-good); top: 21px; left: 0; animation-delay: -1.35s; }
@keyframes rep-breathe { 0%, 100% { transform: scale(.82); } 50% { transform: scale(1); opacity: 1; } }
.rep-loader-text { flex: 1; min-width: 0; }
.rep-loader-text strong { display: block; color: var(--k-navy); font-family: var(--k-font-display); font-weight: 600; font-size: 1.05rem; margin-bottom: .5rem; }
.rep-loader-text small { display: block; margin-top: .5rem; color: var(--k-muted); font-size: .8rem; }
.rep-stages { list-style: none; margin: 0; padding: 0; display: grid; gap: .3rem; }
.rep-stages li { position: relative; padding-inline-start: 1.6rem; font-size: .9rem; color: var(--k-muted); }
.rep-stages li::before {
    content: "";
    position: absolute;
    inset-inline-start: 0;
    top: .45em;
    width: .8rem;
    height: .8rem;
    border-radius: 50%;
    border: 2px solid var(--k-line-strong);
}
.rep-stages li.is-now { color: var(--k-ink); font-weight: 600; }
.rep-stages li.is-now::before { border-color: var(--k-gold); border-top-color: transparent; animation: rep-spin .8s linear infinite; }
.rep-stages li.is-done { color: var(--k-ink-2); }
.rep-stages li.is-done::before { background: var(--k-gold); border-color: var(--k-gold); }
@keyframes rep-spin { to { transform: rotate(360deg); } }
.rep-progress { display: block; height: 4px; margin-top: .75rem; background: var(--k-navy-100); overflow: hidden; }
.rep-progress span { display: block; height: 100%; background: var(--k-gold-grad); transform-origin: right; transform: scaleX(var(--v, 0)); transition: transform 240ms var(--k-ease); }
.rep-error { padding: 1rem 1.25rem; border-radius: var(--k-r-lg); background: var(--k-danger-bg); border: 1px solid var(--k-danger); color: var(--k-ink); }
.rep-error p { margin: 0 0 .75rem; }
.rep-error .rep-puter-note { color: var(--k-ink-2); font-size: .92rem; }
.rep-start { padding: 1.1rem 1.25rem; border-radius: var(--k-r-lg); background: var(--k-gold-50); border: 1px solid var(--k-gold-light); color: var(--k-ink); }
.rep-start p { margin: 0 0 .6rem; }
.rep-start-note { color: var(--k-ink-2); font-size: .92rem; max-width: 62ch; }
.rep-start .rep-puter { margin-inline-end: .5rem; margin-bottom: .4rem; }
.rep-wait { margin: 0 0 .7rem; padding: .5rem .85rem; border-radius: var(--k-r); background: var(--k-surface); border: 1px solid var(--k-line-strong); font-size: .88rem; color: var(--k-ink-2); }
.rep-wait[hidden] { display: none; }
.rep-error .rep-puter { margin-inline-end: .5rem; margin-bottom: .5rem; }
.rep-note { margin: .5rem 0; padding: .6rem 1rem; border-radius: var(--k-r); background: var(--k-warn-bg); border: 1px solid var(--k-gold-light); color: var(--k-ink-2); font-size: .9rem; }

/* ---------- summary visuals ---------- */
.rep-meta:empty { display: none; }
.rep-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
    grid-auto-flow: dense; /* the wide careers card must not leave an empty cell behind it */
    gap: 1rem;
    margin-bottom: 1.5rem;
    animation: rep-rise 240ms var(--k-ease) both;
}
.rep-meta h4 { margin: 0 0 .6rem; font-family: var(--k-font-display); font-size: .88rem; font-weight: 600; color: var(--k-navy); }
.rep-meta h4:not(:first-child) { margin-top: 1rem; }
.rep-balance, .rep-bars, .rep-chips {
    padding: 1rem 1.15rem;
    border-radius: var(--k-r-lg);
    background: var(--k-surface-2);
    border: 1px solid var(--k-line);
}
.rep-balance { display: grid; justify-items: center; align-content: center; gap: .6rem; text-align: center; }
.rep-balance-ring {
    display: grid;
    place-items: center;
    width: 128px;
    height: 128px;
    border-radius: 50%;
    background:
        radial-gradient(closest-side, var(--k-surface-2) 76%, transparent 78%),
        conic-gradient(from -90deg, var(--ik-love), var(--ik-good) calc(var(--v) * 120deg), var(--ik-world) calc(var(--v) * 240deg), var(--ik-paid) calc(var(--v) * 360deg), var(--k-navy-100) 0);
}
.rep-balance-ring b { color: var(--k-navy); font-family: var(--k-font-display); font-size: 1.75rem; font-weight: 700; font-variant-numeric: tabular-nums; direction: ltr; }
.rep-balance-label { color: var(--k-ink-2); font-size: .88rem; font-weight: 500; }

.rep-bar { display: grid; grid-template-columns: minmax(90px, 42%) 1fr 2.8rem; align-items: center; gap: .6rem; margin-bottom: .45rem; font-size: .85rem; }
.rep-bar-label { color: var(--k-ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rep-bar-track { height: 8px; background: var(--k-navy-100); overflow: hidden; }
.rep-bar-track span {
    display: block;
    height: 100%;
    background: var(--c);
    transform-origin: right;
    transform: scaleX(var(--v));
    animation: rep-grow 240ms var(--k-ease) both;
    animation-delay: calc(var(--i, 0) * 40ms + 120ms);
}
.rep-bar b { text-align: end; color: var(--k-ink); font-family: var(--k-font-display); font-variant-numeric: tabular-nums; font-weight: 600; font-size: .82rem; }
@keyframes rep-grow { from { transform: scaleX(0); } }
.rep-overlaps { display: grid; grid-template-columns: repeat(2, 1fr); gap: .4rem; }
.rep-ov {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .4rem .65rem;
    border-radius: var(--k-r-sm);
    font-size: .85rem;
    color: var(--k-ink-2);
    background: linear-gradient(90deg, var(--k-navy-100) calc(var(--v) * 100%), var(--k-surface) 0);
    border: 1px solid var(--k-line);
}
[dir="rtl"] .rep-ov { background: linear-gradient(270deg, var(--k-navy-100) calc(var(--v) * 100%), var(--k-surface) 0); }
.rep-ov b { color: var(--k-navy); font-family: var(--k-font-display); font-weight: 600; font-variant-numeric: tabular-nums; }
.rep-careers { grid-column: 1 / -1; }
@media (min-width: 900px) { .rep-careers { grid-column: span 2; } }
.rep-chips ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.rep-chips li { padding: .2rem .7rem; border-radius: 6px; font-size: .85rem; background: var(--k-ok-bg); color: var(--k-ok); }
.rep-chips.is-risks li { background: var(--k-danger-bg); color: var(--k-danger); }

/* ---------- table of contents ---------- */
.rep-toc { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1.25rem; }
.rep-toc a {
    padding: .35rem .8rem;
    border-radius: var(--k-r-sm);
    font-size: .82rem;
    color: var(--k-ink-2);
    text-decoration: none;
    background: var(--k-surface);
    border: 1px solid var(--k-line-strong);
    transition: transform 150ms var(--k-ease);
}
.rep-toc a:hover { color: var(--k-navy); background: var(--k-navy-50); border-color: var(--k-navy-300); }
.rep-toc a:active { transform: scale(.97); }
.rep-toc a:focus-visible { outline: 2px solid var(--k-gold-deep); outline-offset: 2px; }

/* ---------- report typography ---------- */
.rep-body { font-size: 1rem; line-height: 1.9; color: var(--k-ink); overflow-wrap: anywhere; }
.rep-body:empty { display: none; }
/* While streaming: finished blocks fade in once (opacity only, nothing moves); the block being written is not animated. */
.rep-stable, .rep-tail { display: contents; }
.rep-body .is-new { animation: rep-fade 240ms var(--k-ease) both; }
@keyframes rep-fade { from { opacity: 0; } }
@keyframes rep-rise { from { opacity: 0; transform: translateY(8px); } }
.rep-body h2 {
    position: relative;
    margin: 2.25rem 0 1rem;
    padding: .65rem 1rem;
    border-radius: var(--k-r-sm);
    color: var(--k-navy);
    font-family: var(--k-font-display);
    font-size: clamp(1.08rem, 2.6vw, 1.28rem);
    font-weight: 700;
    line-height: 1.5;
    background: var(--k-navy-50);
    border-inline-start: 3px solid var(--k-gold);
    scroll-margin-top: 150px;
}
.rep-body h2:first-child { margin-top: 0; }
.rep-body h3 { margin: 1.5rem 0 .5rem; font-family: var(--k-font-display); font-size: 1.05rem; font-weight: 600; color: var(--k-gold-ink); }
.rep-body h4 { margin: 1.1rem 0 .4rem; font-size: 1rem; font-weight: 600; color: var(--k-ink); }
/* running text keeps a readable measure; tables and headings use the full width */
.rep-body p, .rep-body ul, .rep-body ol, .rep-body blockquote { max-width: 76ch; }
.rep-body p { margin: 0 0 .9rem; color: var(--k-ink-2); }
.rep-body strong { color: var(--k-ink); font-weight: 600; }
.rep-body em { color: var(--k-gold-ink); font-style: normal; }
.rep-body .rep-quote { color: var(--k-gold-ink); }
.rep-body ul, .rep-body ol { margin: 0 0 1rem; padding-inline-start: 1.4rem; color: var(--k-ink-2); }
.rep-body li { margin-bottom: .35rem; padding-inline-start: .2rem; }
.rep-body ul li::marker { color: var(--k-gold-deep); }
.rep-body ol li::marker { color: var(--k-gold-ink); font-weight: 600; }
.rep-body hr { border: 0; height: 1px; margin: 1.5rem 0; background: var(--k-line); opacity: 1; }
.rep-body blockquote { margin: 0 0 1rem; padding: .75rem 1rem; border-radius: var(--k-r-sm); background: var(--k-surface-2); border-inline-start: 3px solid var(--k-gold-light); color: var(--k-ink-2); }

.rep-table { margin: 0 0 1.25rem; overflow-x: auto; border-radius: var(--k-r); border: 1px solid var(--k-line); }
.rep-table table { width: 100%; border-collapse: collapse; font-size: .92rem; line-height: 1.7; }
.rep-table th { padding: .65rem .8rem; text-align: start; background: var(--k-navy); color: var(--k-on-navy); font-weight: 600; white-space: nowrap; }
.rep-table td { padding: .65rem .8rem; border-top: 1px solid var(--k-line); vertical-align: top; color: var(--k-ink-2); }
.rep-table tbody tr:nth-child(even) td { background: var(--k-surface-2); }
.rep-pct { display: inline-flex; align-items: center; gap: .5rem; min-width: 120px; }
.rep-pct-bar { flex: 1; height: 6px; background: var(--k-navy-100); overflow: hidden; }
.rep-pct-bar span { display: block; height: 100%; width: calc(var(--v) * 100%); background: var(--k-gold); }
.rep-pct b { color: var(--k-navy); font-family: var(--k-font-display); font-weight: 600; font-size: .95em; font-variant-numeric: tabular-nums; direction: ltr; }

.rep-caret { display: inline-block; width: .5em; height: 1.1em; margin-inline-start: .2em; vertical-align: -.15em; border-radius: 2px; background: var(--k-gold); animation: rep-blink 1s steps(2) infinite; }
@keyframes rep-blink { 50% { opacity: 0; } }

@media (max-width: 640px) {
    .rep-loader { flex-direction: column; text-align: center; }
    .rep-stages { justify-items: center; }
    .rep-table { border: 0; overflow: visible; }
    .rep-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
    .rep-table table, .rep-table tbody, .rep-table tr, .rep-table td { display: block; width: 100%; }
    .rep-table tr { margin-bottom: .75rem; border-radius: var(--k-r); border: 1px solid var(--k-line); overflow: hidden; }
    .rep-table td { display: grid; grid-template-columns: 38% 1fr; gap: .6rem; border-top: 1px solid var(--k-line); }
    .rep-table tr td:first-child { border-top: 0; background: var(--k-navy-50) !important; color: var(--k-navy); font-weight: 600; }
    .rep-table td::before { content: attr(data-label); color: var(--k-muted); font-size: .8rem; font-weight: 600; }
    .rep-bar { grid-template-columns: 1fr 2.6rem; }
    .rep-bar-track { grid-column: 1 / -1; grid-row: 2; }
}

@media (prefers-reduced-motion: reduce) {
    .ai-report::before, .rep-orb, .rep-orb span, .rep-stages li.is-now::before, .rep-caret, .rep-meta, .rep-bar-track span, .rep-body .is-new { animation: none !important; }
}

.rep-queue-msg { margin: 0; color: var(--k-ink-2); font-size: .92rem; }

/* private link box on the results screen */
.my-link {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .75rem 1rem;
    margin: 0 0 1.25rem;
    padding: .9rem 1.1rem;
    border-radius: var(--k-r-lg);
    color: var(--k-ink);
    background: var(--k-gold-50);
    border: 1px solid var(--k-gold-light);
    text-align: start;
}
.my-link[hidden] { display: none; }
.my-link > .ico { color: var(--k-gold-ink); width: 1.5em; height: 1.5em; }
.my-link-text { flex: 1 1 280px; min-width: 0; display: grid; gap: .15rem; }
.my-link-text strong { font-size: .95rem; font-weight: 600; }
.my-link-text span { color: var(--k-ink-2); font-size: .82rem; }
.my-link-text code { color: var(--k-navy); font-size: .8rem; overflow-wrap: anywhere; background: none; padding: 0; }
.my-report-main { max-width: 1040px; }
.my-report-title { margin: .5rem 0 .35rem; color: var(--k-navy); font-family: var(--k-font-display); font-weight: 700; font-size: clamp(1.4rem, 3.4vw, 1.95rem); }

/* ---------- PDF sheet (A4 width, rendered off-screen) ---------- */
/* The stage hides the sheet off-screen; the sheet itself must stay un-positioned,
   because html2canvas copies the sheet's own styles when it takes the snapshot. */
.pdf-stage { position: fixed; top: 0; left: -10000px; width: 794px; pointer-events: none; }
.pdf-sheet {
    width: 794px;
    padding: 8px 4px;
    background: var(--k-surface);
    color: var(--k-ink);
    font-family: var(--k-font);
    text-align: right;
}
.pdf-sheet * { animation: none !important; transition: none !important; }
.pdf-page {
    position: relative;
    box-sizing: border-box;
    height: 1123px;          /* one A4 page at 96 dpi */
    padding: 40px 44px 70px; /* bottom space is kept free for the footer */
    overflow: hidden;
    margin-bottom: 20px;
}
.pdf-page .rep-body > :first-child { margin-top: 0; }
.pdf-page .rep-table { margin-bottom: 14px; }
/* Navy band with a gold start on top of every page + footer with the brand, the name and the page number. */
.pdf-page::before { content: ""; position: absolute; top: 0; inset-inline: 0; height: 8px; background: var(--k-navy); }
.pdf-page::after { content: ""; position: absolute; top: 0; inset-inline-start: 0; width: 132px; height: 8px; background: var(--k-gold); }
.pdf-pno {
    position: absolute; bottom: 16px; inset-inline: 44px;
    display: flex; justify-content: space-between; align-items: center; gap: 12px;
    padding-top: 8px; border-top: 1px solid var(--k-line-strong);
    font-size: 10.5px; color: var(--k-muted);
}
.pdf-pno b { color: var(--k-ink); font-weight: 600; }
.pdf-pno .pdf-brand { direction: ltr; color: var(--k-navy); font-family: var(--k-font-display); font-weight: 600; letter-spacing: .04em; }
.pdf-flow:empty { display: none; }
.pdf-head {
    margin: 4px 0 18px; border-radius: 14px; overflow: hidden;
    background: var(--k-surface); color: var(--k-ink);
    border: 1px solid var(--k-line-strong);
}
.pdf-head-top { display: flex; align-items: center; gap: 22px; padding: 18px 22px 16px; border-bottom: 3px solid var(--k-gold); }
.pdf-head img { flex: none; width: auto; height: 62px; border-radius: 0; background: none; }
.pdf-head-copy { min-width: 0; padding-inline-start: 22px; border-inline-start: 1px solid var(--k-line-strong); }
.pdf-head h1 { margin: 4px 0 4px; font-family: var(--k-font-display); font-size: 24px; line-height: 1.4; font-weight: 700; color: var(--k-navy); overflow-wrap: anywhere; }
.pdf-kicker { margin: 0; font-size: 12px; font-weight: 600; color: var(--k-gold-ink); }
.pdf-date { margin: 0; font-size: 12px; color: var(--k-muted); }
.pdf-facts {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin: 0;
    background: var(--k-line);
}
.pdf-fact { min-width: 0; padding: 10px 14px 11px; background: var(--k-surface-2); }
.pdf-fact dt { margin: 0 0 2px; font-size: 10.5px; font-weight: 600; color: var(--k-muted); }
.pdf-fact dd { margin: 0; font-size: 13px; font-weight: 600; color: var(--k-ink); overflow-wrap: anywhere; line-height: 1.5; }
.pdf-fact dd.is-ltr { text-align: right; unicode-bidi: isolate; font-family: var(--k-font); }
.pdf-foot { margin: 18px 0 0; padding-top: 10px; border-top: 1px solid var(--k-line-strong); font-size: 11px; color: var(--k-muted); }
.pdf-sheet .rep-meta { grid-template-columns: repeat(2, 1fr); margin-bottom: 18px; }
.pdf-sheet .rep-balance, .pdf-sheet .rep-bars, .pdf-sheet .rep-chips { background: var(--k-surface-2); border-color: var(--k-line); box-shadow: none; border-radius: 14px; }
.pdf-sheet .rep-bar-track span { transform: scaleX(var(--v)); }
.pdf-sheet .rep-ov { background: var(--k-navy-50); }
.pdf-sheet .rep-body { font-size: 14px; line-height: 1.9; color: var(--k-ink); }
.pdf-sheet .rep-body h2 { font-size: 17px; margin-top: 22px; }
.pdf-sheet .rep-body h3 { font-size: 15px; }
.pdf-sheet .rep-body h4 { color: var(--k-ink-2); }
.pdf-sheet .rep-body p, .pdf-sheet .rep-body ul, .pdf-sheet .rep-body ol, .pdf-sheet .rep-body blockquote { max-width: none; }
/* Lists use drawn markers (see exportPdf): native RTL markers render on the wrong side. */
.pdf-sheet .rep-body ul, .pdf-sheet .rep-body ol { list-style: none; padding-inline-start: 0; }
.pdf-sheet .rep-body li { position: relative; padding-inline-start: 22px; }
.pdf-sheet .rep-body ol > li { padding-inline-start: 34px; margin-bottom: 10px; }
.pdf-sheet .rep-body li ul { margin: 4px 0 2px; }
.pdf-mark {
    position: absolute; inset-inline-start: 4px; top: 10px;
    width: 8px; height: 8px; border-radius: 50%; background: var(--k-gold);
}
.pdf-mark.is-num {
    inset-inline-start: 0; top: 2px;
    width: 23px; height: 23px; border-radius: 50%;
    background: var(--k-navy); color: var(--k-gold-hi);
    font-size: 12px; font-weight: 700; line-height: 23px; text-align: center;
}
.pdf-sheet .rep-body li ul .pdf-mark { background: transparent; border: 2px solid var(--k-gold); width: 7px; height: 7px; top: 10px; }
.pdf-sheet .rep-bar-label { white-space: normal; overflow: visible; text-overflow: clip; line-height: 1.35; }
/* Section-05 choices (the person's own skills profile) */
.pdf-sheet .rep-body .pdf-profile { margin: 0 0 18px; padding: 16px 18px 6px; border-radius: 14px; background: var(--k-surface-2); border: 1px solid var(--k-line); }
.pdf-sheet .rep-body .pdf-profile h3 { margin: 0 0 12px; font-family: var(--k-font-display); font-size: 15px; font-weight: 700; color: var(--k-navy); }
.pdf-sheet .rep-body .pdf-prof-row { display: grid; grid-template-columns: 200px 1fr; gap: 12px; align-items: start; padding: 9px 0; border-top: 1px solid var(--k-line); }
.pdf-sheet .rep-body .pdf-prof-row h4 { margin: 3px 0 0; font-size: 12.5px; font-weight: 600; color: var(--k-muted); line-height: 1.5; }
.pdf-sheet .rep-body .pdf-prof-row p { margin: 0; font-size: 13px; line-height: 1.7; color: var(--k-ink-2); overflow-wrap: anywhere; }
.pdf-sheet .rep-body .pdf-prof-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.pdf-sheet .rep-body .pdf-prof-chips li { margin: 0; padding: 3px 11px; border-radius: 6px; background: var(--k-gold-50); color: var(--k-gold-ink); font-size: 12.5px; font-weight: 600; line-height: 1.6; }
.pdf-sheet .rep-body .pdf-prof-chips.is-combo li { background: var(--k-navy-50); color: var(--k-navy); }
.pdf-sheet .rep-body .pdf-prof-chips.is-dev li { background: var(--k-danger-bg); color: var(--k-danger); }

/* The PDF page is always 794px wide: undo the phone/tablet rules, which follow the screen
   width and would otherwise turn tables into cards when the PDF is made on a phone. */
.pdf-sheet .rep-careers { grid-column: span 2; }
.pdf-sheet .rep-bar { grid-template-columns: minmax(90px, 42%) 1fr 2.8rem; }
.pdf-sheet .rep-bar-track { grid-column: auto; grid-row: auto; }
.pdf-sheet .rep-table { border: 1px solid var(--k-line); border-radius: 10px; overflow: visible; }
.pdf-sheet .rep-table table { display: table; width: 100%; }
.pdf-sheet .rep-table thead { display: table-header-group; position: static; width: auto; height: auto; overflow: visible; clip-path: none; }
.pdf-sheet .rep-table tbody { display: table-row-group; width: auto; }
.pdf-sheet .rep-table tr { display: table-row; width: auto; margin: 0; border: 0; border-radius: 0; overflow: visible; }
.pdf-sheet .rep-table td { display: table-cell; width: auto; }
.pdf-sheet .rep-table td::before { content: none; }
.pdf-sheet .rep-table th { white-space: normal; }
.pdf-sheet .rep-table tbody tr td:first-child { background: transparent !important; color: var(--k-ink); font-weight: 600; }
.pdf-sheet .rep-table tbody tr:nth-child(even) td:first-child { background: var(--k-surface-2) !important; }
.pdf-sheet .rep-caret { display: none; }

/* ---------- print just the report ---------- */
@media print {
    body.print-report * { visibility: hidden !important; }
    body.print-report .ai-report, body.print-report .ai-report * { visibility: visible !important; }
    body.print-report .ai-report { position: absolute; inset: 0 0 auto; margin: 0; padding: 0; border: 0; box-shadow: none; background: var(--k-surface) !important; overflow: visible; }
    body.print-report .ai-actions, body.print-report .rep-toc, body.print-report [data-rep-status] { display: none !important; }
    .rep-body h2 { -webkit-print-color-adjust: exact; print-color-adjust: exact; break-after: avoid; }
    .rep-table th { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
    .rep-table tr, .rep-balance, .rep-bars, .rep-chips { break-inside: avoid; }
    .rep-balance, .rep-bars, .rep-chips { background: var(--k-surface) !important; }
    .rep-bar-track span, .rep-pct-bar span, .rep-balance-ring, .rep-chips li, .ai-badge { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
