/* Shared report hierarchy. Selectors are restricted to rendered reports;
   result calculations, charts, question screens and test homes are untouched. */
.quiz-shell :is(.m16-report,.h-report,.ma-report,.an-report,.it-report,.ta-report,.de-report,.sh-report,.sc-report,.gd-report),
.quiz-shell .quiz-container:has(>.quiz-report-head){
 --rv-ink:#1b304e;--rv-body:#455a74;--rv-accent:#315f9f;--rv-paper:#fff;
 --rv-hero:#dfeafb;--rv-soft:#eff4fc;--rv-line:#c5d5eb;--rv-chip:#f8fbff;
 --rv-shadow:0 7px 0 #c5d5eb;min-width:0;color:var(--rv-ink)
}
.quiz-shell:is(.ink) :is(.m16-report,.h-report,.ma-report,.an-report,.it-report,.ta-report,.de-report,.sh-report,.sc-report,.gd-report),
.quiz-shell.ink .quiz-container:has(>.quiz-report-head){--rv-ink:#193f32;--rv-body:#3f6051;--rv-accent:#276c51;--rv-paper:#fcfffc;--rv-hero:#d6ebdd;--rv-soft:#edf6ef;--rv-line:#b8d3c1;--rv-chip:#f7fcf8;--rv-shadow:0 7px 0 #b8d3c1}
.quiz-shell:is(.rose,.danger) :is(.m16-report,.h-report,.ma-report,.an-report,.it-report,.ta-report,.de-report,.sh-report,.sc-report,.gd-report),
.quiz-shell:is(.rose,.danger) .quiz-container:has(>.quiz-report-head){--rv-ink:#5b2940;--rv-body:#78485d;--rv-accent:#9e4268;--rv-paper:#fffafb;--rv-hero:#f5dfe9;--rv-soft:#faf0f4;--rv-line:#dfbbcc;--rv-chip:#fff9fc;--rv-shadow:0 7px 0 #dfbbcc}
.quiz-shell:is(.noir,.qzz) :is(.m16-report,.h-report,.ma-report,.an-report,.it-report,.ta-report,.de-report,.sh-report,.sc-report,.gd-report),
.quiz-shell:is(.noir,.qzz) .quiz-container:has(>.quiz-report-head){--rv-ink:#f5f4ff;--rv-body:#d2d6e8;--rv-accent:#c2b8f3;--rv-paper:#2d3045;--rv-hero:#3a3d59;--rv-soft:#373b54;--rv-line:#60637f;--rv-chip:#282e46;--rv-shadow:0 7px 0 #60637f}
/* Map the existing report components onto readable, theme-specific inks. */
.quiz-shell .m16-report{--m16-ink:var(--rv-ink);--m16-body:var(--rv-body);--m16-muted:var(--rv-body);--m16-paper:var(--rv-paper);--m16-line:var(--rv-line)}
.quiz-shell .ma-report{--ma-ink:var(--rv-ink);--ma-body:var(--rv-body);--ma-muted:var(--rv-body);--ma-accent:var(--rv-accent);--ma-paper:var(--rv-paper);--ma-soft:var(--rv-soft);--ma-line:var(--rv-line)}
.quiz-shell .an-report{--an-ink:var(--rv-ink);--an-body:var(--rv-body);--an-muted:var(--rv-body);--an-accent:var(--rv-accent);--an-paper:var(--rv-paper);--an-soft:var(--rv-soft);--an-line:var(--rv-line)}
.quiz-shell .it-report{--it-ink:var(--rv-ink);--it-body:var(--rv-body);--it-muted:var(--rv-body);--it-accent:var(--rv-accent);--it-paper:var(--rv-paper);--it-soft:var(--rv-soft);--it-line:var(--rv-line)}
.quiz-shell .ta-report{--ta-ink:var(--rv-ink);--ta-body:var(--rv-body);--ta-muted:var(--rv-body);--ta-accent:var(--rv-accent);--ta-paper:var(--rv-paper);--ta-soft:var(--rv-soft);--ta-line:var(--rv-line)}
.quiz-shell .de-report{--de-ink:var(--rv-ink);--de-body:var(--rv-body);--de-muted:var(--rv-body);--de-accent:var(--rv-accent);--de-paper:var(--rv-paper);--de-soft:var(--rv-soft);--de-line:var(--rv-line)}
.quiz-shell .sh-report{--sh-ink:var(--rv-ink);--sh-body:var(--rv-body);--sh-muted:var(--rv-body);--sh-accent:var(--rv-accent);--sh-paper:var(--rv-paper);--sh-soft:var(--rv-soft);--sh-line:var(--rv-line)}
.quiz-shell .sc-report{--sc-ink:var(--rv-ink);--sc-body:var(--rv-body);--sc-muted:var(--rv-body);--sc-accent:var(--rv-accent);--sc-paper:var(--rv-paper);--sc-soft:var(--rv-soft);--sc-line:var(--rv-line)}
.quiz-shell .h-report{--text:var(--rv-ink);--text-secondary:var(--rv-body);--text-muted:var(--rv-body);--text2:var(--rv-body);--muted:var(--rv-body);--bg-card:var(--rv-paper);--card:var(--rv-paper);--border:var(--rv-line)}
.quiz-shell .quiz-container:has(>.quiz-report-head){--qink:var(--rv-ink);--qmuted:var(--rv-body);--qaccent:var(--rv-accent);--qpanel:var(--rv-paper)}

/* A result always reads as a cover card, even with a custom long title. */
.quiz-shell :is(.m16-result-hero,.h-result-hero,.ma-result-hero,.an-result-hero,.it-result-hero,.ta-result-hero,.de-result-hero,.sh-result-hero,.sc-report-head),
.quiz-shell .quiz-report-head{
 position:relative;box-sizing:border-box;max-width:100%;min-width:0;margin:22px 0 30px;padding:32px 30px;
 border:1px solid var(--rv-line);border-radius:24px;background:var(--rv-hero);color:var(--rv-ink);box-shadow:var(--rv-shadow)
}
.quiz-shell :is(.h-result-name,.ma-result-hero h1,.an-result-hero h1,.it-result-hero h1,.ta-result-hero h1,.de-result-hero h1,.sh-result-name h1),
.quiz-shell .quiz-report-head h1{max-width:100%;font-family:"Microsoft YaHei","PingFang SC",system-ui,sans-serif;font-weight:850;font-size:clamp(42px,6.5vw,66px);line-height:1.24;letter-spacing:-1px;color:var(--rv-ink);overflow-wrap:anywhere;word-break:normal;text-wrap:balance}
.quiz-shell :is(.ma-result-hero h1,.an-result-hero h1,.ta-result-hero h1,.de-result-hero h1,.sh-result-name h1){margin:16px 0}
.quiz-shell .it-result-hero h2{font-size:31px;font-weight:750;line-height:1.45;color:var(--rv-ink);overflow-wrap:anywhere}
.quiz-shell .sc-report-head h1{font:800 clamp(29px,4.7vw,44px)/1.4 "Microsoft YaHei","PingFang SC",system-ui,sans-serif;letter-spacing:-.6px;color:var(--rv-ink);overflow-wrap:anywhere;text-wrap:balance}
.quiz-shell :is(.ma-eyebrow,.an-eyebrow,.it-eyebrow,.ta-eyebrow,.de-eyebrow,.sh-eyebrow,.sc-eyebrow,.h-result-label){color:var(--rv-body);font-size:12px;line-height:1.7;letter-spacing:.7px;font-weight:650;overflow-wrap:anywhere}
.quiz-shell :is(.an-hero-note,.ta-result-subtitle,.it-result-role,.de-result-attribute,.sh-level-description,.h-result-title){font-size:17px;line-height:1.85;color:var(--rv-body);overflow-wrap:anywhere;text-wrap:pretty}
.quiz-shell .quiz-report-head .tagline{font-size:17px;line-height:1.85;color:var(--rv-body);overflow-wrap:anywhere}
.quiz-shell .quiz-report-head .question-count{font-size:13px;line-height:1.8;letter-spacing:.5px;overflow-wrap:anywhere}
.quiz-shell .quiz-report-head .quiz-kicker{font-size:10px;letter-spacing:1.4px;margin-bottom:17px}
.quiz-shell :is(.an-result-metadata,.ta-result-metadata,.de-result-metadata,.sh-result-metadata){gap:12px;flex-wrap:wrap;color:var(--rv-body);font-size:10px;line-height:1.8;overflow-wrap:anywhere}
.quiz-shell :is(.ma-tags,.it-keywords,.ta-traits,.sh-keywords,.m16-keywords){display:flex;flex-wrap:wrap;justify-content:center;gap:8px;margin-top:20px;max-width:100%}
.quiz-shell :is(.ma-tags,.it-keywords,.ta-traits,.sh-keywords,.m16-keywords)>span{max-width:100%;padding:7px 11px;border:1px solid var(--rv-line);border-radius:9px;background:var(--rv-chip);color:var(--rv-ink);font-size:12px;font-weight:650;line-height:1.5;overflow-wrap:anywhere}
.quiz-shell :is(.an-match,.it-attraction,.ta-overall,.sh-level,.h-match-badge){color:var(--rv-ink);border-color:var(--rv-line);max-width:100%}
.quiz-shell :is(.an-match span,.it-attraction span,.ta-overall span,.h-match-badge){font-size:12px;line-height:1.8;overflow-wrap:anywhere}
.quiz-shell :is(.an-match b,.it-attraction b,.ta-overall b){font-weight:850;color:var(--rv-accent);font-variant-numeric:tabular-nums}
.quiz-shell .ma-result-age>b{color:var(--rv-accent);font-weight:850;font-size:clamp(88px,15vw,130px);line-height:1.05}
.quiz-shell .sh-dark-index>b{color:var(--rv-accent);font-weight:850;font-size:clamp(88px,14vw,124px);line-height:1.05}
.quiz-shell .h-score-ring-wrap{margin:0 auto 32px;gap:0;max-width:100%}
.quiz-shell .de-share-quote{max-width:100%;padding:18px 20px;border:1px solid var(--rv-line);border-radius:15px;background:var(--rv-chip);color:var(--rv-ink);margin-top:22px}
.quiz-shell .de-share-quote p{font-size:18px;line-height:1.8;color:var(--rv-ink);overflow-wrap:anywhere}

/* MBTI keeps its illustrations and four group colours, with the name as lead. */
.quiz-shell .m16-result-hero{grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);gap:22px;padding:27px}
.quiz-shell .m16-result-title{min-width:0}
.quiz-shell .m16-result-title h1{font-size:clamp(34px,5.3vw,53px);font-weight:850;line-height:1.22;letter-spacing:-1px;margin:12px 0 13px;color:var(--rv-ink);overflow-wrap:anywhere;text-wrap:balance}
.quiz-shell .m16-result-title h2{font-size:clamp(29px,4.7vw,46px);font-weight:800;line-height:1.3;letter-spacing:-1px;color:var(--m16-result);white-space:normal;overflow-wrap:anywhere}
.quiz-shell .m16-result-title .m16-eyebrow{font-size:12px;color:var(--rv-body);line-height:1.7}
.quiz-shell .m16-result-caption{min-width:0;max-width:100%}
.quiz-shell .m16-result-tagline{font-size:17px;line-height:1.85;color:var(--rv-body);overflow-wrap:anywhere}
.quiz-shell .m16-keywords{justify-content:flex-start;margin-top:16px}
.quiz-shell .m16-result-figure{min-width:0}
.quiz-shell .m16-result-figure>span{color:var(--rv-ink);font-size:12px}
.quiz-shell .m16-result-hero.is-ambiguous h1{font-size:32px;line-height:1.4}

/* Charts have their own panel; the original scales and visual geometry remain. */
.quiz-shell :is(.m16-dimension-section,.h-data-card,.ma-profile-card,.an-profile-card,.ta-profile-card,.de-profile-card,.sh-profile-card,.sc-profile-card){box-sizing:border-box;min-width:0;max-width:100%;border:1px solid var(--rv-line);border-radius:21px;background:var(--rv-paper);box-shadow:0 7px 22px #18314a09;padding:27px}
.quiz-shell :is(.ma-profile-caption,.an-profile-caption,.ta-profile-caption,.de-profile-caption,.sh-profile-caption,.sc-profile-caption){font-size:12px;line-height:1.8;color:var(--rv-body);gap:12px;flex-wrap:wrap}
.quiz-shell :is(.h-radar,.ma-radar,.de-radar,.ta-radar,.sh-radar,.sc-radar,.quiz-radar){max-width:100%;height:auto}
.quiz-shell :is(.ma-radar-area,.de-radar-area,.ta-radar-area,.sh-radar-area,.sc-radar-area){stroke-width:2.4;fill-opacity:.24}
.quiz-shell :is(.ma-score-row,.an-score-row,.ta-score-row,.de-score-row,.sh-score-row){min-width:0;gap:12px}
.quiz-shell :is(.ma-score-row,.an-score-row,.ta-score-row,.de-score-row,.sh-score-row)>:is(span,div){min-width:0;overflow-wrap:anywhere}
.quiz-shell :is(.ma-score-row,.an-score-row,.ta-score-row,.de-score-row,.sh-score-row)>strong{font-weight:800;color:var(--rv-accent);font-variant-numeric:tabular-nums}
.quiz-shell :is(.ma-score-row,.an-score-row,.ta-score-row,.de-score-row,.sh-score-row)>i{height:10px;border-radius:6px;overflow:hidden}
.quiz-shell :is(.ma-score-row,.an-score-row,.ta-score-row,.de-score-row,.sh-score-row)>i>b{height:100%;background:var(--rv-accent)}
.quiz-shell .it-report .it-rank-row{min-width:0;border-color:var(--rv-line)}
.quiz-shell .it-report .it-rank-content{min-width:0}
.quiz-shell .it-report .it-rank-content span{overflow-wrap:anywhere}
.quiz-shell .m16-axis-bar{height:15px}
.quiz-shell .m16-axis-labels{font-size:13px;line-height:1.8;gap:14px}
.quiz-shell .m16-axis-labels b{font-size:15px;overflow-wrap:anywhere}
.quiz-shell .m16-axis-values{font-size:11px;color:var(--rv-body)}
.quiz-shell .sc-summary-grid article,.quiz-shell .sc-extra-counts article{border:1px solid var(--rv-line);border-radius:18px;background:var(--rv-paper);min-width:0}
.quiz-shell .sc-summary-number>b{font-size:52px;font-weight:850;color:var(--rv-accent);line-height:1.1}
.quiz-shell .sc-report .sc-table-wrap{max-width:100%;overflow-x:auto;border-radius:15px;border-color:var(--rv-line)}
.quiz-shell .sc-report .sc-band-note,.quiz-shell .sc-report .sc-reading-note{color:var(--rv-body);line-height:1.95}
.quiz-shell .quiz-container:has(>.quiz-report-head)>.report-section{border-color:var(--rv-line);border-radius:19px;padding:26px;background:var(--rv-paper);margin-top:22px}
.quiz-shell .quiz-container:has(>.quiz-report-head)>.report-section h2{font-size:23px;line-height:1.5;font-weight:750;color:var(--rv-ink);overflow-wrap:anywhere}
.quiz-shell .quiz-container:has(>.quiz-report-head)>.report-section p{font-size:15px;line-height:2;color:var(--rv-body)}
.quiz-shell .quiz-score-row{grid-template-columns:minmax(60px,.6fr) minmax(0,1fr) 38px;gap:12px;font-size:13px;line-height:1.7}
.quiz-shell .quiz-score-row>span{overflow-wrap:anywhere}
.quiz-shell .quiz-score-row i{height:9px}
.quiz-shell .quiz-score-row strong{font-size:17px;font-variant-numeric:tabular-nums}
.quiz-shell .qzz-dual>div{border:1px solid var(--rv-line);border-radius:16px;background:var(--rv-paper);min-width:0}
.quiz-shell .qzz-dual strong{font-weight:750;font-size:30px;overflow-wrap:anywhere}

@media(max-width:520px){
 .quiz-shell :is(.m16-result-hero,.h-result-hero,.ma-result-hero,.an-result-hero,.it-result-hero,.ta-result-hero,.de-result-hero,.sh-result-hero,.sc-report-head),.quiz-shell .quiz-report-head{padding:24px 20px;border-radius:20px;margin:18px 0 27px;box-shadow:0 5px 0 var(--rv-line)}
 .quiz-shell :is(.h-result-name,.ma-result-hero h1,.an-result-hero h1,.it-result-hero h1,.ta-result-hero h1,.de-result-hero h1,.sh-result-name h1),.quiz-shell .quiz-report-head h1{font-size:clamp(37px,10.8vw,47px);line-height:1.25;letter-spacing:-.8px}
 .quiz-shell :is(.an-hero-note,.ta-result-subtitle,.it-result-role,.de-result-attribute,.sh-level-description,.h-result-title),.quiz-shell .quiz-report-head .tagline{font-size:15px;line-height:1.85}
 .quiz-shell .it-result-hero h2{font-size:26px}
 .quiz-shell .sc-report-head h1{font-size:29px;line-height:1.45}
 .quiz-shell :is(.ma-tags,.it-keywords,.ta-traits,.sh-keywords,.m16-keywords){gap:7px;margin-top:17px}
 .quiz-shell :is(.ma-tags,.it-keywords,.ta-traits,.sh-keywords,.m16-keywords)>span{font-size:11px;padding:6px 9px}
 .quiz-shell .de-share-quote{padding:16px 15px;border-radius:12px}
 .quiz-shell .de-share-quote p{font-size:16px}
 .quiz-shell .m16-result-hero{grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);padding:20px 17px;column-gap:13px;row-gap:20px}
 .quiz-shell .m16-result-title h1{font-size:32px;line-height:1.3;letter-spacing:-.5px}
 .quiz-shell .m16-result-title h2{font-size:29px;letter-spacing:-1px;line-height:1.3}
 .quiz-shell .m16-result-title .m16-eyebrow{font-size:10px}
 .quiz-shell .m16-result-tagline{font-size:15px;line-height:1.9}
 .quiz-shell .m16-result-hero.is-ambiguous h1{font-size:24px;line-height:1.45}
 .quiz-shell :is(.m16-dimension-section,.h-data-card,.ma-profile-card,.an-profile-card,.ta-profile-card,.de-profile-card,.sh-profile-card,.sc-profile-card){padding:21px 16px;border-radius:18px}
 .quiz-shell :is(.ma-profile-caption,.an-profile-caption,.ta-profile-caption,.de-profile-caption,.sh-profile-caption,.sc-profile-caption){font-size:11px;gap:8px}
 .quiz-shell :is(.ma-score-row,.an-score-row,.ta-score-row,.de-score-row,.sh-score-row){gap:9px;font-size:12px}
 .quiz-shell .m16-axis-labels{font-size:12px;gap:9px}
 .quiz-shell .m16-axis-labels b{font-size:14px}
 .quiz-shell .sc-summary-number>b{font-size:42px}
 .quiz-shell .quiz-container:has(>.quiz-report-head)>.report-section{padding:21px 18px;border-radius:17px}
 .quiz-shell .quiz-container:has(>.quiz-report-head)>.report-section h2{font-size:21px}
 .quiz-shell .quiz-score-row{grid-template-columns:minmax(60px,.7fr) minmax(0,1fr) 33px;gap:9px;font-size:12px}
 .quiz-shell .qzz-dual>div{padding:19px 12px}
 .quiz-shell .qzz-dual strong{font-size:27px}
}
@media(max-width:360px){
 .quiz-shell :is(.ma-result-hero,.an-result-hero,.it-result-hero,.ta-result-hero,.de-result-hero,.sh-result-hero,.sc-report-head),.quiz-shell .quiz-report-head{padding-left:16px;padding-right:16px}
 .quiz-shell :is(.h-result-name,.ma-result-hero h1,.an-result-hero h1,.it-result-hero h1,.ta-result-hero h1,.de-result-hero h1,.sh-result-name h1),.quiz-shell .quiz-report-head h1{font-size:37px}
 .quiz-shell .m16-result-hero{padding-left:13px;padding-right:13px;column-gap:10px}
 .quiz-shell .m16-result-title h1{font-size:28px}
 .quiz-shell .m16-result-title h2{font-size:25px}
 .quiz-shell .m16-result-hero.is-ambiguous h1{font-size:21px}
 .quiz-shell .sc-report-head h1{font-size:27px}
 .quiz-shell .sc-summary-grid{grid-template-columns:minmax(0,1fr)}
 .quiz-shell :is(.m16-dimension-section,.h-data-card,.ma-profile-card,.an-profile-card,.ta-profile-card,.de-profile-card,.sh-profile-card,.sc-profile-card){padding-left:13px;padding-right:13px}
}

/* Individual editorial palettes: atmosphere belongs to the test, while
   paper/ink/rose/noir still control the requested light, tint or dark setting. */
.quiz-shell.history-layout .h-report{--rv-ink:#303e35;--rv-body:#596557;--rv-accent:#476552;--rv-paper:#fffaf0;--rv-hero:#ece3cb;--rv-soft:#f6f0e1;--rv-line:#cbbf9e;--rv-chip:#fffbee;--rv-shadow:0 7px 0 #cbbf9e}
.quiz-shell.mentalage-layout .ma-report{--rv-ink:#50365f;--rv-body:#685175;--rv-accent:#79518e;--rv-paper:#fffbff;--rv-hero:#ede2f6;--rv-soft:#f5eef9;--rv-line:#ceb9db;--rv-chip:#fffaff;--rv-shadow:0 7px 0 #ceb9db}
.quiz-shell.animal-layout .an-report{--rv-ink:#224734;--rv-body:#496650;--rv-accent:#286c49;--rv-paper:#f3fcf6;--rv-hero:#d8efde;--rv-soft:#e5f4e8;--rv-line:#abd0b5;--rv-chip:#fff1bd;--rv-shadow:0 7px 0 #abd0b5}
.quiz-shell.idealtype-layout .it-report{--rv-ink:#593448;--rv-body:#755265;--rv-accent:#984875;--rv-paper:#fffafd;--rv-hero:#f4dfec;--rv-soft:#f9edf4;--rv-line:#d7b4c8;--rv-chip:#fff5de;--rv-shadow:0 7px 0 #d7b4c8}
.quiz-shell.talent-layout .ta-report{--rv-ink:#153b5a;--rv-body:#426079;--rv-accent:#245d96;--rv-paper:#f7fcff;--rv-hero:#d9eafa;--rv-soft:#e9f3fc;--rv-line:#abc9df;--rv-chip:#effaff;--rv-shadow:0 7px 0 #abc9df}
.quiz-shell.desire-layout .de-report{--rv-ink:#623e30;--rv-body:#775746;--rv-accent:#985438;--rv-paper:#fffaf2;--rv-hero:#f2e0c9;--rv-soft:#fbefdf;--rv-line:#d7bda0;--rv-chip:#fff8e8;--rv-shadow:0 7px 0 #d7bda0}
.quiz-shell.shadow-layout .sh-report{--rv-ink:#4a344c;--rv-body:#6a536b;--rv-accent:#794d7e;--rv-paper:#fcf8ff;--rv-hero:#e8dceb;--rv-soft:#f1e9f6;--rv-line:#c5afcf;--rv-chip:#fff5e4;--rv-shadow:0 7px 0 #c5afcf}
.quiz-shell.scl90-layout .sc-report{--rv-ink:#304a50;--rv-body:#4d656a;--rv-accent:#3d6d74;--rv-paper:#fbfefe;--rv-hero:#e1eeee;--rv-soft:#edf5f4;--rv-line:#bad0d0;--rv-chip:#f8fcfc;--rv-shadow:0 7px 0 #bad0d0}

/* User-selected tints are distinct, without erasing each report's composition. */
.quiz-shell.ink:is(.history-layout,.mentalage-layout,.idealtype-layout,.talent-layout,.desire-layout,.shadow-layout,.scl90-layout) :is(.h-report,.ma-report,.it-report,.ta-report,.de-report,.sh-report,.sc-report){--rv-ink:#234635;--rv-body:#49644f;--rv-accent:#356e4b;--rv-paper:#fbfff8;--rv-hero:#e0ead8;--rv-soft:#edf5e8;--rv-line:#bed0b4;--rv-chip:#fffbeb;--rv-shadow:0 7px 0 #bed0b4}
.quiz-shell.rose:is(.history-layout,.mentalage-layout,.idealtype-layout,.talent-layout,.desire-layout,.shadow-layout,.scl90-layout) :is(.h-report,.ma-report,.it-report,.ta-report,.de-report,.sh-report,.sc-report){--rv-ink:#62384d;--rv-body:#785268;--rv-accent:#984b70;--rv-paper:#fffafb;--rv-hero:#f1e0e8;--rv-soft:#faf0f5;--rv-line:#d4b7c7;--rv-chip:#fff9ee;--rv-shadow:0 7px 0 #d4b7c7}
.quiz-shell.noir:is(.history-layout,.mentalage-layout,.idealtype-layout,.talent-layout,.desire-layout,.shadow-layout,.scl90-layout) :is(.h-report,.ma-report,.it-report,.ta-report,.de-report,.sh-report,.sc-report){--rv-ink:#f7f2e9;--rv-body:#d6ccc1;--rv-accent:#e4c59b;--rv-paper:#2e2d35;--rv-hero:#42404b;--rv-soft:#3a3743;--rv-line:#6f6473;--rv-chip:#332e3c;--rv-shadow:0 7px 0 #6f6473}
.quiz-shell.animal-layout.rose .an-report{--rv-ink:#5b3548;--rv-body:#755264;--rv-accent:#93476b;--rv-paper:#fffaf1;--rv-soft:#faecdf;--rv-line:#dfc4b3;--rv-chip:#fff0bb}
.quiz-shell.animal-layout.noir .an-report{--rv-ink:#f2f8e9;--rv-body:#cbdcbe;--rv-accent:#a9d6a5;--rv-paper:#253c31;--rv-soft:#304b3a;--rv-line:#68816a;--rv-chip:#3d4930;--rv-shadow:0 7px 0 #68816a}

/* Forest cover, mint chart and yellow accents keep animal results lively. */
.quiz-shell.animal-layout .an-result-hero{--rv-ink:#f7fff2;--rv-body:#e0f0d6;--rv-accent:#f6cf78;--rv-hero:#1e5947;--rv-line:#518571;--rv-chip:#2b6750;background:var(--rv-hero);box-shadow:0 7px 0 #c4d59d}
.quiz-shell.animal-layout.ink .an-result-hero{--rv-hero:#294b35;--rv-line:#68896a;box-shadow:0 7px 0 #b9cc9d}
.quiz-shell.animal-layout.rose .an-result-hero{--rv-hero:#6c3e52;--rv-line:#a7707f;box-shadow:0 7px 0 #e2b79a}
.quiz-shell.animal-layout.noir .an-result-hero{--rv-hero:#193d31;--rv-line:#6f9270;box-shadow:0 7px 0 #627650}
.quiz-shell.animal-layout .an-result-hero:after{content:"";display:block;width:48px;height:8px;margin:22px auto 0;background:#f6cf78;border-radius:4px;transform:rotate(-7deg)}
.quiz-shell.animal-layout .an-match{display:inline-flex;align-items:center;gap:14px;padding:9px 17px;background:#153f33;border:1px solid #7aaa79;border-radius:14px;color:#f7fff2}
.quiz-shell.animal-layout .an-match b{color:#f6cf78}
.quiz-shell.animal-layout .an-profile-card{border-top:5px solid var(--rv-accent)}
.quiz-shell.animal-layout .an-profile-caption{padding-bottom:13px;border-bottom:1px solid var(--rv-line)}
.quiz-shell.animal-layout .an-score-row:nth-child(2n)>i>b{background:#b8852e}

/* Clear blue talent card, with light charts for comparing ten dimensions. */
.quiz-shell.talent-layout:not(.noir) .ta-result-hero{--rv-ink:#f8fdff;--rv-body:#dfeefc;--rv-accent:#a8dcf8;--rv-hero:#1f4e80;--rv-line:#5a85ac;--rv-chip:#24456c;background:var(--rv-hero)}
.quiz-shell.talent-layout.ink .ta-result-hero{--rv-hero:#245944;--rv-line:#698d77;--rv-chip:#1e4433;--rv-accent:#d1e8ad;--rv-body:#e7f1d9}
.quiz-shell.talent-layout.rose .ta-result-hero{--rv-hero:#743a59;--rv-line:#a5738d;--rv-chip:#633248;--rv-accent:#ffcee1;--rv-body:#f8e6ee}
.quiz-shell.talent-layout .ta-overall{border-color:var(--rv-line)}
.quiz-shell.talent-layout .ta-profile-card{border-top:5px solid var(--rv-accent)}
.quiz-shell.mentalage-layout .ma-result-hero{border-radius:31px 31px 23px 23px}
.quiz-shell.mentalage-layout .ma-tags>span{font-size:13px;padding:8px 12px;border-radius:20px}
.quiz-shell.history-layout .h-result-hero{border-radius:4px 4px 24px 24px;border-top:5px double var(--rv-accent)}
.quiz-shell.history-layout .h-result-name{font-family:Georgia,"Songti SC","STSong","SimSun",serif;letter-spacing:2px}
.quiz-shell.history-layout .h-data-card{border-radius:13px}
.quiz-shell.scl90-layout .sc-report-head{box-shadow:none;border-left:5px solid var(--rv-accent)}
.quiz-shell.scl90-layout .sc-profile-card{box-shadow:none;border-radius:17px}

/* Generic original engines are identified by metadata, never guessed by name. */
.quiz-shell:is([data-quiz-engine="danger"],.danger) .quiz-container:has(>.quiz-report-head){--rv-ink:#522e39;--rv-body:#76525b;--rv-accent:#973653;--rv-paper:#fffaf1;--rv-hero:#f2dfcf;--rv-soft:#faede0;--rv-line:#d8b7a1;--rv-chip:#fff8e8;--rv-shadow:0 7px 0 #d8b7a1}
.quiz-shell:is([data-quiz-engine="danger"],.danger) .quiz-report-head{--rv-ink:#fff5e8;--rv-body:#f3d9ca;--rv-accent:#edc087;--rv-line:#a9656d;background:#713349;border-color:#a9656d;box-shadow:0 7px 0 #d6a785}
.quiz-shell[data-quiz-engine="danger"].ink .quiz-report-head{background:#315448;--rv-line:#6b9180;border-color:var(--rv-line);box-shadow:0 7px 0 #b7bc90}
.quiz-shell[data-quiz-engine="danger"].noir .quiz-container:has(>.quiz-report-head){--rv-ink:#fae8ed;--rv-body:#dcc2cd;--rv-accent:#eea0b9;--rv-paper:#33232f;--rv-soft:#49313f;--rv-line:#79596a;--rv-chip:#3c2937}
.quiz-shell[data-quiz-engine="danger"].noir .quiz-report-head{background:#4d263e;border-color:#92617b;box-shadow:0 7px 0 #634253}
.quiz-shell:is([data-quiz-engine="danger"],.danger) .report-section:has(>.quiz-radar){border-top:5px solid var(--rv-accent)}
.quiz-shell:is([data-quiz-engine="danger"],.danger) .quiz-radar{width:100%;max-width:450px;padding:9px 0}

/* Seven sins and virtues retain their violet / rose duality. */
.quiz-shell:is([data-quiz-engine="qzz"],.qzz) .quiz-container:has(>.quiz-report-head){--rv-ink:#faefff;--rv-body:#dac8e7;--rv-accent:#ee86bd;--rv-paper:#302337;--rv-hero:#2b183d;--rv-soft:#493150;--rv-line:#805a86;--rv-chip:#432e50;--rv-shadow:0 7px 0 #805a86}
.quiz-shell:is([data-quiz-engine="qzz"],.qzz) .quiz-report-head{background:linear-gradient(125deg,#281735,#512440);border-color:#986084;box-shadow:0 7px 0 #664061}
.quiz-shell:is([data-quiz-engine="qzz"],.qzz) .quiz-report-head h1{color:#fff1fb}
.quiz-shell:is([data-quiz-engine="qzz"],.qzz) .qzz-dual>div:first-child{border-top:4px solid #ee86bd}
.quiz-shell:is([data-quiz-engine="qzz"],.qzz) .qzz-dual>div:last-child{border-top:4px solid #8cdbc1}
.quiz-shell:is([data-quiz-engine="qzz"],.qzz) .qzz-dual>div:first-child strong{color:#ee86bd}
.quiz-shell:is([data-quiz-engine="qzz"],.qzz) .qzz-dual>div:last-child strong{color:#8cdbc1}
.quiz-shell:is([data-quiz-engine="qzz"],.qzz) .report-section:has(>.quiz-radar){background:linear-gradient(145deg,var(--rv-paper),var(--rv-soft));border-top:4px solid var(--rv-accent)}
.quiz-shell:is([data-quiz-engine="qzz"],.qzz) .quiz-radar{width:100%;max-width:460px;margin:15px auto 20px}
.quiz-shell:is([data-quiz-engine="qzz"],.qzz) .quiz-score-row:nth-of-type(n+8) i>b{background:#8cdbc1}
.quiz-shell[data-quiz-engine="qzz"]:is(.paper,.ink,.rose) .quiz-container:has(>.quiz-report-head){--rv-ink:#503653;--rv-body:#705575;--rv-accent:#a34877;--rv-paper:#fff9ff;--rv-soft:#f3e6f3;--rv-line:#d3b5d2;--rv-chip:#fff6fd}
.quiz-shell[data-quiz-engine="qzz"]:is(.paper,.ink,.rose) .quiz-report-head{--rv-ink:#faefff;--rv-body:#e3cce9;--rv-accent:#f2a7d1}
.quiz-shell[data-quiz-engine="qzz"].ink .quiz-container:has(>.quiz-report-head){--rv-paper:#f7fcf5;--rv-soft:#e6f1e4;--rv-line:#bfceba;--rv-ink:#334b38;--rv-body:#506c54;--rv-accent:#3c7755}
.quiz-shell[data-quiz-engine="qzz"].rose .quiz-container:has(>.quiz-report-head){--rv-paper:#fff9fa;--rv-soft:#f9e6ee;--rv-line:#dcbbca;--rv-ink:#63374c;--rv-body:#7a5265;--rv-accent:#a6466e}
.quiz-shell[data-quiz-engine="qzz"]:is(.paper,.ink,.rose) .qzz-dual>div:first-child strong{color:#a13c73}
.quiz-shell[data-quiz-engine="qzz"]:is(.paper,.ink,.rose) .qzz-dual>div:last-child strong{color:#2d7158}
.quiz-shell[data-quiz-engine="qzz"]:is(.paper,.ink,.rose) .quiz-score-row:nth-of-type(n+8) i>b{background:#398564}
@media(max-width:520px){
 .quiz-shell :is(.ma-tags,.it-keywords,.ta-traits,.sh-keywords)>span{font-size:12px;padding:7px 10px}
 .quiz-shell.animal-layout .an-match{gap:11px;padding:8px 13px}
 .quiz-shell.animal-layout .an-result-hero:after{margin-top:18px}
 .quiz-shell:is([data-quiz-engine="qzz"],.qzz) .quiz-radar{margin-top:10px;margin-bottom:17px}
}
/* The two qzz polygons follow the same violet / rose legend as their scores. */
.quiz-shell:is([data-quiz-engine="qzz"],.qzz) .quiz-container:has(>.quiz-report-head){--qaccent:#c5a7f2;--radar-secondary:#ee86bd}
.quiz-shell:is([data-quiz-engine="qzz"],.qzz) .qzz-dual>div:first-child{border-top-color:var(--qaccent)}
.quiz-shell:is([data-quiz-engine="qzz"],.qzz) .qzz-dual>div:last-child{border-top-color:var(--radar-secondary)}
.quiz-shell:is([data-quiz-engine="qzz"],.qzz) .qzz-dual>div:first-child strong{color:var(--qaccent)}
.quiz-shell:is([data-quiz-engine="qzz"],.qzz) .qzz-dual>div:last-child strong{color:var(--radar-secondary)}
.quiz-shell:is([data-quiz-engine="qzz"],.qzz) .quiz-score-row:nth-of-type(n+8) i>b{background:var(--radar-secondary)}
.quiz-shell[data-quiz-engine="qzz"]:is(.paper,.ink,.rose) .quiz-container:has(>.quiz-report-head){--qaccent:#78509b;--radar-secondary:#af4275}
.quiz-shell[data-quiz-engine="qzz"]:is(.paper,.ink,.rose) .qzz-dual>div:first-child strong{color:var(--qaccent)}
.quiz-shell[data-quiz-engine="qzz"]:is(.paper,.ink,.rose) .qzz-dual>div:last-child strong{color:var(--radar-secondary)}
.quiz-shell[data-quiz-engine="qzz"]:is(.paper,.ink,.rose) .quiz-score-row:nth-of-type(n+8) i>b{background:var(--radar-secondary)}
.quiz-shell.animal-layout .an-result-hero{--an-ink:var(--rv-ink);--an-body:var(--rv-body);--an-muted:var(--rv-body);--an-accent:var(--rv-accent)}
.quiz-shell.talent-layout .ta-result-hero{--ta-ink:var(--rv-ink);--ta-body:var(--rv-body);--ta-muted:var(--rv-body);--ta-accent:var(--rv-accent)}
.quiz-shell .report-spectrum .quiz-radar{width:100%;max-width:480px;margin-left:auto;margin-right:auto}
.quiz-shell .report-spectrum{position:relative;padding-top:28px;padding-bottom:28px}
.quiz-shell .report-spectrum>h2{padding-bottom:15px;border-bottom:1px solid var(--rv-line)}
@media(max-width:520px){.quiz-shell .report-spectrum{padding-top:22px;padding-bottom:22px}.quiz-shell .report-spectrum>h2{padding-bottom:12px}}
