/* ==========================================================================
   RATELi TFM Academy - Layout shells
   Public header and footer, application sidebar, course player, terminal.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Public header
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: transparent;
  transition: background var(--duration-base) var(--ease-out), border-color var(--duration-base) var(--ease-out), backdrop-filter var(--duration-base);
  border-bottom: 1px solid transparent;
}

.site-header.is-stuck {
  background: var(--glass);
  backdrop-filter: blur(18px) saturate(160%);
  border-bottom-color: var(--glass-border);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  height: var(--header-height);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  font-size: 1.32rem;
  flex: none;
}

.brand:hover { color: inherit; }
.brand__mark { font-size: 1.32rem; }

.nav {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  margin-left: auto;
}

.nav__link {
  position: relative;
  padding: 0.55rem 0.82rem;
  border-radius: var(--radius-xs);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--text-muted);
  transition: color var(--duration-fast) var(--ease-out), background var(--duration-fast) var(--ease-out);
  white-space: nowrap;
}

.nav__link:hover { color: var(--text-strong); background: var(--surface-hover); }

.nav__link.is-active { color: var(--text-strong); }
.nav__link.is-active::after {
  content: "";
  position: absolute;
  left: 0.82rem;
  right: 0.82rem;
  bottom: 0.18rem;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
}

.header-actions { display: flex; align-items: center; gap: var(--space-2); flex: none; }

.nav-toggle { display: none; }

.mobile-nav {
  position: fixed;
  inset: var(--header-height) 0 0;
  z-index: var(--z-drawer);
  background: var(--page);
  padding: var(--space-6) var(--space-5) var(--space-10);
  overflow-y: auto;
  transform: translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--duration-base) var(--ease-out), transform var(--duration-base) var(--ease-out);
}

.mobile-nav.is-open { opacity: 1; transform: none; pointer-events: auto; }

.mobile-nav__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
  color: var(--text);
}

@media (max-width: 1080px) {
  .nav { display: none; }
  .nav-toggle { display: grid; place-items: center; }
  .header-actions .btn--ghost { display: none; }
}

/* On a phone the wordmark alone is 206px and the remaining controls are 190px
   more, so the header pushed every public page out to 435px and the whole site
   scrolled sideways. The call to action is not lost by hiding it here: the
   drawer opens onto the same action as a full width button, which is a larger
   target than the one removed. */
@media (max-width: 560px) {
  .header-actions .btn--primary { display: none; }
}

/* At 320px - still a real Android size in this market - the wordmark alone
   is 206px of the 320, and the two remaining controls need 88px plus gaps.
   The name stays whole; it is set a little smaller so it fits. */
@media (max-width: 380px) {
  .brand,
  .brand__mark {
    font-size: 1.05rem;
  }
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  margin-top: var(--space-24);
  border-top: 1px solid var(--line);
  background: var(--page-alt);
  padding-block: var(--space-16) var(--space-8);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(240px, 1.6fr) repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--space-10);
  padding-bottom: var(--space-10);
  border-bottom: 1px solid var(--line);
}

/* The track minimums above sum past a phone: 240px for the first column and
   150px for the narrowest auto-fit track is 390px before the gap, inside a
   320px container. Grid does not shrink a track below its stated minimum, so
   the footer alone forced every public page to 450px wide and the whole site
   scrolled sideways. One column below the point where two will not fit. */
@media (max-width: 640px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
}

.footer-heading {
  font-size: var(--text-2xs);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: var(--space-4);
}

.footer-links { display: flex; flex-direction: column; gap: var(--space-3); list-style: none; padding: 0; }
.footer-links a { font-size: var(--text-sm); color: var(--text-muted); }
.footer-links a:hover { color: var(--accent-text); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding-top: var(--space-6);
  font-size: var(--text-xs);
  color: var(--text-dim);
}

.footer-risk {
  margin-top: var(--space-6);
  padding: var(--space-5);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-md);
  font-size: var(--text-xs);
  line-height: var(--leading-relaxed);
  color: var(--text-dim);
}

/* --------------------------------------------------------------------------
   Application shell
   -------------------------------------------------------------------------- */

.app {
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
  min-height: 100dvh;
}

.app-sidebar {
  position: sticky;
  top: 0;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  padding: var(--space-5) var(--space-4);
  background: var(--surface);
  border-right: 1px solid var(--line);
  overflow-y: auto;
}

.app-sidebar__brand { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-2) var(--space-2) var(--space-4); }

.sidebar-group { display: flex; flex-direction: column; gap: 2px; }

.sidebar-group__label {
  padding: var(--space-3) var(--space-3) var(--space-2);
  font-size: var(--text-2xs);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--text-dim);
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: 0.62rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--text-muted);
  transition: all var(--duration-fast) var(--ease-out);
  position: relative;
}

.sidebar-link:hover { background: var(--surface-hover); color: var(--text-strong); }

.sidebar-link.is-active {
  background: var(--accent-ghost);
  color: var(--accent-text);
}

.sidebar-link.is-active::before {
  content: "";
  position: absolute;
  left: calc(-1 * var(--space-4));
  top: 50%;
  translate: 0 -50%;
  width: 3px;
  height: 20px;
  border-radius: 0 3px 3px 0;
  background: var(--accent);
}

.sidebar-link__icon { flex: none; width: 18px; height: 18px; }
.sidebar-link__badge {
  margin-left: auto;
  min-width: 20px;
  height: 20px;
  padding-inline: 5px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: var(--brand-accent-ink);
  font-size: 0.625rem;
  font-weight: var(--weight-bold);
}

.app-main { display: flex; flex-direction: column; min-width: 0; }

.app-topbar {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  display: flex;
  align-items: center;
  gap: var(--space-4);
  height: var(--header-height);
  padding-inline: clamp(var(--space-4), 2vw, var(--space-8));
  background: var(--glass);
  backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid var(--line);
}

.app-topbar__title {
  font-family: var(--font-display);
  font-size: var(--text-md);
  font-weight: var(--weight-bold);
  color: var(--text-strong);
  letter-spacing: -0.015em;
}

.app-content {
  flex: 1;
  padding: clamp(var(--space-5), 2.4vw, var(--space-8));
  padding-bottom: var(--space-16);
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  min-width: 0;
}

.sidebar-backdrop { display: none; }

@media (max-width: 1080px) {
  .app { grid-template-columns: minmax(0, 1fr); }

  .app-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: min(300px, 86vw);
    z-index: var(--z-drawer);
    transform: translateX(-102%);
    transition: transform var(--duration-base) var(--ease-out);
    box-shadow: var(--shadow-lg);
  }

  .app-sidebar.is-open { transform: none; }

  .sidebar-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: calc(var(--z-drawer) - 1);
    background: rgba(3, 6, 11, 0.6);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--duration-base) var(--ease-out);
  }

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

/* --------------------------------------------------------------------------
   Page headers inside the app
   -------------------------------------------------------------------------- */

.page-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-4);
}

.page-head__title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 1.2rem + 1.1vw, 2rem);
  font-weight: var(--weight-bold);
  letter-spacing: -0.024em;
  color: var(--text-strong);
}

.page-head__sub { font-size: var(--text-sm); color: var(--text-muted); margin-top: 0.3rem; }

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  color: var(--text-dim);
  flex-wrap: wrap;
}

.breadcrumbs a:hover { color: var(--accent-text); }
.breadcrumbs span { opacity: 0.5; }

/* --------------------------------------------------------------------------
   Course player
   -------------------------------------------------------------------------- */

.player {
  display: grid;
  /* The lesson leads and the curriculum is the rail beside it, which is the
     arrangement every course player converges on: the eye starts at the
     content, not at the index of it. */
  grid-template-columns: minmax(0, 1fr) 360px;
  min-height: 100dvh;
  background: var(--page);
}

.player__aside {
  position: sticky;
  top: 0;
  height: 100dvh;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--surface);
  border-left: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}

/* The rail scrolls a lot and its own scrollbar should not draw attention. */
.player__aside::-webkit-scrollbar { width: 10px; }
.player__aside::-webkit-scrollbar-thumb {
  background: var(--line-strong);
  border: 3px solid var(--surface);
  border-radius: 999px;
}
.player__aside::-webkit-scrollbar-track { background: transparent; }

.player__aside-head {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: var(--space-5);
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.player__main { min-width: 0; display: flex; flex-direction: column; }

.player__stage {
  position: relative;
  aspect-ratio: 16 / 9;
  /* 16:9 across a wide main column is enormous: on a 1920 screen the stage
     alone was 900px tall and the lesson began below the fold. Capping the
     height keeps a cinema frame centred in a dark band rather than a video
     that fills the window. */
  max-height: min(52vh, 520px);
  background: #05070b;
  display: grid;
  place-items: center;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

/* Nothing to play: the notice is a strip above the lesson, not a stage. */
.player__stage--empty {
  aspect-ratio: auto;
  max-height: none;
  min-height: 0;
  background: var(--page-alt);
}

/* The custom player wrapper has no width of its own, so inside the stage it
   is told to fill it. Without this the video shrank to its intrinsic size and
   floated in the middle of a large black rectangle. */
.player__stage > .vp {
  width: 100%;
  height: 100%;
  border-radius: 0;
}

/* contain rather than cover: a lesson recorded in another shape is letterboxed
   against the stage, never cropped. The bands are the stage colour, so on a
   16:9 video they are invisible. */
.player__stage iframe,
.player__stage video {
  width: 100%;
  height: 100%;
  max-height: none;
  border: 0;
  object-fit: contain;
}

/* A hairline of light along the bottom of the frame, so the stage reads as a
   surface the lesson sits under rather than a hole in the page. */
.player__stage::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    color-mix(in srgb, var(--accent) 45%, transparent),
    transparent
  );
  pointer-events: none;
}

.player__body {
  padding: clamp(var(--space-5), 2.5vw, var(--space-10));
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  max-width: 980px;
  width: 100%;
}

/* A measure, not a width. At 900px the lesson ran to about 120 characters a
   line and the eye loses the start of the next one on the way back. Around
   seventy is where prose stops being work to read. */
.player__body .prose {
  max-width: 68ch;
}

.curriculum-module { border-bottom: 1px solid var(--line); }

.curriculum-module__head {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  width: 100%;
  padding: var(--space-4) var(--space-5);
  text-align: left;
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--text-strong);
}

.curriculum-module__head {
  cursor: pointer;
  list-style: none;
}

/* Safari still draws its own triangle without this. */
.curriculum-module__head::-webkit-details-marker { display: none; }

.curriculum-module__chevron {
  margin-left: auto;
  flex: none;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--text-dim);
  border-bottom: 2px solid var(--text-dim);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform var(--duration-base) var(--ease-out);
}

.curriculum-module[open] > .curriculum-module__head .curriculum-module__chevron {
  transform: rotate(-135deg) translate(-2px, -2px);
}

.curriculum-search {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-4);
  padding: 0 var(--space-3);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--page);
  color: var(--text-dim);
  transition: border-color var(--duration-base) var(--ease-out);
}

.curriculum-search:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-ghost);
}

.curriculum-search__input {
  flex: 1;
  min-width: 0;
  padding: 0.5rem 0;
  border: 0;
  background: none;
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--text-sm);
}

.curriculum-search__input:focus { outline: none; }

.curriculum-empty { padding: var(--space-6) var(--space-5); }

.curriculum-module__meta { font-size: var(--text-2xs); color: var(--text-dim); font-weight: var(--weight-regular); }

.curriculum-lesson {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: 0.68rem var(--space-5);
  font-size: var(--text-sm);
  color: var(--text-muted);
  border-left: 2px solid transparent;
  transition: all var(--duration-fast) var(--ease-out);
}

.curriculum-lesson:hover { background: var(--surface-hover); color: var(--text-strong); }

.curriculum-lesson.is-current {
  background: var(--accent-ghost);
  border-left-color: var(--accent);
  color: var(--accent-text);
  font-weight: var(--weight-medium);
}

.curriculum-lesson.is-locked { opacity: 0.45; pointer-events: none; }

.lesson-state {
  flex: none;
  width: 17px;
  height: 17px;
  margin-top: 2px;
  border-radius: 50%;
  border: 1.5px solid var(--line-strong);
  display: grid;
  place-items: center;
  font-size: 9px;
}

.lesson-state.is-done { background: var(--bull); border-color: var(--bull); color: #041711; }
.lesson-state.is-current { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-ghost); }

@media (max-width: 1080px) {
  .player { grid-template-columns: minmax(0, 1fr); }
  /* The document already reads lesson then curriculum, so stacking needs no
     ordering and the rail simply falls underneath. */
  .player__aside {
    position: static;
    height: auto;
    max-height: none;
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .player__stage { max-height: min(38vh, 300px); }
  .player__stage--empty { max-height: none; }
}

/* --------------------------------------------------------------------------
   Trading terminal
   -------------------------------------------------------------------------- */

.terminal {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr) 320px;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 640px;
}

.terminal__col { background: var(--surface); display: flex; flex-direction: column; min-width: 0; }
.terminal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--line);
  background: var(--surface-sunken);
}

.terminal__title {
  font-size: var(--text-2xs);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--text-dim);
}

.terminal__scroll { overflow-y: auto; flex: 1; }

.watch-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-2);
  padding: 0.6rem var(--space-4);
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  transition: background var(--duration-fast) var(--ease-out);
}

.watch-row:hover { background: var(--surface-hover); }
.watch-row.is-active { background: var(--accent-ghost); box-shadow: inset 2px 0 0 var(--accent); }
.watch-row__symbol { font-size: var(--text-sm); font-weight: var(--weight-semibold); color: var(--text-strong); }
.watch-row__name { font-size: var(--text-2xs); color: var(--text-dim); }
.watch-row__price { font-family: var(--font-mono); font-size: var(--text-sm); text-align: right; color: var(--text); font-variant-numeric: tabular-nums; }
.watch-row__change { font-size: var(--text-2xs); text-align: right; font-variant-numeric: tabular-nums; }

.chart-shell { position: relative; flex: 1; min-height: 380px; background: var(--surface); }
.chart-canvas { display: block; width: 100%; height: 100%; }

.chart-toolbar {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
  scrollbar-width: none;
}

.chart-toolbar::-webkit-scrollbar { display: none; }

.tf-btn {
  padding: 0.28rem 0.6rem;
  border-radius: var(--radius-xs);
  font-family: var(--font-mono);
  font-size: var(--text-2xs);
  font-weight: var(--weight-semibold);
  color: var(--text-dim);
  transition: all var(--duration-fast) var(--ease-out);
}

.tf-btn:hover { color: var(--text-strong); background: var(--surface-hover); }
.tf-btn.is-active { background: var(--accent-soft); color: var(--accent-text); }

.chart-readout {
  position: absolute;
  top: var(--space-3);
  left: var(--space-4);
  display: flex;
  gap: var(--space-3);
  font-family: var(--font-mono);
  font-size: var(--text-2xs);
  color: var(--text-muted);
  pointer-events: none;
  background: var(--glass);
  padding: 0.3rem 0.6rem;
  border-radius: var(--radius-xs);
  backdrop-filter: blur(6px);
}

.ticket { padding: var(--space-4); display: flex; flex-direction: column; gap: var(--space-4); }

.side-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2);
}

.side-toggle__btn {
  padding: 0.7rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  background: var(--surface-sunken);
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: all var(--duration-base) var(--ease-out);
}

.side-toggle__btn[data-side="buy"].is-active { background: var(--bull); border-color: transparent; color: #041711; }
.side-toggle__btn[data-side="sell"].is-active { background: var(--bear); border-color: transparent; color: #fff; }

.ticket-summary {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: var(--space-4);
  border-radius: var(--radius-md);
  background: var(--surface-sunken);
  border: 1px solid var(--line);
}

.ticket-summary__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  font-size: var(--text-xs);
}

.ticket-summary__row dt { color: var(--text-dim); }
.ticket-summary__row dd { margin: 0; font-family: var(--font-mono); color: var(--text-strong); font-variant-numeric: tabular-nums; }
.ticket-summary__row--highlight dd { color: var(--accent-text); font-weight: var(--weight-bold); }

@media (max-width: 1280px) {
  .terminal { grid-template-columns: minmax(0, 1fr) 320px; }
  .terminal__col--watch { display: none; }
}

@media (max-width: 900px) {
  .terminal { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .chart-shell { min-height: 320px; }
}

/* --------------------------------------------------------------------------
   Header menu with one level of dropdowns (Admin, Navigation)
   -------------------------------------------------------------------------- */

.nav__group { position: relative; }
.nav__group > .nav__link { display: inline-flex; align-items: center; gap: 0.25rem; }
.nav__caret { opacity: 0.6; transition: transform var(--duration-fast) var(--ease-out); }
.nav__menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 220px;
  padding: var(--space-2);
  background: var(--surface-raised);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  z-index: var(--z-header);
  display: none;
}
.nav__menu a {
  display: block;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-xs);
  font-size: var(--text-sm);
  color: var(--text-muted);
  white-space: nowrap;
}
.nav__menu a:hover, .nav__menu a:focus-visible { color: var(--text-strong); background: var(--surface-hover); }
.nav__group:hover > .nav__menu, .nav__group:focus-within > .nav__menu { display: block; }
.nav__group:hover .nav__caret, .nav__group:focus-within .nav__caret { transform: rotate(180deg); }
.mobile-nav__sub { padding-left: var(--space-5); font-size: var(--text-sm); }

/* With ten entries the header needs room; condense before the hamburger. */
@media (max-width: 1280px) {
  .nav__link { padding: 0.5rem 0.55rem; }
  .header-donate { display: none; }
}

/* --------------------------------------------------------------------------
   Mentorship choice and FAQ lists
   -------------------------------------------------------------------------- */

.mentorship-choice__option { display: grid; gap: var(--space-3); justify-items: start; text-decoration: none; color: inherit; border: 2px solid transparent; }
.mentorship-choice__option:hover { border-color: var(--line-strong); color: inherit; }
.mentorship-choice__option.is-active { border-color: var(--accent); }

.faq-list { display: grid; }
.faq-list__item { border-bottom: 1px solid var(--line); padding: var(--space-3) 0; }
.faq-list__item:last-child { border-bottom: 0; }
.faq-list__item summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: var(--space-4); }
.faq-list__item summary::-webkit-details-marker { display: none; }
.faq-list__item summary::after { content: "+"; color: var(--text-muted); font-weight: 700; }
.faq-list__item[open] summary::after { content: "\2212"; }
.faq-list__answer { margin-top: var(--space-2); }

/* --------------------------------------------------------------------------
   Enrolment wizard
   -------------------------------------------------------------------------- */

.wizard-steps { display: flex; gap: var(--space-2); flex-wrap: wrap; list-style: none; margin: 0; padding: 0; counter-reset: step; }
.wizard-steps li { flex: 1 1 160px; }
.wizard-steps a, .wizard-steps span {
  display: flex; align-items: center; gap: var(--space-2);
  padding: var(--space-3); border-radius: var(--radius-lg);
  border: 1px solid var(--line); font-size: var(--text-sm); color: var(--text-muted); text-decoration: none;
}
.wizard-steps .is-current a, .wizard-steps .is-current span { border-color: var(--accent); color: var(--text-strong); }
.wizard-steps .is-done a { color: var(--text-strong); }
.wizard-steps__num {
  display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%;
  background: var(--surface-hover); font-size: var(--text-xs); font-weight: 700; flex: none;
}
.wizard-steps .is-done .wizard-steps__num { background: var(--bull); color: #fff; }
.wizard-steps .is-current .wizard-steps__num { background: var(--accent); color: #fff; }
.wizard-progress { height: 6px; border-radius: 3px; background: var(--surface-hover); overflow: hidden; }
.wizard-progress > span { display: block; height: 100%; background: var(--accent); }
.doc-list { display: grid; gap: var(--space-2); }
.doc-list__item { display: flex; justify-content: space-between; align-items: center; gap: var(--space-3); padding: var(--space-3); border: 1px solid var(--line); border-radius: var(--radius-lg); }
