/* ---------- calendar (flatpickr) in the programme's colours ---------- */

.flatpickr-calendar { font-family: inherit; border-radius: 14px; box-shadow: 0 16px 40px rgba(24, 33, 61, .18); border: 1px solid var(--ac-line); }
.flatpickr-calendar::before, .flatpickr-calendar::after { display: none; }
/* Arabic: weeks read right to left, next month on the left */
[dir="rtl"] .flatpickr-calendar .flatpickr-weekdaycontainer,
[dir="rtl"] .flatpickr-calendar .dayContainer { direction: rtl; }
[dir="rtl"] .flatpickr-months .flatpickr-prev-month { left: auto !important; right: 0 !important; }
[dir="rtl"] .flatpickr-months .flatpickr-next-month { right: auto !important; left: 0 !important; }
[dir="rtl"] .flatpickr-months .flatpickr-prev-month svg, [dir="rtl"] .flatpickr-months .flatpickr-next-month svg { transform: scaleX(-1); }
[dir="rtl"] .flatpickr-day.inRange { box-shadow: 5px 0 0 #E7F2EB, -5px 0 0 #E7F2EB; }
.flatpickr-months .flatpickr-month { height: 44px; }
.flatpickr-current-month { font-size: 15px; padding-top: 10px; }
.flatpickr-current-month .numInputWrapper { width: 6ch; }
.flatpickr-months .flatpickr-prev-month, .flatpickr-months .flatpickr-next-month { padding: 12px; }
.flatpickr-months .flatpickr-prev-month:hover svg, .flatpickr-months .flatpickr-next-month:hover svg { fill: var(--ac-navy); }
span.flatpickr-weekday { color: var(--ac-muted); font-weight: 600; }
.flatpickr-day { border-radius: 9px; }
.flatpickr-day.today { border-color: var(--ac-orange); }
.flatpickr-day.today:hover { background: #FBF3E2; color: var(--ac-ink); border-color: var(--ac-orange); }
.flatpickr-day.selected, .flatpickr-day.startRange, .flatpickr-day.endRange,
.flatpickr-day.selected:hover, .flatpickr-day.startRange:hover, .flatpickr-day.endRange:hover { background: var(--ac-navy); border-color: var(--ac-navy); color: #fff; }
.flatpickr-day.inRange { background: #E7F2EB; border-color: #E7F2EB; box-shadow: -5px 0 0 #E7F2EB, 5px 0 0 #E7F2EB; color: var(--ac-ink); }
.flatpickr-day:hover { background: var(--ac-soft); border-color: var(--ac-soft); }
.flatpickr-input.form-control[readonly], .flatpickr-input + .form-control[readonly] { background-color: #fff; color: var(--ac-ink); cursor: pointer; }
.ac-date { position: relative; }
.ac-date > .mdi { position: absolute; inset-inline-end: 12px; top: 21px; transform: translateY(-50%); color: var(--ac-muted); pointer-events: none; font-size: 19px; z-index: 1; }
.ac-date .form-control { padding-inline-end: 40px; }

/* ---------- field errors next to the field ---------- */

.ac-field-error { display: flex; gap: 5px; align-items: flex-start; color: #A32020; font-size: 12.5px; margin-top: 5px; font-weight: 500; }
.ac-field-error .mdi { font-size: 15px; line-height: 1.1; }
.form-control.is-invalid, .form-select.is-invalid { border-color: #C0392B; background-image: none; padding-inline-end: 12px; }
.form-select.is-invalid { padding-inline-end: 2.25rem; }
.form-control.is-invalid:focus, .form-select.is-invalid:focus { box-shadow: 0 0 0 3px rgba(192, 57, 43, .14); }
.ac-hint { color: var(--ac-muted); font-size: 12.5px; margin-top: 5px; }

/* ---------- a form beside a live summary ---------- */

.ac-formgrid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 22px; align-items: start; }
@media (max-width: 1199px) { .ac-formgrid { grid-template-columns: 1fr; } }
.ac-summary { position: sticky; top: 76px; background: #fff; border: 1px solid var(--ac-line); border-radius: var(--ac-radius); overflow: hidden; }
.ac-summary__head { background: var(--ac-navy); color: #fff; padding: 16px 18px; }
.ac-summary__head small { opacity: .8; font-size: 12px; display: block; }
.ac-summary__code { font-size: 24px; font-weight: 700; letter-spacing: .5px; direction: ltr; display: inline-block; }
.ac-summary__body { padding: 6px 18px 14px; }
.ac-summary__row { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--ac-line); font-size: 13.5px; }
.ac-summary__row:last-child { border-bottom: 0; }
.ac-summary__row span { color: var(--ac-muted); }
.ac-summary__row strong { color: var(--ac-ink); text-align: end; }
.ac-summary__note { background: var(--ac-soft); padding: 12px 18px; font-size: 12.5px; color: var(--ac-text); border-top: 1px solid var(--ac-line); }

/* a number with − and + beside it */
.ac-stepper { display: flex; align-items: stretch; }
.ac-stepper button { width: 42px; border: 1px solid #C9D0DD; background: var(--ac-soft); color: var(--ac-ink); font-size: 18px; line-height: 1; }
.ac-stepper button:first-child { border-start-start-radius: 10px; border-end-start-radius: 10px; border-inline-end: 0; }
.ac-stepper button:last-child { border-start-end-radius: 10px; border-end-end-radius: 10px; border-inline-start: 0; }
.ac-stepper button:hover { background: #E7F2EB; }
.ac-stepper .form-control { border-radius: 0; text-align: center; font-weight: 600; -moz-appearance: textfield; }
.ac-stepper .form-control::-webkit-inner-spin-button { -webkit-appearance: none; }

/* choose one of a few options as cards */
.ac-segment { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; }
.ac-segment label { position: relative; display: flex; align-items: center; gap: 8px; border: 1.5px solid #C9D0DD; border-radius: 10px; padding: 9px 12px; cursor: pointer; font-weight: 600; color: var(--ac-text); margin: 0; min-height: 42px; }
.ac-segment input { position: absolute; opacity: 0; }
.ac-segment label:has(input:checked) { border-color: var(--ac-navy); background: #EFF6F1; color: var(--ac-navy); }
.ac-segment label:has(input:focus-visible) { outline: 2px solid var(--ac-blue); outline-offset: 2px; }
.ac-segment .mdi { font-size: 18px; }

/* ---------- the registration steps ---------- */

.pub-steps { display: flex; margin: 0 0 18px; padding: 0; list-style: none; counter-reset: step; }
.pub-steps li { flex: 1; display: flex; align-items: center; gap: 10px; color: var(--ac-muted); font-weight: 600; font-size: 13.5px; padding-inline-end: 12px; }
.pub-steps li::before { counter-increment: step; content: counter(step); flex: none; width: 30px; height: 30px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: #fff; border: 2px solid #C9D0DD; color: var(--ac-muted); font-weight: 700; }
.pub-steps li::after { content: ""; flex: 1; height: 2px; background: #DDE3DF; }
.pub-steps li:last-child::after { display: none; }
.pub-steps li.is-done::before { background: var(--ac-navy); border-color: var(--ac-navy); color: #fff; }
.pub-steps li.is-current { color: var(--ac-ink); }
.pub-steps li.is-current::before { border-color: var(--ac-navy); color: var(--ac-navy); }
@media (max-width: 575px) { .pub-steps li span { display: none; } }

/* ---------- dashboard: figures with icons, results bar, cumulative line ---------- */

.v-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; }
.v-kpi { background: #fff; border: 1px solid var(--ac-line); border-radius: 14px; padding: 16px 18px; display: flex; flex-direction: column; gap: 6px; }
.v-kpi__top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.v-kpi__label { font-size: 13px; color: var(--ac-muted); font-weight: 600; }
.v-kpi__icon { width: 34px; height: 34px; border-radius: 10px; background: #EFF6F1; color: var(--ac-navy); display: inline-flex; align-items: center; justify-content: center; font-size: 19px; flex: none; }
.v-kpi__value { font-size: 30px; font-weight: 700; color: var(--ac-ink); line-height: 1.1; }
.v-kpi__value small { font-size: 15px; color: var(--ac-muted); font-weight: 600; }
.v-kpi__sub { font-size: 12.5px; color: var(--ac-muted); }
.v-kpi .v-meter { margin-top: 4px; height: 6px; }

.v-seg { display: flex; gap: 2px; height: 28px; margin: 6px 0 10px; }
.v-seg > span { display: flex; align-items: center; padding-inline: 8px; color: #fff; font-size: 12px; font-weight: 700; white-space: nowrap; overflow: hidden; outline: none; border-radius: 4px; }
.v-seg > span.is-light { color: var(--ac-ink); }
.v-seg > span:hover, .v-seg > span:focus-visible { filter: brightness(1.08); }

.v-line { position: relative; margin-top: 12px; }
.v-line svg { display: block; width: 100%; height: 240px; overflow: visible; }
.v-line__hits { position: absolute; inset: 0 0 24px 0; display: grid; grid-template-columns: repeat(12, 1fr); }
.v-line__hits span { outline: none; }
.v-line__hits span:hover, .v-line__hits span:focus-visible { background: rgba(22, 105, 56, .06); }

.v-attention { display: flex; flex-direction: column; gap: 10px; }
.v-attention a { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border: 1px solid var(--ac-line); border-radius: 12px; text-decoration: none; color: var(--ac-text); }
.v-attention a:hover { border-color: var(--ac-navy); background: #FAFCFB; }
.v-attention .mdi { font-size: 22px; flex: none; }
.v-attention strong { color: var(--ac-ink); display: block; font-size: 14px; }
.v-attention small { color: var(--ac-muted); }
.v-attention .is-warn .mdi { color: var(--ac-orange); }
.v-attention .is-ok .mdi { color: var(--ac-navy); }
.v-section { font-size: 13px; font-weight: 700; color: var(--ac-muted); margin: 26px 0 12px; display: flex; align-items: center; gap: 10px; }
.v-section::after { content: ""; flex: 1; height: 1px; background: var(--ac-line); }

/* ---------- course cards ---------- */

.c-toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.c-toolbar__count { color: var(--ac-muted); font-size: 13.5px; }
.c-view { display: inline-flex; background: #fff; border: 1px solid var(--ac-line); border-radius: 10px; padding: 3px; }
.c-view a { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 8px; color: var(--ac-muted); text-decoration: none; font-weight: 600; font-size: 13.5px; }
.c-view a.is-active { background: var(--ac-navy); color: #fff; }
.c-view .mdi { font-size: 17px; }

.c-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }

.c-card { --accent: var(--ac-navy); position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--ac-line); border-radius: 16px; overflow: hidden; transition: box-shadow .15s ease, transform .15s ease, border-color .15s ease; }
.c-card::before { content: ""; position: absolute; inset-block-start: 0; inset-inline: 0; height: 4px; background: var(--accent); }
.c-card:hover { box-shadow: 0 10px 28px rgba(24, 33, 61, .10); transform: translateY(-2px); border-color: #D3DDD6; }
.c-card--open { --accent: #1F8A4C; }
.c-card--full { --accent: var(--ac-orange); }
.c-card--running { --accent: #42A7C6; }
.c-card--completed { --accent: var(--ac-navy); }
.c-card--draft, .c-card--closed { --accent: #AEB6C6; }
.c-card--cancelled { --accent: #C9CED9; opacity: .78; }

.c-card__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; padding: 18px 18px 10px; }
.c-card__code { font-size: 18px; font-weight: 700; color: var(--ac-ink); text-decoration: none; direction: ltr; display: inline-block; letter-spacing: .3px; }
.c-card__code::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.c-card__place { color: var(--ac-muted); font-size: 13px; margin-top: 2px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.c-card__place .mdi { font-size: 15px; }

.c-card__when { display: flex; gap: 12px; align-items: center; margin: 2px 18px 12px; padding: 10px 12px; background: var(--ac-soft); border-radius: 12px; }
.c-leaf { flex: none; width: 48px; border-radius: 10px; overflow: hidden; text-align: center; background: #fff; border: 1px solid var(--ac-line); line-height: 1.1; }
.c-leaf small { display: block; background: var(--accent, var(--ac-navy)); color: #fff; font-size: 10.5px; font-weight: 700; padding: 3px 0; }
.c-leaf strong { display: block; font-size: 19px; color: var(--ac-ink); padding: 4px 0 5px; }
.c-card__dates { font-weight: 600; color: var(--ac-ink); font-size: 13.5px; }
.c-card__timing { font-size: 12.5px; color: var(--ac-muted); margin-top: 2px; }

.c-card__facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; padding: 0 18px 12px; margin: 0; }
.c-card__facts dt { font-size: 11.5px; color: var(--ac-muted); font-weight: 600; }
.c-card__facts dd { margin: 1px 0 0; font-size: 13.5px; color: var(--ac-ink); font-weight: 600; display: flex; align-items: center; gap: 6px; min-width: 0; }
.c-card__facts dd span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.c-avatar { flex: none; width: 24px; height: 24px; border-radius: 50%; background: #E7F2EB; color: var(--ac-navy); font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }

.c-card__fill { padding: 0 18px 14px; }
.c-card__fill-top { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--ac-muted); margin-bottom: 6px; }
.c-card__fill-top strong { color: var(--ac-ink); font-size: 13.5px; }
.c-bar { height: 8px; border-radius: 4px; background: #E8F1EB; overflow: hidden; }
.c-bar > span { display: block; height: 100%; border-radius: 4px; background: #1F8A4C; }
.c-bar.is-full > span { background: var(--ac-orange); }

.c-card__results { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--ac-line); }
.c-card__results div { padding: 10px 8px; text-align: center; }
.c-card__results div + div { border-inline-start: 1px solid var(--ac-line); }
.c-card__results strong { display: block; font-size: 17px; color: var(--ac-ink); }
.c-card__results small { color: var(--ac-muted); font-size: 11.5px; }

.c-card__foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 18px; border-top: 1px solid var(--ac-line); background: #FBFCFB; position: relative; z-index: 2; }
.c-card__foot a { font-weight: 600; font-size: 13px; text-decoration: none; }
.c-card__foot .c-open { color: var(--ac-navy); display: inline-flex; align-items: center; gap: 4px; }

/* ---------- the course page ---------- */

.c-hero { --accent: var(--ac-navy); background: #fff; border: 1px solid var(--ac-line); border-radius: 18px; overflow: hidden; margin-bottom: 16px; }
.c-hero__top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 22px 24px 18px; border-top: 5px solid var(--accent); }
.c-hero__crumb { font-size: 12.5px; color: var(--ac-muted); text-decoration: none; display: inline-flex; align-items: center; gap: 4px; }
.c-hero__title { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 4px 0 6px; }
.c-hero__title h1 { font-size: 26px; margin: 0; direction: ltr; }
.c-hero__meta { display: flex; flex-wrap: wrap; gap: 6px 16px; color: var(--ac-text); font-size: 13.5px; }
.c-hero__meta span { display: inline-flex; align-items: center; gap: 5px; }
.c-hero__meta .mdi { color: var(--ac-muted); font-size: 17px; }
.c-hero__actions { display: flex; flex-wrap: wrap; gap: 8px; }

.c-timeline { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; padding: 14px 24px; background: var(--ac-soft); border-top: 1px solid var(--ac-line); }
.c-timeline__end { font-size: 12.5px; color: var(--ac-muted); }
.c-timeline__end strong { display: block; color: var(--ac-ink); font-size: 14px; }
.c-timeline__track { position: relative; height: 8px; border-radius: 4px; background: #DDE6E0; }
.c-timeline__track > span { position: absolute; inset-block: 0; inset-inline-start: 0; border-radius: 4px; background: var(--accent); }
.c-timeline__now { position: absolute; top: 50%; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 4px solid var(--accent); transform: translate(-50%, -50%); }
[dir="rtl"] .c-timeline__now { transform: translate(50%, -50%); }
.c-timeline__label { position: absolute; top: -26px; transform: translateX(-50%); font-size: 11.5px; font-weight: 700; color: var(--accent); white-space: nowrap; }
[dir="rtl"] .c-timeline__label { transform: translateX(50%); }
.c-timeline__track-wrap { padding-top: 18px; }

.c-info { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.c-info__item { display: flex; gap: 12px; align-items: center; padding: 12px 14px; background: #fff; border: 1px solid var(--ac-line); border-radius: 14px; min-width: 0; }
.c-info__icon { flex: none; width: 38px; height: 38px; border-radius: 11px; background: #EFF6F1; color: var(--ac-navy); display: inline-flex; align-items: center; justify-content: center; font-size: 20px; }
.c-info__item small { display: block; color: var(--ac-muted); font-size: 12px; font-weight: 600; }
.c-info__item strong { display: block; color: var(--ac-ink); font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.c-info__item.is-warn .c-info__icon { background: #FBF0DC; color: #8A5A0B; }
.min-w-0 { min-width: 0; }

/* ---------- buttons: the bundled Bootstrap theme turns them red on hover and press ---------- */

.btn-primary {
    --bs-btn-bg: var(--ac-navy); --bs-btn-border-color: var(--ac-navy);
    --bs-btn-hover-bg: #0F4F29; --bs-btn-hover-border-color: #0F4F29;
    --bs-btn-active-bg: #0B3F21; --bs-btn-active-border-color: #0B3F21;
    --bs-btn-disabled-bg: var(--ac-navy); --bs-btn-disabled-border-color: var(--ac-navy);
    --bs-btn-focus-shadow-rgb: 22, 105, 56;
}
.btn-primary:active, .btn-primary.active { background: #0B3F21; border-color: #0B3F21; }
.btn-link { --bs-btn-color: var(--ac-blue); --bs-btn-hover-color: var(--ac-navy); --bs-btn-active-color: var(--ac-navy); }

/* a choice drawn as a card keeps its box inside the card, so focusing it never jumps the page */
.ac-segment input { inset: 0; width: 100%; height: 100%; margin: 0; pointer-events: none; }

/* ---------- a trainee's page ---------- */

.t-card { height: auto; }   /* cards stacked in a column keep their own height (no spilling over the next) */
.t-hero { display: flex; gap: 16px; align-items: flex-start; min-width: 0; }
.t-hero__avatar { flex: none; width: 64px; height: 64px; border-radius: 18px; background: #EFF6F1; color: var(--ac-navy); font-size: 22px; font-weight: 800;
    display: inline-flex; align-items: center; justify-content: center; border: 1px solid #D3E6DA; }
.t-hero__title h1 { direction: inherit; font-size: 24px; }
.t-hero__other { color: var(--ac-muted); font-size: 14px; font-weight: 600; }

.t-sec + .t-sec { border-top: 1px solid var(--ac-line); margin-top: 18px; padding-top: 18px; }
.t-sec__title { display: flex; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 700; color: var(--ac-navy); margin: 0 0 12px; }
.t-sec__title .mdi { font-size: 18px; }
.t-sec .ac-facts { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.t-sec .ac-facts .t-wide { grid-column: span 2; }
.t-label { font-size: 12.5px; color: var(--ac-muted); font-weight: 600; }
[dir="rtl"] .t-sec .ac-facts dd.ltr, [dir="rtl"] .t-sec .ac-facts dd[dir="ltr"] { text-align: right; }   /* numbers and emails under their labels */
.t-notes { display: flex; gap: 8px; background: var(--ac-soft); border-radius: 10px; padding: 10px 12px; font-size: 13.5px; color: var(--ac-text); }
.t-notes .mdi { color: var(--ac-muted); font-size: 18px; }
.t-mono { font-family: ui-monospace, Consolas, monospace; font-size: 15px; letter-spacing: .3px; }

.t-rows { margin: 0; }
.t-rows > div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--ac-line); }
.t-rows > div:last-child { border-bottom: 0; }
.t-rows dt { font-size: 12.5px; color: var(--ac-muted); font-weight: 600; flex: none; }
.t-rows dd { margin: 0; color: var(--ac-ink); text-align: end; min-width: 0; overflow-wrap: anywhere; }

.t-reg { background: #fff; border: 1px solid var(--ac-line); border-inline-start: 4px solid var(--ac-navy); border-radius: 14px; margin-bottom: 12px; overflow: hidden; }
.t-reg.is-off { border-inline-start-color: #C9CED9; opacity: .78; }
.t-reg__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 14px 18px; }
.t-reg__code { font-size: 17px; font-weight: 800; color: var(--ac-ink); text-decoration: none; }
.t-reg__code:hover { color: var(--ac-navy); text-decoration: underline; }
.t-reg__meta { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 6px; font-size: 13px; color: var(--ac-text); }
.t-reg__meta span { display: inline-flex; align-items: center; gap: 4px; }
.t-reg__meta .mdi { color: var(--ac-muted); font-size: 16px; }
.t-reg__result { font-size: 13px; padding: 5px 14px; }
.t-reg__body { border-top: 1px solid var(--ac-line); background: #FBFCFD; padding: 14px 18px; }

.t-metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 10px; }
.t-metric { background: #fff; border: 1px solid var(--ac-line); border-radius: 10px; padding: 9px 12px; min-width: 0; }
.t-metric small { display: block; font-size: 11.5px; color: var(--ac-muted); font-weight: 600; }
.t-metric strong { display: block; font-size: 15px; color: var(--ac-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.t-metric.is-key { background: #EFF6F1; border-color: #D3E6DA; }
.t-metric.is-key strong { color: var(--ac-navy); font-size: 18px; }

.t-detail { display: flex; flex-wrap: wrap; gap: 14px 28px; margin-top: 14px; }
.t-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 5px; }
.t-chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 8px; font-size: 12.5px; background: var(--ac-soft); color: var(--ac-text); border: 1px solid var(--ac-line); }
.t-chip b { color: var(--ac-ink); }
.t-chip.is-ok { background: #E3F5EE; border-color: #C5E7D6; color: #146C4E; }
.t-chip.is-low { background: #FDECEC; border-color: #F3CFCF; color: #A32020; }
.t-chip.is-ok b, .t-chip.is-low b { color: inherit; }

@media (max-width: 575px) {
    .t-hero__avatar { width: 48px; height: 48px; font-size: 17px; border-radius: 14px; }
    .t-sec .ac-facts .t-wide { grid-column: auto; }
    .t-reg__head { flex-direction: column; }
}

/* ---------- a dashboard breakdown in full ---------- */

.v-all { max-width: 640px; width: 100%; }
.v-all__list { max-height: min(60vh, 560px); overflow: auto; margin-inline: -6px; padding-inline: 6px; }
.v-all__row { display: grid; grid-template-columns: 28px minmax(0, 1.4fr) 1fr 52px 44px; gap: 10px; align-items: center; padding: 7px 4px; border-bottom: 1px solid var(--ac-line); font-size: 13.5px; }
.v-all__row:last-of-type { border-bottom: 0; }
.v-all__rank { color: var(--ac-muted); font-size: 12px; text-align: center; }
.v-all__name { font-weight: 600; color: var(--ac-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.v-all__track { height: 10px; background: var(--ac-soft); border-radius: 5px; overflow: hidden; }
.v-all__track span { display: block; height: 100%; background: var(--v-single, var(--ac-navy)); border-radius: 5px; }
.v-all__val { font-weight: 700; color: var(--ac-ink); text-align: end; }
.v-all__pct { color: var(--ac-muted); font-size: 12.5px; text-align: end; }
@media (max-width: 575px) {
    .v-all__row { grid-template-columns: 24px minmax(0, 1fr) 46px 40px; }
    .v-all__track { display: none; }
}
