@import url("https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:wght@500;600;700;800&family=Hanken+Grotesk:wght@400;500;600;700;800&display=swap");

:root {
    --lime: #c5f84f;
    --lime-dark: #1f5026;
    --purple: #1f5026;
    --purple-dark: #16341b;
    --purple-soft: #e8f5e4;
    --purple-line: #d5ded1;
    --coral: #ec2d8a;
    --ink: #16341b;
    --muted: #4c5a46;
    --line: #d5ded1;
    --bg: #ffffff;
    --band: #f5faf2;
    --lime-soft: #dcf7a8;
    --white: #ffffff;
    --shadow: 0 18px 44px rgba(22, 52, 27, 0.09);
    --forest-anchor: #16341b;
    --forest-deep: #1f5026;
    --mint-surface: #e8f5e4;
    --sage-cta: #c5f84f;
    --sage-accent: #dcf7a8;
    --fuchsia-signal: #ec2d8a;
    --font-display: "Bricolage Grotesque", "Trebuchet MS", Arial, sans-serif;
    --font-sans: "Hanken Grotesk", "Trebuchet MS", Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

[hidden] {
    display: none !important;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--bg);
    font-family: var(--font-sans);
    line-height: 1.55;
    font-size: 15px;
}

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

a:hover {
    color: var(--purple-dark);
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
    outline: 3px solid var(--purple-line);
    outline-offset: 3px;
}

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

.topbar {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 18px;
    justify-content: space-between;
    padding: 12px 28px;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(14px);
}

.portal-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 10px 28px rgba(45, 38, 48, 0.06);
    backdrop-filter: blur(16px);
}

.portal-header .topbar {
    position: static;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 10px 0;
    border-bottom: 0;
    background: transparent;
    backdrop-filter: none;
}

.portal-topbar .user-menu {
    margin-left: auto;
}

.active-context {
    display: grid;
    gap: 1px;
    text-align: right;
}

.active-context small {
    color: var(--muted);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.active-context strong {
    color: var(--ink);
    font-size: 14px;
}

.perspective-switcher {
    display: grid;
    grid-template-columns: minmax(130px, 0.72fr) repeat(4, minmax(160px, 1fr));
    gap: 8px;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0 0 10px;
}

.perspective-intro {
    display: grid;
    align-content: center;
    gap: 2px;
    padding: 7px 10px 7px 0;
}

.perspective-intro strong {
    color: var(--ink);
    font-size: 14px;
}

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

.perspective-option {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 9px;
    align-items: center;
    min-width: 0;
    min-height: 54px;
    padding: 7px 10px;
    border: 1px solid transparent;
    border-radius: 8px;
    color: var(--ink);
    background: transparent;
    cursor: pointer;
    font: inherit;
    text-align: left;
    transition: color 160ms ease, background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.perspective-option:hover,
.perspective-option:focus-visible {
    color: var(--purple-dark);
    background: var(--purple-soft);
    border-color: var(--purple-line);
    outline: 0;
}

.perspective-option:active {
    transform: translateY(1px);
}

.perspective-option.is-active {
    color: var(--purple-dark);
    background: var(--purple-soft);
    border-color: var(--purple-line);
    box-shadow: inset 0 -3px 0 var(--purple);
}

.perspective-option > span:last-child {
    min-width: 0;
}

.perspective-option strong,
.perspective-option small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.perspective-option strong {
    font-size: 14px;
}

.perspective-option small {
    margin-top: 1px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 700;
}

.perspective-mark {
    display: grid;
    width: 32px;
    height: 32px;
    place-items: center;
    border-radius: 50%;
    color: var(--purple-dark);
    background: var(--white);
    border: 1px solid var(--purple-line);
    font-size: 12px;
    font-weight: 800;
}

.perspective-option.is-active .perspective-mark {
    color: var(--white);
    background: var(--purple);
    border-color: var(--purple);
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 200px;
    color: var(--ink);
}

.brand-button {
    border: 0;
    padding: 0;
    background: transparent;
    cursor: pointer;
    font: inherit;
    text-align: left;
}

.brand-mark {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    color: var(--white);
    background: var(--lime);
    border-radius: 50%;
    font-weight: 800;
}

.brand small {
    display: block;
    color: var(--muted);
    font-size: 12px;
}

.nav {
    display: flex;
    flex-wrap: wrap;
    flex: 1;
    gap: 4px;
}

.nav a,
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 34px;
    padding: 7px 13px;
    border: 0;
    border-radius: 999px;
    color: var(--purple);
    background: var(--white);
    border: 2px solid var(--purple);
    cursor: pointer;
    font: inherit;
    font-weight: 700;
}

.nav a {
    color: var(--ink);
    background: transparent;
    border-color: transparent;
    font-size: 14px;
    font-weight: 600;
}

.nav a:hover,
.nav a:focus {
    color: var(--purple);
    background: var(--purple-soft);
}

.nav a.is-active,
.nav a[aria-current="page"] {
    color: var(--purple);
    background: var(--purple-soft);
}

.nav-more {
    position: relative;
}

.nav-more summary {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 7px 13px;
    border-radius: 999px;
    color: var(--ink);
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    list-style: none;
}

.nav-more summary::-webkit-details-marker {
    display: none;
}

.nav-more summary::after {
    content: "▾";
    margin-left: 7px;
    color: var(--purple-dark);
}

.nav-more[open] summary,
.nav-more summary:hover {
    color: var(--purple-dark);
    background: var(--purple-soft);
}

.nav-more-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 30;
    display: grid;
    min-width: 230px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--white);
    box-shadow: var(--shadow);
}

.nav-more-menu a {
    border-radius: 7px;
}

.button:hover,
.button:focus {
    color: var(--white);
    background: var(--purple);
}

.button-outline {
    color: var(--purple);
    background: var(--white);
    border: 2px solid var(--purple);
}

.button-outline:hover,
.button-outline:focus {
    color: var(--white);
    background: var(--purple);
}

.button-coral {
    background: var(--coral);
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--muted);
    font-size: 14px;
}

.user-context {
    display: grid;
    gap: 1px;
    min-width: 0;
    text-align: right;
}

.user-context small {
    color: var(--purple-dark);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.user-context strong {
    max-width: 170px;
    overflow: hidden;
    color: var(--ink);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.container {
    width: min(1080px, calc(100% - 32px));
    margin: 34px auto;
}

.hero,
.panel {
    padding: 24px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
    min-width: 0;
    overflow: auto;
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.6fr);
    gap: 24px;
    align-items: center;
    padding: 28px;
    background: var(--white);
}

.eyebrow {
    display: inline-flex;
    margin-bottom: 10px;
    padding: 5px 11px;
    border-radius: 999px;
    color: var(--purple);
    background: var(--purple-soft);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

h1,
h2,
h3 {
    margin: 0 0 12px;
    line-height: 1.2;
    font-weight: 600;
}

h1 {
    color: var(--lime);
    font-size: 40px;
    font-weight: 500;
}

h2 {
    color: var(--lime);
    font-size: 27px;
    font-weight: 600;
}

h3 {
    color: var(--ink);
    font-size: 20px;
}

p {
    margin: 0 0 14px;
}

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

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
}

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

.card {
    min-height: 120px;
    padding: 20px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: none;
}

.stat {
    display: grid;
    gap: 8px;
}

.stat strong {
    font-size: 34px;
    color: var(--lime);
    white-space: nowrap;
}

.stat small {
    color: var(--muted);
    font-weight: 700;
}

.trend-positive {
    color: var(--lime-dark) !important;
}

.trend-warning {
    color: var(--coral) !important;
}

.badge {
    display: inline-flex;
    width: fit-content;
    padding: 4px 9px;
    border-radius: 999px;
    background: var(--purple-soft);
    color: var(--purple-dark);
    font-size: 12px;
    font-weight: 800;
}

.badge-yellow {
    background: #f6f9df;
    color: var(--lime-dark);
}

.badge-coral {
    background: #ffe7e3;
    color: #954234;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
}

.responsive-table {
    width: 100%;
    overflow-x: auto;
}

.table-primary-action {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: var(--purple-dark);
    font-weight: 800;
}

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

th {
    color: var(--muted);
    background: #fcfcfc;
    font-size: 13px;
    text-transform: uppercase;
}

tr:last-child td {
    border-bottom: 0;
}

.clickable-row {
    cursor: pointer;
}

.clickable-row:hover td,
.clickable-row:focus-within td {
    background: #fdf7ff;
}

.table-action {
    border: 0;
    padding: 0;
    color: var(--purple);
    background: transparent;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

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

form {
    display: grid;
    gap: 14px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 14px;
}

.guided-form {
    gap: 18px;
}

.step-indicator {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
    margin: 18px 0;
}

.step-indicator span {
    padding: 9px 10px;
    border-radius: 8px;
    color: var(--muted);
    background: #f5f5f5;
    font-size: 12px;
    font-weight: 800;
    text-align: center;
}

.step-indicator .is-active {
    color: var(--purple-dark);
    background: var(--purple-soft);
}

.form-step {
    display: grid;
    gap: 14px;
    margin: 0;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 10px;
}

.form-step legend {
    padding: 0 8px;
    color: var(--ink);
    font-size: 17px;
    font-weight: 800;
}

.form-step legend span {
    margin-right: 7px;
    color: var(--purple-dark);
    font-size: 12px;
    text-transform: uppercase;
}

.optional-label {
    display: inline;
    color: var(--muted);
    font-size: 11px;
    font-weight: 500;
}

.management-list-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

.management-list-heading label {
    width: min(320px, 100%);
}

.client-upload-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.7fr);
    gap: 20px;
    margin: 18px 0 24px;
    padding: 18px;
    border: 2px solid var(--purple-line);
    border-radius: 10px;
    background: #fdf9ff;
}

.client-upload-card h3 {
    margin-top: 10px;
}

.client-upload-card small {
    color: var(--muted);
    font-weight: 600;
}

.document-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
}

.document-row span,
.document-row small {
    display: block;
}

.scale-anchors {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
}

.form-privacy,
.login-help {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
}

.password-field {
    position: relative;
    display: block;
}

.password-field input {
    padding-right: 92px;
}

.password-toggle {
    position: absolute;
    top: 4px;
    right: 4px;
    min-height: 34px;
    padding: 0 11px;
    border: 0;
    border-radius: 7px;
    color: var(--purple-dark);
    background: var(--purple-soft);
    font: inherit;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}

label {
    display: grid;
    gap: 6px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
}

input,
select,
textarea {
    width: 100%;
    min-height: 42px;
    padding: 10px 12px;
    border: 1px solid var(--purple-line);
    border-radius: 8px;
    background: var(--white);
    color: var(--ink);
    font: inherit;
}

input:focus,
select:focus,
textarea:focus {
    outline: 2px solid var(--purple-soft);
    border-color: var(--purple);
}

textarea {
    min-height: 110px;
    resize: vertical;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.alert {
    margin-bottom: 18px;
    padding: 13px 16px;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: #f6f9df;
    color: var(--lime-dark);
    font-weight: 700;
}

.alert-error {
    background: #ffe7e3;
    color: #954234;
}

.impersonation-notice {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
    padding: 14px 18px;
    border: 1px solid var(--purple-line);
    border-left: 5px solid var(--coral);
    border-radius: 8px;
    background: var(--purple-soft);
}

.impersonation-notice div {
    display: grid;
    gap: 2px;
}

.impersonation-notice span {
    color: var(--muted);
    font-size: 13px;
}

.impersonation-notice form,
.table-actions form {
    display: block;
}

.preview-notice {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: center;
    margin-bottom: 20px;
    padding: 14px 16px;
    border: 1px solid #d9c85b;
    border-radius: 10px;
    background: #fff9cf;
    color: var(--ink);
}

.preview-notice > div {
    display: grid;
    gap: 2px;
}

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

.preview-notice nav {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.preview-notice a {
    padding: 7px 10px;
    border-radius: 7px;
    color: var(--purple-dark);
    font-size: 13px;
    font-weight: 800;
}

.preview-notice a:hover,
.preview-notice a:focus,
.preview-notice a[aria-current="page"] {
    color: var(--white);
    background: var(--purple);
}

.login-shell {
    min-height: calc(100vh - 78px);
    display: grid;
    place-items: center;
}

.login-card {
    width: min(460px, 100%);
}

.trainer-login-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
    gap: 24px;
    align-items: stretch;
}

.trainer-login-copy {
    display: grid;
    align-content: center;
    min-height: 360px;
    padding: 34px;
    border-radius: 8px;
    background: var(--band);
    border: 1px solid var(--line);
}

.trainer-login-copy h1 {
    max-width: 680px;
    color: var(--lime);
    font-size: clamp(36px, 5vw, 56px);
}

.trainer-login-copy p {
    max-width: 560px;
    font-size: 17px;
}

.trainer-login-form-card {
    display: grid;
    align-content: center;
}

.trainer-login-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
    margin-top: 24px;
}

.trainer-login-card {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 14px;
    align-items: center;
    min-height: 118px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--ink);
    background: var(--white);
    box-shadow: none;
    cursor: pointer;
    font: inherit;
    text-align: left;
}

.trainer-login-card:hover,
.trainer-login-card:focus,
.trainer-login-card.is-selected {
    outline: 0;
    border-color: var(--purple);
    box-shadow: var(--shadow);
}

.trainer-login-card.is-selected {
    background: #fdf7ff;
}

.trainer-login-photo {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid var(--lime-soft);
}

.trainer-login-card strong,
.trainer-login-card small {
    display: block;
}

.trainer-login-card strong {
    margin-bottom: 4px;
    color: var(--ink);
    font-size: 17px;
}

.trainer-login-card small {
    color: var(--muted);
    line-height: 1.35;
}

.trainer-login-email {
    margin-top: 6px;
    color: var(--purple-dark) !important;
    font-weight: 700;
}

.detail-list {
    display: grid;
    grid-template-columns: 170px 1fr;
    gap: 10px 18px;
}

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

.detail-list dd {
    margin: 0;
}

.practical-card {
    min-height: 0;
    overflow: hidden;
}

.practical-card .detail-list {
    grid-template-columns: minmax(78px, 0.34fr) minmax(0, 1fr);
    gap: 12px 14px;
}

.practical-card .detail-list dt,
.practical-card .detail-list dd {
    min-width: 0;
}

.practical-card .detail-list dd {
    overflow-wrap: anywhere;
}

.tool-frame {
    width: 100%;
    min-height: 360px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
}

.profile-photo {
    display: grid;
    width: 74px;
    height: 74px;
    place-items: center;
    border-radius: 50%;
    color: var(--white);
    background: var(--purple);
    font-size: 24px;
    font-weight: 800;
}

.brand-strip {
    padding: 68px 28px;
    background: var(--band);
    text-align: center;
}

.brand-strip h2 {
    margin-bottom: 48px;
    font-size: 46px;
    font-weight: 500;
}

.brand-values {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 42px;
    width: min(980px, 100%);
    margin: 0 auto;
}

.brand-value {
    display: grid;
    justify-items: center;
    gap: 14px;
}

.brand-icon {
    display: grid;
    width: 64px;
    height: 64px;
    place-items: center;
    border-radius: 50%;
    color: var(--white);
    background: var(--purple);
    font-size: 26px;
    font-weight: 800;
}

.brand-value h3 {
    margin: 4px 0 0;
    font-size: 23px;
}

.brand-value p {
    max-width: 230px;
    color: var(--muted);
}

.app-title {
    display: grid;
    justify-items: center;
    gap: 12px;
    margin: 8px auto 26px;
    text-align: center;
}

.app-title small {
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.app-title h1 {
    max-width: 720px;
    margin: 0;
    font-size: clamp(38px, 6vw, 58px);
    line-height: 1.05;
}

.role-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 0 auto 24px;
}

.role-tab {
    min-width: 150px;
}

.role-tab.is-active {
    color: var(--white);
    background: var(--purple);
}

.section-rule {
    height: 1px;
    margin: 26px 0;
    background: var(--lime-soft);
}

.view-section {
    display: none;
}

.view-section.is-active {
    display: grid;
    gap: 22px;
}

.dashboard-shell {
    display: grid;
    grid-template-columns: minmax(280px, 0.72fr) minmax(420px, 1.28fr);
    gap: 18px;
}

.trainer-overview {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
}

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

.quick-actions {
    display: grid;
    gap: 12px;
}

.action-card {
    width: 100%;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--ink);
    background: var(--white);
    cursor: pointer;
    font: inherit;
    text-align: left;
}

.action-card:hover,
.action-card:focus {
    outline: 2px solid var(--purple-soft);
    border-color: var(--purple-line);
}

.action-card strong {
    display: block;
    margin: 6px 0;
    font-size: 18px;
}

.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
}

.commercial-kpis {
    margin-top: 18px;
}

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

.meter {
    width: min(160px, 100%);
    height: 9px;
    margin-bottom: 6px;
    overflow: hidden;
    border-radius: 999px;
    background: var(--lime-soft);
}

.meter span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--purple);
}

.mini-list {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.mini-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
}

.overview-list,
.agenda-list {
    display: grid;
    gap: 10px;
}

.overview-item,
.agenda-item {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    padding: 14px 15px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--ink);
    background: var(--white);
    font: inherit;
    text-align: left;
    cursor: pointer;
    appearance: none;
}

.overview-item:hover,
.overview-item:focus,
.agenda-item:hover,
.agenda-item:focus {
    border-color: var(--purple-line);
    box-shadow: var(--shadow);
    color: var(--ink);
}

.overview-item strong,
.agenda-item strong {
    display: block;
    margin-bottom: 3px;
    font-size: 16px;
}

.overview-meta {
    display: grid;
    justify-items: end;
    gap: 6px;
    text-align: right;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.agenda-item {
    grid-template-columns: 90px minmax(0, 1fr) auto;
}

.agenda-day {
    display: grid;
    gap: 2px;
    padding-right: 8px;
}

.agenda-day strong {
    font-size: 18px;
}

.agenda-day span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.agenda-kind {
    display: inline-block;
    margin-bottom: 4px;
    color: var(--purple);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.inline-editor {
    margin: 16px 0 22px;
}

.inline-editor summary {
    width: fit-content;
    list-style: none;
}

.inline-editor summary::-webkit-details-marker {
    display: none;
}

.inline-editor-form {
    margin-top: 14px;
}

.inline-editor-content {
    display: grid;
    gap: 22px;
    margin-top: 14px;
    padding: 20px;
    border: 1px solid var(--purple-line);
    border-radius: 10px;
    background: #fdf9ff;
}

.inline-editor-content .inline-editor-form {
    margin-top: 0;
}

.inline-editor-content .preparation-email-composer {
    margin: 0;
}

.preparation-participants {
    margin: 22px 0;
    padding-top: 22px;
    border-top: 1px solid var(--line);
}

.preparation-participant-manager {
    margin-top: 24px;
    padding-top: 22px;
    border-top: 1px solid var(--line);
}

.preparation-participants .management-list-heading {
    align-items: flex-start;
    margin-bottom: 14px;
}

.preparation-participants .management-list-heading h3 {
    margin-bottom: 5px;
}

.preparation-participants .management-list-heading p {
    margin: 0;
}

.participant-empty {
    padding: 16px;
    border: 1px dashed var(--purple-line);
    border-radius: 10px;
    text-align: center;
}

.participant-table-wrap table {
    table-layout: fixed;
}

.participant-table-wrap th:first-child {
    width: 22%;
}

.participant-table-wrap th:last-child {
    width: 180px;
}

.participant-email {
    display: block;
    margin-top: 4px;
    overflow-wrap: anywhere;
}

.participant-status-time {
    display: block;
    margin-top: 5px;
    font-size: 11px;
}

.participant-link {
    display: block;
    max-width: 100%;
    color: var(--purple-dark);
    font-size: 12px;
    font-weight: 700;
    overflow-wrap: anywhere;
}

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

.participant-actions .button {
    min-height: 34px;
    padding: 7px 11px;
    font-size: 12px;
}

.participant-actions form {
    display: block;
}

.participant-delete {
    color: #954234;
}

.copy-feedback {
    min-height: 20px;
    margin: 8px 0 0;
    font-size: 12px;
}

.preparation-email-composer {
    margin: 28px 0 22px;
    padding: 22px;
    border: 2px solid var(--purple-line);
    border-radius: 10px;
    background: #fdf9ff;
}

.training-content-grid {
    grid-template-columns: minmax(0, 1fr);
}

.preparation-email-composer .management-list-heading {
    align-items: flex-start;
    margin-bottom: 16px;
}

.preparation-email-composer .eyebrow {
    margin-bottom: 7px;
}

.preparation-email-composer .management-list-heading h3 {
    margin-bottom: 6px;
}

.preparation-email-composer .management-list-heading p {
    max-width: 680px;
    margin: 0;
}

.email-recipient-warning {
    padding: 11px 14px;
    border: 1px solid #f4c9c2;
    border-radius: 8px;
    color: #954234;
    background: #fff3f1;
    font-size: 13px;
}

.email-composer-form {
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--white);
}

.email-composer-form textarea {
    min-height: 290px;
    line-height: 1.6;
}

.email-editor-variables {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
}

.email-editor-variables > span {
    margin-right: 3px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.email-variable {
    padding: 5px 9px;
    border: 1px solid var(--purple-line);
    border-radius: 999px;
    color: var(--purple-dark);
    background: var(--purple-soft);
    cursor: pointer;
    font: inherit;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 11px;
    font-weight: 700;
}

.email-variable:hover,
.email-variable:focus-visible {
    border-color: var(--purple);
    background: var(--white);
}

.email-editor-help {
    margin: -3px 0 0;
    font-size: 12px;
}

.email-schedule-row {
    display: grid;
    grid-template-columns: minmax(240px, 0.7fr) minmax(260px, 1fr);
    gap: 16px;
    align-items: end;
}

.email-send-actions {
    justify-content: flex-end;
}

.email-send-actions .button:disabled {
    border-color: #d8d3da;
    color: #9a949d;
    background: #f3f1f4;
    cursor: not-allowed;
}

.email-history {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--purple-line);
}

.email-history table {
    font-size: 13px;
}

.email-history td:first-child {
    min-width: 210px;
}

.email-history td small {
    display: block;
    margin-top: 3px;
}

.preparation-public-shell {
    display: grid;
    gap: 22px;
    width: min(860px, 100%);
    margin-inline: auto;
}

.preparation-public-hero {
    grid-template-columns: minmax(0, 1.45fr) minmax(230px, 0.55fr);
}

.preparation-public-hero-single {
    grid-template-columns: minmax(0, 1fr);
}

.preparation-personal-note {
    align-self: start;
}

.preparation-assignment-card {
    padding: clamp(22px, 5vw, 42px);
}

.preparation-assignment-card h2 {
    margin-bottom: 16px;
}

.preparation-assignment-text {
    color: var(--ink);
    font-size: clamp(17px, 2vw, 20px);
    line-height: 1.7;
}

.preparation-response-section {
    margin-top: 28px;
    padding-top: 26px;
    border-top: 1px solid var(--purple-line);
}

.preparation-complete-note {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.preparation-complete-note p {
    margin: 0;
}

.preparation-response-form textarea {
    min-height: 190px;
    line-height: 1.6;
}

.preparation-public-message {
    width: min(680px, 100%);
    margin-inline: auto;
    padding: clamp(24px, 6vw, 48px);
    text-align: center;
}

.split-panel {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(260px, 0.75fr);
    gap: 18px;
    align-items: start;
}

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

.profile-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
}

.profile-initials {
    display: grid;
    width: 48px;
    height: 48px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 50%;
    color: var(--white);
    background: var(--purple);
    font-weight: 800;
}

.profile-photo-img {
    display: block;
    width: 46px;
    height: 46px;
    flex: 0 0 auto;
    border: 2px solid var(--purple-line);
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
    background: var(--purple-soft);
}

.empty-state.is-compact {
    min-height: 170px;
}

.toast {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 70;
    display: none;
    max-width: 360px;
    padding: 14px 16px;
    border: 1px solid var(--purple-line);
    border-radius: 8px;
    color: var(--ink);
    background: var(--white);
    box-shadow: var(--shadow);
    font-weight: 700;
}

.toast.is-visible {
    display: block;
}

.panel-kicker {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

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

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

.choice {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 34px;
    padding: 7px 10px;
    border: 1px solid var(--purple-line);
    border-radius: 8px;
    color: var(--ink);
    background: var(--white);
    font-size: 13px;
    font-weight: 700;
}

.choice input {
    width: auto;
    min-height: auto;
}

.contact-summary {
    margin-top: 16px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fcfcfc;
}

.contact-summary p {
    margin: 8px 0 0;
}

.upload-box {
    gap: 12px;
}

.upload-dropzone {
    display: grid;
    gap: 10px;
    padding: 18px;
    border: 2px dashed var(--purple-line);
    border-radius: 8px;
    color: var(--ink);
    background: #fcfcfc;
}

.upload-dropzone strong {
    font-size: 18px;
}

.upload-dropzone input {
    margin-top: 4px;
    border-style: solid;
    background: var(--white);
}

.preparation-toolbar {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) auto;
    gap: 16px;
    align-items: end;
    margin-bottom: 18px;
}

.preparation-status {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.preparation-editor-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.42fr);
    gap: 18px;
    align-items: start;
}

.preparation-question-list {
    display: grid;
    gap: 12px;
}

.question-editor,
.preparation-side-panel,
.participant-question {
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
}

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

.question-editor-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.preparation-side-panel {
    position: sticky;
    top: 88px;
    display: grid;
    gap: 14px;
    background: #fcfcfc;
}

.preparation-publish-actions {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(82px, 0.75fr);
    gap: 8px;
    align-items: stretch;
}

.preparation-publish-actions .button {
    width: 100%;
    min-width: 0;
    padding-inline: 8px;
    line-height: 1.25;
}

.published-result {
    display: grid;
    gap: 12px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
}

.published-result[hidden] {
    display: none;
}

.generated-link {
    display: block;
    padding: 11px 12px;
    border: 1px solid var(--purple-line);
    border-radius: 8px;
    background: var(--purple-soft);
    color: var(--purple-dark);
    overflow-wrap: anywhere;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.45;
}

.generated-link:hover,
.generated-link:focus {
    color: var(--purple);
    background: #fdf7ff;
}

.participant-question {
    display: grid;
    gap: 10px;
    margin-bottom: 12px;
    color: var(--ink);
}

.participant-question span {
    color: var(--ink);
    font-weight: 800;
}

.preparation-uploadbox {
    display: grid;
    gap: 9px;
    padding: 18px;
    border: 2px dashed var(--purple-line);
    border-radius: 8px;
    color: var(--ink);
    background: #fcfcfc;
    cursor: pointer;
    transition: border-color 160ms ease, background 160ms ease;
}

.preparation-uploadbox:hover,
.preparation-uploadbox:focus-within {
    border-color: var(--purple);
    background: var(--purple-soft);
}

.preparation-uploadbox.has-file {
    border-color: var(--lime-dark);
    background: var(--lime-soft);
}

.preparation-uploadbox > strong {
    font-size: 16px;
}

.preparation-uploadbox > .muted,
.preparation-upload-summary {
    font-size: 12px;
    font-weight: 700;
}

.preparation-uploadbox input[type="file"] {
    margin-top: 3px;
    border-style: solid;
    background: var(--white);
    cursor: pointer;
}

.preparation-upload-summary {
    color: var(--purple-dark);
}

.evaluation-qr {
    display: grid;
    gap: 14px;
    margin-bottom: 18px;
    padding: 16px;
    border: 1px solid var(--purple-line);
    border-radius: 8px;
    background: #fdf7ff;
}

.evaluation-qr h3 {
    margin-bottom: 4px;
}

.qr-result {
    display: grid;
    grid-template-columns: 140px minmax(0, 1fr);
    gap: 16px;
    align-items: center;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
}

.qr-result[hidden] {
    display: none;
}

.qr-code-canvas {
    display: grid;
    width: 140px;
    height: 140px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    overflow: hidden;
}

.qr-code-canvas canvas,
.qr-code-canvas img {
    display: block;
    width: 124px !important;
    height: 124px !important;
}

.qr-direct-link {
    display: block;
    max-width: 100%;
    margin-top: 8px;
    padding: 10px 12px;
    border: 1px solid var(--purple-line);
    border-radius: 8px;
    background: var(--purple-soft);
    overflow-wrap: anywhere;
    color: var(--purple-dark);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
}

.qr-direct-link:hover,
.qr-direct-link:focus {
    color: var(--purple);
    background: #fdf7ff;
}

.qr-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

.qr-actions .qr-download-button {
    display: inline-flex;
    width: fit-content;
    min-height: 36px;
    padding: 8px 14px;
    font-size: 13px;
    line-height: 1.2;
}

.evaluation-shell {
    display: grid;
    gap: 18px;
}

.evaluation-hero {
    grid-template-columns: minmax(0, 1.3fr) minmax(220px, 0.7fr);
}

.evaluation-note {
    min-height: 0;
}

.evaluation-form {
    gap: 22px;
}

.evaluation-section {
    display: grid;
    gap: 16px;
    padding-top: 4px;
}

.scale-field,
.recommend-field {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    border: 0;
}

.scale-field legend,
.recommend-field legend {
    color: var(--muted);
    font-size: 14px;
    font-weight: 800;
}

.scale-options {
    display: grid;
    grid-template-columns: repeat(5, minmax(44px, 1fr));
    gap: 7px;
}

.scale-options label {
    display: block;
}

.scale-options input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.scale-options span {
    display: grid;
    min-height: 38px;
    place-items: center;
    border: 1px solid var(--purple-line);
    border-radius: 8px;
    color: var(--purple);
    background: var(--white);
    font-weight: 800;
    cursor: pointer;
}

.scale-options input:checked + span {
    color: var(--white);
    background: var(--purple);
    border-color: var(--purple);
}

.scale-options input:focus + span {
    outline: 3px solid var(--purple-soft);
}

.field-error {
    margin: 0;
    color: #954234;
    font-size: 13px;
    font-weight: 700;
}

.has-error .scale-options span,
.has-error textarea,
.has-error input {
    border-color: var(--coral);
}

.evaluation-thanks {
    min-height: 300px;
    align-content: center;
}

.segmented {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 2px;
    border: 1px solid var(--lime-soft);
    border-radius: 8px;
    background: var(--lime-soft);
}

.segmented span {
    padding: 8px;
    border-radius: 6px;
    color: var(--muted);
    text-align: center;
    font-weight: 800;
}

.segmented span.is-active {
    color: var(--purple);
    background: var(--white);
}

.date-pill {
    display: inline-flex;
    padding: 5px 12px;
    border: 2px solid var(--purple-line);
    border-radius: 999px;
    color: var(--purple);
    font-size: 12px;
    font-weight: 800;
}

.empty-state {
    display: grid;
    min-height: 300px;
    place-items: center;
    color: var(--muted);
    text-align: center;
}

.empty-state strong {
    display: block;
    margin-bottom: 8px;
    color: var(--ink);
    font-size: 28px;
    font-weight: 400;
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 28px;
    background: rgba(42, 36, 44, 0.34);
}

.modal-backdrop.is-open {
    display: flex;
}

.modal-panel {
    width: min(920px, 100%);
    max-height: min(820px, calc(100vh - 56px));
    overflow: auto;
    padding: 26px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 10px;
    box-shadow: 0 30px 80px rgba(45, 38, 48, 0.22);
}

.modal-panel-narrow {
    width: min(720px, 100%);
}

.modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

.modal-header h2 {
    margin-bottom: 6px;
}

.modal-close {
    display: grid;
    width: 38px;
    height: 38px;
    flex: 0 0 auto;
    place-items: center;
    border: 2px solid var(--purple);
    border-radius: 50%;
    color: var(--purple);
    background: var(--white);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.modal-close:hover,
.modal-close:focus {
    color: var(--white);
    background: var(--purple);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.info-tile {
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fcfcfc;
}

.info-tile small {
    display: block;
    margin-bottom: 5px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.modal-section {
    padding: 16px 0;
    border-top: 1px solid var(--line);
}

.modal-section h3 {
    margin-bottom: 8px;
}

.footer {
    width: min(1080px, calc(100% - 32px));
    margin: 20px auto 36px;
    color: var(--muted);
    font-size: 14px;
}

@media (max-width: 900px) {
    .preview-notice {
        align-items: flex-start;
        flex-direction: column;
    }

    .topbar,
    .hero,
    .trainer-login-hero,
    .dashboard-shell,
    .trainer-overview,
    .trainer-overview-grid,
    .commercial-grid,
    .split-panel,
    .preparation-toolbar,
    .preparation-editor-layout,
    .form-row,
    .choice-grid,
    .qr-result,
    .client-upload-card,
    .email-schedule-row,
    .preparation-public-hero {
        grid-template-columns: 1fr;
    }

    .topbar:not(.portal-topbar) {
        align-items: flex-start;
        flex-direction: column;
    }

    .topbar:not(.portal-topbar) .nav {
        width: calc(100% + 32px);
        margin-inline: -16px;
        padding-inline: 16px;
        flex-wrap: nowrap;
        overflow-x: auto;
        overscroll-behavior-inline: contain;
        scrollbar-width: none;
    }

    .topbar:not(.portal-topbar) .nav::-webkit-scrollbar {
        display: none;
    }

    .topbar:not(.portal-topbar) .nav a {
        flex: 0 0 auto;
    }

    .topbar:not(.portal-topbar) .nav-more {
        flex: 0 0 auto;
    }

    .topbar:not(.portal-topbar) .nav-more-menu {
        position: fixed;
        top: auto;
        right: 16px;
        left: 16px;
        margin-top: 6px;
    }

    .topbar:not(.portal-topbar) .user-menu {
        width: 100%;
        justify-content: space-between;
    }

    .topbar:not(.portal-topbar) .user-context {
        text-align: left;
    }

    .portal-header .topbar {
        width: min(100% - 24px, 1180px);
    }

    .perspective-switcher {
        display: flex;
        width: 100%;
        gap: 6px;
        padding: 0 12px 10px;
        overflow-x: auto;
        overscroll-behavior-inline: contain;
        scrollbar-width: none;
        scroll-snap-type: x proximity;
    }

    .perspective-switcher::-webkit-scrollbar {
        display: none;
    }

    .perspective-intro {
        display: none;
    }

    .perspective-option {
        flex: 0 0 154px;
        scroll-snap-align: start;
    }

    h1 {
        font-size: 30px;
    }

    .detail-list {
        grid-template-columns: 1fr;
    }

    .overview-item,
    .agenda-item {
        grid-template-columns: 1fr;
    }

    .overview-meta {
        justify-items: start;
        text-align: left;
    }

    .scale-options { grid-template-columns: repeat(5, minmax(44px, 1fr)); }

    .preparation-status {
        justify-content: flex-start;
    }

    .preparation-side-panel {
        position: static;
    }

    .trainer-login-copy {
        min-height: 0;
        padding: 24px;
    }
}

@media (max-width: 560px) {
    .impersonation-notice {
        align-items: stretch;
        flex-direction: column;
    }

    .impersonation-notice .button {
        width: 100%;
    }

    .portal-header .topbar {
        gap: 8px;
    }

    .portal-topbar .brand {
        min-width: 0;
    }

    .portal-topbar .brand small {
        display: none;
    }

    .portal-topbar .active-context small {
        display: none;
    }

    .portal-topbar .active-context strong {
        max-width: 112px;
        font-size: 12px;
    }

    .portal-topbar .user-menu > .button {
        min-height: 44px;
        padding-inline: 11px;
        font-size: 12px;
    }

    .perspective-switcher {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        overflow: visible;
    }

    .perspective-option {
        display: block;
        min-width: 0;
        min-height: 48px;
        padding: 8px 4px;
        text-align: center;
    }

    .perspective-mark {
        display: none;
    }

    .perspective-option strong {
        font-size: 11px;
    }

    .perspective-option small {
        display: none;
    }

    .container {
        width: min(100% - 24px, 1080px);
        margin-top: 24px;
    }

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

    .management-list-heading,
    .document-row {
        align-items: stretch;
        flex-direction: column;
    }

    .responsive-table {
        overflow: visible;
    }

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

    .responsive-table thead {
        display: none;
    }

    .responsive-table table {
        border: 0;
        background: transparent;
    }

    .responsive-table tr {
        margin-bottom: 12px;
        padding: 14px;
        border: 1px solid var(--line);
        border-radius: 10px;
        background: var(--white);
        box-shadow: 0 8px 24px rgba(45, 38, 48, 0.05);
    }

    .responsive-table td {
        display: grid;
        grid-template-columns: minmax(92px, 0.42fr) minmax(0, 1fr);
        gap: 12px;
        padding: 7px 0;
        border: 0;
    }

    .responsive-table td::before {
        content: attr(data-label);
        color: var(--muted);
        font-size: 11px;
        font-weight: 800;
        letter-spacing: 0.04em;
        text-transform: uppercase;
    }

    .responsive-table td:first-child {
        display: block;
        padding-top: 0;
        font-size: 17px;
    }

    .responsive-table td:first-child::before {
        display: none;
    }

    .responsive-table td:last-child {
        display: block;
        padding-bottom: 0;
    }

    .responsive-table td:last-child::before {
        display: none;
    }

    .table-primary-action {
        width: 100%;
        justify-content: center;
        margin-top: 5px;
        border: 2px solid var(--purple);
        border-radius: 999px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .perspective-option {
        transition: none;
    }
}

/* Extra Trainers huisstijl — afgestemd op preview.extratrainers-support.nl */

body {
    background: var(--band);
}

a {
    color: var(--forest-deep);
}

a:hover {
    color: var(--forest-anchor);
}

a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid rgba(197, 248, 79, 0.72);
    outline-offset: 3px;
}

.topbar,
.portal-header {
    min-height: 80px;
    color: var(--white);
    background: var(--forest-anchor);
    border-bottom-color: rgba(232, 245, 228, 0.14);
    box-shadow: none;
    backdrop-filter: none;
}

.portal-header .topbar {
    background: transparent;
}

.brand {
    min-width: 145px;
    gap: 0;
    color: var(--white);
}

.brand:hover,
.brand:focus {
    color: var(--white);
}

.brand-lockup {
    display: inline-flex;
    align-items: center;
    gap: 9px;
}

.brand-symbol {
    position: relative;
    display: block;
    width: 40px;
    height: 38px;
    flex: 0 0 40px;
}

.brand-symbol i {
    position: absolute;
    display: block;
    width: 17px;
    height: 17px;
    border: 4px solid var(--sage-cta);
    border-radius: 50%;
}

.brand-symbol i:nth-child(1) {
    top: 0;
    left: 50%;
    transform: translateX(-50%);
}

.brand-symbol i:nth-child(2) {
    bottom: 0;
    left: 0;
}

.brand-symbol i:nth-child(3) {
    right: 0;
    bottom: 0;
}

.brand-wordmark {
    display: grid;
    color: var(--white);
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 0.82;
}

.brand-wordmark > span {
    display: block;
}

.nav {
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.nav a,
.nav-more summary {
    border-radius: 6px;
    color: #aebfac;
    font-size: 14px;
    font-weight: 500;
}

.nav a:hover,
.nav a:focus,
.nav a.is-active,
.nav a[aria-current="page"],
.nav-more[open] summary,
.nav-more summary:hover {
    color: var(--sage-cta);
    background: rgba(197, 248, 79, 0.09);
}

.nav-more summary::after {
    color: var(--sage-cta);
}

.nav-more[open] summary::after,
.nav-more summary:hover::after {
    color: var(--forest-anchor);
}

.nav-more-menu {
    border-color: rgba(232, 245, 228, 0.18);
    border-radius: 10px;
    background: var(--forest-anchor);
    box-shadow: 0 20px 44px rgba(10, 30, 14, 0.28);
}

.user-menu {
    color: #c8d7c4;
}

.user-context small,
.active-context small {
    color: var(--sage-cta);
}

.user-context strong,
.active-context strong {
    color: var(--white);
}

.topbar .button-outline,
.portal-header .button-outline {
    color: var(--sage-cta);
    background: transparent;
    border-color: rgba(197, 248, 79, 0.48);
}

.topbar .user-menu form .button-outline,
.portal-header .user-menu form .button-outline {
    color: var(--forest-anchor);
    background: var(--sage-cta);
    border-color: var(--sage-cta);
}

.topbar .button-outline:hover,
.topbar .button-outline:focus,
.portal-header .button-outline:hover,
.portal-header .button-outline:focus {
    color: var(--forest-anchor);
    background: var(--sage-cta);
    border-color: var(--sage-cta);
}

.container {
    width: min(1180px, calc(100% - 40px));
    margin-block: 48px;
}

h1,
h2,
h3,
.stat strong {
    font-family: var(--font-display);
    letter-spacing: -0.025em;
}

h1 {
    color: var(--forest-anchor);
    font-size: clamp(40px, 5vw, 56px);
    font-weight: 800;
    line-height: 1.05;
}

h2 {
    color: var(--forest-anchor);
    font-size: clamp(27px, 3vw, 34px);
    font-weight: 650;
    line-height: 1.15;
}

h3 {
    color: var(--forest-anchor);
    font-weight: 650;
}

.hero,
.panel,
.card {
    border-color: var(--line);
    border-radius: 6px;
}

.hero,
.panel {
    padding: 30px;
}

.panel,
.card {
    background: var(--white);
    box-shadow: 0 14px 34px rgba(22, 52, 27, 0.06);
}

.hero {
    background: var(--mint-surface);
    box-shadow: none;
}

.dashboard-hero {
    position: relative;
    overflow: hidden;
    color: #c8d7c4;
    background:
        radial-gradient(circle at 92% 8%, rgba(197, 248, 79, 0.18), transparent 24rem),
        linear-gradient(135deg, var(--forest-anchor), #214d27);
    border-color: rgba(232, 245, 228, 0.14);
}

.dashboard-hero::after {
    position: absolute;
    right: -72px;
    bottom: -94px;
    width: 250px;
    height: 250px;
    border: 34px solid rgba(197, 248, 79, 0.08);
    border-radius: 50%;
    content: "";
    pointer-events: none;
}

.dashboard-hero > * {
    position: relative;
    z-index: 1;
}

.dashboard-hero h1,
.dashboard-hero h2,
.dashboard-hero h3 {
    color: var(--white);
}

.dashboard-hero .muted {
    color: #c8d7c4;
}

.dashboard-hero .card {
    border-color: rgba(232, 245, 228, 0.18);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: none;
}

.dashboard-hero .button-outline {
    color: var(--forest-anchor);
    background: var(--sage-cta);
    border-color: var(--sage-cta);
}

.dashboard-hero .button-outline:hover,
.dashboard-hero .button-outline:focus {
    color: var(--forest-anchor);
    background: var(--white);
    border-color: var(--white);
}

.eyebrow,
.panel-kicker span:first-child,
.agenda-kind {
    color: var(--forest-deep);
    background: var(--sage-accent);
}

.eyebrow {
    gap: 7px;
    padding: 5px 10px;
    border-radius: 5px;
    letter-spacing: 0.06em;
}

.eyebrow::before {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--forest-deep);
    content: "";
}

.button,
.role-tab {
    min-height: 42px;
    padding: 9px 18px;
    border: 2px solid var(--sage-cta);
    border-radius: 6px;
    color: var(--forest-anchor);
    background: var(--sage-cta);
    font-weight: 700;
    transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.button:hover,
.button:focus,
.role-tab:hover,
.role-tab:focus {
    color: var(--white);
    background: var(--forest-deep);
    border-color: var(--forest-deep);
}

.button:active,
.role-tab:active {
    transform: translateY(1px);
}

.button-outline {
    color: var(--forest-deep);
    background: var(--white);
    border-color: var(--forest-deep);
}

.role-tab.is-active {
    color: var(--forest-anchor);
    background: var(--sage-cta);
    border-color: var(--sage-cta);
}

.badge {
    border-radius: 5px;
    color: var(--forest-deep);
    background: var(--mint-surface);
}

.badge-yellow {
    color: var(--forest-anchor);
    background: var(--sage-accent);
}

.badge-coral {
    color: #8a164f;
    background: #fde3f0;
}

.stat strong {
    color: var(--forest-deep);
}

.overview-item,
.agenda-item,
.action-card,
.mini-list li,
.trainer-login-card {
    border-radius: 6px;
}

.overview-item:hover,
.overview-item:focus,
.agenda-item:hover,
.agenda-item:focus,
.action-card:hover,
.action-card:focus,
.trainer-login-card:hover,
.trainer-login-card:focus,
.trainer-login-card.is-selected {
    border-color: #9fb89c;
    background: #f5faf2;
    box-shadow: 0 12px 30px rgba(22, 52, 27, 0.09);
}

table {
    border-radius: 6px;
}

th {
    color: var(--forest-deep);
    background: var(--mint-surface);
    letter-spacing: 0.045em;
}

.clickable-row:hover td,
.clickable-row:focus-within td {
    background: #f5faf2;
}

.table-primary-action,
.table-action,
.participant-link,
.trainer-login-email {
    color: var(--forest-deep);
}

input,
select,
textarea {
    min-height: 44px;
    border-color: var(--line);
    border-radius: 8px;
    background: #fcfefb;
}

input:hover,
select:hover,
textarea:hover {
    border-color: #9fb89c;
}

input:focus,
select:focus,
textarea:focus {
    outline: 3px solid rgba(197, 248, 79, 0.34);
    border-color: var(--forest-deep);
}

.password-toggle {
    color: var(--forest-anchor);
    background: var(--sage-accent);
}

.alert {
    color: var(--forest-anchor);
    background: var(--sage-accent);
    border-color: #bddd72;
}

.alert-error {
    color: #7c1949;
    background: #fde3f0;
    border-color: #f7b8d7;
}

.preview-notice {
    border-color: #bddd72;
    background: #efffc9;
}

.preview-notice a {
    color: var(--forest-deep);
}

.preview-notice a:hover,
.preview-notice a:focus,
.preview-notice a[aria-current="page"] {
    color: var(--forest-anchor);
    background: var(--sage-cta);
}

.login-shell {
    min-height: calc(100vh - 170px);
    margin: -40px calc(50% - 50vw);
    padding: 64px 20px;
    background:
        radial-gradient(circle at 15% 18%, rgba(197, 248, 79, 0.22), transparent 25rem),
        radial-gradient(circle at 88% 86%, rgba(220, 247, 168, 0.12), transparent 28rem),
        var(--forest-anchor);
}

.login-card {
    width: min(470px, 100%);
    padding: 38px;
    border-color: rgba(232, 245, 228, 0.5);
    border-radius: 6px;
    box-shadow: 0 28px 70px rgba(7, 31, 12, 0.28);
}

.login-card h1 {
    font-size: clamp(40px, 7vw, 54px);
}

.login-card .button {
    margin-top: 4px;
}

.trainer-login-copy {
    color: #c8d7c4;
    background:
        radial-gradient(circle at 90% 10%, rgba(197, 248, 79, 0.17), transparent 18rem),
        var(--forest-anchor);
    border-color: rgba(232, 245, 228, 0.15);
}

.trainer-login-copy h1 {
    color: var(--white);
}

.trainer-login-copy .muted {
    color: #c8d7c4;
}

.profile-photo,
.brand-icon {
    color: var(--forest-anchor);
    background: var(--sage-cta);
}

.meter {
    background: var(--mint-surface);
}

.meter span {
    background: var(--forest-deep);
}

.inline-editor-content,
.client-upload-card {
    border-color: var(--line);
    background: #f5faf2;
}

.footer {
    width: 100%;
    margin: 0;
    padding: 28px max(20px, calc((100% - 1180px) / 2));
    color: #9fb89c;
    background: var(--forest-anchor);
    border-top: 1px solid rgba(232, 245, 228, 0.12);
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.footer-brand {
    transform: scale(0.88);
    transform-origin: left center;
}

.footer span::before {
    display: inline-block;
    width: 7px;
    height: 7px;
    margin-right: 9px;
    border-radius: 50%;
    background: var(--sage-cta);
    content: "";
    vertical-align: 1px;
}

@media (max-width: 760px) {
    .topbar {
        padding-inline: 18px;
    }

    .brand {
        min-width: 0;
    }

    .brand-lockup {
        transform: scale(0.9);
        transform-origin: left center;
    }

    .topbar:not(.portal-topbar) .nav {
        justify-content: flex-start;
    }

    .container {
        width: min(100% - 24px, 1180px);
        margin-block: 32px;
    }

    .hero,
    .panel,
    .login-card {
        padding: 22px;
    }

    .login-shell {
        min-height: calc(100vh - 146px);
        margin-top: -28px;
        padding: 42px 12px;
    }

    .footer-inner {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }
}
