:root {
    --ink: #162022;
    --muted: #657174;
    --line: #e2d8c8;
    --paper: #fff8ee;
    --surface: #ffffff;
    --surface-soft: #f1f8ef;
    --input-bg: #fffdf8;
    --topbar-bg: rgba(255, 248, 238, 0.96);
    --shadow-soft: rgba(22, 32, 34, 0.08);
    --green: #236c4b;
    --green-dark: #174b36;
    --green-soft: #eaf7ef;
    --orange: #e8942f;
    --orange-dark: #8a4b0f;
    --orange-soft: #fff1dc;
    --gold: #e4b23d;
    --rose: #c45a4a;
    --blue: #356f9f;
    --admin-sidebar: #1f2933;
    --admin-sidebar-dark: #17212b;
    --admin-sidebar-muted: #a8b3bd;
    --admin-canvas: #f4f6f8;
}

:root[data-theme="dark"] {
    --ink: #eef6f2;
    --muted: #b8c8c1;
    --line: #3b4f47;
    --paper: #0d1514;
    --surface: #14211f;
    --surface-soft: #1c332d;
    --input-bg: #101b1a;
    --topbar-bg: rgba(13, 21, 20, 0.94);
    --shadow-soft: rgba(0, 0, 0, 0.32);
    --green: #57c08b;
    --green-dark: #a7e8c3;
    --green-soft: #1f4a38;
    --orange: #f0a13a;
    --orange-dark: #ffd79f;
    --orange-soft: #332213;
    --gold: #f2c85b;
    --rose: #ee8d7e;
    --blue: #78b9e8;
    --admin-sidebar: #0b1216;
    --admin-sidebar-dark: #070d10;
    --admin-sidebar-muted: #9aadb6;
    --admin-canvas: #0d1514;
}

* {
    box-sizing: border-box;
}

[hidden] {
    display: none !important;
}

body {
    margin: 0;
    color: var(--ink);
    background:
        radial-gradient(circle at top left, rgba(35, 108, 75, 0.06), transparent 34vw),
        linear-gradient(180deg, var(--paper), #fbfff9 64%, var(--paper));
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.5;
}

.admin-shell-body {
    background: var(--admin-canvas);
}

a {
    color: var(--green);
    text-decoration: none;
}

.topbar {
    background: var(--topbar-bg);
    border-bottom: 1px solid var(--line);
    min-height: 72px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.topbar-inner {
    align-items: center;
    display: flex;
    gap: 20px;
    justify-content: space-between;
    margin: 0 auto;
    max-width: 1280px;
    min-height: 72px;
    padding: 14px clamp(16px, 4vw, 48px);
}

.brand,
.nav,
.actions,
.form-actions,
.row-heading {
    align-items: center;
    display: flex;
    gap: 12px;
}

.brand {
    color: var(--ink);
    font-weight: 800;
}

.brand-mark {
    align-items: center;
    background: var(--green);
    border-radius: 8px;
    color: #fff;
    display: inline-flex;
    height: 38px;
    justify-content: center;
    width: 44px;
}

.nav {
    flex-wrap: wrap;
    justify-content: flex-end;
}

.nav a {
    color: var(--ink);
    font-size: 0.95rem;
}

.site-footer {
    align-items: center;
    color: var(--muted);
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin: 10px auto 34px;
    max-width: 1280px;
    padding: 0 clamp(16px, 4vw, 48px);
}

.theme-toggle {
    align-items: center;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 50%;
    color: var(--ink);
    cursor: pointer;
    display: inline-flex;
    font: inherit;
    font-size: 0.9rem;
    font-weight: 800;
    height: 38px;
    min-height: 36px;
    justify-content: center;
    padding: 0;
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
    width: 38px;
}

.theme-toggle:hover {
    border-color: var(--green);
    box-shadow: 0 6px 16px var(--shadow-soft);
    transform: translateY(-1px);
}

.theme-toggle[aria-pressed="true"] {
    border-color: var(--green);
}

.theme-icon {
    align-items: center;
    background: transparent;
    border-radius: 50%;
    color: var(--green-dark);
    display: inline-flex;
    height: 100%;
    justify-content: center;
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1;
    width: 100%;
}

.shell {
    margin: 0 auto;
    max-width: 1120px;
    padding: 32px clamp(16px, 4vw, 48px) 56px;
}

.shell:has(.auth-stage) {
    max-width: 1280px;
    padding-top: 44px;
}

.hero {
    align-items: stretch;
    display: grid;
    gap: 24px;
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
    min-height: calc(100vh - 148px);
}

.hero-copy {
    align-self: center;
    max-width: 720px;
}

.hero h1,
.page-heading h1 {
    font-size: clamp(2.2rem, 6vw, 4.4rem);
    line-height: 1.02;
    margin: 0 0 18px;
}

.hero p,
.page-heading p {
    color: var(--muted);
    font-size: 1.08rem;
    max-width: 720px;
}

.hero-panel,
.form-panel,
.table-wrap,
.callout,
.metric,
.action-card,
.list-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.hero-panel {
    align-self: center;
    padding: 26px;
}

.auth-stage {
    align-items: center;
    background:
        linear-gradient(135deg, rgba(35, 108, 75, 0.11) 0 22%, transparent 22% 100%),
        linear-gradient(315deg, rgba(232, 148, 47, 0.08) 0 18%, transparent 18% 100%),
        linear-gradient(90deg, rgba(35, 108, 75, 0.08), rgba(232, 148, 47, 0.05));
    border: 1px solid rgba(203, 227, 212, 0.9);
    border-radius: 8px;
    display: grid;
    gap: clamp(28px, 6vw, 72px);
    grid-template-columns: minmax(0, 1fr) minmax(320px, 430px);
    min-height: calc(100vh - 190px);
    overflow: hidden;
    padding: clamp(26px, 5vw, 64px);
    position: relative;
}

.auth-stage::before,
.auth-stage::after {
    content: "";
    pointer-events: none;
    position: absolute;
}

.auth-stage::before {
    background-image:
        linear-gradient(rgba(35, 108, 75, 0.12) 1px, transparent 1px),
        linear-gradient(90deg, rgba(35, 108, 75, 0.12) 1px, transparent 1px);
    background-size: 34px 34px;
    inset: 0;
    opacity: 0.35;
}

.auth-stage::after {
    background: linear-gradient(135deg, var(--green), var(--orange));
    bottom: 34px;
    height: 12px;
    left: 64px;
    transform: skewX(-24deg);
    width: min(360px, 42vw);
}

.auth-copy {
    max-width: 640px;
    position: relative;
    z-index: 1;
}

.auth-copy h1 {
    font-size: clamp(2.6rem, 6vw, 5.1rem);
    line-height: 0.98;
    margin: 0 0 18px;
    max-width: 760px;
}

.auth-copy p {
    color: #4d5b5f;
    font-size: 1.08rem;
    max-width: 620px;
}

.auth-benefits {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.auth-benefits span {
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(203, 227, 212, 0.95);
    border-radius: 999px;
    color: var(--green-dark);
    box-shadow: 0 6px 20px rgba(22, 32, 34, 0.06);
    font-weight: 800;
    padding: 8px 12px;
}

.auth-card {
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    box-shadow: 0 24px 60px rgba(22, 32, 34, 0.16);
    display: grid;
    gap: 18px;
    padding: 26px;
    position: relative;
    z-index: 1;
}

.auth-card::before {
    background: linear-gradient(90deg, var(--green), var(--orange));
    content: "";
    height: 5px;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
}

.auth-card h2 {
    font-size: 2rem;
    margin: 0 0 6px;
}

.auth-card p {
    color: var(--muted);
    margin: 0;
}

.auth-card input {
    background: var(--input-bg);
    border-color: #cbd6d0;
    min-height: 48px;
}

.auth-card input:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 4px rgba(35, 108, 75, 0.12);
    outline: none;
}

.auth-card .checkbox-line input {
    min-height: auto;
}

.auth-spotlight {
    align-items: end;
    background: rgba(255, 255, 255, 0.74);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    box-shadow: 0 18px 44px rgba(22, 32, 34, 0.11);
    display: grid;
    gap: 18px;
    grid-template-columns: minmax(0, 1fr) 140px;
    margin-top: 28px;
    padding: 18px;
    max-width: 620px;
}

.auth-spotlight strong,
.auth-spotlight span {
    display: block;
}

.auth-spotlight strong {
    font-size: 1.1rem;
    margin-bottom: 6px;
}

.auth-spotlight span {
    color: var(--muted);
}

.auth-meter {
    align-items: end;
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(3, 1fr);
    height: 76px;
}

.auth-meter span {
    background: linear-gradient(180deg, var(--green), var(--green-dark));
    border-radius: 7px 7px 3px 3px;
    display: block;
    height: var(--level);
    min-height: 22px;
}

.auth-meter span:nth-child(2) {
    background: linear-gradient(180deg, var(--orange), var(--green));
}

.auth-meter span:nth-child(3) {
    background: linear-gradient(180deg, var(--gold), var(--green));
}

.auth-remember {
    color: var(--muted);
    font-weight: 700;
}

.auth-submit {
    width: 100%;
}

.auth-secondary-actions {
    border-top: 1px solid var(--line);
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding-top: 16px;
}

.auth-secondary-actions .button {
    width: 100%;
}

.auth-secondary-actions.single {
    grid-template-columns: 1fr;
}

.eyebrow {
    color: var(--green);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0;
    margin: 0 0 10px;
    text-transform: uppercase;
}

.button {
    background: var(--green);
    border: 1px solid var(--green);
    border-radius: 8px;
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    font: inherit;
    font-weight: 700;
    justify-content: center;
    min-height: 44px;
    padding: 10px 16px;
}

.button:hover {
    background: var(--green-dark);
}

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

.button-small {
    min-height: 36px;
    padding: 6px 12px;
}

.checklist {
    list-style: none;
    margin: 0;
    padding: 0;
}

.checklist li {
    border-top: 1px solid var(--line);
    padding: 12px 0;
}

.checklist.ordered {
    list-style: decimal;
    padding-left: 20px;
}

.page-heading {
    margin-bottom: 26px;
}

.row-heading {
    justify-content: space-between;
}

.grid {
    display: grid;
    gap: 16px;
    margin-bottom: 28px;
}

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

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

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

.metric {
    padding: 20px;
}

.backbone-panel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    display: grid;
    gap: 18px;
    margin-bottom: 28px;
    padding: 20px;
}

.backbone-panel .section-title {
    align-items: center;
    display: flex;
    gap: 12px;
    justify-content: space-between;
}

.insight-card {
    background: #fbfcfa;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 18px;
}

.insight-card span {
    color: var(--green);
    display: block;
    font-size: 0.78rem;
    font-weight: 800;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.insight-card strong {
    display: block;
    font-size: 1rem;
    line-height: 1.45;
}

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

.mentor-focus {
    background: #fbfcfa;
    border: 1px solid var(--line);
    border-radius: 8px;
    display: grid;
    gap: 12px;
    padding: 18px;
}

.mentor-focus p {
    color: var(--muted);
    margin: 0;
}

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

.metric span,
small {
    color: var(--muted);
    display: block;
    font-size: 0.9rem;
}

.metric strong {
    display: block;
    font-size: 1.8rem;
    margin-top: 6px;
}

.callout {
    align-items: center;
    border-left: 5px solid var(--orange);
    display: flex;
    gap: 18px;
    justify-content: space-between;
    margin-bottom: 24px;
    padding: 20px;
}

.callout.foundation {
    border-left-color: var(--green);
}

.split,
.admin-actions {
    display: grid;
    gap: 22px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.section-title h2,
.callout h2,
.action-card h2,
.list-card h3 {
    margin: 0 0 8px;
}

.stack {
    display: grid;
    gap: 12px;
}

.list-card {
    align-items: flex-start;
    display: flex;
    gap: 12px;
    justify-content: space-between;
    padding: 16px;
}

.resource-link {
    color: var(--ink);
    transition: border-color 160ms ease, transform 160ms ease;
}

.resource-link:hover {
    border-color: var(--green);
    transform: translateY(-1px);
}

.list-card p,
.action-card p,
.callout p,
.empty {
    color: var(--muted);
    margin: 0;
}

.pill {
    background: var(--green-soft);
    border: 1px solid #cbe3d4;
    border-radius: 999px;
    color: var(--green-dark);
    display: inline-flex;
    font-size: 0.82rem;
    font-weight: 700;
    padding: 5px 10px;
    white-space: nowrap;
}

.form-panel {
    display: grid;
    gap: 18px;
    padding: 22px;
}

.profile-heading {
    margin-bottom: 16px;
}

.profile-heading h1 {
    font-size: clamp(1.9rem, 4vw, 3rem);
    margin-bottom: 10px;
}

.profile-heading p {
    margin-bottom: 0;
}

.profile-form {
    background:
        linear-gradient(180deg, rgba(234, 247, 239, 0.55), rgba(255, 255, 255, 0.98)),
        var(--surface);
    border-color: #cfe5d7;
    gap: 12px;
    padding: 18px;
}

.profile-form .form-grid {
    gap: 12px;
}

.profile-form label {
    gap: 5px;
}

.profile-form input,
.profile-form select {
    border-color: #bfd9c9;
    min-height: 40px;
    padding: 8px 10px;
}

.profile-form input:focus,
.profile-form select:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(35, 108, 75, 0.12);
    outline: none;
}

.profile-form .interest-fieldset input:focus {
    border-color: var(--orange);
    box-shadow: 0 0 0 3px rgba(232, 148, 47, 0.18);
}

.profile-form .compact-fieldset {
    border-color: #cfe5d7;
    gap: 10px;
    padding: 12px;
}

.profile-form .interest-fieldset {
    background: linear-gradient(135deg, var(--orange-soft), #fff8ed);
    border-color: #f0b766;
}

.profile-form .compact-fieldset .muted-text {
    font-size: 0.9rem;
    margin: -2px 0 2px;
}

.profile-form .choice-grid {
    gap: 8px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.profile-form .choice-grid.improvement-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.profile-form .choice-chip span {
    align-items: center;
    background: rgba(255, 255, 255, 0.74);
    border-color: #d6e6da;
    display: flex;
    font-size: 0.92rem;
    min-height: 38px;
    padding: 7px 10px;
}

.profile-form .interest-fieldset .choice-chip span {
    border-color: #efc47f;
}

.profile-form .choice-chip input:checked + span {
    background: var(--green-soft);
    border-color: var(--green);
    color: var(--green-dark);
    box-shadow: inset 4px 0 0 var(--green);
}

.profile-form .interest-fieldset .choice-chip input:checked + span {
    background: #fff7e8;
    border-color: var(--orange);
    color: var(--orange-dark);
    box-shadow: inset 4px 0 0 var(--orange);
}

.profile-form .form-actions {
    margin-top: 2px;
}

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

.cv-builder-form {
    gap: 14px;
}

.cv-builder-form .compact-fieldset {
    gap: 10px;
}

.cv-builder-form textarea {
    min-height: 116px;
}

.cv-builder-form .interest-fieldset {
    background: linear-gradient(135deg, var(--orange-soft), #fff8ed);
    border-color: #f0b766;
}

.cv-builder-form .muted-text {
    font-size: 0.92rem;
    margin: 0;
}

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

.compact-fieldset {
    background: transparent;
    margin: 0;
    padding: 16px;
}

.compact-fieldset legend {
    font-weight: 800;
    padding: 0 6px;
}

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

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

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

.choice-chip {
    cursor: pointer;
    display: block;
    font-weight: 800;
}

.choice-chip input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.choice-chip span {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--ink);
    display: block;
    min-height: 44px;
    padding: 10px 12px;
}

.choice-chip input:checked + span {
    background: var(--green-soft);
    border-color: var(--green);
    color: var(--green-dark);
    box-shadow: inset 4px 0 0 var(--green);
}

.assessment-form {
    display: grid;
    gap: 16px;
}

.assessment-progress {
    align-items: center;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    display: grid;
    gap: 16px;
    grid-template-columns: minmax(0, 1fr) minmax(180px, 0.35fr);
    padding: 18px;
    position: sticky;
    top: 86px;
    z-index: 5;
}

.assessment-progress h2 {
    margin: 0;
}

.progress-track {
    background: #e8eee9;
    border-radius: 999px;
    height: 10px;
    overflow: hidden;
}

.progress-track span {
    background: var(--green);
    display: block;
    height: 100%;
    transition: width 180ms ease;
    width: 0;
}

.category-panel {
    display: grid;
    gap: 16px;
}

.category-panel[hidden] {
    display: none;
}

.category-heading {
    background: var(--green-soft);
    border: 1px solid #cbe3d4;
    border-radius: 8px;
    padding: 22px;
}

.category-heading h2 {
    margin: 0 0 8px;
}

.category-heading p:last-child {
    color: var(--muted);
    margin: 0;
}

.assessment-actions {
    background: var(--paper);
    bottom: 0;
    border-top: 1px solid var(--line);
    padding: 16px 0;
    position: sticky;
}

.question-card,
.report-panel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 20px;
}

.question-card legend {
    font-size: 1.05rem;
    font-weight: 800;
    margin-bottom: 14px;
}

.question-card legend span {
    color: var(--green);
    display: block;
    font-size: 0.78rem;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.option-row {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.option-pill {
    cursor: pointer;
    font-weight: 700;
}

.option-pill input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.option-pill span {
    background: var(--surface);
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    display: flex;
    justify-content: center;
    min-height: 56px;
    padding: 10px;
    text-align: center;
}

.option-pill input:checked + span {
    background: var(--green-soft);
    border-color: var(--green);
    color: var(--green-dark);
    box-shadow: inset 4px 0 0 var(--green);
}

.report-panel {
    margin-bottom: 22px;
}

.report-summary-heading {
    max-width: 860px;
}

.mentor-note h2 {
    font-size: clamp(1.4rem, 3vw, 2rem);
    line-height: 1.2;
}

.report-actions {
    align-items: stretch;
}

.report-section-title {
    margin-bottom: 14px;
}

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

.report-section-grid .action-card {
    min-height: 156px;
}

.text-link {
    color: var(--green);
    display: inline-block;
    font-weight: 800;
    margin-top: 12px;
}

.report-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 22px;
}

.report-tabs a {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--ink);
    font-weight: 800;
    padding: 8px 12px;
}

.report-tabs a.active {
    background: var(--green);
    border-color: var(--green);
    color: #fff;
}

.report-panel.wide {
    margin-top: 22px;
}

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

.report-list li + li {
    margin-top: 10px;
}

.profile-snapshot {
    display: grid;
    gap: 8px;
}

.profile-snapshot p {
    color: var(--muted);
    margin: 0;
}

.muted-text {
    color: var(--muted);
}

.journey-panel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    margin-bottom: 24px;
    padding: 20px;
}

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

.journey-step {
    border: 1px solid var(--line);
    border-radius: 8px;
    display: grid;
    gap: 12px;
    grid-template-columns: 38px minmax(0, 1fr);
    min-height: 178px;
    padding: 14px;
}

.journey-step h3 {
    font-size: 1rem;
    margin: 0 0 6px;
}

.journey-step p {
    color: var(--muted);
    font-size: 0.92rem;
    margin: 0 0 10px;
}

.journey-step.complete {
    background: var(--green-soft);
}

.journey-step.current {
    border-color: var(--green);
    box-shadow: 0 8px 24px rgba(35, 108, 75, 0.08);
}

.recommendation-map {
    display: grid;
    gap: 18px;
    margin-bottom: 24px;
}

.recommendation-flow {
    margin-top: 4px;
}

.recommendation-flow .journey-step {
    min-height: 150px;
}

.journey-step.locked {
    opacity: 0.68;
}

.step-number {
    align-items: center;
    background: var(--green);
    border-radius: 50%;
    color: #fff;
    display: inline-flex;
    font-weight: 800;
    height: 34px;
    justify-content: center;
    width: 34px;
}

.dashboard-result {
    align-items: center;
    display: flex;
    gap: 18px;
    justify-content: space-between;
}

.dashboard-result h2 {
    margin: 0 0 8px;
}

.dashboard-result p:last-child {
    color: var(--muted);
    margin: 0;
}

.preview-gate .actions {
    flex-wrap: nowrap;
}

.locked-report {
    background: #fbfcfa;
    border-color: #cbe3d4;
}

.locked-report p {
    color: var(--muted);
    max-width: 760px;
}

.resource-heading {
    max-width: 860px;
}

.resource-body {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--ink);
    font-size: 1.05rem;
    line-height: 1.75;
    margin-bottom: 22px;
    max-width: 860px;
    padding: 24px;
}

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

.type-card {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 16px;
}

.type-card.current {
    background: var(--green-soft);
    border-color: var(--green);
}

.type-card h3 {
    margin: 0 0 8px;
}

.type-card p {
    color: var(--muted);
    margin: 0 0 12px;
}

.option-editor {
    display: grid;
    gap: 12px;
}

.option-editor h2 {
    margin: 0;
}

.option-edit-row {
    display: grid;
    gap: 10px;
    grid-template-columns: 1fr 90px 110px;
}

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

label {
    color: var(--ink);
    display: grid;
    font-weight: 700;
    gap: 7px;
}

.checkbox-line {
    align-items: center;
    display: flex;
    gap: 10px;
}

.checkbox-line input {
    width: auto;
}

input,
select,
textarea {
    background: var(--input-bg);
    border: 1px solid #d7c9b8;
    border-radius: 8px;
    color: var(--ink);
    font: inherit;
    padding: 11px 12px;
    width: 100%;
}

textarea {
    resize: vertical;
}

.notice {
    border-radius: 8px;
    margin-bottom: 18px;
    padding: 12px 14px;
}

.notice.success {
    background: var(--green-soft);
    border: 1px solid #b9dbc5;
}

.notice.error {
    background: #fff0ed;
    border: 1px solid #efc2ba;
}

.consent-note {
    color: var(--muted);
    font-size: 0.9rem;
    margin: 8px 0 0;
}

.cookie-notice {
    align-items: center;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    bottom: 18px;
    box-shadow: 0 12px 30px var(--shadow-soft);
    display: flex;
    gap: 18px;
    justify-content: space-between;
    left: 18px;
    max-width: 780px;
    padding: 14px 16px;
    position: fixed;
    right: 18px;
    z-index: 50;
}

.cookie-notice p {
    color: var(--muted);
    margin: 2px 0 0;
}

.cookie-actions {
    align-items: center;
    display: flex;
    flex-shrink: 0;
    gap: 10px;
}

.admin-actions {
    margin-top: 22px;
}

.admin-app {
    min-height: 100vh;
}

.admin-sidebar {
    background: var(--admin-sidebar);
    color: #fff;
    display: flex;
    flex-direction: column;
    height: 100vh;
    left: 0;
    overflow-y: auto;
    position: fixed;
    top: 0;
    width: 270px;
    z-index: 20;
}

.admin-brand {
    align-items: center;
    background: var(--admin-sidebar-dark);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    color: #fff;
    display: flex;
    gap: 12px;
    min-height: 70px;
    padding: 16px 18px;
}

.admin-brand small {
    color: var(--admin-sidebar-muted);
    font-size: 0.78rem;
    margin-top: 2px;
}

.admin-menu {
    display: grid;
    gap: 4px;
    padding: 16px 12px;
}

.admin-menu a {
    border-radius: 6px;
    color: #dbe3ea;
    display: flex;
    font-weight: 700;
    justify-content: space-between;
    padding: 11px 12px;
}

.admin-menu a:hover,
.admin-menu a.active {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.admin-menu a.active {
    box-shadow: inset 3px 0 0 var(--gold);
}

.admin-menu a.subtle-active {
    background: rgba(255, 255, 255, 0.06);
    box-shadow: none;
}

.admin-menu-label {
    color: var(--admin-sidebar-muted);
    font-size: 0.72rem;
    font-weight: 800;
    padding: 18px 12px 6px;
    text-transform: uppercase;
}

.admin-main {
    margin-left: 270px;
    min-width: 0;
}

.admin-topbar {
    align-items: center;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    min-height: 70px;
    padding: 12px 24px;
    position: sticky;
    top: 0;
    z-index: 12;
}

.admin-topbar small {
    color: var(--muted);
    margin-top: 2px;
}

.admin-topbar nav {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.admin-content {
    padding: 24px;
}

.admin-page-header,
.admin-hero {
    align-items: flex-end;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    display: flex;
    gap: 20px;
    justify-content: space-between;
    margin-bottom: 28px;
    padding: 22px;
}

.admin-page-header h1,
.admin-hero h1 {
    font-size: clamp(2rem, 5vw, 3.4rem);
    line-height: 1.05;
    margin: 0 0 12px;
}

.admin-page-header p,
.admin-hero p {
    color: var(--muted);
    margin: 0;
    max-width: 720px;
}

.admin-hero-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.admin-board {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-panel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 20px;
}

.mentor-readiness {
    margin-bottom: 22px;
}

.admin-shell-body .metric {
    border-top: 4px solid var(--green);
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
    min-height: 128px;
}

.admin-info-grid {
    gap: 18px;
}

.admin-info-box {
    position: relative;
}

.clickable {
    color: var(--ink);
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.clickable:hover {
    border-color: var(--green);
    box-shadow: 0 8px 24px rgba(22, 32, 34, 0.08);
    transform: translateY(-1px);
}

.admin-info-box::after {
    color: rgba(22, 32, 34, 0.08);
    content: "YR";
    font-size: 2.6rem;
    font-weight: 900;
    position: absolute;
    right: 16px;
    top: 12px;
}

.admin-analytics-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 22px;
}

.admin-chart-panel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
    display: block;
    padding: 20px;
}

.admin-chart-panel.wide {
    grid-column: 1 / -1;
}

.progress-stat {
    display: grid;
    gap: 14px;
    margin-top: 18px;
}

.progress-stat strong {
    display: block;
    font-size: 2rem;
}

.progress-track.large {
    height: 16px;
}

.progress-stat-footer {
    color: var(--muted);
    display: flex;
    justify-content: space-between;
}

.bar-list {
    display: grid;
    gap: 13px;
    margin-top: 18px;
}

.bar-row {
    align-items: center;
    display: grid;
    gap: 12px;
    grid-template-columns: minmax(120px, 0.42fr) minmax(120px, 1fr) 40px;
}

.type-bars .bar-row {
    grid-template-columns: minmax(180px, 0.42fr) minmax(120px, 1fr) 40px;
}

.bar-row span {
    color: var(--muted);
}

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

.bar-track i {
    background: var(--green);
    display: block;
    height: 100%;
}

.admin-shell-body .metric:nth-child(2) {
    border-top-color: var(--blue);
}

.admin-shell-body .metric:nth-child(3) {
    border-top-color: var(--gold);
}

.admin-shell-body .metric:nth-child(4) {
    border-top-color: var(--rose);
}

.admin-shell-body .table-wrap,
.admin-shell-body .form-panel,
.admin-shell-body .report-panel,
.admin-shell-body .admin-panel {
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}

.section-title p {
    color: var(--muted);
    margin: 0;
}

.mini-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 14px 0;
}

.mini-stats span {
    background: #f3f6f2;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted);
    font-size: 0.86rem;
    padding: 5px 10px;
}

.compact-row {
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--ink);
    display: flex;
    gap: 12px;
    justify-content: space-between;
    padding: 12px;
}

.admin-link-list {
    display: grid;
    gap: 8px;
}

.admin-link-list a {
    border-bottom: 1px solid var(--line);
    padding: 8px 0;
}

.status-list {
    color: var(--muted);
    display: grid;
    gap: 10px;
    list-style: none;
    margin: 14px 0 0;
    padding: 0;
}

.status-dot {
    border-radius: 50%;
    display: inline-block;
    height: 10px;
    margin-right: 8px;
    width: 10px;
}

.status-dot.ready {
    background: var(--green);
}

.status-dot.pending {
    background: var(--gold);
}

.update-output {
    background: #111c19;
    border-radius: 8px;
    color: #d8efe5;
    font-size: 0.82rem;
    margin: -4px 0 8px;
    max-height: 180px;
    overflow: auto;
    padding: 12px;
    white-space: pre-wrap;
}

.update-package-list {
    margin-top: 16px;
}

.group-picker {
    display: grid;
    gap: 10px;
}

.group-picker h3 {
    margin: 0;
}

.action-card {
    color: var(--ink);
    display: block;
    padding: 22px;
}

.action-card:hover {
    border-color: var(--green);
}

.admin-management-bar,
.bulk-action-bar {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    margin-bottom: 16px;
    padding: 16px;
}

.admin-filter-form,
.bulk-action-bar {
    align-items: end;
    display: grid;
    gap: 12px;
    grid-template-columns: 2fr minmax(150px, 1fr) minmax(150px, 1fr) auto;
}

.admin-filter-form label {
    display: grid;
    gap: 6px;
}

.admin-filter-form label span,
.bulk-action-bar small {
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 700;
}

.filter-actions {
    align-items: center;
    display: flex;
    gap: 8px;
}

.bulk-action-bar {
    align-items: center;
    background: #fbfcfa;
}

.bulk-action-bar > div {
    display: grid;
    gap: 3px;
}

.select-column {
    text-align: center;
    width: 42px;
}

.select-column input {
    height: 18px;
    margin: 0;
    padding: 0;
    width: 18px;
}

.table-wrap {
    overflow-x: auto;
}

table {
    border-collapse: collapse;
    min-width: 720px;
    width: 100%;
}

th,
td {
    border-bottom: 1px solid var(--line);
    padding: 14px 16px;
    text-align: left;
    vertical-align: middle;
}

th {
    color: var(--muted);
    font-size: 0.82rem;
    text-transform: uppercase;
}

.table-actions {
    align-items: center;
    display: flex;
    gap: 12px;
}

.table-actions form {
    margin: 0;
}

.link-button {
    background: transparent;
    border: 0;
    color: var(--green);
    cursor: pointer;
    font: inherit;
    padding: 0;
}

.link-button.danger {
    color: var(--rose);
}

:root[data-theme="dark"] .topbar {
    backdrop-filter: blur(14px);
}

:root[data-theme="dark"] body {
    background:
        radial-gradient(circle at top left, rgba(87, 192, 139, 0.1), transparent 34vw),
        linear-gradient(180deg, var(--paper), #111c19 62%, var(--paper));
}

:root[data-theme="dark"] .theme-toggle {
    background: var(--surface);
    border-color: var(--line);
}

:root[data-theme="dark"] .auth-stage {
    background:
        linear-gradient(135deg, rgba(87, 192, 139, 0.16) 0 22%, transparent 22% 100%),
        linear-gradient(315deg, rgba(240, 161, 58, 0.06) 0 18%, transparent 18% 100%),
        linear-gradient(90deg, rgba(87, 192, 139, 0.12), rgba(240, 161, 58, 0.04));
}

:root[data-theme="dark"] .auth-stage::before {
    background-image:
        linear-gradient(rgba(167, 232, 195, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(167, 232, 195, 0.1) 1px, transparent 1px);
}

:root[data-theme="dark"] .auth-copy p,
:root[data-theme="dark"] .auth-spotlight span,
:root[data-theme="dark"] .locked-report p,
:root[data-theme="dark"] .dashboard-result p:last-child,
:root[data-theme="dark"] .resource-body,
:root[data-theme="dark"] .list-card p,
:root[data-theme="dark"] .action-card p,
:root[data-theme="dark"] .callout p,
:root[data-theme="dark"] .empty,
:root[data-theme="dark"] .report-list,
:root[data-theme="dark"] .profile-snapshot p,
:root[data-theme="dark"] .type-card p,
:root[data-theme="dark"] .category-heading p:last-child,
:root[data-theme="dark"] .journey-step p {
    color: var(--muted);
}

:root[data-theme="dark"] .auth-card,
:root[data-theme="dark"] .auth-spotlight,
:root[data-theme="dark"] .auth-benefits span {
    background: rgba(20, 33, 31, 0.88);
    border-color: rgba(74, 101, 94, 0.85);
}

:root[data-theme="dark"] .auth-card {
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.36);
}

:root[data-theme="dark"] input,
:root[data-theme="dark"] select,
:root[data-theme="dark"] textarea,
:root[data-theme="dark"] .auth-card input {
    background: var(--input-bg);
    border-color: #3c514c;
    color: var(--ink);
}

:root[data-theme="dark"] input::placeholder,
:root[data-theme="dark"] textarea::placeholder {
    color: #80928e;
}

:root[data-theme="dark"] .hero-panel,
:root[data-theme="dark"] .form-panel,
:root[data-theme="dark"] .table-wrap,
:root[data-theme="dark"] .callout,
:root[data-theme="dark"] .metric,
:root[data-theme="dark"] .backbone-panel,
:root[data-theme="dark"] .insight-card,
:root[data-theme="dark"] .mentor-focus,
:root[data-theme="dark"] .report-tabs a,
:root[data-theme="dark"] .action-card,
:root[data-theme="dark"] .list-card,
:root[data-theme="dark"] .journey-panel,
:root[data-theme="dark"] .journey-step,
:root[data-theme="dark"] .question-card,
:root[data-theme="dark"] .report-panel,
:root[data-theme="dark"] .resource-body,
:root[data-theme="dark"] .admin-page-header,
:root[data-theme="dark"] .admin-hero,
:root[data-theme="dark"] .admin-panel,
:root[data-theme="dark"] .admin-chart-panel,
:root[data-theme="dark"] .admin-management-bar,
:root[data-theme="dark"] .bulk-action-bar {
    background: var(--surface);
    border-color: var(--line);
}

:root[data-theme="dark"] .category-heading,
:root[data-theme="dark"] .type-card.current,
:root[data-theme="dark"] .option-pill input:checked + span,
:root[data-theme="dark"] .choice-chip input:checked + span,
:root[data-theme="dark"] .journey-step.complete,
:root[data-theme="dark"] .pill,
:root[data-theme="dark"] .mini-stats span,
:root[data-theme="dark"] .locked-report {
    background: var(--surface-soft);
    border-color: #426358;
}

:root[data-theme="dark"] .option-pill span {
    background: #10231f;
    border-color: #3b5f52;
    color: #e7f5ee;
}

:root[data-theme="dark"] .choice-chip span {
    background: #10231f;
    border-color: #3b5f52;
    color: #e7f5ee;
}

:root[data-theme="dark"] .report-tabs a {
    background: #10231f;
    border-color: #3b5f52;
    color: #e7f5ee;
}

:root[data-theme="dark"] .button.secondary {
    background: var(--surface);
    border-color: var(--green);
    color: var(--green-dark);
}

:root[data-theme="dark"] .journey-panel,
:root[data-theme="dark"] .resource-body,
:root[data-theme="dark"] .locked-report,
:root[data-theme="dark"] .insight-card,
:root[data-theme="dark"] .mentor-focus {
    background: var(--surface);
    border-color: var(--line);
}

:root[data-theme="dark"] .profile-form {
    background:
        linear-gradient(180deg, rgba(16, 34, 29, 0.96), rgba(14, 27, 25, 0.98)),
        var(--surface);
    border-color: #35564c;
}

:root[data-theme="dark"] .profile-form .compact-fieldset {
    border-color: #36584d;
}

:root[data-theme="dark"] .profile-form .interest-fieldset {
    background: linear-gradient(135deg, #3a2512, #251b12);
    border-color: #b06f22;
}

:root[data-theme="dark"] .profile-form .compact-fieldset .muted-text {
    color: #c9d9d3;
}

:root[data-theme="dark"] .profile-form .choice-chip span {
    background: #10231f;
    border-color: #3b5f52;
    color: #e7f5ee;
}

:root[data-theme="dark"] .profile-form .interest-fieldset .choice-chip span {
    background: #2b1d12;
    border-color: #8c5a25;
    color: #ffe5bd;
}

:root[data-theme="dark"] .profile-form .choice-chip input:checked + span {
    background: #1f4a38;
    border-color: var(--green);
    color: #dfffea;
    box-shadow: inset 4px 0 0 var(--green);
}

:root[data-theme="dark"] .profile-form .interest-fieldset .choice-chip input:checked + span {
    background: #593713;
    border-color: #f0a13a;
    color: #ffe1ad;
    box-shadow: inset 4px 0 0 #f0a13a;
}

:root[data-theme="dark"] .progress-track,
:root[data-theme="dark"] .bar-track {
    background: #1b2a28;
}

:root[data-theme="dark"] .assessment-actions {
    background: var(--paper);
}

:root[data-theme="dark"] .notice.success {
    background: #123323;
    border-color: #2c7a52;
}

:root[data-theme="dark"] .notice.error {
    background: #3a1815;
    border-color: #8d473f;
}

:root[data-theme="dark"] th,
:root[data-theme="dark"] td {
    border-bottom-color: var(--line);
}

:root[data-theme="dark"] .admin-topbar {
    background: var(--surface);
}

:root[data-theme="dark"] .clickable:hover,
:root[data-theme="dark"] .resource-link:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
}

:root[data-theme="dark"] .admin-info-box::after {
    color: rgba(238, 246, 242, 0.06);
}

@media (max-width: 820px) {
    .admin-app {
        grid-template-columns: 1fr;
    }

    .admin-sidebar {
        height: auto;
        min-height: auto;
        position: static;
        width: auto;
    }

    .admin-main {
        margin-left: 0;
    }

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

    .admin-menu-label {
        grid-column: 1 / -1;
    }

    .admin-topbar {
        position: static;
    }

    .topbar-inner,
    .callout,
    .admin-page-header,
    .admin-hero,
    .row-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .nav {
        justify-content: flex-start;
    }

    .cookie-notice,
    .cookie-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .hero,
    .auth-stage,
    .split,
    .admin-analytics-grid,
    .admin-board,
    .admin-filter-form,
    .bulk-action-bar,
    .journey-steps,
    .admin-actions,
    .grid.two,
    .grid.three,
    .grid.four,
    .option-row,
    .option-edit-row,
    .type-grid,
    .assessment-progress,
    .form-grid,
    .dimension-picker,
    .choice-grid,
    .choice-grid.improvement-grid,
    .report-section-grid {
        grid-template-columns: 1fr;
    }

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

    .admin-chart-panel.wide {
        grid-column: auto;
    }

    .bar-row,
    .type-bars .bar-row {
        grid-template-columns: 1fr;
    }

    .assessment-progress {
        top: 120px;
    }

    .dashboard-result {
        align-items: flex-start;
        flex-direction: column;
    }

    .auth-secondary-actions {
        grid-template-columns: 1fr;
    }

    .auth-stage {
        padding: 22px;
    }

    .auth-stage::after {
        left: 24px;
        width: 220px;
    }

    .auth-spotlight {
        grid-template-columns: 1fr;
    }

    .auth-meter {
        max-width: 180px;
    }
}
