:root {
  color-scheme: light;
  --paper: #fbf8f7;
  --surface: #fffefd;
  --ink: #32242d;
  --muted: #705f68;
  --accent: #8b3767;
  --accent-dark: #6d2850;
  --rose: #dca6c4;
  --blush: #f6eaf1;
  --line: #e9dfe4;
  --line-strong: #d9c9d2;
  --danger: #943d4b;
  --shadow: 0 20px 60px rgba(55, 26, 43, .07);
  --font-body: Candara, "Trebuchet MS", "Segoe UI", sans-serif;
  --font-display: Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { min-width: 320px; min-height: 100vh; margin: 0; color: var(--ink); background: var(--paper); font-family: var(--font-body); font-size: 16px; line-height: 1.55; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }
img { max-width: 100%; }
:focus-visible { outline: 3px solid #b25086; outline-offset: 3px; }
::selection { color: var(--ink); background: #f0c9df; }

.skip-link { position: absolute; z-index: 100; top: -100px; left: 12px; padding: 10px 14px; color: #fff; background: var(--accent-dark); border-radius: 8px; }
.skip-link:focus { top: 12px; }
.page-width { width: min(1140px, calc(100% - 48px)); margin-inline: auto; }
.main-content { padding-top: 54px; padding-bottom: 100px; }

.site-header { background: rgba(255, 254, 253, .95); border-bottom: 1px solid var(--line); }
.site-header__inner { display: flex; align-items: center; min-height: 82px; gap: 36px; }
.brand { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 10px; text-decoration: none; }
.brand__mark { display: block; width: 50px; height: 50px; border-radius: 12px; object-fit: contain; }
.brand__text { display: grid; line-height: 1.14; }
.brand__text strong { color: var(--accent-dark); font-family: var(--font-display); font-size: 21px; font-weight: 600; letter-spacing: -.045em; }
.brand__text small { margin-top: 3px; color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.main-nav { display: flex; align-self: stretch; align-items: center; gap: 6px; margin-left: auto; }
.main-nav__link { display: inline-flex; align-items: center; height: 100%; padding: 4px 15px 0; border-bottom: 3px solid transparent; color: var(--muted); font-size: 14px; font-weight: 700; text-decoration: none; white-space: nowrap; transition: color .18s, border-color .18s; }
.main-nav__link:hover, .main-nav__link.is-active { color: var(--accent-dark); }
.main-nav__link.is-active { border-color: var(--accent); }
.account-menu { display: flex; align-items: center; gap: 14px; margin-left: 18px; }
.account-menu__name { max-width: 160px; overflow: hidden; font-size: 13px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.account-menu form { margin: 0; }
.text-button { padding: 8px 0; border: 0; color: var(--accent-dark); background: transparent; font-size: 13px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.text-button:hover { color: var(--ink); }
.site-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; padding-block: 24px 34px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }

.flash-stack { display: grid; gap: 8px; padding-top: 16px; }
.flash { padding: 12px 16px; border: 1px solid var(--line-strong); border-radius: 12px; background: #fff; font-weight: 600; }
.flash--success { border-color: #c8dfd2; color: #22583e; background: #f0f8f2; }
.flash--error { border-color: #e3c3c9; color: #83323d; background: #fdf0f2; }

h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 500; letter-spacing: -.045em; line-height: 1.13; }
h1 { font-size: clamp(38px, 4.2vw, 58px); }
h2 { font-size: clamp(28px, 3vw, 37px); }
h3 { font-size: 25px; }
.eyebrow { margin-bottom: 11px; color: var(--accent); font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 13px; min-height: 45px; padding: 10px 17px; border: 1px solid transparent; border-radius: 8px; font-size: 14px; font-weight: 800; line-height: 1.2; text-align: center; text-decoration: none; white-space: nowrap; transition: background .18s, color .18s, border-color .18s, transform .18s, box-shadow .18s; }
.button:hover { transform: translateY(-2px); }
.button:active { transform: translateY(0); }
.button span { font-size: 18px; font-weight: 400; line-height: 1; }
.button--primary { color: #fff; background: var(--accent); box-shadow: 0 6px 14px rgba(139, 55, 103, .12); }
.button--primary:hover { background: var(--accent-dark); box-shadow: 0 10px 18px rgba(139, 55, 103, .18); }
.button--outline { border-color: var(--line-strong); color: var(--accent-dark); background: var(--surface); }
.button--outline:hover { border-color: var(--accent); background: var(--blush); }
.button--danger { color: #fff; background: var(--danger); }
.button--danger:hover { background: #782e3b; }
.button--full { width: 100%; }

.page-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 42px; }
.page-heading h1 { margin-bottom: 12px; }
.page-heading__detail { max-width: 570px; margin-bottom: 0; color: var(--muted); font-size: 16px; }
.page-heading__actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 9px; }
.breadcrumb { display: flex; align-items: center; gap: 10px; margin: -13px 0 29px; color: var(--muted); font-size: 13px; }
.breadcrumb a { color: var(--accent-dark); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span[aria-hidden] { opacity: .5; }

.month-controls { display: grid; grid-template-columns: 48px 1fr 48px; align-items: center; width: min(470px, 100%); margin: 0 auto 27px; text-align: center; }
.month-controls__arrow { display: grid; place-items: center; width: 46px; height: 46px; border: 1px solid var(--line-strong); border-radius: 50%; background: var(--surface); color: var(--accent-dark); font-size: 21px; text-decoration: none; transition: background .18s, transform .18s; }
.month-controls__arrow:hover { background: var(--blush); transform: scale(1.05); }
.month-controls__current h2 { margin: 0; font-size: 29px; text-transform: capitalize; }
.month-controls__kicker { display: block; margin-bottom: 4px; color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.month-controls__picker { display: flex; align-items: center; justify-content: center; gap: 7px; margin: 13px auto 0; }
.month-controls__picker label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.month-controls__picker input { width: 155px; min-width: 0; min-height: 37px; padding: 5px 8px; border: 1px solid var(--line-strong); border-radius: 7px; color: var(--ink); background: var(--surface); font-size: 13px; font-variant-numeric: tabular-nums; }
.month-controls__picker input:focus { border-color: var(--accent); outline: 3px solid rgba(139, 55, 103, .14); outline-offset: 1px; }
.month-controls__picker button { min-height: 37px; padding: 5px 12px; border: 1px solid var(--accent); border-radius: 7px; color: var(--accent-dark); background: var(--blush); font-size: 12px; font-weight: 800; }
.month-controls__picker button:hover { background: #edd6e2; }

.totals-bar { position: sticky; z-index: 20; top: 0; display: flex; align-items: stretch; width: min(600px, 100%); min-height: 98px; margin: 0 auto 61px; overflow: hidden; border: 1px solid #dbc7d3; border-radius: 12px; background: #fff; box-shadow: 0 14px 35px rgba(80, 34, 60, .12); }
.totals-bar__item { display: flex; flex: 1; flex-direction: column; justify-content: center; min-width: 0; padding: 14px 26px; }
.totals-bar__item:first-child { background: var(--blush); }
.totals-bar__item span { color: var(--muted); font-size: 12px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.totals-bar__item strong { margin-top: 4px; color: var(--accent-dark); font-family: var(--font-display); font-size: 32px; font-weight: 500; letter-spacing: -.04em; line-height: 1.1; }
.totals-bar__divider { width: 1px; background: var(--line); }

.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 21px; }
.section-heading h2 { margin: 0; }
.section-heading__count { flex: 0 0 auto; margin-bottom: 4px; color: var(--muted); font-size: 13px; font-weight: 700; }
.session-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.session-card { display: grid; grid-template-columns: 72px minmax(0, 1fr); grid-template-rows: 1fr auto; min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); box-shadow: 0 4px 15px rgba(55, 26, 43, .025); transition: border-color .18s, transform .18s; }
.session-card:hover { border-color: #d7bccd; transform: translateY(-2px); }
.session-card__date { display: flex; grid-row: 1 / span 2; flex-direction: column; align-items: center; padding-top: 18px; border-right: 1px solid var(--line); background: #faf3f7; }
.session-card__date span { color: var(--accent-dark); font-family: var(--font-display); font-size: 36px; line-height: 1; }
.session-card__date small { margin-top: 6px; color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.session-card__body { min-width: 0; padding: 15px 17px 2px; }
.session-card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 9px; margin-bottom: 8px; }
.time-pill { display: inline-block; padding: 4px 9px; border-radius: 5px; color: var(--accent-dark); background: var(--blush); font-size: 13px; font-weight: 800; font-variant-numeric: tabular-nums; }
.duration-pill { color: var(--accent-dark); font-size: 12px; font-weight: 800; white-space: nowrap; }
.session-card__trainer { color: var(--muted); font-size: 13px; font-weight: 700; }
.session-card__body p { margin: 0; overflow-wrap: anywhere; font-size: 14px; line-height: 1.45; }
.session-card__actions { display: flex; grid-column: 2; align-items: center; gap: 8px; padding: 7px 13px 11px; }
.session-card__actions a { display: inline-flex; align-items: center; min-height: 34px; padding: 4px; border-radius: 5px; color: var(--accent-dark); font-size: 13px; font-weight: 800; text-decoration: none; }
.session-card__actions a:last-child { color: var(--danger); }
.session-card__actions a:hover { background: var(--blush); text-decoration: underline; text-underline-offset: 3px; }

.empty-state { display: flex; flex-direction: column; align-items: center; padding: 70px 25px; border: 1px dashed #d8bccc; border-radius: 14px; background: #fffdfd; text-align: center; }
.empty-state__symbol { display: grid; place-items: center; width: 66px; height: 66px; margin-bottom: 23px; border-radius: 50%; color: var(--accent); background: var(--blush); font-size: 30px; }
.empty-state h3 { margin-bottom: 9px; }
.empty-state p { max-width: 360px; margin-bottom: 24px; color: var(--muted); }

.overview-banner { display: flex; align-items: center; gap: 30px; min-height: 150px; margin-bottom: 57px; padding: 27px 35px; border-radius: 12px; color: #fff; background: #44313b; box-shadow: var(--shadow); }
.overview-banner > div { display: flex; flex: 0 0 210px; flex-direction: column; padding-right: 25px; border-right: 1px solid rgba(255, 255, 255, .28); }
.overview-banner__label { color: #eed4e3; font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.overview-banner strong { margin-top: 5px; font-family: var(--font-display); font-size: 52px; font-weight: 400; line-height: 1; }
.overview-banner p { max-width: 500px; margin: 0; color: #f1e8ed; font-size: 16px; }
.person-list { display: grid; gap: 10px; }
.person-row { display: flex; align-items: center; gap: 17px; min-height: 84px; padding: 14px 22px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); text-decoration: none; transition: border-color .18s, transform .18s; }
a.person-row:hover { border-color: #d7b8ca; transform: translateX(3px); }
.person-row__avatar { display: grid; flex: 0 0 44px; place-items: center; width: 44px; height: 44px; border-radius: 12px; color: var(--accent-dark); background: var(--blush); font-family: var(--font-display); font-size: 24px; }
.person-row__identity { display: flex; flex: 1; flex-direction: column; min-width: 0; line-height: 1.35; }
.person-row__identity strong { overflow: hidden; font-size: 16px; text-overflow: ellipsis; white-space: nowrap; }
.person-row__identity small { overflow: hidden; margin-top: 3px; color: var(--muted); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.person-row__total { display: flex; flex: 0 0 auto; flex-direction: column; align-items: end; margin-right: 20px; line-height: 1.2; }
.person-row__total small { color: var(--muted); font-size: 11px; }
.person-row__total strong { margin-top: 4px; color: var(--accent-dark); font-family: var(--font-display); font-size: 20px; font-weight: 500; }
.person-row__manage { display: flex; flex: 0 0 auto; flex-direction: column; align-items: flex-end; gap: 1px; margin-left: auto; }
.person-row__cta { flex: 0 0 auto; color: var(--accent-dark); font-size: 13px; font-weight: 800; text-decoration: none; }
.person-row__cta span { margin-left: 6px; font-size: 17px; }
.person-row__cta:hover { text-decoration: underline; }
.person-row__archive { color: var(--danger); font-size: 12px; font-weight: 700; text-decoration: none; }
.person-row__archive:hover { text-decoration: underline; text-underline-offset: 3px; }
.person-row__invites { display: flex; flex: 0 1 auto; flex-wrap: wrap; align-items: center; gap: 0 14px; }
.person-row__invites form { margin: 0; }
.person-row__invites .text-button { white-space: nowrap; }
.role-badge, .status-badge { flex: 0 0 auto; padding: 4px 8px; border-radius: 5px; color: #71485d; background: #f6eaf0; font-size: 11px; font-weight: 800; }
.role-badge--admin { color: #503847; background: #ebe2e8; }
.role-badge--student { color: #425c53; background: #e7f1ea; }
.status-badge { color: #8a4e33; background: #fbecdf; }
.status-badge--archived { color: #674b5e; background: #ece5e9; }
.person-row--archived { border-color: #ded2da; background: #fffdfd; }
.person-row--archived .person-row__avatar { color: #664c5e; background: #eee7eb; }
.person-row__manage form { margin: 0; }
.person-row__restore { padding-block: 4px; font-size: 12px; }
.archive-notice { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0 0 30px; padding: 15px 19px; border: 1px solid #d9c9d2; border-radius: 10px; background: #f3ecf0; }
.archive-notice strong { color: var(--accent-dark); font-size: 15px; }
.archive-notice p { margin: 3px 0 0; color: var(--muted); font-size: 13px; }
.archive-notice a { flex: 0 0 auto; color: var(--accent-dark); font-size: 13px; font-weight: 800; text-decoration: none; }
.archive-notice a:hover { text-decoration: underline; text-underline-offset: 3px; }
.archive-overview { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: -6px 0 50px; }
.archive-overview > div { display: flex; flex-direction: column; gap: 2px; padding: 20px 23px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.archive-overview span { color: var(--muted); font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.archive-overview strong { color: var(--accent-dark); font-family: var(--font-display); font-size: 35px; font-weight: 500; line-height: 1.15; }
.archive-section { margin-bottom: 52px; }
.archive-session-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.archive-record { min-width: 0; padding: 18px 20px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.archive-record__header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 7px; }
.archive-record__header h3 { margin: 0; font-size: 21px; }
.archive-record__meta { margin: 11px 0 8px; color: var(--muted); font-size: 12px; font-weight: 700; }
.archive-record__body { margin: 0; overflow-wrap: anywhere; font-size: 14px; }
.archive-empty { margin: 0; padding: 26px; border: 1px dashed var(--line-strong); border-radius: 10px; color: var(--muted); background: var(--surface); text-align: center; }
.archive-pagination { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.archive-pagination span { color: var(--muted); font-size: 13px; font-weight: 700; }
.decision-panel__symbol--archive { color: var(--accent-dark); background: var(--blush); font-size: 34px; }
.decision-panel__supporting { font-size: 13px; }
.invitation-notice { display: grid; gap: 16px; margin: 0 0 42px; padding: 25px 28px; border: 1px solid #d7bccb; border-radius: 12px; background: #f9f0f5; }
.invitation-notice h2 { margin-bottom: 7px; font-size: 27px; }
.invitation-notice p:last-child { max-width: 650px; margin: 0; color: var(--muted); font-size: 14px; }
.copy-field { display: flex; gap: 8px; width: 100%; }
.copy-field input { flex: 1; min-width: 0; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: 7px; color: var(--ink); background: #fff; font-size: 13px; }
.invitation-panel { text-align: center; }
.invitation-panel h1 { margin-bottom: 14px; font-size: clamp(31px, 4vw, 43px); }
.invitation-panel > p:not(.eyebrow) { margin-bottom: 24px; color: var(--muted); }
.invitation-panel .copy-field { margin-bottom: 25px; }
.audit-list { display: grid; gap: 0; padding-left: 23px; border-left: 1px solid var(--line-strong); }
.audit-card { position: relative; padding: 0 0 20px 24px; }
.audit-card__marker { position: absolute; top: 20px; left: -30px; width: 12px; height: 12px; border: 3px solid var(--accent); border-radius: 50%; background: var(--paper); }
.audit-card__content { padding: 22px 25px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.audit-card__top { display: flex; justify-content: space-between; gap: 14px; }
.audit-card__top h2, .audit-card__top h3 { margin: 8px 0 3px; font-size: 24px; }
.audit-card__top time { color: var(--muted); font-size: 12px; white-space: nowrap; }
.audit-card__actor { margin-bottom: 12px; color: var(--muted); font-size: 13px; }
.audit-badge { display: inline-block; padding: 3px 7px; border-radius: 4px; color: #315745; background: #e7f3eb; font-size: 11px; font-weight: 800; }
.audit-badge--updated { color: #755b2d; background: #faf0d9; }
.audit-badge--deleted { color: #823841; background: #fae9ec; }
.audit-card__details summary { color: var(--accent-dark); font-size: 13px; font-weight: 800; cursor: pointer; }
.audit-card__versions { display: grid; gap: 12px; margin-top: 13px; }
.audit-card__versions > div { padding: 13px; border-radius: 7px; background: #f8f4f6; }
.audit-card__versions strong, .audit-card__versions span { display: block; }
.audit-card__versions strong { margin-bottom: 3px; color: var(--accent-dark); font-size: 12px; text-transform: uppercase; }
.audit-card__versions span { color: var(--muted); font-size: 12px; }
.audit-card__versions p { margin: 8px 0 0; font-size: 13px; overflow-wrap: anywhere; }

.form-page { width: min(680px, 100%); margin: 0 auto; }
.form-page--narrow { width: min(560px, 100%); }
.form-page--public { padding-top: 40px; }
.back-link { display: inline-block; margin-bottom: 34px; color: var(--accent-dark); font-size: 14px; font-weight: 800; text-decoration: none; }
.back-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.form-page__heading { margin-bottom: 30px; }
.form-page__heading h1 { margin-bottom: 12px; }
.form-page__heading > p:last-child { max-width: 540px; margin-bottom: 0; color: var(--muted); }
.form-panel { padding: 36px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: var(--shadow); }
.stacked-form { display: grid; gap: 19px; }
.field { display: grid; gap: 7px; min-width: 0; }
.field label { color: var(--ink); font-size: 14px; font-weight: 800; }
.field input:not([type="checkbox"]):not([type="hidden"]), .field select, .field textarea, .stacked-form input:not([type="checkbox"]):not([type="hidden"]), .stacked-form select, .stacked-form textarea { display: block; width: 100%; min-height: 47px; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: 7px; color: var(--ink); background: #fff; font-size: 15px; outline: none; transition: border-color .18s, box-shadow .18s; }
.field textarea, .stacked-form textarea { min-height: 125px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus, .stacked-form input:focus, .stacked-form select:focus, .stacked-form textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(139, 55, 103, .12); }
.field input[aria-invalid="true"], .field select[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--danger); }
.field__help { display: block; color: var(--muted); font-size: 12px; line-height: 1.45; }
.field__help ul { margin: 6px 0 0; padding-left: 18px; }
.field__error { display: block; color: var(--danger); font-size: 12px; font-weight: 800; }
.field--checkbox { display: flex; align-items: start; gap: 10px; }
.field--checkbox input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--accent); }
.field--checkbox .field__help, .field--checkbox .field__error { flex-basis: 100%; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-alert { padding: 12px 14px; border: 1px solid #e3c3c9; border-radius: 7px; color: #83323d; background: #fdf0f2; font-size: 13px; }
.form-alert ul { margin: 0; padding-left: 18px; }
.form-panel__actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 9px; margin-top: 13px; }
.decision-panel { text-align: center; }
.decision-panel__symbol { display: grid; place-items: center; width: 66px; height: 66px; margin: 0 auto 23px; border-radius: 50%; color: var(--danger); background: #faedf0; font-size: 37px; line-height: 1; }
.decision-panel__symbol--success { color: #376c52; background: #e7f3eb; font-size: 30px; }
.decision-panel h1 { margin-bottom: 16px; font-size: clamp(31px, 4vw, 42px); }
.decision-panel > p:not(.eyebrow) { margin-bottom: 26px; color: var(--muted); }
.decision-panel .form-panel__actions { justify-content: center; }
.deletion-subject { display: flex; flex-direction: column; align-items: center; gap: 4px; margin: 0 0 25px; padding: 17px 20px; border: 1px solid var(--line); border-radius: 9px; background: var(--paper); overflow-wrap: anywhere; }
.deletion-subject strong { font-size: 17px; }
.deletion-subject > span:not(.role-badge) { color: var(--muted); font-size: 13px; }
.deletion-subject .role-badge { margin-top: 5px; }

.auth-page { display: flex; flex-direction: column; min-height: 100vh; background: #f8f3f5; }
.auth-page .site-footer { border-top: 0; }
.auth-shell { display: grid; grid-template-columns: minmax(340px, 1fr) minmax(370px, 1fr); width: min(1110px, calc(100% - 48px)); min-height: min(720px, calc(100vh - 120px)); margin: auto; padding-block: 38px; }
.auth-intro { position: relative; display: flex; flex-direction: column; justify-content: center; overflow: hidden; padding: 50px 63px 65px; border-radius: 17px 0 0 17px; color: #fff; background: #49313e; }
.auth-intro::before, .auth-intro::after { position: absolute; width: 300px; height: 300px; border: 1px solid rgba(255, 215, 237, .22); border-radius: 50%; content: ""; pointer-events: none; }
.auth-intro::before { top: -130px; right: -95px; box-shadow: 0 0 0 65px rgba(255, 215, 237, .035), 0 0 0 130px rgba(255, 215, 237, .025); }
.auth-intro::after { bottom: -250px; left: -80px; width: 450px; height: 450px; }
.auth-intro__topline { display: flex; align-items: center; gap: 11px; color: #f0cfdf; font-size: 12px; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.decor-line { width: 25px; height: 1px; background: #f0cfdf; }
.auth-intro__logo { z-index: 1; width: 145px; height: 145px; margin: 62px 0 45px; border: 8px solid rgba(255, 255, 255, .92); border-radius: 21px; object-fit: contain; background: #fff; box-shadow: 0 15px 25px rgba(25, 14, 22, .18); }
.auth-intro h1 { z-index: 1; margin-bottom: 20px; font-size: clamp(40px, 4.5vw, 60px); line-height: 1.09; }
.auth-intro h1 em { color: #efd0e1; font-style: italic; font-weight: 400; }
.auth-intro > p { z-index: 1; max-width: 360px; margin-bottom: 40px; color: #e7d8df; font-size: 16px; }
.auth-intro__motif { display: flex; gap: 9px; }
.auth-intro__motif span { display: grid; place-items: center; width: 28px; height: 28px; border: 1px solid rgba(255, 255, 255, .24); border-radius: 50%; color: #e3c9d8; font-size: 10px; }
.auth-intro__motif span:first-child { color: var(--ink); background: #edc8dd; }
.auth-card { display: flex; flex-direction: column; justify-content: center; padding: 60px clamp(35px, 5vw, 75px); border: 1px solid var(--line); border-left: 0; border-radius: 0 17px 17px 0; background: var(--surface); box-shadow: var(--shadow); }
.auth-card h2 { margin-bottom: 12px; font-size: 46px; }
.auth-card__intro { max-width: 380px; margin-bottom: 28px; color: var(--muted); }
.role-picker { display: grid; grid-template-columns: repeat(2, 1fr); gap: 7px; }
.role-picker__button { display: flex; flex-direction: column; align-items: center; gap: 4px; min-height: 76px; padding: 9px 5px; border: 1px solid var(--line-strong); border-radius: 8px; color: var(--muted); background: #fff; font-size: 12px; font-weight: 800; transition: color .18s, border-color .18s, background .18s; }
.role-picker__button:hover, .role-picker__button[aria-pressed="true"] { border-color: var(--accent); color: var(--accent-dark); background: var(--blush); }
.role-picker__icon { font-size: 19px; line-height: 1.2; }
.role-picker__hint { margin: 10px 0 24px; color: var(--muted); font-size: 11px; }
.auth-card .stacked-form { gap: 17px; }
.auth-card__forgot { align-self: flex-start; margin-top: 19px; color: var(--accent-dark); font-size: 13px; font-weight: 800; text-decoration: none; }
.auth-card__forgot:hover { text-decoration: underline; }
.auth-card__admin-entry { align-self: flex-end; margin-top: auto; padding-top: 30px; color: var(--muted); font-size: 11px; font-weight: 700; text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
.auth-card__admin-entry:hover { color: var(--accent-dark); text-decoration-color: currentColor; }

@media (max-width: 900px) {
  .site-header__inner { gap: 16px; }
  .account-menu { margin-left: 0; }
  .account-menu__name { display: none; }
  .auth-intro { padding-inline: 38px; }
  .auth-card { padding-inline: 38px; }
  .person-row { flex-wrap: wrap; }
  .person-row__invites { margin-left: 61px; }
  .person-row__manage { margin-left: auto; }
}

@media (max-width: 759px) {
  .session-list { grid-template-columns: minmax(0, 1fr); }
  .archive-session-list { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 700px) {
  .page-width { width: min(100% - 32px, 1140px); }
  .main-content { padding-top: 34px; padding-bottom: 70px; }
  .site-header__inner { flex-wrap: wrap; align-content: center; justify-content: space-between; gap: 0 12px; min-height: 108px; padding-block: 10px; }
  .brand__mark { width: 42px; height: 42px; }
  .brand__text strong { font-size: 18px; }
  .brand__text small { font-size: 9px; }
  .main-nav { order: 3; align-self: auto; flex-wrap: nowrap; width: 100%; min-width: 0; height: 42px; gap: 14px; margin: 5px 0 -10px; overflow-x: auto; overflow-y: hidden; overscroll-behavior-inline: contain; scrollbar-color: var(--line-strong) transparent; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
  .main-nav__link { flex: 0 0 auto; padding: 0 1px; font-size: 13px; }
  .account-menu { margin-left: auto; }
  .text-button { font-size: 12px; }
  .page-heading { align-items: start; flex-direction: column; gap: 22px; margin-bottom: 36px; }
  .page-heading h1 { margin-bottom: 8px; }
  .page-heading__actions { justify-content: flex-start; }
  .month-controls { margin-bottom: 21px; }
  .month-controls__current h2 { font-size: 25px; }
  .totals-bar { min-height: 81px; margin-bottom: 42px; }
  .totals-bar__item { padding: 13px 15px; }
  .totals-bar__item span { font-size: 10px; }
  .totals-bar__item strong { font-size: 25px; }
  .session-card { grid-template-columns: 70px 1fr; }
  .session-card__date { grid-row: 1 / span 2; }
  .session-card__date span { font-size: 32px; }
  .session-card__date small { font-size: 9px; }
  .session-card__body { padding: 14px 15px 2px; }
  .session-card__actions { padding: 6px 11px 10px; }
  .session-card__actions a { min-height: 40px; }
  .overview-banner { gap: 15px; padding: 24px; }
  .overview-banner > div { flex-basis: 120px; }
  .overview-banner strong { font-size: 43px; }
  .audit-card__top { flex-direction: column; gap: 3px; }
  .archive-notice { align-items: flex-start; flex-direction: column; }
  .auth-shell { grid-template-columns: 1fr; width: min(520px, calc(100% - 28px)); padding-block: 16px; }
  .auth-intro { min-height: 250px; padding: 30px 34px; border-radius: 14px 14px 0 0; }
  .auth-intro__logo { width: 77px; height: 77px; margin: 25px 0 13px; border-width: 4px; border-radius: 11px; }
  .auth-intro h1 { margin-bottom: 6px; font-size: 32px; }
  .auth-intro > p, .auth-intro__motif { display: none; }
  .auth-card { padding: 32px 30px 38px; border: 1px solid var(--line); border-top: 0; border-radius: 0 0 14px 14px; }
  .auth-card h2 { font-size: 35px; }
  .auth-card__intro { margin-bottom: 18px; }
}

@media (max-width: 440px) {
  .page-width { width: min(100% - 28px, 1140px); }
  .main-nav { gap: 10px; }
  .button { min-height: 43px; padding-inline: 13px; font-size: 12px; }
  .page-heading__actions { width: 100%; }
  .page-heading--dashboard .page-heading__actions .button--primary { width: 100%; }
  .month-controls { grid-template-columns: 42px 1fr 42px; }
  .month-controls__arrow { width: 40px; height: 40px; }
  .month-controls__current h2 { font-size: 22px; }
  .month-controls__picker input { width: 137px; }
  .month-controls__picker button { padding-inline: 9px; }
  .section-heading { align-items: start; flex-direction: column; gap: 5px; }
  .section-heading h2 { font-size: 29px; }
  .session-card__trainer { display: block; }
  .session-card__body p { font-size: 14px; }
  .person-row { flex-wrap: wrap; gap: 10px; padding: 13px; }
  .person-row__identity { flex-basis: calc(100% - 55px); }
  .person-row__total { flex-basis: calc(100% - 55px); align-items: start; margin: 0 0 0 55px; }
  .person-row__manage { margin-left: auto; }
  .person-row__invites { margin-left: 55px; }
  .role-badge { margin-left: 55px; }
  .person-row--archived .role-badge { margin-left: 55px; }
  .person-row--archived .status-badge { margin-left: 0; }
  .archive-overview { gap: 8px; margin-bottom: 36px; }
  .archive-overview > div { padding: 15px; }
  .archive-overview span { font-size: 10px; }
  .archive-overview strong { font-size: 29px; }
  .archive-record { padding: 15px; }
  .overview-banner { align-items: start; flex-direction: column; gap: 17px; }
  .overview-banner > div { flex: auto; width: 100%; padding: 0 0 14px; border: 0; border-bottom: 1px solid rgba(255, 255, 255, .28); }
  .form-panel { padding: 24px 18px; }
  .field-row { grid-template-columns: 1fr; }
  .form-panel__actions { flex-direction: column-reverse; }
  .form-panel__actions .button { width: 100%; }
  .auth-card { padding-inline: 21px; }
  .auth-intro { padding-inline: 24px; }
  .role-picker { gap: 5px; }
  .role-picker__button { min-height: 65px; font-size: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
