:root {
    --bg-deep: #050d14;
    --bg: #08131c;
    --bg-elevated: #0f1b27;
    --bg-soft: #132331;
    --surface: rgba(19, 35, 49, 0.78);
    --surface-strong: rgba(15, 27, 39, 0.92);
    --line: rgba(134, 171, 199, 0.18);
    --line-strong: rgba(134, 171, 199, 0.3);
    --text: #edf5fb;
    --muted: #99b3c6;
    --muted-strong: #b8ccd9;
    --primary: #48d4b7;
    --primary-strong: #2aa7cb;
    --warning: #ffc95e;
    --danger: #ff7b7b;
    --success: #6ee7b7;
    --info: #7ae0ff;
    --radius: 20px;
    --radius-sm: 14px;
    --shadow: 0 22px 64px rgba(0, 0, 0, 0.36);
    --shadow-soft: 0 12px 36px rgba(0, 0, 0, 0.2);
    --gradient: linear-gradient(135deg, rgba(72, 212, 183, 0.95), rgba(42, 167, 203, 0.95));
    --hero-glow: radial-gradient(circle at top left, rgba(72, 212, 183, 0.18), transparent 34%), radial-gradient(circle at top right, rgba(42, 167, 203, 0.16), transparent 38%), linear-gradient(180deg, #09131d 0%, #08111a 100%);
    --mesh: linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background: var(--bg-deep);
}

body {
    position: relative;
    min-height: 100vh;
    margin: 0;
    color: var(--text);
    background:
        radial-gradient(circle at 10% 10%, rgba(72, 212, 183, 0.1), transparent 25%),
        radial-gradient(circle at 90% 0%, rgba(42, 167, 203, 0.11), transparent 28%),
        linear-gradient(180deg, #071019 0%, #09131c 52%, #071019 100%);
    font-family: "Manrope", sans-serif;
    line-height: 1.55;
    overflow-x: hidden;
}

body::before,
body::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

body::before {
    background: var(--mesh);
    background-size: 120px 120px;
    mask-image: linear-gradient(180deg, rgba(255, 255, 255, 0.22), transparent 70%);
    opacity: 0.22;
}

body::after {
    background:
        radial-gradient(circle at 14% 16%, rgba(72, 212, 183, 0.12), transparent 18%),
        radial-gradient(circle at 86% 12%, rgba(42, 167, 203, 0.12), transparent 20%),
        radial-gradient(circle at 50% 70%, rgba(72, 212, 183, 0.08), transparent 24%);
    filter: blur(14px);
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

.main-shell {
    position: relative;
    z-index: 1;
}

.site-shell {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.site-shell--nav {
    position: sticky;
    top: 0;
    z-index: 40;
    padding: 16px 0;
}

.site-shell--footer {
    padding: 48px 0 56px;
}

.topbar {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 20px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(10, 17, 26, 0.84);
    backdrop-filter: blur(18px);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
}

.topbar::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent);
    opacity: 0.6;
}

.brandmark {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.brandmark strong {
    display: block;
    font-size: 0.98rem;
    letter-spacing: 0.02em;
}

.brandmark small {
    display: block;
    color: var(--muted);
    font-size: 0.78rem;
}

.brandmark__pulse {
    width: 14px;
    height: 14px;
    border-radius: 999px;
    background: var(--gradient);
    box-shadow: 0 0 0 8px rgba(72, 212, 183, 0.1), 0 0 18px rgba(72, 212, 183, 0.28);
}

.topbar__links {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    flex-wrap: wrap;
    flex: 1;
    min-width: 0;
}

.topbar__navlinks,
.topbar__actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.topbar__navlinks {
    padding: 5px;
    border: 1px solid rgba(134, 171, 199, 0.14);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.025);
}

.topbar__link,
.topbar__user {
    color: var(--muted);
    font-size: 0.92rem;
}

.topbar__link {
    padding: 8px 14px;
    border-radius: 999px;
}

.topbar__link:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.045);
}

.topbar__user {
    white-space: nowrap;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 46px;
    padding: 0 18px;
    border-radius: 999px;
    border: 1px solid transparent;
    transition: transform 0.18s ease, opacity 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}

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

.button:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
}

.button--primary {
    color: #04221e;
    background: var(--gradient);
    box-shadow: 0 18px 30px rgba(72, 212, 183, 0.18);
}

.button--ghost {
    color: var(--text);
    border-color: var(--line-strong);
    background: rgba(255, 255, 255, 0.03);
}

.button--small {
    min-height: 36px;
    padding: 0 14px;
    font-size: 0.9rem;
}

.button--block {
    width: 100%;
}

.eyebrow,
.panel__label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.73rem;
    font-family: "IBM Plex Mono", monospace;
}

.hero {
    display: grid;
    grid-template-columns: 1.3fr 0.9fr;
    gap: 26px;
    align-items: stretch;
    padding: 58px 0 30px;
}

.hero__content,
.panel,
.panel--hero {
    position: relative;
    border: 1px solid var(--line);
    border-radius: calc(var(--radius) + 6px);
    background: var(--surface);
    backdrop-filter: blur(18px);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.hero__content::before,
.panel::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.42), transparent);
    opacity: 0.75;
}

.hero__content > *,
.panel > * {
    position: relative;
    z-index: 1;
}

.hero__content {
    padding: 42px;
    background: var(--hero-glow);
}

.hero__content h1,
.section-heading h1,
.section-heading h2,
.auth-card h1,
.report-section h2,
.panel h2,
.page-shell h1 {
    margin: 12px 0 14px;
    line-height: 1.02;
    letter-spacing: -0.04em;
    text-wrap: balance;
}

.hero__content h1 {
    font-size: clamp(2.8rem, 4vw, 5rem);
    max-width: 12ch;
}

.hero__lead,
.section-heading p,
.panel p,
.auth-card p,
.report-summary {
    color: var(--muted-strong);
}

.hero__lead {
    max-width: 60ch;
    font-size: 1.04rem;
}

.hero__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.chip {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid rgba(134, 171, 199, 0.18);
    background: rgba(255, 255, 255, 0.028);
    color: var(--muted-strong);
    font-size: 0.86rem;
}

.hero__actions,
.quick-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.hero__actions {
    margin-top: 28px;
}

.hero__metrics,
.stats-grid,
.dashboard-grid,
.summary-grid,
.timeline-grid,
.score-grid,
.stack-grid,
.section-grid,
.dual-cta,
.dual-layout,
.form-grid,
.choice-grid {
    display: grid;
    gap: 18px;
    align-items: stretch;
}

.hero__metrics {
    margin-top: 34px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.dashboard-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.metric-card,
.stat-card,
.summary-card,
.timeline-card,
.score-card,
.cta-card,
.insight-card,
.roadmap-card,
.dimension-card {
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.03);
    height: 100%;
}

.metric-card,
.stat-card {
    padding: 18px;
}

.metric-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
}

.metric-card strong,
.stat-card strong,
.report-score strong {
    display: block;
    font-size: 2.15rem;
    line-height: 1;
}

.metric-card span,
.stat-card span,
.summary-card span {
    color: var(--muted);
    font-size: 0.9rem;
}

.panel {
    padding: 28px;
}

.panel--compact {
    padding: 22px;
}

.panel--centered {
    text-align: center;
}

.panel--hero-report {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: end;
    background: linear-gradient(135deg, rgba(72, 212, 183, 0.12), rgba(42, 167, 203, 0.16));
}

.signal-board {
    display: grid;
    gap: 14px;
    margin-top: 18px;
}

.signal-card,
.value-card {
    border: 1px solid rgba(134, 171, 199, 0.14);
    border-radius: 18px;
    background: rgba(6, 16, 25, 0.38);
    padding: 18px;
}

.signal-card span,
.value-card span {
    display: inline-block;
    color: var(--muted);
    font-size: 0.74rem;
    font-family: "IBM Plex Mono", monospace;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    margin-bottom: 10px;
}

.signal-card strong,
.value-card strong {
    display: block;
    font-size: 1.1rem;
    line-height: 1.18;
    margin-bottom: 8px;
}

.signal-card p,
.value-card p {
    margin: 0;
}

.value-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin: 10px auto 6px;
}

.section-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 26px auto 10px;
}

.stack-grid {
    margin: 48px auto 10px;
}

.timeline-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.timeline-card {
    padding: 22px;
}

.timeline-card span {
    display: inline-flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    border-radius: 999px;
    background: var(--gradient);
    color: #05201d;
    font-weight: 800;
}

.timeline-card p,
.cta-card p,
.insight-card p,
.summary-card p,
.roadmap-card p,
.dimension-card p {
    color: var(--muted-strong);
}

.dual-cta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 40px auto 10px;
}

.cta-card {
    padding: 28px;
}

.cta-card--highlight {
    background: linear-gradient(135deg, rgba(72, 212, 183, 0.08), rgba(42, 167, 203, 0.1));
}

.feature-list,
.ordered-steps,
.likert-legend,
.detail-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.feature-list li,
.ordered-steps li,
.likert-legend li {
    position: relative;
    padding-left: 18px;
    margin-top: 10px;
    color: var(--muted-strong);
}

.feature-list li::before,
.ordered-steps li::before,
.likert-legend li strong {
    position: absolute;
    left: 0;
}

.feature-list li::before {
    content: "+";
    color: var(--primary);
}

.ordered-steps {
    counter-reset: report-steps;
}

.ordered-steps li {
    padding-left: 34px;
}

.ordered-steps li::before {
    counter-increment: report-steps;
    content: counter(report-steps);
    display: inline-flex;
    width: 24px;
    height: 24px;
    border-radius: 999px;
    align-items: center;
    justify-content: center;
    background: rgba(72, 212, 183, 0.14);
    color: var(--primary);
}

.auth-shell,
.page-shell,
.report-shell {
    padding: 30px 0 56px;
}

.auth-shell {
    display: flex;
    justify-content: center;
}

.auth-shell--wide .auth-card {
    width: min(980px, 100%);
}

.auth-card {
    width: min(620px, 100%);
}

.form-stack {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.field span,
.fieldset legend {
    font-weight: 700;
    font-size: 0.92rem;
}

.field input,
.field select,
.field textarea {
    width: 100%;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid var(--line-strong);
    background: rgba(5, 12, 20, 0.55);
    color: var(--text);
}

.field textarea {
    resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: 2px solid rgba(72, 212, 183, 0.35);
    outline-offset: 2px;
}

.field__error {
    color: var(--danger);
}

.fieldset {
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 18px;
}

.choice-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.choice-pill {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.02);
}

.choice-pill input {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
}

.alert {
    padding: 16px 18px;
    border-radius: 16px;
    border: 1px solid var(--line);
}

.alert--error {
    color: #ffd8d8;
    border-color: rgba(255, 123, 123, 0.26);
    background: rgba(255, 123, 123, 0.12);
}

.alert--success {
    color: #ddfff2;
    border-color: rgba(110, 231, 183, 0.25);
    background: rgba(110, 231, 183, 0.12);
}

.alert--info {
    color: #d8f7ff;
    border-color: rgba(42, 167, 203, 0.25);
    background: rgba(42, 167, 203, 0.1);
}

.form-footnote {
    color: var(--muted);
}

.form-footnote a {
    color: var(--primary);
}

.section-heading {
    margin-bottom: 24px;
}

.section-heading p {
    max-width: 72ch;
}

.section-heading--spread {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: end;
}

.dual-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
}

.dual-layout--dashboard {
    margin-top: 24px;
}

.detail-list {
    display: grid;
    gap: 14px;
}

.detail-list div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
}

.detail-list dt {
    color: var(--muted);
}

.detail-list dd {
    margin: 0;
    text-align: right;
}

.code-stack {
    display: grid;
    gap: 16px;
}

.code-block {
    padding: 16px;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.03);
}

.code-block span {
    display: block;
    color: var(--muted);
    font-size: 0.85rem;
    margin-bottom: 8px;
}

.code-block code {
    display: block;
    margin-bottom: 12px;
    color: var(--text);
    font-family: "IBM Plex Mono", monospace;
    overflow-wrap: anywhere;
}

.assessment-shell {
    background: linear-gradient(180deg, #061019 0%, #09131d 100%);
}

.assessment-wrap {
    min-height: 100vh;
    width: min(1180px, calc(100% - 28px));
    margin: 0 auto;
    padding: 26px 0 40px;
}

.assessment-header {
    position: sticky;
    top: 12px;
    z-index: 30;
    margin-bottom: 22px;
    background: rgba(10, 17, 26, 0.9);
}

.assessment-top {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: center;
    margin-bottom: 18px;
    color: var(--muted);
}

.assessment-top__back {
    color: var(--text);
}

.assessment-top__counter {
    font-family: "IBM Plex Mono", monospace;
}

.assessment-progress {
    height: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
    margin-bottom: 0;
}

.assessment-progress__bar,
.score-bar__fill {
    height: 100%;
    background: var(--gradient);
}

.assessment-grid {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 22px;
    width: 100%;
}

.assessment-panel {
    display: grid;
    gap: 18px;
    align-self: start;
    position: sticky;
    top: 128px;
}

.assessment-card {
    padding: 32px;
    min-height: 520px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.018));
}

.assessment-card__meta {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
}

.assessment-card__hint {
    color: var(--muted);
    font-size: 0.9rem;
}

.assessment-card__question {
    font-size: clamp(1.55rem, 2vw, 2.3rem);
    line-height: 1.18;
    margin: 18px 0 24px;
    max-width: 18ch;
}

.answer-grid {
    display: grid;
    gap: 14px;
}

.answer-card {
    display: flex;
    align-items: center;
    gap: 18px;
    min-height: 84px;
    padding: 18px;
    border-radius: 20px;
    border: 1px solid var(--line-strong);
    background: rgba(255, 255, 255, 0.02);
    color: var(--text);
    text-align: left;
    transition: transform 0.18s ease, border-color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}

.answer-card strong {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(72, 212, 183, 0.14);
    color: var(--primary);
    flex-shrink: 0;
}

.answer-card:hover,
.answer-card.is-loading {
    border-color: rgba(72, 212, 183, 0.45);
    background: rgba(72, 212, 183, 0.08);
    transform: translateY(-1px);
    box-shadow: 0 16px 28px rgba(0, 0, 0, 0.22);
}

.answer-card:focus-visible {
    outline: 2px solid rgba(72, 212, 183, 0.45);
    outline-offset: 2px;
}

.assessment-card__status {
    min-height: 24px;
    margin-top: 18px;
    color: var(--muted);
    font-size: 0.92rem;
}

.likert-legend li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-left: 0;
}

.likert-legend li strong {
    position: static;
    display: inline-flex;
    width: 28px;
    height: 28px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(72, 212, 183, 0.1);
    color: var(--primary);
}

.report-actions {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
    position: sticky;
    top: 12px;
    z-index: 35;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(10, 17, 26, 0.84);
    backdrop-filter: blur(16px);
}

.report-root {
    display: grid;
    gap: 22px;
}

.report-hero {
    align-items: center;
}

.report-hero__left h1 {
    font-size: clamp(2rem, 3vw, 3.3rem);
    margin-bottom: 10px;
}

.report-score {
    min-width: 220px;
    text-align: center;
    padding: 24px;
    border-radius: 20px;
    background: rgba(6, 16, 25, 0.42);
    border: 1px solid var(--line);
}

.report-score span {
    display: block;
    margin-top: 8px;
    font-size: 1.1rem;
}

.report-score small {
    display: block;
    margin-top: 8px;
    color: var(--muted);
}

.report-section {
    display: grid;
    gap: 18px;
}

.summary-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.summary-card,
.roadmap-card,
.insight-card,
.dimension-card {
    padding: 20px;
}

.roadmap-card header span,
.value-card span,
.signal-card span,
.summary-card span {
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.summary-card strong,
.insight-card strong {
    display: block;
    margin: 10px 0 8px;
    font-size: 1.15rem;
}

.roadmap-stack,
.dimension-stack,
.stack-cards {
    display: grid;
    gap: 16px;
}

.roadmap-card header,
.score-card header,
.dimension-card header,
.report-section--two-column {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: start;
}

.score-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.score-card {
    padding: 16px 18px;
}

.score-card header strong,
.dimension-card header strong {
    font-size: 1.2rem;
}

.score-bar {
    height: 10px;
    margin-top: 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.report-section--two-column {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.insight-card--inline {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.stats-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: 18px;
}

.stat-card {
    background: linear-gradient(180deg, rgba(72, 212, 183, 0.055), rgba(255, 255, 255, 0.02));
}

.table-wrap {
    overflow-x: auto;
    padding: 4px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.02);
}

.data-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.data-table th,
.data-table td {
    padding: 18px 16px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
    overflow-wrap: anywhere;
}

.data-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.03);
}

.data-table tbody tr:last-child td {
    border-bottom: none;
}

.data-table th {
    color: var(--muted);
    font-weight: 700;
}

.data-table td small {
    display: block;
    margin-top: 6px;
    color: var(--muted);
}

.data-table--balanced,
.data-table--participants {
    table-layout: fixed;
}

.data-table--participants th,
.data-table--participants td {
    padding-left: 18px;
    padding-right: 18px;
}

.data-table--participants th:last-child,
.data-table--participants td:last-child {
    text-align: right;
}

.data-table--participants td:last-child .button {
    margin-left: auto;
}

.footer {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    color: var(--muted);
    font-size: 0.92rem;
}

.footer p {
    margin: 10px 0 0;
}

.footer__meta {
    display: grid;
    gap: 8px;
    max-width: 380px;
    text-align: right;
}

.page-shell--narrow {
    max-width: 780px;
}

@media (max-width: 980px) {
    .hero,
    .section-grid,
    .value-strip,
    .dual-cta,
    .dual-layout,
    .report-section--two-column,
    .assessment-grid,
    .summary-grid,
    .stats-grid,
    .timeline-grid,
    .score-grid {
        grid-template-columns: 1fr;
    }

    .hero__metrics,
    .form-grid,
    .choice-grid {
        grid-template-columns: 1fr 1fr;
    }

    .topbar,
    .section-heading--spread,
    .report-actions,
    .report-hero,
    .footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .assessment-panel {
        position: static;
        grid-template-columns: repeat(3, minmax(240px, 1fr));
        overflow-x: auto;
        padding-bottom: 4px;
    }

    .assessment-panel > * {
        min-width: 240px;
    }

    .footer__meta {
        text-align: left;
    }
}

@media (max-width: 720px) {
    .site-shell {
        width: min(100% - 22px, 1180px);
    }

    .hero__content,
    .panel,
    .assessment-card {
        padding: 22px;
    }

    .hero__metrics,
    .form-grid,
    .choice-grid {
        grid-template-columns: 1fr;
    }

    .report-actions,
    .assessment-top {
        flex-direction: column;
        align-items: flex-start;
    }

    .topbar {
        border-radius: 28px;
    }

    .topbar__links,
    .topbar__navlinks,
    .topbar__actions {
        width: 100%;
        justify-content: flex-start;
    }

    .topbar__navlinks,
    .topbar__actions {
        flex-wrap: wrap;
    }

    .topbar__actions .button {
        flex: 1 1 calc(50% - 6px);
        min-width: 0;
    }

    .topbar__user {
        width: 100%;
    }

    .answer-card {
        padding: 16px;
    }

    .assessment-card__meta {
        flex-direction: column;
        align-items: flex-start;
    }

    .data-table thead {
        display: none;
    }

    .data-table,
    .data-table tbody,
    .data-table tr,
    .data-table td {
        display: block;
        width: 100%;
    }

    .data-table tr {
        padding: 14px 16px;
        border-bottom: 1px solid var(--line);
    }

    .data-table td {
        padding: 8px 0;
        border-bottom: none;
    }

    .data-table td::before {
        content: attr(data-label);
        display: block;
        margin-bottom: 4px;
        color: var(--muted);
        font-size: 0.72rem;
        font-family: "IBM Plex Mono", monospace;
        text-transform: uppercase;
        letter-spacing: 0.12em;
    }
}

@media print {
    body {
        background: #ffffff;
        color: #111111;
    }

    .site-shell--nav,
    .site-shell--footer,
    .report-actions {
        display: none !important;
    }

    .report-shell {
        padding: 0;
    }

    .report-root,
    .report-section,
    .panel,
    .summary-card,
    .insight-card,
    .dimension-card,
    .roadmap-card,
    .score-card,
    .report-score {
        background: #ffffff !important;
        color: #111111 !important;
        box-shadow: none !important;
        border-color: #d9d9d9 !important;
    }

    .report-section,
    .panel--pagebreak {
        page-break-inside: avoid;
    }
}
