:root {
    --ink: #171717;
    --muted: #666158;
    --paper: #fbfaf6;
    --surface: #ffffff;
    --line: #dfdbd1;
    --yellow: #f9c61c;
    --yellow-dark: #d9a600;
    --red: #b94431;
    --soft-yellow: #fff7d6;
    --soft-blue: #eef4fb;
    --soft-red: #fff0ed;
    --shadow: 0 18px 60px rgba(27, 23, 16, 0.09);
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 10px;
    --container: 1160px;
    --narrow: 850px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 17px;
    line-height: 1.65;
    text-rendering: optimizeLegibility;
}

button,
input {
    font: inherit;
}

button {
    cursor: pointer;
}

a {
    color: inherit;
}

.is-hidden {
    display: none !important;
}

.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.container {
    width: min(calc(100% - 40px), var(--container));
    margin-inline: auto;
}

.container.narrow {
    width: min(calc(100% - 40px), var(--narrow));
}

.skip-link {
    position: fixed;
    z-index: 100;
    top: -100px;
    left: 12px;
    padding: 10px 16px;
    border-radius: 8px;
    background: var(--yellow);
    color: var(--ink);
    font-weight: 800;
}

.skip-link:focus {
    top: 12px;
}

.site-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    background: var(--ink);
    color: #fff;
}

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

.brand {
    display: inline-flex;
    align-items: center;
    gap: 13px;
    color: #fff;
    text-decoration: none;
    line-height: 1.2;
}

.brand-mark {
    display: grid;
    width: 45px;
    height: 45px;
    border-radius: 12px;
    background: var(--yellow);
    color: var(--ink);
    font-size: 15px;
    font-weight: 900;
    letter-spacing: -0.4px;
    place-items: center;
}

.brand strong,
.brand small {
    display: block;
}

.brand strong {
    font-size: 17px;
    letter-spacing: 0.02em;
}

.brand small {
    margin-top: 3px;
    color: rgba(255, 255, 255, 0.68);
    font-size: 12px;
    font-weight: 600;
}

.header-badge {
    padding: 7px 12px;
    border: 1px solid rgba(249, 198, 28, 0.38);
    border-radius: 999px;
    color: #fce89d;
    font-size: 13px;
    font-weight: 700;
}

.hero {
    position: relative;
    overflow: hidden;
    padding: 76px 0 84px;
    background:
        radial-gradient(circle at 86% 12%, rgba(249, 198, 28, 0.2), transparent 28%),
        var(--ink);
    color: #fff;
}

.hero::after {
    position: absolute;
    right: -100px;
    bottom: -190px;
    width: 460px;
    height: 460px;
    border: 70px solid rgba(249, 198, 28, 0.06);
    border-radius: 50%;
    content: "";
}

.hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(300px, 0.75fr);
    gap: 64px;
    align-items: end;
}

.eyebrow,
.section-kicker {
    margin: 0 0 10px;
    color: #9a7100;
    font-size: 13px;
    font-weight: 850;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.hero .eyebrow {
    color: var(--yellow);
}

h1,
h2,
h3,
p {
    overflow-wrap: break-word;
}

h1 {
    max-width: 780px;
    margin: 0;
    font-size: clamp(42px, 6.4vw, 78px);
    line-height: 0.98;
    letter-spacing: -0.055em;
}

h2 {
    margin: 0 0 20px;
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

h3 {
    margin: 0 0 10px;
    font-size: 24px;
    line-height: 1.2;
    letter-spacing: -0.025em;
}

p {
    margin-top: 0;
}

.hero-lead {
    max-width: 720px;
    margin: 26px 0 30px;
    color: rgba(255, 255, 255, 0.78);
    font-size: clamp(20px, 2.4vw, 26px);
    line-height: 1.45;
}

.test-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.test-facts span {
    padding: 8px 13px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.86);
    font-size: 14px;
    font-weight: 750;
}

.hero-note {
    padding: 26px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(8px);
}

.hero-note strong {
    display: block;
    margin-bottom: 8px;
    color: var(--yellow);
    font-size: 16px;
}

.hero-note p {
    margin: 0;
    color: rgba(255, 255, 255, 0.77);
    font-size: 15px;
    line-height: 1.6;
}

.section {
    padding: 80px 0;
}

.panel {
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow);
}

.intro-panel {
    padding: clamp(28px, 5vw, 58px);
}

.intro-panel > p:not(.section-kicker) {
    max-width: 730px;
    color: var(--muted);
    font-size: 19px;
}

.resume-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    margin: 0 0 24px;
    padding: 22px;
    border: 1px solid #d3b552;
    border-radius: var(--radius-md);
    background: var(--soft-yellow);
}

.resume-panel h3 {
    margin-bottom: 6px;
    font-size: 21px;
}

.resume-panel p:last-child {
    margin: 0;
    color: #5f552d;
    font-size: 14px;
}

.resume-actions {
    display: flex;
    flex: 0 0 auto;
    flex-direction: column;
    gap: 8px;
}

.check-list {
    display: grid;
    gap: 12px;
    margin: 30px 0;
    padding: 0;
    list-style: none;
}

.check-list li {
    position: relative;
    padding-left: 32px;
}

.check-list li::before {
    position: absolute;
    top: 3px;
    left: 0;
    display: grid;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--yellow);
    color: var(--ink);
    content: "✓";
    font-size: 14px;
    font-weight: 900;
    line-height: 1;
    place-items: center;
}

.notice {
    margin: 30px 0;
    padding: 20px 22px;
    border-left: 5px solid var(--yellow);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    background: var(--soft-yellow);
    color: #504823;
}

.notice strong {
    color: var(--ink);
}

.button {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    padding: 11px 20px;
    border: 2px solid transparent;
    border-radius: 11px;
    font-weight: 820;
    line-height: 1.2;
    text-align: center;
    transition:
        transform 0.15s ease,
        background 0.15s ease,
        border-color 0.15s ease;
}

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

.button:focus-visible,
input:focus-visible + .answer-content,
summary:focus-visible,
a:focus-visible {
    outline: 3px solid rgba(185, 68, 49, 0.45);
    outline-offset: 3px;
}

.button-primary {
    background: var(--yellow);
    color: var(--ink);
}

.button-primary:hover {
    background: #ffd13e;
}

.button-secondary {
    border-color: var(--line);
    background: var(--surface);
    color: var(--ink);
}

.button-secondary:hover {
    border-color: #b8b0a2;
    background: #f5f2eb;
}

.button-dark {
    background: var(--ink);
    color: #fff;
}

.button-large {
    min-height: 58px;
    padding-inline: 28px;
    font-size: 18px;
}

.test-section {
    min-height: calc(100vh - 72px);
    background:
        linear-gradient(rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.7)),
        var(--paper);
}

.test-container {
    width: min(calc(100% - 40px), 940px);
}

.test-topbar {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 22px;
}

.test-topbar h2 {
    margin-bottom: 0;
    font-size: clamp(28px, 4vw, 40px);
}

.progress-copy {
    flex: 0 0 auto;
    color: var(--muted);
    font-size: 14px;
    text-align: right;
}

.progress-copy span,
.progress-copy strong {
    display: block;
}

.progress-copy strong {
    color: var(--ink);
}

.progress-track {
    height: 10px;
    margin-bottom: 34px;
    overflow: hidden;
    border-radius: 999px;
    background: #e7e2d8;
}

.progress-track span {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: var(--yellow);
    transition: width 0.3s ease;
}

.context-intro {
    margin-bottom: 22px;
    padding: 20px 24px;
    border: 1px solid #d6e2ef;
    border-radius: var(--radius-md);
    background: var(--soft-blue);
    color: #354b64;
}

.context-intro strong {
    display: block;
    margin-bottom: 5px;
    color: #1c3249;
}

.question-card {
    margin-bottom: 18px;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--surface);
    box-shadow: 0 8px 28px rgba(27, 23, 16, 0.05);
}

.question-card.has-error {
    border-color: var(--red);
    box-shadow: 0 0 0 3px rgba(185, 68, 49, 0.12);
}

.question-title {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin: 0 0 20px;
    font-size: 19px;
    font-weight: 760;
    line-height: 1.45;
}

.question-number {
    display: grid;
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--ink);
    color: #fff;
    font-size: 13px;
    line-height: 1;
    place-items: center;
}

.answer-options {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 9px;
}

.answer-option {
    position: relative;
    display: block;
}

.answer-option input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.answer-content {
    display: flex;
    min-height: 78px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 7px;
    border: 2px solid #e3dfd6;
    border-radius: 10px;
    background: #fbfaf7;
    color: var(--muted);
    text-align: center;
    transition:
        border-color 0.15s ease,
        background 0.15s ease,
        color 0.15s ease;
}

.answer-content strong {
    color: var(--ink);
    font-size: 17px;
}

.answer-content small {
    margin-top: 2px;
    font-size: 11px;
    font-weight: 680;
    line-height: 1.25;
}

.answer-option:hover .answer-content {
    border-color: #bdb7aa;
}

.answer-option input:checked + .answer-content {
    border-color: var(--yellow-dark);
    background: var(--soft-yellow);
    color: #4d431b;
    box-shadow: 0 0 0 2px rgba(249, 198, 28, 0.16);
}

.form-message {
    min-height: 28px;
    margin: 18px 0 4px;
    color: var(--red);
    font-size: 14px;
    font-weight: 740;
}

.form-actions {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    margin-top: 12px;
}

.form-actions .button-primary {
    margin-left: auto;
}

.results-section {
    background: #f1eee7;
}

.results-header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 28px;
}

.results-header h2 {
    margin-bottom: 0;
}

.result-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.result-data-note {
    margin: -14px 0 22px;
    color: var(--muted);
    font-size: 12px;
    text-align: right;
}

.share-status {
    margin: -12px 0 18px;
    color: var(--muted);
    font-size: 13px;
    text-align: right;
}

.share-status:empty {
    display: none;
}

.result-navigation {
    position: sticky;
    z-index: 12;
    top: 12px;
    display: flex;
    gap: 8px;
    margin: 0 0 20px;
    padding: 9px;
    overflow-x: auto;
    border: 1px solid rgba(205, 198, 185, 0.92);
    border-radius: 14px;
    background: rgba(251, 250, 246, 0.95);
    box-shadow: 0 8px 30px rgba(23, 23, 23, 0.08);
    backdrop-filter: blur(12px);
    scrollbar-width: thin;
}

.result-navigation a {
    flex: 0 0 auto;
    padding: 8px 12px;
    border-radius: 9px;
    color: #504a41;
    font-size: 13px;
    font-weight: 780;
    text-decoration: none;
    white-space: nowrap;
}

.result-navigation a:hover {
    background: #eee9df;
    color: var(--ink);
}

.result-anchor {
    scroll-margin-top: 94px;
}

.result-anchor:focus {
    outline: none;
}

.result-anchor:focus-visible {
    box-shadow: 0 0 0 4px rgba(185, 68, 49, 0.32);
}

.result-overview {
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    gap: 20px;
}

.score-card,
.profile-card,
.state-notice {
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow);
}

.score-card {
    display: flex;
    gap: 26px;
    align-items: center;
    padding: 30px;
}

.score-card p:last-child,
.profile-card p:last-child,
.state-notice p:last-child {
    margin-bottom: 0;
    color: var(--muted);
}

.score-ring {
    --score-angle: 0deg;
    position: relative;
    display: grid;
    flex: 0 0 132px;
    width: 132px;
    height: 132px;
    border-radius: 50%;
    background: conic-gradient(var(--yellow) var(--score-angle), #ece7dc 0);
    text-align: center;
    place-content: center;
}

.score-ring::before {
    position: absolute;
    inset: 10px;
    border-radius: 50%;
    background: var(--surface);
    content: "";
}

.score-ring span,
.score-ring small {
    position: relative;
    z-index: 1;
}

.score-ring span {
    font-size: 40px;
    font-weight: 900;
    line-height: 0.95;
    letter-spacing: -0.05em;
}

.score-ring small {
    color: var(--muted);
    font-size: 12px;
    font-weight: 750;
}

.result-label {
    margin: 0 0 4px;
    color: #837d72;
    font-size: 12px;
    font-weight: 850;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.profile-card {
    padding: 30px;
    border-top: 7px solid var(--yellow);
}

.state-notice {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px 24px;
    align-items: center;
    margin-top: 20px;
    padding: 24px 28px;
    border: 1px solid #d9e3ee;
    background: var(--soft-blue);
    box-shadow: none;
}

.state-notice.is-notice {
    border-color: #ead48c;
    background: var(--soft-yellow);
}

.state-notice.is-high {
    border-color: #e9b8ae;
    background: var(--soft-red);
}

.state-notice h3 {
    margin-bottom: 0;
    font-size: 20px;
}

.state-notice p {
    grid-column: 1 / -1;
}

.state-score {
    font-size: 13px;
    font-weight: 800;
}

.state-score span {
    font-size: 28px;
}

.takeaway-panel {
    margin-top: 20px;
    padding: 28px;
    border-top: 7px solid var(--yellow);
    box-shadow: none;
}

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

.takeaway-grid section {
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: #faf8f3;
}

.takeaway-grid h4 {
    margin: 0 0 14px;
    font-size: 16px;
}

.takeaway-grid ul,
.takeaway-grid ol {
    display: grid;
    gap: 13px;
    margin: 0;
    padding-left: 20px;
}

.takeaway-grid li {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
}

.takeaway-grid li::marker {
    color: #9b7400;
    font-weight: 850;
}

.takeaway-grid strong,
.takeaway-grid span {
    display: block;
}

.takeaway-grid strong {
    margin-bottom: 3px;
    color: var(--ink);
    font-size: 13px;
}

.matrix-panel {
    margin-top: 20px;
    padding: 28px;
    box-shadow: none;
}

.matrix-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
    gap: 38px;
    align-items: center;
}

.sensitivity-matrix {
    position: relative;
    min-height: 340px;
    margin: 12px 30px 34px 46px;
    border-bottom: 2px solid #5a554d;
    border-left: 2px solid #5a554d;
    background:
        linear-gradient(
            to right,
            transparent calc(60% - 1px),
            rgba(23, 23, 23, 0.25) calc(60% - 1px),
            rgba(23, 23, 23, 0.25) calc(60% + 1px),
            transparent calc(60% + 1px)
        ),
        linear-gradient(
            to top,
            transparent calc(60% - 1px),
            rgba(23, 23, 23, 0.25) calc(60% - 1px),
            rgba(23, 23, 23, 0.25) calc(60% + 1px),
            transparent calc(60% + 1px)
        ),
        linear-gradient(135deg, rgba(249, 198, 28, 0.08), rgba(72, 108, 156, 0.08));
}

.matrix-quadrant {
    position: absolute;
    max-width: 34%;
    color: rgba(23, 23, 23, 0.5);
    font-size: 11px;
    font-weight: 750;
    line-height: 1.35;
}

.matrix-q1 {
    top: 14px;
    left: 14px;
}

.matrix-q2 {
    top: 14px;
    right: 14px;
    text-align: right;
}

.matrix-q3 {
    bottom: 14px;
    left: 14px;
}

.matrix-q4 {
    right: 14px;
    bottom: 14px;
    text-align: right;
}

.matrix-dot {
    position: absolute;
    z-index: 2;
    width: 24px;
    height: 24px;
    border: 5px solid #fff;
    border-radius: 50%;
    background: var(--red);
    box-shadow: 0 3px 12px rgba(23, 23, 23, 0.32);
    transform: translate(-50%, 50%);
}

.matrix-axis {
    position: absolute;
    color: #625d54;
    font-size: 12px;
    font-weight: 800;
}

.matrix-axis-x {
    right: 0;
    bottom: -31px;
}

.matrix-axis-y {
    top: 0;
    left: -38px;
    transform: rotate(-90deg) translateX(-100%);
    transform-origin: top left;
}

.matrix-copy p {
    color: var(--muted);
}

.axis-values {
    display: grid;
    gap: 9px;
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}

.axis-values span {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    color: var(--muted);
    font-size: 14px;
}

.axis-values strong {
    color: var(--ink);
}

.chart-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 20px;
    margin-top: 20px;
}

.chart-panel,
.bars-panel,
.interpretation-panel {
    padding: 28px;
}

.panel-heading {
    margin-bottom: 18px;
}

.panel-heading h3 {
    margin: 0;
}

.radar-chart {
    min-height: 390px;
}

.radar-chart svg {
    display: block;
    width: 100%;
    height: auto;
    margin: auto;
}

.radar-grid {
    fill: none;
    stroke: #dcd7cb;
    stroke-width: 1;
}

.radar-axis {
    stroke: #ded9ce;
    stroke-width: 1;
}

.radar-area {
    fill: rgba(249, 198, 28, 0.28);
    stroke: #b78a00;
    stroke-width: 3;
}

.radar-point {
    fill: var(--ink);
}

.radar-label {
    fill: #4e4a43;
    font-size: 11px;
    font-weight: 750;
}

.dimension-bar + .dimension-bar {
    margin-top: 19px;
}

.bar-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 7px;
}

.bar-heading strong {
    font-size: 15px;
}

.bar-heading span {
    font-size: 14px;
    font-weight: 850;
}

.bar-track {
    height: 12px;
    overflow: hidden;
    border-radius: 999px;
    background: #ebe7de;
}

.bar-fill {
    display: block;
    height: 100%;
    border-radius: inherit;
    transition: width 0.7s ease;
}

.interpretation-panel {
    margin-top: 20px;
    box-shadow: none;
}

.key-findings {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-top: 22px;
}

.finding {
    padding: 18px;
    border-radius: var(--radius-sm);
    background: #f6f3ec;
}

.finding strong {
    display: block;
    margin-bottom: 5px;
    font-size: 15px;
}

.finding p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.55;
}

.workplace-panel,
.action-panel,
.recommendation-panel,
.comparison-panel {
    margin-top: 20px;
    padding: 28px;
    box-shadow: none;
}

.workplace-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.workplace-card {
    position: relative;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: #faf8f3;
}

.workplace-number {
    display: grid;
    width: 30px;
    height: 30px;
    margin-bottom: 16px;
    border-radius: 50%;
    background: var(--ink);
    color: #fff;
    font-size: 13px;
    font-weight: 850;
    place-items: center;
}

.workplace-card h4 {
    margin: 0 0 8px;
    font-size: 19px;
}

.workplace-card p {
    margin-bottom: 18px;
    color: var(--muted);
    font-size: 14px;
}

.workplace-action {
    padding-top: 14px;
    border-top: 1px solid #e5dfd3;
    font-size: 14px;
}

.workplace-action strong,
.workplace-action span {
    display: block;
}

.workplace-action span {
    margin-top: 3px;
    color: var(--muted);
}

.panel-intro {
    max-width: 760px;
    margin: -4px 0 22px;
    color: var(--muted);
}

.action-plan {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.action-item {
    display: grid;
    grid-template-columns: 24px 1fr;
    gap: 12px;
    align-items: flex-start;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: #faf8f3;
    color: var(--muted);
    cursor: pointer;
    font-size: 14px;
    line-height: 1.5;
}

.action-item input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.action-check {
    display: grid;
    width: 24px;
    height: 24px;
    margin-top: 1px;
    border: 2px solid #aca598;
    border-radius: 6px;
    background: #fff;
    place-items: center;
}

.action-item input:focus-visible + .action-check {
    outline: 3px solid rgba(185, 68, 49, 0.35);
    outline-offset: 2px;
}

.action-item input:checked + .action-check {
    border-color: var(--yellow-dark);
    background: var(--yellow);
}

.action-item input:checked + .action-check::after {
    color: var(--ink);
    content: "✓";
    font-weight: 900;
}

.action-item input:checked ~ span:last-child {
    color: #777166;
    text-decoration: line-through;
}

.action-item strong {
    display: block;
    margin-bottom: 3px;
    color: var(--ink);
    font-size: 12px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.primary-recommendation {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    padding: 26px;
    border-radius: var(--radius-md);
    background: var(--ink);
    color: #fff;
}

.primary-recommendation h4 {
    margin: 0 0 7px;
    font-size: 24px;
    line-height: 1.2;
}

.primary-recommendation p:last-child {
    max-width: 760px;
    margin: 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.primary-recommendation .result-label {
    color: var(--yellow);
}

.primary-recommendation .button {
    flex: 0 0 auto;
    text-decoration: none;
}

.secondary-recommendations {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 10px;
}

.secondary-recommendations a {
    display: block;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: #faf8f3;
    text-decoration: none;
}

.secondary-recommendations a:hover {
    border-color: #aaa294;
    background: #f4f0e8;
}

.secondary-recommendations strong,
.secondary-recommendations span {
    display: block;
}

.secondary-recommendations strong {
    margin-bottom: 5px;
    font-size: 15px;
}

.secondary-recommendations span {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
}

.comparison-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
}

.comparison-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.history-meta {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 17px;
    color: var(--muted);
    font-size: 12px;
}

.history-meta span:first-child {
    color: var(--ink);
    font-weight: 820;
}

.history-chart {
    margin-top: 16px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: #faf8f3;
}

.history-chart svg {
    display: block;
    width: 100%;
    height: auto;
}

.history-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 22px;
    margin-bottom: 4px;
    color: var(--muted);
    font-size: 12px;
}

.history-legend span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.history-legend i {
    width: 22px;
    height: 4px;
    border-radius: 999px;
}

.legend-trait {
    background: #b68600;
}

.legend-load {
    background: #486c9c;
}

.history-grid-line {
    stroke: #e0dbd1;
    stroke-width: 1;
}

.history-y-label,
.history-x-label,
.history-current-label {
    fill: #756f65;
    font-size: 11px;
    font-weight: 650;
}

.history-current-label {
    fill: #7e5f00;
    font-size: 10px;
    font-weight: 850;
}

.history-overall-line,
.history-state-line {
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 4;
}

.history-overall-line {
    stroke: #b68600;
}

.history-state-line {
    stroke: #486c9c;
}

.history-overall-point {
    fill: #b68600;
    stroke: #fff;
    stroke-width: 2;
}

.history-state-point {
    fill: #486c9c;
    stroke: #fff;
    stroke-width: 2;
}

.history-current-point {
    stroke: var(--ink);
    stroke-width: 3;
}

.comparison-content {
    margin-top: 20px;
}

.comparison-empty {
    padding: 22px;
    border: 1px dashed #bcb4a6;
    border-radius: var(--radius-sm);
    background: #faf8f3;
    color: var(--muted);
}

.comparison-date {
    margin-bottom: 12px;
    color: var(--muted);
    font-size: 13px;
}

.comparison-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.comparison-summary > div {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 2px 14px;
    padding: 18px;
    border-radius: var(--radius-sm);
    background: #f4f1ea;
}

.comparison-summary span {
    color: var(--muted);
    font-size: 14px;
}

.comparison-summary strong {
    font-size: 21px;
}

.comparison-summary small {
    grid-column: 1 / -1;
    color: #857e73;
}

.comparison-dimensions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 18px;
    margin-top: 14px;
}

.comparison-dimension {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 9px 0;
    border-bottom: 1px solid #e5e0d6;
    font-size: 14px;
}

.comparison-dimension span {
    color: var(--muted);
}

.comparison-caution,
.storage-note {
    margin: 16px 0 0;
    color: var(--muted);
    font-size: 13px;
}

.storage-note {
    padding-top: 14px;
    border-top: 1px solid var(--line);
}

.back-to-summary {
    display: inline-flex;
    margin-top: 22px;
    color: #6b4f00;
    font-size: 13px;
    font-weight: 800;
    text-underline-offset: 4px;
}

.button:disabled {
    cursor: default;
    opacity: 0.58;
    transform: none;
}

.author-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 34px;
    margin-top: 20px;
    padding: 32px;
    border-radius: var(--radius-lg);
    background: var(--ink);
    color: #fff;
}

.author-cta-copy {
    max-width: 720px;
}

.author-cta h3 {
    margin-bottom: 10px;
}

.author-cta-copy > p:not(.section-kicker):not(.author-role) {
    margin-bottom: 12px;
    color: rgba(255, 255, 255, 0.72);
}

.author-role {
    margin: 0;
    color: var(--yellow);
    font-size: 13px;
    font-weight: 780;
}

.author-cta-actions {
    display: grid;
    flex: 0 0 290px;
    gap: 9px;
}

.author-cta-actions .button {
    text-decoration: none;
}

.author-cta-actions .button-secondary {
    border-color: rgba(255, 255, 255, 0.24);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.author-cta-actions .button-secondary:hover {
    border-color: rgba(255, 255, 255, 0.45);
    background: rgba(255, 255, 255, 0.14);
}

.dimension-results {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.dimension-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--surface);
}

.dimension-accent {
    height: 7px;
}

.dimension-body {
    padding: 26px;
}

.dimension-heading {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: flex-start;
}

.dimension-heading h3 {
    font-size: 21px;
}

.dimension-score {
    flex: 0 0 auto;
    font-size: 28px;
    font-weight: 900;
    line-height: 1;
}

.dimension-score small {
    color: var(--muted);
    font-size: 11px;
}

.dimension-description {
    color: var(--muted);
}

.dimension-facts {
    display: grid;
    gap: 12px;
    margin-top: 22px;
}

.dimension-fact {
    padding-top: 12px;
    border-top: 1px solid #ebe7de;
    font-size: 14px;
}

.dimension-fact strong {
    display: block;
    margin-bottom: 3px;
}

.dimension-fact span {
    color: var(--muted);
}

.quality-notice {
    margin-top: 20px;
    padding: 22px 24px;
    border: 1px solid #e4b2a7;
    border-radius: var(--radius-md);
    background: var(--soft-red);
    color: #6d3027;
}

.quality-notice strong {
    color: #512018;
}

.quality-notice p {
    margin: 4px 0 0;
}

.results-footer {
    margin-top: 26px;
}

.results-footer .notice {
    margin-bottom: 20px;
}

.science-section {
    background: var(--surface);
}

.science-section p:not(.section-kicker) {
    color: var(--muted);
}

.science-section strong {
    color: var(--ink);
}

.source-box {
    display: grid;
    gap: 4px;
    margin-top: 28px;
    padding: 20px 22px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: #f8f6f1;
}

.source-box a {
    color: #7d2f23;
    font-size: 14px;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.faq-section {
    border-top: 1px solid var(--line);
}

.faq-list {
    display: grid;
    gap: 12px;
    margin-top: 28px;
}

.faq-list details {
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface);
}

.faq-list summary {
    padding: 18px 54px 18px 20px;
    cursor: pointer;
    font-weight: 790;
}

.faq-list p {
    margin: 0;
    padding: 0 20px 20px;
    color: var(--muted);
}

.related-tests-section {
    padding: 36px 0 48px;
    border-top: 1px solid var(--line);
    background: #f1eee7;
}

.related-tests {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.related-tests a {
    padding: 9px 13px;
    border: 1px solid #cfc8bc;
    border-radius: 999px;
    background: var(--surface);
    font-size: 14px;
    font-weight: 750;
    text-decoration: none;
}

.related-tests a:hover {
    border-color: #9f978a;
}

.print-report {
    display: none;
}

.site-footer {
    padding: 36px 0;
    background: var(--ink);
    color: rgba(255, 255, 255, 0.72);
}

.footer-inner {
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: 30px;
}

.footer-inner strong {
    color: #fff;
}

.footer-inner nav {
    display: flex;
    flex-wrap: wrap;
    gap: 17px;
}

.footer-inner p {
    margin: 3px 0 0;
    font-size: 12px;
}

.footer-inner a {
    color: rgba(255, 255, 255, 0.88);
    font-size: 13px;
    text-underline-offset: 3px;
}

.noscript-message {
    position: fixed;
    right: 20px;
    bottom: 20px;
    left: 20px;
    z-index: 100;
    padding: 16px;
    border-radius: 10px;
    background: var(--red);
    color: #fff;
    text-align: center;
}

@media (max-width: 900px) {
    .hero-grid,
    .result-overview,
    .chart-grid,
    .matrix-layout {
        grid-template-columns: 1fr;
    }

    .hero-grid {
        gap: 36px;
    }

    .hero-note {
        max-width: 640px;
    }

    .key-findings {
        grid-template-columns: 1fr;
    }

    .takeaway-grid {
        grid-template-columns: 1fr;
    }

    .dimension-results {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    body {
        font-size: 16px;
    }

    .container,
    .container.narrow,
    .test-container {
        width: min(calc(100% - 24px), var(--container));
    }

    .header-inner {
        min-height: 62px;
    }

    .header-badge {
        display: none;
    }

    .hero {
        padding: 54px 0 60px;
    }

    .section {
        padding: 58px 0;
    }

    .test-topbar,
    .results-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        align-items: start;
        gap: 18px;
    }

    .progress-copy {
        text-align: left;
    }

    .question-card {
        padding: 22px 18px;
    }

    .question-title {
        font-size: 17px;
    }

    .answer-options {
        grid-template-columns: 1fr;
    }

    .answer-content {
        min-height: 48px;
        flex-direction: row;
        justify-content: flex-start;
        gap: 10px;
        padding: 9px 13px;
        text-align: left;
    }

    .answer-content strong {
        display: grid;
        width: 27px;
        height: 27px;
        border-radius: 50%;
        background: #ebe7de;
        font-size: 14px;
        place-items: center;
    }

    .answer-option input:checked + .answer-content strong {
        background: var(--yellow);
    }

    .answer-content small {
        margin: 0;
        font-size: 13px;
    }

    .score-card {
        align-items: flex-start;
        flex-direction: column;
    }

    .score-ring {
        width: 118px;
        height: 118px;
        flex-basis: 118px;
    }

    .state-notice {
        grid-template-columns: 1fr;
    }

    .state-notice p,
    .state-score {
        grid-column: 1;
    }

    .radar-chart {
        min-height: 300px;
    }

    .form-actions {
        flex-wrap: wrap;
    }

    .form-actions .button {
        flex: 1 1 120px;
    }

    .result-actions {
        width: 100%;
    }

    .result-actions .button {
        flex: 1;
    }

    .result-data-note {
        margin-top: -12px;
        text-align: left;
    }

    .share-status {
        margin-top: -10px;
        text-align: left;
    }

    .resume-panel {
        align-items: stretch;
        flex-direction: column;
    }

    .resume-actions {
        width: 100%;
    }

    .result-navigation {
        top: 8px;
        margin-inline: -2px;
        padding: 7px;
    }

    .matrix-panel,
    .takeaway-panel,
    .workplace-panel,
    .action-panel,
    .recommendation-panel,
    .comparison-panel {
        padding: 22px 18px;
    }

    .sensitivity-matrix {
        min-height: 280px;
        margin-right: 12px;
        margin-left: 36px;
    }

    .matrix-quadrant {
        max-width: 39%;
        font-size: 9px;
    }

    .workplace-cards,
    .action-plan,
    .secondary-recommendations,
    .comparison-summary,
    .comparison-dimensions {
        grid-template-columns: 1fr;
    }

    .primary-recommendation,
    .comparison-heading {
        align-items: stretch;
        flex-direction: column;
    }

    .primary-recommendation .button {
        width: 100%;
    }

    .history-meta,
    .author-cta {
        align-items: flex-start;
        flex-direction: column;
    }

    .history-chart {
        padding: 10px 6px;
        overflow-x: auto;
    }

    .history-chart svg {
        min-width: 520px;
    }

    .comparison-actions .button {
        flex: 1 1 180px;
    }

    .author-cta {
        padding: 26px 22px;
    }

    .author-cta-actions {
        width: 100%;
        flex-basis: auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}

@media (forced-colors: active) {
    .button,
    .result-navigation,
    .resume-panel,
    .takeaway-grid section,
    .question-card,
    .answer-content {
        border: 2px solid CanvasText;
    }

    .progress-track span,
    .dimension-accent,
    .bar-fill {
        forced-color-adjust: none;
    }
}

@media print {
    @page {
        size: A4 portrait;
        margin: 0;
    }

    html,
    body {
        width: 210mm;
        height: auto;
        margin: 0;
        padding: 0;
        background: #fff;
        color: #000;
        font-family: Arial, Helvetica, sans-serif;
        font-size: 9pt;
        print-color-adjust: exact;
        -webkit-print-color-adjust: exact;
    }

    body > *:not(.print-report) {
        display: none !important;
    }

    .print-report {
        display: block !important;
    }

    .print-page {
        position: relative;
        width: 210mm;
        height: 297mm;
        padding: 13mm 15mm 14mm;
        overflow: hidden;
        page-break-after: always;
        break-after: page;
        background: #fff;
    }

    .print-page:last-child {
        page-break-after: auto;
        break-after: auto;
    }

    .print-header {
        display: flex;
        min-height: 25mm;
        align-items: flex-start;
        justify-content: space-between;
        gap: 12mm;
        padding-bottom: 5mm;
        border-bottom: 1.5mm solid #f9c61c;
    }

    .print-header h1 {
        margin: 0;
        font-size: 22pt;
        line-height: 1;
        letter-spacing: -0.5pt;
    }

    .print-header > p,
    .print-header-compact > p {
        max-width: 72mm;
        margin: 2mm 0 0;
        color: #5f5a51;
        font-size: 8.5pt;
        text-align: right;
    }

    .print-brand {
        margin: 0 0 2mm;
        color: #8b6700;
        font-size: 8pt;
        font-weight: 900;
        letter-spacing: 1.2pt;
        text-transform: uppercase;
    }

    .print-score-row {
        display: grid;
        grid-template-columns: 37mm 1fr;
        gap: 8mm;
        align-items: center;
        min-height: 42mm;
        padding: 6mm 0;
        border-bottom: 0.3mm solid #d8d3ca;
    }

    .print-score {
        display: flex;
        align-items: flex-end;
        color: #171717;
    }

    .print-score strong {
        font-size: 48pt;
        font-weight: 900;
        line-height: 0.82;
        letter-spacing: -3pt;
    }

    .print-score span {
        margin: 0 0 1mm 1.5mm;
        color: #686159;
        font-size: 9pt;
        font-weight: 700;
    }

    .print-label {
        margin: 0 0 1.5mm;
        color: #7b746a;
        font-size: 7pt;
        font-weight: 900;
        letter-spacing: 0.8pt;
        text-transform: uppercase;
    }

    .print-score-row h2 {
        margin: 0 0 2mm;
        font-size: 17pt;
    }

    .print-score-row p:last-child {
        margin: 0;
        color: #5e5951;
        font-size: 8.5pt;
        line-height: 1.45;
    }

    .print-axis-summary {
        display: grid;
        grid-template-columns: 1fr 65mm;
        gap: 8mm;
        padding: 5mm 0;
        border-bottom: 0.3mm solid #d8d3ca;
    }

    .print-axis-summary h3 {
        margin: 0;
        font-size: 12pt;
    }

    .print-axis-summary strong {
        font-size: 11pt;
    }

    .print-profile-grid {
        display: grid;
        grid-template-columns: 1fr 72mm;
        gap: 8mm;
        align-items: center;
        margin-top: 5mm;
    }

    .print-radar {
        height: 109mm;
    }

    .print-radar svg {
        display: block;
        width: 100%;
        height: 100%;
    }

    .print-radar .radar-label {
        font-size: 10px;
    }

    .print-dimension-row {
        display: grid;
        grid-template-columns: 1fr 12mm;
        gap: 4mm;
        align-items: center;
        padding: 3.5mm 0;
        border-bottom: 0.3mm solid #e4dfd6;
        line-height: 1.25;
    }

    .print-dimension-row span {
        color: #4f4a43;
    }

    .print-dimension-row strong {
        font-size: 13pt;
        text-align: right;
    }

    .print-header-compact {
        min-height: 23mm;
    }

    .print-section {
        margin-top: 6mm;
    }

    .print-workplace {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 3.5mm;
    }

    .print-workplace article {
        min-height: 47mm;
        padding: 4mm;
        border: 0.3mm solid #d8d3ca;
        border-radius: 2mm;
        break-inside: avoid;
    }

    .print-workplace h3 {
        margin: 0 0 2mm;
        font-size: 11pt;
    }

    .print-workplace p {
        margin: 0 0 2.5mm;
        color: #5c574f;
        font-size: 8pt;
        line-height: 1.4;
    }

    .print-workplace strong {
        display: block;
        padding-top: 2mm;
        border-top: 0.3mm solid #e4dfd6;
        font-size: 7.7pt;
        line-height: 1.35;
    }

    .print-actions {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5mm 8mm;
        margin: 0;
        padding-left: 5mm;
    }

    .print-actions li {
        padding-left: 1mm;
        font-size: 8pt;
        line-height: 1.4;
        break-inside: avoid;
    }

    .print-summary {
        margin-top: 6mm;
        padding: 4mm;
        border-left: 1.5mm solid #f9c61c;
        background: #fff8d9;
    }

    .print-summary p:last-child {
        margin: 0;
        font-size: 8pt;
        line-height: 1.4;
    }

    .print-page-footer {
        position: absolute;
        right: 15mm;
        bottom: 7mm;
        left: 15mm;
        display: flex;
        align-items: flex-end;
        justify-content: space-between;
        gap: 10mm;
        padding-top: 2.5mm;
        border-top: 0.3mm solid #d8d3ca;
        color: #706a61;
        font-size: 6.8pt;
    }

    .print-page-footer span:first-child {
        flex: 0 0 auto;
        color: #171717;
        font-weight: 900;
    }

    .print-page-footer span:last-child {
        max-width: 140mm;
        text-align: right;
    }
}
