:root {
    color-scheme: light;

    --brand-navy-950: #071a2b;
    --brand-navy-900: #0d2740;
    --brand-navy-800: #143954;
    --brand-navy-700: #1e4d6c;
    --brand-orange-600: #e85d12;
    --brand-orange-500: #f36c21;
    --brand-orange-100: #fff0e7;
    --brand-gold: #f1b83c;
    --success-700: #08775b;
    --success-100: #e5f7f1;
    --danger-700: #a13737;
    --danger-100: #fff0ef;
    --blue-100: #e8f2fb;
    --ink-950: #102233;
    --ink-800: #263b4c;
    --ink-600: #5b6d7b;
    --ink-500: #71818d;
    --surface: #fff;
    --surface-soft: #f7f9fa;
    --canvas: #f2f5f7;
    --line: #dde5ea;
    --line-strong: #ccd8df;
    --sidebar-width: 286px;
    --topbar-height: 76px;
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 22px;
    --shadow-sm: 0 1px 2px rgb(12 38 61 / 4%), 0 4px 14px rgb(12 38 61 / 4%);
    --shadow-md: 0 12px 36px rgb(12 38 61 / 9%);
    --shadow-lg: 0 24px 70px rgb(7 26 43 / 20%);
    --transition: 180ms cubic-bezier(.2, .75, .25, 1);
}

* {
    box-sizing: border-box;
}

html {
    min-width: 320px;
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
    margin: 0;
    color: var(--ink-950);
    background: var(--canvas);
    font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 15px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

button,
input,
select {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

a {
    color: inherit;
}

button {
    color: inherit;
}

:focus-visible {
    outline: 3px solid rgb(243 108 33 / 50%);
    outline-offset: 3px;
}

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

.skip-link {
    position: fixed;
    z-index: 2000;
    top: 12px;
    left: 12px;
    padding: 10px 14px;
    color: #fff;
    background: var(--brand-orange-600);
    border-radius: 8px;
    transform: translateY(-150%);
}

.skip-link:focus {
    transform: translateY(0);
}

.icon {
    display: block;
    flex: 0 0 auto;
}

.portal-shell {
    min-height: 100vh;
}

.portal-sidebar {
    position: fixed;
    z-index: 100;
    inset: 0 auto 0 0;
    display: flex;
    width: var(--sidebar-width);
    flex-direction: column;
    color: rgb(255 255 255 / 88%);
    background:
        radial-gradient(circle at 20% 0, rgb(47 95 128 / 34%), transparent 34%),
        linear-gradient(180deg, var(--brand-navy-900), var(--brand-navy-950));
    box-shadow: 10px 0 34px rgb(6 23 38 / 12%);
}

.sidebar-brand {
    display: flex;
    min-height: var(--topbar-height);
    align-items: center;
    justify-content: space-between;
    padding: 0 26px;
    border-bottom: 1px solid rgb(255 255 255 / 8%);
}

.sidebar-brand a {
    display: inline-flex;
}

.sidebar-brand img {
    display: block;
    width: 150px;
    height: auto;
}

.company-switcher {
    display: grid;
    gap: 3px;
    margin: 24px 18px 16px;
    padding: 16px;
    background: rgb(255 255 255 / 7%);
    border: 1px solid rgb(255 255 255 / 10%);
    border-radius: 14px;
}

.company-switcher-label,
.navigation-label {
    color: rgb(255 255 255 / 50%);
    font-size: .69rem;
    font-weight: 750;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.company-switcher strong {
    overflow: hidden;
    color: #fff;
    font-size: .93rem;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.company-switcher-reference {
    overflow: hidden;
    color: rgb(255 255 255 / 58%);
    font-size: .69rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.company-switcher-status {
    display: flex;
    gap: 7px;
    align-items: center;
    margin-top: 6px;
    color: rgb(255 255 255 / 62%);
    font-size: .75rem;
}

.company-switcher-status i,
.availability-legend i,
.advisor-status i,
.availability-pill i {
    width: 7px;
    height: 7px;
    background: #43d29e;
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgb(67 210 158 / 12%);
}

.sidebar-company-menu {
    position: relative;
    margin-top: 9px;
    padding-top: 11px;
    border-top: 1px solid rgb(255 255 255 / 10%);
}

.sidebar-company-trigger {
    display: grid;
    width: 100%;
    min-height: 48px;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 9px;
    align-items: center;
    padding: 7px 9px;
    color: #fff;
    background: rgb(4 23 39 / 42%);
    border: 1px solid rgb(255 255 255 / 14%);
    border-radius: 9px;
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: border-color var(--transition), background var(--transition), box-shadow var(--transition);
}

.sidebar-company-trigger:hover,
.sidebar-company-trigger:focus-visible,
.sidebar-company-menu.is-open .sidebar-company-trigger {
    background: rgb(4 23 39 / 62%);
    border-color: rgb(241 184 60 / 85%);
    outline: 0;
    box-shadow: 0 0 0 3px rgb(241 184 60 / 13%);
}

.sidebar-company-icon {
    display: grid;
    width: 30px;
    height: 30px;
    color: var(--brand-gold);
    background: rgb(241 184 60 / 12%);
    border-radius: 8px;
    place-items: center;
}

.sidebar-company-copy {
    display: grid;
    min-width: 0;
    gap: 1px;
}

.company-switcher :where(.sidebar-company-copy strong) {
    overflow: hidden;
    color: #fff;
    font-size: .76rem;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sidebar-company-copy small {
    overflow: hidden;
    color: rgb(255 255 255 / 58%);
    font-size: .65rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sidebar-company-chevron {
    display: grid;
    color: rgb(255 255 255 / 72%);
    place-items: center;
    transition: transform var(--transition);
}

.sidebar-company-menu.is-open .sidebar-company-chevron {
    transform: rotate(180deg);
}

.sidebar-company-menu .company-switcher-status {
    margin: 8px 2px 0;
    font-size: .68rem;
}

.sidebar-company-options {
    top: calc(100% + 8px);
    right: auto;
    left: 0;
    width: min(360px, calc(100vw - 32px));
    max-height: min(390px, calc(100vh - 190px));
}

.sidebar-company-options :where(.company-option) {
    color: var(--brand-navy-900);
}

.sidebar-company-options :where(.company-option-copy strong) {
    color: inherit;
}

.sidebar-company-options :where(.company-option-copy small) {
    color: var(--ink-500);
}

.sidebar-company-options :where(button.company-option) {
    cursor: pointer;
}

.sidebar-navigation {
    display: grid;
    gap: 5px;
    padding: 10px 16px;
}

.navigation-label {
    padding: 10px 12px 7px;
}

.navigation-label-secondary {
    margin-top: 18px;
}

.sidebar-navigation a {
    position: relative;
    display: flex;
    min-height: 48px;
    gap: 13px;
    align-items: center;
    padding: 11px 13px;
    color: rgb(255 255 255 / 70%);
    border-radius: 11px;
    font-weight: 600;
    text-decoration: none;
    transition: color var(--transition), background var(--transition), transform var(--transition);
}

:where(.sidebar-navigation a:hover) {
    color: #fff;
    background: rgb(255 255 255 / 7%);
    transform: translateX(2px);
}

.sidebar-navigation a.is-active {
    color: #fff;
    background: linear-gradient(100deg, rgb(243 108 33 / 98%), rgb(232 93 18 / 94%));
    box-shadow: 0 10px 24px rgb(232 93 18 / 20%);
}

.sidebar-navigation a.is-active::before {
    position: absolute;
    left: -16px;
    width: 3px;
    height: 24px;
    content: "";
    background: var(--brand-gold);
    border-radius: 0 3px 3px 0;
}

.sidebar-footer {
    display: grid;
    gap: 12px;
    margin-top: auto;
    padding: 18px;
    border-top: 1px solid rgb(255 255 255 / 8%);
}

.sidebar-user {
    display: flex;
    min-width: 0;
    gap: 11px;
    align-items: center;
}

.user-avatar,
.topbar-avatar {
    display: grid;
    flex: 0 0 auto;
    color: var(--brand-navy-900);
    background: linear-gradient(145deg, #f7c862, var(--brand-gold));
    border-radius: 11px;
    font-weight: 800;
    place-items: center;
}

.user-avatar {
    width: 38px;
    height: 38px;
}

.user-copy {
    display: grid;
    min-width: 0;
}

.user-copy strong,
.user-copy small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-copy strong {
    color: #fff;
    font-size: .83rem;
}

.user-copy small {
    color: rgb(255 255 255 / 50%);
    font-size: .7rem;
}

.logout-link {
    display: flex;
    min-height: 42px;
    gap: 10px;
    align-items: center;
    padding: 9px 12px;
    color: rgb(255 255 255 / 62%);
    border-radius: 9px;
    font-size: .8rem;
    font-weight: 650;
    text-decoration: none;
}

.logout-link:hover {
    color: #fff;
    background: rgb(255 255 255 / 6%);
}

.portal-workspace {
    min-height: 100vh;
    margin-left: var(--sidebar-width);
}

.portal-topbar {
    position: sticky;
    z-index: 40;
    top: 0;
    display: grid;
    grid-template-columns: minmax(180px, 1fr) minmax(320px, 520px) minmax(180px, 1fr);
    gap: clamp(18px, 2vw, 36px);
    min-height: var(--topbar-height);
    align-items: center;
    padding: 0 clamp(24px, 3vw, 48px);
    background: rgb(255 255 255 / 94%);
    border-bottom: 1px solid rgb(204 216 223 / 80%);
    backdrop-filter: blur(16px);
}

.topbar-title {
    display: flex;
    gap: 12px;
    align-items: center;
}

.topbar-title > div {
    display: grid;
}

.topbar-title span {
    color: var(--ink-500);
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.topbar-title strong {
    color: var(--brand-navy-900);
    font-size: .98rem;
}

.topbar-actions {
    display: flex;
    gap: 14px;
    align-items: center;
    justify-content: flex-end;
}

.topbar-company-zone {
    position: relative;
    min-width: 0;
}

.topbar-company-menu {
    position: relative;
}

.topbar-company-switcher {
    display: grid;
    width: 100%;
    min-height: 54px;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 8px 14px 8px 9px;
    color: var(--brand-navy-900);
    background: linear-gradient(135deg, #fff8ef, #fff);
    border: 1px solid rgb(246 92 20 / 32%);
    border-radius: 13px;
    box-shadow: 0 8px 24px rgb(16 43 70 / 8%);
}

.topbar-company-menu > button.topbar-company-switcher {
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition:
        border-color var(--transition),
        box-shadow var(--transition),
        transform var(--transition);
}

.topbar-company-menu > button.topbar-company-switcher:hover {
    border-color: rgb(246 92 20 / 62%);
    box-shadow: 0 10px 28px rgb(16 43 70 / 13%);
    transform: translateY(-1px);
}

.topbar-company-switcher:focus-within {
    border-color: var(--brand-orange-600);
    box-shadow: 0 0 0 4px rgb(246 92 20 / 10%), 0 8px 24px rgb(16 43 70 / 8%);
}

.topbar-company-switcher label,
.topbar-company-switcher > :where(span:nth-child(2)) {
    display: grid;
    min-width: 0;
}

.topbar-company-switcher small {
    color: var(--brand-orange-600);
    font-size: .63rem;
    font-weight: 800;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.topbar-company-copy :where(small span) {
    color: var(--ink-500);
    font-weight: 750;
    letter-spacing: 0;
    text-transform: none;
}

.topbar-company-switcher select,
.topbar-company-switcher strong {
    width: 100%;
    min-width: 0;
    padding: 0;
    overflow: hidden;
    color: var(--brand-navy-900);
    background: transparent;
    border: 0;
    outline: 0;
    font: inherit;
    font-size: .91rem;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.topbar-company-switcher select {
    padding-right: 28px;
    appearance: none;
    cursor: pointer;
}

.topbar-company-chevron {
    display: grid;
    color: var(--brand-orange-600);
    pointer-events: none;
    place-items: center;
    transition: transform var(--transition);
}

.topbar-company-menu.is-open .topbar-company-chevron {
    transform: rotate(180deg);
}

.topbar-company-options {
    position: absolute;
    z-index: 80;
    top: calc(100% + 10px);
    right: 0;
    width: min(440px, calc(100vw - 32px));
    padding: 7px;
    overflow-y: auto;
    background: rgb(255 255 255 / 98%);
    border: 1px solid var(--line);
    border-radius: 13px;
    box-shadow: 0 18px 50px rgb(7 26 43 / 17%);
    backdrop-filter: blur(14px);
    scrollbar-color: #c7d3da transparent;
    scrollbar-width: thin;
}

.topbar-company-options[hidden] {
    display: none;
}

.company-options-heading {
    display: grid;
    gap: 3px;
    padding: 10px 11px 12px;
    border-bottom: 1px solid var(--line-soft);
}

.company-options-heading span {
    color: var(--brand-navy-900);
    font-size: .85rem;
    font-weight: 850;
}

.company-options-heading small {
    color: var(--ink-500);
    font-size: .72rem;
    line-height: 1.45;
}

.company-options-list {
    display: grid;
    gap: 4px;
    padding-top: 7px;
}

.company-options-list form {
    margin: 0;
}

.company-option {
    display: grid;
    width: 100%;
    min-height: 54px;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 11px;
    align-items: center;
    padding: 9px 10px;
    color: var(--brand-navy-900);
    background: transparent;
    border: 0;
    border-radius: 8px;
    font: inherit;
    text-align: left;
}

button.company-option {
    cursor: pointer;
    transition: background var(--transition), border-color var(--transition);
}

button.company-option:hover,
button.company-option:focus-visible {
    color: var(--brand-navy-950);
    background: var(--brand-orange-100);
    outline: 0;
}

button.company-option:disabled {
    cursor: wait;
    opacity: .65;
}

.company-option.is-active {
    color: var(--brand-orange-600);
    background: #fff5ef;
}

.company-option-mark {
    display: grid;
    width: 34px;
    height: 34px;
    color: var(--brand-orange-600);
    background: #fff1e8;
    border-radius: 9px;
    place-items: center;
}

.company-option.is-active .company-option-mark {
    color: var(--brand-orange-600);
    background: #ffe5d5;
}

.company-option-copy {
    display: grid;
    min-width: 0;
    gap: 2px;
}

.company-option-copy strong,
.company-option-copy small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.company-option-copy strong {
    font-size: .81rem;
    font-weight: 820;
}

.company-option-copy small {
    color: var(--ink-500);
    font-size: .69rem;
}

.company-option-badge {
    padding: 4px 8px;
    color: var(--brand-orange-600);
    background: #ffe5d5;
    border-radius: 999px;
    font-size: .63rem;
    font-weight: 850;
    text-transform: uppercase;
}

.company-option-action {
    display: inline-flex;
    gap: 5px;
    align-items: center;
    color: var(--brand-orange-600);
    font-size: .68rem;
    font-weight: 820;
}

.company-options-list form.is-switching .company-option-action {
    color: var(--ink-400);
}

.topbar-company-switcher.is-switching {
    opacity: .65;
    pointer-events: none;
}

.topbar-company-context {
    display: flex;
    min-width: 0;
    gap: 9px;
    align-items: center;
    padding: 7px 11px 7px 8px;
    background: var(--surface-soft);
    border: 1px solid var(--line);
    border-radius: 10px;
}

.topbar-company-icon {
    display: grid;
    width: 30px;
    height: 30px;
    flex: 0 0 auto;
    color: var(--brand-orange-600);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    place-items: center;
}

.topbar-company-context > :where(span:last-child) {
    display: grid;
    min-width: 0;
}

.topbar-company-context small {
    color: var(--ink-500);
    font-size: .58rem;
    font-weight: 750;
    letter-spacing: .07em;
    line-height: 1.2;
    text-transform: uppercase;
}

.topbar-company-context strong {
    max-width: min(22vw, 260px);
    overflow: hidden;
    color: var(--brand-navy-900);
    font-size: .75rem;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.topbar-help {
    display: flex;
    min-height: 40px;
    gap: 8px;
    align-items: center;
    padding: 8px 12px;
    color: var(--ink-600);
    border-radius: 9px;
    font-size: .82rem;
    font-weight: 650;
    text-decoration: none;
}

.topbar-help:hover {
    color: var(--brand-navy-900);
    background: var(--surface-soft);
}

.topbar-avatar {
    width: 38px;
    height: 38px;
    font-size: .86rem;
}

.icon-button {
    display: inline-grid;
    width: 42px;
    height: 42px;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 10px;
    cursor: pointer;
    place-items: center;
}

.icon-button:hover {
    background: rgb(16 43 70 / 7%);
}

.menu-button,
.sidebar-close,
.sidebar-backdrop {
    display: none;
}

.portal-main {
    min-height: calc(100vh - var(--topbar-height));
}

.page-container {
    width: min(1640px, calc(100% - clamp(28px, 4vw, 64px)));
    margin: 0 auto;
    padding: 36px 0 72px;
}

.page-hero {
    display: flex;
    gap: 36px;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 30px;
}

.page-hero-training {
    position: relative;
    min-height: 178px;
    align-items: center;
    padding: clamp(28px, 4vw, 48px);
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(circle at 86% 14%, rgb(241 184 60 / 22%), transparent 24%),
        radial-gradient(circle at 68% 100%, rgb(45 103 139 / 62%), transparent 40%),
        linear-gradient(120deg, var(--brand-navy-950), var(--brand-navy-800));
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.page-hero-training::after {
    position: absolute;
    top: -80px;
    right: 13%;
    width: 240px;
    height: 240px;
    content: "";
    border: 1px solid rgb(255 255 255 / 9%);
    border-radius: 50%;
    box-shadow: 0 0 0 46px rgb(255 255 255 / 2.5%), 0 0 0 92px rgb(255 255 255 / 1.8%);
}

.hero-copy {
    position: relative;
    z-index: 1;
    max-width: 920px;
}

.section-kicker {
    display: block;
    margin-bottom: 8px;
    color: var(--brand-orange-600);
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.page-hero-training .section-kicker {
    color: #ffc47c;
}

.hero-copy h1 {
    max-width: 780px;
    margin: 0;
    color: var(--brand-navy-950);
    font-size: clamp(2rem, 3.5vw, 3.2rem);
    line-height: 1.06;
    letter-spacing: -.045em;
}

.page-hero-training h1 {
    color: #fff;
}

.hero-copy p {
    max-width: 700px;
    margin: 13px 0 0;
    color: var(--ink-600);
    font-size: 1rem;
}

.page-hero-training :where(.hero-copy p) {
    color: rgb(255 255 255 / 70%);
}

.page-hero-compact {
    margin-bottom: 28px;
    padding: 8px 0 2px;
}

.page-hero-compact :where(.hero-copy h1) {
    font-size: clamp(2rem, 3.2vw, 2.8rem);
}

.hero-metrics {
    position: relative;
    z-index: 1;
    display: grid;
    min-width: 260px;
    gap: 10px;
}

.metric-card {
    display: flex;
    gap: 13px;
    align-items: center;
    padding: 13px 16px;
    background: rgb(255 255 255 / 9%);
    border: 1px solid rgb(255 255 255 / 12%);
    border-radius: 13px;
    backdrop-filter: blur(8px);
}

.metric-icon,
.summary-icon,
.panel-icon,
.contact-method-icon,
.dialog-icon,
.empty-state-icon,
.success-state-icon {
    display: grid;
    flex: 0 0 auto;
    color: var(--brand-orange-600);
    background: var(--brand-orange-100);
    border-radius: 11px;
    place-items: center;
}

.metric-icon {
    width: 42px;
    height: 42px;
}

.metric-icon-green {
    color: #48d9a4;
    background: rgb(72 217 164 / 12%);
}

.metric-card > :where(span:last-child) {
    display: grid;
}

.metric-card strong {
    color: #fff;
    font-size: 1.25rem;
    line-height: 1.1;
}

.metric-card small {
    color: rgb(255 255 255 / 60%);
    font-size: .72rem;
}

.catalog-toolbar {
    position: relative;
    z-index: 20;
    display: grid;
    grid-template-columns: minmax(280px, 1.55fr) repeat(3, minmax(175px, .75fr));
    gap: 10px;
    padding: 10px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 15px;
    box-shadow: var(--shadow-sm);
}

.search-field,
.filter-field {
    display: flex;
    min-width: 0;
    min-height: 46px;
    gap: 10px;
    align-items: center;
    padding: 0 14px;
    color: var(--ink-500);
    background: var(--surface-soft);
    border: 1px solid transparent;
    border-radius: 10px;
}

.portal-select {
    position: relative;
    min-width: 0;
}

.portal-select-trigger {
    display: flex;
    width: 100%;
    min-width: 0;
    min-height: 46px;
    gap: 10px;
    align-items: center;
    padding: 0 14px;
    color: var(--ink-500);
    background: var(--surface-soft);
    border: 1px solid transparent;
    border-radius: 10px;
    cursor: pointer;
    text-align: left;
    transition: background var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.portal-select-trigger > [data-select-label] {
    min-width: 0;
    overflow: hidden;
    color: var(--ink-800);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.portal-select-trigger > .icon {
    flex: 0 0 auto;
}

.portal-select-trigger:hover {
    background: #fff;
    border-color: var(--line-strong);
}

.portal-select.is-open :where(.portal-select-trigger),
.portal-select-trigger:focus-visible {
    color: var(--brand-orange-600);
    background: #fff;
    border-color: rgb(243 108 33 / 55%);
    box-shadow: 0 0 0 3px rgb(243 108 33 / 9%);
}

.portal-select.is-open :where(.filter-chevron) {
    transform: rotate(180deg);
}

.portal-select-menu {
    position: absolute;
    z-index: 40;
    top: calc(100% + 9px);
    right: 0;
    left: 0;
    min-width: 240px;
    max-height: 330px;
    padding: 7px;
    overflow-y: auto;
    background: rgb(255 255 255 / 98%);
    border: 1px solid var(--line);
    border-radius: 13px;
    box-shadow: 0 18px 50px rgb(7 26 43 / 17%);
    backdrop-filter: blur(14px);
    scrollbar-color: #c7d3da transparent;
    scrollbar-width: thin;
}

.portal-select-menu[hidden] {
    display: none;
}

.portal-select-menu button {
    position: relative;
    display: flex;
    width: 100%;
    min-height: 39px;
    align-items: center;
    padding: 8px 35px 8px 11px;
    color: var(--ink-700);
    background: transparent;
    border: 0;
    border-radius: 8px;
    font-size: .78rem;
    line-height: 1.25;
    text-align: left;
    cursor: pointer;
}

.portal-select-menu :where(button:hover),
.portal-select-menu :where(button:focus-visible) {
    color: var(--brand-navy-950);
    background: var(--brand-orange-100);
    outline: 0;
}

.portal-select-menu button[aria-selected="true"] {
    color: var(--brand-orange-600);
    background: #fff5ef;
    font-weight: 750;
}

.portal-select-menu button[aria-selected="true"]::after {
    position: absolute;
    right: 12px;
    content: "✓";
    color: var(--brand-orange-600);
    font-weight: 900;
}

.search-field:focus-within,
.filter-field:focus-within {
    color: var(--brand-orange-600);
    background: #fff;
    border-color: rgb(243 108 33 / 45%);
    box-shadow: 0 0 0 3px rgb(243 108 33 / 8%);
}

.search-field input,
.filter-field select {
    width: 100%;
    min-width: 0;
    height: 44px;
    padding: 0;
    color: var(--ink-800);
    background: transparent;
    border: 0;
    outline: 0;
}

.filter-field select {
    appearance: none;
    padding-right: 4px;
    cursor: pointer;
}

.filter-chevron {
    display: grid;
    flex: 0 0 auto;
    margin-left: auto;
    color: var(--brand-navy-800);
    pointer-events: none;
    transition: transform var(--transition);
    place-items: center;
}

.catalog-heading,
.section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin: 30px 2px 16px;
}

.catalog-heading h2,
.section-heading h2 {
    margin: 0;
    color: var(--brand-navy-900);
    font-size: 1.22rem;
    letter-spacing: -.02em;
}

.catalog-heading p,
.section-heading p {
    margin: 3px 0 0;
    color: var(--ink-500);
    font-size: .82rem;
}

.availability-legend {
    display: flex;
    gap: 8px;
    align-items: center;
    color: var(--ink-500);
    font-size: .76rem;
    font-weight: 650;
}

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

.training-months {
    display: grid;
    gap: 0;
}

.training-month-group[hidden] {
    display: none;
}

.training-month-separator {
    display: grid;
    grid-template-columns: minmax(2rem, 1fr) auto minmax(2rem, 1fr);
    gap: 1.35rem;
    align-items: center;
    margin: 3rem 0 1.75rem;
}

.training-month-group:first-child .training-month-separator {
    margin-top: .75rem;
}

.training-month-line {
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgb(243 108 33 / 28%) 50%, transparent 100%);
}

.training-month-chip {
    display: inline-flex;
    gap: .7rem;
    align-items: center;
    padding: .78rem 1.28rem;
    color: var(--brand-orange-600);
    background: linear-gradient(180deg, rgb(255 255 255 / 98%), rgb(255 249 246 / 96%));
    border: 1px solid rgb(243 108 33 / 22%);
    border-radius: 999px;
    box-shadow: 0 10px 24px rgb(80 45 24 / 6%);
    font-size: 1rem;
    font-weight: 900;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.training-month-name {
    line-height: 1;
}

.training-month-count {
    display: inline-flex;
    align-items: center;
    margin-left: .3rem;
    padding: .28rem .68rem;
    color: #6d625d;
    background: rgb(243 108 33 / 10%);
    border-radius: 999px;
    font-size: .8rem;
    font-weight: 800;
    letter-spacing: .04em;
    line-height: 1;
    text-transform: lowercase;
}

.training-card {
    position: relative;
    display: grid;
    min-width: 0;
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.training-card:hover {
    border-color: #c7d4dc;
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.training-card[hidden] {
    display: none;
}

.training-card-header {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    padding: 18px 20px 14px;
}

.date-tile {
    display: grid;
    width: 58px;
    height: 64px;
    align-content: center;
    color: #fff;
    background: linear-gradient(150deg, var(--brand-navy-800), var(--brand-navy-950));
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 8px 18px rgb(13 39 64 / 17%);
}

.date-tile span,
.date-tile small {
    color: rgb(255 255 255 / 68%);
    font-size: .58rem;
    font-weight: 800;
    letter-spacing: .11em;
}

.date-tile strong {
    margin: -1px 0;
    font-size: 1.48rem;
    line-height: 1.15;
}

.availability-pill {
    display: flex;
    gap: 6px;
    align-items: center;
    padding: 7px 10px;
    color: var(--success-700);
    background: var(--success-100);
    border-radius: 999px;
    font-size: .7rem;
}

.availability-pill strong {
    font-size: .78rem;
}

.availability-pill i {
    width: 6px;
    height: 6px;
    box-shadow: none;
}

.training-card-body {
    padding: 0 20px 15px;
}

.training-card-title {
    min-width: 0;
}

.training-card h3 {
    margin: 4px 0 2px;
    color: var(--brand-navy-950);
    font-size: 1.16rem;
    line-height: 1.25;
    letter-spacing: -.02em;
}

.course-name {
    margin: 0;
    color: var(--ink-600);
    font-size: .8rem;
}

.training-accreditations {
    display: grid;
    grid-template-columns: 132px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    margin-bottom: 13px;
    padding: 11px 12px;
    background: #f7f9fa;
    border: 1px solid #e7edef;
    border-radius: 10px;
}

.training-accreditations-label {
    padding-top: 5px;
    color: var(--brand-navy-800);
    font-size: .66rem;
    font-weight: 800;
    letter-spacing: .02em;
}

.training-accreditation-list {
    display: flex;
    min-width: 0;
    flex-wrap: wrap;
    gap: 5px;
}

.training-accreditation {
    display: inline-grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 6px;
    align-items: center;
    padding: 5px 8px;
    color: var(--brand-navy-800);
    background: #fff;
    border: 1px solid #dbe5e9;
    border-radius: 8px;
    font-size: .64rem;
    line-height: 1.2;
}

.training-accreditation strong {
    display: inline-flex;
    min-width: 25px;
    justify-content: center;
    padding: 2px 5px;
    color: var(--brand-orange-600);
    background: rgb(246 92 20 / 8%);
    border-radius: 5px;
    font-size: .62rem;
    letter-spacing: .04em;
}

.training-details {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin: 0;
    padding-top: 14px;
    border-top: 1px solid #edf1f3;
}

.training-details div {
    display: flex;
    min-width: 0;
    gap: 7px;
    align-items: center;
    color: var(--ink-600);
    font-size: .72rem;
}

.training-details dt,
.training-details dd {
    margin: 0;
}

.training-details dt {
    color: var(--brand-navy-700);
}

.training-details dd {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.training-card-actions {
    display: flex;
    gap: 16px;
    align-items: center;
    justify-content: flex-end;
    margin-top: auto;
    padding: 12px 20px 16px;
    background: #fbfcfc;
    border-top: 1px solid #edf1f3;
}

.training-card-venue {
    display: grid;
    min-width: 0;
    flex: 1 1 auto;
    gap: 8px;
}

.training-card-location {
    display: flex;
    min-width: 0;
    flex: 1 1 auto;
    gap: 8px;
    align-items: center;
    margin: 0;
    color: var(--ink-600);
    font-size: .72rem;
    line-height: 1.35;
}

.training-card-schedule {
    display: flex;
    min-width: 0;
    gap: 8px;
    align-items: flex-start;
    color: var(--ink-600);
    font-size: .7rem;
    line-height: 1.35;
}

.training-card-schedule > .icon {
    flex: 0 0 auto;
    margin-top: 1px;
    color: var(--brand-orange-600);
}

.training-card-schedule > span {
    display: grid;
    min-width: 0;
    gap: 2px;
}

.training-card-schedule strong {
    color: var(--brand-navy-800);
    font-size: .68rem;
}

.training-card-schedule small {
    color: var(--ink-600);
    font-size: .68rem;
}

.training-card-location .icon {
    flex: 0 0 auto;
    color: var(--brand-orange-600);
}

.training-card-location span {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.training-card-actions :where(.button) {
    flex: 0 0 auto;
    min-width: 210px;
}

.button {
    display: inline-flex;
    min-height: 44px;
    gap: 8px;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    border: 1px solid transparent;
    border-radius: 10px;
    font-size: .79rem;
    font-weight: 750;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background var(--transition), border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

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

.button-primary {
    color: #fff;
    background: linear-gradient(135deg, var(--brand-orange-500), var(--brand-orange-600));
    box-shadow: 0 8px 18px rgb(232 93 18 / 17%);
}

.button-primary:hover {
    background: linear-gradient(135deg, #fa792f, #dc550e);
    box-shadow: 0 10px 24px rgb(232 93 18 / 24%);
}

.button-secondary {
    color: var(--brand-navy-900);
    background: #edf2f5;
    border-color: #e2e9ed;
}

.button-secondary:hover {
    background: #e4ecef;
}

.button-ghost {
    color: var(--brand-navy-800);
    background: #fff;
    border-color: var(--line-strong);
}

.button-ghost:hover {
    border-color: #9fb2be;
}

.button-whatsapp {
    color: #fff;
    background: #128c65;
    box-shadow: 0 8px 18px rgb(18 140 101 / 16%);
}

.button-large {
    min-height: 50px;
    font-size: .86rem;
}

.empty-state {
    display: grid;
    justify-items: center;
    padding: 38px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    text-align: center;
}

.empty-state[hidden] {
    display: none;
}

.empty-state-large {
    min-height: 300px;
    align-content: center;
}

.empty-state-icon,
.success-state-icon {
    width: 54px;
    height: 54px;
    margin-bottom: 15px;
}

.empty-state h1,
.empty-state h2 {
    margin: 0;
    color: var(--brand-navy-900);
    font-size: 1.25rem;
}

.empty-state p {
    max-width: 540px;
    margin: 7px 0 19px;
    color: var(--ink-500);
}

.catalog-empty {
    margin-top: 18px;
}

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

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

.summary-card {
    display: flex;
    gap: 14px;
    align-items: center;
    padding: 20px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: var(--shadow-sm);
}

.summary-icon {
    width: 46px;
    height: 46px;
}

.summary-icon-green {
    color: var(--success-700);
    background: var(--success-100);
}

.summary-icon-blue {
    color: #276895;
    background: var(--blue-100);
}

.summary-icon-orange {
    color: #a95612;
    background: #fff0df;
}

.summary-card > div {
    display: grid;
}

.summary-card strong {
    color: var(--brand-navy-900);
    font-size: 1.35rem;
    line-height: 1.15;
}

.summary-card :where(span:last-child) {
    color: var(--ink-500);
    font-size: .73rem;
}

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

.pending-enrollments-section {
    margin: 30px 0 34px;
    padding: 22px;
    background: linear-gradient(135deg, #fffaf4, #fff);
    border: 1px solid #f2dbc3;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
}

.pending-enrollments-section .section-heading {
    margin-top: 0;
}

.count-badge-pending,
.status-pending {
    color: #92500d;
    background: #fff0d9;
}

.pending-enrollment-item {
    border-color: #efd8bf;
}

.history-date-pending {
    color: #914b08;
    background: #fff0dc;
}

.pending-empty-state {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 16px;
    color: var(--success-700);
    background: #fff;
    border: 1px dashed #b9dccb;
    border-radius: 12px;
}

.pending-empty-state > span {
    display: grid;
    width: 36px;
    height: 36px;
    flex: 0 0 auto;
    background: var(--success-100);
    border-radius: 10px;
    place-items: center;
}

.pending-empty-state p {
    display: grid;
    gap: 2px;
    margin: 0;
    color: var(--ink-500);
    font-size: .74rem;
}

.pending-empty-state strong {
    color: var(--brand-navy-800);
    font-size: .8rem;
}

.history-item {
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: var(--shadow-sm);
}

.history-item summary {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    min-height: 96px;
    padding: 15px 20px;
    list-style: none;
    cursor: pointer;
}

.history-item summary::-webkit-details-marker {
    display: none;
}

.history-item[open] {
    border-color: #c8d5dc;
    box-shadow: var(--shadow-md);
}

.history-date {
    display: grid;
    align-content: center;
    width: 54px;
    height: 58px;
    color: var(--brand-navy-900);
    background: #edf2f5;
    border-radius: 10px;
    text-align: center;
}

.history-date strong {
    font-size: 1.25rem;
    line-height: 1.05;
}

.history-date small {
    color: var(--ink-500);
    font-size: .62rem;
}

.history-summary-copy {
    display: grid;
    min-width: 0;
}

.history-summary-copy > strong {
    overflow: hidden;
    margin: 2px 0;
    color: var(--brand-navy-900);
    font-size: .96rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.history-summary-copy > .history-primary-title {
    line-height: 1.3;
    text-overflow: clip;
    white-space: normal;
}

.history-summary-copy > small {
    overflow: hidden;
    color: var(--ink-500);
    font-size: .74rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.history-summary-meta {
    display: flex;
    gap: 16px;
    align-items: center;
}

.count-badge {
    padding: 6px 10px;
    color: var(--brand-navy-700);
    background: #edf2f5;
    border-radius: 999px;
    font-size: .68rem;
    font-weight: 750;
}

.summary-chevron {
    color: var(--ink-500);
    font-size: 1.35rem;
    transition: transform var(--transition);
}

.history-item[open] .summary-chevron {
    transform: rotate(180deg);
}

.history-content {
    padding: 0 12px 12px;
}

.table-wrap {
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: 11px;
}

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

.data-table th,
.data-table td {
    padding: 13px 15px;
    text-align: left;
    border-bottom: 1px solid #e9eef1;
}

.data-table th {
    color: var(--ink-500);
    background: #f8fafb;
    font-size: .65rem;
    font-weight: 800;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.data-table td {
    color: var(--ink-600);
    font-size: .77rem;
}

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

.data-table tbody tr:hover td {
    background: #fbfcfd;
}

.participant-cell {
    display: flex;
    gap: 10px;
    align-items: center;
    color: var(--ink-800);
}

.participant-avatar {
    display: grid;
    width: 30px;
    height: 30px;
    color: var(--brand-navy-700);
    background: #e8eff3;
    border-radius: 8px;
    font-size: .7rem;
    font-weight: 800;
    place-items: center;
}

.document-value {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: .72rem;
}

.status-badge {
    display: inline-flex;
    gap: 5px;
    align-items: center;
    padding: 5px 8px;
    border-radius: 999px;
    font-size: .66rem;
    font-weight: 750;
    white-space: nowrap;
}

.status-complete {
    color: var(--success-700);
    background: var(--success-100);
}

.status-upcoming {
    color: #276895;
    background: var(--blue-100);
}

.status-ongoing {
    color: #9a5207;
    background: #fff0da;
}

.history-view-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 22px 0 26px;
    padding: 6px;
    background: #e9eff3;
    border-radius: 15px;
}

.history-view-tabs a {
    display: flex;
    min-height: 64px;
    gap: 12px;
    align-items: center;
    padding: 10px 16px;
    color: var(--ink-500);
    border: 1px solid transparent;
    border-radius: 11px;
    text-decoration: none;
}

.history-view-tabs a.is-active {
    color: var(--brand-orange-600);
    background: #fff;
    border-color: rgb(246 92 20 / 20%);
    box-shadow: var(--shadow-sm);
}

.history-view-tabs :where(a span) {
    display: grid;
}

.history-view-tabs strong {
    color: var(--brand-navy-900);
    font-size: .82rem;
}

.history-view-tabs small {
    font-size: .68rem;
}

.history-search {
    display: flex;
    width: min(340px, 100%);
    min-height: 42px;
    gap: 9px;
    align-items: center;
    padding: 0 12px;
    color: var(--ink-500);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
}

.history-search:focus-within {
    border-color: rgb(246 92 20 / 55%);
    box-shadow: 0 0 0 3px rgb(246 92 20 / 8%);
}

.history-search input {
    width: 100%;
    min-width: 0;
    padding: 0;
    color: var(--ink-800);
    background: transparent;
    border: 0;
    outline: 0;
    font: inherit;
    font-size: .76rem;
}

.history-no-results {
    padding: 32px;
    color: var(--ink-500);
    text-align: center;
}

.history-student-item summary {
    grid-template-columns: 58px minmax(0, 1fr) auto;
}

.participant-avatar-large {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    font-size: .9rem;
}

.titulation-list {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.titulation-chip {
    display: inline-flex;
    padding: 4px 7px;
    color: var(--brand-navy-700);
    background: #e8eff3;
    border-radius: 6px;
    font-size: .65rem;
    font-weight: 800;
}

.credential-date-list {
    display: grid;
    gap: 4px;
}

.credential-date-list > span {
    display: flex;
    gap: 6px;
    align-items: center;
    white-space: nowrap;
}

.credential-date-list strong {
    color: var(--brand-orange-600);
    font-size: .68rem;
}

.muted-value {
    color: var(--ink-500);
    font-size: .7rem;
}

.training-reference {
    display: grid;
    gap: 3px;
    min-width: 250px;
}

.training-reference > strong {
    color: var(--brand-navy-900);
    font-size: .8rem;
    line-height: 1.35;
}

.training-reference > small {
    color: var(--ink-500);
    font-size: .7rem;
}

.contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.75fr) minmax(320px, .75fr);
    gap: 20px;
    align-items: stretch;
}

.advisor-card,
.support-panel,
.panel-card {
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.advisor-card {
    display: grid;
    grid-template-rows: auto auto 1fr auto;
}

.advisor-cover {
    min-height: 104px;
    padding: 20px;
    background:
        radial-gradient(circle at 88% 20%, rgb(241 184 60 / 26%), transparent 20%),
        linear-gradient(115deg, var(--brand-navy-900), var(--brand-navy-700));
}

.advisor-status {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    padding: 6px 10px;
    color: rgb(255 255 255 / 78%);
    background: rgb(255 255 255 / 10%);
    border: 1px solid rgb(255 255 255 / 12%);
    border-radius: 999px;
    font-size: .68rem;
    font-weight: 700;
}

.advisor-status-limited i {
    background: #f59e0b;
}

.advisor-status-unavailable i {
    background: #ef4444;
}

.advisor-status-offline i {
    background: #94a3b8;
}

.advisor-profile {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    min-height: 98px;
    padding: 0 28px 20px;
}

.advisor-avatar {
    display: grid;
    width: 84px;
    height: 84px;
    flex: 0 0 auto;
    margin-top: -42px;
    color: var(--brand-navy-900);
    background: linear-gradient(145deg, #ffd77f, var(--brand-gold));
    border: 5px solid #fff;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    font-size: 1.7rem;
    font-weight: 850;
    place-items: center;
}

.advisor-identity {
    padding-top: 17px;
}

.advisor-identity > span {
    color: var(--brand-orange-600);
    font-size: .67rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.advisor-identity h2 {
    margin: 2px 0 3px;
    color: var(--brand-navy-900);
    font-size: 1.45rem;
}

.advisor-identity p {
    margin: 0;
    color: var(--ink-500);
    font-size: .79rem;
}

.advisor-contact-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    align-content: start;
    padding: 0 28px 22px;
}

.advisor-contact-list a {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 11px;
    align-items: center;
    padding: 13px;
    background: var(--surface-soft);
    border: 1px solid #ebf0f2;
    border-radius: 11px;
    text-decoration: none;
}

.advisor-contact-list :where(a:hover) {
    border-color: var(--line-strong);
}

.contact-method-icon {
    width: 38px;
    height: 38px;
}

.advisor-contact-list :where(a > span:nth-child(2)) {
    display: grid;
    min-width: 0;
}

.advisor-contact-list small {
    color: var(--ink-500);
    font-size: .63rem;
}

.advisor-contact-list strong {
    overflow: hidden;
    color: var(--ink-800);
    font-size: .74rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.advisor-contact-list > :where(a > .icon) {
    color: var(--ink-500);
}

.advisor-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    padding: 18px 28px 24px;
    background: #fafcfc;
    border-top: 1px solid #edf1f3;
}

.whatsapp-icon {
    width: 20px;
    height: 20px;
    flex: 0 0 auto;
}

.support-panel {
    min-height: 100%;
    padding: 26px;
}

.support-panel-icon {
    display: grid;
    width: 44px;
    height: 44px;
    margin-bottom: 18px;
    color: #276895;
    background: var(--blue-100);
    border-radius: 12px;
    place-items: center;
}

.support-panel h2 {
    margin: 0 0 14px;
    color: var(--brand-navy-900);
    font-size: 1.05rem;
}

.schedule-override-notice {
    display: flex;
    gap: 7px;
    align-items: flex-start;
    margin: -3px 0 14px;
    padding: 10px 11px;
    color: #8a5800;
    background: #fff7e6;
    border: 1px solid #f7dfad;
    border-radius: 9px;
    font-size: .68rem;
    line-height: 1.45;
}

.schedule-override-notice svg {
    flex: 0 0 auto;
}

.support-panel dl {
    display: grid;
    gap: 9px;
    margin: 0;
}

.support-panel :where(dl div) {
    display: flex;
    justify-content: space-between;
    padding-bottom: 9px;
    border-bottom: 1px solid #edf1f3;
    font-size: .76rem;
}

.support-panel dt {
    color: var(--ink-500);
}

.support-panel dd {
    margin: 0;
    color: var(--ink-800);
    font-weight: 700;
}

.support-note {
    margin-top: 22px;
    padding: 15px;
    color: var(--brand-navy-800);
    background: #f3f7fa;
    border-radius: 11px;
}

.support-note strong {
    font-size: .77rem;
}

.support-note p {
    margin: 5px 0 0;
    color: var(--ink-500);
    font-size: .72rem;
}

.breadcrumb {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 20px;
    color: var(--ink-500);
    font-size: .75rem;
}

.breadcrumb a {
    color: var(--brand-navy-700);
    font-weight: 700;
    text-decoration: none;
}

.import-hero {
    margin-bottom: 23px;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    padding: 0;
    margin: 0 0 22px;
    list-style: none;
}

.process-steps li {
    position: relative;
    display: flex;
    gap: 10px;
    align-items: center;
    color: var(--ink-500);
}

.process-steps li:not(:last-child)::after {
    position: absolute;
    z-index: 0;
    top: 18px;
    right: 18px;
    left: 54px;
    height: 1px;
    content: "";
    background: var(--line-strong);
}

.process-steps :where(li > span) {
    position: relative;
    z-index: 1;
    display: grid;
    width: 36px;
    height: 36px;
    flex: 0 0 auto;
    background: #e6ecef;
    border: 4px solid var(--canvas);
    border-radius: 50%;
    font-size: .72rem;
    font-weight: 800;
    place-items: center;
}

.process-steps :where(li > div) {
    position: relative;
    z-index: 1;
    display: grid;
    padding-right: 12px;
    background: var(--canvas);
}

.process-steps strong {
    color: var(--ink-600);
    font-size: .73rem;
}

.process-steps small {
    font-size: .63rem;
}

.process-steps :where(.is-active > span) {
    color: #fff;
    background: var(--brand-orange-600);
}

.process-steps :where(.is-active strong) {
    color: var(--brand-navy-900);
}

.process-steps :where(.is-complete > span) {
    color: #fff;
    background: var(--success-700);
}

.panel-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 24px;
    border-bottom: 1px solid #edf1f3;
}

.panel-heading > div {
    display: flex;
    gap: 13px;
    align-items: center;
}

.panel-icon {
    width: 44px;
    height: 44px;
}

.panel-icon-success {
    color: var(--success-700);
    background: var(--success-100);
}

.panel-heading h2 {
    margin: 0;
    color: var(--brand-navy-900);
    font-size: 1rem;
}

.panel-heading p {
    margin: 3px 0 0;
    color: var(--ink-500);
    font-size: .72rem;
}

.import-form {
    padding: 24px;
}

.upload-zone {
    display: grid;
    min-height: 230px;
    align-content: center;
    justify-items: center;
    padding: 28px;
    color: var(--ink-500);
    background: #fbfcfd;
    border: 1.5px dashed #b8c7d0;
    border-radius: 14px;
    text-align: center;
    cursor: pointer;
    transition: color var(--transition), background var(--transition), border-color var(--transition);
}

.upload-zone:hover,
.upload-zone.is-dragging {
    color: var(--brand-navy-800);
    background: #fff8f3;
    border-color: var(--brand-orange-500);
}

.upload-zone input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.upload-zone-icon {
    display: grid;
    width: 54px;
    height: 54px;
    margin-bottom: 14px;
    color: var(--brand-orange-600);
    background: var(--brand-orange-100);
    border-radius: 14px;
    place-items: center;
}

.upload-zone strong {
    color: var(--brand-navy-900);
    font-size: .88rem;
}

.upload-zone > :where(span:last-child) {
    margin-top: 5px;
    font-size: .7rem;
}

.import-requirements {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    align-items: center;
    padding: 12px 15px;
    color: var(--ink-500);
    background: #f5f8fa;
    border-radius: 10px;
    font-size: .69rem;
}

.import-requirements strong {
    color: var(--ink-800);
}

.import-requirements span {
    display: flex;
    gap: 4px;
    align-items: center;
}

.import-requirements .icon {
    color: var(--success-700);
}

.form-footer {
    display: flex;
    gap: 18px;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    background: #fafcfc;
    border-top: 1px solid #edf1f3;
}

.import-form .form-footer {
    margin: 0 -24px -24px;
}

.form-footer p {
    display: flex;
    gap: 7px;
    align-items: center;
    margin: 0;
    color: var(--ink-500);
    font-size: .7rem;
}

.preview-table {
    border: 0;
    border-radius: 0;
}

.inline-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.alert {
    display: flex;
    gap: 11px;
    align-items: flex-start;
    margin: 0 0 18px;
    padding: 13px 15px;
    border-radius: 11px;
}

.alert-error {
    color: var(--danger-700);
    background: var(--danger-100);
    border: 1px solid #f4d4d1;
}

.alert strong {
    font-size: .76rem;
}

.alert p {
    margin: 2px 0 0;
    font-size: .71rem;
}

.reservation-dialog {
    width: min(500px, calc(100% - 30px));
    padding: 0;
    overflow: hidden;
    color: var(--ink-950);
    background: #fff;
    border: 0;
    border-radius: 18px;
    box-shadow: var(--shadow-lg);
}

.reservation-dialog::backdrop {
    background: rgb(7 26 43 / 72%);
    backdrop-filter: blur(4px);
}

.reservation-dialog form {
    padding: 26px;
}

.dialog-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.dialog-icon {
    width: 46px;
    height: 46px;
}

.reservation-dialog h2 {
    margin: 0;
    color: var(--brand-navy-900);
    font-size: 1.45rem;
}

.dialog-help {
    margin: 7px 0 20px;
    color: var(--ink-500);
    font-size: .8rem;
}

.reservation-company-context {
    display: flex;
    gap: 11px;
    align-items: center;
    margin-bottom: 18px;
    padding: 12px;
    color: var(--brand-navy-800);
    background: #f5f8fa;
    border: 1px solid var(--line);
    border-radius: 11px;
}

.reservation-company-context > span {
    display: grid;
    width: 36px;
    height: 36px;
    flex: 0 0 auto;
    color: var(--brand-orange-600);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 9px;
    place-items: center;
}

.reservation-company-context > div {
    display: grid;
    min-width: 0;
}

.reservation-company-context small {
    color: var(--ink-500);
    font-size: .65rem;
}

.reservation-company-context strong {
    overflow: hidden;
    font-size: .81rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.reservation-dialog label,
.form-field label {
    display: block;
    margin-bottom: 7px;
    color: var(--ink-800);
    font-size: .72rem;
    font-weight: 750;
}

.quantity-control {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr) 46px;
    overflow: hidden;
    border: 1px solid var(--line-strong);
    border-radius: 11px;
}

.quantity-control button {
    min-height: 48px;
    background: #f4f7f8;
    border: 0;
    font-size: 1.2rem;
    cursor: pointer;
}

.quantity-control button:hover {
    background: #e9eff2;
}

.quantity-control input {
    min-width: 0;
    text-align: center;
    border: 0;
    border-right: 1px solid var(--line);
    border-left: 1px solid var(--line);
    outline: 0;
    appearance: textfield;
}

.quantity-control input::-webkit-inner-spin-button {
    appearance: none;
}

.dialog-note {
    display: flex;
    gap: 7px;
    align-items: center;
    margin: 12px 0 0;
    color: var(--success-700);
    font-size: .68rem;
}

.dialog-actions {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 9px;
    margin-top: 24px;
}

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

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

/* Authentication */
.auth-page {
    min-height: 100vh;
    background: #eef2f4;
}

.auth-shell {
    display: grid;
    min-height: 100vh;
    grid-template-columns: minmax(400px, .9fr) minmax(520px, 1.1fr);
}

.auth-brand-panel {
    position: relative;
    display: flex;
    min-height: 100vh;
    flex-direction: column;
    justify-content: space-between;
    padding: clamp(42px, 6vw, 78px);
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(circle at 85% 15%, rgb(241 184 60 / 22%), transparent 19%),
        radial-gradient(circle at 10% 95%, rgb(42 107 148 / 55%), transparent 34%),
        linear-gradient(145deg, var(--brand-navy-950), var(--brand-navy-800));
}

.auth-brand-panel::after {
    position: absolute;
    right: -130px;
    bottom: 12%;
    width: 360px;
    height: 360px;
    content: "";
    border: 1px solid rgb(255 255 255 / 7%);
    border-radius: 50%;
    box-shadow: 0 0 0 70px rgb(255 255 255 / 2.5%), 0 0 0 140px rgb(255 255 255 / 1.8%);
}

.auth-brand-content {
    position: relative;
    z-index: 1;
    max-width: 570px;
}

.auth-logo {
    width: 178px;
    margin-bottom: clamp(70px, 11vh, 130px);
}

.auth-product-label {
    display: inline-flex;
    margin-bottom: 18px;
    padding: 6px 10px;
    color: #ffd18d;
    background: rgb(243 108 33 / 13%);
    border: 1px solid rgb(255 193 114 / 20%);
    border-radius: 999px;
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.auth-brand-content h1 {
    max-width: 600px;
    margin: 0;
    font-size: clamp(2.3rem, 4.6vw, 4.4rem);
    line-height: 1.02;
    letter-spacing: -.055em;
}

.auth-brand-content > p {
    max-width: 540px;
    margin: 20px 0 0;
    color: rgb(255 255 255 / 68%);
    font-size: 1rem;
}

.auth-benefits {
    display: grid;
    gap: 12px;
    padding: 0;
    margin: 38px 0 0;
    list-style: none;
}

.auth-benefits li {
    display: flex;
    gap: 11px;
    align-items: center;
    color: rgb(255 255 255 / 78%);
    font-size: .78rem;
}

.auth-benefits :where(li span) {
    display: grid;
    width: 34px;
    height: 34px;
    color: #ffc67d;
    background: rgb(255 255 255 / 8%);
    border-radius: 9px;
    place-items: center;
}

.auth-brand-footer {
    position: relative;
    z-index: 1;
    margin: 40px 0 0;
    color: rgb(255 255 255 / 34%);
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.auth-form-panel {
    display: grid;
    min-height: 100vh;
    align-content: center;
    justify-items: center;
    padding: 44px;
}

.auth-card {
    width: min(450px, 100%);
    padding: clamp(32px, 5vw, 48px);
    background: #fff;
    border: 1px solid rgb(204 216 223 / 80%);
    border-radius: 20px;
    box-shadow: var(--shadow-md);
}

.auth-mobile-brand {
    display: none;
}

.auth-card h2 {
    margin: 0;
    color: var(--brand-navy-950);
    font-size: 1.8rem;
    line-height: 1.15;
    letter-spacing: -.035em;
}

.auth-intro {
    margin: 9px 0 26px;
    color: var(--ink-500);
    font-size: .8rem;
}

.auth-form {
    gap: 18px;
}

.input-shell {
    display: flex;
    min-height: 48px;
    gap: 10px;
    align-items: center;
    padding: 0 13px;
    color: var(--ink-500);
    background: #fbfcfd;
    border: 1px solid var(--line-strong);
    border-radius: 10px;
}

.input-shell:focus-within {
    color: var(--brand-orange-600);
    background: #fff;
    border-color: var(--brand-orange-500);
    box-shadow: 0 0 0 3px rgb(243 108 33 / 9%);
}

.input-shell input {
    width: 100%;
    min-width: 0;
    height: 46px;
    padding: 0;
    color: var(--ink-800);
    background: transparent;
    border: 0;
    outline: 0;
}

.password-dot {
    min-width: 19px;
    color: var(--brand-navy-700);
    font-size: .65rem;
    font-weight: 900;
    letter-spacing: -1px;
}

.password-toggle {
    min-height: 34px;
    padding: 0 6px;
    color: var(--brand-navy-700);
    background: transparent;
    border: 0;
    font-size: .68rem;
    font-weight: 750;
    cursor: pointer;
}

.auth-help {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin-top: 25px;
    padding-top: 20px;
    color: var(--ink-500);
    border-top: 1px solid #edf1f3;
}

.auth-help .icon {
    color: var(--brand-orange-600);
}

.auth-help p {
    margin: 0;
    font-size: .68rem;
}

.auth-help strong {
    color: var(--ink-800);
}

.auth-legal {
    margin: 18px 0 0;
    color: var(--ink-500);
    font-size: .65rem;
}

.security-note {
    display: flex;
    max-width: 420px;
    gap: 11px;
    align-items: flex-start;
    margin-top: 34px;
    padding: 16px;
    color: rgb(255 255 255 / 76%);
    background: rgb(255 255 255 / 7%);
    border: 1px solid rgb(255 255 255 / 10%);
    border-radius: 12px;
}

.security-note > span {
    display: grid;
    width: 30px;
    height: 30px;
    flex: 0 0 auto;
    color: #43d29e;
    background: rgb(67 210 158 / 11%);
    border-radius: 8px;
    place-items: center;
}

.security-note p {
    margin: 0;
    font-size: .72rem;
}

.success-state {
    display: grid;
    justify-items: start;
}

.success-state-icon {
    width: 62px;
    height: 62px;
    color: var(--success-700);
    background: var(--success-100);
}

.success-state p {
    margin: 10px 0 25px;
    color: var(--ink-500);
    font-size: .8rem;
}

@media (width <= 1180px) {
    .training-grid {
        grid-template-columns: 1fr;
    }

    .auth-shell {
        grid-template-columns: minmax(360px, .8fr) minmax(480px, 1.2fr);
    }
}

@media (width <= 960px) {
    body.sidebar-open {
        overflow: hidden;
    }

    .portal-sidebar {
        width: min(310px, calc(100vw - 48px));
        transform: translateX(-105%);
        transition: transform 230ms cubic-bezier(.2, .75, .25, 1);
    }

    .sidebar-open .portal-sidebar {
        transform: translateX(0);
    }

    .sidebar-close,
    .menu-button {
        display: inline-grid;
    }

    .sidebar-close {
        color: #fff;
    }

    .sidebar-backdrop {
        position: fixed;
        z-index: 90;
        inset: 0;
        width: 100%;
        height: 100%;
        padding: 0;
        background: rgb(7 26 43 / 58%);
        border: 0;
        opacity: 0;
        pointer-events: none;
        transition: opacity var(--transition);
    }

    .sidebar-open .sidebar-backdrop {
        display: block;
        opacity: 1;
        pointer-events: auto;
    }

    .portal-workspace {
        margin-left: 0;
    }

    .catalog-toolbar {
        grid-template-columns: 1fr 1fr;
    }

    .search-field {
        grid-column: 1 / -1;
    }

    .contact-layout {
        grid-template-columns: 1fr;
    }

    .support-panel {
        display: grid;
        grid-template-columns: auto 1fr;
        column-gap: 16px;
    }

    .support-panel h2 {
        align-self: center;
    }

    .support-panel dl,
    .support-note {
        grid-column: 1 / -1;
    }

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

    .auth-brand-panel {
        display: none;
    }

    .auth-form-panel {
        padding: 28px;
        background:
            radial-gradient(circle at 90% 0, rgb(241 184 60 / 12%), transparent 22%),
            #eef2f4;
    }

    .auth-mobile-brand {
        display: flex;
        gap: 13px;
        align-items: center;
        margin-bottom: 38px;
    }

    .auth-mobile-brand img {
        width: 132px;
    }

    .auth-mobile-brand span {
        padding-left: 13px;
        color: var(--brand-navy-700);
        border-left: 1px solid var(--line-strong);
        font-size: .7rem;
        font-weight: 750;
    }
}

@media (width <= 720px) {
    .portal-topbar {
        min-height: 66px;
        grid-template-columns: auto minmax(0, 1fr) auto;
        gap: 8px;
        padding: 0 16px;
    }

    .topbar-title > :where(div span),
    .topbar-help span,
    .topbar-avatar {
        display: none;
    }

    .topbar-actions {
        gap: 6px;
    }

    .topbar-company-switcher {
        min-height: 46px;
        gap: 8px;
        padding: 6px 9px 6px 7px;
    }

    .topbar-company-switcher select,
    .topbar-company-switcher strong {
        font-size: .76rem;
    }

    .topbar-company-switcher small {
        font-size: .53rem;
    }

    .topbar-company-options {
        position: fixed;
        top: 74px;
        right: 14px;
        left: 14px;
        width: auto;
        max-height: calc(100vh - 90px);
        overflow-y: auto;
    }

    .topbar-company-context {
        max-width: min(54vw, 300px);
        padding-right: 8px;
    }

    .topbar-company-context strong {
        max-width: 34vw;
    }

    .page-container {
        width: calc(100% - 28px);
        padding: 26px 0 50px;
    }

    .page-hero {
        align-items: stretch;
        flex-direction: column;
    }

    .page-hero-training {
        min-height: auto;
        padding: 28px 22px;
    }

    .hero-copy h1 {
        font-size: 2rem;
    }

    .hero-metrics {
        grid-template-columns: 1fr 1fr;
        min-width: 0;
    }

    .metric-card {
        align-items: flex-start;
        padding: 12px;
    }

    .metric-icon {
        width: 34px;
        height: 34px;
    }

    .catalog-toolbar {
        grid-template-columns: 1fr;
    }

    .portal-select-menu {
        width: 100%;
        min-width: 0;
    }

    .search-field {
        grid-column: auto;
    }

    .catalog-heading,
    .section-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .training-month-separator {
        grid-template-columns: minmax(16px, 1fr) auto minmax(16px, 1fr);
        gap: 10px;
        margin: 2.2rem 0 1.25rem;
    }

    .training-month-chip {
        gap: .5rem;
        padding: .68rem .9rem;
        font-size: .86rem;
    }

    .training-month-count {
        margin-left: 0;
        padding: .24rem .52rem;
        font-size: .7rem;
    }

    .training-card-header,
    .training-card-body,
    .training-card-actions {
        padding-right: 17px;
        padding-left: 17px;
    }

    .training-details {
        grid-template-columns: 1fr 1fr;
    }

    .training-accreditations {
        grid-template-columns: 1fr;
        gap: 5px;
    }

    .training-card-actions {
        align-items: stretch;
        flex-direction: column;
        justify-content: stretch;
    }

    .training-card-location {
        min-height: 34px;
    }

    .training-card-actions :where(.button) {
        width: 100%;
        min-width: 0;
    }

    .training-card-header {
        grid-template-columns: auto minmax(0, 1fr);
        gap: 13px;
    }

    .training-card-header .availability-pill {
        grid-column: 1 / -1;
        width: max-content;
        margin-left: 71px;
    }

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

    .pending-enrollments-section {
        padding: 16px;
    }

    .history-view-tabs {
        grid-template-columns: 1fr;
    }

    .summary-card {
        padding: 16px;
    }

    .history-item summary {
        grid-template-columns: 50px minmax(0, 1fr);
        padding: 14px;
    }

    .history-summary-meta {
        grid-column: 2;
        justify-content: space-between;
    }

    .history-content {
        padding: 0 14px 14px;
    }

    .advisor-profile {
        padding-right: 18px;
        padding-left: 18px;
    }

    .advisor-contact-list {
        grid-template-columns: 1fr;
        padding-right: 18px;
        padding-left: 18px;
    }

    .advisor-actions {
        padding-right: 18px;
        padding-left: 18px;
    }

    .advisor-actions .button {
        flex: 1 1 100%;
    }

    .process-steps :where(li > div) {
        display: none;
    }

    .process-steps li:not(:last-child)::after {
        right: 18px;
        left: 36px;
    }

    .process-steps li {
        justify-content: flex-start;
    }

    .process-steps li:last-child {
        justify-content: flex-end;
    }

    .process-steps li:nth-child(2) {
        justify-content: center;
    }

    .panel-heading,
    .form-footer {
        align-items: stretch;
        flex-direction: column;
    }

    .preview-heading > .status-badge {
        align-self: flex-start;
    }

    .form-footer .inline-actions {
        display: grid;
    }

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

    .auth-form-panel {
        padding: 16px;
    }

    .auth-card {
        padding: 28px 22px;
    }

    .auth-mobile-brand {
        margin-bottom: 30px;
    }
}

@media (width <= 520px) {
    .topbar-title > div {
        display: none;
    }

    .topbar-company-context {
        max-width: 48vw;
    }

    .topbar-company-context small {
        display: none;
    }

    .topbar-company-context strong {
        max-width: 30vw;
    }
}

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

.document-actions {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 6px;
}

.document-action {
    padding: 6px 9px;
    border: 1px solid #d8e1e8;
    border-radius: 8px;
    background: #fff;
    color: #173a57;
    font: inherit;
    font-size: .72rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.document-action.is-primary {
    border-color: #f36a1d;
    background: #f36a1d;
    color: #fff;
}

.pdf-preview-dialog {
    width: min(1180px, calc(100vw - 40px));
    height: min(860px, calc(100vh - 40px));
    padding: 0;
    border: 0;
    border-radius: 18px;
    box-shadow: 0 30px 80px rgb(11 38 60 / 30%);
}

.pdf-preview-dialog::backdrop {
    background: rgb(5 25 42 / 65%);
    backdrop-filter: blur(4px);
}

.pdf-preview-dialog header,
.pdf-preview-dialog footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 14px 18px;
    border-bottom: 1px solid #e2e8ee;
}

.pdf-preview-dialog h2 {
    margin: 2px 0 0;
    font-size: 1.05rem;
}

.pdf-preview-dialog iframe {
    display: block;
    width: 100%;
    height: calc(100% - 132px);
    border: 0;
    background: #eef2f5;
}

.pdf-preview-dialog footer {
    justify-content: flex-end;
    border-top: 1px solid #e2e8ee;
    border-bottom: 0;
}

.history-filter-toolbar {
    grid-template-columns:
        minmax(240px, 1.2fr)
        minmax(180px, .9fr)
        minmax(190px, .95fr)
        minmax(165px, .8fr)
        minmax(205px, 1fr)
        minmax(170px, .85fr);
    transition: grid-template-columns var(--transition);
}

.history-filter-toolbar:has(.search-field:focus-within) {
    grid-template-columns:
        minmax(300px, 1.45fr)
        minmax(170px, .8fr)
        minmax(180px, .85fr)
        minmax(165px, .75fr)
        minmax(195px, .95fr)
        minmax(170px, .8fr);
}

@media (width <= 1280px) {
    .history-filter-toolbar,
    .history-filter-toolbar:has(.search-field:focus-within) {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (width <= 960px) {
    .history-filter-toolbar,
    .history-filter-toolbar:has(.search-field:focus-within) {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (width <= 720px) {
    .history-filter-toolbar,
    .history-filter-toolbar:has(.search-field:focus-within) {
        grid-template-columns: minmax(0, 1fr);
    }
}

.participant-identity {
    display: grid;
    min-width: 0;
    gap: 2px;
}

.participant-name {
    overflow: hidden;
    color: var(--ink-800);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.participant-document {
    color: var(--ink-500);
    font-size: .68rem;
    font-weight: 400;
    line-height: 1.2;
}

.history-credentials-table .history-col-attendance {
    width: 78px;
    min-width: 78px;
    text-align: center;
}

.history-credentials-table .history-col-titulations {
    width: 160px;
    min-width: 160px;
}

.history-credentials-table .history-col-diploma {
    width: 220px;
    min-width: 220px;
}

.history-credentials-table .history-col-wallet {
    width: 160px;
    min-width: 160px;
}

.history-credentials-table .document-actions {
    flex-wrap: nowrap;
}

.history-result-marker {
    display: inline-grid;
    width: 30px;
    height: 30px;
    border: 1px solid transparent;
    border-radius: 8px;
    place-items: center;
}

.history-result-marker.is-positive {
    color: #fff;
    background: #0b9c72;
    border-color: #087f5d;
    box-shadow: 0 2px 5px rgb(11 156 114 / 18%);
}

.history-result-marker.is-negative {
    color: #cf3f46;
    background: #fff7f7;
    border-color: #efb8bb;
}

.credential-general-title {
    color: var(--ink-600);
    font-size: .7rem;
    line-height: 1.35;
}

.reservation-drafts-section {
    margin: 30px 0 24px;
    padding: 22px;
    background: linear-gradient(135deg, #f4f9fc, #fff);
    border: 1px solid #d7e3eb;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
}

.reservation-drafts-heading {
    margin-top: 0;
}

.count-badge-draft,
.status-draft {
    color: #176083;
    background: #e5f3fa;
}

.reservation-draft-list {
    display: grid;
    gap: 10px;
}

.reservation-draft-card {
    display: grid;
    grid-template-columns: 58px minmax(280px, 1fr) auto auto;
    gap: 16px;
    align-items: center;
    padding: 15px 16px;
    background: #fff;
    border: 1px solid #dce6ec;
    border-radius: 13px;
}

.reservation-draft-date {
    display: grid;
    width: 52px;
    height: 58px;
    color: var(--brand-navy-800);
    background: #edf4f7;
    border-radius: 11px;
    place-content: center;
    text-align: center;
}

.reservation-draft-day {
    font-size: 1.2rem;
    line-height: 1;
}

.reservation-draft-month {
    margin-top: 4px;
    color: var(--ink-500);
    font-size: .62rem;
}

.reservation-draft-copy {
    min-width: 0;
}

.reservation-draft-heading {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 5px;
}

.reservation-draft-reference {
    color: var(--brand-orange-600);
    font-size: .65rem;
    font-weight: 800;
}

.reservation-draft-title {
    overflow: hidden;
    margin: 0;
    color: var(--brand-navy-900);
    font-size: .9rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.reservation-draft-description {
    margin: 4px 0 0;
    color: var(--ink-500);
    font-size: .7rem;
}

.reservation-draft-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
    margin-top: 8px;
}

.reservation-draft-meta-item {
    display: inline-flex;
    gap: 5px;
    align-items: center;
    color: var(--ink-500);
    font-size: .67rem;
}

.reservation-draft-progress {
    display: grid;
    min-width: 126px;
    padding: 10px 13px;
    background: #f7fafb;
    border-radius: 10px;
}

.reservation-draft-progress-value {
    color: var(--brand-navy-900);
    font-size: .9rem;
}

.reservation-draft-progress-label,
.reservation-draft-progress-note {
    color: var(--ink-500);
    font-size: .65rem;
}

.reservation-draft-action {
    min-width: 170px;
    white-space: nowrap;
}

@media (width <= 900px) {
    .reservation-draft-card {
        grid-template-columns: 58px minmax(0, 1fr) auto;
    }

    .reservation-draft-action {
        grid-column: 2 / -1;
        width: 100%;
    }
}

@media (width <= 720px) {
    .reservation-drafts-section {
        padding: 16px;
    }

    .reservation-draft-card {
        grid-template-columns: 52px minmax(0, 1fr);
        gap: 12px;
    }

    .reservation-draft-progress,
    .reservation-draft-action {
        grid-column: 1 / -1;
        width: 100%;
    }

    .reservation-draft-title {
        white-space: normal;
    }
}
