/* ==========================================================================
   RATELi TFM Academy - polish layer (2.47)
   --------------------------------------------------------------------------
   Loaded last, after fx-premium.css, in every layout. Purely additive: it
   brings every page up to the patterns set by the programme page, the tier
   cards and the enrolment wizard (theme_tfm.md) without changing a colour,
   a layout or a class name. Remove this file and the site looks as before.

     1. Forms: one focus ring, tick colour, comfortable controls
     2. Buttons: press feedback, moving arrows
     3. Touch: 44px targets on phones and touch screens
     4. Small fixes found by the page sweep
     5. Reusable patterns: link pill, status pill, icon tile
   ========================================================================== */

/* 1. Forms ---------------------------------------------------------------- */
input[type="checkbox"], input[type="radio"], input[type="range"], progress { accent-color: var(--accent); }

.input, .select, .textarea {
  transition: border-color var(--duration-base) var(--ease-out), box-shadow var(--duration-base) var(--ease-out), background-color var(--duration-base);
}
.input:hover:not(:focus):not(:disabled), .select:hover:not(:focus):not(:disabled), .textarea:hover:not(:focus):not(:disabled) {
  border-color: color-mix(in srgb, var(--accent) 35%, var(--line-strong));
}
.input:focus, .select:focus, .textarea:focus,
.input:focus-visible, .select:focus-visible, .textarea:focus-visible {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 16%, transparent);
}
.input[aria-invalid="true"], .select[aria-invalid="true"], .textarea[aria-invalid="true"],
.field.has-error .input, .field.has-error .select, .field.has-error .textarea {
  border-color: var(--danger);
  box-shadow: 0 0 0 4px var(--danger-soft);
}
.input:disabled, .select:disabled, .textarea:disabled, .input[readonly] { background: var(--surface-sunken); cursor: not-allowed; }
.input::placeholder, .textarea::placeholder { color: var(--text-dim); }
.field__label { letter-spacing: -0.005em; }

::selection { background: color-mix(in srgb, var(--accent) 24%, transparent); color: var(--text-strong); }

/* 2. Buttons -------------------------------------------------------------- */
.btn:active:not(:disabled):not(.is-disabled) { transform: scale(0.97); }
.btn .fa-arrow-right, .btn .fa-chevron-right { transition: transform var(--duration-base) var(--ease-out); }
.btn:hover .fa-arrow-right, .btn:hover .fa-chevron-right { transform: translateX(3px); }
.btn .fa-arrow-left { transition: transform var(--duration-base) var(--ease-out); }
.btn:hover .fa-arrow-left { transform: translateX(-3px); }
.btn.is-disabled, .btn:disabled { cursor: not-allowed; }

/* 3. Touch targets -------------------------------------------------------- */
/* A finger needs about 44px. Desktop mouse layouts keep their compact
   sizes; phones and touch screens get the comfortable ones. */
@media (max-width: 640px), (pointer: coarse) {
  .btn, .btn--sm { min-height: 44px; }
  .input, .select { min-height: 44px; font-size: max(16px, 1em); } /* 16px stops iOS zooming in */
  .textarea { font-size: max(16px, 1em); }
  .fx-tt__btn, .fx-tt__size, .fx-icon-action, .fx-post__act { min-height: 44px; min-width: 44px; }
  .vp__btn { min-width: 40px; min-height: 40px; }
  .fx-tt__page { min-width: 44px; min-height: 44px; }
  .curriculum-search__input { min-height: 44px; font-size: 16px; }
  .fx-cat-tile__actions a, .fx-cat-tile__actions button { min-height: 44px; display: inline-flex; align-items: center; }
  .pagination a, .pagination span { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
}
/* The carousel dots stay thin bars to the eye, with a tall hit area. */
.fx-carousel__dots button { height: 30px; padding: 12px 0; background-clip: content-box; }

/* 4. Sweep fixes ---------------------------------------------------------- */
h1.fx-account__name { margin-bottom: 0; line-height: var(--leading-tight); font-weight: var(--weight-bold); }

/* 5. Reusable patterns ---------------------------------------------------- */
/* Link pill: a quiet secondary action that is still a real target. */
.tfm-link-pill {
  --pill-c: var(--tier, var(--accent));
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  min-height: 44px; padding: 0 14px; border-radius: var(--radius-md);
  border: 1px dashed color-mix(in srgb, var(--pill-c) 40%, var(--line));
  font-size: 10.5px; font-weight: var(--weight-black); letter-spacing: .06em; text-transform: uppercase; white-space: nowrap;
  color: var(--text-muted); text-decoration: none; overflow: hidden; isolation: isolate;
  transition: color .3s, border-color .3s, transform .2s;
}
.tfm-link-pill::before { content: ""; position: absolute; inset: 0; z-index: -1; background: color-mix(in srgb, var(--pill-c) 12%, transparent); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease-out); }
.tfm-link-pill i { color: var(--pill-c); font-size: 11px; }
.tfm-link-pill:hover, .tfm-link-pill:focus-visible { color: var(--text-strong); border-style: solid; border-color: var(--pill-c); }
.tfm-link-pill:hover::before, .tfm-link-pill:focus-visible::before { transform: scaleX(1); }
.tfm-link-pill:active { transform: scale(.97); }

/* Status pill: a state in words with an icon, never colour alone. */
.tfm-pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: var(--radius-pill); font-size: 12px; font-weight: var(--weight-bold); background: var(--surface-sunken); color: var(--text-muted); white-space: nowrap; }
.tfm-pill--accent { background: color-mix(in srgb, var(--accent) 12%, var(--surface)); color: var(--accent-text); }
.tfm-pill--ok { background: color-mix(in srgb, var(--success) 14%, var(--surface)); color: var(--success); }
.tfm-pill--wait { background: color-mix(in srgb, #0ea5e9 12%, var(--surface)); color: #0284c7; }
.tfm-pill--warn { background: color-mix(in srgb, #eab308 16%, var(--surface)); color: #a16207; }
.tfm-pill--bad { background: color-mix(in srgb, var(--danger) 12%, var(--surface)); color: #dc2626; }
[data-theme="dark"] .tfm-pill--wait { color: #38bdf8; }
[data-theme="dark"] .tfm-pill--warn { color: #facc15; }
[data-theme="dark"] .tfm-pill--bad { color: #f87171; }

/* Icon tile: the rounded square that heads a card or a step. */
.tfm-icon-tile { --tile-c: var(--tier, var(--accent)); width: 48px; height: 48px; flex: none; border-radius: 15px; display: grid; place-items: center; font-size: 19px; color: var(--tile-c); background: color-mix(in srgb, var(--tile-c) 13%, var(--surface)); }
.tfm-icon-tile--solid { color: #fff; background: linear-gradient(145deg, color-mix(in srgb, var(--tile-c) 70%, #fff), var(--tile-c)); box-shadow: 0 10px 22px -12px var(--tile-c); }

/* Dark mode for the newer components (they read tokens, these fill gaps). */
[data-theme="dark"] .fx-enrol__pill.is-wait { color: #38bdf8; }
[data-theme="dark"] .fx-enrol__pill.is-warn { color: #facc15; }
[data-theme="dark"] .fx-enrol__pill.is-bad, [data-theme="dark"] .fx-review__flag { color: #f87171; }
[data-theme="dark"] .fx-sched__tags .is-live { color: #f87171; }
[data-theme="dark"] .fx-enrol__note i { color: #38bdf8; }

@media (prefers-reduced-motion: reduce) {
  .btn:active:not(:disabled) { transform: none; }
  .btn .fa-arrow-right, .btn .fa-chevron-right, .btn .fa-arrow-left, .tfm-link-pill, .tfm-link-pill::before { transition: none; }
}

/* Admin: one application, answers on the left, decision and history on the right (2.47.1) */
.tfm-review-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 380px); gap: var(--space-5); align-items: start; }
.tfm-review-side { position: sticky; top: calc(var(--header-height) + 16px); }
.tfm-answers { display: grid; gap: 0; }
.tfm-answers__step { padding: var(--space-4) 0; border-top: 1px solid var(--line); display: grid; gap: var(--space-3); }
.tfm-answers > .card__title + .tfm-answers__step { margin-top: var(--space-3); }
.tfm-answers__step:last-child { padding-bottom: 0; }
.tfm-answers__head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); }
.tfm-answers__head strong { font-size: var(--text-md); color: var(--text-strong); }
.tfm-answers__dl { margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: var(--space-3) var(--space-5); }
.tfm-answers__dl div { min-width: 0; }
.tfm-answers__dl dt { font-size: 11.5px; font-weight: 600; color: var(--text-muted); }
.tfm-answers__dl dd { margin: 2px 0 0; font-size: 14px; font-weight: 600; color: var(--text-strong); overflow-wrap: anywhere; }
@media (max-width: 1100px) {
  .tfm-review-grid { grid-template-columns: 1fr; }
  .tfm-review-side { position: static; }
}

/* Student: the enrolment page uses the full content width, like every other page. */
.fx-enrol { max-width: none; width: 100%; margin: 0; }
.fx-enrol__grid { grid-template-columns: 320px minmax(0, 1fr); }
@media (max-width: 900px) { .fx-enrol__grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   Space and shape (2.48). See wide_space_fix.md for the measurements.
   Benchmarks: WordPress Twenty Twenty-Four (content 1217px, sections 104px,
   grid gaps 40-64px, phones 31px) and megaspeed.ai (content 1200px,
   sections 70-130px). TFM keeps its 1200px content width and moves to the
   middle of that range, so pages read tighter without feeling cramped.
   ========================================================================== */

/* Section rhythm: 80px on desktop down to 48px on phones (was 96 to 56). */
.section { padding-block: clamp(3rem, 1.75rem + 4.5vw, 5rem); }
.section--tight { padding-block: clamp(2.25rem, 1.25rem + 3vw, 3.5rem); }
/* Two sections on the same background read as one band: no double padding. */
.section:not(.section--alt) + .section:not(.section--alt),
.section--alt + .section--alt { padding-top: var(--space-4); }
.section-head { margin-bottom: clamp(var(--space-6), 2.5vw, var(--space-10)); }

/* Solid shape: a white card on a white page needs an edge, not only a
   shadow that is almost invisible. One hairline plus a soft, low shadow,
   the way standard admin and marketing themes draw cards. */
.card, .panel, .fx-summary {
  border: 1px solid var(--line-strong);
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 1px 3px rgba(16, 24, 40, 0.06);
}
.card--raised, .panel { box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 4px 12px -2px rgba(16, 24, 40, 0.08); }
.card--sunken { box-shadow: none; }
.card--interactive:hover { border-color: var(--accent); box-shadow: var(--shadow-md); }
[data-theme="dark"] .card, [data-theme="dark"] .panel, [data-theme="dark"] .fx-summary { box-shadow: none; }

/* Solid white behind text: the programme hero and timetable head lose
   their tinted washes; the coloured top bar still carries the tier. */
.fx-prog__hero { background: var(--surface); }
.fx-sched__head { background: var(--surface); }

/* Even grids: four panels sit four across (or two by two), never three
   and an orphan. */
.tfm-grid-4 { display: grid; gap: var(--space-5); grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: stretch; }
.tfm-grid-4 > * { min-width: 0; }
@media (max-width: 1280px) { .tfm-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .tfm-grid-4 { grid-template-columns: 1fr; } }
/* Inside a quarter-width panel, figures sit two across instead of one. */
.tfm-grid-4 .competency-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-2); }
.tfm-grid-4 .competency-cell { padding: var(--space-3); min-width: 0; }
.tfm-grid-4 .competency-cell .caps { display: block; font-size: 10px; letter-spacing: .04em; line-height: 1.3; min-height: 2.6em; overflow-wrap: anywhere; }
/* Every card-like component takes the stronger hairline, so its shape
   reads on white. Shadows and hover effects stay as they were. */
.fx-cat-card, .course-card, .tool-card, .fx-course, .fx-cert, .fx-post, .fx-person,
.pillar, .fx-market-tile, .fx-stat-tile, .fx-side-card, .fx-tier,
.fx-kyc, .fx-enrol__side, .fx-level, .fx-sched, .fx-panel, .fx-review__card, .fx-prog__buy,
.tfm-answers, .fx-security, .fx-account, .fx-achieve, .fx-composer { border-color: var(--line-strong); }
.course-card:hover, .tool-card:hover { border-color: var(--line-accent); }
.fx-course:hover { border-color: var(--accent); }
/* Eyebrow labels keep their own width instead of stretching into a bar. */
.section-head > .eyebrow, .section-head > .badge { align-self: flex-start; }
.section-head--center > .eyebrow, .section-head--center > .badge { align-self: center; }

/* ==========================================================================
   Page banners with parallax (2.49)
   Every front-end page opens like the homepage carousel: a dark band with
   the same market artwork and veil, white heading and lede. The artwork
   drifts slower than the page as it scrolls (parallax.js sets --py).
   ========================================================================== */
.section { --section-pad: clamp(3rem, 1.75rem + 4.5vw, 5rem); }

.fx-banner {
  --py: 0px;
  position: relative;
  isolation: isolate;
  max-width: none;
  margin-top: calc(-1 * var(--section-pad));
  margin-bottom: clamp(var(--space-8), 3vw, var(--space-12));
  padding-block: clamp(3.25rem, 2rem + 5vw, 6rem);
  color: #fff;
  /* Clip the artwork above and below the band, never at the sides. */
  clip-path: inset(0 -100vw);
}
.fx-banner::before,
.fx-banner::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0; left: 50%;
  width: 100vw;
  margin-left: -50vw;
  pointer-events: none;
}
.fx-banner::before {
  z-index: -2;
  top: -18%; bottom: -18%;
  background: #0d0d12 var(--banner-art, none) center / cover no-repeat;
  translate: 0 var(--py);
  will-change: translate;
}
.fx-banner::after {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(8, 8, 12, .88) 0%, rgba(8, 8, 12, .72) 45%, rgba(8, 8, 12, .4) 80%, rgba(8, 8, 12, .25) 100%),
    linear-gradient(0deg, rgba(8, 8, 12, .5) 0%, transparent 45%);
}
.fx-banner.section-head--center::after { background: rgba(8, 8, 12, .74); }
.fx-banner h1 { color: #fff; text-shadow: 0 2px 24px rgba(0, 0, 0, .35); }
.fx-banner .lede, .fx-banner p { color: rgba(255, 255, 255, .84); }
.fx-banner .eyebrow { background: rgba(249, 115, 22, .18); color: #fdba74; border: 1px solid rgba(249, 115, 22, .38); }
.fx-banner .muted, .fx-banner .text-muted { color: rgba(255, 255, 255, .7); }
.fx-banner .breadcrumbs, .fx-banner .breadcrumbs a, .fx-banner .breadcrumbs span { color: rgba(255, 255, 255, .72); }
.fx-banner .breadcrumbs .strong { color: #fff; }
.fx-banner .breadcrumbs a:hover { color: #fdba74; }
.fx-banner .btn--ghost, .fx-banner .btn--quiet { color: #fff; border-color: rgba(255, 255, 255, .5); }
.fx-banner .btn--ghost:hover { background: #fff; color: #18181b; }
.fx-banner .badge { background: rgba(255, 255, 255, .12); color: #fff; }
.fx-banner > *, .fx-banner .stack > * { animation: fx-slide-up .55s var(--ease-out) both; }
.fx-banner > :nth-child(2) { animation-delay: .08s; }
.fx-banner > :nth-child(3) { animation-delay: .16s; }
.fx-banner > :nth-child(4) { animation-delay: .24s; }
/* The banner reads white in dark mode too, so nothing to invert. */

/* Carousel: the slide artwork drifts the same way. */
.fx-slide__bg { top: -18%; height: 136%; translate: 0 var(--py, 0px); will-change: translate; }

@media (prefers-reduced-motion: reduce) {
  .fx-banner::before, .fx-slide__bg { translate: none; }
  .fx-banner > *, .fx-banner .stack > * { animation: none; }
}
.section--tight { --section-pad: clamp(2.25rem, 1.25rem + 3vw, 3.5rem); }
.fx-banner .lede, .fx-banner > p { max-width: 64ch; }
.fx-banner.section-head--center .lede, .fx-banner.section-head--center > p { margin-inline: auto; }
.fx-banner .badge--accent { background: var(--accent); color: #fff; }
.fx-banner .fx-back { color: rgba(255, 255, 255, .8); }
.fx-banner .fx-back:hover { color: #fdba74; }
.fx-banner .fx-job__meta, .fx-banner .fx-job__meta span { color: rgba(255, 255, 255, .78); }
/* Programme page: the white hero card floats on a parallax band. */
.fx-prog { position: relative; isolation: isolate; }
.fx-prog__band { --py: 0px; position: absolute; left: 0; right: 0; top: 0; height: clamp(260px, 30vw, 360px); z-index: -1; overflow: hidden; }
.fx-prog__band::before, .fx-prog__band::after { content: ""; position: absolute; inset: 0; pointer-events: none; }
.fx-prog__band::before { inset: -18% 0; background: #0d0d12 var(--banner-art, none) center / cover no-repeat; translate: 0 var(--py); will-change: translate; }
.fx-prog__band::after { background: linear-gradient(90deg, rgba(8, 8, 12, .86), rgba(8, 8, 12, .55)), linear-gradient(0deg, rgba(8, 8, 12, .4), transparent 50%); }
.fx-prog__band ~ .container > .fx-prog__back { color: rgba(255, 255, 255, .82); }
.fx-prog__band ~ .container > .fx-prog__back:hover { color: #fdba74; }
@media (prefers-reduced-motion: reduce) { .fx-prog__band::before { translate: none; } }

/* Invoice: pay all or part of the balance (2.50) */
.tfm-paybox { display: grid; gap: var(--space-5); }
.tfm-paybox__head { display: grid; grid-template-columns: auto 1fr auto; gap: var(--space-4); align-items: center; }
.tfm-paybox__head h2 { margin: 0; font-size: var(--text-lg); color: var(--text-strong); }
.tfm-paybox__head p { margin: 2px 0 0; font-size: var(--text-sm); color: var(--text-muted); }
.tfm-paybox__due { text-align: right; }
.tfm-paybox__due small { display: block; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); }
.tfm-paybox__due strong { font-size: 24px; font-weight: 800; color: var(--accent-text); }
.tfm-paybox__form { display: grid; grid-template-columns: auto minmax(220px, 320px) auto; gap: var(--space-4); align-items: end; }
.tfm-paybox__form .field { margin: 0; }
.tfm-paybox__quick { display: flex; gap: 6px; align-self: center; }
.tfm-paybox__chip { min-width: 52px; min-height: 40px; padding: 0 12px; border-radius: var(--radius-pill); border: 1.5px solid var(--line-strong); background: var(--surface); font-weight: 700; font-size: 13px; color: var(--text); cursor: pointer; transition: all .2s; }
.tfm-paybox__chip:hover { border-color: var(--accent); }
.tfm-paybox__chip.is-on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-text); }
@media (max-width: 760px) {
  .tfm-paybox__head { grid-template-columns: auto 1fr; }
  .tfm-paybox__due { grid-column: 1 / -1; text-align: left; }
  .tfm-paybox__form { grid-template-columns: 1fr; }
  .tfm-paybox__quick .tfm-paybox__chip { flex: 1; min-height: 44px; }
}

/* ==========================================================================
   The application's front door (2.50): sign in, registration, recovery.
   A console, not a web page: dark portal panel, app bar, compact phone header.
   ========================================================================== */
.tfm-authapp { background: var(--page); }
.tfm-console { display: grid; grid-template-columns: minmax(360px, 44%) 1fr; min-height: 100vh; min-height: 100dvh; }
.tfm-console__side { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; gap: var(--space-8); padding: clamp(2rem, 4vw, 3.5rem); color: #fff; background: #0d0d12; }
.tfm-console__side::before { content: ""; position: absolute; inset: -6%; z-index: -2; background: #0d0d12 var(--banner-art, none) center / cover no-repeat; animation: tfm-console-drift 24s ease-in-out infinite alternate; }
.tfm-console__side::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(160deg, rgba(8, 8, 12, .9) 0%, rgba(8, 8, 12, .72) 55%, rgba(8, 8, 12, .55) 100%); }
.tfm-authapp.is-staff .tfm-console__side::after { background: linear-gradient(160deg, rgba(10, 12, 24, .94) 0%, rgba(10, 12, 24, .78) 60%, rgba(10, 12, 24, .6) 100%); }
@keyframes tfm-console-drift { from { transform: scale(1.04) translate(0, 0); } to { transform: scale(1.12) translate(-2%, 2%); } }
.tfm-console__brand { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); flex-wrap: wrap; }
.tfm-console__side .brand, .tfm-console__side .brand * { color: #fff; }
.tfm-console__portal { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; font-size: 12px; font-weight: 800; letter-spacing: .04em; color: #fdba74; background: rgba(249, 115, 22, .16); border: 1px solid rgba(249, 115, 22, .38); white-space: nowrap; }
.tfm-authapp.is-staff .tfm-console__portal { color: #c4b5fd; background: rgba(139, 92, 246, .16); border-color: rgba(139, 92, 246, .4); }
.tfm-console__pitch h2 { margin: 0; max-width: 16ch; font-size: clamp(28px, 3vw, 40px); line-height: 1.1; letter-spacing: -.03em; color: #fff; }
.tfm-console__pitch p { margin: var(--space-4) 0 0; max-width: 46ch; font-size: 16px; line-height: 1.6; color: rgba(255, 255, 255, .8); }
.tfm-console__points { list-style: none; margin: var(--space-8) 0 0; padding: 0; display: grid; gap: 12px; }
.tfm-console__points li { display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: center; font-size: 14.5px; color: rgba(255, 255, 255, .88); }
.tfm-console__points span { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: #fdba74; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .1); }
.tfm-authapp.is-staff .tfm-console__points span { color: #c4b5fd; }
.tfm-console__legal { margin: 0; font-size: 12px; color: rgba(255, 255, 255, .55); }

.tfm-console__main { display: grid; grid-template-rows: auto 1fr auto; min-width: 0; background: var(--page); }
.tfm-console__bar { display: flex; align-items: center; justify-content: flex-end; gap: var(--space-5); padding: 14px clamp(1rem, 3vw, 2rem); border-bottom: 1px solid var(--line); }
.tfm-console__mini { display: none; align-items: center; gap: 10px; margin-right: auto; }
.tfm-console__secure { font-size: 12.5px; font-weight: 600; color: var(--text-muted); }
.tfm-console__secure i { color: var(--bull); margin-right: 4px; }
.tfm-console__back { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border-radius: var(--radius-pill); border: 1px solid var(--line-strong); font-size: 13px; font-weight: 700; color: var(--text-strong); text-decoration: none; transition: border-color .2s, color .2s; }
.tfm-console__back:hover { border-color: var(--accent); color: var(--accent-text); }
.tfm-console__body { display: grid; place-items: center; padding: clamp(1.5rem, 4vw, 3rem) clamp(1rem, 3vw, 2rem); }
.tfm-console__card { width: min(440px, 100%); padding: clamp(1.5rem, 3vw, 2.25rem); border: 1px solid var(--line-strong); border-radius: 22px; background: var(--surface); box-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 18px 40px -24px rgba(16, 24, 40, .25); }
.tfm-console__foot { display: flex; gap: var(--space-5); justify-content: center; padding: 14px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--text-muted); }
.tfm-console__foot a { color: var(--text-muted); text-decoration: none; }
.tfm-console__foot a:hover { color: var(--accent-text); }

@media (max-width: 960px) {
  .tfm-console { grid-template-columns: 1fr; }
  .tfm-console__side { display: none; }
  .tfm-console__bar { background: #0d0d12; border-bottom: 0; justify-content: space-between; }
  .tfm-console__mini { display: inline-flex; }
  .tfm-console__mini .brand, .tfm-console__mini .brand * { color: #fff; }
  .tfm-console__secure { display: none; }
  .tfm-console__back { color: #fff; border-color: rgba(255, 255, 255, .3); }
  .tfm-console__back:hover { color: #fdba74; border-color: #fdba74; }
  .tfm-console__card { border: 0; box-shadow: none; padding-inline: 0; }
}
@media (max-width: 420px) { .tfm-console__back span, .tfm-console__portal { font-size: 11px; } .tfm-console__back { padding: 0 10px; } }
@media (prefers-reduced-motion: reduce) { .tfm-console__side::before { animation: none; } }
.tfm-console__back { white-space: nowrap; }
.tfm-console__short { display: none; }
@media (max-width: 960px) {
  .tfm-console__body { padding: var(--space-6) var(--space-5) var(--space-10); place-items: start center; }
  .tfm-console__long { display: none; }
  .tfm-console__short { display: inline; }
  .tfm-console__mini .brand { font-size: 1rem; }
}

/* A payment method on its way (2.51): visible, never selectable. */
.tfm-soon { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 14px; border: 1.5px dashed var(--line-strong); border-radius: 16px; background: var(--surface-sunken); color: var(--text-muted); cursor: not-allowed; }
.tfm-soon__icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: var(--text-dim); background: var(--surface); }
.tfm-soon__body strong { display: block; font-size: 14px; color: var(--text); }
.tfm-soon__body small { font-size: 12px; }
.tfm-soon__badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 700; color: var(--accent-text); background: var(--accent-soft); white-space: nowrap; }
.pay-methods + .tfm-soon, .fx-paycards .tfm-soon { margin-top: 0; }

/* ==========================================================================
   Settings (2.51): tabs, titled groups, switches, sticky save
   ========================================================================== */
.tfm-settings { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: var(--space-6); align-items: start; }
.tfm-settings__nav { position: sticky; top: calc(var(--header-height) + 16px); display: grid; gap: 4px; padding: 10px; border: 1px solid var(--line-strong); border-radius: 18px; background: var(--surface); }
.tfm-settings__nav a { display: grid; grid-template-columns: 22px 1fr auto; align-items: center; gap: 10px; min-height: 44px; padding: 0 12px; border-radius: 12px; font-size: 14px; font-weight: 600; color: var(--text); text-decoration: none; transition: background .2s, color .2s; }
.tfm-settings__nav a i { color: var(--text-muted); text-align: center; transition: color .2s; }
.tfm-settings__nav a:hover { background: var(--surface-sunken); color: var(--text-strong); }
.tfm-settings__nav a.is-active { background: var(--accent-soft); color: var(--accent-text); }
.tfm-settings__nav a.is-active i { color: var(--accent); }
.tfm-settings__dot { width: 8px; height: 8px; border-radius: 50%; }
.tfm-settings__dot.is-on { background: var(--bull); box-shadow: 0 0 0 3px color-mix(in srgb, var(--bull) 20%, transparent); }
.tfm-settings__dot.is-off { background: var(--danger); box-shadow: 0 0 0 3px var(--danger-soft); }
.tfm-settings__main { display: grid; gap: var(--space-5); min-width: 0; }
.tfm-settings:not(.is-tabbed) .tfm-settings__panel + .tfm-settings__panel { margin-top: var(--space-8); }
.tfm-settings__panel { display: grid; gap: var(--space-5); animation: fx-slide-up .3s var(--ease-out) both; }
.tfm-settings__panel[hidden] { display: none; }
.tfm-settings__head { display: grid; grid-template-columns: auto 1fr; gap: var(--space-4); align-items: center; }
.tfm-settings__head h2 { margin: 0; font-size: var(--text-xl); letter-spacing: -.02em; color: var(--text-strong); outline: none; }
.tfm-settings__head p { margin: 2px 0 0; font-size: var(--text-sm); color: var(--text-muted); }

.tfm-set { margin: 0; padding: 0; min-width: 0; border: 1px solid var(--line-strong); border-radius: 18px; background: var(--surface); box-shadow: 0 1px 2px rgba(16, 24, 40, .04); overflow: hidden; }
.tfm-set > legend { float: left; width: 100%; padding: 14px 20px; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--surface-sunken) 55%, var(--surface)); }
.tfm-set > legend + * { clear: both; }
.tfm-set__row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: var(--space-5); align-items: center; padding: 16px 20px; border-top: 1px solid var(--line); }
.tfm-set > legend + .tfm-set__row { border-top: 0; }
.tfm-set__row.is-wide { grid-template-columns: 1fr; gap: var(--space-3); }
.tfm-set__text label { display: block; font-size: 14px; font-weight: 700; color: var(--text-strong); }
.tfm-set__text small { display: block; margin-top: 2px; font-size: 12.5px; line-height: 1.45; color: var(--text-muted); }
.tfm-set__control .input, .tfm-set__control .select, .tfm-set__control .textarea { width: 100%; }
.tfm-set__secret { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 8px; }
.tfm-set__clear { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-muted); cursor: pointer; }
.tfm-set__row--switch { grid-template-columns: minmax(0, 1fr) auto; }
.tfm-set__pad { padding: 16px 20px; clear: both; }
.tfm-set__tools { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; }
.tfm-set__tools .input { max-width: 280px; }
.tfm-set--advanced > summary { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 20px; font-size: 14px; font-weight: 700; color: var(--text-strong); cursor: pointer; list-style: none; }
.tfm-set--advanced > summary::-webkit-details-marker { display: none; }
.tfm-set--advanced > summary i:first-child { color: var(--text-muted); }
.tfm-set--advanced > summary small { font-weight: 500; color: var(--text-muted); }
.tfm-set__chev { margin-left: auto; color: var(--text-muted); transition: transform .3s var(--ease-out); }
.tfm-set--advanced[open] .tfm-set__chev { transform: rotate(180deg); }
.tfm-set--advanced[open] > summary { border-bottom: 1px solid var(--line); }
.tfm-set--advanced > summary + .tfm-set__row { border-top: 0; }

/* Switch */
.tfm-switch { position: relative; display: inline-flex; width: 50px; height: 28px; flex: none; }
.tfm-switch input[type="checkbox"] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.tfm-switch__track { position: absolute; inset: 0; border-radius: 999px; background: var(--line-strong); transition: background .25s; }
.tfm-switch__knob { position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .25s var(--ease-spring); }
.tfm-switch input:checked + .tfm-switch__track { background: var(--accent); }
.tfm-switch input:checked + .tfm-switch__track .tfm-switch__knob { transform: translateX(22px); }
.tfm-switch input:focus-visible + .tfm-switch__track { box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent); }

/* Payments status */
.tfm-paystatus { display: grid; grid-template-columns: auto 1fr auto; gap: var(--space-4); align-items: center; padding: 16px 20px; border-radius: 18px; border: 1px solid var(--line-strong); background: var(--surface); }
.tfm-paystatus.is-on { border-color: color-mix(in srgb, var(--bull) 40%, var(--line)); background: color-mix(in srgb, var(--bull) 5%, var(--surface)); }
.tfm-paystatus.is-off { border-color: color-mix(in srgb, var(--danger) 35%, var(--line)); background: color-mix(in srgb, var(--danger) 4%, var(--surface)); }
.tfm-paystatus__icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-size: 20px; color: #fff; background: linear-gradient(145deg, #fbbf24, #f59e0b); }
.tfm-paystatus strong { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 15px; color: var(--text-strong); }
.tfm-paystatus small { display: block; margin-top: 3px; font-size: 13px; color: var(--text-muted); }
.tfm-webhook { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; align-items: center; padding: 14px 18px; border-radius: 14px; background: var(--surface-sunken); font-size: 13px; color: var(--text); }
.tfm-webhook span i { color: var(--accent); margin-right: 4px; }
.tfm-webhook code { grid-column: 1; font-size: 12.5px; word-break: break-all; color: var(--text-strong); }
.tfm-webhook .btn { grid-row: 1 / span 2; grid-column: 2; }

.tfm-settings__save { position: sticky; bottom: 12px; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); padding: 12px 12px 12px 20px; border: 1px solid var(--line-strong); border-radius: 16px; background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(10px); box-shadow: 0 12px 30px -18px rgba(16, 24, 40, .35); font-size: 12.5px; color: var(--text-muted); }
.tfm-settings__save i { color: var(--bull); margin-right: 4px; }

@media (max-width: 1080px) {
  .tfm-settings { grid-template-columns: 1fr; }
  .tfm-settings__nav { position: static; display: flex; overflow-x: auto; padding: 6px; scrollbar-width: none; }
  .tfm-settings__nav a { flex: none; grid-template-columns: auto auto auto; }
}
@media (max-width: 640px) {
  .tfm-set__row { grid-template-columns: 1fr; gap: var(--space-2); padding: 14px 16px; }
  .tfm-set__row--switch { grid-template-columns: 1fr auto; }
  .tfm-paystatus { grid-template-columns: auto 1fr; }
  .tfm-paystatus .btn { grid-column: 1 / -1; }
  .tfm-webhook { grid-template-columns: 1fr; }
  .tfm-webhook .btn { grid-row: auto; grid-column: 1; justify-self: start; }
  .tfm-settings__save span { display: none; }
  .tfm-settings__save .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .tfm-settings__panel { animation: none; } }

/* ==========================================================================
   Lists that edit in place (2.52): a compact row per item, its editor opens
   only when asked for. Used across the admin "Learn" to "Commerce" screens.
   ========================================================================== */
.tfm-list { display: grid; gap: 10px; }
.tfm-list + .tfm-list { margin-top: var(--space-4); }
.tfm-list__head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); padding: 4px 2px; }
.tfm-list__head h2 { display: flex; align-items: center; gap: 10px; margin: 0; font-size: var(--text-lg); color: var(--text-strong); }
.tfm-list__head h2 i { color: var(--accent); }
.tfm-list__empty { margin: 0; padding: 18px; border: 1px dashed var(--line-strong); border-radius: 16px; font-size: 14px; color: var(--text-muted); text-align: center; }
.tfm-list--fold > summary { cursor: pointer; list-style: none; }
.tfm-list--fold > summary::-webkit-details-marker { display: none; }
.tfm-list--fold > summary h2 { font-size: var(--text-md); color: var(--text-muted); }

.tfm-edit { border: 1px solid var(--line-strong); border-radius: 16px; background: var(--surface); box-shadow: 0 1px 2px rgba(16, 24, 40, .04); transition: border-color .25s, box-shadow .25s; }
.tfm-edit[open] { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); box-shadow: 0 18px 40px -30px rgba(249, 115, 22, .5); }
.tfm-edit.is-off { background: var(--surface-sunken); }
.tfm-edit__row { display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto auto; gap: 14px; align-items: center; min-height: 64px; padding: 10px 16px; cursor: pointer; list-style: none; border-radius: 16px; }
.tfm-edit__row::-webkit-details-marker { display: none; }
.tfm-edit__row:hover { background: color-mix(in srgb, var(--accent) 4%, transparent); }
.tfm-edit__row .tfm-icon-tile { width: 40px; height: 40px; font-size: 16px; border-radius: 12px; }
.tfm-edit__num { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 800; color: var(--text-muted); background: var(--surface-sunken); }
.tfm-edit__main { min-width: 0; }
.tfm-edit__main strong { display: block; font-size: 15px; color: var(--text-strong); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tfm-edit__main small { display: block; font-size: 12.5px; color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tfm-edit__pills { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.tfm-edit__go { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-strong); font-size: 12.5px; font-weight: 700; color: var(--text); white-space: nowrap; transition: border-color .2s, color .2s; }
.tfm-edit__row:hover .tfm-edit__go { border-color: var(--accent); color: var(--accent-text); }
.tfm-edit[open] .tfm-edit__go { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-text); }
.tfm-edit__body { padding: 4px 16px 16px; animation: fx-level-open .3s var(--ease-out); }
.tfm-edit__form { display: grid; gap: var(--space-4); }
.tfm-edit__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); justify-content: flex-end; }
.tfm-edit--add { border-style: dashed; background: transparent; box-shadow: none; }
.tfm-edit--add .tfm-edit__row { grid-template-columns: auto minmax(0, 1fr); }
.tfm-edit--add .tfm-edit__num { color: var(--accent); background: var(--accent-soft); }

@media (max-width: 760px) {
  .tfm-edit__row { grid-template-columns: auto minmax(0, 1fr) auto; }
  .tfm-edit__row .tfm-icon-tile, .tfm-edit__pills { display: none; }
  .tfm-edit__go { padding: 0 10px; }
  .tfm-edit__body { padding: 4px 10px 12px; }
}
.tfm-edit--child { margin-left: 34px; }
.tfm-edit__spacer { flex: 1; }
.tfm-edit__actions .btn--quiet[data-confirm-danger] { color: #dc2626; }
@media (max-width: 760px) { .tfm-edit--child { margin-left: 16px; } }
/* Folders that fold, and a roomier Manage box (media library, 2.52) */
.tfm-fold > summary { cursor: pointer; list-style: none; }
.tfm-fold > summary::-webkit-details-marker { display: none; }
.tfm-fold__head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); }
.tfm-fold__title { display: inline-flex; align-items: center; gap: 10px; min-width: 0; }
.tfm-fold__title i { color: var(--accent); }
.tfm-fold__meta { display: inline-flex; align-items: center; gap: 10px; }
.tfm-fold[open] .tfm-set__chev { transform: rotate(180deg); }
.tfm-fold:not([open]) > summary { border-bottom: 0; }
.tfm-manage__panel { display: grid; gap: var(--space-2); margin-top: var(--space-2); min-width: 320px; padding: var(--space-4); border: 1px solid var(--line-strong); border-radius: 14px; background: var(--surface); box-shadow: 0 18px 40px -26px rgba(16, 24, 40, .35); }
.tfm-manage__label { margin-top: var(--space-2); font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); }
.tfm-manage__label:first-child { margin-top: 0; }
.tfm-edit__sub { margin-left: 6px; font-weight: 500; color: var(--text-muted); font-family: var(--font-body); }
.tfm-edit__facts { margin: 0; font-size: 12.5px; color: var(--text-muted); }
.tfm-edit__facts i { color: var(--accent); margin-right: 4px; }
/* Tables: a little less padding between columns, so data tables fit their card (2.52). */
.table th, .table td { padding-left: .75rem; padding-right: .75rem; }
.table th:first-child, .table td:first-child { padding-left: 1rem; }
/* Two even columns (2.53), and six figures in an even strip. */
.tfm-grid-2 { display: grid; gap: var(--space-5); grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
.tfm-grid-2 > * { min-width: 0; }
@media (max-width: 900px) { .tfm-grid-2 { grid-template-columns: 1fr; } }
.metric-strip:has(> .stat:nth-child(6):last-child) { grid-template-columns: repeat(6, minmax(0, 1fr)); }
@media (max-width: 1280px) { .metric-strip:has(> .stat:nth-child(6):last-child) { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .metric-strip:has(> .stat:nth-child(6):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---- 2.55 Business overview (admin/dashboard.php, .tfm-biz) ---- */
.tfm-biz__range { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: var(--radius-pill); background: var(--surface-sunken); border: 1px solid var(--line); }
.tfm-biz__range a { padding: 7px 14px; border-radius: var(--radius-pill); font-size: 13px; font-weight: var(--weight-bold); color: var(--text-muted); text-decoration: none; transition: background .2s, color .2s; }
.tfm-biz__range a:hover { color: var(--text-strong); }
.tfm-biz__range a.is-on { background: var(--surface); color: var(--accent-text); box-shadow: 0 2px 8px -4px rgba(0,0,0,.25); }
.tfm-biz__row { margin-top: var(--space-5); align-items: stretch; }
.tfm-biz__card { display: flex; flex-direction: column; gap: var(--space-4); padding: var(--space-5); }
.tfm-biz__head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); }
.tfm-biz__head h2, .tfm-biz__section h2 { margin: 0; font-size: 16px; display: flex; align-items: center; gap: 10px; }
.tfm-biz__head h2 i, .tfm-biz__section h2 i { color: var(--accent); }
.tfm-biz__empty { margin: 0; padding: var(--space-6) var(--space-4); text-align: center; color: var(--text-muted); background: var(--surface-sunken); border-radius: var(--radius-lg); }
.tfm-biz__empty i { display: block; font-size: 22px; margin-bottom: 8px; color: var(--accent); }
.tfm-biz__delta { display: inline-flex; align-items: center; gap: 4px; padding: 1px 8px; border-radius: var(--radius-pill); font-weight: var(--weight-bold); background: var(--surface-sunken); }
.tfm-biz__delta--up { color: var(--success); background: color-mix(in srgb, var(--success) 12%, var(--surface)); }
.tfm-biz__delta--down { color: #dc2626; background: color-mix(in srgb, var(--danger) 10%, var(--surface)); }
.tfm-biz__chart { display: flex; align-items: flex-end; gap: 3px; height: 170px; padding: 0 2px; border-bottom: 1px solid var(--line-strong); }
.tfm-biz__bar { flex: 1 1 0; height: 100%; display: flex; align-items: flex-end; cursor: default; }
.tfm-biz__bar i { display: block; width: 100%; height: var(--h); min-height: 2px; border-radius: 5px 5px 2px 2px; background: linear-gradient(180deg, var(--accent), color-mix(in srgb, var(--accent) 55%, #fff)); transition: filter .2s, transform .2s; transform-origin: bottom; animation: tfm-biz-grow .7s cubic-bezier(.2,.8,.2,1) both; }
.tfm-biz__bar:hover i { filter: brightness(1.12); }
@keyframes tfm-biz-grow { from { transform: scaleY(0); } }
.tfm-biz__axis { display: flex; justify-content: space-between; gap: 8px; font-size: 11px; color: var(--text-muted); }
.tfm-biz__facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-3); margin: 0; }
.tfm-biz__facts div { padding: var(--space-3); border-radius: var(--radius-md); background: var(--surface-sunken); min-width: 0; }
.tfm-biz__facts dt { font-size: 11px; color: var(--text-muted); }
.tfm-biz__facts dd { margin: 2px 0 0; font-weight: var(--weight-bold); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.tfm-biz__todo { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.tfm-biz__todo a { display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 12px; padding: 11px 14px; border-radius: var(--radius-md); border: 1px solid var(--line); color: var(--text); text-decoration: none; transition: border-color .2s, transform .2s; }
.tfm-biz__todo a:hover { border-color: var(--accent); transform: translateX(2px); }
.tfm-biz__todo a > .fa-chevron-right { color: var(--text-muted); font-size: 12px; }
.tfm-biz__todo-icon { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; --c: #0284c7; color: var(--c); background: color-mix(in srgb, var(--c) 12%, var(--surface)); }
.tfm-biz__todo-warn .tfm-biz__todo-icon { --c: #a16207; }
.tfm-biz__todo-bad .tfm-biz__todo-icon { --c: #dc2626; }
.tfm-biz__todo strong { font-variant-numeric: tabular-nums; font-size: 16px; }
.tfm-biz__health { margin-top: auto; border-top: 1px solid var(--line); padding-top: var(--space-3); }
.tfm-biz__health summary { cursor: pointer; display: flex; align-items: center; gap: 10px; font-weight: var(--weight-bold); list-style: none; }
.tfm-biz__health summary::-webkit-details-marker { display: none; }
.tfm-biz__health summary .tfm-pill { margin-left: auto; }
.tfm-biz__health .fx-health { margin-top: var(--space-3); }
.tfm-biz__bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.tfm-biz__bars li > div { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; }
.tfm-biz__bars li > div span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tfm-biz__bars strong { font-variant-numeric: tabular-nums; white-space: nowrap; }
.tfm-biz__bars small { color: var(--text-muted); font-size: 12px; }
.tfm-biz__track { display: block; height: 8px; margin: 6px 0 4px; border-radius: 99px; background: var(--surface-sunken); overflow: hidden; }
.tfm-biz__track i { display: block; height: 100%; border-radius: inherit; background: var(--accent); }
.tfm-biz__bars--alt .tfm-biz__track i { background: #0ea5e9; }
.tfm-biz__section { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); margin: var(--space-8) 0 var(--space-4); }
.tfm-biz__tile { display: flex; flex-direction: column; gap: 6px; padding: var(--space-5); color: var(--text); text-decoration: none; transition: border-color .2s, transform .2s; }
.tfm-biz__tile:hover { border-color: var(--accent); transform: translateY(-2px); }
.tfm-biz__tile .tfm-icon-tile { margin-bottom: 6px; }
.tfm-biz__tile-label { font-size: 13px; color: var(--text-muted); font-weight: var(--weight-bold); }
.tfm-biz__tile strong { font-size: 26px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.tfm-biz__tile small { color: var(--text-muted); font-size: 12px; }
.tfm-biz__till { margin-top: var(--space-6); }
.tfm-biz__till .panel__title i { color: var(--accent); margin-right: 6px; }
@media (max-width: 1100px) { .tfm-biz__facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .tfm-biz__range { width: 100%; justify-content: space-between; } .tfm-biz__range a { padding: 7px 10px; } .tfm-biz__chart { height: 130px; gap: 2px; } }
@media (prefers-reduced-motion: reduce) { .tfm-biz__bar i { animation: none; } }

/* ---- 2.55 Row actions (partials/row-actions.php, .tfm-actions) ---- */
.tfm-actions { display: inline-flex; align-items: center; justify-content: flex-end; gap: 6px; flex-wrap: nowrap; }
.tfm-actions__form { display: inline; margin: 0; }
.tfm-actions .btn--sm { white-space: nowrap; }
.tfm-actions__danger { color: #dc2626; }
.tfm-actions__more { position: relative; }
.tfm-actions__more > summary { list-style: none; cursor: pointer; }
.tfm-actions__more > summary::-webkit-details-marker { display: none; }
.tfm-actions__menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 60; min-width: 190px; padding: 6px; border-radius: var(--radius-md); background: var(--surface); border: 1px solid var(--line-strong); box-shadow: 0 18px 40px -18px rgba(0,0,0,.35); display: grid; gap: 2px; text-align: left; }
.tfm-actions__item { display: flex; width: 100%; align-items: center; gap: 10px; padding: 9px 12px; border: 0; border-radius: 8px; background: none; color: var(--text); font: inherit; font-size: 14px; text-decoration: none; cursor: pointer; white-space: nowrap; }
.tfm-actions__item i { width: 16px; text-align: center; color: var(--text-muted); }
.tfm-actions__item:hover, .tfm-actions__item:focus-visible { background: var(--surface-sunken); }
.tfm-actions__item.is-danger, .tfm-actions__item.is-danger i { color: #dc2626; }
.tfm-actions__item.is-danger:hover { background: color-mix(in srgb, var(--danger) 10%, var(--surface)); }
@media (max-width: 640px) { .tfm-actions .btn--sm > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } }

/* ---- 2.55 Orders (admin/commerce.php) ---- */
.tfm-orders__head { flex-wrap: wrap; gap: var(--space-3); }
.tfm-orders__pay { margin-top: var(--space-5); padding: var(--space-5); display: grid; gap: var(--space-4); }
.tfm-orders__pay-row { display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: var(--space-4); }
.tfm-orders__pay-row small { display: block; color: var(--text-muted); }
@media (max-width: 640px) { .tfm-orders__pay-row { grid-template-columns: auto 1fr; } }

/* ---- 2.56 Donations (partials/donate-modal.php, donate-form.php, .tfm-give) ---- */
.tfm-give__panel { width: min(540px, 100%); padding: var(--space-6); background: var(--surface); }
.tfm-give__head { display: grid; grid-template-columns: auto 1fr auto; gap: var(--space-4); align-items: start; margin-bottom: var(--space-5); }
.tfm-give__head h2 { margin: 2px 0 4px; font-size: 20px; }
.tfm-give__head p { margin: 0; font-size: 14px; color: var(--text-muted); line-height: 1.5; }
.tfm-give__close { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--surface); color: var(--text-muted); cursor: pointer; display: grid; place-items: center; transition: color .2s, border-color .2s, transform .2s; }
.tfm-give__close:hover { color: var(--text-strong); border-color: var(--accent); transform: rotate(90deg); }
.tfm-give { display: grid; gap: var(--space-5); }
.tfm-give__step { border: 0; padding: 0; margin: 0; display: grid; gap: 10px; min-width: 0; }
.tfm-give__step legend { display: flex; align-items: center; gap: 10px; padding: 0; margin-bottom: 10px; font-weight: var(--weight-bold); font-size: 15px; }
.tfm-give__num { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; color: #fff; background: var(--accent); }
.tfm-give__tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(104px, 1fr)); gap: 8px; }
.tfm-give__tile { display: grid; gap: 2px; padding: 12px 8px; border-radius: var(--radius-md); border: 1.5px solid var(--line-strong); background: var(--surface); cursor: pointer; text-align: center; color: var(--text); transition: border-color .2s, background .2s, transform .15s; }
.tfm-give__tile small { font-size: 11px; color: var(--text-muted); font-weight: var(--weight-bold); letter-spacing: .04em; }
.tfm-give__tile strong { font-size: 16px; font-variant-numeric: tabular-nums; }
.tfm-give__tile:hover { border-color: color-mix(in srgb, var(--accent) 55%, var(--line-strong)); transform: translateY(-1px); }
.tfm-give__tile.is-on { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 9%, var(--surface)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 15%, transparent); }
.tfm-give__tile.is-on strong { color: var(--accent-text); }
.tfm-give__amount { display: flex; align-items: center; border: 1.5px solid var(--line-strong); border-radius: var(--radius-md); background: var(--surface); overflow: hidden; transition: border-color .2s, box-shadow .2s; }
.tfm-give__amount:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 16%, transparent); }
.tfm-give__currency { padding: 0 14px; align-self: stretch; display: grid; place-items: center; font-weight: var(--weight-bold); font-size: 13px; color: var(--text-muted); background: var(--surface-sunken); border-right: 1px solid var(--line); }
.tfm-give__amount input, .tfm-give__amount input:focus { flex: 1; min-width: 0; border: 0 !important; outline: 0; box-shadow: none !important; padding: 13px 14px; font-size: 18px; font-weight: var(--weight-bold); background: transparent; color: var(--text-strong); }
.tfm-give__fields { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3) var(--space-4); }
.tfm-give__wide { grid-column: 1 / -1; }
.tfm-give__note { margin: 0; display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--success); }
.tfm-give__error { margin: 0; padding: 10px 14px; border-radius: var(--radius-md); font-size: 14px; color: #dc2626; background: color-mix(in srgb, var(--danger) 9%, var(--surface)); }
.tfm-give__go { font-size: 16px; padding-block: 14px; }
.tfm-give__go.is-busy { opacity: .8; cursor: progress; }
.tfm-give__go i { animation: tfm-give-beat 1.6s ease-in-out infinite; }
@keyframes tfm-give-beat { 0%, 100% { transform: scale(1); } 15% { transform: scale(1.2); } 30% { transform: scale(1); } }
.tfm-give__trust { list-style: none; margin: -4px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; font-size: 12px; color: var(--text-muted); }
.tfm-give__trust i { color: var(--accent); margin-right: 4px; }
.tfm-give__fine { margin: -8px 0 0; text-align: center; }
.tfm-give__soon { display: grid; justify-items: center; gap: 8px; text-align: center; padding: var(--space-6) var(--space-4); border-radius: var(--radius-lg); background: var(--surface-sunken); }
.tfm-give__soon > i { font-size: 28px; color: var(--accent); }
.tfm-give__soon p { margin: 0 0 8px; color: var(--text-muted); max-width: 36ch; }
@media (max-width: 520px) { .tfm-give__panel { padding: var(--space-5) var(--space-4); } .tfm-give__fields { grid-template-columns: 1fr; } .tfm-give__head { grid-template-columns: 1fr auto; } .tfm-give__head > .tfm-icon-tile { display: none; } }
@media (prefers-reduced-motion: reduce) { .tfm-give__go i { animation: none; } }

/* ---- 2.56 Student payments (dashboard/payments.php, .tfm-paid) ---- */
.tfm-paid__stats { margin-bottom: var(--space-5); }
.tfm-paid__waiting { margin-bottom: var(--space-4); display: flex; gap: 10px; align-items: center; }
.tfm-paid__section { margin-top: var(--space-6); }
.tfm-paid__cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: var(--space-4); }
.tfm-paid__card { padding: var(--space-5); display: grid; gap: var(--space-4); }
.tfm-paid__top { display: flex; justify-content: space-between; gap: var(--space-3); align-items: start; }
.tfm-paid__top strong { display: block; font-size: 16px; }
.tfm-paid__top small { color: var(--text-muted); font-size: 12px; }
.tfm-paid__bar { height: 10px; border-radius: 99px; background: var(--surface-sunken); overflow: hidden; }
.tfm-paid__bar span { display: block; height: 100%; min-width: 4px; border-radius: inherit; background: linear-gradient(90deg, var(--success), color-mix(in srgb, var(--success) 60%, #fff)); transition: width .6s; }
.tfm-paid__nums { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0; }
.tfm-paid__nums div { padding: 10px; border-radius: var(--radius-md); background: var(--surface-sunken); min-width: 0; }
.tfm-paid__nums dt { font-size: 11px; color: var(--text-muted); }
.tfm-paid__nums dd { margin: 2px 0 0; font-weight: var(--weight-bold); font-variant-numeric: tabular-nums; font-size: 14px; overflow-wrap: anywhere; }
.tfm-paid__go { display: flex; flex-wrap: wrap; gap: 8px; }
.tfm-paid__section .panel__title i { color: var(--accent); margin-right: 6px; }
@media (max-width: 420px) { .tfm-paid__cards { grid-template-columns: 1fr; } }

/* ---- 2.57 Library reader (learn/reader.php, .tfm-read) ---- */
.tfm-read { min-height: calc(100vh - 150px); }
.tfm-read__bar { gap: 10px 14px; }
.tfm-read .fx-reader__title { align-items: center; }
.tfm-read__icon { width: 38px; height: 38px; flex: none; border-radius: 11px; display: grid; place-items: center; font-size: 17px; color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, var(--surface)); }
.tfm-read__names { display: grid; min-width: 0; line-height: 1.25; }
.tfm-read__names strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tfm-read__names small { font-size: 12px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tfm-read__themes { display: inline-flex; gap: 2px; padding: 3px; border-radius: 12px; background: var(--surface-sunken); }
.tfm-read__themes button { width: 32px !important; height: 30px !important; border-radius: 9px !important; }
.tfm-read__progress { height: 3px; background: var(--line); }
.tfm-read__progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), #f59e0b); transition: width .4s ease; }
.tfm-read__body { flex: 1; display: flex; min-height: 0; }
.tfm-read__body > .fx-reader__stage { flex: 1; min-width: 0; }
.tfm-read__rail { width: 168px; flex: none; overflow-y: auto; max-height: calc(100vh - 214px); padding: 14px 12px; display: grid; align-content: start; gap: 12px; background: var(--surface); border-right: 1px solid var(--line); }
.tfm-read__rail[hidden] { display: none; }
.tfm-read__thumb { position: relative; display: grid; justify-items: center; gap: 6px; padding: 6px; min-height: 90px; border: 2px solid transparent; border-radius: 10px; background: var(--surface-sunken); cursor: pointer; color: var(--text-muted); font-size: 12px; font-weight: var(--weight-bold); }
.tfm-read__thumb canvas { max-width: 100%; height: auto; border-radius: 4px; box-shadow: 0 4px 12px -8px rgba(0,0,0,.4); background: #fff; }
.tfm-read__thumb:hover { border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.tfm-read__thumb.is-on { border-color: var(--accent); color: var(--accent-text); background: color-mix(in srgb, var(--accent) 8%, var(--surface)); }
.tfm-read .fx-reader__page { transition: box-shadow .3s; }
.tfm-read.has-mark .fx-reader__page::before, .tfm-read.has-mark .tfm-read__mark::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background-image: var(--tfm-wm, none); background-repeat: repeat; }
.tfm-read .fx-reader__num { z-index: 2; }
.tfm-read.is-sepia .fx-reader__stage { background: #efe6d4; }
.tfm-read.is-sepia .fx-reader__page canvas, .tfm-read.is-sepia .tfm-read__figure img { filter: sepia(.4) brightness(.96) contrast(.95); }
.tfm-read.is-sepia .fx-reader__page { background: #f8f0df; }
.tfm-read.is-night .fx-reader__stage { background: #15171c; }
.tfm-read.is-night .fx-reader__page { background: #1d2027; box-shadow: 0 10px 30px -14px #000; }
.tfm-read.is-night .fx-reader__page canvas { filter: invert(.9) hue-rotate(180deg) brightness(.95); }
.tfm-read__viewer { justify-content: center; }
.tfm-read__figure { position: relative; margin: 0; max-width: 100%; border-radius: 10px; overflow: hidden; box-shadow: 0 18px 40px -22px rgba(0,0,0,.45); background: #fff; }
.tfm-read__figure img { display: block; max-width: 100%; max-height: calc(100vh - 260px); object-fit: contain; -webkit-user-drag: none; user-select: none; pointer-events: none; }
.tfm-read__player { position: relative; width: min(960px, 100%); border-radius: 14px; overflow: hidden; background: #0d0f14; box-shadow: 0 18px 40px -22px rgba(0,0,0,.55); display: grid; justify-items: center; gap: 18px; }
.tfm-read__player video { display: block; width: 100%; max-height: calc(100vh - 260px); background: #000; }
.tfm-read__player audio { width: calc(100% - 48px); margin-bottom: 28px; }
.tfm-read__audio-art { margin-top: 40px; width: 110px; height: 110px; border-radius: 50%; display: grid; place-items: center; font-size: 42px; color: #fff; background: radial-gradient(circle at 30% 30%, #fb923c, var(--accent)); box-shadow: 0 0 0 14px rgba(249,115,22,.12); }
.tfm-read__player.tfm-read__mark::before { z-index: 1; }
@media (max-width: 900px) { .tfm-read__rail { position: absolute; z-index: 5; left: 0; top: auto; height: calc(100% - 120px); box-shadow: 12px 0 30px -20px rgba(0,0,0,.5); } .tfm-read__body { position: relative; } }
@media (max-width: 640px) { .tfm-read__hide-sm { display: none; } .tfm-read .fx-reader__tools { width: 100%; justify-content: space-between; } }

/* ---- 2.57 Library (dashboard/library.php, .tfm-lib) ---- */
.tfm-lib__continue { margin-bottom: var(--space-5); }
.tfm-lib__continue h2 { font-size: 16px; margin: 0 0 var(--space-3); display: flex; align-items: center; gap: 10px; }
.tfm-lib__continue h2 i { color: var(--accent); }
.tfm-lib__continue-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: var(--space-3); }
.tfm-lib__resume { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; padding: 14px 16px; border-radius: var(--radius-lg); border: 1px solid var(--line-strong); background: var(--surface); color: var(--text); text-decoration: none; transition: border-color .2s, transform .2s, box-shadow .2s; }
.tfm-lib__resume:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: 0 14px 30px -22px rgba(0,0,0,.4); }
.tfm-lib__resume > .fa-arrow-right { color: var(--accent); }
.tfm-lib__resume-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 18px; color: #fff; background: linear-gradient(145deg, #fb923c, var(--accent)); }
.tfm-lib__resume-text { display: grid; gap: 3px; min-width: 0; }
.tfm-lib__resume-text strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tfm-lib__resume-text small { color: var(--text-muted); font-size: 12px; }
.tfm-lib__filters { margin-bottom: var(--space-5); }
.tfm-lib__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: var(--space-5) var(--space-4); }
.tfm-lib__grid > [hidden] { display: none; }
.tfm-lib__book { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.tfm-lib__cover { --c1: #fb923c; --c2: #ea580c; position: relative; aspect-ratio: 3 / 4; border-radius: 6px 14px 14px 6px; padding: 18px 16px 16px 26px; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; overflow: hidden; color: #fff; text-decoration: none; background: linear-gradient(155deg, var(--c1), var(--c2)); box-shadow: 0 18px 30px -20px color-mix(in srgb, var(--c2) 80%, #000), inset 0 0 0 1px rgba(255,255,255,.08); transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s; transform-origin: left center; }
.tfm-lib__cover:hover { transform: perspective(900px) rotateY(-9deg) translateY(-3px); box-shadow: 14px 24px 36px -22px color-mix(in srgb, var(--c2) 80%, #000); }
.tfm-lib__cover[aria-disabled="true"] { cursor: default; filter: grayscale(.4) opacity(.8); }
.tfm-lib__cover[aria-disabled="true"]:hover { transform: none; }
.tfm-lib__spine { position: absolute; left: 0; top: 0; bottom: 0; width: 12px; background: linear-gradient(90deg, rgba(0,0,0,.28), rgba(255,255,255,.12) 60%, rgba(0,0,0,.08)); }
.tfm-lib__cover > i { position: absolute; top: 18px; right: 16px; font-size: 30px; opacity: .9; }
.tfm-lib__cover::after { content: ""; position: absolute; right: -40px; top: -40px; width: 140px; height: 140px; border-radius: 50%; background: rgba(255,255,255,.1); }
.tfm-lib__kind { font-size: 11px; font-weight: var(--weight-bold); letter-spacing: .08em; text-transform: uppercase; opacity: .85; }
.tfm-lib__cover-title { font-size: 17px; font-weight: var(--weight-bold); line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; text-shadow: 0 1px 2px rgba(0,0,0,.2); }
.tfm-lib__done { position: absolute; left: 26px; top: 16px; display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 99px; font-size: 11px; font-weight: var(--weight-bold); background: rgba(255,255,255,.92); color: #15803d; }
.tfm-lib__cover--slides { --c1: #a78bfa; --c2: #6d28d9; }
.tfm-lib__cover--doc { --c1: #60a5fa; --c2: #1d4ed8; }
.tfm-lib__cover--sheet { --c1: #4ade80; --c2: #15803d; }
.tfm-lib__cover--video { --c1: #f472b6; --c2: #be185d; }
.tfm-lib__cover--audio { --c1: #2dd4bf; --c2: #0f766e; }
.tfm-lib__cover--image { --c1: #fbbf24; --c2: #b45309; }
.tfm-lib__cover--link, .tfm-lib__cover--file { --c1: #94a3b8; --c2: #334155; }
.tfm-lib__info { display: grid; gap: 4px; min-width: 0; }
.tfm-lib__info h3 { margin: 0; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tfm-lib__meta, .tfm-lib__where { font-size: 12px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tfm-lib__progress { display: block; height: 5px; border-radius: 99px; background: var(--surface-sunken); overflow: hidden; }
.tfm-lib__progress > span { display: block; height: 100%; border-radius: inherit; background: var(--accent); }
.tfm-lib__progress[hidden] { display: none; }
.tfm-lib__actions { display: flex; gap: 6px; flex-wrap: wrap; margin-top: auto; }
.tfm-lib__actions .btn--primary { flex: 1; justify-content: center; }
.tfm-lib__note { margin-top: var(--space-6); font-size: 13px; color: var(--text-muted); display: flex; gap: 8px; align-items: center; }
@media (max-width: 520px) { .tfm-lib__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4) var(--space-3); } .tfm-lib__cover { padding: 14px 12px 12px 20px; } .tfm-lib__cover-title { font-size: 14px; } .tfm-lib__cover > i { font-size: 22px; } }
@media (prefers-reduced-motion: reduce) { .tfm-lib__cover, .tfm-lib__cover:hover { transition: none; transform: none; } }
.tfm-lib__done[hidden], .tfm-lib__where[hidden] { display: none; }

/* ---- 2.58 Competency breakdown (dashboard/skill-profile.php, .tfm-comp) ---- */
.tfm-comp { margin: var(--space-6) 0; }
.tfm-comp__head { display: grid; grid-template-columns: auto 1fr; gap: var(--space-5); align-items: center; padding: var(--space-5); margin-bottom: var(--space-5); border-radius: var(--radius-xl); border: 1px solid var(--line-strong); background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 7%, var(--surface)), var(--surface) 60%); }
.tfm-comp__intro h2 { margin: 0 0 4px; font-size: 20px; display: flex; align-items: center; gap: 10px; }
.tfm-comp__intro h2 i { color: var(--accent); }
.tfm-comp__intro p { margin: 0 0 12px; color: var(--text-muted); font-size: 14px; }
.tfm-comp__tally { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tfm-comp__ring { --p: 0; --size: 64px; --c: var(--accent); width: var(--size); height: var(--size); flex: none; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--c) calc(var(--p) * 1%), var(--surface-sunken) 0); position: relative; }
.tfm-comp__ring::before { content: ""; position: absolute; inset: 6px; border-radius: 50%; background: var(--surface); }
.tfm-comp__ring span { position: relative; font-weight: var(--weight-bold); font-size: 16px; font-variant-numeric: tabular-nums; }
.tfm-comp__ring small { font-size: 10px; color: var(--text-muted); margin-left: 1px; }
.tfm-comp__ring--lg { --size: 104px; }
.tfm-comp__ring--lg::before { inset: 9px; }
.tfm-comp__ring--lg span { font-size: 26px; }
.tfm-comp__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: var(--space-4); }
.tfm-comp__card { padding: var(--space-5); border-radius: var(--radius-lg); border: 1px solid var(--line-strong); background: var(--surface); display: grid; gap: var(--space-4); transition: transform .25s, box-shadow .25s, border-color .25s; animation: tfm-rise .5s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(var(--d, 0) * 60ms); }
.tfm-comp__card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--accent) 45%, var(--line-strong)); box-shadow: 0 18px 34px -24px rgba(0,0,0,.35); }
.tfm-comp__top { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; }
.tfm-comp__name { display: grid; gap: 6px; justify-items: start; min-width: 0; }
.tfm-comp__name h3 { margin: 0; font-size: 16px; line-height: 1.25; }
.tfm-comp__dims { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.tfm-comp__dims li { display: grid; grid-template-columns: 118px 1fr 42px; align-items: center; gap: 10px; font-size: 13px; }
.tfm-comp__dim-label { color: var(--text-muted); white-space: nowrap; }
.tfm-comp__dim-label i { width: 16px; text-align: center; color: var(--accent); margin-right: 4px; }
.tfm-comp__dims strong { text-align: right; font-variant-numeric: tabular-nums; }
.tfm-comp__bar { height: 8px; border-radius: 99px; background: var(--surface-sunken); overflow: hidden; }
.tfm-comp__bar > span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--accent), #fbbf24); transform-origin: left; animation: tfm-fill .9s cubic-bezier(.2,.8,.2,1) both; }
@keyframes tfm-rise { from { opacity: 0; transform: translateY(10px); } }
@keyframes tfm-fill { from { transform: scaleX(0); } }
@media (max-width: 560px) { .tfm-comp__head { grid-template-columns: 1fr; justify-items: center; text-align: center; } .tfm-comp__intro h2 { justify-content: center; } .tfm-comp__tally { justify-content: center; } .tfm-comp__grid { grid-template-columns: 1fr; } .tfm-comp__dims li { grid-template-columns: 104px 1fr 38px; } }

/* ---- 2.58 Achievements (partials/achievements.php, .tfm-ach) ---- */
.tfm-rank .fx-rank__title i { color: #f59e0b; margin-right: 4px; }
.tfm-rank .fx-rank__scale i { color: #f59e0b; }
.tfm-ach { margin: var(--space-6) 0; }
.tfm-ach__head { display: grid; grid-template-columns: auto auto 1fr; align-items: center; gap: 10px 16px; margin-bottom: var(--space-5); }
.tfm-ach__head h2 { margin: 0; font-size: 20px; display: flex; align-items: center; gap: 10px; }
.tfm-ach__head h2 i { color: #f59e0b; }
.tfm-ach__score { font-size: 14px; color: var(--text-muted); white-space: nowrap; }
.tfm-ach__score strong { color: var(--text-strong); font-size: 16px; }
.tfm-ach__meter { height: 8px; border-radius: 99px; background: var(--surface-sunken); overflow: hidden; min-width: 80px; }
.tfm-ach__meter > span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #f59e0b, var(--accent)); }
.tfm-ach__filters { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; }
.tfm-ach__filter { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: var(--radius-pill); border: 1px solid var(--line-strong); background: var(--surface); color: var(--text); font: inherit; font-size: 14px; font-weight: var(--weight-bold); cursor: pointer; transition: border-color .2s, background .2s, color .2s; }
.tfm-ach__filter span { min-width: 22px; padding: 1px 7px; border-radius: 99px; font-size: 12px; background: var(--surface-sunken); color: var(--text-muted); }
.tfm-ach__filter:hover { border-color: var(--accent); }
.tfm-ach__filter.is-on { background: var(--accent); border-color: var(--accent); color: #fff; }
.tfm-ach__filter.is-on span { background: rgba(255,255,255,.25); color: #fff; }
.tfm-ach__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: var(--space-4); }
.tfm-ach__grid > [hidden] { display: none; }
.tfm-ach__card { --tone: var(--accent); position: relative; display: grid; justify-items: center; align-content: start; gap: 8px; padding: var(--space-5) var(--space-4); text-align: center; border-radius: var(--radius-lg); border: 1px solid var(--line-strong); background: var(--surface); transition: transform .25s, box-shadow .25s, border-color .25s; animation: tfm-rise .5s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(var(--d, 0) * 50ms); }
.tfm-ach__card--learning { --tone: #f97316; }
.tfm-ach__card--trading { --tone: #0ea5e9; }
.tfm-ach__card--community { --tone: #ec4899; }
.tfm-ach__card:hover { transform: translateY(-4px); box-shadow: 0 20px 36px -26px rgba(0,0,0,.4); border-color: color-mix(in srgb, var(--tone) 50%, var(--line-strong)); }
.tfm-ach__card h3 { margin: 4px 0 0; font-size: 15px; }
.tfm-ach__card p { margin: 0; font-size: 13px; color: var(--text-muted); line-height: 1.45; }
.tfm-ach__medal { position: relative; width: 84px; height: 84px; display: grid; place-items: center; margin-bottom: 4px; }
.tfm-ach__ring { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(var(--tone) calc(var(--p) * 1%), var(--surface-sunken) 0); }
.tfm-ach__face { position: relative; width: 70px; height: 70px; border-radius: 50%; display: grid; place-items: center; font-size: 28px; color: #fff; background: linear-gradient(145deg, color-mix(in srgb, var(--tone) 65%, #fff), var(--tone)); box-shadow: inset 0 -6px 12px rgba(0,0,0,.15), 0 10px 20px -12px var(--tone); overflow: hidden; }
.tfm-ach__card.is-locked .tfm-ach__face { background: var(--surface-sunken); color: color-mix(in srgb, var(--text-muted) 70%, transparent); box-shadow: inset 0 0 0 1px var(--line-strong); }
.tfm-ach__card.is-locked h3 { color: var(--text-muted); }
.tfm-ach__lock, .tfm-ach__gem { position: absolute; right: -2px; bottom: 2px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; border: 2px solid var(--surface); }
.tfm-ach__lock { background: var(--text-muted); color: #fff; }
.tfm-ach__gem { background: linear-gradient(145deg, #c084fc, #7c3aed); color: #fff; }
.tfm-ach__card.is-rare { border-color: color-mix(in srgb, #8b5cf6 40%, var(--line-strong)); background: linear-gradient(180deg, color-mix(in srgb, #8b5cf6 6%, var(--surface)), var(--surface) 55%); }
.tfm-ach__card.is-earned .tfm-ach__face::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,.45) 50%, transparent 65%); background-size: 250% 100%; animation: tfm-shine 3.5s ease-in-out infinite; }
@keyframes tfm-shine { 0%, 60% { background-position: 150% 0; } 100% { background-position: -100% 0; } }
.tfm-ach__count { font-size: 12px; font-weight: var(--weight-bold); color: var(--text-muted); padding: 4px 10px; border-radius: 99px; background: var(--surface-sunken); font-variant-numeric: tabular-nums; }
.tfm-ach__empty { color: var(--text-muted); }
.tfm-ach__help { margin-top: var(--space-5); }
.tfm-ach__help summary i { color: var(--accent); margin-right: 6px; }
.tfm-ach__xp { list-style: none; margin: var(--space-3) 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; }
.tfm-ach__xp li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--radius-md); background: var(--surface-sunken); font-size: 14px; }
.tfm-ach__xp li i { width: 18px; text-align: center; color: var(--accent); }
.tfm-ach__xp li strong { margin-left: auto; color: var(--success); font-variant-numeric: tabular-nums; }
@media (max-width: 640px) { .tfm-ach__head { grid-template-columns: 1fr auto; } .tfm-ach__meter { grid-column: 1 / -1; } .tfm-ach__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); } .tfm-ach__medal { width: 70px; height: 70px; } .tfm-ach__face { width: 58px; height: 58px; font-size: 22px; } .tfm-ach__card { padding: var(--space-4) var(--space-3); } }
@media (prefers-reduced-motion: reduce) { .tfm-comp__card, .tfm-ach__card, .tfm-comp__bar > span { animation: none; } .tfm-ach__card.is-earned .tfm-ach__face::after { animation: none; } }

/* ---- 2.58 Media library (admin/media-library.php, .tfm-media) ---- */
.tfm-media__stats { margin-bottom: var(--space-5); }
.tfm-media__bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-3); align-items: center; margin-bottom: var(--space-5); }
.tfm-media__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.tfm-media__chips a { text-decoration: none; }
.tfm-media__search { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.tfm-media__search .select { max-width: 190px; }
.tfm-media__search .input { max-width: 240px; }
.tfm-media__playlists { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: var(--space-5); }
.tfm-media__label { font-weight: var(--weight-bold); font-size: 14px; display: inline-flex; gap: 8px; align-items: center; margin-right: 4px; }
.tfm-media__label i { color: var(--accent); }
.tfm-media__playlist { display: grid; padding: 8px 14px; border-radius: var(--radius-md); border: 1px solid var(--line-strong); background: var(--surface); color: var(--text); text-decoration: none; transition: border-color .2s; }
.tfm-media__playlist:hover { border-color: var(--accent); }
.tfm-media__playlist small { color: var(--text-muted); font-size: 12px; }
.tfm-media__select { position: sticky; top: 76px; z-index: 6; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 12px 16px; margin-bottom: var(--space-4); border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--accent); box-shadow: 0 16px 30px -22px rgba(0,0,0,.4); }
.tfm-media__select[hidden] { display: none; }
.tfm-media__select .input { max-width: 220px; }
.tfm-media__select .select { max-width: 200px; }
.tfm-media__count i { color: var(--accent); margin-right: 4px; }
.tfm-media__shelf { margin-bottom: var(--space-4); border: 1px solid var(--line-strong); border-radius: var(--radius-lg); background: var(--surface); }
.tfm-media__shelf-head { list-style: none; display: flex; align-items: center; gap: 12px; padding: 14px 18px; cursor: pointer; }
.tfm-media__shelf-head::-webkit-details-marker { display: none; }
.tfm-media__shelf-head > .fa-folder-open { color: #f59e0b; }
.tfm-media__shelf-title { font-weight: var(--weight-bold); flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tfm-media__chev { color: var(--text-muted); transition: transform .25s; }
.tfm-media__shelf[open] .tfm-media__chev { transform: rotate(180deg); }
.tfm-media__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: var(--space-4); padding: 0 18px 18px; }
.tfm-media__card { position: relative; display: flex; flex-direction: column; border-radius: var(--radius-md); border: 1px solid var(--line); background: var(--surface); overflow: hidden; transition: border-color .2s, box-shadow .2s, transform .2s; }
.tfm-media__card:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--line-strong)); box-shadow: 0 16px 30px -24px rgba(0,0,0,.45); transform: translateY(-2px); }
.tfm-media__card.is-picked { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
.tfm-media__card.is-missing .tfm-media__thumb { filter: grayscale(1); opacity: .7; }
.tfm-media__check { position: absolute; z-index: 2; top: 10px; left: 10px; width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: rgba(255,255,255,.92); box-shadow: 0 2px 6px rgba(0,0,0,.2); cursor: pointer; }
.tfm-media__thumb { --c1: #fb923c; --c2: #c2410c; position: relative; aspect-ratio: 16 / 9; width: 100%; border: 0; padding: 0; display: grid; place-items: center; cursor: pointer; background: linear-gradient(135deg, var(--c1), var(--c2)); background-size: cover; background-position: center; }
.tfm-media__thumb--audio { --c1: #2dd4bf; --c2: #0f766e; }
.tfm-media__thumb--hls { --c1: #a78bfa; --c2: #6d28d9; cursor: default; }
.tfm-media__thumb:disabled { cursor: default; }
.tfm-media__play { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font-size: 19px; color: var(--c2); background: rgba(255,255,255,.94); box-shadow: 0 8px 18px -8px rgba(0,0,0,.45); transition: transform .2s; }
.tfm-media__thumb:not(:disabled):hover .tfm-media__play { transform: scale(1.1); }
.tfm-media__len { position: absolute; right: 8px; bottom: 8px; padding: 2px 8px; border-radius: 6px; font-size: 12px; font-weight: var(--weight-bold); color: #fff; background: rgba(0,0,0,.65); font-variant-numeric: tabular-nums; }
.tfm-media__body { display: grid; gap: 6px; padding: 12px 14px 8px; min-width: 0; }
.tfm-media__body h3 { margin: 0; font-size: 14px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tfm-media__pills { display: flex; flex-wrap: wrap; gap: 4px; }
.tfm-media__pills .tfm-pill { padding: 3px 8px; font-size: 11px; }
.tfm-media__file, .tfm-media__used { font-size: 12px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tfm-media__used i { color: var(--success); margin-right: 3px; }
.tfm-media__actions { display: flex; gap: 6px; padding: 8px 14px 14px; margin-top: auto; }
.tfm-media__actions .btn--ghost { flex: 1; justify-content: center; }
.tfm-media__modal { width: min(640px, 100%); padding: var(--space-6); background: var(--surface); display: grid; gap: var(--space-4); }
.tfm-media__modal--player { width: min(960px, 100%); }
.tfm-media__modal-head { display: flex; justify-content: space-between; align-items: center; gap: var(--space-3); }
.tfm-media__modal-head h2 { margin: 0; font-size: 18px; display: flex; gap: 10px; align-items: center; min-width: 0; }
.tfm-media__modal-head h2 i { color: var(--accent); }
.tfm-media__stage video { display: block; width: 100%; max-height: 70vh; border-radius: 12px; background: #000; }
.tfm-media__stage audio { width: 100%; }
.tfm-media__assign-row { display: flex; gap: 8px; }
.tfm-media__assign-row .select { flex: 1; min-width: 0; }
.tfm-media__advanced > summary { cursor: pointer; font-weight: var(--weight-bold); padding: 6px 0; }
@media (max-width: 640px) { .tfm-media__grid { grid-template-columns: 1fr 1fr; gap: var(--space-3); padding: 0 12px 12px; } .tfm-media__search, .tfm-media__search .input, .tfm-media__search .select { width: 100%; max-width: none; } .tfm-media__modal { padding: var(--space-5) var(--space-4); } .tfm-media__assign-row { flex-direction: column; } }
@media (max-width: 400px) { .tfm-media__grid { grid-template-columns: 1fr; } }
.tfm-media__search { flex: 1 1 520px; justify-content: flex-end; flex-wrap: nowrap; }
.tfm-media__search .input { flex: 1; }
.tfm-media__assign-row { padding: 14px 20px; }
.tfm-media__advanced > summary { padding: 12px 20px; }
@media (max-width: 640px) { .tfm-media__search { flex-wrap: wrap; } }

/* ---- 2.59 Public header fits (Donate is a heart icon until there is room; the menu folds earlier) ---- */
@media (max-width: 1720px) { .header-donate__text { display: none; } .header-donate { width: 38px; padding-inline: 0; justify-content: center; } .header-donate i { color: #e11d48; } }
@media (max-width: 560px) { .header-donate { display: none !important; } }
@media (max-width: 1600px) { .site-header .nav__link { padding-inline: 0.5rem; } .site-header .nav { gap: 0; } }
@media (max-width: 1280px) { .site-header .nav__link { padding-inline: 0.4rem; font-size: 14px; } }
@media (max-width: 1180px) { .site-header .nav { display: none; } .site-header .nav-toggle { display: grid; place-items: center; } .header-actions .btn--ghost { display: none; } }
@media (max-width: 1180px) { .site-header .header-actions { margin-left: auto; } .site-header .nav-toggle { color: var(--text-strong); border: 1px solid var(--line-strong); width: 40px; height: 38px; } .site-header .nav-toggle svg { stroke: currentColor; opacity: 1; } }

/* ---- 2.60 Self-paced plans on the Plans page (partials/self-paced-plans.php, .tfm-self) ---- */
.tfm-self { margin-top: var(--space-12); padding: var(--space-8) var(--space-6); border-radius: var(--radius-xl); border: 1px solid var(--line-strong); background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 5%, var(--surface)), var(--surface) 38%); }
.tfm-self__head { text-align: center; max-width: 720px; margin: 0 auto var(--space-6); }
.tfm-self__head h2 { margin: 8px 0; }
.tfm-self__head p { color: var(--text-muted); margin: 0; }
.tfm-self__head .eyebrow i { margin-right: 6px; }
.tfm-self__compare { max-width: 860px; margin: 0 auto var(--space-6); border: 1px solid var(--line-strong); border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); }
.tfm-self__compare-row { display: grid; grid-template-columns: 130px 1fr 1fr; }
.tfm-self__compare-row > span { padding: 11px 16px; font-size: 14px; border-top: 1px solid var(--line); }
.tfm-self__compare-row > span:first-child { font-weight: var(--weight-bold); color: var(--text-muted); }
.tfm-self__compare-row > span:last-child { background: color-mix(in srgb, var(--accent) 5%, var(--surface)); }
.tfm-self__compare-row--head > span { border-top: 0; font-weight: var(--weight-bold); color: var(--text-strong); background: var(--surface-sunken); }
.tfm-self__compare-row--head > span:last-child { background: color-mix(in srgb, var(--accent) 12%, var(--surface)); color: var(--accent-text); }
.tfm-self__compare-row--head i { margin-right: 6px; }
.tfm-self__cycles { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-bottom: var(--space-5); }
.tfm-self__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-4); align-items: stretch; }
.tfm-self__card { position: relative; display: flex; flex-direction: column; gap: 10px; padding: var(--space-5); border-radius: var(--radius-lg); border: 1px solid var(--line-strong); background: var(--surface); transition: transform .25s, box-shadow .25s, border-color .25s; }
.tfm-self__card:hover { transform: translateY(-3px); box-shadow: 0 20px 36px -26px rgba(0,0,0,.4); }
.tfm-self__card.is-featured { border: 2px solid var(--accent); box-shadow: 0 22px 40px -28px color-mix(in srgb, var(--accent) 70%, #000); }
.tfm-self__flag { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); padding: 3px 12px; border-radius: 99px; font-size: 12px; font-weight: var(--weight-bold); color: #fff; background: var(--accent); white-space: nowrap; }
.tfm-self__card h3 { margin: 4px 0 0; font-size: 18px; }
.tfm-self__tag { margin: 0; color: var(--text-muted); font-size: 13px; min-height: 2.6em; }
.tfm-self__price strong { font-size: 30px; line-height: 1; font-variant-numeric: tabular-nums; }
.tfm-self__price small { color: var(--text-muted); }
.tfm-self__price [hidden], .tfm-self__go [hidden] { display: none; }
.tfm-self__features { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; font-size: 13.5px; }
.tfm-self__features i { color: var(--success); width: 16px; }
.tfm-self__more summary { cursor: pointer; font-size: 13px; font-weight: var(--weight-bold); color: var(--accent-text); margin-bottom: 7px; }
.tfm-self__go { margin-top: auto; padding-top: 6px; }
.tfm-self__note { margin: var(--space-5) 0 0; text-align: center; font-size: 13px; color: var(--text-muted); }
.tfm-self__note i { color: var(--accent); margin-right: 4px; }
@media (max-width: 1100px) { .tfm-self__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: var(--space-6); } }
@media (max-width: 600px) { .tfm-self { padding: var(--space-6) var(--space-4); } .tfm-self__grid { grid-template-columns: 1fr; } .tfm-self__compare-row { grid-template-columns: 1fr 1fr; } .tfm-self__compare-row > span:first-child { grid-column: 1 / -1; padding-bottom: 0; border-top: 1px solid var(--line); } .tfm-self__compare-row > span:not(:first-child) { border-top: 0; } .tfm-self__compare-row--head > span:first-child { display: none; } }

/* ---- 2.60 Rich drop-downs (.tfm-mega) and the mobile drawer groups (.tfm-mnav) ---- */
.nav__menu.tfm-mega { min-width: 340px; padding: 10px; border-radius: 16px; box-shadow: 0 28px 60px -28px rgba(0,0,0,.45); }
.nav__group:hover > .nav__menu.tfm-mega, .nav__group:focus-within > .nav__menu.tfm-mega { display: grid; gap: 6px; animation: tfm-mega-in .18s ease-out; }
.nav__menu.tfm-mega::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
@keyframes tfm-mega-in { from { opacity: 0; transform: translateY(6px); } }
.nav__menu.tfm-mega { width: 360px; }
.nav__menu.tfm-mega.tfm-mega--wide { width: 620px; }
.tfm-mega__grid { display: grid; gap: 2px; }
.tfm-mega--wide .tfm-mega__grid { grid-template-columns: 1fr 1fr; }
.nav__menu.tfm-mega a.tfm-mega__item { display: grid; grid-template-columns: 38px 1fr; gap: 12px; align-items: center; padding: 10px; border-radius: 12px; white-space: normal; color: var(--text); }
.nav__menu.tfm-mega a.tfm-mega__item:hover, .nav__menu.tfm-mega a.tfm-mega__item:focus-visible { background: color-mix(in srgb, var(--accent) 8%, var(--surface)); }
.tfm-mega__icon { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; font-size: 15px; color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, var(--surface)); transition: background .2s, color .2s; }
.tfm-mega__item:hover .tfm-mega__icon { background: var(--accent); color: #fff; }
.tfm-mega__text { display: grid; gap: 1px; min-width: 0; }
.tfm-mega__text strong { font-size: 14px; font-weight: var(--weight-bold); color: var(--text-strong); }
.tfm-mega__text small { font-size: 12.5px; color: var(--text-muted); line-height: 1.35; }
.nav__menu.tfm-mega a.tfm-mega__all { display: flex; justify-content: space-between; align-items: center; margin-top: 2px; padding: 10px 12px; border-radius: 10px; font-size: 13px; font-weight: var(--weight-bold); color: var(--accent-text); background: var(--surface-sunken); }
.nav__menu.tfm-mega a.tfm-mega__all:hover { background: color-mix(in srgb, var(--accent) 12%, var(--surface)); }
.nav__group:last-child > .tfm-mega, .nav__group:nth-last-child(2) > .tfm-mega { left: auto; right: 0; }
.tfm-mnav > summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
.tfm-mnav > summary::-webkit-details-marker { display: none; }
.tfm-mnav > summary i { font-size: 12px; transition: transform .2s; color: var(--text-muted); }
.tfm-mnav[open] > summary i { transform: rotate(180deg); }
.tfm-mnav__items { display: grid; gap: 2px; padding: 4px 0 10px; }
.tfm-mnav__item { display: grid; grid-template-columns: 38px 1fr; gap: 12px; align-items: center; padding: 8px 6px; border-radius: 12px; color: var(--text); text-decoration: none; }
.tfm-mnav__item:active, .tfm-mnav__item:hover { background: var(--surface-sunken); }
.nav__menu.tfm-mega a::before { display: none; }
.nav__menu.tfm-mega a:hover, .nav__menu.tfm-mega a:focus-visible { padding-left: 10px; color: var(--text); }
.nav__menu.tfm-mega a.tfm-mega__all:hover { padding-left: 12px; color: var(--accent-text); }
.nav__group:last-child > .tfm-mega::after, .nav__group:nth-last-child(2) > .tfm-mega::after { left: auto; right: 26px; }

/* ---- 2.60 Website menu drag and drop (admin/navigation.php) ---- */
.tfm-navdrag__hint { margin: 0 0 var(--space-3); font-size: 13px; color: var(--text-muted); }
.tfm-navdrag__hint i { color: var(--accent); margin-right: 4px; }
.tfm-navdrag__status { margin: 0 0 var(--space-3); font-size: 13px; font-weight: var(--weight-bold); color: var(--success); min-height: 1.2em; }
.tfm-navtree { display: grid; gap: 10px; }
.tfm-navgroup { border-radius: var(--radius-lg); transition: opacity .2s, box-shadow .2s; }
.tfm-navgroup.is-dragging, .tfm-edit.is-dragging { opacity: .45; box-shadow: 0 0 0 2px var(--accent); }
.tfm-navkids { display: grid; gap: 6px; margin-top: 6px; min-height: 8px; }
.tfm-navdrag { width: 28px; height: 34px; flex: none; display: grid; place-items: center; border-radius: 8px; color: var(--text-muted); cursor: grab; }
.tfm-navdrag:hover { background: var(--surface-sunken); color: var(--accent); }
.tfm-navdrag:active { cursor: grabbing; }

/* ---- 2.61 Enrolment pay step (dashboard/application.php) ---- */
.tfm-paysteps { list-style: none; margin: 0 0 var(--space-5); padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; counter-reset: none; }
.tfm-paysteps li { position: relative; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--radius-md); background: var(--surface-sunken); font-size: 13px; font-weight: var(--weight-bold); color: var(--text-muted); }
.tfm-paysteps li > span { width: 26px; height: 26px; flex: none; border-radius: 50%; display: grid; place-items: center; font-size: 12px; background: var(--surface); border: 1.5px solid var(--line-strong); }
.tfm-paysteps li.is-now { color: var(--accent-text); background: color-mix(in srgb, var(--accent) 10%, var(--surface)); }
.tfm-paysteps li.is-now > span { background: var(--accent); border-color: var(--accent); color: #fff; }
.tfm-paysteps li.is-done { color: var(--success); }
.tfm-paysteps li.is-done > span { background: var(--success); border-color: var(--success); color: #fff; }
.tfm-openpay { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 16px; margin-bottom: var(--space-5); border-radius: var(--radius-lg); border: 1px solid color-mix(in srgb, #0ea5e9 45%, var(--line-strong)); background: color-mix(in srgb, #0ea5e9 6%, var(--surface)); }
.tfm-openpay--part { border-color: color-mix(in srgb, var(--success) 45%, var(--line-strong)); background: color-mix(in srgb, var(--success) 6%, var(--surface)); }
.tfm-openpay__icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-size: 19px; color: #fff; background: linear-gradient(145deg, #38bdf8, #0284c7); }
.tfm-openpay--part .tfm-openpay__icon { background: linear-gradient(145deg, #4ade80, #15803d); }
.tfm-openpay__icon i { animation: tfm-give-beat 2s ease-in-out infinite; }
.tfm-openpay__text { display: grid; gap: 3px; min-width: 0; }
.tfm-openpay__text small { color: var(--text-muted); font-size: 13px; }
.tfm-openpay__msg { color: var(--text-strong) !important; font-weight: var(--weight-bold); }
.tfm-openpay__go { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.tfm-payoff { display: grid; gap: var(--space-4); padding: var(--space-5); border-radius: var(--radius-lg); border: 1px solid var(--line-strong); background: linear-gradient(180deg, color-mix(in srgb, #f59e0b 7%, var(--surface)), var(--surface)); }
.tfm-payoff__head { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start; }
.tfm-payoff__head strong { font-size: 17px; }
.tfm-payoff__head p { margin: 4px 0 0; color: var(--text-muted); font-size: 14px; }
.tfm-payoff__icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-size: 19px; color: #b45309; background: color-mix(in srgb, #f59e0b 18%, var(--surface)); }
.tfm-payoff__ways { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; }
.tfm-payoff__way { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; padding: 12px 14px; border-radius: var(--radius-md); border: 1px solid var(--line-strong); background: var(--surface); color: var(--text); text-decoration: none; transition: border-color .2s, transform .2s; }
a.tfm-payoff__way:hover { border-color: var(--accent); transform: translateY(-2px); }
.tfm-payoff__way > i { grid-row: 1 / 3; font-size: 20px; color: var(--accent); width: 24px; text-align: center; }
.tfm-payoff__way > .fa-whatsapp { color: #16a34a; }
.tfm-payoff__way strong { font-size: 14px; }
.tfm-payoff__way small { color: var(--text-muted); font-size: 12px; }
.tfm-payoff__ref { margin: 0; font-size: 13px; color: var(--text-muted); }
.tfm-payoff__ref i { color: var(--accent); margin-right: 4px; }
.tfm-paylater { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: flex-end; margin-top: var(--space-4); padding-top: var(--space-4); border-top: 1px solid var(--line); }
.tfm-paylater .select { max-width: 220px; }
.tfm-paylater__done { margin: 0; color: var(--success); font-weight: var(--weight-bold); font-size: 14px; }
@media (max-width: 640px) { .tfm-paysteps { grid-template-columns: 1fr; } .tfm-openpay { grid-template-columns: auto 1fr; } .tfm-openpay__go { grid-column: 1 / -1; justify-content: stretch; } .tfm-openpay__go .btn { flex: 1; justify-content: center; } .tfm-paylater { justify-content: stretch; } .tfm-paylater .select, .tfm-paylater .btn { width: 100%; max-width: none; justify-content: center; } }

/* ---- 2.62 Library engagement (dashboard/library.php) and reader notes ---- */
.tfm-lib__stats { display: grid; grid-template-columns: 1.4fr 1.4fr 1fr 1fr; gap: var(--space-3); margin-bottom: var(--space-5); }
.tfm-lib__stat { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; padding: 14px 16px; border-radius: var(--radius-lg); border: 1px solid var(--line-strong); background: var(--surface); }
.tfm-lib__stat > i { grid-row: 1 / 3; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font-size: 18px; color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, var(--surface)); }
.tfm-lib__stat strong { font-size: 22px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.tfm-lib__stat span { font-size: 13px; color: var(--text-muted); }
.tfm-lib__stat small { grid-column: 2; font-size: 12px; color: var(--text-muted); }
.tfm-lib__stat--streak { grid-template-columns: auto auto 1fr; }
.tfm-lib__stat--streak > i { color: #9ca3af; background: var(--surface-sunken); }
.tfm-lib__stat--streak.is-lit > i { color: #fff; background: linear-gradient(160deg, #fbbf24, #ea580c); box-shadow: 0 8px 18px -8px #ea580c; animation: tfm-give-beat 2.4s ease-in-out infinite; }
.tfm-lib__stat--streak span { align-self: end; }
.tfm-lib__stat--streak small { grid-column: 2 / 4; }
.tfm-lib__stat--goal { grid-template-columns: auto 1fr; grid-template-rows: auto; }
.tfm-lib__stat--goal > div { display: grid; }
.tfm-lib__stat--goal strong { font-size: 16px; }
.tfm-lib__shelfnav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: var(--space-4); }
.tfm-lib__shelfnav a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: var(--radius-pill); border: 1px solid var(--line-strong); background: var(--surface); color: var(--text); font-size: 14px; font-weight: var(--weight-bold); text-decoration: none; transition: border-color .2s; }
.tfm-lib__shelfnav a:hover { border-color: var(--accent); }
.tfm-lib__shelfnav a i { color: var(--accent); }
.tfm-lib__shelfnav a span { padding: 1px 7px; border-radius: 99px; font-size: 12px; background: var(--surface-sunken); color: var(--text-muted); }
.tfm-lib__shelf { margin-bottom: var(--space-8); scroll-margin-top: 90px; }
.tfm-lib__shelf[hidden] { display: none; }
.tfm-lib__shelf-head { display: flex; align-items: center; gap: 12px; margin-bottom: var(--space-4); padding-bottom: var(--space-3); border-bottom: 2px solid var(--line); }
.tfm-lib__shelf-head h2 { margin: 0; font-size: 18px; display: flex; align-items: center; gap: 10px; }
.tfm-lib__shelf-head h2 i { color: var(--accent); }
.tfm-lib__book { position: relative; }
.tfm-lib__fav { position: absolute; z-index: 2; top: 10px; right: 10px; width: 34px; height: 34px; border-radius: 50%; border: 0; display: grid; place-items: center; cursor: pointer; color: #fff; background: rgba(0,0,0,.28); backdrop-filter: blur(4px); transition: transform .2s, background .2s; }
.tfm-lib__fav:hover { transform: scale(1.1); background: rgba(0,0,0,.45); }
.tfm-lib__fav.is-on { color: #facc15; background: rgba(0,0,0,.5); }
.tfm-lib__fav[hidden] { display: none; }
.tfm-lib__book .tfm-lib__cover > i { top: 56px; }
.tfm-lib__new { color: #b45309 !important; }
.tfm-lib__resume-icon.tfm-lib__cover--pdf, .tfm-lib__resume-icon[class*="tfm-lib__cover--"] { background: linear-gradient(145deg, var(--c1), var(--c2)); }
.tfm-read__panel { position: absolute; z-index: 6; top: 60px; right: 12px; bottom: 44px; width: min(360px, calc(100% - 24px)); display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: var(--radius-lg); border: 1px solid var(--line-strong); background: var(--surface); box-shadow: 0 24px 50px -24px rgba(0,0,0,.45); overflow-y: auto; }
.tfm-read__panel[hidden] { display: none; }
.tfm-read { position: relative; }
.tfm-read__panel header { display: flex; justify-content: space-between; align-items: center; }
.tfm-read__panel header i { color: #f59e0b; margin-right: 6px; }
.tfm-read__panel textarea { min-height: 180px; resize: vertical; }
.tfm-read__saved, .tfm-read__time { font-size: 12px; color: var(--text-muted); }
.tfm-read__marks-title { font-size: 14px; margin-top: 6px; }
.tfm-read__marks-title i { color: var(--accent); margin-right: 6px; }
.tfm-read__marks { display: flex; flex-wrap: wrap; gap: 6px; }
.tfm-read__mark-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 99px; border: 1px solid var(--line-strong); background: var(--surface-sunken); font: inherit; font-size: 13px; cursor: pointer; }
.tfm-read__mark-chip i { color: var(--accent); }
.tfm-read__mark-chip:hover { border-color: var(--accent); }
.tfm-read [data-reader-fav][aria-pressed="true"] i { color: #eab308; }
@media (max-width: 1000px) { .tfm-lib__stats { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .tfm-lib__stats { grid-template-columns: 1fr; } }
.tfm-lib__resume-icon { --c1: #fb923c; --c2: #ea580c; color: #fff; background: linear-gradient(145deg, var(--c1), var(--c2)) !important; }
.tfm-lib__resume-icon.tfm-lib__cover--slides { --c1: #a78bfa; --c2: #6d28d9; } .tfm-lib__resume-icon.tfm-lib__cover--doc { --c1: #60a5fa; --c2: #1d4ed8; } .tfm-lib__resume-icon.tfm-lib__cover--video { --c1: #f472b6; --c2: #be185d; } .tfm-lib__resume-icon.tfm-lib__cover--audio { --c1: #2dd4bf; --c2: #0f766e; }

/* ---- 2.62 Lesson page polish (learn/lesson.php) ---- */
.tfm-lmeta { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tfm-lmeta li { display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px; border-radius: 99px; font-size: 13px; color: var(--text-muted); background: var(--surface-sunken); border: 1px solid var(--line); }
.tfm-lmeta li i { color: var(--accent); }
.tfm-lmeta li.is-done { color: var(--success); background: color-mix(in srgb, var(--success) 10%, var(--surface)); border-color: color-mix(in srgb, var(--success) 30%, var(--line)); }
.tfm-lmeta li.is-done i { color: var(--success); }
.tfm-kp__head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 10px; }
.tfm-kp__count { font-size: 12px; font-weight: var(--weight-bold); color: var(--text-muted); }
.tfm-kp__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.tfm-kp__item { width: 100%; display: grid; grid-template-columns: 30px 1fr 26px; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; border: 1px solid color-mix(in srgb, var(--accent) 22%, var(--line)); background: var(--surface); font: inherit; font-size: 14.5px; text-align: left; color: var(--text); cursor: pointer; transition: border-color .2s, background .2s, transform .15s; }
.tfm-kp__item:hover { border-color: var(--accent); transform: translateX(2px); }
.tfm-kp__num { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: var(--weight-bold); color: var(--accent-text); background: color-mix(in srgb, var(--accent) 14%, var(--surface)); }
.tfm-kp__tick { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; color: transparent; border: 2px solid var(--line-strong); transition: background .2s, border-color .2s, color .2s; }
.tfm-kp__item[aria-pressed="true"] { background: color-mix(in srgb, var(--success) 8%, var(--surface)); border-color: color-mix(in srgb, var(--success) 40%, var(--line)); }
.tfm-kp__item[aria-pressed="true"] .tfm-kp__num { color: #fff; background: var(--success); }
.tfm-kp__item[aria-pressed="true"] .tfm-kp__tick { color: #fff; background: var(--success); border-color: var(--success); }
.tfm-lmat { display: grid; gap: var(--space-4); }
.tfm-lmat__head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.tfm-lmat__head h2 { margin: 0; font-size: 17px; display: flex; gap: 10px; align-items: center; }
.tfm-lmat__head h2 i { color: var(--accent); }
.tfm-lmat__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 10px; }
.tfm-lmat__item { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 12px; border-radius: var(--radius-lg); border: 1px solid var(--line-strong); background: var(--surface); transition: border-color .2s, box-shadow .2s; }
.tfm-lmat__item:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--line-strong)); box-shadow: 0 14px 28px -22px rgba(0,0,0,.4); }
.tfm-lmat__icon { --c1: #fb923c; --c2: #ea580c; width: 44px; height: 54px; border-radius: 4px 10px 10px 4px; display: grid; place-items: center; font-size: 18px; color: #fff; background: linear-gradient(155deg, var(--c1), var(--c2)); box-shadow: inset 4px 0 0 rgba(0,0,0,.18); }
.tfm-lmat__icon--ppt, .tfm-lmat__icon--pptx { --c1: #a78bfa; --c2: #6d28d9; }
.tfm-lmat__icon--doc, .tfm-lmat__icon--docx, .tfm-lmat__icon--txt { --c1: #60a5fa; --c2: #1d4ed8; }
.tfm-lmat__icon--xls, .tfm-lmat__icon--xlsx, .tfm-lmat__icon--csv { --c1: #4ade80; --c2: #15803d; }
.tfm-lmat__icon--mp4, .tfm-lmat__icon--webm { --c1: #f472b6; --c2: #be185d; }
.tfm-lmat__icon--mp3 { --c1: #2dd4bf; --c2: #0f766e; }
.tfm-lmat__icon--link { --c1: #94a3b8; --c2: #334155; }
.tfm-lmat__text { display: grid; gap: 2px; min-width: 0; }
.tfm-lmat__text strong { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tfm-lmat__text small { font-size: 12px; color: var(--text-muted); }
.tfm-lmat__go { display: flex; gap: 6px; }
.tfm-lnav { display: flex; align-items: center; gap: 14px; min-width: 0; max-width: 48%; padding: 14px 18px; border-radius: var(--radius-lg); border: 1px solid var(--line-strong); background: var(--surface); color: var(--text); text-decoration: none; transition: border-color .2s, transform .2s, box-shadow .2s; }
.tfm-lnav:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: 0 16px 30px -24px rgba(0,0,0,.4); }
.tfm-lnav > span { display: grid; gap: 2px; min-width: 0; }
.tfm-lnav small { font-size: 12px; color: var(--text-muted); font-weight: var(--weight-bold); text-transform: uppercase; letter-spacing: .04em; }
.tfm-lnav strong { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tfm-lnav > i { color: var(--accent); font-size: 18px; }
.tfm-lnav--next { margin-left: auto; text-align: right; color: #fff; border-color: transparent; background: linear-gradient(135deg, #fb923c, var(--accent)); }
.tfm-lnav--next small { color: rgba(255,255,255,.85); }
.tfm-lnav--next > i { color: #fff; }
.tfm-lnav--next.is-locked { background: var(--surface-sunken); color: var(--text-muted); border-color: var(--line-strong); }
.tfm-lnav--next.is-locked small, .tfm-lnav--next.is-locked > i { color: var(--text-muted); }
.tfm-readline { position: fixed; z-index: 90; left: 0; top: 0; height: 3px; width: 0; background: linear-gradient(90deg, var(--accent), #fbbf24); transition: width .1s linear; pointer-events: none; }
@media (max-width: 640px) { .tfm-lnav { max-width: 100%; width: 100%; } .tfm-lmat__grid { grid-template-columns: 1fr; } }

/* ---- 2.63 Blog (blog/index.php, blog/show.php, .tfm-blog, .tfm-post) ---- */
.tfm-blog { padding: var(--space-8) 0 var(--space-12); }
.tfm-blog__masthead { text-align: center; max-width: 820px; margin: 0 auto var(--space-6); }
.tfm-blog__masthead .eyebrow i { margin-right: 6px; }
.tfm-blog__masthead h1 { margin: 10px 0; }
.tfm-blog__search { position: relative; display: flex; align-items: center; gap: 8px; max-width: 560px; margin: var(--space-5) auto 0; padding: 6px 6px 6px 44px; border-radius: 99px; border: 1px solid var(--line-strong); background: var(--surface); box-shadow: 0 14px 30px -24px rgba(0,0,0,.35); }
.tfm-blog__search > i { position: absolute; left: 18px; color: var(--text-muted); }
.tfm-blog__search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; font-size: 15px; color: var(--text-strong); padding: 8px 0; }
.tfm-blog__search .btn { border-radius: 99px; }
.tfm-blog__chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: var(--space-8); }
.tfm-blog__chips a { --blog-c: var(--accent); display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 99px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--text); font-size: 14px; font-weight: var(--weight-bold); text-decoration: none; transition: border-color .2s, background .2s, color .2s; }
.tfm-blog__chips a i { color: var(--blog-c); }
.tfm-blog__chips a span { padding: 1px 7px; border-radius: 99px; font-size: 12px; background: var(--surface-sunken); color: var(--text-muted); }
.tfm-blog__chips a:hover { border-color: var(--blog-c); }
.tfm-blog__chips a.is-on { background: var(--blog-c); border-color: var(--blog-c); color: #fff; }
.tfm-blog__chips a.is-on i { color: #fff; }
.tfm-blog__chips a.is-on span { background: rgba(255,255,255,.25); color: #fff; }
.tfm-blog__cover { --blog-c: var(--accent); position: relative; display: grid; place-items: center; aspect-ratio: 16 / 9; border-radius: var(--radius-lg); overflow: hidden; color: #fff; font-size: 40px; background: radial-gradient(circle at 80% 15%, color-mix(in srgb, var(--blog-c) 55%, #fff), transparent 45%), linear-gradient(140deg, var(--blog-c), color-mix(in srgb, var(--blog-c) 55%, #0b0b10)); background-size: cover; background-position: center; }
.tfm-blog__cover > i { position: relative; z-index: 1; filter: drop-shadow(0 8px 16px rgba(0,0,0,.25)); transition: transform .4s cubic-bezier(.2,.8,.2,1); }
.tfm-blog__cover-lines { position: absolute; inset: 0; background-image: repeating-linear-gradient(115deg, rgba(255,255,255,.07) 0 2px, transparent 2px 18px); }
.tfm-blog__cover--lg { aspect-ratio: auto; min-height: 340px; font-size: 72px; }
.tfm-blog__cat { --blog-c: var(--accent); display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 99px; font-size: 12px; font-weight: var(--weight-bold); color: var(--blog-c); background: color-mix(in srgb, var(--blog-c) 12%, var(--surface)); width: fit-content; }
.tfm-blog__meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; color: var(--text-muted); }
.tfm-blog__meta i { margin-right: 4px; }
.tfm-blog__featured { display: grid; grid-template-columns: 1.15fr 1fr; gap: var(--space-6); align-items: center; padding: var(--space-4); margin-bottom: var(--space-8); border-radius: var(--radius-xl); border: 1px solid var(--line-strong); background: var(--surface); color: var(--text); text-decoration: none; box-shadow: 0 24px 50px -36px rgba(0,0,0,.4); transition: box-shadow .3s, transform .3s; }
.tfm-blog__featured:hover { transform: translateY(-3px); box-shadow: 0 30px 60px -36px rgba(0,0,0,.5); }
.tfm-blog__featured:hover .tfm-blog__cover > i { transform: scale(1.08) rotate(-4deg); }
.tfm-blog__featured-body { display: grid; gap: 12px; padding: var(--space-3) var(--space-4) var(--space-3) 0; }
.tfm-blog__featured-body h2 { margin: 0; font-size: clamp(24px, 2.6vw, 34px); line-height: 1.15; }
.tfm-blog__featured-body p { margin: 0; color: var(--text-muted); font-size: 16px; line-height: 1.6; }
.tfm-blog__flag { display: inline-flex; gap: 6px; align-items: center; width: fit-content; font-size: 12px; font-weight: var(--weight-bold); color: #b45309; text-transform: uppercase; letter-spacing: .06em; }
.tfm-blog__more { font-weight: var(--weight-bold); color: var(--accent-text); }
.tfm-blog__more i { transition: transform .2s; }
.tfm-blog__featured:hover .tfm-blog__more i { transform: translateX(4px); }
.tfm-blog__layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: var(--space-8); align-items: start; }
.tfm-blog__section { font-size: 20px; margin: 0 0 var(--space-4); }
.tfm-blog__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-5); }
.tfm-blog__grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tfm-blog__card { position: relative; display: flex; flex-direction: column; border-radius: var(--radius-lg); border: 1px solid var(--line-strong); background: var(--surface); overflow: hidden; transition: transform .25s, box-shadow .25s, border-color .25s; }
.tfm-blog__card:hover { transform: translateY(-4px); box-shadow: 0 22px 40px -28px rgba(0,0,0,.45); border-color: color-mix(in srgb, var(--accent) 40%, var(--line-strong)); }
.tfm-blog__card:hover .tfm-blog__cover > i { transform: scale(1.1) rotate(-4deg); }
.tfm-blog__card .tfm-blog__cover { border-radius: 0; }
.tfm-blog__card-link { position: absolute; inset: 0; z-index: 2; }
.tfm-blog__card-body { display: grid; gap: 10px; padding: var(--space-4) var(--space-5) var(--space-5); }
.tfm-blog__card-body h3 { margin: 0; font-size: 18px; line-height: 1.3; }
.tfm-blog__card-body p { margin: 0; color: var(--text-muted); font-size: 14px; line-height: 1.55; }
.tfm-blog__pages { display: flex; justify-content: center; gap: 6px; margin-top: var(--space-6); }
.tfm-blog__pages a { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; border: 1px solid var(--line-strong); color: var(--text); text-decoration: none; font-weight: var(--weight-bold); }
.tfm-blog__pages a.is-on { background: var(--accent); border-color: var(--accent); color: #fff; }
.tfm-blog__side { position: sticky; top: 90px; display: grid; gap: var(--space-4); }
.tfm-blog__box { padding: var(--space-5); border-radius: var(--radius-lg); border: 1px solid var(--line-strong); background: var(--surface); }
.tfm-blog__box h2 { margin: 0 0 var(--space-3); font-size: 16px; display: flex; gap: 8px; align-items: center; }
.tfm-blog__box h2 i { color: var(--accent); }
.tfm-blog__popular { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.tfm-blog__popular a { display: grid; grid-template-columns: 30px 1fr; gap: 10px; align-items: start; color: var(--text); text-decoration: none; }
.tfm-blog__popular a:hover strong { color: var(--accent-text); }
.tfm-blog__popular strong { display: block; font-size: 14px; line-height: 1.35; }
.tfm-blog__popular small { font-size: 12px; color: var(--text-muted); }
.tfm-blog__rank { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; font-weight: var(--weight-bold); color: var(--accent-text); background: color-mix(in srgb, var(--accent) 12%, var(--surface)); }
.tfm-blog__cats { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.tfm-blog__cats a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; color: var(--text); text-decoration: none; font-size: 14px; }
.tfm-blog__cats a:hover { background: var(--surface-sunken); }
.tfm-blog__cats a i { color: var(--blog-c); width: 16px; }
.tfm-blog__cats a span { margin-left: auto; font-size: 12px; color: var(--text-muted); }
.tfm-blog__box--news p, .tfm-blog__box--cta p { margin: 0 0 var(--space-3); font-size: 14px; color: var(--text-muted); }
.tfm-blog__box--news form { display: grid; gap: 8px; }
.tfm-blog__box--cta { text-align: center; background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 8%, var(--surface)), var(--surface)); }
.tfm-blog__box--cta > i { font-size: 28px; color: var(--accent); margin-bottom: 8px; }
.tfm-blog__box--cta h2 { justify-content: center; }
.tfm-post__head { padding: var(--space-10) 0 var(--space-8); background: linear-gradient(180deg, color-mix(in srgb, var(--blog-c) 9%, var(--surface)), var(--surface)); border-bottom: 1px solid var(--line); }
.tfm-post__head .container { max-width: 860px; display: grid; gap: 14px; }
.tfm-post__crumbs { font-size: 13px; color: var(--text-muted); }
.tfm-post__crumbs a { color: var(--text-muted); text-decoration: none; }
.tfm-post__crumbs a:hover { color: var(--accent-text); }
.tfm-post__crumbs i { font-size: 10px; margin: 0 6px; }
.tfm-post__head h1 { margin: 0; font-size: clamp(30px, 4vw, 46px); line-height: 1.12; }
.tfm-post__dek { margin: 0; font-size: 19px; line-height: 1.55; color: var(--text-muted); }
.tfm-post__byline { display: flex; align-items: center; gap: 12px; }
.tfm-post__byline small { display: block; font-size: 13px; color: var(--text-muted); }
.tfm-post__avatar { width: 44px; height: 44px; flex: none; border-radius: 50%; display: grid; place-items: center; font-weight: var(--weight-bold); color: #fff; background: linear-gradient(145deg, color-mix(in srgb, var(--blog-c) 70%, #fff), var(--blog-c)); }
.tfm-post__avatar--lg { width: 64px; height: 64px; font-size: 20px; }
.tfm-post__layout { display: grid; grid-template-columns: 240px minmax(0, 720px); gap: var(--space-10); justify-content: center; padding-top: var(--space-8); padding-bottom: var(--space-8); }
.tfm-post__toc { position: sticky; top: 100px; align-self: start; display: grid; gap: var(--space-5); font-size: 14px; }
.tfm-post__toc > strong i { color: var(--accent); margin-right: 6px; }
.tfm-post__toc ol { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 2px; border-left: 2px solid var(--line); }
.tfm-post__toc li.is-l4 a { padding-left: 26px; }
.tfm-post__toc a { display: block; padding: 6px 12px; margin-left: -2px; border-left: 2px solid transparent; color: var(--text-muted); text-decoration: none; line-height: 1.35; }
.tfm-post__toc a:hover { color: var(--text-strong); }
.tfm-post__toc a.is-on { color: var(--accent-text); border-left-color: var(--accent); font-weight: var(--weight-bold); }
.tfm-post__share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.tfm-post__share strong { width: 100%; }
.tfm-post__share a, .tfm-post__share button { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-strong); background: var(--surface); color: var(--text); text-decoration: none; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.tfm-post__share a:hover, .tfm-post__share button:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.tfm-post__body { font-size: 18px; line-height: 1.8; color: var(--text); }
.tfm-post__body > p:first-child::first-letter { float: left; font-size: 3.6em; line-height: .85; padding: 6px 10px 0 0; font-weight: var(--weight-bold); color: var(--blog-c); }
.tfm-post__body h2, .tfm-post__body h3, .tfm-post__body h4 { scroll-margin-top: 100px; margin: 1.8em 0 .6em; line-height: 1.25; }
.tfm-post__body h3 { font-size: 24px; padding-left: 14px; border-left: 4px solid var(--blog-c); }
.tfm-post__body ul { padding-left: 1.2em; }
.tfm-post__body li { margin: .4em 0; }
.tfm-post__body blockquote { margin: 1.5em 0; padding: 1em 1.4em; border-radius: 0 12px 12px 0; border-left: 4px solid var(--blog-c); background: color-mix(in srgb, var(--blog-c) 7%, var(--surface)); font-style: italic; }
.tfm-post__body pre { border-radius: 12px; }
.tfm-post__note { margin: var(--space-8) 0 var(--space-6); padding: 14px 16px; border-radius: var(--radius-md); background: var(--surface-sunken); font-size: 14px; color: var(--text-muted); }
.tfm-post__note i { color: var(--accent); margin-right: 6px; }
.tfm-post__author { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: center; padding: var(--space-5); border-radius: var(--radius-lg); border: 1px solid var(--line-strong); background: var(--surface); }
.tfm-post__author small { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); }
.tfm-post__author strong { display: block; font-size: 17px; }
.tfm-post__author p { margin: 4px 0 0; color: var(--text-muted); font-size: 14px; }
.tfm-post__pn { display: flex; justify-content: space-between; gap: var(--space-4); margin-top: var(--space-6); }
.tfm-post__related { padding: var(--space-10) 0; background: var(--surface-sunken); border-top: 1px solid var(--line); }
.tfm-post__related h2 { margin: 0 0 var(--space-5); display: flex; gap: 10px; align-items: center; }
.tfm-post__related h2 i { color: var(--accent); }
@media (max-width: 1100px) { .tfm-blog__layout { grid-template-columns: 1fr; } .tfm-blog__side { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); } .tfm-post__layout { grid-template-columns: minmax(0, 1fr); } .tfm-post__toc { position: static; order: -1; padding: var(--space-4); border-radius: var(--radius-lg); background: var(--surface-sunken); } .tfm-blog__grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .tfm-blog__featured { grid-template-columns: 1fr; } .tfm-blog__featured-body { padding: 0 var(--space-2) var(--space-2); } .tfm-blog__cover--lg { min-height: 200px; } .tfm-blog__grid, .tfm-blog__grid--3, .tfm-blog__side { grid-template-columns: 1fr; } .tfm-post__body { font-size: 17px; } .tfm-post__pn { flex-direction: column; } }

/* ---- 2.64 Learning record (admin/learning-student.php, .tfm-lrec) ---- */
.tfm-lrec { margin-top: var(--space-6); padding: var(--space-5); border-radius: var(--radius-lg); border: 1px solid var(--line-strong); background: var(--surface); scroll-margin-top: 90px; }
.tfm-lrec__head { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; margin-bottom: var(--space-4); }
.tfm-lrec__title h2 { margin: 0; font-size: 18px; }
.tfm-lrec__title small { color: var(--text-muted); font-size: 13px; }
.tfm-lrec__tools { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.tfm-lrec__module { border-top: 1px solid var(--line); padding: 10px 0; }
.tfm-lrec__module > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; font-weight: var(--weight-bold); }
.tfm-lrec__module > summary::-webkit-details-marker { display: none; }
.tfm-lrec__module > summary i { color: var(--accent); }
.tfm-lrec__module > summary .tfm-pill { margin-left: auto; }
.tfm-lrec__lessons { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; }
.tfm-lrec__lessons li { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 8px 10px; border-radius: var(--radius-md); background: var(--surface-sunken); }
.tfm-lrec__dot { width: 28px; height: 28px; flex: none; border-radius: 50%; display: grid; place-items: center; font-size: 12px; color: var(--text-muted); background: var(--surface); border: 1.5px solid var(--line-strong); }
.tfm-lrec__lessons li.is-completed .tfm-lrec__dot { color: #fff; background: var(--success); border-color: var(--success); }
.tfm-lrec__lessons li.is-started .tfm-lrec__dot { color: #fff; background: #0ea5e9; border-color: #0ea5e9; }
.tfm-lrec__name { flex: 1; min-width: 180px; display: grid; }
.tfm-lrec__name strong { font-size: 14px; }
.tfm-lrec__name small { font-size: 12px; color: var(--text-muted); }
@media (max-width: 760px) { .tfm-lrec__head { grid-template-columns: auto 1fr; } .tfm-lrec__tools { grid-column: 1 / -1; justify-content: flex-start; } }

/* ---- 2.64 Media mount, storage, assessments (admin) ---- */
.tfm-mount { align-items: stretch; }
.tfm-mount__scan { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.tfm-mount__files { list-style: none; margin: 0; padding: 0 18px 18px; display: grid; gap: 8px; }
.tfm-mount__files li { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 10px 12px; border-radius: var(--radius-md); border: 1px solid var(--line); background: var(--surface); }
.tfm-mount__files li.is-gone { background: color-mix(in srgb, var(--danger) 4%, var(--surface)); }
.tfm-mount__icon { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, var(--surface)); }
.tfm-mount__files li.is-gone .tfm-mount__icon { color: #dc2626; background: color-mix(in srgb, var(--danger) 12%, var(--surface)); }
.tfm-mount__name { display: grid; gap: 3px; min-width: 0; }
.tfm-mount__name strong { font-size: 14px; }
.tfm-mount__name small { font-size: 12px; color: var(--text-muted); overflow-wrap: anywhere; }
.tfm-mount__used { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; }
.tfm-mount__used > i { color: var(--success); }
.tfm-mount__pills { display: flex; gap: 6px; }
.tfm-mount__attach { grid-column: 2 / -1; display: flex; gap: 8px; }
.tfm-mount__attach .select { flex: 1; min-width: 0; max-width: 520px; }
.tfm-stores { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: var(--space-4); }
.tfm-store { display: grid; gap: 12px; align-content: start; padding: var(--space-5); border-radius: var(--radius-lg); border: 1px solid var(--line-strong); background: var(--surface); }
.tfm-store__head { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; }
.tfm-store__head h2 { margin: 0; font-size: 16px; }
.tfm-store__head small { font-size: 12px; color: var(--text-muted); }
.tfm-store__path { margin: 0; font-size: 13px; overflow-wrap: anywhere; }
.tfm-store__space small { font-size: 12px; color: var(--text-muted); }
.tfm-store__go { display: flex; flex-wrap: wrap; gap: 6px; }
.tfm-store__go form { margin: 0; }
.tfm-store__more { border-top: 1px solid var(--line); padding-top: 10px; }
.tfm-store__more > summary { cursor: pointer; font-size: 13px; font-weight: var(--weight-bold); color: var(--text-muted); }
.tfm-store__more > summary i { margin-right: 6px; color: var(--accent); }
.tfm-assess__filter { position: relative; max-width: 420px; margin-bottom: var(--space-4); }
.tfm-assess__filter > i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--text-muted); }
.tfm-assess__filter .input { padding-left: 40px; }
.tfm-assess__list { list-style: none; margin: 0; padding: 0 18px 18px; display: grid; gap: 8px; }
.tfm-assess__list li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; gap: 14px; align-items: center; padding: 10px 12px; border-radius: var(--radius-md); border: 1px solid var(--line); background: var(--surface); transition: border-color .2s; }
.tfm-assess__list li:hover { border-color: color-mix(in srgb, var(--accent) 40%, var(--line-strong)); }
.tfm-assess__list li[hidden] { display: none; }
.tfm-assess__name { display: grid; gap: 2px; min-width: 0; }
.tfm-assess__name a { color: var(--text-strong); text-decoration: none; }
.tfm-assess__name a:hover strong { color: var(--accent-text); }
.tfm-assess__name small { font-size: 12px; color: var(--text-muted); }
.tfm-assess__nums { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; font-size: 13px; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.tfm-assess__nums i { color: var(--accent); margin-right: 3px; }
[data-assess-group][hidden] { display: none; }
@media (max-width: 760px) { .tfm-mount__files li { grid-template-columns: auto 1fr; } .tfm-mount__pills { grid-column: 2; } .tfm-mount__attach { grid-column: 1 / -1; flex-direction: column; } .tfm-stores { grid-template-columns: 1fr; } .tfm-assess__list li { grid-template-columns: auto 1fr; } .tfm-assess__nums, .tfm-assess__list .tfm-actions { grid-column: 2; justify-content: flex-start; } }

/* ---- 2.65 Learning oversight (admin/learning-*.php) ---- */
.tfm-saved__top { margin: 4px 0 0; padding-left: 18px; display: grid; gap: 4px; font-size: 13px; }
.tfm-saved__notes { list-style: none; margin: 0; padding: 12px 16px 16px; display: grid; gap: 10px; }
.tfm-saved__notes li { display: grid; gap: 6px; padding: 12px 14px; border-radius: var(--radius-md); border-left: 3px solid #f59e0b; background: color-mix(in srgb, #f59e0b 6%, var(--surface)); }
.tfm-saved__notes p { margin: 0; font-size: 14px; }
.tfm-saved__notes small { font-size: 12px; color: var(--text-muted); }
.tfm-saved__notes .tfm-actions { justify-content: flex-start; }
.tfm-skills__split { display: flex; flex-wrap: wrap; gap: 6px; }
.tfm-skills__split .tfm-pill { padding: 3px 9px; font-size: 11px; }

/* ---- 2.66 Blog scene, ticker, ads and article figures ---- */
.tfm-scene { position: relative; overflow: hidden; isolation: isolate; min-height: 560px; display: flex; flex-direction: column; justify-content: center; color: #fff; background: radial-gradient(120% 90% at 80% 0%, #3b1a0a 0%, #120d14 45%, #07080d 100%); }
.tfm-scene__layer { position: absolute; inset: -60px; pointer-events: none; will-change: transform; transition: transform .25s ease-out; }
.tfm-scene__grid { background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 56px 56px; mask-image: radial-gradient(ellipse at 60% 40%, #000 30%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse at 60% 40%, #000 30%, transparent 75%); }
.tfm-scene__orb { position: absolute; border-radius: 50%; filter: blur(46px); opacity: .55; animation: tfm-orb 14s ease-in-out infinite alternate; }
.tfm-scene__orb--a { width: 420px; height: 420px; right: 6%; top: 4%; background: #f97316; }
.tfm-scene__orb--b { width: 320px; height: 320px; left: 8%; bottom: -6%; background: #2563eb; opacity: .35; animation-delay: -5s; }
.tfm-scene__orb--c { width: 220px; height: 220px; right: 32%; bottom: 10%; background: #db2777; opacity: .3; animation-delay: -9s; }
@keyframes tfm-orb { to { transform: translate(-40px, 30px) scale(1.12); } }
.tfm-scene__chart { inset: auto -60px -60px -60px; height: 420px; opacity: .55; }
.tfm-scene__chart svg { width: 100%; height: 100%; }
.tfm-scene__chart .is-up { fill: #fb923c; stroke: #fb923c; stroke-width: 2; }
.tfm-scene__chart .is-down { fill: rgba(255,255,255,.4); stroke: rgba(255,255,255,.4); stroke-width: 2; }
.tfm-scene__chart svg { mask-image: linear-gradient(90deg, transparent 0%, #000 35%, #000 100%); -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 35%, #000 100%); }
.tfm-scene__chips { inset: 0; }
.tfm-scene__chip { position: absolute; display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 99px; font-size: 13px; font-weight: 700; color: #fff; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); backdrop-filter: blur(8px); box-shadow: 0 12px 30px -16px rgba(0,0,0,.6); animation: tfm-float 7s ease-in-out infinite; }
.tfm-scene__chip i { color: #fdba74; }
.tfm-scene__chip--0 { right: 4%; top: 16%; }
.tfm-scene__chip--1 { right: 2.5%; top: 40%; animation-delay: -2s; }
.tfm-scene__chip--2 { right: 5%; top: 62%; animation-delay: -4s; }
.tfm-scene__chip--3 { left: 4%; top: 18%; animation-delay: -1s; }
.tfm-scene__chip--4 { left: 2.5%; top: 42%; animation-delay: -3s; }
.tfm-scene__chip--5 { left: 5%; top: 64%; animation-delay: -5s; }
@keyframes tfm-float { 50% { transform: translateY(-12px); } }
.tfm-scene__content { position: relative; z-index: 2; text-align: center; max-width: 860px; padding-top: 72px; padding-bottom: 40px; opacity: calc(1 - var(--scene-fade, 0) * .6); }
.tfm-scene__eyebrow { display: inline-flex; gap: 8px; align-items: center; padding: 7px 14px; border-radius: 99px; font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #fdba74; background: rgba(249,115,22,.14); border: 1px solid rgba(249,115,22,.35); }
.tfm-scene h1 { margin: 18px 0 14px; font-size: clamp(38px, 5.6vw, 68px); line-height: 1.04; letter-spacing: -.02em; color: #fff; }
.tfm-scene h1 span { background: linear-gradient(90deg, #fb923c, #fbbf24); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tfm-scene__lede { margin: 0 auto; max-width: 640px; font-size: 18px; line-height: 1.6; color: rgba(255,255,255,.78); }
.tfm-scene .tfm-blog__search { background: rgba(255,255,255,.96); border-color: transparent; box-shadow: 0 24px 50px -24px rgba(0,0,0,.7); }
.tfm-scene .tfm-blog__search input { color: #111827; }
.tfm-scene__facts { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 26px; font-size: 14px; color: rgba(255,255,255,.7); }
.tfm-scene__facts strong { color: #fff; font-size: 18px; margin-right: 4px; }
.tfm-scene__ticker { position: relative; z-index: 2; display: flex; align-items: center; gap: 14px; margin-top: auto; padding: 12px 0 12px 20px; background: rgba(0,0,0,.35); border-top: 1px solid rgba(255,255,255,.1); backdrop-filter: blur(6px); }
.tfm-scene__ticker-label { flex: none; display: inline-flex; gap: 6px; align-items: center; padding: 5px 12px; border-radius: 99px; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: #111827; background: #fbbf24; }
.tfm-scene__ticker-track { overflow: hidden; flex: 1; mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.tfm-scene__ticker-move { display: flex; gap: 40px; width: max-content; animation: tfm-ticker 60s linear infinite; }
.tfm-scene__ticker:hover .tfm-scene__ticker-move, .tfm-scene__ticker:focus-within .tfm-scene__ticker-move { animation-play-state: paused; }
.tfm-scene__ticker a { color: #fff; text-decoration: none; font-size: 14px; white-space: nowrap; }
.tfm-scene__ticker a:hover { color: #fdba74; }
.tfm-scene__ticker-cat { margin-right: 6px; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: #fdba74; }
@keyframes tfm-ticker { to { transform: translateX(-50%); } }
.tfm-blog { padding-top: var(--space-8); }
.tfm-blog__cover.has-image { background-size: cover; background-position: center; }
.tfm-blog__featured .tfm-blog__cover.has-image { min-height: 340px; }
.tfm-blog__card:hover .tfm-blog__cover.has-image { filter: saturate(1.15); }
.tfm-blog__grid-ad { grid-column: 1 / -1; }
.tfm-ad { margin: var(--space-6) 0; padding: 10px; border-radius: var(--radius-lg); background: var(--surface-sunken); text-align: center; min-height: 120px; }
.tfm-ad__label { display: block; margin-bottom: 6px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); }
.tfm-ad--sidebar { margin: 0; }
.tfm-ad--preview { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; min-height: 90px; border: 2px dashed var(--line-strong); background: transparent; color: var(--text-muted); font-size: 13px; font-weight: 700; }
.tfm-ad--preview span { width: 100%; font-weight: 400; font-size: 12px; }
.tfm-ad--preview i { color: var(--accent); }
.tfm-post__cover { margin: var(--space-4) 0 0; border-radius: var(--radius-xl); overflow: hidden; box-shadow: 0 30px 60px -36px rgba(0,0,0,.55); }
.tfm-post__cover img { display: block; width: 100%; height: auto; aspect-ratio: 1200 / 630; object-fit: cover; }
.prose-figure { margin: 1.8em 0; }
.prose-figure img { display: block; width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--line-strong); box-shadow: 0 18px 40px -30px rgba(0,0,0,.45); background: #fff; }
.prose-figure figcaption { margin-top: 10px; font-size: 14px; color: var(--text-muted); text-align: center; font-style: italic; }
@media (max-width: 760px) { .tfm-scene { min-height: 520px; } .tfm-scene__chips { display: none; } .tfm-scene__content { padding-top: 56px; } .tfm-scene__lede { font-size: 16px; } }
@media (prefers-reduced-motion: reduce) { .tfm-scene__orb, .tfm-scene__chip, .tfm-scene__ticker-move { animation: none; } .tfm-scene__layer { transition: none; } }

@media (max-width: 1280px) { .tfm-scene__chips { display: none; } }
.tfm-scene__content::before { content: ""; position: absolute; z-index: -1; inset: 10% -8% 0; border-radius: 50%; background: radial-gradient(closest-side, rgba(7,8,13,.78), rgba(7,8,13,0)); pointer-events: none; }

/* ==========================================================================
   2.67 Palette v2: orange is the brand, not the whole page.
   Orange marks the brand, primary actions and key highlights only.
   Structure is ink and slate with crisp hairline borders; links and
   selected states are blue and indigo; icon tiles use a family of
   colours so a row of figures reads as distinct things.
   ========================================================================== */
:root {
  --tfm-ink: #0f172a;
  --tfm-ink-2: #334155;
  --tfm-slate: #64748b;
  --tfm-border: #dfe3ea;
  --tfm-border-strong: #cbd2dc;
  --tfm-link: #1d4ed8;
  --tfm-indigo: #4f46e5;
  --tfm-select: #eef2ff;
  --tfm-c1: #2563eb; --tfm-c2: #0d9488; --tfm-c3: #7c3aed; --tfm-c4: #d97706; --tfm-c5: #db2777; --tfm-c6: #0891b2;
  --tfm-card-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 1px 3px rgba(16, 24, 40, .05);
}
[data-theme="dark"] {
  --tfm-ink: #e5e7eb; --tfm-ink-2: #cbd5e1; --tfm-slate: #94a3b8;
  --tfm-border: #262b36; --tfm-border-strong: #343b49;
  --tfm-link: #93c5fd; --tfm-indigo: #a5b4fc; --tfm-select: rgba(99, 102, 241, .16);
  --tfm-card-shadow: none;
}
/* Links read as links, in blue. */
a:hover { color: var(--tfm-link); }
.prose a, .tfm-post__body a { color: var(--tfm-link); }
.fx-breadcrumb a { color: var(--tfm-slate); font-weight: 600; }
.fx-breadcrumb a:hover { color: var(--tfm-ink); }
.fx-breadcrumb li[aria-current] { color: var(--tfm-ink-2); }
.breadcrumbs a { color: var(--tfm-slate); }
.breadcrumbs a:hover { color: var(--tfm-ink); }

/* Secondary buttons are neutral; only the primary button is orange. */
.btn--ghost { --btn-bg: var(--surface); --btn-border: var(--tfm-border-strong); --btn-fg: var(--tfm-ink-2); background: var(--surface); border-color: var(--tfm-border-strong); color: var(--tfm-ink-2); }
.btn--ghost i, .btn--ghost svg { color: var(--tfm-slate); }
.btn--ghost:hover { --btn-bg: var(--surface-sunken); --btn-fg: var(--tfm-ink); --btn-border: var(--tfm-ink-2); background: var(--surface-sunken); border-color: var(--tfm-ink-2); color: var(--tfm-ink); }
.btn--ghost:hover i, .btn--ghost:hover svg { color: var(--tfm-ink); }
.tfm-actions__danger { color: #dc2626 !important; }
.btn--quiet:hover { color: var(--tfm-ink); }

/* Sidebar: the current screen is a calm indigo selection, not a flare. */
.fx-app .sidebar-link.is-active { background: var(--tfm-select); color: var(--tfm-ink); font-weight: 700; box-shadow: inset 3px 0 0 var(--tfm-indigo); }
.fx-app .sidebar-link.is-active .sidebar-link__icon { color: var(--tfm-indigo); }
.fx-app .sidebar-link:hover:not(.is-active) { background: var(--surface-sunken); color: var(--tfm-ink); }

/* Tabs, filters and period switches select in ink and indigo. */
.tab.is-active, .tab[aria-selected="true"] { color: var(--tfm-ink); border-bottom-color: var(--tfm-indigo); }
.tfm-biz__range a.is-on { color: var(--tfm-ink); }
.tfm-ach__filter.is-on, .tfm-ach__filter.is-on:hover { background: var(--tfm-ink); border-color: var(--tfm-ink); color: var(--surface); }
[data-theme="dark"] .tfm-ach__filter.is-on { color: #0b0d12; }
.tfm-ach__filter:hover { border-color: var(--tfm-ink-2); }
.tfm-lib__shelfnav a:hover, .tfm-blog__chips a:hover { border-color: var(--tfm-ink-2); }

/* Pills: accent becomes indigo; orange is kept for warnings and the brand. */
.tfm-pill--accent { background: color-mix(in srgb, var(--tfm-indigo) 12%, var(--surface)); color: var(--tfm-indigo); }

/* Edit buttons on list rows: neutral until opened. */
.tfm-edit__row:hover .tfm-edit__go { border-color: var(--tfm-ink-2); color: var(--tfm-ink); }
.tfm-edit[open] .tfm-edit__go { background: var(--tfm-select); border-color: var(--tfm-indigo); color: var(--tfm-indigo); }

/* Icon tiles: a family of colours. A tile that names its own colour keeps it. */
.tfm-icon-tile { --tile-c: var(--tier, var(--tfm-c1)); }
.tfm-grid-4 > :nth-child(6n+1) .tfm-icon-tile { --tier: var(--tfm-c1); }
.tfm-grid-4 > :nth-child(6n+2) .tfm-icon-tile { --tier: var(--tfm-c2); }
.tfm-grid-4 > :nth-child(6n+3) .tfm-icon-tile { --tier: var(--tfm-c3); }
.tfm-grid-4 > :nth-child(6n+4) .tfm-icon-tile { --tier: var(--tfm-c4); }
.tfm-comp__grid > :nth-child(6n+1) .tfm-icon-tile { --tier: var(--tfm-c1); }
.tfm-comp__grid > :nth-child(6n+2) .tfm-icon-tile { --tier: var(--tfm-c2); }
.tfm-comp__grid > :nth-child(6n+3) .tfm-icon-tile { --tier: var(--tfm-c3); }
.tfm-comp__grid > :nth-child(6n+4) .tfm-icon-tile { --tier: var(--tfm-c4); }
.tfm-comp__grid > :nth-child(6n+5) .tfm-icon-tile { --tier: var(--tfm-c5); }
.tfm-comp__grid > :nth-child(6n+6) .tfm-icon-tile { --tier: var(--tfm-c6); }

/* Section heading icons in ink-blue, so headings guide rather than shout. */
.tfm-biz__head h2 i, .tfm-biz__section h2 i, .tfm-lmat__head h2 i, .tfm-lib__shelf-head h2 i, .tfm-blog__box h2 i,
.tfm-comp__intro h2 i, .tfm-media__label i, .tfm-paid__section .panel__title i, .tfm-biz__till .panel__title i { color: var(--tfm-indigo); }
.tfm-comp__dim-label i, .tfm-assess__nums i, .tfm-blog__meta i { color: var(--tfm-slate); }
.tfm-comp__bar > span { background: linear-gradient(90deg, var(--tfm-c1), var(--tfm-c6)); }
.tfm-biz__track i { background: var(--tfm-c1); }
.tfm-biz__bars--alt .tfm-biz__track i { background: var(--tfm-c2); }

/* Cards and panels: one crisp hairline and a whisper of shadow. */
.card, .panel, .tfm-biz__tile, .tfm-lrec, .tfm-store, .tfm-comp__card, .tfm-ach__card, .tfm-media__shelf, .tfm-blog__card, .tfm-blog__box, .tfm-self__card, .tfm-paid__card, .tfm-lmat__item {
  border-color: var(--tfm-border);
  box-shadow: var(--tfm-card-shadow);
}
.fx-summary { border-color: var(--tfm-border); }
.table thead th { color: var(--tfm-slate); letter-spacing: .04em; }

/* Focus is blue and unmistakable. */
:focus-visible { outline: 2px solid var(--tfm-link); outline-offset: 2px; }
.fx-summary-grid > :nth-child(4n+1) .fx-summary__icon { --sc: var(--tfm-c1); }
.fx-summary-grid > :nth-child(4n+2) .fx-summary__icon { --sc: var(--tfm-c2); }
.fx-summary-grid > :nth-child(4n+3) .fx-summary__icon { --sc: var(--tfm-c3); }
.fx-summary-grid > :nth-child(4n+4) .fx-summary__icon { --sc: var(--tfm-c4); }
.fx-summary-grid .fx-summary__icon { color: var(--sc); background: color-mix(in srgb, var(--sc) 12%, var(--surface)); border: 1px solid color-mix(in srgb, var(--sc) 22%, transparent); }
.fx-summary-grid .fx-summary__icon svg, .fx-summary-grid .fx-summary__icon i { color: var(--sc); }

/* ==========================================================================
   2.68 Lesson player and course panel: Font Awesome controls, glass bar,
   neutral chrome. Orange is kept for the played track and the primary
   Resume button only; structure is ink, slate and indigo.
   ========================================================================== */
.fx-app .player__stage { border: 1px solid var(--tfm-border); box-shadow: 0 24px 48px -32px rgba(15, 23, 42, .55); }
.vp--enhanced .vp__bar { padding: 10px 14px 12px; background: linear-gradient(to top, rgba(8, 11, 20, .92) 0%, rgba(8, 11, 20, .55) 60%, rgba(8, 11, 20, 0) 100%); }
.vp__row { gap: 4px; margin-top: 6px; }
.vp__btn { position: relative; min-width: 38px; min-height: 38px; padding: 0 9px; border-radius: 10px; color: rgba(255, 255, 255, .92); font-size: 15px; font-weight: 600; transition: background .15s ease, color .15s ease, transform .15s ease; }
.vp__btn i { font-size: 15px; line-height: 1; }
.vp__btn:hover, .vp__btn:focus-visible { background: rgba(255, 255, 255, .14); color: #fff; }
.vp__btn:active { transform: scale(.94); }
.vp__btn.is-on, .vp__btn.vp__btn.is-on { color: #a5b4fc; background: rgba(99, 102, 241, .22); box-shadow: inset 0 0 0 1px rgba(165, 180, 252, .45); }
.vp__sub { font-size: 10px; font-weight: 800; opacity: .9; margin-left: 3px; }

/* Play and pause are glyphs, not drawn triangles. */
.vp__play { width: 42px; min-width: 42px; height: 42px; border-radius: 50%; background: rgba(255, 255, 255, .12); }
.vp__play:hover { background: rgba(255, 255, 255, .22); }
.vp__icon-play, .vp--enhanced.is-playing .vp__icon-play { width: auto; height: auto; border: 0; }
.vp__icon-play::before { content: "\f04b"; font-family: "Font Awesome 6 Free"; font-weight: 900; font-size: 16px; margin-left: 2px; }
.vp--enhanced.is-playing .vp__icon-play::before { content: "\f04c"; margin-left: 0; }

/* Text buttons the script relabels keep their text and gain an icon. */
.vp__speed::before, .vp__quality::before, .vp__btn.vp__loop::before, .vp__btn.vp__saver::before { font-family: "Font Awesome 6 Free"; font-weight: 900; font-size: 13px; margin-right: 6px; opacity: .85; }
.vp__speed::before { content: "\f625"; }
.vp__quality::before { content: "\f013"; }
.vp__btn.vp__loop::before { content: "\f363"; }
.vp__btn.vp__saver::before { content: "\f06c"; }
.vp__speed, .vp__quality, .vp__btn.vp__loop, .vp__btn.vp__saver { font-size: 12.5px; font-weight: 700; letter-spacing: .01em; font-variant-numeric: tabular-nums; border: 1px solid rgba(255, 255, 255, .16); min-height: 32px; }

/* Tooltips from data-tip, above the button. */
.vp__btn[data-tip]::after { content: attr(data-tip); position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translate(-50%, 4px); padding: 5px 9px; border-radius: 7px; background: rgba(15, 23, 42, .96); border: 1px solid rgba(255, 255, 255, .12); color: #fff; font-size: 11.5px; font-weight: 600; white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity .15s ease, transform .15s ease; z-index: 5; }
.vp__btn[data-tip]:hover::after, .vp__btn[data-tip]:focus-visible::after { opacity: 1; transform: translate(-50%, 0); }
.vp__full[data-tip]::after { left: auto; right: 0; transform: translateY(4px); }
.vp__full[data-tip]:hover::after, .vp__full[data-tip]:focus-visible::after { transform: translateY(0); }

/* A slim track that thickens on hover, with a white handle. */
.vp__scrub { height: 18px; }
.vp__scrub::before, .vp__buffered, .vp__played, .vp__markers { height: 4px; transition: height .15s ease; }
.vp__scrub:hover::before, .vp__scrub:hover .vp__buffered, .vp__scrub:hover .vp__played, .vp__scrub:hover .vp__markers { height: 7px; }
.vp__scrub::before { background: rgba(255, 255, 255, .2); border-radius: 99px; }
.vp__buffered { background: rgba(255, 255, 255, .32); border-radius: 99px; }
.vp__played { background: linear-gradient(90deg, #f97316, #fb923c); border-radius: 99px; }
.vp__handle { width: 14px; height: 14px; background: #fff; box-shadow: 0 0 0 4px rgba(249, 115, 22, .35), 0 2px 6px rgba(0, 0, 0, .4); }
.vp__marker { top: 0; width: 3px; height: 100%; border-radius: 2px; background: rgba(255, 255, 255, .75); }
.vp__checkmark { width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; border-radius: 50%; transform: none; background: #fff; box-shadow: 0 0 0 2px #4f46e5, 0 0 0 4px rgba(0, 0, 0, .35); }
.vp__loopband { background: rgba(99, 102, 241, .32); border-left-color: #a5b4fc; border-right-color: #a5b4fc; }

/* Volume: white track, no orange. */
.vp__vol { width: 78px; accent-color: #fff; cursor: pointer; }
.vp__time { font-size: 12.5px; font-weight: 600; color: rgba(255, 255, 255, .85); margin-left: 4px; }
.vp__now { color: #fff; }
.vp__chapter-name { padding: 4px 10px; border-radius: 99px; background: rgba(255, 255, 255, .1); font-size: 12px; font-weight: 600; }
.vp__chapter-name:empty { display: none; }

/* The centre play button is a glass disc. */
.vp__overlay-icon { width: 76px; height: 76px; border: 0; border-radius: 50%; display: grid; place-items: center; background: rgba(15, 23, 42, .55); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .28), 0 18px 40px -14px rgba(0, 0, 0, .7); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); filter: none; }
.vp__overlay-icon::before { content: "\f04b"; font-family: "Font Awesome 6 Free"; font-weight: 900; font-size: 26px; color: #fff; margin-left: 5px; }
.vp__overlay:hover .vp__overlay-icon { transform: scale(1.08); background: rgba(249, 115, 22, .9); }

/* Resume note: a glass card with an icon. */
.vp__resume { left: 16px; bottom: 84px; gap: 10px; padding: 10px 12px 10px 14px; border-radius: 14px; background: rgba(15, 23, 42, .78); border: 1px solid rgba(255, 255, 255, .16); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 18px 40px -20px rgba(0, 0, 0, .8); font-weight: 600; }
.vp__resume::before { content: "\f1da"; font-family: "Font Awesome 6 Free"; font-weight: 900; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: rgba(99, 102, 241, .28); color: #c7d2fe; font-size: 13px; }
.vp__resume .btn--ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .3); }
.vp__resume .btn--ghost:hover { background: rgba(255, 255, 255, .12); color: #fff; border-color: #fff; }

/* In-video checks: indigo tag, neutral hover. */
.vp__check-tag { color: #a5b4fc; }
.vp__check-option:hover:not(:disabled) { border-color: #a5b4fc; }

/* Course content panel: neutral header, calm progress. */
.fx-cc, [data-theme="dark"] .fx-cc { background: var(--surface); border: 1px solid var(--tfm-border); box-shadow: var(--tfm-card-shadow); }
.fx-cc.is-done { background: color-mix(in srgb, var(--bull) 6%, var(--surface)); }
.fx-cc__label { color: var(--tfm-slate); }
.fx-cc__label i { color: var(--tfm-indigo); }
.fx-cc__track { stroke: var(--surface-sunken); }
.fx-cc__fill { filter: none; }
.fx-cc__status i { color: var(--tfm-indigo); }
.fx-cc__chips span { border: 1px solid var(--tfm-border); background: var(--surface); }
.fx-cc__chips span:nth-child(4n+1) i { color: var(--tfm-c1); }
.fx-cc__chips span:nth-child(4n+2) i { color: var(--tfm-c2); }
.fx-cc__chips span:nth-child(4n+3) i { color: var(--tfm-c3); }
.fx-cc__chips span:nth-child(4n+4) i { color: var(--tfm-c4); }
.fx-cc__bar span { background: linear-gradient(90deg, var(--tfm-indigo), var(--tfm-c1)); animation: none; }
.curriculum-module { --mod: var(--tfm-indigo); }
.curriculum-module.is-current { background: color-mix(in srgb, var(--mod) 4%, transparent); }
.curriculum-module .curriculum-lesson.is-current { background: var(--tfm-select); box-shadow: inset 3px 0 0 var(--tfm-indigo); }
.curriculum-module .curriculum-lesson.is-current .curriculum-lesson__num, .curriculum-module .curriculum-lesson.is-current .curriculum-lesson__title { color: var(--tfm-ink); }
.lesson-state.is-current { border-color: var(--tfm-indigo); box-shadow: 0 0 0 3px color-mix(in srgb, var(--tfm-indigo) 20%, transparent); }
.fx-lesson-meta i { color: var(--tfm-slate); opacity: 1; }
.fx-lesson-meta .is-quiz, .fx-lesson-meta .is-quiz i { color: var(--tfm-c3); }

/* Key points: neutral card, indigo numbers. */
.fx-keypoints { background: var(--surface); border: 1px solid var(--tfm-border); box-shadow: var(--tfm-card-shadow); }
.fx-keypoints__title { color: var(--tfm-ink); }
.fx-keypoints__title i { color: var(--tfm-indigo); }
.tfm-kp__item { border-color: var(--tfm-border); }
.tfm-kp__item:hover { border-color: var(--tfm-indigo); }
.tfm-kp__num { color: var(--tfm-indigo); background: var(--tfm-select); }

@media (max-width: 640px) {
  .vp__btn[data-tip]::after { display: none; }
  .vp__speed::before, .vp__quality::before, .vp__btn.vp__loop::before, .vp__btn.vp__saver::before { margin-right: 0; }
  .vp__btn.vp__saver { font-size: 0; }
  .vp__btn.vp__saver::before { font-size: 13px; }
  .vp__vol { width: 56px; }
  .vp__play { width: 36px; min-width: 36px; height: 36px; }
}

/* 2.68 follow-up: the last orange around the lesson. */
.vp input.vp__vol[type="range"] { accent-color: #e2e8f0; }
.vp__btn.vp__loop, .vp__speed, .vp__quality, .vp__btn.vp__saver { white-space: nowrap; }
.badge--bull, .fx-app .badge--bull { background: color-mix(in srgb, var(--bull) 12%, var(--surface)); color: var(--bull); }
.fx-app .lesson-tab[aria-selected="true"] { color: var(--tfm-ink); border-bottom-color: var(--tfm-indigo); }
.fx-app .lesson-tab:hover { color: var(--tfm-ink); }
.fx-app .curriculum-lesson.is-current, .fx-app .curriculum-lesson[aria-current="page"] { background: var(--tfm-select); border-left-color: var(--tfm-indigo); }
.curriculum-lesson__now { color: var(--tfm-indigo); }
.curriculum-lesson__eq i { background: var(--tfm-indigo); }
.fx-lesson-num { color: var(--tfm-indigo); }
.fx-app .curriculum-module > summary, .fx-app .curriculum-module__head { background: var(--surface); }
.curriculum-module__objective { border-left-color: var(--tfm-border-strong); color: var(--tfm-slate); }
.fx-cc__fill { stroke: var(--tfm-indigo); }
.flow__node--accent { border-color: var(--tfm-indigo); color: var(--tfm-indigo); background: var(--tfm-select); }
.tfm-lmeta li:not(.is-done) { background: var(--surface); border-color: var(--tfm-border); color: var(--tfm-ink-2); }
.tfm-lmeta li:nth-child(4n+1):not(.is-done) i { color: var(--tfm-c1); }
.tfm-lmeta li:nth-child(4n+2):not(.is-done) i { color: var(--tfm-c2); }
.tfm-lmeta li:nth-child(4n+3):not(.is-done) i { color: var(--tfm-c3); }
.tfm-lmeta li:nth-child(4n+4):not(.is-done) i { color: var(--tfm-c6); }

/* ==========================================================================
   2.69 Smart search suggestions: coloured group icons, every word
   highlighted, recent and popular picks, "did you mean", and a floating
   panel for search fields inside pages.
   ========================================================================== */
.fx-suggest { border: 1px solid var(--tfm-border); border-radius: 14px; background: var(--surface); box-shadow: 0 24px 48px -20px rgba(15, 23, 42, .35), 0 2px 6px rgba(15, 23, 42, .06); padding: 6px; }
.fx-suggest--float { position: fixed; z-index: 1200; right: auto; min-width: 0; max-height: min(60vh, 460px); overflow: auto; animation: fx-suggest-in .16s ease-out; }
.fx-suggest[hidden] { display: none !important; }
.fx-suggest__group { display: flex; align-items: center; gap: 7px; padding: 10px 10px 4px; font-size: 11px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--tfm-slate); }
.fx-suggest__group i { font-size: 11px; }
.fx-suggest__clear { margin-left: auto; border: 0; background: none; padding: 0; font: inherit; font-size: 11px; letter-spacing: .02em; text-transform: none; color: var(--tfm-link); cursor: pointer; }
.fx-suggest__item { display: flex; flex-direction: row; align-items: center; gap: 11px; width: 100%; padding: 8px 10px; border: 0; border-radius: 10px; background: none; font: inherit; text-align: left; color: var(--tfm-ink); text-decoration: none; cursor: pointer; }
.fx-suggest__item:hover, .fx-suggest__item.is-current { background: var(--tfm-select); }
.fx-suggest__item.is-current { box-shadow: inset 3px 0 0 var(--tfm-indigo); }
.fx-suggest__txt { display: grid; gap: 1px; min-width: 0; flex: 1; }
.fx-suggest__label { font-weight: 600; font-size: 14px; color: var(--tfm-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fx-suggest__label mark, .fx-suggest__sub mark { background: color-mix(in srgb, #facc15 38%, transparent); color: inherit; font-weight: 800; border-radius: 3px; padding: 0 1px; }
.fx-suggest__sub { font-size: 12.5px; color: var(--tfm-slate); }
.fx-suggest__ic { flex: none; width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; font-size: 13px; color: var(--ic); background: color-mix(in srgb, var(--ic) 12%, var(--surface)); border: 1px solid color-mix(in srgb, var(--ic) 22%, transparent); }
.fx-suggest__ic--1, .fx-suggest__gi--1 { --ic: var(--tfm-c1); color: var(--tfm-c1); }
.fx-suggest__ic--2, .fx-suggest__gi--2 { --ic: var(--tfm-c2); color: var(--tfm-c2); }
.fx-suggest__ic--3, .fx-suggest__gi--3 { --ic: var(--tfm-c3); color: var(--tfm-c3); }
.fx-suggest__ic--4, .fx-suggest__gi--4 { --ic: var(--tfm-c4); color: var(--tfm-c4); }
.fx-suggest__ic--5, .fx-suggest__gi--5 { --ic: var(--tfm-c5); color: var(--tfm-c5); }
.fx-suggest__ic--6, .fx-suggest__gi--6 { --ic: var(--tfm-c6); color: var(--tfm-c6); }
.fx-suggest__go { flex: none; font-size: 11px; color: var(--tfm-slate); opacity: 0; transform: rotate(90deg); transition: opacity .12s ease; }
.fx-suggest__item:hover .fx-suggest__go, .fx-suggest__item.is-current .fx-suggest__go { opacity: 1; }
.fx-suggest__dym { display: flex; align-items: center; gap: 8px; width: 100%; margin: 4px 0; padding: 9px 10px; border: 1px dashed var(--tfm-border-strong); border-radius: 10px; background: none; font: inherit; font-size: 13.5px; color: var(--tfm-ink-2); cursor: pointer; text-align: left; }
.fx-suggest__dym i { color: var(--tfm-c3); }
.fx-suggest__dym:hover { border-color: var(--tfm-indigo); background: var(--tfm-select); }
.fx-suggest__empty i { color: var(--tfm-slate); }
.fx-suggest__all { display: flex; align-items: center; gap: 8px; width: 100%; margin-top: 4px; padding: 10px; border: 0; border-top: 1px solid var(--tfm-border); border-radius: 0 0 10px 10px; background: none; font: inherit; font-size: 13px; font-weight: 700; color: var(--tfm-link); text-align: left; cursor: pointer; text-decoration: none; }
.fx-suggest__all:hover { background: var(--surface-sunken); }
.fx-suggest__dot { background: var(--tfm-indigo); }
@media (max-width: 640px) {
  .fx-suggest__sub { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}
.fx-search-page__dym { margin: 0 0 var(--space-4); font-size: 15px; color: var(--tfm-ink-2); }
.fx-search-page__dym i { color: var(--tfm-c3); margin-right: 6px; }
.fx-search-page__dym a { color: var(--tfm-link); font-weight: 700; }
.fx-search-hit__icon.fx-suggest__ic { width: 38px; height: 38px; border-radius: 11px; font-size: 15px; }
.fx-search-group h2 i { margin-right: 6px; }

/* ==========================================================================
   2.70 Icons with depth, toasts, error pages, lesson materials, the library
   outline, player menus, theatre mode, live lesson states and animated
   lesson steps.
   ========================================================================== */

/* Font Awesome through the icon partial: sized like the old SVGs. */
.rateli-ico { display: inline-flex; align-items: center; justify-content: center; flex: none; line-height: 1; vertical-align: -0.125em; }

/* Icons with depth: tiles get a lit top edge, a soft coloured shadow and a
   subtle gradient, and the glyph a faint drop shadow, so they read as
   objects rather than flat mock-ups. */
.tfm-icon-tile, .fx-summary-grid .fx-summary__icon, .fx-suggest__ic, .tfm-lout__icon, .tfm-lstrip__icon, .tfm-lmat__icon {
  background-image: linear-gradient(160deg, rgba(255, 255, 255, .55) 0%, rgba(255, 255, 255, 0) 55%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .75), inset 0 -1px 0 rgba(15, 23, 42, .06), 0 6px 14px -10px rgba(15, 23, 42, .45);
}
.tfm-icon-tile i, .fx-summary-grid .fx-summary__icon i, .fx-suggest__ic i, .tfm-lout__icon i, .tfm-lstrip__icon i, .tfm-lmat__icon i { filter: drop-shadow(0 1px 1px rgba(15, 23, 42, .18)); }
[data-theme="dark"] .tfm-icon-tile, [data-theme="dark"] .fx-summary-grid .fx-summary__icon, [data-theme="dark"] .fx-suggest__ic, [data-theme="dark"] .tfm-lout__icon, [data-theme="dark"] .tfm-lstrip__icon, [data-theme="dark"] .tfm-lmat__icon {
  background-image: linear-gradient(160deg, rgba(255, 255, 255, .10) 0%, rgba(255, 255, 255, 0) 60%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 6px 14px -10px rgba(0, 0, 0, .8);
}
.fx-mod-icon { background-image: linear-gradient(160deg, rgba(255, 255, 255, .28), rgba(255, 255, 255, 0) 60%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 8px 16px -10px var(--mod); }
.fx-app .sidebar-link__icon.rateli-ico { font-size: 15px !important; color: var(--tfm-slate); }
.fx-app .sidebar-link:hover .sidebar-link__icon.rateli-ico { color: var(--tfm-ink); }
.fx-app .sidebar-link.is-active .sidebar-link__icon.rateli-ico { color: var(--tfm-indigo); }

/* ---- Toasts: top right, frosted glass, coloured icon and countdown ---- */
.toast-stack { top: 84px; right: 20px; bottom: auto; left: auto; width: min(380px, calc(100vw - 32px)); max-width: none; gap: 10px; }
.toast { --tc: var(--tfm-c1); position: relative; overflow: hidden; display: grid; grid-template-columns: 38px 1fr 28px; align-items: start; gap: 12px; padding: 14px 12px 16px 14px; border-radius: 16px; border: 1px solid color-mix(in srgb, var(--tc) 30%, rgba(255, 255, 255, .5)); border-left-width: 1px; background: color-mix(in srgb, var(--surface) 72%, transparent); backdrop-filter: blur(16px) saturate(1.6); -webkit-backdrop-filter: blur(16px) saturate(1.6); box-shadow: 0 24px 48px -22px rgba(15, 23, 42, .45), 0 0 0 1px rgba(255, 255, 255, .25) inset; color: var(--tfm-ink); animation: tfm-toast-in .5s cubic-bezier(.2, 1.1, .3, 1) both; }
.toast--success { --tc: #059669; }
.toast--error { --tc: #dc2626; }
.toast--warning { --tc: #d97706; }
.toast--info { --tc: #2563eb; }
.toast::before { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 90% at 0% 0%, color-mix(in srgb, var(--tc) 16%, transparent), transparent 60%); pointer-events: none; }
.toast__icon { position: relative; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; font-size: 17px; color: #fff; background: linear-gradient(145deg, color-mix(in srgb, var(--tc) 70%, #fff), var(--tc)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 10px 18px -10px var(--tc); }
.toast__icon::after { content: ""; position: absolute; inset: -4px; border-radius: 15px; border: 2px solid var(--tc); opacity: 0; animation: tfm-toast-ping 1.6s ease-out .2s 2; }
.toast__body { position: relative; display: grid; gap: 2px; min-width: 0; }
.toast__title { font-size: 13.5px; font-weight: 800; color: var(--tc); letter-spacing: .01em; }
.toast__text { font-size: 14px; line-height: 1.45; color: var(--tfm-ink-2); }
.toast__close { position: relative; width: 28px; height: 28px; border: 0; border-radius: 8px; background: transparent; color: var(--tfm-slate); cursor: pointer; display: grid; place-items: center; }
.toast__close:hover { background: color-mix(in srgb, var(--tfm-ink) 8%, transparent); color: var(--tfm-ink); }
.toast__bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: linear-gradient(90deg, var(--tc), color-mix(in srgb, var(--tc) 45%, #fff), var(--tc)); background-size: 200% 100%; transform-origin: left; animation: tfm-toast-life var(--toast-life, 4800ms) linear forwards, tfm-toast-shine 1.8s linear infinite; }
.toast.is-paused .toast__bar { animation-play-state: paused; }
.toast.is-leaving { animation: tfm-toast-out .28s ease-in forwards; }
@keyframes tfm-toast-in { from { opacity: 0; transform: translateX(36px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes tfm-toast-out { to { opacity: 0; transform: translateX(40px) scale(.96); } }
@keyframes tfm-toast-life { from { transform: scaleX(1); } to { transform: scaleX(0); } }
@keyframes tfm-toast-shine { to { background-position: -200% 0; } }
@keyframes tfm-toast-ping { 0% { opacity: .55; transform: scale(.9); } 100% { opacity: 0; transform: scale(1.25); } }
[data-theme="dark"] .toast { background: rgba(17, 20, 28, .72); border-color: color-mix(in srgb, var(--tc) 35%, rgba(255, 255, 255, .08)); box-shadow: 0 24px 48px -20px rgba(0, 0, 0, .8); }
@media (max-width: 640px) { .toast-stack { top: 70px; right: 12px; left: 12px; width: auto; } }

/* ---- Error pages ---- */
.tfm-err { --err: var(--tfm-c1); display: grid; justify-items: center; gap: 10px; text-align: center; max-width: 620px; margin: 0 auto; }
.tfm-err__badge { position: relative; width: 104px; height: 104px; display: grid; place-items: center; margin-bottom: 6px; }
.tfm-err__ring { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 0deg, transparent, var(--err), transparent 70%); -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3px)); mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3px)); animation: tfm-err-spin 3s linear infinite; }
.tfm-err__icon { width: 76px; height: 76px; border-radius: 24px; display: grid; place-items: center; font-size: 32px; color: #fff; background: linear-gradient(150deg, color-mix(in srgb, var(--err) 65%, #fff), var(--err)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 22px 40px -18px var(--err); animation: tfm-err-float 3s ease-in-out infinite; }
.tfm-err__code { font-size: clamp(56px, 10vw, 88px); font-weight: 900; line-height: 1; letter-spacing: -.04em; background: linear-gradient(120deg, var(--tfm-ink), var(--err)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tfm-err__title { margin: 0; font-size: clamp(22px, 3vw, 30px); color: var(--tfm-ink); }
.tfm-err__text { margin: 0; color: var(--tfm-slate); font-size: 16px; line-height: 1.6; }
.tfm-err__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 18px; }
.tfm-err__back i { transition: transform .25s cubic-bezier(.2, 1, .3, 1); }
.tfm-err__back:hover i { transform: translateX(-4px); }
@keyframes tfm-err-spin { to { transform: rotate(360deg); } }
@keyframes tfm-err-float { 50% { transform: translateY(-6px); } }

/* ---- Lesson materials drop (lesson editor) ---- */
.tfm-matdrop .field__label i { color: var(--tfm-indigo); margin-right: 4px; }
.tfm-matdrop__zone { display: grid; justify-items: center; gap: 6px; padding: 22px 18px; border: 2px dashed var(--tfm-border-strong); border-radius: 16px; background: var(--surface-sunken); text-align: center; cursor: pointer; transition: border-color .2s, background .2s, transform .2s; }
.tfm-matdrop__zone:hover, .tfm-matdrop__zone.is-over { border-color: var(--tfm-indigo); background: var(--tfm-select); }
.tfm-matdrop__zone.is-over { transform: scale(1.01); }
.tfm-matdrop__zone strong { color: var(--tfm-ink); font-size: 14.5px; }
.tfm-matdrop__zone small { color: var(--tfm-slate); max-width: 56ch; line-height: 1.5; }
.tfm-matdrop__icons { display: flex; gap: 8px; margin-bottom: 4px; }
.tfm-matdrop__chip { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-size: 18px; color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4), 0 8px 16px -10px rgba(15, 23, 42, .6); transition: transform .3s cubic-bezier(.2, 1.2, .3, 1); }
.tfm-matdrop__chip--ppt { background: linear-gradient(150deg, #fb923c, #c2410c); }
.tfm-matdrop__chip--pdf { background: linear-gradient(150deg, #f87171, #b91c1c); transition-delay: .04s; }
.tfm-matdrop__chip--doc { background: linear-gradient(150deg, #60a5fa, #1d4ed8); transition-delay: .08s; }
.tfm-matdrop__zone:hover .tfm-matdrop__chip, .tfm-matdrop__zone.is-over .tfm-matdrop__chip { transform: translateY(-4px) rotate(-4deg); }
.tfm-matdrop__list { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.tfm-matdrop__list:empty { display: none; }
.tfm-matdrop__file { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 99px; border: 1px solid var(--tfm-border); background: var(--surface); font-size: 12.5px; color: var(--tfm-ink-2); }
.tfm-matdrop__file i { color: var(--tfm-indigo); }

/* ---- Materials strip under the lesson title ---- */
.tfm-lstrip { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; padding: 10px; border: 1px solid var(--tfm-border); border-radius: 16px; background: var(--surface); box-shadow: var(--tfm-card-shadow); }
.tfm-lstrip__label { display: inline-flex; align-items: center; gap: 6px; padding: 0 6px; font-size: 11.5px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--tfm-slate); }
.tfm-lstrip__label i { color: var(--tfm-indigo); }
.tfm-lstrip__chip { --kc: var(--tfm-c1); display: inline-flex; align-items: center; gap: 10px; max-width: 280px; padding: 6px 12px 6px 6px; border-radius: 12px; border: 1px solid var(--tfm-border); background: var(--surface); color: var(--tfm-ink); text-decoration: none; transition: border-color .2s, transform .2s, box-shadow .2s; }
.tfm-lstrip__chip:hover { border-color: var(--kc); transform: translateY(-2px); box-shadow: 0 12px 24px -18px var(--kc); color: var(--tfm-ink); }
.tfm-lstrip__chip--slides { --kc: #ea580c; }
.tfm-lstrip__chip--pdf { --kc: #dc2626; }
.tfm-lstrip__chip--doc { --kc: #2563eb; }
.tfm-lstrip__chip--sheet { --kc: #059669; }
.tfm-lstrip__chip--media { --kc: #7c3aed; }
.tfm-lstrip__chip--link { --kc: #0891b2; }
.tfm-lstrip__icon { width: 34px; height: 34px; flex: none; border-radius: 10px; display: grid; place-items: center; font-size: 15px; color: var(--kc); background-color: color-mix(in srgb, var(--kc) 12%, var(--surface)); border: 1px solid color-mix(in srgb, var(--kc) 24%, transparent); }
.tfm-lstrip__text { display: grid; min-width: 0; }
.tfm-lstrip__text strong { font-size: 13px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tfm-lstrip__text small { font-size: 11.5px; color: var(--tfm-slate); }
.tfm-lstrip__lib { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 10px; font-size: 13px; font-weight: 700; color: var(--tfm-link); text-decoration: none; }
.tfm-lstrip__lib:hover { background: var(--tfm-select); }

/* ---- Library: by course, module and lesson ---- */
.tfm-lout__switch { display: inline-flex; gap: 4px; margin: 6px 0 18px; padding: 4px; border-radius: 14px; border: 1px solid var(--tfm-border); background: var(--surface-sunken); }
.tfm-lout__tab { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border: 0; border-radius: 10px; background: transparent; font: inherit; font-size: 13.5px; font-weight: 700; color: var(--tfm-slate); cursor: pointer; transition: background .2s, color .2s, box-shadow .2s; }
.tfm-lout__tab:hover { color: var(--tfm-ink); }
.tfm-lout__tab.is-on { background: var(--surface); color: var(--tfm-ink); box-shadow: 0 1px 2px rgba(15, 23, 42, .08), 0 4px 10px -6px rgba(15, 23, 42, .2); }
.tfm-lout__tab.is-on i { color: var(--tfm-indigo); }
.tfm-lout { margin-bottom: 22px; border: 1px solid var(--tfm-border); border-radius: 18px; background: var(--surface); box-shadow: var(--tfm-card-shadow); overflow: hidden; }
.tfm-lout__course { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--tfm-border); background: linear-gradient(90deg, var(--tfm-select), var(--surface) 70%); }
.tfm-lout__course h2 { margin: 0; flex: 1; font-size: 18px; color: var(--tfm-ink); }
.tfm-lout__course-icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-size: 17px; color: #fff; background: linear-gradient(150deg, #818cf8, var(--tfm-indigo)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4), 0 10px 18px -12px var(--tfm-indigo); }
.tfm-lout__module { padding: 14px 18px 6px; }
.tfm-lout__module + .tfm-lout__module { border-top: 1px dashed var(--tfm-border); }
.tfm-lout__module-title { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; font-size: 15px; color: var(--tfm-ink); }
.tfm-lout__mno { min-width: 34px; height: 26px; padding: 0 8px; border-radius: 8px; display: inline-grid; place-items: center; font-size: 12px; font-weight: 800; color: var(--tfm-indigo); background: var(--tfm-select); border: 1px solid color-mix(in srgb, var(--tfm-indigo) 25%, transparent); }
.tfm-lout__lesson { position: relative; margin: 0 0 12px 16px; padding-left: 18px; border-left: 2px solid var(--tfm-border); }
.tfm-lout__lesson.is-target { border-left-color: var(--tfm-indigo); animation: tfm-lout-flash 2.4s ease-out; border-radius: 0 12px 12px 0; }
@keyframes tfm-lout-flash { 0%, 30% { background: var(--tfm-select); } 100% { background: transparent; } }
.tfm-lout__lesson-head { display: flex; align-items: center; gap: 10px; padding: 4px 0 8px; }
.tfm-lout__lno { min-width: 34px; height: 24px; padding: 0 7px; border-radius: 99px; display: inline-grid; place-items: center; font-size: 12px; font-weight: 800; color: var(--tfm-ink-2); background: var(--surface-sunken); border: 1px solid var(--tfm-border); font-variant-numeric: tabular-nums; }
.tfm-lout__lesson-title { flex: 1; min-width: 0; font-weight: 700; font-size: 14px; color: var(--tfm-ink); }
.tfm-lout__open { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; color: var(--tfm-link); text-decoration: none; white-space: nowrap; }
.tfm-lout__open i { transition: transform .2s; }
.tfm-lout__open:hover i { transform: scale(1.15); }
.tfm-lout__items { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.tfm-lout__item { --kc: var(--tfm-c1); display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--tfm-border); border-radius: 12px; background: var(--surface); transition: border-color .2s, box-shadow .2s, transform .2s; }
.tfm-lout__item:hover { border-color: var(--kc); transform: translateX(3px); box-shadow: 0 10px 24px -20px var(--kc); }
.tfm-lout__item[data-kind="slides"] { --kc: #ea580c; }
.tfm-lout__item[data-kind="pdf"] { --kc: #dc2626; }
.tfm-lout__item[data-kind="doc"] { --kc: #2563eb; }
.tfm-lout__item[data-kind="sheet"] { --kc: #059669; }
.tfm-lout__item[data-kind="video"], .tfm-lout__item[data-kind="audio"] { --kc: #7c3aed; }
.tfm-lout__item[data-kind="link"] { --kc: #0891b2; }
.tfm-lout__icon { width: 38px; height: 38px; flex: none; border-radius: 11px; display: grid; place-items: center; font-size: 16px; color: var(--kc); background-color: color-mix(in srgb, var(--kc) 12%, var(--surface)); border: 1px solid color-mix(in srgb, var(--kc) 24%, transparent); }
.tfm-lout__text { flex: 1; min-width: 0; display: grid; gap: 2px; }
.tfm-lout__text strong { font-size: 14px; color: var(--tfm-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tfm-lout__text small { font-size: 12px; color: var(--tfm-slate); }
.tfm-lout__text .tfm-lib__progress { max-width: 220px; margin-top: 4px; }
.tfm-lout__go { flex: none; }
@media (max-width: 640px) {
  .tfm-lout__lesson { margin-left: 4px; padding-left: 12px; }
  .tfm-lout__item { flex-wrap: wrap; }
  .tfm-lout__go { width: 100%; justify-content: center; }
  .tfm-lout__switch { display: flex; }
  .tfm-lout__tab { flex: 1; justify-content: center; font-size: 12.5px; padding: 9px 8px; }
}

/* ---- Player: menus, hover preview, theatre, resume card ---- */
.vp__menu { position: absolute; z-index: 30; min-width: 210px; max-width: 280px; padding: 6px; border-radius: 14px; background: rgba(15, 23, 42, .9); border: 1px solid rgba(255, 255, 255, .14); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 24px 48px -16px rgba(0, 0, 0, .75); color: #fff; animation: tfm-menu-in .18s cubic-bezier(.2, 1, .3, 1); }
@keyframes tfm-menu-in { from { opacity: 0; transform: translateY(6px) scale(.97); } to { opacity: 1; transform: none; } }
.vp__menu-head { display: flex; align-items: center; gap: 8px; padding: 8px 10px 6px; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .6); }
.vp__menu-head i { color: #a5b4fc; }
.vp__menu-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border: 0; border-radius: 9px; background: transparent; color: #fff; font: inherit; font-size: 14px; font-weight: 600; text-align: left; cursor: pointer; }
.vp__menu-item small { margin-left: auto; font-size: 11.5px; font-weight: 500; color: rgba(255, 255, 255, .55); }
.vp__menu-item:hover, .vp__menu-item:focus-visible { background: rgba(255, 255, 255, .12); outline: none; }
.vp__menu-check { width: 14px; font-size: 12px; color: #a5b4fc; opacity: 0; }
.vp__menu-item.is-on .vp__menu-check { opacity: 1; }
.vp__menu-item.is-on { color: #c7d2fe; }
.vp__menu-item:disabled { opacity: .45; cursor: default; }
.vp__menu-note { margin: 4px 10px 8px; font-size: 12px; line-height: 1.45; color: rgba(255, 255, 255, .6); }
.vp__btn[aria-expanded="true"] { background: rgba(255, 255, 255, .18); }
.vp__btn[aria-expanded="true"]::after { display: none; }
.vp__hover { position: absolute; bottom: 22px; transform: translateX(-50%); display: grid; justify-items: center; gap: 1px; padding: 5px 9px; border-radius: 8px; background: rgba(15, 23, 42, .94); border: 1px solid rgba(255, 255, 255, .14); color: #fff; font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity .12s; }
.vp__hover.is-on { opacity: 1; }
.vp__hover-chapter { font-size: 11px; font-weight: 500; color: rgba(255, 255, 255, .7); max-width: 200px; overflow: hidden; text-overflow: ellipsis; }
.vp__hover-chapter:empty { display: none; }
.vp__hover.is-locked .vp__hover-time::after { content: " \f023"; font-family: "Font Awesome 6 Free"; font-weight: 900; font-size: 10px; color: #fca5a5; }
.vp__theatre.is-on { color: #a5b4fc; }
.fx-app .player.is-theatre { grid-template-columns: 1fr !important; }
.fx-app .player.is-theatre .player__aside { position: static; max-height: none; }
.fx-app .player.is-theatre .vp video { max-height: 82vh; }
.vp__resume { align-items: center; flex-wrap: wrap; max-width: min(520px, calc(100% - 32px)); animation: tfm-menu-in .3s cubic-bezier(.2, 1, .3, 1); }
.vp__resume.is-leaving { opacity: 0; transform: translateY(6px); transition: opacity .25s, transform .25s; }
.vp__resume-text { display: grid; gap: 2px; min-width: 150px; flex: 1; }
.vp__resume-text strong { font-size: 13.5px; }
.vp__resume-text small { font-size: 12px; color: rgba(255, 255, 255, .72); font-weight: 500; font-variant-numeric: tabular-nums; }
.vp__resume-bar { display: block; height: 4px; margin-top: 4px; border-radius: 99px; background: rgba(255, 255, 255, .2); overflow: hidden; }
.vp__resume-bar span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #f97316, #fb923c); }
.vp__resume .btn i { margin-right: 2px; }

/* ---- Course panel: live states, up next, materials ---- */
.lesson-state.is-open, .lesson-state.is-next, .lesson-state.is-current { position: relative; display: inline-grid; place-items: center; font-size: 9px; }
.lesson-state.is-open { color: var(--tfm-slate); border-color: var(--tfm-border-strong); background: var(--surface); }
.curriculum-lesson:hover .lesson-state.is-open { color: var(--tfm-indigo); border-color: var(--tfm-indigo); }
.lesson-state.is-next { color: #fff; border-color: transparent; background: linear-gradient(150deg, #34d399, #059669); box-shadow: 0 4px 10px -4px #059669; }
.lesson-state.is-current { color: #fff; border-color: transparent; background: linear-gradient(150deg, #818cf8, var(--tfm-indigo)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--tfm-indigo) 20%, transparent); }
.lesson-state.is-current i { font-size: 9px; animation: tfm-live-beat 1.6s ease-in-out infinite; }
.lesson-state__live { position: absolute; inset: -3px; border-radius: 50%; border: 2px solid currentColor; pointer-events: none; }
.lesson-state.is-current .lesson-state__live { border-color: var(--tfm-indigo); animation: tfm-live-ring 1.8s ease-out infinite; }
.lesson-state.is-next .lesson-state__live { border-color: #10b981; animation: tfm-live-ring 2.2s ease-out infinite; }
@keyframes tfm-live-ring { 0% { transform: scale(.85); opacity: .9; } 100% { transform: scale(1.7); opacity: 0; } }
@keyframes tfm-live-beat { 50% { transform: scale(1.18); } }
.curriculum-module .curriculum-lesson.is-next { background: linear-gradient(90deg, color-mix(in srgb, #10b981 8%, transparent), transparent 80%); }
.curriculum-module .curriculum-lesson.is-next .curriculum-lesson__title { color: var(--tfm-ink); font-weight: 700; }
.fx-lesson-meta .is-mat, .fx-lesson-meta .is-mat i { color: #ea580c; }
.fx-lesson-meta .is-next-tag { display: inline-flex; align-items: center; gap: 4px; padding: 1px 7px; border-radius: 99px; font-weight: 700; color: #047857; background: color-mix(in srgb, #10b981 14%, transparent); }
.fx-lesson-meta .is-next-tag i { color: #047857; animation: tfm-nudge 1.4s ease-in-out infinite; }
@keyframes tfm-nudge { 50% { transform: translateX(2px); } }

/* ---- Previous / next steps ---- */
.tfm-step { gap: 8px; overflow: hidden; }
.tfm-step__arrow { width: 24px; height: 24px; border-radius: 50%; display: inline-grid; place-items: center; font-size: 12px; transition: transform .3s cubic-bezier(.2, 1.2, .3, 1), background .2s; }
.tfm-step--prev .tfm-step__arrow { background: var(--surface-sunken); color: var(--tfm-ink-2); }
.tfm-step--next .tfm-step__arrow { background: rgba(255, 255, 255, .22); }
.tfm-step--prev:hover .tfm-step__arrow { transform: translateX(-4px); background: var(--tfm-select); color: var(--tfm-indigo); }
.tfm-step--next:hover .tfm-step__arrow { transform: translateX(4px); }
.tfm-step--next:not(.is-locked) .tfm-step__arrow i { animation: tfm-nudge 1.8s ease-in-out infinite; }
.tfm-lnav { position: relative; overflow: hidden; }
.tfm-lnav > i { width: 40px; height: 40px; flex: none; border-radius: 50%; display: grid; place-items: center; font-size: 15px; color: var(--tfm-indigo); background: var(--tfm-select); border: 1px solid color-mix(in srgb, var(--tfm-indigo) 22%, transparent); transition: transform .35s cubic-bezier(.2, 1.2, .3, 1), background .25s, color .25s; }
.tfm-lnav:hover { border-color: var(--tfm-indigo); }
.tfm-lnav--prev:hover > i { transform: translateX(-5px); background: var(--tfm-indigo); color: #fff; }
.tfm-lnav--next:hover > i { transform: translateX(5px); background: var(--tfm-indigo); color: #fff; }
.tfm-lnav--next:not(.is-locked) > i { animation: tfm-nudge 2s ease-in-out infinite; }
.tfm-lnav::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, color-mix(in srgb, var(--tfm-indigo) 10%, transparent) 50%, transparent 70%); transform: translateX(-100%); transition: transform .6s ease; pointer-events: none; }
.tfm-lnav:hover::after { transform: translateX(100%); }

@media (prefers-reduced-motion: reduce) {
  .toast, .toast__bar, .toast__icon::after, .tfm-err__ring, .tfm-err__icon, .lesson-state__live, .lesson-state.is-current i, .tfm-step__arrow i, .tfm-lnav > i, .fx-lesson-meta .is-next-tag i { animation: none !important; }
}
.vp__menu .vp__menu-item:focus-visible { outline: none; box-shadow: inset 0 0 0 1px rgba(165, 180, 252, .65); }
@media (max-width: 640px) {
  .vp__resume { left: 8px; right: 8px; bottom: 58px; max-width: none; padding: 8px 10px; gap: 8px; flex-wrap: nowrap; }
  .vp__resume::before { display: none; }
  .vp__resume-text { min-width: 0; }
  .vp__resume-text strong { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .vp__resume-text small { font-size: 11px; }
  .vp__resume-bar { display: none; }
  .vp__resume .btn { padding: 5px 10px; font-size: 12px; min-height: 0; }
  .vp__resume .vp__resume-start { padding: 5px 8px; font-size: 0; }
  .vp__resume .vp__resume-start i { font-size: 12px; margin: 0; }
  .fx-lesson-actions { flex-wrap: wrap; min-width: 0; max-width: 100%; }
  .fx-lesson-actions .fx-autocomplete { min-width: 0; max-width: 100%; }
  .tfm-lout__text { flex: 1 1 calc(100% - 52px); }
  .tfm-lout__item > .tfm-pill { margin-left: 50px; }
}

/* ==========================================================================
   2.71 Course panel lesson rows: cards that arrive one after another, a
   progress ring round every icon, a glowing animated card for the lesson
   playing now, bright finished lessons with a Rewatch hint, and a sliding
   arrow on hover.
   ========================================================================== */
.fx-app .curriculum-module .tfm-crow,
.curriculum-module .tfm-crow {
  --rc: var(--tfm-slate);
  position: relative;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  margin: 4px 10px;
  padding: 11px 12px;
  border: 1px solid transparent;
  border-left: 1px solid transparent;
  border-radius: 14px;
  background: transparent;
  box-shadow: none;
  color: var(--tfm-ink-2);
  text-decoration: none;
  isolation: isolate;
  animation: tfm-crow-in .55s cubic-bezier(.2, .9, .3, 1) both;
  animation-delay: calc(var(--i, 0) * 70ms + 80ms);
  transition: background .25s ease, border-color .25s ease, transform .25s cubic-bezier(.2, 1, .3, 1), box-shadow .25s ease;
}
@keyframes tfm-crow-in { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
.curriculum-module .tfm-crow:hover:not(.is-locked) { background: var(--surface); border-color: var(--tfm-border); transform: translateX(4px); box-shadow: 0 12px 26px -20px rgba(15, 23, 42, .45); color: var(--tfm-ink); }

/* The state icon inside a progress ring. */
.tfm-crow__state { position: relative; width: 34px; height: 34px; display: grid; place-items: center; }
.tfm-crow__ring { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(var(--rc) calc(var(--p, 0) * 1%), color-mix(in srgb, var(--rc) 14%, transparent) 0); -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2.5px)); mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2.5px)); transition: background .6s ease; }
.tfm-crow .lesson-state { width: 24px; height: 24px; margin: 0; font-size: 10px; border-width: 1.5px; transition: transform .35s cubic-bezier(.2, 1.4, .3, 1); }
.tfm-crow .lesson-state i { font-size: 10px; }
.tfm-crow:hover:not(.is-locked) .lesson-state { transform: scale(1.12); }

/* Text */
.tfm-crow__body { min-width: 0; display: grid; gap: 3px; }
.tfm-crow .curriculum-lesson__title { color: inherit; font-size: 14px; line-height: 1.35; font-weight: 600; }
.tfm-crow .curriculum-lesson__num { display: inline-grid; place-items: center; min-width: 30px; height: 20px; margin-right: 6px; padding: 0 6px; border-radius: 6px; font-size: 11.5px; font-weight: 800; color: var(--rc); background: color-mix(in srgb, var(--rc) 10%, transparent); vertical-align: 1px; transition: background .25s, color .25s; }
.tfm-crow__bar { display: block; height: 4px; margin-top: 4px; border-radius: 99px; background: color-mix(in srgb, var(--rc) 14%, transparent); overflow: hidden; }
.tfm-crow__bar span { display: block; height: 100%; width: calc(var(--p, 0) * 1%); border-radius: inherit; background: linear-gradient(90deg, var(--rc), color-mix(in srgb, var(--rc) 55%, #fff), var(--rc)); background-size: 200% 100%; animation: tfm-crow-flow 2.2s linear infinite; transition: width .6s ease; }
@keyframes tfm-crow-flow { to { background-position: -200% 0; } }

/* The arrow (or rewatch) at the end of the row. */
.tfm-crow__go { display: grid; justify-items: center; gap: 1px; min-width: 28px; color: var(--tfm-slate); opacity: .35; transform: translateX(-4px); transition: opacity .25s, transform .3s cubic-bezier(.2, 1.2, .3, 1), color .25s; }
.tfm-crow__go i { font-size: 12px; }
.tfm-crow__go small { font-size: 9.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; max-height: 0; overflow: hidden; transition: max-height .25s; }
.tfm-crow:hover:not(.is-locked) .tfm-crow__go { opacity: 1; transform: none; color: var(--rc); }
.tfm-crow:hover .tfm-crow__go small { max-height: 14px; }
.tfm-crow.is-done:hover .tfm-crow__go i { animation: tfm-crow-spin .6s cubic-bezier(.3, 1, .4, 1); }
@keyframes tfm-crow-spin { from { transform: rotate(0); } to { transform: rotate(-360deg); } }

/* Finished: bright, green, a tick that pops in. */
.curriculum-module .tfm-crow.is-done { --rc: #059669; color: var(--tfm-ink-2); }
.tfm-crow.is-done .lesson-state { background: linear-gradient(150deg, #34d399, #059669); border-color: transparent; color: #fff; box-shadow: 0 6px 12px -6px #059669; }
.tfm-crow.is-done .lesson-state i { animation: tfm-crow-pop .6s cubic-bezier(.2, 1.6, .4, 1) both; animation-delay: calc(var(--i, 0) * 70ms + 350ms); }
@keyframes tfm-crow-pop { 0% { transform: scale(0) rotate(-30deg); } 100% { transform: none; } }
.fx-lesson-meta .is-done-tag { display: inline-flex; align-items: center; gap: 4px; color: #047857; font-weight: 700; }
.fx-lesson-meta .is-done-tag i { color: #059669; }

/* Up next: green, with its live ring. */
.curriculum-module .tfm-crow.is-next { --rc: #059669; background: linear-gradient(100deg, color-mix(in srgb, #10b981 10%, var(--surface)), var(--surface) 75%); border-color: color-mix(in srgb, #10b981 28%, transparent); color: var(--tfm-ink); }
.tfm-crow.is-next .tfm-crow__go { opacity: .8; transform: none; color: #059669; }
.tfm-crow.is-next .tfm-crow__go i { animation: tfm-nudge 1.4s ease-in-out infinite; }

/* Started but not finished. */
.curriculum-module .tfm-crow.is-started { --rc: #d97706; }

/* Open and locked. */
.curriculum-module .tfm-crow.is-open { --rc: var(--tfm-indigo); }
.curriculum-module .tfm-crow.is-locked { --rc: var(--tfm-slate); opacity: .6; }
.tfm-crow.is-locked .lesson-state { background: var(--surface-sunken); }

/* Playing now: a glowing card with a moving gradient border. */
.fx-app .curriculum-module .tfm-crow.is-current,
.curriculum-module .tfm-crow.is-current {
  --rc: var(--tfm-indigo);
  margin: 8px 8px;
  padding: 14px 14px;
  border: 1.5px solid transparent;
  background:
    linear-gradient(135deg, color-mix(in srgb, #6366f1 9%, var(--surface)), var(--surface) 70%) padding-box,
    linear-gradient(var(--crow-angle, 120deg), #6366f1, #22d3ee, #a855f7, #6366f1) border-box;
  box-shadow: 0 18px 36px -24px rgba(79, 70, 229, .75), 0 0 0 4px color-mix(in srgb, #6366f1 8%, transparent);
  color: var(--tfm-ink);
  animation: tfm-crow-in .55s cubic-bezier(.2, .9, .3, 1) both, tfm-crow-border 6s linear infinite;
  animation-delay: calc(var(--i, 0) * 70ms + 80ms), 0s;
}
@property --crow-angle { syntax: '<angle>'; inherits: false; initial-value: 120deg; }
@keyframes tfm-crow-border { to { --crow-angle: 480deg; } }
.tfm-crow.is-current::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: linear-gradient(110deg, transparent 25%, rgba(255, 255, 255, .55) 50%, transparent 75%); background-size: 250% 100%; animation: tfm-crow-sheen 3.6s ease-in-out infinite; pointer-events: none; }
@keyframes tfm-crow-sheen { 0%, 30% { background-position: 150% 0; } 100% { background-position: -100% 0; } }
.tfm-crow.is-current .curriculum-lesson__title { font-weight: 800; font-size: 14.5px; }
.tfm-crow.is-current .curriculum-lesson__num { color: #fff; background: linear-gradient(135deg, #818cf8, #4f46e5); box-shadow: 0 4px 10px -4px #4f46e5; }
.tfm-crow.is-current .tfm-crow__state { width: 38px; height: 38px; }
.tfm-crow.is-current .lesson-state { width: 28px; height: 28px; }
.tfm-crow.is-current .tfm-crow__ring { background: conic-gradient(from -90deg, #6366f1, #22d3ee calc(var(--p, 0) * 1%), color-mix(in srgb, #6366f1 14%, transparent) 0); }
.tfm-crow.is-current .curriculum-lesson__now { display: flex; align-items: center; gap: 6px; }
.tfm-crow__pct { margin-left: auto; padding: 1px 8px; border-radius: 99px; font-size: 11px; font-weight: 800; color: #4f46e5; background: color-mix(in srgb, #6366f1 12%, transparent); font-variant-numeric: tabular-nums; }
.tfm-crow.is-current .tfm-crow__bar span { background: linear-gradient(90deg, #6366f1, #22d3ee, #a855f7, #6366f1); background-size: 200% 100%; }
.tfm-crow.is-current .tfm-crow__go { opacity: 1; transform: none; color: #6366f1; }
.tfm-crow.is-current .tfm-crow__go i { animation: tfm-crow-sound 1.2s ease-in-out infinite; }
@keyframes tfm-crow-sound { 50% { transform: scale(1.18); opacity: .7; } }
.curriculum-lesson__eq i { animation-duration: .8s; }

[data-theme="dark"] .curriculum-module .tfm-crow:hover:not(.is-locked) { background: rgba(255, 255, 255, .04); }
[data-theme="dark"] .tfm-crow.is-current::before { background: linear-gradient(110deg, transparent 25%, rgba(255, 255, 255, .08) 50%, transparent 75%); background-size: 250% 100%; }
[data-theme="dark"] .fx-app .curriculum-module .tfm-crow.is-current { background: linear-gradient(135deg, rgba(99, 102, 241, .16), rgba(17, 20, 28, .9) 70%) padding-box, linear-gradient(var(--crow-angle, 120deg), #6366f1, #22d3ee, #a855f7, #6366f1) border-box; }

@media (prefers-reduced-motion: reduce) {
  .curriculum-module .tfm-crow, .tfm-crow.is-current::before, .tfm-crow__bar span, .tfm-crow.is-done .lesson-state i, .tfm-crow.is-current .tfm-crow__go i, .tfm-crow.is-next .tfm-crow__go i { animation: none !important; }
}

/* ==========================================================================
   2.72 Section labels and image backgrounds
   The uppercase, letter-spaced orange pills read as machine-made. Section
   labels now use an editorial voice: Fraunces italic in sentence case, set
   after a short hand-drawn rule, the way a magazine or a good WordPress
   theme labels its sections. No pill, no border, no glow. The grid lines
   that sat behind heroes and generated images are gone too.
   ========================================================================== */
:root { --font-label: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif; --label-rule: #c2410c; }
[data-theme="dark"] { --label-rule: #fb923c; }
.eyebrow,
.hero .eyebrow,
.fx-banner .eyebrow,
.tfm-scene__eyebrow,
.fx-curr__eyebrow,
.fx-slide__eyebrow,
.fx-course-card__eyebrow,
.fx-achieve__eyebrow,
.fx-tier__kicker,
.fx-prog__kicker,
.fx-enrol__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  font-family: var(--font-label);
  font-style: italic;
  font-weight: 500;
  font-size: 1.02rem;
  line-height: 1.3;
  letter-spacing: 0;
  text-transform: none;
  color: var(--tfm-ink-2, var(--text));
  font-variation-settings: "SOFT" 60, "WONK" 0;
}
.fx-course-card__eyebrow, .fx-tier__kicker, .fx-prog__kicker, .fx-enrol__eyebrow { font-size: .95rem; }
.fx-tier__kicker, .fx-prog__kicker { color: color-mix(in srgb, var(--tier, var(--tfm-ink-2)) 70%, var(--text-strong)); }

/* The rule: a short stroke that thins out, like a pen mark. */
.eyebrow::before,
.tfm-scene__eyebrow::before,
.fx-curr__eyebrow::before,
.fx-slide__eyebrow::before {
  content: "";
  flex: 0 0 auto;
  width: 28px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--label-rule), color-mix(in srgb, var(--label-rule) 10%, transparent));
  opacity: 1;
}
.eyebrow--plain::before { display: none; }
/* Centred headings get a rule on both sides. */
.section-head--center > .eyebrow::after,
.tfm-scene__eyebrow::after {
  content: "";
  flex: 0 0 auto;
  width: 28px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(270deg, var(--label-rule), color-mix(in srgb, var(--label-rule) 10%, transparent));
}
/* A label with an icon keeps the icon small and quiet, in place of the rule. */
.eyebrow:has(> i)::before, .tfm-scene__eyebrow:has(> i)::before, .fx-curr__eyebrow:has(> i)::before,
.eyebrow:has(> i)::after, .tfm-scene__eyebrow:has(> i)::after { display: none; }
.section-head--center > .eyebrow::before { display: block; }
.section-head--center > .eyebrow:has(> i)::before { display: none; }
.eyebrow > i, .tfm-scene__eyebrow > i, .fx-curr__eyebrow > i, .fx-slide__eyebrow > i { font-style: normal; font-size: .82em; color: var(--label-rule); opacity: .9; }

/* On dark heroes, banners and slides. */
.hero .eyebrow,
.fx-banner .eyebrow,
.tfm-scene__eyebrow,
.fx-slide__eyebrow,
.fx-achieve__eyebrow { color: rgba(255, 255, 255, .88); }
.hero .eyebrow > i, .fx-banner .eyebrow > i, .tfm-scene__eyebrow > i { color: #fdba74; }
.tfm-scene__eyebrow { font-size: 1.12rem; }
[data-theme="dark"] .eyebrow { color: rgba(255, 255, 255, .8); }

/* No grid lines behind heroes or scenes. */
.hero::after { background-image: none; }
.hero .eyebrow, .fx-banner .eyebrow, .tfm-scene__eyebrow, .fx-slide__eyebrow { --label-rule: #fdba74; }
.tfm-scene__grid { display: none; }

/* Labels, tags and table headings: sentence case, normal spacing, a
   calmer weight. Shouting capitals were the second machine-made tell.
   Brand marks, certificate ribbons, file types and codes keep capitals. */
.badge,
.panel__title, .stat__label, .table th, .table thead th,
.sidebar-group__label, .fx-app .sidebar-group__label,
.fx-user__role, .fx-kpi-edge__label, .fx-stat-tile__label, .fx-filter-bar__label,
.fx-next-course__tag, .fx-icon-field__label, .fx-task__status, .fx-task__course,
.fx-channels__label, .fx-post__staff, .fx-post__pin, .fx-suggest__group,
.fx-search-group h2, .fx-section-label, .fx-task__h, .fx-cc__label, .fx-tier__more,
.fx-sched__week small, .fx-kyc__count, .fx-summary__label,
.hero__proof-label, .mini-metric__label, .ladder-step__badge, .quiz-question__number,
.tfm-link-pill, .tfm-paybox__due small, .tfm-set > legend, .tfm-manage__label,
.tfm-lib__kind, .tfm-lnav small, .tfm-blog__flag, .tfm-post__author small,
.tfm-scene__ticker-label, .tfm-scene__ticker-cat, .tfm-ad__label, .tfm-lstrip__label,
.vp__menu-head, .tfm-crow__go small, .vp-next__label,
.footer-heading, .site-footer .footer-heading, .fx-app-footer__slogan {
  text-transform: none;
  letter-spacing: -0.003em;
}
.badge { font-weight: 600; border-radius: 6px; }
.panel__title, .stat__label, .fx-kpi-edge__label, .fx-stat-tile__label, .fx-summary__label,
.mini-metric__label, .fx-section-label, .fx-task__h, .fx-cc__label, .tfm-manage__label,
.sidebar-group__label, .fx-app .sidebar-group__label, .fx-suggest__group, .fx-search-group h2 { font-weight: 650; font-size: max(12.5px, 1em * .92); }
.table th, .table thead th { font-weight: 650; font-size: 12.5px; }
.footer-heading, .site-footer .footer-heading { font-family: var(--font-label); font-style: italic; font-weight: 500; font-size: 1.05rem; }


/* ==========================================================================
   2.72 Teaching portal, the Director of Studies' desk, wallet, KYC, launch
   readiness and lesson ratings. Calm surfaces, humanist labels, colour used
   for meaning (green money in, slate money out, amber waiting), and Font
   Awesome tiles with depth. Orange only on primary actions.
   ========================================================================== */
.tfm-teach-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; margin: 4px 0 24px; }
.tfm-teach-head__title { margin: 8px 0 6px; font-size: clamp(26px, 3vw, 34px); line-height: 1.15; letter-spacing: -.02em; color: var(--tfm-ink); }
.tfm-teach-head__sub { margin: 0; max-width: 680px; color: var(--text-muted); line-height: 1.6; }
.tfm-teach-head__roles { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.tfm-teach-head__actions { display: flex; flex-wrap: wrap; gap: 10px; }

.tfm-role-chip { display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px; border-radius: 8px; font-size: 13px; font-weight: 600; color: #3730a3; background: color-mix(in srgb, #6366f1 10%, var(--surface)); border: 1px solid color-mix(in srgb, #6366f1 22%, transparent); }
.tfm-role-chip--mentor { color: #0f766e; background: color-mix(in srgb, #14b8a6 10%, var(--surface)); border-color: color-mix(in srgb, #14b8a6 24%, transparent); }
.tfm-role-chip--director-of-studies { color: #7c2d12; background: color-mix(in srgb, #f59e0b 12%, var(--surface)); border-color: color-mix(in srgb, #f59e0b 28%, transparent); }
.tfm-role-chip--sm { padding: 2px 8px; font-size: 12px; }

/* Notes and banners */
.tfm-teach-note { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; padding: 16px 18px; border-radius: 16px; border: 1px solid color-mix(in srgb, #f59e0b 30%, transparent); background: linear-gradient(110deg, color-mix(in srgb, #f59e0b 9%, var(--surface)), var(--surface) 70%); }
.tfm-teach-note > div { flex: 1 1 auto; min-width: 0; }
.tfm-teach-note strong { display: block; color: var(--tfm-ink); }
.tfm-teach-note p { margin: 4px 0 0; color: var(--text-muted); font-size: 14px; line-height: 1.55; }
.tfm-teach-note__icon { flex: 0 0 auto; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; color: #fff; background: linear-gradient(150deg, #fbbf24, #d97706); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 8px 18px -10px #d97706; }
.tfm-teach-note--info { border-color: color-mix(in srgb, #6366f1 26%, transparent); background: linear-gradient(110deg, color-mix(in srgb, #6366f1 8%, var(--surface)), var(--surface) 70%); }
.tfm-teach-note--info .tfm-teach-note__icon { background: linear-gradient(150deg, #818cf8, #4f46e5); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 8px 18px -10px #4f46e5; }
.tfm-teach-note--ok { border-color: color-mix(in srgb, #10b981 28%, transparent); background: linear-gradient(110deg, color-mix(in srgb, #10b981 8%, var(--surface)), var(--surface) 70%); }
.tfm-teach-note--ok .tfm-teach-note__icon { background: linear-gradient(150deg, #34d399, #059669); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 8px 18px -10px #059669; }
.tfm-teach-note--tight { margin: 0; padding: 12px 14px; }
.tfm-teach-note--tight .tfm-teach-note__icon { width: 34px; height: 34px; border-radius: 10px; font-size: 14px; }

.tfm-teach-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 24px; align-items: stretch; margin-bottom: 24px; }

/* The wallet card: deep ink, warm light, money set large. */
.tfm-wallet-card { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 14px; padding: 24px; border-radius: 20px; color: #f8fafc; background: radial-gradient(120% 90% at 100% 0%, rgba(251, 146, 60, .28), transparent 55%), radial-gradient(90% 80% at 0% 100%, rgba(99, 102, 241, .25), transparent 60%), linear-gradient(150deg, #111827, #0b1220); box-shadow: 0 24px 50px -30px rgba(15, 23, 42, .8), inset 0 1px 0 rgba(255, 255, 255, .08); }
.tfm-wallet-card__top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.tfm-wallet-card__label { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-label, Georgia, serif); font-style: italic; font-size: 16px; color: rgba(248, 250, 252, .82); }
.tfm-wallet-card__label i { font-style: normal; color: #fdba74; }
.tfm-wallet-card__link { color: rgba(248, 250, 252, .8); font-size: 13px; font-weight: 600; text-decoration: none; }
.tfm-wallet-card__link:hover { color: #fff; }
.tfm-wallet-card__link i { transition: transform .25s ease; }
.tfm-wallet-card__link:hover i { transform: translateX(3px); }
.tfm-wallet-card__amount { font-size: clamp(34px, 4.4vw, 46px); line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.tfm-wallet-card__row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 6px 0 0; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .1); }
.tfm-wallet-card__row dt { font-size: 12.5px; color: rgba(248, 250, 252, .6); }
.tfm-wallet-card__row dd { margin: 3px 0 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.tfm-wallet-card__hint { margin: 0; font-size: 13px; color: rgba(248, 250, 252, .65); }

/* Earnings bars */
.tfm-earn { margin: 0; display: flex; flex-direction: column; }
.tfm-bars { flex: 1 1 auto; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); align-items: end; gap: 14px; min-height: 190px; padding: 18px 20px 16px; }
.tfm-bars__col { --h: 0%; display: grid; grid-template-rows: auto 1fr auto; justify-items: center; gap: 6px; height: 100%; }
.tfm-bars__val { font-size: 11.5px; font-weight: 600; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.tfm-bars__bar { align-self: end; width: min(42px, 100%); height: max(4px, var(--h, 0%)); border-radius: 10px 10px 4px 4px; background: linear-gradient(180deg, #818cf8, #4f46e5); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 10px 18px -12px #4f46e5; transform-origin: bottom; animation: tfm-bar-grow .8s cubic-bezier(.2, .9, .3, 1) both; }
.tfm-bars__col:last-child .tfm-bars__bar { background: linear-gradient(180deg, #34d399, #059669); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 10px 18px -12px #059669; }
.tfm-bars__label { font-size: 12.5px; color: var(--text-muted); }
@keyframes tfm-bar-grow { from { transform: scaleY(0); } }

/* KPI tiles */
.tfm-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin-bottom: 24px; }
.tfm-kpi { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 14px; row-gap: 2px; align-items: center; padding: 16px 18px; border-radius: 16px; background: var(--surface); border: 1px solid var(--tfm-border); text-decoration: none; color: inherit; transition: transform .25s cubic-bezier(.2, 1, .3, 1), box-shadow .25s ease; }
a.tfm-kpi:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -22px rgba(15, 23, 42, .45); }
.tfm-kpi__icon { grid-row: 1 / 3; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 13px; color: #fff; font-size: 17px; background: linear-gradient(150deg, #818cf8, #4f46e5); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .38), 0 10px 18px -10px #4f46e5; }
.tfm-kpi__icon i { filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .2)); }
.tfm-kpi__icon--green { background: linear-gradient(150deg, #34d399, #059669); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .38), 0 10px 18px -10px #059669; }
.tfm-kpi__icon--teal { background: linear-gradient(150deg, #2dd4bf, #0d9488); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .38), 0 10px 18px -10px #0d9488; }
.tfm-kpi__icon--amber { background: linear-gradient(150deg, #fcd34d, #d97706); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .38), 0 10px 18px -10px #d97706; }
.tfm-kpi__icon--violet { background: linear-gradient(150deg, #c084fc, #7c3aed); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .38), 0 10px 18px -10px #7c3aed; }
.tfm-kpi__label { font-size: 13px; color: var(--text-muted); }
.tfm-kpi__value { font-size: 24px; line-height: 1.15; color: var(--tfm-ink); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.tfm-kpi__value small { font-size: 12.5px; font-weight: 500; color: var(--text-muted); letter-spacing: 0; }

/* Rows in panels */
.tfm-teach-row { display: flex; align-items: center; gap: 14px; padding: 13px 20px; border-top: 1px solid var(--line); color: inherit; text-decoration: none; transition: background .2s ease; }
.tfm-teach-row:first-child { border-top: 0; }
a.tfm-teach-row:hover { background: color-mix(in srgb, var(--tfm-indigo) 4%, var(--surface)); }
.tfm-teach-row--top { align-items: flex-start; }
.tfm-teach-row__main { flex: 1 1 auto; min-width: 0; display: grid; gap: 3px; }
.tfm-teach-row__main strong { color: var(--tfm-ink); font-size: 14.5px; }
.tfm-teach-row__main small { color: var(--text-muted); font-size: 12.5px; }
.tfm-teach-row__dot { flex: 0 0 auto; width: 10px; height: 10px; border-radius: 50%; background: var(--tfm-slate); box-shadow: 0 0 0 4px color-mix(in srgb, var(--tfm-slate) 15%, transparent); }
.tfm-teach-row__dot--published { background: #10b981; box-shadow: 0 0 0 4px color-mix(in srgb, #10b981 18%, transparent); }
.tfm-teach-row__dot--review { background: #f59e0b; box-shadow: 0 0 0 4px color-mix(in srgb, #f59e0b 18%, transparent); }
.tfm-teach-quote { display: block; margin-top: 4px; font-family: var(--font-label, Georgia, serif); font-style: italic; color: var(--tfm-ink-2); line-height: 1.5; }
.tfm-teach-empty { display: grid; justify-items: center; gap: 10px; padding: 36px 24px; text-align: center; color: var(--text-muted); }
.tfm-teach-empty > i { font-size: 26px; color: var(--tfm-slate); }
.tfm-teach-empty p { margin: 0; max-width: 420px; line-height: 1.6; }

.tfm-tx-icon { flex: 0 0 auto; display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; color: var(--tfm-ink-2); background: var(--surface-sunken); font-size: 13px; }
.tfm-tx-icon--in { color: #047857; background: color-mix(in srgb, #10b981 14%, var(--surface)); }
.tfm-tx-icon--out { color: #475569; background: color-mix(in srgb, #64748b 12%, var(--surface)); }
.tfm-tx-icon--sm { width: 24px; height: 24px; border-radius: 7px; font-size: 10px; vertical-align: middle; margin-right: 4px; }
.tfm-tx-amount { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tfm-tx-amount.is-in { color: #047857; }
.tfm-tx-amount.is-out { color: var(--tfm-ink-2); }

.tfm-review-state { flex: 0 0 auto; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; font-size: 14px; color: #b45309; background: color-mix(in srgb, #f59e0b 14%, var(--surface)); }
.tfm-review-state--approved { color: #047857; background: color-mix(in srgb, #10b981 14%, var(--surface)); }
.tfm-review-state--changes_requested { color: #be123c; background: color-mix(in srgb, #f43f5e 12%, var(--surface)); }
.tfm-review-state--withdrawn { color: #475569; background: var(--surface-sunken); }

/* Course cards with their path to live */
.tfm-course-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 20px; }
.tfm-course-card { display: flex; flex-direction: column; gap: 16px; padding: 20px; border-radius: 18px; background: var(--surface); border: 1px solid var(--tfm-border); box-shadow: 0 14px 30px -26px rgba(15, 23, 42, .5); }
.tfm-course-card__head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.tfm-course-card__head h2 { margin: 0 0 4px; font-size: 18px; line-height: 1.3; color: var(--tfm-ink); }
.tfm-course-card__head p { margin: 0; font-size: 13px; color: var(--text-muted); }
.tfm-course-card__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); }
.tfm-course-card__foot form { margin: 0; }
.tfm-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin: 0; padding: 0; list-style: none; counter-reset: none; }
.tfm-steps li { position: relative; display: grid; justify-items: center; gap: 6px; font-size: 12.5px; color: var(--text-muted); text-align: center; }
.tfm-steps li::before { content: ""; position: absolute; top: 14px; left: calc(-50% + 16px); right: calc(50% + 16px); height: 2px; background: var(--line); }
.tfm-steps li:first-child::before { display: none; }
.tfm-steps li span { position: relative; z-index: 1; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; font-weight: 700; font-size: 12.5px; background: var(--surface-sunken); color: var(--tfm-slate); border: 1px solid var(--tfm-border); }
.tfm-steps li.is-done { color: #047857; }
.tfm-steps li.is-done::before, .tfm-steps li.is-now::before { background: #10b981; }
.tfm-steps li.is-done span { color: #fff; border-color: transparent; background: linear-gradient(150deg, #34d399, #059669); box-shadow: 0 6px 12px -6px #059669; }
.tfm-steps li.is-now { color: var(--tfm-ink); font-weight: 600; }
.tfm-steps li.is-now span { color: #fff; border-color: transparent; background: linear-gradient(150deg, #818cf8, #4f46e5); box-shadow: 0 0 0 5px color-mix(in srgb, #6366f1 16%, transparent); }
.tfm-todo { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: 13.5px; color: var(--tfm-ink-2); }
.tfm-todo i { color: #d97706; margin-right: 4px; }
.tfm-send { position: relative; }
.tfm-send > summary { list-style: none; cursor: pointer; }
.tfm-send > summary::-webkit-details-marker { display: none; }
.tfm-send[open] > form { position: absolute; z-index: 5; right: 0; bottom: calc(100% + 8px); width: min(360px, 80vw); padding: 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--tfm-border); box-shadow: 0 24px 48px -20px rgba(15, 23, 42, .45); }

/* Meters and stars */
.tfm-meter { --v: 0%; display: inline-block; vertical-align: middle; width: 90px; height: 6px; border-radius: 99px; background: color-mix(in srgb, #6366f1 12%, transparent); overflow: hidden; }
.tfm-meter > span { display: block; height: 100%; width: var(--v, 0%); border-radius: inherit; background: linear-gradient(90deg, #6366f1, #22d3ee); }
.tfm-meter.is-low > span { background: linear-gradient(90deg, #f59e0b, #f97316); }
.tfm-meter--amber > span { background: linear-gradient(90deg, #fbbf24, #f59e0b); }
.tfm-stars { --r: 0; display: inline-block; font-size: 18px; line-height: 1; letter-spacing: 2px; background: linear-gradient(90deg, #f59e0b calc(var(--r, 0) / 5 * 100%), color-mix(in srgb, #94a3b8 45%, transparent) 0); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tfm-stars::before { content: "★★★★★"; }
.tfm-stars--sm { font-size: 13px; letter-spacing: 1px; }
.tfm-score { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 28px; align-items: center; padding: 24px; margin: 0; }
.tfm-score__big { display: grid; justify-items: center; gap: 6px; padding-right: 24px; border-right: 1px solid var(--line); }
.tfm-score__big strong { font-size: 52px; line-height: 1; letter-spacing: -.03em; color: var(--tfm-ink); }
.tfm-score__big small { color: var(--text-muted); }
.tfm-score__dist { display: grid; gap: 8px; }
.tfm-score__row { display: grid; grid-template-columns: 42px 1fr 34px; align-items: center; gap: 10px; font-size: 13px; color: var(--tfm-ink-2); }
.tfm-score__row i { color: #f59e0b; font-size: 11px; }
.tfm-score__row .tfm-meter { width: 100%; height: 8px; }
.tfm-score__row small { text-align: right; color: var(--text-muted); }

/* KYC */
.tfm-kyc-file { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 14px; align-items: center; padding: 14px; border-radius: 14px; border: 1px dashed color-mix(in srgb, var(--tfm-slate) 45%, transparent); background: color-mix(in srgb, var(--surface-sunken) 60%, var(--surface)); cursor: pointer; transition: border-color .2s ease, background .2s ease; }
.tfm-kyc-file:hover { border-color: #6366f1; background: color-mix(in srgb, #6366f1 5%, var(--surface)); }
.tfm-kyc-file__icon { grid-row: 1 / 3; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; color: #fff; background: linear-gradient(150deg, #818cf8, #4f46e5); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 8px 16px -10px #4f46e5; }
.tfm-kyc-file__text { display: grid; gap: 2px; }
.tfm-kyc-file__text small { color: var(--text-muted); font-size: 12px; }
.tfm-kyc-file input[type=file] { grid-column: 2; font-size: 13px; max-width: 100%; }
.tfm-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px 20px; margin: 0; }
.tfm-facts dt { font-size: 12.5px; color: var(--text-muted); }
.tfm-facts dd { margin: 2px 0 0; font-weight: 600; color: var(--tfm-ink); }

.tfm-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; padding: 5px; width: fit-content; max-width: 100%; border-radius: 12px; background: var(--surface-sunken); }
.tfm-tabs__tab { padding: 7px 14px; border-radius: 9px; font-size: 13.5px; font-weight: 600; color: var(--text-muted); text-decoration: none; }
.tfm-tabs__tab:hover { color: var(--tfm-ink); }
.tfm-tabs__tab.is-active { color: var(--tfm-ink); background: var(--surface); box-shadow: 0 4px 12px -8px rgba(15, 23, 42, .4); }
.tfm-checklist { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px 18px; margin: 0; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--tfm-border); }
.tfm-checklist legend { padding: 0 6px; font-family: var(--font-label, Georgia, serif); font-style: italic; color: var(--tfm-ink-2); }

/* Launch readiness */
.tfm-launch { display: grid; grid-template-columns: repeat(auto-fit, minmax(420px, 1fr)); gap: 20px; align-items: start; }
.tfm-launch .panel { margin: 0; }
.tfm-launch__row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 13px 20px; border-top: 1px solid var(--line); color: inherit; text-decoration: none; transition: background .2s ease; }
.tfm-launch__row:first-child { border-top: 0; }
.tfm-launch__row:hover { background: color-mix(in srgb, var(--tfm-indigo) 4%, var(--surface)); }
.tfm-launch__row > i:first-child { font-size: 18px; }
.tfm-launch__row.is-ok > i:first-child { color: #059669; }
.tfm-launch__row.is-warn > i:first-child { color: #d97706; }
.tfm-launch__row.is-fail > i:first-child { color: #e11d48; }
.tfm-launch__row span { display: grid; gap: 2px; min-width: 0; }
.tfm-launch__row strong { color: var(--tfm-ink); font-size: 14.5px; }
.tfm-launch__row small { color: var(--text-muted); font-size: 13px; line-height: 1.5; }
.tfm-launch__go { color: var(--tfm-slate); font-size: 12px; transition: transform .25s ease; }
.tfm-launch__row:hover .tfm-launch__go { transform: translateX(3px); color: var(--tfm-ink); }
.tfm-launch-score { --v: 0; display: grid; justify-items: end; gap: 4px; padding: 14px 20px; border-radius: 16px; background: var(--surface); border: 1px solid var(--tfm-border); }
.tfm-launch-score strong { font-size: 34px; line-height: 1; color: #d97706; font-variant-numeric: tabular-nums; }
.tfm-launch-score.is-ready strong { color: #059669; }
.tfm-launch-score small { color: var(--text-muted); font-size: 12.5px; }

/* Lesson rating */
.tfm-rate { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 14px 24px; margin: 4px 0 24px; padding: 18px 20px; border-radius: 18px; background: linear-gradient(110deg, color-mix(in srgb, #f59e0b 7%, var(--surface)), var(--surface) 65%); border: 1px solid var(--tfm-border); }
.tfm-rate__head { display: flex; align-items: center; gap: 14px; min-width: 0; }
.tfm-rate__head strong { display: block; color: var(--tfm-ink); }
.tfm-rate__head small { color: var(--text-muted); font-size: 13px; }
.tfm-rate__icon { flex: 0 0 auto; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; color: #fff; background: linear-gradient(150deg, #fcd34d, #d97706); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .38), 0 10px 18px -10px #d97706; }
.tfm-rate__stars { display: inline-flex; flex-direction: row-reverse; gap: 4px; margin: 0; padding: 0; border: 0; }
.tfm-rate__stars input { position: absolute; opacity: 0; pointer-events: none; }
.tfm-rate__stars label { cursor: pointer; font-size: 26px; color: color-mix(in srgb, #94a3b8 55%, transparent); transition: transform .2s cubic-bezier(.2, 1.6, .4, 1), color .15s ease; }
.tfm-rate__stars label:hover, .tfm-rate__stars label:hover ~ label, .tfm-rate__stars input:checked ~ label { color: #f59e0b; }
.tfm-rate__stars label:hover { transform: scale(1.2) rotate(-8deg); }
.tfm-rate__stars input:focus-visible + label { outline: 2px solid #6366f1; outline-offset: 3px; border-radius: 4px; }
.tfm-rate__stars input:checked + label i { animation: tfm-star-pop .45s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes tfm-star-pop { 0% { transform: scale(.6); } 100% { transform: none; } }
.tfm-rate__more { grid-column: 1 / -1; display: none; gap: 10px; }
.tfm-rate.is-open .tfm-rate__more, .tfm-rate:has(input[name=rating]:checked) .tfm-rate__more { display: flex; }
.tfm-rate__more .input { flex: 1 1 auto; }
.tfm-rate.is-rated .tfm-rate__icon { background: linear-gradient(150deg, #34d399, #059669); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .38), 0 10px 18px -10px #059669; }

[data-theme="dark"] .tfm-role-chip { color: #c7d2fe; }
[data-theme="dark"] .tfm-role-chip--mentor { color: #99f6e4; }
[data-theme="dark"] .tfm-role-chip--director-of-studies { color: #fde68a; }
[data-theme="dark"] .tfm-tx-amount.is-in, [data-theme="dark"] .tfm-tx-icon--in { color: #6ee7b7; }

@media (max-width: 900px) {
  .tfm-teach-grid { grid-template-columns: 1fr; }
  .tfm-launch { grid-template-columns: 1fr; }
  .tfm-course-cards { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .tfm-teach-head { align-items: flex-start; }
  .tfm-teach-head__actions, .tfm-teach-head__actions .btn { width: 100%; }
  .tfm-teach-head__actions .btn { justify-content: center; }
  .tfm-kpis { grid-template-columns: 1fr 1fr; gap: 10px; }
  .tfm-kpi { grid-template-columns: 1fr; padding: 14px; }
  .tfm-kpi__icon { grid-row: auto; width: 36px; height: 36px; font-size: 14px; margin-bottom: 6px; }
  .tfm-kpi__value { font-size: 20px; }
  .tfm-wallet-card__row { grid-template-columns: 1fr 1fr; }
  .tfm-teach-note { flex-wrap: wrap; }
  .tfm-score { grid-template-columns: 1fr; }
  .tfm-score__big { padding: 0 0 16px; border-right: 0; border-bottom: 1px solid var(--line); }
  .tfm-rate { grid-template-columns: 1fr; }
  .tfm-rate__more { flex-direction: column; }
  .tfm-launch__row { padding: 12px 14px; }
  .tfm-launch-score { justify-items: start; width: 100%; }
  .tfm-send[open] > form { position: static; width: 100%; margin-top: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .tfm-bars__bar, .tfm-rate__stars input:checked + label i { animation: none !important; }
}
.tfm-teach-note > .btn { flex: 0 0 auto; white-space: nowrap; }
.panel__title > i.fa-solid:first-child, .panel__title > i.fa-regular:first-child { margin-right: 8px; color: var(--tfm-slate); }
/* 2.72: the .caps utility follows the same calmer rule. */
.caps { text-transform: none; letter-spacing: -0.003em; font-weight: 600; }

/* ==========================================================================
   2.73 Teach with us, pinned review notes, launch statuses, mentor rating
   ========================================================================== */
.tfm-twu { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 28px; align-items: start; margin-top: 28px; }
.tfm-twu__steps { display: grid; gap: 14px; }
.tfm-twu__step { display: flex; gap: 14px; align-items: flex-start; padding: 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--tfm-border); }
.tfm-twu__step .tfm-kpi__icon { grid-row: auto; flex: 0 0 auto; }
.tfm-twu__step strong { color: var(--tfm-ink); }
.tfm-twu__step p { margin: 4px 0 0; color: var(--text-muted); font-size: 14px; line-height: 1.55; }
.tfm-pins { display: grid; gap: 8px; }
.tfm-pins__row { display: grid; grid-template-columns: minmax(180px, 2fr) minmax(0, 3fr); gap: 8px; }
.tfm-pinned { margin: 8px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: 13.5px; color: var(--tfm-ink-2); }
.tfm-pinned a { font-weight: 600; margin-right: 6px; }
.tfm-launch__pill { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 6px; font-style: normal; font-size: 11.5px; font-weight: 600; vertical-align: 2px; color: #475569; background: var(--surface-sunken); }
.tfm-launch__pill--passed { color: #047857; background: color-mix(in srgb, #10b981 14%, var(--surface)); }
.tfm-launch__pill--ready_for_testing { color: #4338ca; background: color-mix(in srgb, #6366f1 12%, var(--surface)); }
.tfm-launch__pill--in_progress { color: #b45309; background: color-mix(in srgb, #f59e0b 14%, var(--surface)); }
.tfm-launch__pill--blocked { color: #be123c; background: color-mix(in srgb, #f43f5e 12%, var(--surface)); }
.tfm-launch__row.is-passed > i:first-child { color: #059669; }
.tfm-launch__row.is-ready_for_testing > i:first-child { color: #6366f1; }
.tfm-launch__row.is-in_progress > i:first-child, .tfm-launch__row.is-not_started > i:first-child { color: #d97706; }
.tfm-launch__row.is-blocked > i:first-child { color: #e11d48; }
.tfm-launch__set { margin-top: 6px; }
.tfm-launch__set > summary { cursor: pointer; font-size: 12.5px; font-weight: 600; color: var(--tfm-slate); list-style: none; }
.tfm-launch__set > summary::-webkit-details-marker { display: none; }
.tfm-launch__set > summary:hover { color: var(--tfm-ink); }
.tfm-launch__set .select { max-width: 190px; }
.tfm-rate--mentor { grid-template-columns: 1fr; }
.tfm-rate--mentor .tfm-rate__stars { justify-self: start; }
.tfm-rate--mentor .tfm-rate__more .select { max-width: 200px; }
@media (max-width: 900px) { .tfm-twu { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .tfm-pins__row { grid-template-columns: 1fr; } }

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

/* ==========================================================================
   2.74 The educator wallet card. A physical card (ISO proportions 1.586),
   ink-black with a slow aurora, holographic foil, light that follows the
   pointer, a gold chip, an embossed number and the academy mark. It tilts
   in 3D, flips to show the details, and is still for people who ask for
   less motion.
   ========================================================================== */
.tfm-card { --rx: 0deg; --ry: 0deg; --gx: 50%; --gy: 30%; perspective: 1400px; display: grid; gap: 12px; align-content: start; width: 100%; max-width: 470px; }
.tfm-card__inner { position: relative; width: 100%; aspect-ratio: 1.586; transform-style: preserve-3d; transform: rotateX(var(--rx)) rotateY(var(--ry)); transition: transform .6s cubic-bezier(.2, .9, .25, 1); animation: tfm-card-in .9s cubic-bezier(.2, .9, .25, 1) both; }
.tfm-card.is-flipped .tfm-card__inner { transform: rotateX(var(--rx)) rotateY(calc(180deg + var(--ry))); }
@keyframes tfm-card-in { from { opacity: 0; transform: translateY(18px) rotateX(18deg) rotateY(-14deg) scale(.96); } }
.tfm-card__face { position: absolute; inset: 0; overflow: hidden; border-radius: 22px; padding: 22px 24px; color: #f8fafc; -webkit-backface-visibility: hidden; backface-visibility: hidden; background: linear-gradient(145deg, #1e1b4b 0%, #0f172a 45%, #111827 70%, #1c1917 100%); box-shadow: 0 30px 60px -28px rgba(15, 23, 42, .85), 0 12px 24px -16px rgba(79, 70, 229, .45), inset 0 1px 0 rgba(255, 255, 255, .14), inset 0 0 0 1px rgba(255, 255, 255, .06); }
.tfm-card__face--front { display: grid; grid-template-rows: auto 1fr auto; }
.tfm-card__face--back { transform: rotateY(180deg); display: grid; align-content: start; gap: 14px; padding-top: 0; background: linear-gradient(160deg, #111827, #0b1220 60%, #1e1b4b); }
.tfm-card__aurora { position: absolute; inset: -40%; z-index: 0; pointer-events: none; background: radial-gradient(35% 30% at 25% 30%, rgba(249, 115, 22, .45), transparent 70%), radial-gradient(30% 28% at 75% 65%, rgba(99, 102, 241, .5), transparent 70%), radial-gradient(25% 22% at 60% 20%, rgba(34, 211, 238, .28), transparent 70%); filter: blur(18px); animation: tfm-aurora 16s ease-in-out infinite alternate; }
@keyframes tfm-aurora { 0% { transform: translate(-6%, -4%) rotate(0deg); } 100% { transform: translate(6%, 5%) rotate(25deg); } }
.tfm-card__foil { position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: .22; mix-blend-mode: color-dodge; background: conic-gradient(from 210deg at 70% 40%, #f472b6, #facc15, #34d399, #60a5fa, #a78bfa, #f472b6); -webkit-mask: linear-gradient(115deg, transparent 20%, #000 45%, #000 55%, transparent 80%); mask: linear-gradient(115deg, transparent 20%, #000 45%, #000 55%, transparent 80%); -webkit-mask-size: 250% 100%; mask-size: 250% 100%; animation: tfm-foil 7s ease-in-out infinite; }
@keyframes tfm-foil { 0%, 100% { -webkit-mask-position: 100% 0; mask-position: 100% 0; } 50% { -webkit-mask-position: 0 0; mask-position: 0 0; } }
.tfm-card__glare { position: absolute; inset: 0; z-index: 2; pointer-events: none; background: radial-gradient(60% 55% at var(--gx) var(--gy), rgba(255, 255, 255, .22), transparent 60%); }
.tfm-card__top, .tfm-card__mid, .tfm-card__bottom { position: relative; z-index: 3; }
.tfm-card__top { display: flex; justify-content: space-between; align-items: flex-start; }
.tfm-card__brand { display: grid; line-height: 1.05; }
.tfm-card__brand strong { font-size: 21px; font-weight: 800; letter-spacing: -.02em; }
.tfm-card__brand strong::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 3px; border-radius: 50%; background: #fb923c; vertical-align: 2px; box-shadow: 0 0 10px #fb923c; }
.tfm-card__brand em { font-family: var(--font-label, Georgia, serif); font-style: italic; font-size: 13.5px; color: rgba(248, 250, 252, .72); }
.tfm-card__nfc { transform: rotate(90deg); font-size: 20px; color: rgba(248, 250, 252, .75); }
.tfm-card__mid { align-self: center; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 16px; align-items: center; }
.tfm-card__chip { grid-row: 1 / 3; position: relative; width: 48px; height: 36px; border-radius: 8px; background: linear-gradient(135deg, #fde68a 0%, #f59e0b 35%, #fcd34d 55%, #b45309 100%); box-shadow: inset 0 1px 1px rgba(255, 255, 255, .6), inset 0 -1px 2px rgba(120, 53, 15, .5), 0 2px 6px rgba(0, 0, 0, .35); overflow: hidden; }
.tfm-card__chip i { position: absolute; left: 0; right: 0; height: 1px; background: rgba(120, 53, 15, .55); }
.tfm-card__chip i:nth-child(1) { top: 33%; }
.tfm-card__chip i:nth-child(2) { top: 66%; }
.tfm-card__chip i:nth-child(3) { top: 0; bottom: 0; left: 50%; right: auto; width: 1px; height: auto; }
.tfm-card__label { font-size: 12.5px; color: rgba(248, 250, 252, .66); }
.tfm-card__amount { font-size: clamp(28px, 4.2vw, 38px); line-height: 1.05; letter-spacing: -.02em; font-variant-numeric: tabular-nums; text-shadow: 0 2px 12px rgba(0, 0, 0, .35); }
.tfm-card__bottom { display: grid; grid-template-columns: 1fr auto auto; grid-template-areas: "num num mark" "holder since mark"; column-gap: 18px; row-gap: 8px; align-items: end; }
.tfm-card__number { grid-area: num; font-family: var(--font-code, ui-monospace, monospace); font-size: clamp(14px, 2vw, 17px); letter-spacing: .14em; color: rgba(248, 250, 252, .9); text-shadow: 0 1px 0 rgba(0, 0, 0, .6), 0 -1px 0 rgba(255, 255, 255, .12); }
.tfm-card__holder, .tfm-card__since { display: grid; gap: 2px; font-size: 12.5px; font-weight: 700; letter-spacing: .06em; color: rgba(248, 250, 252, .92); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tfm-card__holder { grid-area: holder; }
.tfm-card__since { grid-area: since; }
.tfm-card__holder small, .tfm-card__since small { font-size: 9.5px; font-weight: 500; letter-spacing: .04em; color: rgba(248, 250, 252, .55); }
.tfm-card__mark { grid-area: mark; position: relative; width: 46px; height: 46px; border-radius: 50%; background: conic-gradient(from 0deg, #fcd34d, #f97316, #fde68a, #ea580c, #fcd34d); box-shadow: inset 0 0 0 3px rgba(17, 24, 39, .55), 0 4px 14px -4px rgba(249, 115, 22, .7); animation: tfm-mark-spin 12s linear infinite; }
.tfm-card__mark i { display: none; }
.tfm-card__mark::after { content: "R"; position: absolute; inset: 6px; display: grid; place-items: center; border-radius: 50%; background: #111827; color: #fdba74; font-family: var(--font-label, Georgia, serif); font-style: italic; font-weight: 600; font-size: 18px; animation: tfm-mark-spin 12s linear infinite reverse; }
@keyframes tfm-mark-spin { to { transform: rotate(360deg); } }
.tfm-card__stripe { display: block; height: 46px; margin: 22px -24px 4px; background: linear-gradient(90deg, #020617, #1f2937 40%, #020617); }
.tfm-card__rows { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 18px; margin: 0; }
.tfm-card__rows dt { font-size: 12px; color: rgba(248, 250, 252, .6); }
.tfm-card__rows dd { margin: 2px 0 0; font-size: 17px; font-weight: 700; font-variant-numeric: tabular-nums; }
.tfm-card__note { margin: 0; font-size: 12.5px; color: rgba(248, 250, 252, .65); }
.tfm-card__actions { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.tfm-card__flip, .tfm-card__open { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 10px; font-size: 13.5px; font-weight: 600; color: var(--tfm-ink); background: var(--surface); border: 1px solid var(--tfm-border); text-decoration: none; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease; }
.tfm-card__flip:hover, .tfm-card__open:hover { transform: translateY(-1px); box-shadow: 0 10px 20px -14px rgba(15, 23, 42, .5); }
.tfm-card__flip i { transition: transform .5s ease; }
.tfm-card.is-flipped .tfm-card__flip i { transform: rotate(180deg); }
.tfm-card__open i { transition: transform .25s ease; }
.tfm-card__open:hover i { transform: translateX(3px); }
.tfm-card-facts { display: flex; flex-wrap: wrap; gap: 8px; }
.tfm-card-facts span { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 9px; font-size: 12.5px; color: var(--tfm-ink-2); background: var(--surface); border: 1px solid var(--tfm-border); }
.tfm-card-facts i { color: var(--tfm-slate); }
.tfm-teach-grid > .tfm-card, .tfm-teach-grid > .stack { justify-self: center; width: 100%; }
@media (max-width: 600px) {
  .tfm-card__face { padding: 16px 18px; border-radius: 18px; }
  .tfm-card__chip { width: 40px; height: 30px; }
  .tfm-card__mark { width: 38px; height: 38px; }
  .tfm-card__stripe { margin: 16px -18px 2px; height: 38px; }
  .tfm-card__rows dd { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  .tfm-card__inner, .tfm-card__aurora, .tfm-card__foil, .tfm-card__mark, .tfm-card__mark::after { animation: none !important; }
  .tfm-card__inner { transition: none; }
}
/* The faces swap at the half-turn: layered effects (blur, blend) defeat backface-visibility in some browsers. */
.tfm-card__face--front { visibility: visible; transition: visibility 0s linear .28s; }
.tfm-card__face--back { visibility: hidden; transition: visibility 0s linear .28s; }
.tfm-card.is-flipped .tfm-card__face--front { visibility: hidden; }
.tfm-card.is-flipped .tfm-card__face--back { visibility: visible; }
.tfm-card__face--back { -webkit-backface-visibility: visible; backface-visibility: visible; }

/* ==========================================================================
   2.75 Currency switcher: a quiet pill beside the theme switch; a panel
   with today's rates, a suggestion from the browser's region, search,
   and converted amounts marked "≈" with the dollar figure on hover.
   ========================================================================== */
.fx-cur { position: relative; }
.fx-cur__btn { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--tfm-border); background: var(--surface); color: var(--tfm-ink); font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; cursor: pointer; transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease; }
.fx-cur__btn:hover { border-color: color-mix(in srgb, #6366f1 35%, var(--tfm-border)); box-shadow: 0 8px 18px -12px rgba(79, 70, 229, .5); transform: translateY(-1px); }
.fx-cur__btn > .fa-coins { color: #d97706; filter: drop-shadow(0 1px 1px rgba(180, 83, 9, .35)); }
.fx-cur__caret { font-size: 10px; color: var(--tfm-slate); transition: transform .25s ease; }
.fx-cur.is-open .fx-cur__caret { transform: rotate(180deg); }
.fx-cur.is-converted .fx-cur__btn { border-color: color-mix(in srgb, #10b981 40%, var(--tfm-border)); background: color-mix(in srgb, #10b981 7%, var(--surface)); }
.fx-cur__panel { position: absolute; z-index: 80; top: calc(100% + 10px); right: 0; width: min(360px, calc(100vw - 32px)); padding: 14px; border-radius: 18px; background: var(--surface); border: 1px solid var(--tfm-border); box-shadow: 0 30px 60px -24px rgba(15, 23, 42, .45); animation: fx-cur-in .22s cubic-bezier(.2, .9, .3, 1); }
@keyframes fx-cur-in { from { opacity: 0; transform: translateY(-6px) scale(.98); } }
.fx-cur__head strong { display: block; font-family: var(--font-label, Georgia, serif); font-style: italic; font-weight: 500; font-size: 17px; color: var(--tfm-ink); }
.fx-cur__head small { display: block; margin-top: 4px; font-size: 12.5px; line-height: 1.5; color: var(--text-muted); }
.fx-cur__search { display: flex; align-items: center; gap: 8px; margin: 12px 0 8px; padding: 0 12px; height: 38px; border-radius: 10px; background: var(--surface-sunken); color: var(--tfm-slate); }
.fx-cur__search input { flex: 1 1 auto; min-width: 0; border: 0; background: transparent; outline: 0; font: inherit; font-size: 14px; color: var(--tfm-ink); }
.fx-cur__guess { display: flex; align-items: center; gap: 8px; width: 100%; margin-bottom: 8px; padding: 9px 12px; border-radius: 10px; border: 1px dashed color-mix(in srgb, #6366f1 40%, transparent); background: color-mix(in srgb, #6366f1 6%, var(--surface)); color: #4338ca; font-size: 13.5px; font-weight: 600; cursor: pointer; text-align: left; }
.fx-cur__guess:hover { background: color-mix(in srgb, #6366f1 12%, var(--surface)); }
.fx-cur__list { max-height: 300px; overflow-y: auto; margin: 0; padding: 0; list-style: none; }
.fx-cur__item { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; cursor: pointer; transition: background .15s ease; }
.fx-cur__item:hover, .fx-cur__item:focus-visible { background: var(--surface-sunken); outline: 0; }
.fx-cur__item.is-on { background: color-mix(in srgb, #10b981 10%, var(--surface)); }
.fx-cur__code { font-weight: 800; font-size: 13px; color: var(--tfm-ink); font-variant-numeric: tabular-nums; }
.fx-cur__name { font-size: 13.5px; color: var(--tfm-ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fx-cur__rate { font-size: 11.5px; color: var(--text-muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.fx-cur__loading { padding: 14px 10px; font-size: 13px; color: var(--text-muted); }
.fx-cur__foot { margin: 10px 2px 0; font-size: 11.5px; color: var(--text-muted); }
.fx-amt { border-bottom: 1px dotted color-mix(in srgb, #10b981 60%, transparent); cursor: help; white-space: nowrap; }
@media (max-width: 600px) {
  .fx-cur__btn { height: 34px; padding: 0 10px; }
  .fx-cur__btn > .fx-cur__caret { display: none; }
  .fx-cur__panel { position: fixed; top: 64px; left: 16px; right: 16px; width: auto; }
}

/* 2.75 Demo accounts on the login page (outside production only). */
.tfm-demo { margin-top: var(--space-4); padding: 14px; border-radius: 16px; background: var(--surface-sunken); border: 1px dashed color-mix(in srgb, #f59e0b 45%, transparent); }
.tfm-demo__head small { display: block; margin-top: 4px; font-size: 12.5px; line-height: 1.5; color: var(--text-muted); }
.tfm-demo__head code { font-size: 12px; padding: 1px 5px; border-radius: 5px; background: var(--surface); }
.tfm-demo__list { display: grid; gap: 6px; margin: 12px 0 0; padding: 0; list-style: none; }
.tfm-demo__item { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border-radius: 12px; border: 1px solid transparent; background: var(--surface); color: inherit; text-align: left; cursor: pointer; transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease; }
.tfm-demo__item:hover { border-color: var(--tfm-border); transform: translateX(3px); box-shadow: 0 8px 18px -14px rgba(15, 23, 42, .45); }
.tfm-demo__item.is-on { border-color: color-mix(in srgb, #10b981 45%, transparent); background: color-mix(in srgb, #10b981 6%, var(--surface)); }
.tfm-demo__avatar { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; font-size: 12px; font-weight: 800; color: #fff; background: linear-gradient(150deg, #818cf8, #4f46e5); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35); }
.tfm-demo__who { display: grid; min-width: 0; }
.tfm-demo__who strong { font-size: 13.5px; color: var(--tfm-ink); }
.tfm-demo__who small { font-size: 12px; color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tfm-demo__role { font-size: 11.5px; font-weight: 700; padding: 2px 8px; border-radius: 6px; color: #4338ca; background: color-mix(in srgb, #6366f1 12%, var(--surface)); }
.fx-price-converted { font-variant-numeric: tabular-nums; letter-spacing: -.02em; cursor: help; }
.fx-price-converted sup { font-size: .32em; font-weight: 700; letter-spacing: 0; margin-right: 4px; vertical-align: super; }
.fx-price-converted { font-size: .7em; white-space: nowrap; }
.fx-price-converted sup { white-space: nowrap; font-size: .38em; }
.fx-price-converted { font-size: clamp(28px, 2.6vw, 38px) !important; line-height: 1.1; }
.fx-price-converted sup { font-size: 12px; font-weight: 800; vertical-align: 14px; }

/* ==========================================================================
   2.77 Floating dock: back to top (with a reading-progress ring) and the
   academy assistant (search the academy, then a person one tap away).
   ========================================================================== */
.fx-dock { position: fixed; right: 22px; bottom: 22px; z-index: 70; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; pointer-events: none; }
.fx-dock > * { pointer-events: auto; }

/* Back to top */
.fx-top { position: relative; display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; border: 0; cursor: pointer; color: var(--tfm-ink); background: color-mix(in srgb, var(--surface) 82%, transparent); -webkit-backdrop-filter: blur(12px) saturate(1.4); backdrop-filter: blur(12px) saturate(1.4); box-shadow: 0 14px 30px -14px rgba(15, 23, 42, .45), inset 0 0 0 1px var(--tfm-border); opacity: 0; transform: translateY(18px) scale(.6); pointer-events: none; transition: opacity .3s ease, transform .45s cubic-bezier(.2, 1.4, .4, 1), box-shadow .25s ease; }
.fx-top.is-shown { opacity: 1; transform: none; pointer-events: auto; }
.fx-top:hover { box-shadow: 0 18px 36px -14px rgba(234, 88, 12, .5), inset 0 0 0 1px color-mix(in srgb, #f97316 40%, var(--tfm-border)); }
.fx-top > i { position: relative; z-index: 1; font-size: 16px; transition: transform .3s ease; }
.fx-top:hover > i { animation: fx-top-bob .9s ease-in-out infinite; color: #ea580c; }
@keyframes fx-top-bob { 50% { transform: translateY(-4px); } }
.fx-top.is-launch > i { animation: fx-top-launch .6s cubic-bezier(.5, 0, .3, 1); }
@keyframes fx-top-launch { 40% { transform: translateY(-22px); opacity: 0; } 41% { transform: translateY(16px); opacity: 0; } 100% { transform: none; opacity: 1; } }
.fx-top__ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.fx-top__track { fill: none; stroke: color-mix(in srgb, var(--tfm-slate) 22%, transparent); stroke-width: 3; }
.fx-top__fill { fill: none; stroke: #f97316; stroke-width: 3; stroke-linecap: round; transition: stroke-dashoffset .15s linear; }

/* Assistant */
.fx-assist { position: relative; display: flex; flex-direction: column; align-items: flex-end; }
.fx-assist__fab { position: relative; display: grid; place-items: center; width: 60px; height: 60px; border-radius: 20px; border: 0; cursor: pointer; color: #fff; font-size: 24px; background: linear-gradient(150deg, #818cf8 0%, #6366f1 45%, #7c3aed 100%); box-shadow: 0 18px 34px -14px rgba(79, 70, 229, .8), inset 0 1px 0 rgba(255, 255, 255, .35); transition: transform .3s cubic-bezier(.2, 1.4, .4, 1), border-radius .3s ease; animation: fx-assist-in .7s .4s cubic-bezier(.2, 1.4, .4, 1) both; }
@keyframes fx-assist-in { from { opacity: 0; transform: translateY(24px) scale(.5) rotate(-20deg); } }
.fx-assist__fab:hover { transform: translateY(-3px) rotate(-4deg); }
.fx-assist.is-open .fx-assist__fab { border-radius: 50%; transform: rotate(90deg); }
.fx-assist__fab i { position: absolute; transition: opacity .25s ease, transform .35s cubic-bezier(.2, 1.4, .4, 1); filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .25)); }
.fx-assist__icon-close { opacity: 0; transform: rotate(-90deg) scale(.4); }
.fx-assist.is-open .fx-assist__icon-open { opacity: 0; transform: scale(.4); }
.fx-assist.is-open .fx-assist__icon-close { opacity: 1; transform: rotate(-90deg); }
.fx-assist__pulse { position: absolute; inset: 0; border-radius: inherit; box-shadow: 0 0 0 0 rgba(99, 102, 241, .55); animation: fx-assist-pulse 2.8s ease-out infinite; }
@keyframes fx-assist-pulse { 0% { box-shadow: 0 0 0 0 rgba(99, 102, 241, .5); } 70%, 100% { box-shadow: 0 0 0 16px rgba(99, 102, 241, 0); } }
.fx-assist.is-open .fx-assist__pulse { display: none; }
.fx-assist__hint { position: absolute; right: 72px; bottom: 14px; padding: 9px 14px; border-radius: 14px 14px 4px 14px; white-space: nowrap; font-size: 13.5px; font-weight: 600; color: var(--tfm-ink); background: var(--surface); border: 1px solid var(--tfm-border); box-shadow: 0 14px 28px -16px rgba(15, 23, 42, .5); cursor: pointer; animation: fx-hint-in .5s cubic-bezier(.2, 1.4, .4, 1); }
.fx-assist__hint i { color: #f59e0b; margin-left: 4px; }
@keyframes fx-hint-in { from { opacity: 0; transform: translateX(10px) scale(.9); } }

.fx-assist__panel { position: absolute; right: 0; bottom: 76px; width: min(380px, calc(100vw - 32px)); max-height: min(620px, calc(100vh - 120px)); display: flex; flex-direction: column; overflow: hidden; border-radius: 24px; background: var(--surface); border: 1px solid var(--tfm-border); box-shadow: 0 40px 80px -30px rgba(15, 23, 42, .55); transform-origin: bottom right; opacity: 0; transform: translateY(12px) scale(.92); transition: opacity .22s ease, transform .3s cubic-bezier(.2, 1.2, .4, 1); }
.fx-assist.is-open .fx-assist__panel { opacity: 1; transform: none; }
.fx-assist__head { display: flex; align-items: center; gap: 12px; padding: 16px 16px 14px; color: #fff; background: radial-gradient(120% 140% at 100% 0%, rgba(251, 146, 60, .35), transparent 55%), linear-gradient(140deg, #4f46e5, #312e81 70%, #1e1b4b); }
.fx-assist__head > div { flex: 1 1 auto; min-width: 0; }
.fx-assist__head strong { display: block; font-size: 15.5px; }
.fx-assist__head small { display: block; font-size: 12px; color: rgba(255, 255, 255, .78); }
.fx-assist__avatar { position: relative; flex: 0 0 auto; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 14px; font-size: 18px; background: rgba(255, 255, 255, .16); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3); }
.fx-assist__online { position: absolute; right: -2px; bottom: -2px; width: 12px; height: 12px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 2px #3730a3; animation: fx-online 2s ease-in-out infinite; }
@keyframes fx-online { 50% { box-shadow: 0 0 0 2px #3730a3, 0 0 0 6px rgba(52, 211, 153, .25); } }
.fx-assist__x { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; border: 0; color: #fff; background: rgba(255, 255, 255, .14); cursor: pointer; }
.fx-assist__x:hover { background: rgba(255, 255, 255, .26); }
.fx-assist__body { flex: 1 1 auto; overflow-y: auto; padding: 16px; display: grid; gap: 10px; align-content: start; background: linear-gradient(180deg, color-mix(in srgb, #6366f1 4%, var(--surface)), var(--surface) 40%); }
.fx-assist__msg { max-width: 92%; padding: 10px 13px; border-radius: 16px; font-size: 14px; line-height: 1.5; animation: fx-msg-in .3s cubic-bezier(.2, 1.2, .4, 1); }
.fx-assist__msg p { margin: 0; }
.fx-assist__msg p + p, .fx-assist__msg p + ul { margin-top: 8px; }
@keyframes fx-msg-in { from { opacity: 0; transform: translateY(6px); } }
.fx-assist__msg--bot { justify-self: start; border-bottom-left-radius: 5px; color: var(--tfm-ink); background: var(--surface-sunken); }
.fx-assist__msg--me { justify-self: end; border-bottom-right-radius: 5px; color: #fff; background: linear-gradient(140deg, #6366f1, #4f46e5); }
.fx-assist__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.fx-assist__chips button, .fx-assist__dym button { padding: 6px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 600; color: #4338ca; background: color-mix(in srgb, #6366f1 9%, var(--surface)); border: 1px solid color-mix(in srgb, #6366f1 22%, transparent); cursor: pointer; transition: transform .2s ease, background .2s ease; }
.fx-assist__chips button:hover, .fx-assist__dym button:hover { transform: translateY(-1px); background: color-mix(in srgb, #6366f1 16%, var(--surface)); }
.fx-assist__typing { display: inline-flex; gap: 4px; padding: 4px 2px; }
.fx-assist__typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--tfm-slate); animation: fx-typing 1s ease-in-out infinite; }
.fx-assist__typing i:nth-child(2) { animation-delay: .15s; }
.fx-assist__typing i:nth-child(3) { animation-delay: .3s; }
@keyframes fx-typing { 0%, 80%, 100% { transform: translateY(0); opacity: .45; } 40% { transform: translateY(-5px); opacity: 1; } }
.fx-assist__results { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.fx-assist__results a { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; background: var(--surface); border: 1px solid var(--tfm-border); color: inherit; text-decoration: none; transition: transform .2s ease, border-color .2s ease; }
.fx-assist__results a:hover { transform: translateX(3px); border-color: color-mix(in srgb, #6366f1 35%, var(--tfm-border)); }
.fx-assist__ric { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; color: #fff; font-size: 13px; background: linear-gradient(150deg, #818cf8, #4f46e5); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35); }
.fx-assist__rtext { display: grid; min-width: 0; }
.fx-assist__rtext strong { font-size: 13.5px; color: var(--tfm-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fx-assist__rtext small { font-size: 12px; color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fx-assist__rgo { font-size: 11px; color: var(--tfm-slate); }
.fx-assist__ask { display: flex; gap: 8px; padding: 12px 14px; border-top: 1px solid var(--line); }
.fx-assist__ask input { flex: 1 1 auto; min-width: 0; height: 42px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--tfm-border); background: var(--surface-sunken); color: var(--tfm-ink); font: inherit; font-size: 14px; outline: 0; }
.fx-assist__ask input:focus { border-color: #6366f1; box-shadow: 0 0 0 3px color-mix(in srgb, #6366f1 18%, transparent); }
.fx-assist__ask button { flex: 0 0 auto; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; border: 0; color: #fff; cursor: pointer; background: linear-gradient(150deg, #fb923c, #ea580c); box-shadow: 0 8px 16px -10px #ea580c; transition: transform .2s ease; }
.fx-assist__ask button:hover { transform: translateY(-1px) rotate(-8deg); }
.fx-assist__people { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 14px 10px; }
.fx-assist__people a { flex: 1 1 auto; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 8px 10px; border-radius: 10px; font-size: 12.5px; font-weight: 600; color: var(--tfm-ink-2); background: var(--surface-sunken); text-decoration: none; transition: background .2s ease, color .2s ease; }
.fx-assist__people a:hover { color: var(--tfm-ink); background: color-mix(in srgb, #6366f1 9%, var(--surface)); }
.fx-assist__people a.is-wa { color: #fff; background: linear-gradient(150deg, #34d399, #059669); }
.fx-assist__people a.is-wa:hover { color: #fff; filter: brightness(1.05); }
.fx-assist__foot { margin: 0; padding: 0 14px 12px; font-size: 11px; color: var(--text-muted); text-align: center; }

@media (max-width: 600px) {
  .fx-dock { right: 14px; bottom: 14px; }
  .fx-assist__fab { width: 54px; height: 54px; font-size: 21px; border-radius: 18px; }
  .fx-top { width: 44px; height: 44px; }
  .fx-assist__panel { position: fixed; right: 12px; left: 12px; bottom: 80px; width: auto; max-height: calc(100vh - 110px); }
  .fx-assist__hint { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .fx-assist__fab, .fx-assist__pulse, .fx-assist__online, .fx-assist__msg, .fx-assist__typing i, .fx-top > i, .fx-assist__hint { animation: none !important; }
}
@media print { .fx-dock { display: none; } }
.fx-assist__q { font-weight: 700; color: var(--tfm-ink); }
.fx-assist__q i { color: #6366f1; margin-right: 4px; }
.fx-assist__more { font-size: 12.5px; font-weight: 600; color: var(--text-muted); }
.fx-assist__rule { border: 0; border-top: 1px solid var(--line); margin: 10px 0; }
/* 2.77: phone header fits: the currency switch shrinks to its icon, the gaps tighten. */
@media (max-width: 600px) {
  .header-actions { gap: 4px; }
  .fx-cur__btn { width: 36px; padding: 0; justify-content: center; }
  .fx-cur__btn > [data-currency-code], .fx-cur__btn > .fx-cur__caret { display: none; }
  .fx-cur.is-converted .fx-cur__btn::after { content: ""; position: absolute; top: 4px; right: 4px; width: 7px; height: 7px; border-radius: 50%; background: #10b981; }
  .fx-cur__btn { position: relative; }
}
@media (max-width: 380px) { .header-donate { display: none; } }
@media (max-width: 430px) {
  .site-header .container { gap: 8px; }
  .site-header .wordmark { font-size: 1.05rem; }
  .site-header .wordmark__suffix { font-size: 9.5px; letter-spacing: .1em; }
  .fx-theme-switch__track { width: 50px; padding: 0 6px; font-size: 11px; }
  .header-actions .btn--icon { width: 36px; }
}
@media (max-width: 430px) { [data-theme="dark"] .fx-theme-switch__knob { transform: translateX(18px); } }

/* 2.78: carousel controls fit a phone: shorter dots, smaller arrows. */
@media (max-width: 600px) {
  .fx-carousel__dots { gap: 6px; }
  .fx-carousel__dots button { width: 22px; }
  .fx-carousel__arrows { gap: 6px; }
  .fx-carousel__arrows button { width: 38px; height: 38px; }
}

/* ==========================================================================
   2.80 Public section labels, large. The original italic (Fraunces), now
   set big enough to lead a section: a display line in its own right, with
   longer rules. Public pages only (.site-front); the portals keep 4.20.
   ========================================================================== */
.site-front .eyebrow,
.site-front .tfm-scene__eyebrow,
.site-front .fx-slide__eyebrow,
.site-front .fx-curr__eyebrow {
  gap: 16px;
  font-size: clamp(22px, 1.6vw + 11px, 36px);
  line-height: 1.1;
  font-weight: 500;
  letter-spacing: -.01em;
}
.site-front .eyebrow::before,
.site-front .eyebrow::after,
.site-front .tfm-scene__eyebrow::before,
.site-front .tfm-scene__eyebrow::after,
.site-front .fx-curr__eyebrow::before,
.site-front .fx-slide__eyebrow::before { width: clamp(32px, 3vw, 56px); height: 3px; }
.site-front .eyebrow > i, .site-front .tfm-scene__eyebrow > i { font-size: .6em; }
.site-front .section-head .eyebrow + h1,
.site-front .section-head .eyebrow + h2 { margin-top: 6px; }
@media (max-width: 600px) {
  .site-front .eyebrow, .site-front .tfm-scene__eyebrow, .site-front .fx-slide__eyebrow, .site-front .fx-curr__eyebrow { gap: 10px; }
}

.site-front .fx-slide__count { font-family: var(--font-display); font-style: normal; font-size: 13px; line-height: 1; padding: 4px 8px; vertical-align: middle; }

/* ==========================================================================
   2.81 Fixes and a quiet colour for the large labels.
   ========================================================================== */
/* The HTML rule, made firm: anything marked hidden is hidden, whatever its
   own display. The assistant's closed panel was display:flex at opacity 0,
   so it covered the bottom right of every page: it swallowed the back to
   top button and sent stray clicks to its invisible links. */
[hidden] { display: none !important; }
.fx-assist:not(.is-open) .fx-assist__panel { visibility: hidden; pointer-events: none; }
.fx-dock:has(.fx-assist.is-open) .fx-top { opacity: 0; transform: translateY(12px) scale(.7); pointer-events: none; }

/* Large public labels: a soft slate-to-terracotta ink that warms the line
   without competing with the title under it. */
.site-front .eyebrow,
.site-front .fx-curr__eyebrow {
  background-image: linear-gradient(100deg, #334155 10%, #9a3412 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.site-front .hero .eyebrow,
.site-front .fx-banner .eyebrow,
.site-front .tfm-scene__eyebrow,
.site-front .fx-slide__eyebrow {
  background-image: linear-gradient(100deg, #ffffff 15%, #fdba74 95%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
[data-theme="dark"] .site-front .eyebrow,
[data-theme="dark"] .site-front .fx-curr__eyebrow { background-image: linear-gradient(100deg, #e2e8f0 10%, #fdba74 90%); }
.site-front .eyebrow > i,
.site-front .tfm-scene__eyebrow > i,
.site-front .fx-slide__count { -webkit-text-fill-color: currentColor; }
.site-front .fx-slide__count { color: #fff; }

/* ==========================================================================
   2.82 Parallax window: a call-to-action band with a photo that seems
   fixed behind it, opening out and settling as it scrolls into view.
   ========================================================================== */
.fx-window { --wp: .5; --wr: 0; position: relative; padding: clamp(28px, 4vw, 56px) clamp(0px, 2vw, 24px); }
.fx-window__frame {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  min-height: clamp(380px, 52vh, 560px);
  display: grid;
  align-items: center;
  border-radius: calc((1 - var(--wr)) * 40px + 18px);
  clip-path: inset(calc((1 - var(--wr)) * 7%) calc((1 - var(--wr)) * 9%) round calc((1 - var(--wr)) * 40px + 18px));
  box-shadow: 0 40px 80px -40px rgba(15, 23, 42, .6);
  will-change: clip-path;
}
.fx-window__art { position: absolute; inset: -32% 0; z-index: -3; background-size: cover; background-position: center; transform: scale(1.16); will-change: transform; }
.fx-window__shade { position: absolute; inset: 0; z-index: -2; background:
  radial-gradient(80% 90% at 15% 50%, rgba(11, 18, 32, .92), rgba(11, 18, 32, .55) 55%, rgba(11, 18, 32, .25) 100%),
  linear-gradient(180deg, rgba(11, 18, 32, .35), rgba(11, 18, 32, .65)); }
.fx-window__sweep { position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(105deg, transparent 35%, rgba(251, 146, 60, .22) 50%, transparent 65%); background-size: 260% 100%; background-position: 130% 0; opacity: 0; }
.fx-window.is-in .fx-window__sweep { animation: fx-window-sweep 2.4s .3s cubic-bezier(.3, .6, .2, 1) both; }
@keyframes fx-window-sweep { 0% { opacity: 0; background-position: 130% 0; } 20% { opacity: 1; } 100% { opacity: 0; background-position: -60% 0; } }
.fx-window__inner { position: relative; padding-block: clamp(48px, 7vw, 96px); }
.fx-window__copy { max-width: 62ch; display: grid; gap: 16px; color: #fff; }
.fx-window__title { margin: 0; color: #fff; font-size: clamp(30px, 3.6vw, 52px); line-height: 1.08; letter-spacing: -.02em; text-shadow: 0 2px 24px rgba(0, 0, 0, .35); }
.fx-window__lede { margin: 0; color: rgba(255, 255, 255, .84); font-size: clamp(16px, 1.3vw, 19px); line-height: 1.65; }
.fx-window__actions { margin-top: 8px; }
.fx-window__actions .btn--ghost, .fx-window__actions .btn--secondary, .fx-window__actions .btn--quiet { color: #fff; border-color: rgba(255, 255, 255, .45); background: rgba(255, 255, 255, .06); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.fx-window__actions .btn--ghost:hover, .fx-window__actions .btn--secondary:hover, .fx-window__actions .btn--quiet:hover { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .7); }
.fx-window .eyebrow { background-image: linear-gradient(100deg, #ffffff 15%, #fdba74 95%); -webkit-background-clip: text; background-clip: text; color: transparent; --label-rule: #fdba74; }
/* The copy rises in, one line after another. */
.fx-window__item { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .9s cubic-bezier(.2, .9, .25, 1); transition-delay: calc(var(--d, 0) * 120ms + 150ms); }
.fx-window.is-in .fx-window__item { opacity: 1; transform: none; }
@media (max-width: 600px) {
  .fx-window { padding-inline: 0; }
  .fx-window__frame { min-height: 420px; }
}
@media (prefers-reduced-motion: reduce) {
  .fx-window__frame { clip-path: none; border-radius: 18px; }
  .fx-window__art { transform: none !important; inset: 0; }
  .fx-window__item { opacity: 1; transform: none; transition: none; }
  .fx-window.is-in .fx-window__sweep { animation: none; }
}
/* The buttons line up with the copy, not the centre of the band. */
.fx-window__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.fx-window__actions > *, .fx-window__actions .row { justify-content: flex-start !important; margin-inline: 0 !important; }


/* ==========================================================================
   2.83 Auto zoom on laptop screens (partials/auto-zoom sets --zoom and
   zoom on <html>). Zoom also shrinks viewport-height units, so the parts
   that must fill the screen are divided by the zoom to stay full height.
   ========================================================================== */
body,
.app,
.auth,
.tfm-console,
.player { min-height: calc(100dvh / var(--zoom, 1)); }
.app-sidebar,
.player__aside { height: calc(100dvh / var(--zoom, 1)); }
.fx-app .player__aside { height: auto; max-height: calc(100dvh / var(--zoom, 1) - 110px); }
.fx-reader:fullscreen { min-height: calc(100vh / var(--zoom, 1)); }
.tfm-read { min-height: calc(100vh / var(--zoom, 1) - 150px); }
.tfm-read__rail { max-height: calc(100vh / var(--zoom, 1) - 214px); }
.tfm-read__figure img, .tfm-read__player video { max-height: calc(100vh / var(--zoom, 1) - 260px); }

/* 2.84: a close button on the website search bar. */
.site-search__close { flex: 0 0 auto; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--tfm-border); background: var(--surface); color: var(--tfm-slate); cursor: pointer; transition: color .2s ease, background .2s ease, transform .25s cubic-bezier(.2, 1.4, .4, 1); }
.site-search__close:hover { color: var(--tfm-ink); background: var(--surface-sunken); transform: rotate(90deg); }

/* ==========================================================================
   2.84 The academy tooltip (js/tooltip.js) in place of the browser's grey
   title box: warm cream, soft ink, a gentle shadow and a small pointer,
   arriving after a short pause with a soft rise.
   ========================================================================== */
.fx-tip {
  position: fixed;
  z-index: 200;
  max-width: min(280px, calc(100vw - 16px));
  padding: 8px 12px;
  border-radius: 11px;
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: 0;
  text-transform: none;
  color: #44342a;
  background: linear-gradient(180deg, #fffaf3, #fff4e6);
  border: 1px solid #f3dcc2;
  box-shadow: 0 12px 28px -14px rgba(124, 45, 18, .35), 0 2px 6px -2px rgba(124, 45, 18, .12);
  pointer-events: none;
  opacity: 0;
  transform: translateY(4px) scale(.98);
  transition: opacity .16s ease, transform .2s cubic-bezier(.2, .9, .3, 1);
  white-space: normal;
}
.fx-tip.is-below { transform: translateY(-4px) scale(.98); }
.fx-tip.is-on { opacity: 1; transform: none; }
.fx-tip__arrow { position: absolute; bottom: -6px; width: 10px; height: 10px; margin-left: -5px; background: #fff4e6; border-right: 1px solid #f3dcc2; border-bottom: 1px solid #f3dcc2; transform: rotate(45deg); border-bottom-right-radius: 2px; }
.fx-tip.is-below .fx-tip__arrow { bottom: auto; top: -6px; background: #fffaf3; border: 0; border-left: 1px solid #f3dcc2; border-top: 1px solid #f3dcc2; border-radius: 2px 0 0 0; }
[data-theme="dark"] .fx-tip { color: #fde7d3; background: linear-gradient(180deg, #2a211c, #221a16); border-color: #4a3529; box-shadow: 0 14px 30px -14px rgba(0, 0, 0, .7); }
[data-theme="dark"] .fx-tip__arrow { background: #221a16; border-color: #4a3529; }
[data-theme="dark"] .fx-tip.is-below .fx-tip__arrow { background: #2a211c; }
@media (prefers-reduced-motion: reduce) { .fx-tip { transition: opacity .1s linear; transform: none !important; } }
@media print { .fx-tip { display: none; } }


/* ==========================================================================
   2.85 Pure white backgrounds (light theme). The page behind everything is
   solid #FFFFFF: no tinted sections, no translucent bars, no texture.
   Foreground (text, buttons, images, dark heroes) and midground (cards,
   panels, notices, inputs) are untouched. Where a block used a tint to
   separate itself, a crisp 1px hairline does that job instead.
   ========================================================================== */
:root:not([data-theme="dark"]) body,
:root:not([data-theme="dark"]) .section--alt,
:root:not([data-theme="dark"]) .site-footer,
:root:not([data-theme="dark"]) .site-header,
:root:not([data-theme="dark"]) .app-topbar,
:root:not([data-theme="dark"]) .tfm-settings__save { background-color: #ffffff; background-image: none; }
:root:not([data-theme="dark"]) .site-header,
:root:not([data-theme="dark"]) .app-topbar { -webkit-backdrop-filter: none; backdrop-filter: none; }
:root:not([data-theme="dark"]) .section--alt { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
:root:not([data-theme="dark"]) .section--alt + .section--alt { border-top: 0; }

/* 2.86: the home page only keeps its warm bands: the alternate sections
   and the footer return to the warm off-white (--page-alt), which gives the
   long page its rhythm. The header stays white; every other page stays
   pure white (2.85). */
:root:not([data-theme="dark"]) body.is-home .section--alt,
:root:not([data-theme="dark"]) body.is-home .site-footer { background-color: var(--page-alt); }
:root:not([data-theme="dark"]) body.is-home .section--alt { border-top: 0; border-bottom: 0; }


/* 2.87: the home page treatment (2.86) on every page: warm off-white
   footer and alternate sections everywhere, no hairlines needed; headers,
   top bars and the page itself stay solid white. */
:root:not([data-theme="dark"]) .section--alt,
:root:not([data-theme="dark"]) .site-footer { background-color: var(--page-alt); }
:root:not([data-theme="dark"]) .section--alt { border-top: 0; border-bottom: 0; }

/* ==========================================================================
   2.88 Programme timetable pop-up and the animated download button.
   ========================================================================== */
html.fx-ttm-open { overflow: hidden; }
.fx-ttm { position: fixed; inset: 0; z-index: 150; display: grid; place-items: center; padding: 20px; }
.fx-ttm__backdrop { position: absolute; inset: 0; background: rgba(15, 23, 42, .45); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); opacity: 0; transition: opacity .25s ease; }
.fx-ttm__card { position: relative; width: min(880px, 100%); max-height: calc(100dvh / var(--zoom, 1) - 40px); overflow-y: auto; overscroll-behavior: contain; border-radius: 24px; background: #fff; box-shadow: 0 40px 90px -30px rgba(15, 23, 42, .55); outline: 0; opacity: 0; transform: translateY(18px) scale(.97); transition: opacity .25s ease, transform .35s cubic-bezier(.2, 1.1, .3, 1); }
.fx-ttm.is-open .fx-ttm__backdrop { opacity: 1; }
.fx-ttm.is-open .fx-ttm__card { opacity: 1; transform: none; }
[data-theme="dark"] .fx-ttm__card { background: var(--surface); }
.fx-ttm__close { position: absolute; top: 14px; right: 14px; z-index: 3; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; border: 1px solid var(--tfm-border); background: var(--surface); color: var(--tfm-slate); cursor: pointer; transition: transform .25s cubic-bezier(.2, 1.4, .4, 1), color .2s ease; }
.fx-ttm__close:hover { color: var(--tfm-ink); transform: rotate(90deg); }
.fx-ttm__body { transition: opacity .2s ease; }
.fx-ttm__body.is-swapping { opacity: .45; }
.fx-ttm__loading { display: flex; justify-content: center; gap: 8px; padding: 80px 0; }
.fx-ttm__loading span { width: 10px; height: 10px; border-radius: 50%; background: #f97316; animation: fx-typing 1s ease-in-out infinite; }
.fx-ttm__loading span:nth-child(2) { animation-delay: .15s; }
.fx-ttm__loading span:nth-child(3) { animation-delay: .3s; }

.fx-tt { --tier: #f97316; padding: 22px 26px 24px; }
.fx-tt__tabs { display: flex; gap: 6px; overflow-x: auto; margin-right: 48px; padding: 2px 0 14px; scrollbar-width: none; }
.fx-tt__tab { --tab: #f97316; flex: 0 0 auto; display: inline-flex; align-items: center; gap: 7px; padding: 8px 13px; border-radius: 999px; border: 1px solid var(--tfm-border); background: var(--surface); color: var(--tfm-ink-2); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; transition: border-color .2s ease, background .2s ease, color .2s ease; }
.fx-tt__tab i { color: var(--tab); }
.fx-tt__tab:hover { border-color: color-mix(in srgb, var(--tab) 45%, var(--tfm-border)); }
.fx-tt__tab.is-on { color: #fff; border-color: transparent; background: linear-gradient(140deg, color-mix(in srgb, var(--tab) 80%, #fff), var(--tab)); box-shadow: 0 8px 18px -12px var(--tab); }
.fx-tt__tab.is-on i { color: #fff; }

.fx-tt__head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 18px; padding: 18px 0 16px; border-top: 1px solid var(--line); }
.fx-tt__badge { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 18px; color: #fff; font-size: 24px; background: linear-gradient(150deg, color-mix(in srgb, var(--tier) 70%, #fff), var(--tier)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4), 0 14px 26px -14px var(--tier); }
.fx-tt__titles h2 { margin: 2px 0 0; font-size: clamp(20px, 2vw, 26px); line-height: 1.15; color: var(--tfm-ink); }
.fx-tt__titles p { margin: 4px 0 0; color: var(--text-muted); font-size: 14px; }
.fx-tt__titles .eyebrow { font-size: 15px; }

/* The download button: the arrow drops into the tray, a bar fills, a tick. */
.fx-dl { position: relative; overflow: hidden; display: inline-flex; align-items: center; gap: 10px; padding: 11px 18px 11px 12px; border-radius: 14px; color: #fff; text-decoration: none; font-weight: 700; font-size: 14px; background: linear-gradient(140deg, #fb923c, #ea580c); box-shadow: 0 14px 26px -14px #ea580c, inset 0 1px 0 rgba(255, 255, 255, .35); transition: transform .2s ease, box-shadow .2s ease; }
.fx-dl:hover { transform: translateY(-2px); box-shadow: 0 18px 32px -14px #ea580c, inset 0 1px 0 rgba(255, 255, 255, .35); color: #fff; }
.fx-dl__icon { position: relative; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: rgba(255, 255, 255, .2); overflow: hidden; }
.fx-dl__arrow { transition: transform .3s ease; }
.fx-dl:hover .fx-dl__arrow { animation: fx-dl-bob .9s ease-in-out infinite; }
@keyframes fx-dl-bob { 50% { transform: translateY(3px); } }
.fx-dl__tray { position: absolute; left: 8px; right: 8px; bottom: 6px; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .75); }
.fx-dl__done { position: absolute; opacity: 0; transform: scale(.4); transition: opacity .2s ease, transform .35s cubic-bezier(.2, 1.6, .4, 1); }
.fx-dl__label { position: relative; display: grid; }
.fx-dl__label > span { grid-area: 1 / 1; transition: opacity .2s ease, transform .25s ease; }
.fx-dl__busy, .fx-dl__ok { opacity: 0; transform: translateY(8px); }
.fx-dl__bar { position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: rgba(255, 255, 255, .85); }
.fx-dl.is-busy .fx-dl__arrow { animation: fx-dl-drop .7s cubic-bezier(.5, 0, .5, 1) infinite; }
@keyframes fx-dl-drop { 0% { transform: translateY(-14px); opacity: 0; } 30% { opacity: 1; } 70% { transform: translateY(4px); opacity: 1; } 100% { transform: translateY(10px); opacity: 0; } }
.fx-dl.is-busy .fx-dl__bar { animation: fx-dl-fill 1.5s cubic-bezier(.3, .6, .3, 1) forwards; }
@keyframes fx-dl-fill { to { width: 100%; } }
.fx-dl.is-busy .fx-dl__idle, .fx-dl.is-done .fx-dl__idle { opacity: 0; transform: translateY(-8px); }
.fx-dl.is-busy .fx-dl__busy { opacity: 1; transform: none; }
.fx-dl.is-done { background: linear-gradient(140deg, #34d399, #059669); box-shadow: 0 14px 26px -14px #059669, inset 0 1px 0 rgba(255, 255, 255, .35); }
.fx-dl.is-done .fx-dl__ok { opacity: 1; transform: none; }
.fx-dl.is-done .fx-dl__arrow, .fx-dl.is-done .fx-dl__tray { opacity: 0; }
.fx-dl.is-done .fx-dl__done { opacity: 1; transform: none; }

.fx-tt__facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 0 0 18px; }
.fx-tt__facts > div { padding: 12px 14px; border-radius: 14px; background: color-mix(in srgb, var(--tier) 7%, var(--surface)); border: 1px solid color-mix(in srgb, var(--tier) 18%, transparent); }
.fx-tt__facts dt { font-size: 12px; color: var(--text-muted); }
.fx-tt__facts dd { margin: 2px 0 0; font-size: 22px; font-weight: 800; color: var(--tfm-ink); font-variant-numeric: tabular-nums; }

.fx-tt__weeks { position: relative; margin: 0; padding: 0 0 0 4px; list-style: none; display: grid; gap: 10px; }
.fx-tt__weeks::before { content: ""; position: absolute; left: 40px; top: 18px; bottom: 18px; width: 2px; background: linear-gradient(var(--tier), color-mix(in srgb, var(--tier) 15%, transparent)); border-radius: 2px; }
.fx-tt__week { position: relative; display: grid; grid-template-columns: 74px minmax(0, 1fr); gap: 14px; align-items: start; animation: fx-tt-in .45s cubic-bezier(.2, .9, .3, 1) both; animation-delay: calc(var(--i, 0) * 45ms); }
@keyframes fx-tt-in { from { opacity: 0; transform: translateY(8px); } }
.fx-tt__when { position: relative; z-index: 1; display: grid; justify-items: center; align-content: center; width: 74px; min-height: 54px; padding: 6px 4px; border-radius: 14px; background: var(--surface); border: 1.5px solid color-mix(in srgb, var(--tier) 40%, var(--tfm-border)); font-weight: 800; font-size: 15px; color: var(--tfm-ink); font-variant-numeric: tabular-nums; }
.fx-tt__when small { font-size: 10.5px; font-weight: 600; color: var(--text-muted); }
.fx-tt__what { display: grid; gap: 4px; padding: 10px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--tfm-border); }
.fx-tt__what strong { font-size: 14.5px; color: var(--tfm-ink); line-height: 1.35; }
.fx-tt__what strong i { color: #d97706; }
.fx-tt__what > small { font-size: 12.5px; color: var(--text-muted); }
.fx-tt__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.fx-tt__tags span { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 8px; font-size: 12px; font-weight: 600; color: var(--tfm-ink-2); background: var(--surface-sunken); }
.fx-tt__tags span i { color: var(--tfm-slate); }
.fx-tt__tags .is-live { color: #4338ca; background: color-mix(in srgb, #6366f1 10%, var(--surface)); }
.fx-tt__tags .is-live i { color: #6366f1; }
.fx-tt__tags .is-check { color: #047857; background: color-mix(in srgb, #10b981 10%, var(--surface)); }
.fx-tt__tags .is-check i { color: #059669; }
.fx-tt__tags .is-final { color: #b45309; background: color-mix(in srgb, #f59e0b 14%, var(--surface)); }
.fx-tt__tags .is-final i { color: #d97706; }
.fx-tt__week.is-final .fx-tt__when { background: linear-gradient(150deg, #fcd34d, #d97706); border-color: transparent; color: #fff; }
.fx-tt__week.is-final .fx-tt__when small { color: rgba(255, 255, 255, .85); }
.fx-tt__week.is-final .fx-tt__what { border-color: color-mix(in srgb, #f59e0b 35%, transparent); background: color-mix(in srgb, #f59e0b 5%, var(--surface)); }
.fx-tt__note, .fx-tt__empty { margin: 16px 0 0; font-size: 12.5px; color: var(--text-muted); }
.fx-tt__empty { padding: 30px 0; text-align: center; font-size: 14px; }

@media (max-width: 640px) {
  .fx-ttm { padding: 0; align-items: end; }
  .fx-ttm__card { border-radius: 22px 22px 0 0; max-height: 92dvh; }
  .fx-tt { padding: 16px 16px 20px; }
  .fx-tt__head { grid-template-columns: auto minmax(0, 1fr); }
  .fx-tt__head .fx-dl { grid-column: 1 / -1; justify-content: center; }
  .fx-tt__facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fx-tt__weeks::before { left: 30px; }
  .fx-tt__week { grid-template-columns: 58px minmax(0, 1fr); gap: 10px; }
  .fx-tt__when { width: 58px; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .fx-ttm__card, .fx-ttm__backdrop { transition: none; }
  .fx-tt__week { animation: none; }
  .fx-dl.is-busy .fx-dl__arrow, .fx-dl:hover .fx-dl__arrow { animation: none; }
}

/* ==========================================================================
   2.88 Mentorship page: hero stats, four steps, tier cards with a Timetable
   button, online/physical choice, live classes and mentor profiles.
   ========================================================================== */
.fx-mhero h1 { max-width: 22ch; }
.fx-mhero__stats { display: flex; flex-wrap: wrap; gap: 10px; margin-top: var(--space-5); }
.fx-mhero__stats span { display: inline-flex; align-items: baseline; gap: 6px; padding: 8px 14px; border-radius: 999px; background: color-mix(in srgb, var(--surface) 82%, transparent); border: 1px solid var(--line); color: var(--text-muted); font-size: 14px; backdrop-filter: blur(6px); }
.fx-mhero__stats strong { color: var(--text-strong); font-size: 18px; font-weight: var(--weight-bold); }
.fx-mhero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: var(--space-5); }
.fx-mhero__tt i { color: var(--tfm-indigo, #4f46e5); }

.fx-msteps { list-style: none; margin: var(--space-6) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.fx-msteps__step { position: relative; padding: 24px 22px 22px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 18px 40px -32px rgba(15, 23, 42, .35); transition: transform .35s var(--ease-out), box-shadow .35s, border-color .35s; }
.fx-msteps__step:hover { transform: translateY(-4px); border-color: var(--line-strong); box-shadow: 0 24px 48px -30px rgba(15, 23, 42, .45); }
.fx-msteps__step strong { display: block; margin-top: 14px; font-size: 17px; color: var(--text-strong); }
.fx-msteps__step p { margin: 6px 0 0; color: var(--text-muted); font-size: 14.5px; line-height: 1.55; }
.fx-msteps__n { position: absolute; top: 18px; right: 20px; font-size: 34px; font-weight: 800; line-height: 1; color: color-mix(in srgb, var(--text-muted) 22%, transparent); }
.fx-msteps__step.reveal { transition-delay: calc(var(--i, 0) * 90ms); }
.fx-msteps__step:not(:last-child)::after { content: ""; position: absolute; top: 46px; right: -14px; width: 10px; height: 10px; border-top: 2px solid var(--line-strong); border-right: 2px solid var(--line-strong); transform: rotate(45deg); }

/* The wrapper is a 7-row subgrid: six rows of the tier card, then the button. */
.fx-mtier { display: grid; grid-row: span 7; grid-template-rows: subgrid; row-gap: 0; }
@supports not (grid-template-rows: subgrid) { .fx-mtier { display: flex; flex-direction: column; } .fx-mtier .fx-tier { flex: 1; } }
.fx-mtier__tt { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 10px; padding: 11px 14px; border-radius: 14px; border: 1px dashed var(--line-strong); background: var(--surface); color: var(--text-strong); font-weight: 600; font-size: 14.5px; text-decoration: none; transition: background .25s, border-color .25s, color .25s, transform .25s; }
.fx-mtier__tt i:first-child { color: var(--tfm-indigo, #4f46e5); }
.fx-mtier__tt:hover { border-style: solid; border-color: var(--tfm-indigo, #4f46e5); background: color-mix(in srgb, var(--tfm-indigo, #4f46e5) 6%, var(--surface)); transform: translateY(-2px); }
.fx-mtier__go { font-size: 12px; transition: transform .25s; }
.fx-mtier__tt:hover .fx-mtier__go { transform: translateX(4px); }

.fx-mchoice { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: var(--space-6); }
.fx-mchoice__card { display: flex; flex-direction: column; gap: 8px; padding: 28px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); color: inherit; text-decoration: none; box-shadow: 0 18px 40px -34px rgba(15, 23, 42, .4); transition: transform .35s var(--ease-out), box-shadow .35s, border-color .35s; }
.fx-mchoice__card strong { margin-top: 8px; font-size: 20px; color: var(--text-strong); }
.fx-mchoice__card p { margin: 0; color: var(--text-muted); line-height: 1.6; }
.fx-mchoice__go { margin-top: auto; padding-top: 10px; font-weight: 600; color: var(--text-strong); display: inline-flex; align-items: center; gap: 8px; }
.fx-mchoice__go i { font-size: 12px; transition: transform .25s; }
.fx-mchoice__card:hover { transform: translateY(-5px); border-color: var(--line-strong); box-shadow: 0 28px 56px -32px rgba(15, 23, 42, .5); }
.fx-mchoice__card:hover .fx-mchoice__go i { transform: translateX(4px); }

.fx-msessions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: var(--space-5); }
.fx-msessions__item { display: flex; align-items: center; gap: 16px; padding: 14px 18px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.fx-msessions__date { flex: none; display: grid; place-items: center; align-content: center; width: 56px; height: 60px; border-radius: 14px; background: linear-gradient(160deg, color-mix(in srgb, var(--tfm-indigo, #4f46e5) 12%, var(--surface)), var(--surface)); border: 1px solid var(--line); }
.fx-msessions__date strong { font-size: 22px; line-height: 1; color: var(--text-strong); }
.fx-msessions__date small { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted); }
.fx-msessions__what { display: grid; gap: 4px; min-width: 0; }
.fx-msessions__what strong { color: var(--text-strong); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fx-msessions__what small { color: var(--text-muted); }

.fx-mentors { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; margin-top: var(--space-6); }
.fx-mentor { display: flex; flex-direction: column; gap: 12px; padding: 24px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 18px 40px -34px rgba(15, 23, 42, .4); transition: transform .35s var(--ease-out), box-shadow .35s; }
.fx-mentor:hover { transform: translateY(-4px); box-shadow: 0 26px 52px -32px rgba(15, 23, 42, .5); }
.fx-mentor__top { display: flex; align-items: center; gap: 14px; }
.fx-mentor__top > div { display: grid; gap: 2px; min-width: 0; }
.fx-mentor__top strong { font-size: 17px; color: var(--text-strong); }
.fx-mentor__top small { color: var(--text-muted); }
.fx-mentor__avatar { flex: none; width: 60px; height: 60px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 3px var(--surface), 0 0 0 4px var(--line-strong), 0 10px 20px -10px rgba(15, 23, 42, .5); }
.fx-mentor__avatar--initials { display: grid; place-items: center; font-weight: 700; font-size: 20px; color: #fff; background: linear-gradient(145deg, #6366f1, #0ea5e9); }
.fx-mentor__rating { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--text-strong); font-size: 14px; }
.fx-mentor > p { margin: 0; color: var(--text-muted); line-height: 1.6; font-size: 14.5px; }
.fx-mentor__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.fx-mentor__tags span { padding: 4px 10px; border-radius: 999px; font-size: 12.5px; background: var(--surface-sunken); border: 1px solid var(--line); color: var(--text); }
.fx-mentor .fx-mentor__leads { margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--text); }
.fx-mentor__leads i { color: var(--tfm-indigo, #4f46e5); margin-right: 4px; }

@media (max-width: 1180px) { .fx-msteps { grid-template-columns: repeat(2, minmax(0, 1fr)); } .fx-msteps__step::after { display: none; } }
@media (max-width: 720px) {
  .fx-msteps, .fx-mchoice, .fx-msessions { grid-template-columns: 1fr; }
  .fx-mhero__actions .btn { flex: 1 1 100%; justify-content: center; }
}
@media (max-width: 640px) { .fx-mtier { grid-row: auto; display: flex; flex-direction: column; } }
@media (prefers-reduced-motion: reduce) { .fx-msteps__step, .fx-mchoice__card, .fx-mentor, .fx-mtier__tt { transition: none; } }
/* 2.88: ghost buttons on dark art (banners, the parallax window) are frosted glass, not white-on-white. */
.fx-banner .btn.btn--ghost, .fx-window .btn.btn--ghost { --btn-bg: rgba(255, 255, 255, .1); --btn-fg: #fff; --btn-border: rgba(255, 255, 255, .45); background: rgba(255, 255, 255, .1); color: #fff; border-color: rgba(255, 255, 255, .45); backdrop-filter: blur(8px); }
.fx-banner .btn.btn--ghost:hover, .fx-window .btn.btn--ghost:hover { background: #fff; color: #18181b; border-color: #fff; }
.fx-banner .btn.btn--ghost:hover i { color: var(--tfm-indigo, #4f46e5); }
.fx-banner .fx-mhero__tt i { color: #fbbf24; }
.fx-tt__tabs::-webkit-scrollbar { display: none; }
@media (max-width: 720px) { .fx-tt__tabs { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); } }
.fx-banner .fx-mhero__stats span { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .18); color: rgba(255, 255, 255, .78); }
.fx-banner .fx-mhero__stats strong { color: #fff; }

/* ---------------------------------------------------------------------
   2.88.3 Full card rows: js/card-rows.js shows only full rows and puts
   this animated "View all" button under the grid for the rest. Cards are
   never squeezed into extra columns.
   --------------------------------------------------------------------- */
.fx-viewall { display: flex; justify-content: center; margin-top: 26px; }
.fx-viewall__btn { position: relative; display: inline-flex; align-items: center; gap: 10px; padding: 10px 12px 10px 22px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--text-strong, var(--text)); font: inherit; font-weight: 700; font-size: .95rem; cursor: pointer; overflow: hidden; isolation: isolate; box-shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 10px 24px -12px rgba(15, 23, 42, .28); transition: transform .25s cubic-bezier(.2, .8, .2, 1), box-shadow .25s ease, color .25s ease, border-color .25s ease; }
/* Ink fills the pill from the left on hover. */
.fx-viewall__btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--tfm-ink, #0f172a); transform: scaleX(0); transform-origin: left; transition: transform .35s cubic-bezier(.2, .8, .2, 1); }
/* A soft light sweeps across every few seconds so the button is noticed. */
.fx-viewall__btn::after { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; z-index: -1; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .55), transparent); transform: skewX(-18deg); animation: fx-viewall-shine 3.6s ease-in-out infinite; }
.fx-viewall__btn:hover, .fx-viewall__btn:focus-visible { color: #fff; border-color: transparent; transform: translateY(-2px); box-shadow: 0 2px 4px rgba(15, 23, 42, .1), 0 16px 30px -12px rgba(15, 23, 42, .5); }
.fx-viewall__btn:hover::before, .fx-viewall__btn:focus-visible::before { transform: scaleX(1); }
.fx-viewall__btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.fx-viewall__btn:active { transform: translateY(0) scale(.98); }
.fx-viewall__count { padding: 2px 9px; border-radius: 999px; background: var(--surface-sunken); color: var(--text-muted); font-size: .78rem; font-weight: 700; transition: background .25s ease, color .25s ease; }
.fx-viewall__btn:hover .fx-viewall__count, .fx-viewall__btn:focus-visible .fx-viewall__count { background: rgba(255, 255, 255, .16); color: #fff; }
.fx-viewall__icon { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--surface-sunken); font-size: 12px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7), 0 2px 6px -2px rgba(15, 23, 42, .25); transition: transform .35s cubic-bezier(.2, .8, .2, 1), background .25s ease; }
.fx-viewall__icon i { animation: fx-viewall-nudge 1.8s ease-in-out infinite; }
.fx-viewall__btn:hover .fx-viewall__icon, .fx-viewall__btn:focus-visible .fx-viewall__icon { background: rgba(255, 255, 255, .16); box-shadow: none; }
.fx-viewall.is-open .fx-viewall__icon { transform: rotate(180deg); }
.fx-viewall.is-open .fx-viewall__icon i, .fx-viewall.is-open .fx-viewall__btn::after { animation: none; }
[data-rows-seen] > [data-rows-paged] { display: none !important; }
[data-rows-seen] > .fx-rows-new { animation: fx-rows-in .45s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--rows-i, 0) * 70ms); }
@keyframes fx-rows-in { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes fx-viewall-nudge { 0%, 100% { transform: translateY(-1px); } 50% { transform: translateY(2px); } }
@keyframes fx-viewall-shine { 0%, 60% { left: -60%; } 100% { left: 130%; } }
@media (prefers-reduced-motion: reduce) {
  .fx-viewall__btn, .fx-viewall__btn::before, .fx-viewall__icon { transition: none; }
  .fx-viewall__btn::after, .fx-viewall__icon i, [data-rows-seen] > .fx-rows-new { animation: none; }
}
/* Dark theme: the pill fills white instead of ink so the hover still shows. */
[data-theme="dark"] .fx-viewall__btn::before { background: #fff; }
[data-theme="dark"] .fx-viewall__btn:hover, [data-theme="dark"] .fx-viewall__btn:focus-visible { color: #0f172a; }
[data-theme="dark"] .fx-viewall__btn:hover .fx-viewall__count, [data-theme="dark"] .fx-viewall__btn:hover .fx-viewall__icon { background: rgba(15, 23, 42, .1); color: #0f172a; }
[data-theme="dark"] .fx-viewall__btn::after { background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .12), transparent); }

/* ---------------------------------------------------------------------
   2.89 Tidy course cards: titles hold two lines, stats and buttons sit on
   one line across every card, labels never wrap.
   --------------------------------------------------------------------- */
.fx-course-card__title { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; min-height: calc(2 * 1.3em); }
.fx-admin-course .fx-course-card__by { min-height: 1.4em; }
.fx-admin-course__stats { margin-top: auto; padding-top: .55rem; gap: .55rem; }
.fx-admin-course__stats div { position: relative; gap: 3px; padding: .75rem .4rem .6rem; border: 1px solid var(--line); border-radius: 14px; background: linear-gradient(180deg, var(--surface) 0%, var(--surface-sunken) 100%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7), 0 6px 14px -10px rgba(15, 23, 42, .25); min-width: 0; }
.fx-admin-course__stats i { display: grid; place-items: center; width: 26px; height: 26px; margin-bottom: 2px; border-radius: 9px; font-size: 12px; color: var(--tfm-indigo, #4f46e5); background: color-mix(in srgb, var(--tfm-indigo, #4f46e5) 12%, transparent); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), 0 3px 8px -4px color-mix(in srgb, var(--tfm-indigo, #4f46e5) 60%, transparent); }
.fx-admin-course__stats div:nth-child(2) i { color: #0ea5e9; background: rgba(14, 165, 233, .12); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), 0 3px 8px -4px rgba(14, 165, 233, .6); }
.fx-admin-course__stats div:nth-child(3) i { color: #10b981; background: rgba(16, 185, 129, .12); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), 0 3px 8px -4px rgba(16, 185, 129, .6); }
.fx-admin-course__stats strong { font-size: 1.15rem; line-height: 1.1; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.fx-admin-course__stats span { max-width: 100%; font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fx-admin-course__actions { margin-top: .7rem; }
[data-theme="dark"] .fx-admin-course__stats div { box-shadow: 0 6px 14px -10px rgba(0, 0, 0, .6); }

/* ---------------------------------------------------------------------
   2.89 Users and roles: role chips, the people list, a person's roles,
   the role catalogue and the New role / Edit form.
   --role is each role's own colour; orange stays for primary actions.
   --------------------------------------------------------------------- */
.fx-role { --role: #64748b; display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px 4px 8px; border-radius: 999px; font-size: .8rem; font-weight: 700; line-height: 1.2; white-space: nowrap; color: color-mix(in srgb, var(--role) 78%, #0f172a); background: color-mix(in srgb, var(--role) 11%, var(--surface)); border: 1px solid color-mix(in srgb, var(--role) 26%, transparent); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6); }
.fx-role > i:first-child { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; font-size: 10px; color: #fff; background: linear-gradient(145deg, color-mix(in srgb, var(--role) 82%, #fff), var(--role)); box-shadow: 0 2px 6px -2px color-mix(in srgb, var(--role) 70%, transparent), inset 0 1px 0 rgba(255, 255, 255, .35); }
.fx-role--main { color: #fff; background: linear-gradient(135deg, color-mix(in srgb, var(--role) 88%, #fff), var(--role)); border-color: transparent; box-shadow: 0 6px 16px -8px color-mix(in srgb, var(--role) 80%, transparent), inset 0 1px 0 rgba(255, 255, 255, .3); }
.fx-role--main > i:first-child { background: rgba(255, 255, 255, .22); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35); }
.fx-role__star { font-size: 9px; opacity: .9; }
.fx-role--sm { padding: 3px 9px 3px 6px; font-size: .74rem; }
.fx-role--sm > i:first-child { width: 17px; height: 17px; font-size: 9px; }
[data-theme="dark"] .fx-role:not(.fx-role--main) { color: color-mix(in srgb, var(--role) 55%, #fff); background: color-mix(in srgb, var(--role) 18%, transparent); box-shadow: none; }
.fx-role-list { display: inline-flex; flex-wrap: wrap; gap: 5px; align-items: center; }
.fx-role-more { padding: 3px 8px; border-radius: 999px; font-size: .72rem; font-weight: 700; color: var(--text-muted); background: var(--surface-sunken); }

/* Filter by role */
.fx-rolefilter { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 12px; margin: var(--space-5) 0 var(--space-2); scrollbar-width: thin; }
.fx-rolefilter a { --role: #0f172a; flex: none; display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font-size: .84rem; font-weight: 600; text-decoration: none; box-shadow: 0 1px 2px rgba(15, 23, 42, .05); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease; }
.fx-rolefilter a i { color: var(--role); }
.fx-rolefilter a b { min-width: 22px; padding: 1px 7px; border-radius: 999px; font-size: .72rem; text-align: center; background: var(--surface-sunken); color: var(--text-muted); }
.fx-rolefilter a:hover { transform: translateY(-1px); border-color: color-mix(in srgb, var(--role) 40%, var(--line)); box-shadow: 0 8px 18px -12px rgba(15, 23, 42, .35); }
.fx-rolefilter a.is-on { color: #fff; border-color: transparent; background: linear-gradient(135deg, color-mix(in srgb, var(--role) 85%, #fff), var(--role)); box-shadow: 0 8px 18px -10px color-mix(in srgb, var(--role) 80%, transparent); }
.fx-rolefilter a.is-on i { color: #fff; }
.fx-rolefilter a.is-on b { background: rgba(255, 255, 255, .22); color: #fff; }
.fx-users-table td { vertical-align: middle; }
.fx-users-manage { white-space: nowrap; }

/* One person */
.fx-backlink { display: inline-flex; align-items: center; gap: 8px; font-size: .86rem; font-weight: 600; color: var(--text-muted); text-decoration: none; }
.fx-backlink:hover { color: var(--text-strong); }
.fx-userhero { --role: #64748b; position: relative; display: flex; justify-content: space-between; align-items: center; gap: var(--space-6); flex-wrap: wrap; padding: 26px 28px; margin-bottom: var(--space-5); border-radius: 22px; border: 1px solid var(--line); background: radial-gradient(120% 140% at 100% 0%, color-mix(in srgb, var(--role) 14%, transparent) 0%, transparent 55%), var(--surface); box-shadow: 0 1px 2px rgba(15, 23, 42, .05), 0 24px 48px -32px rgba(15, 23, 42, .35); overflow: hidden; }
.fx-userhero::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 5px; background: linear-gradient(180deg, color-mix(in srgb, var(--role) 80%, #fff), var(--role)); }
.fx-userhero__who { display: flex; align-items: center; gap: 18px; min-width: 0; }
.fx-userhero__avatar { flex: none; display: grid; place-items: center; width: 76px; height: 76px; border-radius: 22px; object-fit: cover; font-size: 1.5rem; font-weight: 800; color: #fff; background: linear-gradient(145deg, color-mix(in srgb, var(--role) 75%, #fff), var(--role)); box-shadow: 0 12px 24px -12px color-mix(in srgb, var(--role) 80%, transparent), inset 0 1px 0 rgba(255, 255, 255, .35); }
.fx-userhero h1 { margin: 0 0 4px; font-size: 1.6rem; letter-spacing: -.02em; }
.fx-userhero p { margin: 0 0 10px; color: var(--text-muted); font-size: .92rem; }
.fx-userhero__meta { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; font-size: .82rem; color: var(--text-muted); }
.fx-userhero__meta i { margin-right: 4px; }
.fx-userhero__side { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.fx-userhero__label { font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); }
.fx-userhero__nums { display: flex; gap: 14px; font-size: .84rem; color: var(--text-muted); }
.fx-userhero__nums strong { color: var(--text-strong); font-size: 1.05rem; }
.fx-roles-note { display: flex; gap: 10px; align-items: flex-start; margin-bottom: var(--space-5); }
.fx-roles-note > i { margin-top: 3px; }

.fx-userroles { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: var(--space-5); margin-bottom: var(--space-5); align-items: start; }
.fx-userroles .panel__title i, .fx-addrole .panel__title i, .panel__title > i { margin-right: 6px; color: var(--text-muted); }
.fx-held { list-style: none; margin: 0; padding: 6px 14px 14px; }
.fx-held__item { --role: #64748b; display: flex; align-items: center; gap: 14px; padding: 14px 12px; border-radius: 16px; border: 1px solid transparent; transition: background .2s ease, border-color .2s ease; }
.fx-held__item + .fx-held__item { margin-top: 6px; }
.fx-held__item:hover { background: var(--surface-sunken); }
.fx-held__item.is-main { border-color: color-mix(in srgb, var(--role) 30%, var(--line)); background: color-mix(in srgb, var(--role) 6%, var(--surface)); }
.fx-held__icon { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; font-size: 17px; color: #fff; background: linear-gradient(145deg, color-mix(in srgb, var(--role) 78%, #fff), var(--role)); box-shadow: 0 10px 18px -10px color-mix(in srgb, var(--role) 85%, transparent), inset 0 1px 0 rgba(255, 255, 255, .35); }
.fx-held__text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.fx-held__text strong { font-size: .98rem; color: var(--text-strong); }
.fx-held__text small { font-size: .8rem; color: var(--text-muted); }
.fx-held__main { margin-left: 6px; padding: 2px 8px; border-radius: 999px; font-style: normal; font-size: .68rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: color-mix(in srgb, var(--role) 80%, #0f172a); background: color-mix(in srgb, var(--role) 14%, transparent); }
.fx-held__when { font-size: .74rem !important; opacity: .85; }
.fx-held__actions { display: flex; gap: 4px; flex: none; }
.fx-held__actions form { margin: 0; }
.fx-held__remove:hover { color: #dc2626; }

.fx-perms { display: grid; gap: 12px; }
.fx-perms__group { display: grid; grid-template-columns: 120px 1fr; gap: 10px; align-items: start; }
.fx-perms__name { padding-top: 4px; font-size: .74rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--text-muted); }
.fx-perms__list { display: flex; flex-wrap: wrap; gap: 6px; }
.fx-perms__list span { padding: 4px 10px; border-radius: 8px; font-size: .78rem; background: var(--surface-sunken); border: 1px solid var(--line); color: var(--text); }

.fx-addrole { margin-bottom: var(--space-5); }
.fx-rolepick { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.fx-rolepick__item { --role: #64748b; position: relative; display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 18px 16px 16px; border-radius: 18px; border: 1px solid var(--line); background: linear-gradient(180deg, color-mix(in srgb, var(--role) 7%, var(--surface)) 0%, var(--surface) 55%); box-shadow: 0 1px 2px rgba(15, 23, 42, .05), 0 14px 28px -22px rgba(15, 23, 42, .35); transition: transform .25s cubic-bezier(.2, .8, .2, 1), box-shadow .25s ease, border-color .25s ease; }
.fx-rolepick__item:not(.is-blocked):hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--role) 40%, var(--line)); box-shadow: 0 2px 4px rgba(15, 23, 42, .06), 0 22px 36px -22px color-mix(in srgb, var(--role) 60%, rgba(15, 23, 42, .5)); }
.fx-rolepick__icon { display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 4px; border-radius: 13px; font-size: 16px; color: #fff; background: linear-gradient(145deg, color-mix(in srgb, var(--role) 78%, #fff), var(--role)); box-shadow: 0 10px 18px -10px color-mix(in srgb, var(--role) 85%, transparent), inset 0 1px 0 rgba(255, 255, 255, .35); transition: transform .3s cubic-bezier(.2, .8, .2, 1); }
.fx-rolepick__item:not(.is-blocked):hover .fx-rolepick__icon { transform: rotate(-6deg) scale(1.06); }
.fx-rolepick__item strong { font-size: 1rem; color: var(--text-strong); }
.fx-rolepick__item small { min-height: 2.6em; font-size: .8rem; line-height: 1.3; color: var(--text-muted); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.fx-rolepick__meta { display: flex; gap: 10px; font-size: .72rem; font-weight: 600; color: var(--text-muted); }
.fx-rolepick__go { display: flex; gap: 6px; margin-top: auto; padding-top: 8px; }
.fx-rolepick__go .btn { margin: 0; }
.fx-rolepick__why { margin-top: auto; padding-top: 8px; font-size: .76rem; color: var(--text-muted); }
.fx-rolepick__item.is-blocked { opacity: .62; background: var(--surface-sunken); }
.fx-rolepick__item.is-blocked .fx-rolepick__icon { filter: grayscale(.8); box-shadow: none; }

.fx-rolelog { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: .86rem; }
.fx-rolelog li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.fx-rolelog li i { width: 18px; color: var(--text-muted); }
.fx-rolelog li.is-add i { color: #10b981; }
.fx-rolelog li.is-remove i { color: #ef4444; }
.fx-rolelog li.is-main i { color: #eab308; }

/* The catalogue */
.fx-rolecat { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; margin: var(--space-5) 0 var(--space-6); }
.fx-rolecard { --role: #64748b; position: relative; display: flex; flex-direction: column; gap: 8px; padding: 20px 18px 16px; border-radius: 20px; border: 1px solid var(--line); background: radial-gradient(120% 90% at 100% 0%, color-mix(in srgb, var(--role) 12%, transparent) 0%, transparent 60%), var(--surface); box-shadow: 0 1px 2px rgba(15, 23, 42, .05), 0 18px 36px -28px rgba(15, 23, 42, .4); overflow: hidden; transition: transform .3s cubic-bezier(.2, .8, .2, 1), box-shadow .3s ease; }
.fx-rolecard::after { content: ""; position: absolute; left: 18px; right: 18px; top: 0; height: 3px; border-radius: 0 0 4px 4px; background: linear-gradient(90deg, var(--role), color-mix(in srgb, var(--role) 40%, transparent)); }
.fx-rolecard:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(15, 23, 42, .06), 0 26px 44px -28px color-mix(in srgb, var(--role) 55%, rgba(15, 23, 42, .5)); }
.fx-rolecard__head { display: flex; justify-content: space-between; align-items: flex-start; }
.fx-rolecard__icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 15px; font-size: 19px; color: #fff; background: linear-gradient(145deg, color-mix(in srgb, var(--role) 78%, #fff), var(--role)); box-shadow: 0 12px 22px -12px color-mix(in srgb, var(--role) 90%, transparent), inset 0 1px 0 rgba(255, 255, 255, .35); transition: transform .35s cubic-bezier(.2, .8, .2, 1); }
.fx-rolecard:hover .fx-rolecard__icon { transform: rotate(-6deg) scale(1.06); }
.fx-rolecard__level { padding: 3px 9px; border-radius: 999px; font-size: .7rem; font-weight: 800; letter-spacing: .03em; color: color-mix(in srgb, var(--role) 80%, #0f172a); background: color-mix(in srgb, var(--role) 13%, transparent); }
.fx-rolecard h3 { margin: 4px 0 0; font-size: 1.08rem; letter-spacing: -.01em; }
.fx-rolecard p { margin: 0; min-height: 2.6em; font-size: .84rem; line-height: 1.3; color: var(--text-muted); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.fx-rolecard__tags { display: flex; gap: 6px; flex-wrap: wrap; }
.fx-rolecard__tags span { display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px; border-radius: 6px; font-size: .7rem; font-weight: 700; color: var(--text-muted); background: var(--surface-sunken); }
.fx-rolecard__tags .is-custom { color: #7c3aed; background: rgba(124, 58, 237, .1); }
.fx-rolecard__tags .is-retired { color: #b45309; background: rgba(245, 158, 11, .14); }
.fx-rolecard__nums { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 4px 0 0; }
.fx-rolecard__nums div { padding: 8px 10px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-sunken); }
.fx-rolecard__nums dt { font-size: .66rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted); }
.fx-rolecard__nums dd { margin: 0; font-size: 1.15rem; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--text-strong); }
.fx-rolecard__actions { display: flex; gap: 6px; margin-top: auto; padding-top: 8px; }
.fx-rolecard__actions .btn { margin: 0; }
.fx-rolecard__actions .btn:not(.btn--quiet) { flex: 1; justify-content: center; }
.fx-rolecard.is-retired { opacity: .75; }
.fx-rolecard--new { align-items: center; justify-content: center; text-align: center; gap: 8px; min-height: 240px; cursor: pointer; font: inherit; color: var(--text-muted); border: 2px dashed var(--line-strong); background: transparent; box-shadow: none; }
.fx-rolecard--new::after { display: none; }
.fx-rolecard--new strong { color: var(--text-strong); font-size: 1rem; }
.fx-rolecard--new small { max-width: 200px; font-size: .8rem; }
.fx-rolecard__plus { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; font-size: 20px; color: var(--text-strong); background: var(--surface); border: 1px solid var(--line); box-shadow: 0 10px 22px -14px rgba(15, 23, 42, .45); transition: transform .35s cubic-bezier(.2, .8, .2, 1), background .25s ease, color .25s ease; }
.fx-rolecard--new:hover { border-color: var(--tfm-ink, #0f172a); background: var(--surface); }
.fx-rolecard--new:hover .fx-rolecard__plus { transform: rotate(90deg); background: var(--tfm-ink, #0f172a); color: #fff; }
.fx-rolecard--new:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.fx-roleperms { scroll-margin-top: 90px; border-top: 3px solid var(--role); }
.fx-roleperms__head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: var(--space-5); }
.fx-roleperms__count { margin-left: auto; }
.checkbox.is-locked { opacity: .5; cursor: not-allowed; }

/* New role / Edit */
.fx-rolefields { --role: #6366f1; display: grid; gap: var(--space-4); }
.fx-rolefields__preview { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 16px; font-weight: 800; font-size: 1.05rem; color: var(--text-strong); background: linear-gradient(135deg, color-mix(in srgb, var(--role) 12%, var(--surface)), var(--surface)); border: 1px solid color-mix(in srgb, var(--role) 25%, var(--line)); transition: background .3s ease, border-color .3s ease; }
.fx-rolefields__tile { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; font-size: 17px; color: #fff; background: linear-gradient(145deg, color-mix(in srgb, var(--role) 78%, #fff), var(--role)); box-shadow: 0 10px 18px -10px color-mix(in srgb, var(--role) 85%, transparent), inset 0 1px 0 rgba(255, 255, 255, .35); transition: background .3s ease; }
.fx-pick { margin: 0; padding: 0; border: 0; min-width: 0; }
.fx-pick__icons { display: grid; grid-template-columns: repeat(auto-fill, minmax(42px, 1fr)); gap: 6px; }
.fx-pick__icon, .fx-pick__colour { position: relative; cursor: pointer; }
.fx-pick__colour { --swatch: #64748b; }
.fx-pick__icon input, .fx-pick__colour input { position: absolute; opacity: 0; pointer-events: none; }
.fx-pick__icon span { display: grid; place-items: center; height: 42px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--text-muted); font-size: 15px; transition: transform .2s ease, color .2s ease, border-color .2s ease, background .2s ease, box-shadow .2s ease; }
.fx-pick__icon:hover span { transform: translateY(-2px); color: var(--text-strong); }
.fx-pick__icon input:checked + span { color: #fff; border-color: transparent; background: linear-gradient(145deg, color-mix(in srgb, var(--role) 78%, #fff), var(--role)); box-shadow: 0 8px 16px -8px color-mix(in srgb, var(--role) 85%, transparent); }
.fx-pick__icon input:focus-visible + span, .fx-pick__colour input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.fx-pick__colours { display: flex; flex-wrap: wrap; gap: 10px; }
.fx-pick__colour span { display: block; width: 32px; height: 32px; border-radius: 50%; background: var(--swatch); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 4px 10px -4px var(--swatch); transition: transform .2s ease, box-shadow .2s ease; }
.fx-pick__colour:hover span { transform: scale(1.1); }
.fx-pick__colour input:checked + span { box-shadow: 0 0 0 3px var(--surface), 0 0 0 5px var(--swatch), 0 6px 14px -4px var(--swatch); }
.fx-rolefields__active { padding: 12px 14px; border-radius: 12px; background: var(--surface-sunken); }
.fx-roledelete:not(:disabled):hover { color: #dc2626; }

@media (max-width: 980px) {
  .fx-userroles { grid-template-columns: 1fr; }
  .fx-userhero__side { align-items: flex-start; }
}
@media (max-width: 600px) {
  .fx-userhero { padding: 20px; }
  .fx-userhero__who { flex-direction: column; align-items: flex-start; }
  .fx-held__item { flex-wrap: wrap; }
  .fx-held__actions { width: 100%; justify-content: flex-end; }
  .fx-perms__group { grid-template-columns: 1fr; gap: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  .fx-rolecard, .fx-rolecard__icon, .fx-rolepick__item, .fx-rolepick__icon, .fx-rolecard__plus, .fx-pick__icon span, .fx-pick__colour span { transition: none; }
}

/* ---------------------------------------------------------------------
   2.89.2 Card order: market tiles (Admin > Categories and the public
   Markets section) keep the description in a three-line slot and pin the
   course count to the bottom, so it lines up across the row. A person's
   two role panels match in height.
   --------------------------------------------------------------------- */
.fx-market-tile { display: flex; flex-direction: column; }
.fx-market-tile__text { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; min-height: calc(3 * 1.5em); }
.fx-market-tile__count { margin-top: auto; padding-top: 4px; }
.fx-userroles { align-items: stretch; }
.fx-userroles > .panel { margin: 0; }
/* Home and section card rows: a card-sized title in a two-line slot, the
   text under it, and the footer line (lessons, author) pinned to the bottom. */
.fx-cardrow > .card { display: flex; flex-direction: column; gap: 8px; }
.fx-cardrow > .card > h3 { margin: 0; font-size: 1.15rem; line-height: 1.3; letter-spacing: -.01em; min-height: 2.6em; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
.fx-cardrow > .card > p { margin: 0; }
.fx-cardrow > .card > .row:last-child, .fx-cardrow > .card > figcaption { margin-top: auto; padding-top: 6px; }
.fx-cardrow > figure.card blockquote { margin: 0; }
/* Pillars ("Why RATELi"): titles share a two-line slot so the text under them starts level. */
.grid > .pillar .pillar__title { min-height: 2.6em; }
/* Short names (tools): a one-line title slot, no gap under it. */
.fx-cardrow--short > .card > h3 { min-height: 0; -webkit-line-clamp: 1; line-clamp: 1; white-space: nowrap; text-overflow: ellipsis; display: block; }

.fx-learning-tabs { display: flex; width: fit-content; max-width: 100%; margin-bottom: var(--space-4); }
.fx-learning-tabs .tab { text-decoration: none; display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }

/* ---------------------------------------------------------------------
   2.91 Business-first navigation: one group open at a time, a numbered
   admin index, a menu search, and the links wrapped so the group can
   open and close smoothly (js/sidebar-nav.js).
   --------------------------------------------------------------------- */
.fx-app .sidebar-group__items > .sidebar-link { padding-left: 1.6rem; font-size: 0.9rem; }
.fx-app .sidebar-group__items > .sidebar-link .sidebar-link__icon { width: 17px; height: 17px; }
.fx-app .sidebar-group__items { position: relative; overflow: hidden; }
/* A hairline guide down the open group, so its pages read as one set. */
.fx-app .sidebar-group--admin .sidebar-group__items::before { content: ""; position: absolute; left: 1.45rem; top: 4px; bottom: 6px; width: 1px; background: linear-gradient(180deg, var(--line-strong), transparent); opacity: .7; }
.fx-app .sidebar-group--admin .sidebar-group__items > .sidebar-link { margin-left: 0.55rem; }
.sidebar-group__index { flex: none; min-width: 20px; font-size: .68rem; font-weight: 800; letter-spacing: .04em; font-variant-numeric: tabular-nums; color: var(--text-muted); opacity: .75; }
.fx-app .sidebar-group[open] > .sidebar-group__label .sidebar-group__index { color: var(--accent-text, var(--accent)); opacity: 1; }
/* The group holding the page you are on keeps a quiet marker even when closed. */
.fx-app .sidebar-group.has-active > .sidebar-group__label { position: relative; }
.fx-app .sidebar-group.has-active:not([open]) > .sidebar-group__label::after { content: ""; position: absolute; left: 4px; top: 50%; width: 4px; height: 4px; margin-top: -2px; border-radius: 50%; background: var(--accent); }
.fx-app .sidebar-group__chevron { transition: transform .22s cubic-bezier(.2, .8, .2, 1); }

/* Menu search */
.sidebar-search { position: relative; display: flex; align-items: center; gap: 8px; margin: 2px 12px 10px; padding: 0 10px; height: 38px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-sunken); color: var(--text-muted); transition: border-color .2s ease, box-shadow .2s ease, background .2s ease; }
.sidebar-search:focus-within { border-color: var(--line-strong); background: var(--surface); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 14%, transparent); }
.sidebar-search > i { font-size: 13px; }
.sidebar-search__input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; color: var(--text-strong); font: inherit; font-size: .86rem; }
.sidebar-search__input::-webkit-search-cancel-button { cursor: pointer; }
.sidebar-search__empty { margin: 4px 16px 10px; font-size: .82rem; color: var(--text-muted); }
.fx-app .sidebar-link.is-match .sidebar-link__text mark { background: color-mix(in srgb, var(--accent) 22%, transparent); color: inherit; border-radius: 3px; padding: 0 1px; }
[data-nav-accordion].is-searching .sidebar-group:not(.has-match) { display: none; }
[data-nav-accordion].is-searching .sidebar-link:not(.is-match) { display: none; }

/* Compact (icons only): no search box, no numbers, no guide line. */
html.sidebar-collapsed .fx-app .sidebar-search,
html.sidebar-collapsed .fx-app .sidebar-search__empty,
html.sidebar-collapsed .fx-app .sidebar-group__index,
html.sidebar-collapsed .fx-app .sidebar-group__items::before { display: none; }
@media (min-width: 1081px) {
  html.sidebar-collapsed .fx-app .sidebar-group__items > .sidebar-link { padding-left: 0; margin-left: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .fx-app .sidebar-group__chevron, .sidebar-search { transition: none; }
}
/* Admin group names stay on one line; the full name is in the tooltip. */
.fx-app .sidebar-group--admin .sidebar-group__text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; flex: 1; }
.fx-app .sidebar-group--admin > .sidebar-group__label { gap: 6px; padding-inline: 9px 6px; font-size: .84rem; letter-spacing: -.01em; }
.fx-app .sidebar-group--admin .sidebar-group__index { min-width: 15px; font-size: .64rem; }
.fx-app .sidebar-group--admin .sidebar-group__chevron { margin-left: auto; }

/* ---------------------------------------------------------------------
   2.92 Business overview: the super admin's landing page. Headline money,
   cash and obligations, money in and out, and the operations behind it.
   --------------------------------------------------------------------- */
.tfm-bizhead { align-items: flex-end; gap: var(--space-4); flex-wrap: wrap; }
.tfm-bizhead__tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 10px; }
.tfm-bizhead__custom { display: flex; align-items: flex-end; gap: 6px; padding: 5px 6px 5px 10px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); box-shadow: 0 1px 2px rgba(15, 23, 42, .05); }
.tfm-bizhead__custom.is-on { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 12%, transparent); }
.tfm-bizhead__custom label { display: flex; flex-direction: column; gap: 1px; }
.tfm-bizhead__custom label span { font-size: .64rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted); }
.tfm-bizhead__custom .input { height: 30px; padding: 2px 8px; font-size: .8rem; min-width: 0; width: 132px; }
.tfm-bizhead__custom .btn { margin: 0; }
.tfm-bizhead__export { white-space: nowrap; }

.tfm-bizkpi .fx-summary { display: flex; flex-direction: column; }
.tfm-bizkpi__basis { display: block; margin-top: auto; padding-top: 8px; font-size: .72rem; color: var(--text-muted); }
.tfm-bizkpi__net { cursor: default; }
.tfm-bizkpi__net.is-negative .fx-summary__num { color: #dc2626; }

.tfm-bizcash { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 16px 0 20px; }
.tfm-bizcash__item { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); color: inherit; text-decoration: none; box-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 12px 26px -22px rgba(15, 23, 42, .35); transition: transform .25s cubic-bezier(.2, .8, .2, 1), box-shadow .25s ease, border-color .25s ease; }
.tfm-bizcash__item:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--c) 35%, var(--line)); box-shadow: 0 2px 4px rgba(15, 23, 42, .05), 0 18px 32px -22px color-mix(in srgb, var(--c) 55%, rgba(15, 23, 42, .5)); }
.tfm-bizcash__icon { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; font-size: 16px; color: #fff; background: linear-gradient(145deg, color-mix(in srgb, var(--c) 75%, #fff), var(--c)); box-shadow: 0 8px 16px -8px color-mix(in srgb, var(--c) 85%, transparent), inset 0 1px 0 rgba(255, 255, 255, .35); }
.tfm-bizcash__item > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.tfm-bizcash__item small { font-size: .7rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--text-muted); }
.tfm-bizcash__item strong { font-size: 1.12rem; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--text-strong); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tfm-bizcash__item em { font-style: normal; font-size: .74rem; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.tfm-bizflow { margin-bottom: 20px; }
.tfm-bizflow__steps { list-style: none; margin: 4px 0 0; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.tfm-bizflow__steps li { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 12px 12px 11px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface-sunken); }
.tfm-bizflow__steps small { font-size: .68rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tfm-bizflow__steps strong { font-size: 1.02rem; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--text-strong); }
.tfm-bizflow__steps .is-in strong { color: #059669; }
.tfm-bizflow__steps .is-out strong { color: #b45309; }
.tfm-bizflow__steps .is-sum { background: var(--surface); border-color: var(--line-strong); }
.tfm-bizflow__steps .is-total { background: linear-gradient(135deg, #0f172a, #1e293b); border-color: transparent; box-shadow: 0 12px 24px -14px rgba(15, 23, 42, .7); }
.tfm-bizflow__steps .is-total small { color: rgba(255, 255, 255, .7); }
.tfm-bizflow__steps .is-total strong { color: #fff; }
.tfm-bizflow__note { display: flex; gap: 8px; align-items: flex-start; margin: 14px 0 0; font-size: .8rem; color: var(--text-muted); }
.tfm-bizflow__note i { margin-top: 3px; }

.tfm-bizops { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 12px; margin-bottom: 22px; }
.tfm-bizops__item { --c: #64748b; display: flex; flex-direction: column; gap: 4px; padding: 16px 14px 14px; border-radius: 16px; border: 1px solid var(--line); background: radial-gradient(120% 100% at 100% 0%, color-mix(in srgb, var(--c) 10%, transparent), transparent 60%), var(--surface); color: inherit; text-decoration: none; box-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 12px 26px -22px rgba(15, 23, 42, .35); transition: transform .25s cubic-bezier(.2, .8, .2, 1), box-shadow .25s ease; }
.tfm-bizops__item:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(15, 23, 42, .05), 0 18px 32px -22px color-mix(in srgb, var(--c) 55%, rgba(15, 23, 42, .5)); }
.tfm-bizops__icon { display: grid; place-items: center; width: 34px; height: 34px; margin-bottom: 4px; border-radius: 11px; font-size: 14px; color: #fff; background: linear-gradient(145deg, color-mix(in srgb, var(--c) 75%, #fff), var(--c)); box-shadow: 0 8px 14px -8px color-mix(in srgb, var(--c) 85%, transparent), inset 0 1px 0 rgba(255, 255, 255, .35); }
.tfm-bizops__item strong { font-size: 1.4rem; font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; color: var(--text-strong); }
.tfm-bizops__label { font-size: .8rem; font-weight: 700; color: var(--text-strong); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tfm-bizops__item small { font-size: .72rem; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

@media (max-width: 1280px) {
  .tfm-bizflow__steps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .tfm-bizops { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
  .tfm-bizcash { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tfm-bizhead__tools { justify-content: flex-start; }
}
@media (max-width: 600px) {
  .tfm-bizcash, .tfm-bizflow__steps, .tfm-bizops { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tfm-bizhead__custom { flex-wrap: wrap; }
  .tfm-bizhead__custom .input { width: 128px; }
}
@media (prefers-reduced-motion: reduce) {
  .tfm-bizcash__item, .tfm-bizops__item { transition: none; }
}

/* ---------------------------------------------------------------------
   2.93 Academy finances: ledger, reconciliation, wallets, commissions
   and the rules, in the same look as Business overview.
   --------------------------------------------------------------------- */
.tfm-ledger-code { display: inline-block; padding: 1px 6px; border-radius: 6px; font: 700 .7rem/1.5 var(--font-mono, ui-monospace, monospace); color: var(--text-muted); background: var(--surface-sunken); border: 1px solid var(--line); }
.tfm-ledger-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.tfm-ledger-table td, .tfm-ledger-table th { padding: 8px 4px; border-bottom: 1px solid var(--line); }
.tfm-ledger-table .numeric { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tfm-ledger-table .is-group th { padding-top: 14px; text-align: left; font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); border-bottom: 0; }
.tfm-ledger-table .is-sub td { font-weight: 700; color: var(--text-strong); border-bottom: 2px solid var(--line-strong); }
.tfm-ledger-table .is-total td { padding-top: 12px; font-size: 1rem; font-weight: 800; color: var(--text-strong); border-bottom: 0; }
.tfm-ledger-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.tfm-ledger-actions .btn { margin: 0; }
.tfm-ledger-sub { display: flex; align-items: center; gap: 8px; margin: 10px 0 6px; font-size: .74rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--text-muted); }
.tfm-ledger-accounts { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 6px; }
.tfm-ledger-accounts a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: inherit; text-decoration: none; transition: border-color .2s ease, background .2s ease; }
.tfm-ledger-accounts a:hover { border-color: var(--line-strong); background: var(--surface-sunken); }
.tfm-ledger-accounts a > span { display: flex; flex-direction: column; gap: 2px; min-width: 0; font-weight: 700; font-size: .88rem; color: var(--text-strong); }
.tfm-ledger-accounts small { font-weight: 400; font-size: .74rem; color: var(--text-muted); }
.tfm-ledger-accounts strong { flex: none; font-variant-numeric: tabular-nums; font-size: .95rem; }
.tfm-ledger-more td { border-top-color: transparent; }
.tfm-ledger-first td { border-top: 1px solid var(--line-strong); }
.tfm-ledger-credit { padding-left: 28px !important; }
.tfm-amount--in { color: #059669; }
.tfm-amount--out { color: #b45309; }

.tfm-recon-hero { display: flex; align-items: center; gap: 16px; padding: 18px 20px; margin-bottom: 16px; border-radius: 18px; border: 1px solid var(--line); background: var(--surface); box-shadow: 0 14px 30px -24px rgba(15, 23, 42, .4); }
.tfm-recon-hero.is-ok { border-color: rgba(16, 185, 129, .35); background: linear-gradient(135deg, rgba(16, 185, 129, .08), var(--surface) 60%); }
.tfm-recon-hero.is-bad { border-color: rgba(239, 68, 68, .35); background: linear-gradient(135deg, rgba(239, 68, 68, .08), var(--surface) 60%); }
.tfm-recon-hero__icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; font-size: 22px; color: #fff; background: linear-gradient(145deg, #34d399, #059669); box-shadow: 0 12px 22px -12px rgba(5, 150, 105, .8), inset 0 1px 0 rgba(255, 255, 255, .35); }
.tfm-recon-hero.is-bad .tfm-recon-hero__icon { background: linear-gradient(145deg, #f87171, #dc2626); box-shadow: 0 12px 22px -12px rgba(220, 38, 38, .8); }
.tfm-recon-hero strong { display: block; font-size: 1.15rem; color: var(--text-strong); }
.tfm-recon-hero small { font-size: .82rem; color: var(--text-muted); }
.tfm-recon { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.tfm-recon li { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); box-shadow: 0 1px 2px rgba(15, 23, 42, .04); }
.tfm-recon__icon { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; font-size: 13px; color: #fff; background: #10b981; box-shadow: 0 6px 12px -6px rgba(16, 185, 129, .9); }
.tfm-recon li.is-bad .tfm-recon__icon { background: #ef4444; box-shadow: 0 6px 12px -6px rgba(239, 68, 68, .9); }
.tfm-recon__text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.tfm-recon__text strong { font-size: .95rem; color: var(--text-strong); }
.tfm-recon__text small { font-size: .8rem; color: var(--text-muted); }
.tfm-recon__nums { display: flex; gap: 14px; flex: none; }
.tfm-recon__nums > span { display: flex; flex-direction: column; align-items: flex-end; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--text-strong); }
.tfm-recon__nums small { font-size: .64rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted); }

.tfm-rules { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 20px; }
.tfm-rule { --c: #64748b; display: flex; flex-direction: column; gap: 4px; padding: 18px 16px 16px; border-radius: 18px; border: 1px solid var(--line); background: radial-gradient(120% 100% at 100% 0%, color-mix(in srgb, var(--c) 11%, transparent), transparent 60%), var(--surface); box-shadow: 0 14px 28px -24px rgba(15, 23, 42, .4); }
.tfm-rule__icon { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 6px; border-radius: 12px; font-size: 16px; color: #fff; background: linear-gradient(145deg, color-mix(in srgb, var(--c) 75%, #fff), var(--c)); box-shadow: 0 10px 18px -10px color-mix(in srgb, var(--c) 85%, transparent), inset 0 1px 0 rgba(255, 255, 255, .35); }
.tfm-rule strong { font-size: 1.7rem; font-weight: 800; line-height: 1.05; color: var(--text-strong); font-variant-numeric: tabular-nums; }
.tfm-rule__label { font-size: .86rem; font-weight: 700; color: var(--text-strong); }
.tfm-rule small { font-size: .78rem; line-height: 1.4; color: var(--text-muted); }
.tfm-rules-list { margin: 0; display: grid; gap: 0; }
.tfm-rules-list > div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.tfm-rules-list dt { font-size: .84rem; color: var(--text-muted); }
.tfm-rules-list dd { margin: 0; font-size: .86rem; font-weight: 700; text-align: right; color: var(--text-strong); }
.tfm-rules-steps { margin: 0; padding-left: 20px; display: grid; gap: 10px; font-size: .86rem; color: var(--text); }
.tfm-rules-steps strong { color: var(--text-strong); }

@media (max-width: 980px) { .tfm-rules { grid-template-columns: repeat(2, minmax(0, 1fr)); } .tfm-recon li { flex-wrap: wrap; } }
@media (max-width: 600px) { .tfm-rules { grid-template-columns: 1fr; } }
.tfm-ledger-accounts a > span > .tfm-ledger-code { align-self: flex-start; margin-bottom: 2px; }

/* ---------------------------------------------------------------------
   2.94 "View as": the banner on every page during the super admin's
   read-only preview of someone's account, and the card that starts one.
   --------------------------------------------------------------------- */
.fx-viewas { position: sticky; top: 0; z-index: 2000; display: flex; align-items: center; gap: 12px; padding: 8px 16px; background: linear-gradient(90deg, #0f172a, #1e293b); color: #fff; box-shadow: 0 8px 20px -10px rgba(15, 23, 42, .7); border-bottom: 2px solid #f59e0b; }
.fx-viewas__icon { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; font-size: 14px; color: #0f172a; background: linear-gradient(145deg, #fcd34d, #f59e0b); box-shadow: 0 6px 14px -6px rgba(245, 158, 11, .9); animation: fx-viewas-pulse 2.4s ease-in-out infinite; }
.fx-viewas__text { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.fx-viewas__text strong { font-size: .9rem; }
.fx-viewas__text small { font-size: .74rem; color: rgba(255, 255, 255, .7); }
.fx-viewas__form { margin: 0; flex: none; }
.fx-viewas__btn { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .08); color: #fff; font: inherit; font-size: .82rem; font-weight: 700; cursor: pointer; transition: background .2s ease, border-color .2s ease, transform .2s ease; }
.fx-viewas__btn:hover { background: #fff; color: #0f172a; border-color: #fff; transform: translateY(-1px); }
.fx-viewas__btn:focus-visible { outline: 2px solid #f59e0b; outline-offset: 2px; }
@keyframes fx-viewas-pulse { 0%, 100% { box-shadow: 0 6px 14px -6px rgba(245, 158, 11, .9); } 50% { box-shadow: 0 0 0 5px rgba(245, 158, 11, .18), 0 6px 14px -6px rgba(245, 158, 11, .9); } }
@media (max-width: 600px) { .fx-viewas { flex-wrap: wrap; } .fx-viewas__form { width: 100%; } .fx-viewas__btn { width: 100%; justify-content: center; } }
@media (prefers-reduced-motion: reduce) { .fx-viewas__icon { animation: none; } }

.fx-viewas-card { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: var(--space-5); padding: 18px 20px; border-radius: 18px; border: 1px dashed var(--line-strong); background: var(--surface); }
.fx-viewas-card__icon { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; font-size: 17px; color: #fff; background: linear-gradient(145deg, #334155, #0f172a); box-shadow: 0 10px 18px -10px rgba(15, 23, 42, .8), inset 0 1px 0 rgba(255, 255, 255, .2); }
.fx-viewas-card__text { flex: 1 1 260px; min-width: 0; }
.fx-viewas-card__text strong { display: block; font-size: 1rem; color: var(--text-strong); }
.fx-viewas-card__text small { font-size: .8rem; color: var(--text-muted); }
.fx-viewas-card form { display: flex; gap: 8px; flex: 1 1 360px; margin: 0; }
.fx-viewas-card form .input { flex: 1; min-width: 0; }
.fx-viewas-card form .btn { margin: 0; white-space: nowrap; }

/* ---------------------------------------------------------------------
   2.95 Campaigns, referral analytics and integrations.
   --------------------------------------------------------------------- */
.fx-campaign { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: var(--space-5); align-items: start; }
.fx-campaign__form { padding: 22px; display: grid; gap: var(--space-4); }
.fx-campaign__form fieldset { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: var(--space-4); }
.fx-campaign__form fieldset[disabled] { opacity: .75; }
.fx-campaign__actions { display: flex; flex-wrap: wrap; gap: 8px; padding-top: var(--space-4); border-top: 1px solid var(--line); }
.fx-campaign__actions .btn { margin: 0; }
.fx-campaign__side { position: sticky; top: 80px; display: grid; gap: var(--space-4); }
.fx-campaign__preview { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.fx-campaign__preview > small { padding: 8px 14px 12px; }
.fx-campaign__bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: var(--surface-sunken); border-bottom: 1px solid var(--line); }
.fx-campaign__bar span { width: 9px; height: 9px; border-radius: 50%; background: var(--line-strong); }
.fx-campaign__bar strong { margin-left: 8px; font-size: .82rem; color: var(--text-strong); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fx-campaign__preview iframe { width: 100%; height: 520px; border: 0; background: #f4f4f5; }
.fx-campaign__send { display: flex; flex-direction: column; gap: 8px; padding: 18px; margin: 0; border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--line)); background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 7%, var(--surface)), var(--surface)); }
.fx-campaign__send .btn { margin: 4px 0 0; align-self: flex-start; }
@media (max-width: 1100px) { .fx-campaign { grid-template-columns: 1fr; } .fx-campaign__side { position: static; } }

.tfm-refsplit { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 20px; }
@media (max-width: 980px) { .tfm-refsplit { grid-template-columns: 1fr; } }

.tfm-integrations { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; }
.tfm-int { --c: #64748b; display: flex; flex-direction: column; gap: 12px; padding: 20px; border-radius: 18px; border: 1px solid var(--line); background: radial-gradient(120% 80% at 100% 0%, color-mix(in srgb, var(--c) 9%, transparent), transparent 55%), var(--surface); box-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 16px 30px -26px rgba(15, 23, 42, .45); }
.tfm-int.is-warn { border-color: rgba(245, 158, 11, .45); }
.tfm-int__head { display: flex; align-items: center; gap: 12px; }
.tfm-int__head h2 { flex: 1; margin: 0; font-size: 1.02rem; color: var(--text-strong); }
.tfm-int__icon { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; font-size: 17px; color: #fff; background: linear-gradient(145deg, color-mix(in srgb, var(--c) 75%, #fff), var(--c)); box-shadow: 0 10px 18px -10px color-mix(in srgb, var(--c) 85%, transparent), inset 0 1px 0 rgba(255, 255, 255, .35); }
.tfm-int.is-off .tfm-int__icon { filter: grayscale(.7); opacity: .8; }
.tfm-int__summary { margin: 0; font-size: .86rem; line-height: 1.45; color: var(--text); }
.tfm-int__facts { margin: 0; display: grid; gap: 0; }
.tfm-int__facts > div { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: .8rem; }
.tfm-int__facts dt { color: var(--text-muted); }
.tfm-int__facts dd { margin: 0; font-weight: 700; color: var(--text-strong); text-align: right; overflow-wrap: anywhere; }
.tfm-int__copy { display: flex; flex-direction: column; gap: 4px; }
.tfm-int__copy small { font-size: .68rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted); }
.tfm-int__copy > span { display: flex; align-items: center; gap: 6px; padding: 6px 6px 6px 10px; border-radius: 10px; background: var(--surface-sunken); border: 1px solid var(--line); }
.tfm-int__copy code { flex: 1; min-width: 0; font-size: .76rem; overflow-wrap: anywhere; color: var(--text-strong); }
.tfm-int__copybtn { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--text-muted); cursor: pointer; }
.tfm-int__copybtn:hover { color: var(--text-strong); border-color: var(--line-strong); }
.tfm-int__actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 4px; }
.tfm-int__actions form { margin: 0; }
.tfm-int__actions .btn { margin: 0; }

.fx-unsub { max-width: 560px; margin: var(--space-12) auto; padding: 36px 32px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.fx-unsub h1 { margin: 6px 0 0; font-size: 1.6rem; }
.fx-unsub p { margin: 0 0 8px; color: var(--text-muted); }
.fx-unsub__icon { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 18px; font-size: 24px; color: #fff; background: linear-gradient(145deg, #334155, #0f172a); box-shadow: 0 12px 24px -12px rgba(15, 23, 42, .7); }
.fx-unsub__icon.is-ok { background: linear-gradient(145deg, #34d399, #059669); }
.fx-unsub__icon.is-bad { background: linear-gradient(145deg, #fbbf24, #d97706); }

/* ---------------------------------------------------------------------
   2.96 Website text: every text on the site, editable by page.
   --------------------------------------------------------------------- */
.fx-texts { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: var(--space-5); align-items: start; }
.fx-texts__pages { position: sticky; top: 80px; padding: 14px; max-height: calc(100vh - 110px); display: flex; flex-direction: column; gap: 10px; }
.fx-texts__search { position: relative; margin: 0; }
.fx-texts__search i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--text-muted); font-size: 13px; }
.fx-texts__search .input { padding-left: 34px; }
.fx-texts__filter { height: 34px; font-size: .84rem; }
.fx-texts__list { overflow-y: auto; display: grid; gap: 4px; padding-right: 4px; }
.fx-texts__list details > summary { display: flex; justify-content: space-between; align-items: center; padding: 8px 10px; border-radius: 10px; font-size: .84rem; font-weight: 800; color: var(--text-strong); cursor: pointer; list-style: none; }
.fx-texts__list details > summary::-webkit-details-marker { display: none; }
.fx-texts__list details[open] > summary { background: var(--surface-sunken); }
.fx-texts__list summary small, .fx-texts__list a small { font-size: .7rem; font-weight: 700; color: var(--text-muted); }
.fx-texts__list a { display: flex; justify-content: space-between; gap: 8px; margin-left: 10px; padding: 6px 10px; border-radius: 8px; font-size: .8rem; color: var(--text); text-decoration: none; }
.fx-texts__list a:hover { background: var(--surface-sunken); }
.fx-texts__list a.is-on { background: var(--tfm-ink, #0f172a); color: #fff; }
.fx-texts__list a.is-on small { color: rgba(255, 255, 255, .7); }
.fx-texts__list a b { color: #d97706; }
.fx-texts__head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.fx-texts__head h2 { margin: 0; font-size: 1.2rem; }
.fx-text { display: grid; gap: 8px; margin: 0 0 10px; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); scroll-margin-top: 90px; }
.fx-text.is-changed { border-color: rgba(245, 158, 11, .5); background: linear-gradient(135deg, rgba(245, 158, 11, .05), var(--surface) 50%); }
.fx-text__meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.fx-text__state { font-size: .78rem; font-weight: 700; color: var(--text-muted); }
.fx-text__state.is-ok { color: #059669; }
.fx-text__state.is-bad { color: #dc2626; }
.fx-text__orig { font-size: .76rem; color: var(--text-muted); }
.fx-text__actions { display: flex; gap: 6px; }
.fx-text__actions .btn { margin: 0; }
@media (max-width: 980px) { .fx-texts { grid-template-columns: 1fr; } .fx-texts__pages { position: static; max-height: 360px; } }

/* ---------------------------------------------------------------------
   2.97 Library: items with review state, usage and review actions.
   --------------------------------------------------------------------- */
.fx-library { display: grid; gap: 12px; margin-bottom: var(--space-6); }
.fx-library__count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; margin-left: 4px; border-radius: 999px; font-size: .7rem; color: #fff; background: #f59e0b; }
.tfm-bizcash__item.is-on { border-color: var(--tfm-ink, #0f172a); box-shadow: 0 0 0 2px color-mix(in srgb, var(--tfm-ink, #0f172a) 15%, transparent); }
.fx-libitem { display: grid; gap: 10px; padding: 16px 18px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); box-shadow: 0 1px 2px rgba(15, 23, 42, .04); }
.fx-libitem.is-pending, .fx-libitem.is-changes_requested { border-color: rgba(245, 158, 11, .5); background: linear-gradient(135deg, rgba(245, 158, 11, .05), var(--surface) 50%); }
.fx-libitem.is-rejected { opacity: .75; }
.fx-libitem header { display: flex; align-items: center; gap: 12px; }
.fx-libitem__type { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; color: #fff; background: linear-gradient(145deg, #818cf8, #4f46e5); box-shadow: 0 8px 16px -8px rgba(79, 70, 229, .8); }
.fx-libitem__title { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.fx-libitem__title strong { color: var(--text-strong); }
.fx-libitem__title small { font-size: .78rem; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fx-libitem__stats { margin: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.fx-libitem__stats > div { padding: 8px 10px; border-radius: 10px; background: var(--surface-sunken); }
.fx-libitem__stats dt { font-size: .64rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted); }
.fx-libitem__stats dd { margin: 0; font-weight: 800; color: var(--text-strong); font-variant-numeric: tabular-nums; }
.fx-libitem__who { margin: 0; font-size: .8rem; color: var(--text-muted); }
.fx-libitem__note { margin: 0; padding: 8px 12px; border-radius: 10px; font-size: .82rem; background: rgba(245, 158, 11, .1); color: var(--text); }
.fx-libitem__review { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.fx-libitem__review .input { flex: 1 1 260px; height: 34px; }
.fx-libitem__review .btn { margin: 0; }
.fx-library__add { padding: 22px; }
.fx-library__add h2 { margin: 0 0 14px; font-size: 1.1rem; }
@media (max-width: 760px) { .fx-libitem__stats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---------------------------------------------------------------------
   2.98 Emails page and placeholder hints.
   --------------------------------------------------------------------- */
.fx-text__keep { margin: 6px 0 0; font-size: .76rem; color: var(--text-muted); }
.fx-text__keep code { padding: 1px 6px; border-radius: 6px; font-size: .74rem; color: #9a3412; background: rgba(249, 115, 22, .1); }
.fx-emails__list a { display: flex; align-items: center; gap: 10px; margin-left: 0; padding: 8px 10px; }
.fx-emails__list a > i { width: 16px; color: var(--text-muted); }
.fx-emails__list a.is-on > i { color: var(--brand, #f97316); }
.fx-emails__list a > span { flex: 1; min-width: 0; }
.fx-emails__dot { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; font-size: .66rem; color: #fff; background: #f59e0b; }
.fx-emails__when { margin: 0 0 16px; padding: 10px 14px; border-radius: 12px; font-size: .85rem; color: var(--text); background: var(--surface-sunken); }
.fx-emails__when i { color: #0ea5e9; margin-right: 6px; }
.fx-emails__label { font-weight: 700; font-size: .82rem; color: var(--text-strong); }
.fx-emails__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.fx-emails__preview { position: sticky; top: 84px; display: grid; gap: 8px; }
.fx-emails__preview-label { font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted); }
.fx-emails__preview iframe { width: 100%; height: 620px; border: 1px solid var(--line); border-radius: 16px; background: #0b0f16; box-shadow: 0 18px 40px -24px rgba(15, 23, 42, .45); }
@media (max-width: 1100px) { .fx-emails__grid { grid-template-columns: minmax(0, 1fr); } .fx-emails__preview { position: static; } .fx-emails__preview iframe { height: 520px; } }

/* ---------------------------------------------------------------------
   2.99 Course access: who can open a course, and what is wrong.
   --------------------------------------------------------------------- */
.fx-access { display: grid; gap: 14px; margin: var(--space-5) 0; padding: 18px 20px; border-radius: 16px; border: 1px solid var(--line); background: linear-gradient(160deg, rgba(14, 165, 233, .05), var(--surface) 45%); }
.fx-access__head { display: flex; gap: 12px; align-items: flex-start; }
.fx-access__head h3 { margin: 0; font-size: 1.05rem; }
.fx-access__head p { margin: 2px 0 0; font-size: .84rem; color: var(--text-muted); }
.fx-access__icon { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; color: #fff; background: linear-gradient(145deg, #38bdf8, #0284c7); box-shadow: 0 8px 16px -8px rgba(2, 132, 199, .8); }
.fx-access__summary { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 8px; }
.fx-access__summary > div { padding: 10px 12px; border-radius: 12px; background: var(--surface-sunken); }
.fx-access__summary dt { font-size: .64rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted); }
.fx-access__summary dd { margin: 2px 0 0; font-weight: 700; font-size: .88rem; color: var(--text-strong); }
.fx-access__issue { margin: 0; padding: 8px 12px; border-radius: 10px; font-size: .84rem; color: #92400e; background: rgba(245, 158, 11, .12); }
.fx-access__issue--inline { display: block; margin: 2px 0; padding: 4px 8px; font-size: .76rem; }
.fx-access__exception { margin: 0; padding: 8px 12px; border-radius: 10px; font-size: .84rem; background: rgba(99, 102, 241, .1); }
.fx-access__exception-box { margin-top: 4px; }

/* ---------------------------------------------------------------------
   2.99 Blog editor: a calm writing screen with a settings column.
   --------------------------------------------------------------------- */
.fx-writer__bar { position: sticky; top: 64px; z-index: 20; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0 0 18px; padding: 10px 12px; border-radius: 14px; border: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(8px); box-shadow: 0 10px 24px -20px rgba(15, 23, 42, .5); }
.fx-writer__bar .btn { margin: 0; }
.fx-writer__spacer { flex: 1; }
.fx-writer__saved { font-size: .78rem; color: var(--text-muted); }
.fx-writer__grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
.fx-writer__main { min-width: 0; }
.fx-writer__title { width: 100%; border: 0; outline: 0; background: transparent; font-size: clamp(1.6rem, 2.4vw, 2.3rem); font-weight: 800; letter-spacing: -.02em; color: var(--text-strong); padding: 4px 0; }
.fx-writer__title::placeholder { color: var(--text-muted); opacity: .6; }
.fx-writer__permalink { display: flex; align-items: center; gap: 4px; margin: 2px 0 14px; font-size: .8rem; color: var(--text-muted); overflow: hidden; }
.fx-writer__permalink span { white-space: nowrap; }
.fx-writer__permalink input { flex: 1; min-width: 80px; border: 0; border-bottom: 1px dashed var(--line-strong); background: transparent; font: inherit; color: var(--text-strong); padding: 2px 0; outline: 0; }
.fx-writer__toolbar { position: sticky; top: 128px; z-index: 10; display: flex; flex-wrap: wrap; align-items: center; gap: 2px; padding: 6px; border: 1px solid var(--line); border-bottom: 0; border-radius: 14px 14px 0 0; background: var(--surface-sunken); }
.fx-writer__toolbar button { width: 34px; height: 34px; border: 0; border-radius: 8px; background: transparent; color: var(--text); cursor: pointer; }
.fx-writer__toolbar button:hover, .fx-writer__toolbar button.is-on { background: var(--surface); color: var(--text-strong); box-shadow: 0 1px 2px rgba(15, 23, 42, .1); }
.fx-writer__block { height: 34px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--text); font-size: .84rem; padding: 0 8px; }
.fx-writer__sep { width: 1px; height: 22px; margin: 0 4px; background: var(--line-strong); }
.fx-writer__body, .fx-writer__source { min-height: 460px; padding: 24px 28px; border: 1px solid var(--line); border-radius: 0 0 14px 14px; background: var(--surface); outline: 0; font-size: 1.05rem; line-height: 1.75; }
.fx-writer__body:focus { box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand, #f97316) 18%, transparent); }
.fx-writer__body.is-empty::before { content: attr(data-placeholder); color: var(--text-muted); pointer-events: none; }
.fx-writer__body.is-drop { outline: 2px dashed var(--brand, #f97316); outline-offset: -8px; }
.fx-writer__body img { max-width: 100%; height: auto; border-radius: 12px; }
.fx-writer__body figure { margin: 18px 0; }
.fx-writer__body figcaption { font-size: .85rem; color: var(--text-muted); text-align: center; }
.fx-writer__body table { width: 100%; border-collapse: collapse; }
.fx-writer__body th, .fx-writer__body td { border: 1px solid var(--line); padding: 6px 10px; }
.fx-writer__source { width: 100%; font-family: var(--font-mono); font-size: .82rem; }
.fx-writer__stats { margin: 8px 2px 0; font-size: .8rem; color: var(--text-muted); }
.fx-writer__restore { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0 0 10px; padding: 8px 12px; border-radius: 12px; font-size: .84rem; background: rgba(14, 165, 233, .1); }
.fx-writer__side { position: sticky; top: 128px; display: grid; gap: 12px; }
.fx-writer__box { display: grid; gap: 6px; padding: 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); }
.fx-writer__box h3 { margin: 0 0 4px; font-size: .86rem; font-weight: 800; color: var(--text-strong); }
.fx-writer__box h3 i { color: var(--text-muted); margin-right: 4px; }
.fx-writer__cover { display: grid; place-items: center; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: var(--surface-sunken); color: var(--text-muted); font-size: .84rem; }
.fx-writer__cover img { width: 100%; height: 100%; object-fit: cover; }
.fx-writer__serp { display: grid; gap: 2px; padding: 10px 12px; border-radius: 10px; background: var(--surface-sunken); font-family: Arial, sans-serif; }
.fx-writer__serp small { color: #15803d; font-size: .74rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fx-writer__serp strong { color: #1a0dab; font-size: .98rem; font-weight: 500; }
.fx-writer__serp span { color: #4d5156; font-size: .8rem; }
.fx-writer__box small.is-over { color: #dc2626; font-weight: 700; }
.fx-writer__meta { margin: 0; font-size: .78rem; color: var(--text-muted); }
.fx-writer__delete { margin-top: 18px; }
@media (max-width: 1100px) { .fx-writer__grid { grid-template-columns: minmax(0, 1fr); } .fx-writer__side, .fx-writer__toolbar { position: static; } }
.fx-tabcount { margin-left: 4px; font-size: .72rem; color: var(--text-muted); }
.fx-postlist { display: grid; gap: 8px; }
.fx-postrow { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto auto auto; align-items: center; gap: 14px; padding: 10px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); color: inherit; text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.fx-postrow:hover { border-color: var(--line-strong); box-shadow: 0 8px 20px -16px rgba(15, 23, 42, .5); }
.fx-postrow__cover { display: grid; place-items: center; width: 72px; height: 48px; border-radius: 10px; overflow: hidden; background: var(--surface-sunken); color: var(--text-muted); }
.fx-postrow__cover img { width: 100%; height: 100%; object-fit: cover; }
.fx-postrow__main { min-width: 0; display: flex; flex-direction: column; }
.fx-postrow__main strong { color: var(--text-strong); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fx-postrow__main small { font-size: .76rem; color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fx-postrow__star { color: #f59e0b; font-size: .8rem; }
.fx-postrow__when, .fx-postrow__views { font-size: .78rem; color: var(--text-muted); white-space: nowrap; }
@media (max-width: 760px) { .fx-postrow { grid-template-columns: 56px minmax(0, 1fr) auto; } .fx-postrow__when, .fx-postrow__views { display: none; } }
.tfm-post__tags { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 18px 0; color: var(--text-muted); }
.prose figure { margin: 22px 0; } .prose figure img { border-radius: 14px; } .prose figcaption { margin-top: 6px; font-size: .86rem; color: var(--text-muted); text-align: center; }
.prose table { width: 100%; border-collapse: collapse; margin: 18px 0; } .prose th, .prose td { border: 1px solid var(--line); padding: 8px 12px; text-align: left; } .prose th { background: var(--surface-sunken); }

/* ---------------------------------------------------------------------
   2.100 Brand asset centre.
   --------------------------------------------------------------------- */
.fx-brand__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; margin-bottom: 18px; }
.fx-brand__tile { margin: 0; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--surface); }
.fx-brand__stage { display: grid; place-items: center; height: 170px; padding: 18px; }
.fx-brand__stage img { max-width: 100%; max-height: 130px; }
.fx-brand__tile figcaption { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 14px; font-size: .84rem; border-top: 1px solid var(--line); }
.fx-brand__card { padding: 20px; margin-bottom: 16px; }
.fx-brand__card h2 { margin: 0 0 14px; font-size: 1.05rem; }
.fx-brand__colours { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.fx-brand__colour { display: grid; gap: 2px; font-size: .8rem; }
.fx-brand__colour span { height: 56px; border-radius: 12px; border: 1px solid var(--line); box-shadow: inset 0 -10px 20px -14px rgba(0, 0, 0, .25); }
.fx-brand__colour small { color: var(--text-muted); }
.fx-brand__pngs { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; }
.fx-brand__pngs a { display: grid; gap: 4px; justify-items: center; font-size: .72rem; color: var(--text-muted); text-decoration: none; }
.fx-brand__pngs img { max-height: 90px; max-width: 220px; border-radius: 8px; background: repeating-conic-gradient(#f1f5f9 0 25%, #fff 0 50%) 50% / 12px 12px; }
.fx-brand__rules { margin: 0; padding-left: 18px; display: grid; gap: 6px; font-size: .9rem; }

/* ---------------------------------------------------------------------
   2.100 Approved brand: emblem beside the wordmark; navy RATEL, orange i.
   --------------------------------------------------------------------- */
.wordmark-emblem { display: inline-flex; align-items: center; margin-right: .4em; vertical-align: middle; }
.wordmark-emblem img { width: auto; height: 1.55em; display: block; }
.wordmark-emblem__dark { display: none !important; }
[data-theme="dark"] .wordmark-emblem__light { display: none !important; }
[data-theme="dark"] .wordmark-emblem__dark { display: block !important; }
.wordmark { color: var(--brand-ink-navy, #0B1F44); vertical-align: middle; }
.wordmark__i { color: var(--brand-orange, #F47721); }
[data-theme="dark"] .wordmark { color: #fff; }
.fx-brand { align-items: center; }
.fx-brand .wordmark { background: none; filter: none; -webkit-text-fill-color: currentColor; color: var(--brand-ink-navy, #0B1F44); }
.fx-brand .wordmark__i { -webkit-text-fill-color: var(--brand-orange, #F47721); color: var(--brand-orange, #F47721); }
[data-theme="dark"] .fx-brand .wordmark { color: #fff; -webkit-text-fill-color: #fff; }
.wordmark__suffix { color: var(--brand-orange, #F47721); vertical-align: middle; }
.fx-cert__brand .wordmark-emblem img { height: 1.3em; }
.brand-tagline { display: block; margin-top: 6px; font-size: .78rem; font-weight: 600; letter-spacing: .04em; color: var(--text-muted); }
.brand-slogan { margin: 12px 0 0; font-weight: 800; font-size: .98rem; color: var(--text-strong); letter-spacing: -.01em; }
/* 2.100: the emblem keeps its size in tight headers (the app sidebar). */
.wordmark-emblem { flex: none; }
.wordmark-emblem img { flex: none; width: 1.8em; height: auto; }
.fx-brand { min-width: 0; gap: .3rem; }
.fx-brand .wordmark__suffix { white-space: nowrap; }
/* 2.100: the full lock-up fits the app sidebar header (emblem, RATELi, TFM Academy). */
.fx-brand { font-size: 1.2rem; }
.fx-brand .wordmark-emblem img { width: 1.6em; }
.fx-brand .wordmark__suffix { font-size: .62em; letter-spacing: .05em; margin-left: .4rem; padding-left: .4rem; }
/* 2.100: on dark panels (the sign-in side panel) the light-on-dark emblem, whatever the theme. */
.tfm-console__side .wordmark-emblem__light { display: none !important; }
.tfm-console__side .wordmark-emblem__dark { display: block !important; }

/* 2.101: the main slogan leads the app footer; the floating assistant never covers the contact icons. */
.fx-app-footer__motto { font-size: .9rem; font-weight: 800; letter-spacing: -.01em; color: var(--text-strong); }
.fx-app-footer__brand .fx-app-footer__slogan { font-size: .62rem; }
.fx-app-footer__contacts { padding-right: 92px; }
@media (max-width: 760px) { .fx-app-footer__contacts { padding-right: 0; justify-content: center; padding-bottom: 76px; } }

/* 2.101: on phones the website header keeps its menu button in view: the
   emblem and RATELi stay, "TFM Academy" folds away (it is in the page
   below and in the menu), and the emblem is a touch smaller. */
@media (max-width: 600px) {
  .site-header .brand__mark .wordmark__suffix { display: none; }
  .site-header .brand__mark .wordmark-emblem img { width: 1.45em; }
  .site-header .brand { min-width: 0; flex: 0 1 auto; }
}
@media (max-width: 360px) {
  .site-header .brand__mark { font-size: 1.12rem; }
}

/* 2.101: on phones the period buttons sit in one tidy row of five equal
   pills (no lonely "12 months" on a second line), the custom dates sit side
   by side with Apply across the full width, and Export follows full width. */
@media (max-width: 640px) {
  .tfm-biz__range { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 2px; width: 100%; border-radius: 16px; }
  .tfm-biz__range a { padding: 9px 2px; font-size: 12px; text-align: center; white-space: nowrap; border-radius: 12px; }
  .tfm-bizhead__tools { display: grid; gap: 10px; width: 100%; }
  .tfm-bizhead__custom { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; width: 100%; padding: 10px; }
  .tfm-bizhead__custom label { min-width: 0; }
  .tfm-bizhead__custom .input { width: 100%; min-width: 0; }
  .tfm-bizhead__custom .btn { grid-column: 1 / -1; justify-content: center; margin: 0; }
  .tfm-bizhead__export { justify-content: center; width: 100%; }
}
@media (max-width: 360px) {
  .tfm-biz__range a { font-size: 11px; }
}
@media (max-width: 640px) {
  .tfm-bizhead { flex-direction: column; align-items: stretch; }
  .tfm-bizhead__tools { align-self: stretch; max-width: none; margin-left: 0; margin-right: 0; }
}
@media (max-width: 640px) {
  .tfm-bizhead__tools { grid-template-columns: minmax(0, 1fr); justify-items: stretch; }
  .tfm-bizhead__tools > * { width: 100%; max-width: none; justify-self: stretch; box-sizing: border-box; }
}
@media (max-width: 640px) {
  /* As many equal pills as the selector has (five on Business overview, four on Library and Finance). */
  .tfm-biz__range { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) { .tfm-biz__range { width: 100% !important; } }

/* =====================================================================
   2.102 Phones: a calm, readable home hero, RATELi TFMA in the header,
   and an app-style tab bar at the bottom.
   ===================================================================== */
.wm-short { display: none; }
.fx-tabbar { display: none; }

@media (max-width: 600px) {
  /* Header: RATELi TFMA (the full name returns on wider screens). */
  .site-header .brand__mark .wordmark__suffix { display: inline; font-size: .58em; margin-left: .35rem; padding-left: .35rem; letter-spacing: .06em; }
  .site-header .brand__mark .wm-long { display: none; }
  /* 2.103.2: TFMA carries hidden (so it never shows on desktop, whatever
     stylesheet a browser has); [hidden] is !important, so this is too. */
  .site-header .brand__mark .wm-short, .site-header .brand__mark .wm-short[hidden] { display: inline !important; }
}

@media (max-width: 700px) {
  /* Hero: a steady height from the screen, content centred and clear of the header. */
  .fx-carousel { min-height: min(660px, calc(100vh - 72px)); min-height: min(660px, calc(100svh - 72px)); }
  .fx-slide { align-items: center; }
  .fx-slide__inner { align-self: center; justify-items: center; text-align: center; gap: 14px; padding-top: 24px; padding-bottom: 92px; }
  .fx-slide__eyebrow { justify-content: center; }
  .fx-slide__title { max-width: 17ch; margin-inline: auto; font-size: clamp(28px, 8.2vw, 36px); line-height: 1.08; }
  .fx-slide__text { max-width: 34ch; margin-inline: auto; font-size: 15px; line-height: 1.55; }
  .fx-slide__actions { justify-content: center; gap: 10px; margin-top: 4px; }
  .fx-slide__actions .btn { min-height: 42px; padding: 9px 18px; font-size: 14px; border-radius: 12px; }
  /* The artwork stays behind the words, dimmed, and never moves. */
  .fx-slide__bg { opacity: .32; transform: none !important; translate: none !important; transition: none !important; will-change: auto; }
  .fx-slide__veil { background: linear-gradient(180deg, rgba(8, 8, 12, .55) 0%, rgba(8, 8, 12, .78) 60%, rgba(8, 8, 12, .9) 100%); }
  /* A plain crossfade between slides: no sliding, zooming or staggered text. */
  .fx-slide { transition: opacity .5s ease, visibility 0s linear .5s; }
  .fx-slide.is-active { transition: opacity .5s ease, visibility 0s; }
  .fx-slide.is-active .fx-slide__eyebrow, .fx-slide.is-active .fx-slide__title, .fx-slide.is-active .fx-slide__text, .fx-slide.is-active .fx-slide__actions { animation: none !important; }
  .fx-carousel__controls { bottom: 22px; }
}

@media (max-width: 760px) {
  /* The tab bar. */
  .fx-tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--surface, #fff) 94%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line); box-shadow: 0 -10px 30px -22px rgba(15, 23, 42, .45); }
  .fx-tabbar__item { display: grid; justify-items: center; align-content: center; gap: 3px; min-height: 50px; padding: 4px 2px; border-radius: 12px; font-size: 10.5px; font-weight: 700; letter-spacing: .01em; color: var(--text-muted); text-decoration: none; -webkit-tap-highlight-color: transparent; }
  .fx-tabbar__item i { font-size: 18px; line-height: 1; }
  .fx-tabbar__item.is-on { color: var(--brand-orange, #F47721); background: color-mix(in srgb, var(--brand-orange, #F47721) 9%, transparent); }
  .fx-tabbar__logo { display: grid; place-items: center; height: 20px; }
  .fx-tabbar__logo img { width: 26px; height: auto; display: block; }
  .fx-tabbar__logo .wordmark-emblem__dark { display: none; }
  [data-theme="dark"] .fx-tabbar__logo .wordmark-emblem__light { display: none; }
  [data-theme="dark"] .fx-tabbar__logo .wordmark-emblem__dark { display: block; }
  /* Room for it: the page ends above it, and the assistant sits above it. */
  body.site-front { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
  .site-front .fx-dock { bottom: calc(76px + env(safe-area-inset-bottom)); }
}
@media (max-width: 700px) {
  /* A little more of the artwork shows; the words still lead. */
  .fx-slide__bg { opacity: .46; }
  .fx-slide__veil { background: linear-gradient(180deg, rgba(8, 8, 12, .42) 0%, rgba(8, 8, 12, .7) 55%, rgba(8, 8, 12, .86) 100%); }
}

/* 2.103: the one Delete button (partials/delete-button.php). Red text on a
   quiet button, a soft red wash on hover; it never takes the orange. */
.fx-delete { display: inline-flex; margin: 0; }
.fx-delete__btn { color: var(--bear, #dc2626); }
.fx-delete__btn:hover, .fx-delete__btn:focus-visible { color: var(--bear, #dc2626); background: color-mix(in srgb, var(--bear, #dc2626) 10%, transparent); }
.fx-delete__btn i { transition: transform .18s ease; }
.fx-delete__btn:hover i { transform: rotate(-8deg) scale(1.08); }
.fx-row-actions { display: inline-flex; align-items: center; gap: var(--space-2, 8px); flex-wrap: wrap; }
.fx-libitem__delete { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3, 12px); flex-wrap: wrap; margin-top: var(--space-3, 12px); padding-top: var(--space-3, 12px); border-top: 1px dashed var(--line); }

/* 2.104: the rate in force (exchange rates, database updates). A calm card
   with a green tile; amber when payments are refused. Never orange: orange
   is for the brand and the primary action. */
.fx-rate { display: flex; align-items: center; justify-content: space-between; gap: var(--space-5, 20px); flex-wrap: wrap; padding: var(--space-5, 20px) var(--space-6, 24px); margin-bottom: var(--space-6, 24px); border: 1px solid var(--line); border-radius: 18px; background: linear-gradient(135deg, color-mix(in srgb, #10b981 7%, var(--surface, #fff)), var(--surface, #fff) 60%); box-shadow: 0 14px 34px -26px rgba(15, 23, 42, .45); }
.fx-rate.is-off { background: linear-gradient(135deg, color-mix(in srgb, #f59e0b 10%, var(--surface, #fff)), var(--surface, #fff) 60%); }
.fx-rate__main { display: flex; align-items: center; gap: var(--space-4, 16px); min-width: 0; }
.fx-rate__main > div { display: grid; gap: 2px; min-width: 0; }
.fx-rate__icon { flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; font-size: 22px; color: #fff; background: linear-gradient(145deg, #34d399, #059669); box-shadow: 0 10px 22px -12px rgba(5, 150, 105, .8), inset 0 1px 0 rgba(255, 255, 255, .35); }
.fx-rate.is-off .fx-rate__icon { background: linear-gradient(145deg, #fbbf24, #d97706); box-shadow: 0 10px 22px -12px rgba(217, 119, 6, .8), inset 0 1px 0 rgba(255, 255, 255, .35); }
.fx-rate__value { font-size: clamp(18px, 2.4vw, 26px); line-height: 1.2; }
.fx-rate__main small { color: var(--text-muted); font-size: 12.5px; }
.fx-rate__examples { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-2, 8px); margin: 0; }
.fx-rate__examples div { padding: 8px 12px; border-radius: 12px; background: var(--surface-2, rgba(148, 163, 184, .1)); text-align: center; }
.fx-rate__examples dt { font-size: 11px; color: var(--text-muted); font-weight: 700; letter-spacing: .04em; }
.fx-rate__examples dd { margin: 0; font-weight: 700; font-size: 13.5px; }
.fx-paycards--2 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
@media (max-width: 700px) { .fx-rate__examples { grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; } }
.tfm-testkey { display: flex; gap: 10px; align-items: flex-start; margin: var(--space-3, 12px) 0 0; padding: 10px 14px; border-radius: 12px; font-size: 13px; color: #92400e; background: color-mix(in srgb, #f59e0b 12%, transparent); border: 1px solid color-mix(in srgb, #f59e0b 35%, transparent); }
[data-theme="dark"] .tfm-testkey { color: #fcd34d; }
.tfm-fxlink { display: flex; align-items: center; gap: var(--space-4, 16px); margin: var(--space-3, 12px) 0 var(--space-4, 16px); padding: 14px 18px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface, #fff); color: inherit; text-decoration: none; transition: transform .18s ease, box-shadow .18s ease; }
.tfm-fxlink:hover { transform: translateY(-1px); box-shadow: 0 12px 26px -20px rgba(15, 23, 42, .5); }
.tfm-fxlink > span:nth-child(2) { display: grid; gap: 2px; flex: 1; min-width: 0; }
.tfm-fxlink small { color: var(--text-muted); }
.tfm-fxlink__icon { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; color: #fff; background: linear-gradient(145deg, #34d399, #059669); }
.tfm-fxlink.is-off .tfm-fxlink__icon { background: linear-gradient(145deg, #fbbf24, #d97706); }

/* 2.104: the checkout (partials/pay-checkout.php). Two columns: choices on
   the left, a sticky summary on the right with the exact shilling amount.
   Selected method in green, Coming soon dashed and grey, orange only on the
   one button that sends the payment request. */
.fx-checkout { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(280px, 1fr); gap: var(--space-6, 24px); align-items: start; margin-top: var(--space-4, 16px); }
.fx-checkout__main { display: grid; gap: var(--space-5, 20px); min-width: 0; }
.fx-checkout__block { display: grid; gap: var(--space-3, 12px); }
.fx-checkout__block h3 { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 15px; }
.fx-checkout__block h3 > span { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; font-size: 12px; font-weight: 800; color: var(--text); background: var(--surface-sunken, rgba(148, 163, 184, .16)); }
.fx-checkout__free { display: flex; gap: 10px; align-items: center; padding: 14px 16px; border-radius: 14px; background: color-mix(in srgb, #10b981 10%, transparent); }
.fx-methods { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 10px; }
.fx-methods--2 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.fx-methods .tfm-soon { padding: 12px 14px; }
.tfm-soon__icon { gap: 2px; }
.tfm-soon__icon i + i { margin-left: -2px; }
.fx-method { position: relative; display: block; cursor: pointer; }
.fx-method > input { position: absolute; opacity: 0; pointer-events: none; }
.fx-method__body { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 16px; background: var(--surface, #fff); transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease; }
.fx-method:hover .fx-method__body { transform: translateY(-1px); box-shadow: 0 10px 24px -20px rgba(15, 23, 42, .55); }
.fx-method > input:checked + .fx-method__body { border-color: #10b981; box-shadow: 0 0 0 3px color-mix(in srgb, #10b981 18%, transparent); }
.fx-method > input:focus-visible + .fx-method__body { outline: 2px solid #10b981; outline-offset: 2px; }
.fx-method__icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; color: #fff; background: linear-gradient(145deg, #34d399, #059669); box-shadow: 0 8px 18px -12px rgba(5, 150, 105, .8), inset 0 1px 0 rgba(255, 255, 255, .3); }
.fx-method__text { display: grid; gap: 1px; min-width: 0; }
.fx-method__text strong { font-size: 14px; }
.fx-method__text small { font-size: 12px; color: var(--text-muted); }
.fx-method__badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 999px; font-size: 11px; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; }
.fx-method__badge.is-live { color: #047857; background: color-mix(in srgb, #10b981 16%, transparent); }
.fx-method__badge.is-live i { font-size: 7px; animation: fx-live-pulse 1.8s ease-in-out infinite; }
@keyframes fx-live-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
[data-theme="dark"] .fx-method__badge.is-live { color: #6ee7b7; }
.fx-checkout__part { display: grid; gap: 6px; max-width: 360px; }
.fx-checkout__part label { font-weight: 700; font-size: 13px; }
.fx-checkout__money, .fx-checkout__phone { display: flex; align-items: center; gap: 8px; padding: 0 12px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--surface, #fff); max-width: 360px; }
.fx-checkout__money > span { font-weight: 800; font-size: 13px; color: var(--text-muted); }
.fx-checkout__phone > i { color: #059669; }
.fx-checkout__money .input, .fx-checkout__phone .input { border: 0; box-shadow: none; background: transparent; padding-left: 0; }
.fx-checkout__money:focus-within, .fx-checkout__phone:focus-within { border-color: #10b981; box-shadow: 0 0 0 3px color-mix(in srgb, #10b981 16%, transparent); }
.fx-checkout__side { position: sticky; top: 88px; }
.fx-summary { display: grid; gap: 10px; padding: var(--space-5, 20px); border: 1px solid var(--line); border-radius: 20px; background: linear-gradient(160deg, color-mix(in srgb, #0b1f44 4%, var(--surface, #fff)), var(--surface, #fff)); box-shadow: 0 22px 44px -32px rgba(15, 23, 42, .55); }
.fx-summary__name { font-size: 17px; line-height: 1.3; }
.fx-summary__lines { display: grid; gap: 6px; margin: 6px 0 0; padding-top: 10px; border-top: 1px dashed var(--line); }
.fx-summary__lines div { display: flex; justify-content: space-between; gap: 12px; font-size: 13.5px; }
.fx-summary__lines dt { color: var(--text-muted); }
.fx-summary__lines dd { margin: 0; font-weight: 700; }
.fx-summary__total { display: grid; gap: 2px; padding: 14px; border-radius: 14px; background: color-mix(in srgb, #10b981 9%, var(--surface, #fff)); border: 1px solid color-mix(in srgb, #10b981 26%, transparent); }
.fx-summary__total > span { font-size: 12px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: .05em; }
.fx-summary__total strong { font-size: clamp(24px, 3vw, 30px); line-height: 1.15; letter-spacing: -.01em; }
.fx-summary__total small { font-size: 11.5px; }
.fx-summary__warn { display: flex; gap: 8px; margin: 0; padding: 10px 12px; border-radius: 12px; font-size: 13px; color: #92400e; background: color-mix(in srgb, #f59e0b 12%, transparent); }
[data-theme="dark"] .fx-summary__warn { color: #fcd34d; }
.fx-summary__authorise { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; cursor: pointer; }
.fx-summary__authorise input { margin-top: 3px; width: 18px; height: 18px; accent-color: #059669; flex: none; }
.fx-summary__secure { margin: 0; font-size: 12px; color: var(--text-muted); display: flex; gap: 6px; }
@media (max-width: 980px) { .fx-checkout { grid-template-columns: 1fr; } .fx-checkout__side { position: static; } }
/* Method cards as tiles: icon and badge on top, name and line below. */
.fx-methods:not(.fx-methods--2) { grid-template-columns: repeat(auto-fit, minmax(168px, 1fr)); }
.fx-methods:not(.fx-methods--2) .fx-method__body,
.fx-methods:not(.fx-methods--2) .tfm-soon { grid-template-columns: auto 1fr; grid-template-areas: "icon badge" "text text"; align-items: start; row-gap: 10px; min-height: 124px; height: 100%; }
.fx-methods:not(.fx-methods--2) .fx-method__icon, .fx-methods:not(.fx-methods--2) .tfm-soon__icon { grid-area: icon; }
.fx-methods:not(.fx-methods--2) .fx-method__badge, .fx-methods:not(.fx-methods--2) .tfm-soon__badge { grid-area: badge; justify-self: end; }
.fx-methods:not(.fx-methods--2) .fx-method__text, .fx-methods:not(.fx-methods--2) .tfm-soon__body { grid-area: text; }
.fx-methods:not(.fx-methods--2) .fx-method { height: 100%; }
.tfm-soon__icon { display: flex; align-items: center; justify-content: center; }
.fx-methods .tfm-soon__badge { padding: 3px 9px; font-size: 10.5px; }
@media (max-width: 600px) {
  .fx-methods:not(.fx-methods--2) { grid-template-columns: 1fr 1fr; gap: 8px; }
  .fx-methods:not(.fx-methods--2) .fx-method { grid-column: 1 / -1; }
  .fx-methods:not(.fx-methods--2) .fx-method__body { min-height: 0; }
  .fx-methods:not(.fx-methods--2) .tfm-soon { min-height: 0; padding: 10px; grid-template-columns: auto 1fr; grid-template-areas: "icon text" "badge badge"; row-gap: 8px; }
  .fx-methods .tfm-soon__icon { width: 32px; height: 32px; border-radius: 10px; font-size: 13px; }
  .fx-methods .tfm-soon__body strong { font-size: 12.5px; line-height: 1.25; }
  .fx-methods .tfm-soon__body small { display: none; }
  .fx-methods:not(.fx-methods--2) .tfm-soon__badge { justify-self: start; }
}

/* 2.104: the donation pop-up side by side: amount on the left, details and
   the button on the right, so it fits a laptop screen without scrolling. */
.tfm-give__panel { width: min(900px, 100%); }
.tfm-give__head { margin-bottom: var(--space-4); }
.tfm-give__cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: var(--space-6); align-items: start; }
.tfm-give__col { display: grid; gap: var(--space-4); align-content: start; min-width: 0; }
.tfm-give__cols > .tfm-give__col:first-child { padding-right: var(--space-6); border-right: 1px dashed var(--line); }
.tfm-give__tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tfm-give__cols .tfm-give__trust { justify-content: flex-start; margin: 0; flex-direction: column; gap: 6px; }
.tfm-give__cols .tfm-give__fine { text-align: left; margin: 0; }
.tfm-give__cols .tfm-give__fields { gap: var(--space-3); }
@media (max-width: 760px) {
  .tfm-give__cols { grid-template-columns: 1fr; gap: var(--space-4); }
  .tfm-give__cols > .tfm-give__col:first-child { padding-right: 0; border-right: 0; }
  .tfm-give__cols .tfm-give__trust { flex-direction: row; flex-wrap: wrap; }
}
.tfm-give__cols .tfm-give__tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* 2.104: sign-up side by side, so the whole form fits without scrolling. */
.tfm-console__card:has(.tfm-signup) { width: min(720px, 100%); }
.tfm-signup .grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tfm-signup.stack--5 { gap: var(--space-4); }
.tfm-signup__agree { display: grid; grid-template-columns: 1fr 1.4fr; gap: var(--space-3) var(--space-5); align-items: start; padding: 12px 14px; border-radius: 14px; background: var(--surface-sunken, rgba(148, 163, 184, .1)); font-size: 13px; }
.tfm-signup__agree .field__error { grid-column: 1 / -1; }
@media (max-width: 640px) {
  .tfm-signup .grid--2, .tfm-signup__agree { grid-template-columns: 1fr; }
}
.tfm-paytypes { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: var(--space-3, 12px); margin: var(--space-4, 16px) 0; }
.tfm-paytypes__item { display: grid; gap: 2px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface, #fff); color: inherit; text-decoration: none; }
.tfm-paytypes__item strong { font-size: 18px; }
.tfm-paytypes__rate { border-style: dashed; }
/* 2.104: the honest payment track on the pending page. */
.tfm-paytrack { list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin: var(--space-5, 20px) 0 0; padding: 0; counter-reset: none; }
.tfm-paytrack li { display: grid; justify-items: center; gap: 6px; padding: 10px 6px; border-radius: 12px; text-align: center; font-size: 12px; font-weight: 700; color: var(--text-muted); background: var(--surface-sunken, rgba(148, 163, 184, .1)); }
.tfm-paytrack li > span { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; font-size: 12px; background: var(--surface, #fff); border: 1.5px solid var(--line); }
.tfm-paytrack li.is-done { color: #047857; background: color-mix(in srgb, #10b981 10%, transparent); }
.tfm-paytrack li.is-done > span { color: #fff; border-color: #10b981; background: #10b981; }
.tfm-paytrack li.is-now { color: var(--text); background: color-mix(in srgb, #f59e0b 12%, transparent); }
.tfm-paytrack li.is-now > span { border-color: #f59e0b; animation: fx-live-pulse 1.6s ease-in-out infinite; }
.tfm-paytrack li.is-failed { color: #b91c1c; background: color-mix(in srgb, #ef4444 10%, transparent); }
.tfm-paytrack li.is-failed > span { color: #fff; border-color: #ef4444; background: #ef4444; }
@media (max-width: 640px) { .tfm-paytrack { grid-template-columns: 1fr; } .tfm-paytrack li { grid-template-columns: auto 1fr; justify-items: start; text-align: left; align-items: center; } }
