/* Certifas Forma. Shared learner and operator experience. */
:root,
:root[data-theme="dark"] {
  --bg: var(--f-canvas);
  --panel: var(--f-surface);
  --surface: var(--f-surface);
  --surface-2: var(--f-soft);
  --ink: var(--f-ink);
  --ink-2: var(--f-muted);
  --muted: var(--f-muted);
  --line: var(--f-line);
  --accent: var(--f-primary);
  --brand: var(--f-primary);
  --brand-2: var(--f-primary);
  --mint: var(--f-highlight);
  --soft: var(--f-soft);
  --danger: var(--f-danger);
  --danger-bg: var(--f-danger-soft);
  --danger-soft: var(--f-danger-soft);
  --success: var(--f-success);
  --success-soft: var(--f-success-soft);
  --warning: var(--f-warning);
  --warning-soft: var(--f-warning-soft);
  --amber: var(--f-warning);
  --amber-bg: var(--f-warning-soft);
  --shadow: var(--f-shadow);
  --radius: 24px;
  --sidebar: 248px;
  font-family: var(--f-font);
  font-size: 16px;
  line-height: 1.6;
  color-scheme: light;
}
:root[data-theme="dark"] {
  color-scheme: dark;
}
body {
  font-family: var(--f-font);
  background: var(--f-canvas);
  color: var(--f-ink);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  overflow-x: clip;
}
h1,
h2,
h3 {
  font-weight: 700;
  letter-spacing: -0.045em;
  text-wrap: balance;
}
h1 {
  line-height: 1.06;
}
h2 {
  line-height: 1.18;
}
h3 {
  line-height: 1.3;
}
p {
  max-width: 100%;
  overflow-wrap: anywhere;
}
em {
  font-family: var(--f-font);
  font-weight: 400;
}
button,
input,
select,
textarea {
  font-family: inherit;
}
button:disabled {
  cursor: not-allowed;
}
input,
textarea,
select {
  font-size: 16px !important;
}
a,
button {
  -webkit-tap-highlight-color: transparent;
}
button,
a,
input,
select,
textarea,
summary {
  touch-action: manipulation;
}
:focus-visible {
  outline: 3px solid var(--f-primary) !important;
  outline-offset: 4px !important;
}
::selection {
  background: var(--f-highlight);
  color: var(--f-on-highlight);
}
[hidden],
.hidden {
  display: none !important;
}
.sr-only,
.f-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  top: -100px;
  left: 20px;
  padding: 14px 22px;
  border-radius: 12px;
  background: var(--f-highlight);
  color: var(--f-on-highlight);
  z-index: 9999;
}
.skip-link:focus {
  top: 12px;
}
.eyebrow {
  font-size: 0.69rem;
  letter-spacing: 0.13em;
  line-height: 1.5;
  font-weight: 750;
  color: var(--f-primary);
  margin-bottom: 14px;
}
.lede {
  line-height: 1.7;
}
.hint,
.meta,
small {
  color: var(--f-muted);
}
.icon {
  width: 21px;
  height: 21px;
  flex: none;
}
.f-wordmark {
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: -0.07em;
  font-size: 27px;
  font-weight: 800;
  line-height: 1;
}
.f-wordmark svg {
  width: 33px;
  height: 37px;
}
.f-wordmark small {
  font-size: 11px;
  letter-spacing: 0.1em;
  font-weight: 700;
  border-left: 1px solid var(--f-line);
  padding-left: 12px;
  margin-left: 3px;
  text-transform: uppercase;
}
.f-logo-symbol {
  color: var(--f-primary);
}
.f-wordmark i {
  font-style: normal;
  color: var(--f-primary);
}
.btn,
.button,
.f-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 12px 20px;
  border: 1px solid var(--f-line);
  border-radius: 12px;
  background: var(--f-surface);
  color: var(--f-ink);
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.4;
  cursor: pointer;
  text-decoration: none;
  transition:
    transform var(--f-quick) var(--f-ease),
    background var(--f-quick),
    box-shadow var(--f-quick),
    border-color var(--f-quick);
  box-shadow: 0 2px 0 #173e3310;
  overflow: clip;
  isolation: isolate;
}
.btn.primary,
.button.primary,
.f-btn.primary {
  background: var(--f-primary);
  color: var(--f-on-primary);
  border-color: var(--f-primary);
  box-shadow: 0 3px 0 #071d1c24;
}
.btn.mint,
.f-btn.lime {
  background: var(--f-highlight);
  color: var(--f-on-highlight);
  border-color: var(--f-highlight);
  box-shadow: 0 3px 0 #071d1c24;
}
.btn.text,
.btn.ghost,
.button.ghost {
  background: transparent;
  box-shadow: none;
  border-color: transparent;
}
.button.danger {
  background: var(--f-danger-soft);
  color: var(--f-danger);
  border-color: color-mix(in srgb, var(--f-danger) 35%, var(--f-line));
}
.btn:active,
.button:active,
.f-btn:active {
  transform: translateY(2px) scale(0.985);
  box-shadow: none;
}
.btn .icon,
.button .icon {
  transition: transform var(--f-standard) var(--f-ease);
}
.icon-btn,
.icon-button,
.f-icon-button,
.avatar-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  min-width: 44px;
  min-height: 44px;
  padding: 10px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: var(--f-ink);
  cursor: pointer;
  transition:
    background var(--f-quick),
    transform var(--f-quick);
}
.icon-btn:hover,
.icon-button:hover,
.f-icon-button:hover {
  background: var(--f-soft);
}
.f-icon-button:active {
  transform: scale(0.93);
}
.f-btn.large {
  padding: 16px 25px;
  min-height: 55px;
  font-size: 0.96rem;
}
.f-kbd {
  font:
    11px/1.3 ui-monospace,
    monospace;
  border: 1px solid var(--f-line);
  border-radius: 5px;
  padding: 3px 5px;
  color: var(--f-muted);
  background: var(--f-surface);
  white-space: nowrap;
}
.f-command-trigger {
  gap: 12px;
  color: var(--f-muted);
  padding: 8px 13px;
  border: 1px solid var(--f-line);
  border-radius: 10px;
  background: var(--f-surface);
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  font-size: 0.8rem;
}
.f-tools {
  display: flex;
  align-items: center;
  gap: 6px;
}
.f-ripple {
  position: absolute;
  width: 100px;
  height: 100px;
  margin: -50px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0;
  pointer-events: none;
  z-index: -1;
}
@media (hover: hover) and (pointer: fine) {
  .btn:hover,
  .button:hover,
  .f-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 18px #173e3314;
    border-color: var(--f-primary);
  }
  .btn:hover .icon:last-child,
  .f-btn:hover .icon:last-child {
    transform: translateX(2px);
  }
  .f-course:hover {
    transform: translateY(-6px);
    border-color: var(--f-primary);
    box-shadow: 0 14px 30px #14362712;
  }
  .f-course:hover .f-course-art > span {
    transform: rotate(10deg) scale(1.06);
  }
  .module-row:hover,
  .cohort-card:hover {
    border-color: var(--f-primary);
  }
  .nav-item:hover .icon,
  .nav-link:hover .icon {
    transform: translateX(2px);
  }
}
.panel,
.metric-card,
.cohort-card {
  border: 1px solid var(--f-line);
  border-radius: 20px;
  background: var(--f-surface);
  box-shadow: var(--f-shadow);
  transition:
    border-color var(--f-standard),
    box-shadow var(--f-standard),
    transform var(--f-standard);
}
.panel {
  padding: 26px;
}
.panel.inset {
  background: var(--f-soft);
  box-shadow: none;
}
.badge,
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.71rem;
  font-weight: 700;
  border-radius: 7px;
  padding: 5px 9px;
  background: var(--f-soft);
  color: var(--f-muted);
  border: 1px solid transparent;
}
.badge.green,
.badge.success {
  background: var(--f-success-soft);
  color: var(--f-success);
}
.badge.warning,
.badge.gold {
  background: var(--f-warning-soft);
  color: var(--f-warning);
}
.badge.danger {
  background: var(--f-danger-soft);
  color: var(--f-danger);
}
.notice,
.mode-banner {
  background: var(--f-soft);
  color: var(--f-muted);
  border-color: var(--f-line);
  border-radius: 12px;
}
.notice.danger {
  background: var(--f-danger-soft);
  color: var(--f-danger);
}
.notice.success {
  background: var(--f-success-soft);
  color: var(--f-success);
}
.notice.warning {
  background: var(--f-warning-soft);
  color: var(--f-warning);
}
.mode-banner {
  font-size: 0.76rem;
  gap: 12px;
  padding: 12px 16px;
  margin-bottom: 26px;
}
.mode-banner .btn {
  min-height: 36px;
  font-size: 0.76rem;
  padding: 6px 10px;
}
.meter {
  height: 8px;
  border-radius: 20px;
  background: var(--f-soft);
  overflow: hidden;
}
.meter-fill,
.meter > span {
  border-radius: 20px;
  background: var(--f-primary);
  transition: width 0.55s var(--f-ease);
}
.meter.big {
  height: 12px;
}
.f-lottie {
  display: inline-block;
  width: 100px;
  height: 100px;
  contain: layout paint;
  pointer-events: none;
}
.f-lottie svg {
  display: block;
  width: 100%;
  height: 100%;
}
.f-lottie-static {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  font-size: 52px;
  color: var(--f-primary);
}
.f-celebration {
  position: fixed;
  inset: 12vh 0 auto;
  margin: auto;
  width: 280px;
  height: 280px;
  pointer-events: none;
  z-index: 3000;
}
.f-celebration .f-lottie {
  width: 100%;
  height: 100%;
}
/* Product frames */
.sidebar {
  background: var(--f-surface);
  border-right: 1px solid var(--f-line);
  padding: 30px 17px 22px;
  color: var(--f-ink);
  scrollbar-width: thin;
}
.sidebar .brand {
  color: var(--f-ink);
}
.brand-caption {
  margin: 9px 0 23px 48px;
  font-size: 11px;
  letter-spacing: 0.04em;
}
.nav-label {
  font-size: 0.62rem;
  letter-spacing: 0.13em;
  margin: 25px 12px 10px;
}
.nav-item,
.nav-link {
  min-height: 46px;
  padding: 11px 13px;
  margin: 3px 0;
  gap: 12px;
  border-radius: 11px;
  color: var(--f-muted);
  font-size: 0.83rem;
  transition:
    background var(--f-quick),
    color var(--f-quick);
}
.nav-item .icon,
.nav-link .icon {
  transition: transform var(--f-quick);
}
.nav-item.active,
.nav-link.active {
  background: var(--f-highlight);
  color: var(--f-on-highlight);
  font-weight: 700;
}
.sidebar-foot,
.sidebar-bottom {
  padding-top: 24px;
}
.role-card,
.rank-card {
  border-color: var(--f-line);
  background: var(--f-soft);
  border-radius: 14px;
  color: var(--f-ink);
  padding: 17px;
}
.role-card strong {
  color: var(--f-ink);
  font-size: 12px;
}
.role-card small {
  color: var(--f-muted);
}
.rank-card p,
.rank-card strong {
  font-size: 0.76rem;
}
.sidebar .brand img {
  width: 34px;
  height: 34px;
}
.sidebar nav {
  gap: 2px;
}
.sidebar .nav-link:hover {
  color: var(--f-ink);
  background: var(--f-soft);
}
.topbar {
  height: 76px;
  background: color-mix(in srgb, var(--f-canvas) 94%, transparent);
  padding: 0 32px;
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--f-line);
}
.topbar-title strong {
  font-size: 0.87rem;
}
.topbar-title span {
  font-size: 0.65rem;
  color: var(--f-muted);
}
.breadcrumb {
  font-size: 0.77rem;
}
.main {
  padding: 28px 32px 56px;
  max-width: 1640px;
  margin: auto;
}
.workspace main {
  max-width: 1640px;
  padding: 32px;
  margin: auto;
}
.topbar-actions {
  margin-left: auto;
  gap: 9px;
}
.avatar,
.avatar-button {
  width: 39px;
  height: 39px;
  min-width: 39px;
  min-height: 39px;
  border-radius: 12px;
  background: var(--f-soft);
  border: 1px solid var(--f-line);
  color: var(--f-primary);
  font-size: 0.8rem;
}
.xp-chip {
  background: var(--f-warning-soft);
  color: var(--f-warning);
  font-size: 0.75rem;
  border: 1px solid color-mix(in srgb, var(--f-warning) 15%, transparent);
  border-radius: 9px;
}
.page-heading {
  margin-bottom: 30px;
  gap: 20px;
}
.page-heading h1 {
  font-size: clamp(30px, 3vw, 44px);
  margin: 0 0 13px;
}
.page-heading p:not(.eyebrow) {
  font-size: 0.91rem;
  color: var(--f-muted);
  max-width: 680px;
}
.content-grid {
  grid-template-columns: minmax(0, 1fr) 305px;
  gap: 24px;
}
.stack {
  gap: 22px;
}
.three-grid {
  gap: 16px;
}
.welcome-banner {
  position: relative;
  background: #153f31;
  border-radius: 22px;
  min-height: 240px;
  color: #f0f6ea;
  overflow: hidden;
  padding: 34px;
}
.welcome-banner .eyebrow {
  color: #d5ed9e;
}
.welcome-banner h2 {
  font-size: clamp(26px, 2.65vw, 40px);
  max-width: 530px;
  line-height: 1.1;
}
.welcome-banner p {
  color: #d2dfd4;
}
.welcome-emblem {
  background: transparent;
  border: none;
  width: 140px;
  height: 140px;
  flex: none;
}
.welcome-emblem .f-lottie {
  width: 140px;
  height: 140px;
}
.welcome-banner > div:first-child {
  position: relative;
  z-index: 1;
}
.metric {
  padding: 20px;
  gap: 12px;
  align-items: center;
}
.metric-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--f-soft);
  color: var(--f-primary);
}
.metric-number {
  font-size: 1.55rem;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  letter-spacing: -0.045em;
}
.metric-label {
  font-size: 0.72rem;
}
.next-card {
  gap: 22px;
}
.next-card p {
  font-size: 0.86rem;
}
.module-number {
  width: 45px;
  height: 45px;
  font-size: 1.05rem;
  border-radius: 13px;
  background: var(--f-soft);
  color: var(--f-primary);
  flex: none;
}
.module-list {
  display: grid;
  gap: 12px;
}
.module-row {
  background: var(--f-surface);
  border: 1px solid var(--f-line);
  padding: 20px;
  border-radius: 17px;
  transition:
    transform 0.2s,
    border-color 0.2s;
}
.module-info h3 {
  font-size: 0.98rem;
  letter-spacing: -0.025em;
}
.module-info p,
.module-progress span {
  font-size: 0.73rem;
}
.module-row.completed {
  background: color-mix(in srgb, var(--f-success-soft) 60%, var(--f-surface));
}
.module-row .btn {
  min-height: 40px;
  padding: 9px 15px;
}
.f-path {
  position: relative;
}
.f-path .module-row {
  position: relative;
  margin-left: 23px;
}
.f-path:before {
  content: "";
  position: absolute;
  top: 34px;
  bottom: 34px;
  left: 9px;
  width: 2px;
  background: var(--f-line);
}
.f-path .module-row:before {
  content: "";
  position: absolute;
  left: -20px;
  width: 10px;
  height: 10px;
  background: var(--f-canvas);
  border: 2px solid var(--f-line);
  border-radius: 50%;
}
.f-path .module-row.completed:before {
  background: var(--f-primary);
  border-color: var(--f-primary);
}
.lesson-article p {
  font-size: 1.02rem;
  line-height: 1.9;
  max-width: 70ch;
}
.lesson-article h2 {
  font-size: 1.45rem;
}
.lesson-article section {
  margin-bottom: 36px;
}
.tabs {
  display: flex;
  gap: 5px;
  padding: 5px;
  background: var(--f-soft);
  border-radius: 12px;
  margin-bottom: 25px;
  max-width: 100%;
  overflow-x: auto;
}
.tab {
  position: relative;
  flex: none;
  padding: 10px 15px;
  min-height: 44px;
  border: none;
  background: transparent;
  color: var(--f-muted);
  border-radius: 9px;
  font-size: 0.82rem;
  white-space: nowrap;
}
.tab.active {
  background: var(--f-surface);
  color: var(--f-primary);
  box-shadow: 0 2px 6px #11291c0e;
}
.calendar-grid {
  gap: 7px;
}
.day-square {
  border-radius: 7px;
  font-size: 0.71rem;
  background: var(--f-soft);
}
.day-square.done {
  background: var(--f-highlight);
  color: var(--f-on-highlight);
}
.question-panel {
  border-radius: 24px;
}
.answer-option {
  border-radius: 14px;
  min-height: 66px;
  transition:
    background 0.2s,
    transform 0.15s,
    border-color 0.15s;
}
.answer-option:hover {
  transform: translateX(3px);
}
.feedback {
  border-radius: 16px;
}
.result-hero {
  background: var(--f-surface);
  border: 1px solid var(--f-line);
  border-radius: 24px;
}
.badge-card {
  border-radius: 20px;
}
.course-art {
  background: #153f31;
  color: #f0f6ea;
}
.course-art .badge {
  background: #dcf599;
  color: #153f31;
}
.course-art > strong {
  font-size: 2.1rem;
}
.course-card {
  border-radius: 24px;
  border-color: var(--f-line);
}
.f-course-switch {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 0 22px;
  margin-bottom: 6px;
  font-size: 0.78rem;
}
.f-course-switch label {
  color: var(--f-muted);
  font-weight: 600;
}
.f-course-switch select {
  min-height: 43px;
  max-width: 360px;
  border: 1px solid var(--f-line);
  background: var(--f-surface);
  border-radius: 10px;
  padding: 8px 35px 8px 12px;
  color: var(--f-ink);
  font-size: 0.8rem !important;
}
.f-course-switch .badge {
  flex: none;
}
.f-reading-progress {
  position: fixed;
  top: 76px;
  left: var(--sidebar);
  right: 0;
  height: 2px;
  z-index: 22;
  pointer-events: none;
  background: var(--f-primary);
  transform-origin: left;
  transform: scaleX(var(--reading-progress, 0));
}
/* Marketing and catalogue */
.site-header {
  height: 90px;
  padding: 0 max(32px, calc((100vw - 1240px) / 2));
  background: var(--f-canvas);
  border-bottom: 1px solid var(--f-line);
  gap: 28px;
  position: relative;
  z-index: 20;
}
.site-header .site-links {
  gap: 23px;
  flex: 1;
  justify-content: center;
}
.site-links .btn {
  font-size: 0.83rem;
  min-height: 42px;
  padding: 10px 0;
  border: 0;
  background: none;
  box-shadow: none;
}
.site-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}
.site-header .brand {
  font-size: 28px;
}
.site-main {
  max-width: 1304px;
  margin: auto;
  padding: 0 32px 72px;
}
.site-footer {
  max-width: 1240px;
  margin: 0 auto;
  padding: 30px 0 40px;
  border-top: 1px solid var(--f-line);
  background: var(--f-canvas);
  font-size: 0.75rem;
}
.site-footer p {
  font-size: 0.72rem;
}
.f-hero {
  padding: 78px 0 65px;
  display: grid;
  grid-template-columns: 1.08fr 1fr;
  gap: 40px;
  align-items: center;
  min-height: 650px;
}
.f-eyeline {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 700;
  color: var(--f-primary);
  margin-bottom: 24px;
}
.f-eyeline:before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--f-primary);
}
.f-hero h1 {
  font-size: clamp(52px, 5.7vw, 84px);
  letter-spacing: -0.065em;
  line-height: 0.99;
  max-width: 640px;
  margin: 0 0 25px;
  font-weight: 700;
}
.f-hero h1 em {
  color: var(--f-primary);
  font-weight: 400;
  letter-spacing: -0.065em;
}
.f-hero .lede {
  font-size: 1.05rem;
  max-width: 465px;
  margin-bottom: 28px;
}
.f-hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.f-hero-foot {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-top: 30px;
  font-size: 0.73rem;
  color: var(--f-muted);
}
.f-mini-steps {
  display: flex;
  align-items: center;
}
.f-mini-steps i {
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  background: var(--f-soft);
  border: 2px solid var(--f-canvas);
  border-radius: 50%;
  margin-left: -6px;
  color: var(--f-primary);
  font-style: normal;
  font-weight: 700;
}
.f-mini-steps i:first-child {
  margin-left: 0;
}
.f-artboard {
  position: relative;
  min-height: 480px;
  background: #e9eedf;
  border-radius: 40px 40px 160px 40px;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid #d1ddc6;
}
.f-art-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(#c7d4bd55 1px, transparent 1px),
    linear-gradient(90deg, #c7d4bd55 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(#000, transparent);
}
.f-art-caption {
  position: absolute;
  left: 30px;
  top: 26px;
  font:
    10px/1.4 ui-monospace,
    monospace;
  letter-spacing: 0.1em;
  color: #43664d;
}
.f-art-caption span {
  display: block;
  margin-top: 5px;
  opacity: 0.7;
}
.f-orbit {
  position: absolute;
  width: 350px;
  height: 350px;
  border: 1px solid #b8c9af;
  border-radius: 50%;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -47%);
}
.f-orbit:before,
.f-orbit:after {
  content: "";
  position: absolute;
  inset: 43px;
  border: 1px dashed #b8c9af;
  border-radius: 50%;
}
.f-orbit:after {
  inset: -35px;
  border-style: solid;
}
.f-door {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 190px;
  height: 240px;
  border-radius: 95px 95px 18px 18px;
  background: #194a36;
  transform: translate(-50%, -48%) rotate(-8deg);
  box-shadow:
    inset -20px 0 #123625,
    12px 18px 0 #cedbbf;
  display: flex;
  flex-direction: column;
  justify-content: end;
  padding: 28px;
  color: #dff49d;
  transition: transform 0.6s var(--f-ease);
}
.f-door:before {
  content: "";
  position: absolute;
  top: 40px;
  left: 42px;
  right: 42px;
  height: 135px;
  border: 1px solid #497557;
  border-radius: 70px 70px 4px 4px;
}
.f-door .f-lottie {
  position: absolute;
  width: 148px;
  height: 148px;
  left: 22px;
  top: 22px;
}
.f-door small {
  font:
    9px/1.3 ui-monospace,
    monospace;
  letter-spacing: 0.2em;
  color: #c8dfb2;
}
.f-door strong {
  font-size: 24px;
  line-height: 1.1;
  letter-spacing: -0.045em;
  margin-top: 6px;
}
.f-float {
  position: absolute;
  z-index: 2;
  background: #ffffff;
  color: #173d2c;
  border-radius: 17px;
  box-shadow: 0 10px 24px #29463116;
  border: 1px solid #dce3d4;
  padding: 15px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
}
.f-float strong {
  display: block;
  font-size: 13px;
}
.f-float small {
  font-size: 10px;
  display: block;
  color: #516750;
}
.f-float.a {
  top: 82px;
  left: 15px;
  transform: rotate(-5deg);
}
.f-float.b {
  bottom: 75px;
  right: 12px;
  transform: rotate(5deg);
}
.f-float.c {
  bottom: 26px;
  left: 46px;
  background: #dff49d;
  border-color: #c9dfa4;
  transform: rotate(-3deg);
  padding: 12px 16px;
}
.f-float .icon {
  width: 25px;
  height: 25px;
}
.f-art-star {
  position: absolute;
  right: 44px;
  top: 47px;
  color: #568456;
  font-size: 50px;
  font-weight: 300;
  line-height: 1;
}
.f-art-pill {
  position: absolute;
  left: 27px;
  bottom: 127px;
  width: 30px;
  height: 68px;
  background: #f4ae8b;
  border-radius: 30px;
  transform: rotate(30deg);
}
.f-art-dot {
  position: absolute;
  right: 66px;
  top: 164px;
  width: 38px;
  height: 38px;
  border: 10px solid #a9c8ec;
  border-radius: 50%;
}
.f-proof-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 26px 0;
  border-top: 1px solid var(--f-line);
  border-bottom: 1px solid var(--f-line);
  margin-bottom: 74px;
  gap: 24px;
}
.f-proof-strip > div {
  padding-left: 22px;
  border-left: 1px solid var(--f-line);
}
.f-proof-strip > div:first-child {
  border-left: 0;
  padding-left: 0;
}
.f-proof-strip strong {
  font-size: 28px;
  letter-spacing: -0.04em;
  font-weight: 700;
  display: block;
  line-height: 1.2;
}
.f-proof-strip span {
  font-size: 0.72rem;
  color: var(--f-muted);
  display: block;
  margin-top: 8px;
}
.f-section-head {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  align-items: end;
  margin-bottom: 26px;
}
.f-section-head h2 {
  font-size: clamp(30px, 3.5vw, 46px);
  margin: 0;
}
.f-section-head > p {
  font-size: 0.92rem;
  max-width: 390px;
  color: var(--f-muted);
}
.f-section {
  margin-top: 76px;
}
.f-section .eyebrow {
  margin-bottom: 10px;
}
.f-catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 21px;
}
.f-course {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--f-line);
  border-radius: 22px;
  overflow: hidden;
  background: var(--f-surface);
  transition:
    transform 0.3s var(--f-ease),
    border-color 0.3s,
    box-shadow 0.3s;
  min-width: 0;
}
.f-course-art {
  position: relative;
  height: 164px;
  background: var(--tile-bg, #e2ead6);
  color: var(--tile-ink, #174b35);
  padding: 21px;
  overflow: hidden;
}
.f-course-art .f-course-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  position: relative;
  z-index: 1;
}
.f-course-art > span {
  position: absolute;
  font-size: 94px;
  width: 138px;
  height: 138px;
  display: grid;
  place-items: center;
  right: 22px;
  bottom: -10px;
  border: 1px solid currentColor;
  border-radius: 44px 44px 14px 44px;
  transform: rotate(-12deg);
  opacity: 0.8;
  transition: transform 0.5s var(--f-ease);
}
.f-course-art > span:after {
  content: "";
  position: absolute;
  inset: 15px;
  border: 1px solid currentColor;
  opacity: 0.22;
  border-radius: inherit;
}
.f-course-art .icon {
  width: 61px;
  height: 61px;
  stroke-width: 1.15;
}
.f-course-index {
  position: absolute;
  left: 22px;
  bottom: 18px;
  font:
    11px ui-monospace,
    monospace;
  opacity: 0.6;
}
.f-course-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.f-course-body h3 {
  font-size: 1.35rem;
  margin: 0 0 12px;
  letter-spacing: -0.04em;
  line-height: 1.16;
}
.f-course-body p {
  color: var(--f-muted);
  font-size: 0.83rem;
  line-height: 1.7;
  flex: 1;
  margin: 0 0 20px;
}
.f-course-meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 0.7rem;
  color: var(--f-muted);
  border-top: 1px solid var(--f-line);
  padding-top: 16px;
  margin-bottom: 18px;
}
.f-course-body .btn {
  align-self: flex-start;
  padding: 9px 13px;
  min-height: 41px;
  font-size: 0.77rem;
}
.f-catalog-hero {
  padding: 62px 0 42px;
  border-bottom: 1px solid var(--f-line);
  margin-bottom: 28px;
  display: flex;
  justify-content: space-between;
  gap: 25px;
  align-items: center;
}
.f-catalog-hero h1 {
  font-size: clamp(42px, 5vw, 70px);
  margin: 0 0 22px;
}
.f-catalog-hero .lede {
  max-width: 610px;
}
.f-catalog-hero .f-lottie {
  width: 175px;
  height: 175px;
  flex: none;
  background: var(--f-soft);
  border-radius: 40px;
}
.f-filter-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0 0 22px;
  flex-wrap: wrap;
}
.f-filter-bar .f-search {
  flex: 1;
  min-width: 180px;
}
.f-search {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  background: var(--f-surface);
  border: 1px solid var(--f-line);
  border-radius: 12px;
  padding: 0 14px;
  color: var(--f-muted);
}
.f-search input {
  width: 100%;
  border: 0 !important;
  background: transparent !important;
  outline-offset: 7px;
  padding: 11px 0 !important;
  box-shadow: none !important;
  color: var(--f-ink);
}
.f-chips {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}
.f-chip {
  min-height: 40px;
  border-radius: 9px;
  border: 1px solid var(--f-line);
  background: transparent;
  color: var(--f-muted);
  padding: 8px 14px;
  font-size: 0.77rem;
  cursor: pointer;
}
.f-chip[aria-pressed="true"] {
  background: var(--f-primary);
  color: var(--f-on-primary);
  border-color: var(--f-primary);
}
.f-count {
  font-size: 0.73rem;
  color: var(--f-muted);
}
.f-process {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 35px;
}
.f-process article {
  padding: 30px 25px;
  background: var(--f-surface);
  border: 1px solid var(--f-line);
  border-radius: 22px;
}
.f-process .f-step {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  background: var(--f-soft);
  border-radius: 12px;
  font:
    13px ui-monospace,
    monospace;
  margin-bottom: 40px;
  color: var(--f-primary);
}
.f-process h3 {
  font-size: 1.35rem;
  margin-bottom: 13px;
}
.f-process p {
  font-size: 0.86rem;
  color: var(--f-muted);
}
.f-final-cta {
  padding: 45px 48px;
  display: flex;
  align-items: center;
  gap: 28px;
  justify-content: space-between;
  background: #173f31;
  color: #eef5e9;
  border-radius: 26px;
  margin-top: 72px;
}
.f-final-cta h2 {
  font-size: 38px;
  margin: 0 0 14px;
}
.f-final-cta p {
  color: #c5d6c7;
  max-width: 600px;
  font-size: 0.9rem;
}
.f-final-cta .f-btn {
  flex: none;
}
.f-detail-header {
  padding: 54px 0 34px;
}
.f-detail-header h1 {
  font-size: clamp(36px, 4.5vw, 64px);
  max-width: 850px;
  margin: 20px 0;
}
.f-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
}
.f-detail-aside {
  position: sticky;
  top: 24px;
  align-self: start;
}
.f-detail-aside .f-lottie {
  display: block;
  margin: auto;
  width: 130px;
  height: 130px;
}
.f-detail-grid details {
  background: var(--f-surface);
  border: 1px solid var(--f-line);
  border-radius: 15px;
  margin-bottom: 12px;
  padding: 0;
}
.f-detail-grid summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 22px;
  cursor: pointer;
  font-size: 0.95rem;
}
.f-detail-grid summary:after {
  content: "+";
  margin-left: auto;
  color: var(--f-primary);
  font-size: 22px;
}
.f-detail-grid details[open] summary:after {
  content: "−";
}
.f-detail-grid details > div {
  padding: 0 22px 24px;
  font-size: 0.9rem;
  color: var(--f-muted);
}
.f-detail-grid summary .module-number {
  font-size: 0.9rem;
  width: 38px;
  height: 38px;
}
.f-detail-grid .module-list {
  gap: 0;
}
/* Inputs, dialogs, authoring, table utilities */
.control,
.field input,
.field select,
.field textarea,
.form-grid input:not([type="checkbox"]):not([type="radio"]),
.form-grid textarea {
  min-height: 46px;
  border-radius: 10px;
  background: var(--f-surface);
  border: 1px solid var(--f-line);
  padding: 12px 14px;
  transition:
    border-color 0.16s,
    box-shadow 0.16s;
  color: var(--f-ink);
}
input:hover,
select:hover,
textarea:hover {
  border-color: var(--f-muted);
}
input:focus,
select:focus,
textarea:focus {
  border-color: var(--f-primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--f-primary) 12%, transparent);
}
.field > span {
  font-size: 0.79rem;
  line-height: 1.5;
  color: var(--f-ink);
  font-weight: 700;
}
.field small {
  font-size: 0.73rem;
  line-height: 1.6;
}
input[type="checkbox"],
input[type="radio"] {
  accent-color: var(--f-primary);
}
textarea {
  line-height: 1.75;
  resize: vertical;
}
.f-password-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.f-password-wrap input {
  width: 100%;
  padding-right: 64px !important;
}
.f-password-toggle {
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--f-soft);
  color: var(--f-primary);
  border: 0;
  border-radius: 7px;
  min-width: 47px;
  min-height: 38px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}
.f-error-count {
  color: var(--f-danger);
}
.form-error:not(:empty) {
  padding: 12px 14px;
  border: 1px solid color-mix(in srgb, var(--f-danger) 30%, transparent);
  border-radius: 10px;
  background: var(--f-danger-soft);
  font-size: 0.83rem;
  margin: 6px 0;
}
.table-wrap {
  border-radius: 12px;
  overflow: auto;
  max-width: 100%;
  scrollbar-width: thin;
}
table {
  width: 100%;
}
th {
  font-size: 0.69rem;
  color: var(--f-muted);
  background: var(--f-soft);
  letter-spacing: 0.02em;
  text-transform: none;
}
td {
  font-size: 0.8rem;
  padding: 17px 15px;
  border-bottom: 1px solid var(--f-line);
  vertical-align: middle;
}
td small {
  font-size: 0.69rem;
  display: block;
  margin-top: 4px;
}
.cell-title strong {
  font-size: 0.83rem;
}
.f-sort {
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  font-weight: 700;
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 7px 0;
  min-height: 30px;
  cursor: pointer;
}
.f-sort:after {
  content: "↕";
  opacity: 0.45;
}
.f-sort[aria-pressed="true"]:after {
  opacity: 1;
}
.f-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--f-line);
  font-size: 0.76rem;
  color: var(--f-muted);
}
.f-pagination .button {
  padding: 8px 14px;
  min-height: 41px;
}
.toolbar {
  gap: 14px;
  flex-wrap: wrap;
}
.toolbar .search {
  min-width: 170px;
  flex: 1;
}
.toolbar select {
  min-height: 46px;
  border-radius: 10px;
}
.metric-card {
  gap: 14px;
  padding: 22px;
}
.metric-card strong {
  font-size: 1.65rem;
}
.metric-card p {
  font-size: 0.73rem;
}
.metric-card small {
  font-size: 0.68rem;
}
.dashboard-grid,
.editor-grid,
.record-grid,
.review-grid,
.operations-grid,
.settings-grid {
  gap: 22px;
}
.panel-head h2 {
  font-size: 1.2rem;
}
.panel-head {
  margin-bottom: 22px;
}
.readiness-list > div {
  font-size: 0.8rem;
}
.course-summary,
.record-hero,
.review-hero {
  border-radius: 22px;
  background: #163f31;
  color: #eef5e9;
  padding: 32px;
}
.course-summary p,
.record-hero p,
.review-hero p {
  color: #ccddce;
}
.course-summary .eyebrow,
.record-hero .eyebrow,
.review-hero .eyebrow {
  color: #dff49d;
}
.course-summary h2 {
  font-size: 32px;
}
.course-summary .badge,
.record-hero .badge,
.review-hero .badge {
  color: #153f31;
  background: #dcf599;
}
.course-stats strong,
.record-kpis strong {
  color: #dcf599;
}
.auth-story {
  background: #163f31;
  color: #eef5e9;
}
.auth-story h1 {
  letter-spacing: -0.065em;
}
.auth-story .eyebrow {
  color: #dcf599;
}
.auth-story .brand {
  color: #fff;
}
.auth-story .f-logo-symbol {
  color: #dcf599;
}
.auth-story p {
  color: #cbdcca;
}
.auth-story .orbital {
  opacity: 0.3;
}
.auth-panel,
.auth-form-wrap {
  background: var(--f-canvas);
}
.auth-card {
  border-radius: 24px;
  box-shadow: 0 18px 40px #0f321a0b;
}
.auth-layout {
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid var(--f-line);
}
.auth-form-wrap h2 {
  font-size: 32px;
}
.auth-form-wrap .btn {
  width: auto;
}
.auth-form-wrap .btn.wide {
  width: 100%;
}
.auth-form-wrap .form-grid {
  gap: 20px;
}
.auth-shell .auth-story {
  min-height: 100vh;
}
.auth-card > h2 {
  font-size: 2rem;
}
.f-preview-link {
  margin-top: 16px;
  width: 100%;
}
.f-preview-banner {
  background: var(--f-warning-soft);
  color: var(--f-warning);
  border: 1px solid color-mix(in srgb, var(--f-warning) 20%, transparent);
  padding: 12px 16px;
  border-radius: 11px;
  font-size: 0.78rem;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}
.f-preview-banner .f-btn {
  margin-left: auto;
  min-height: 36px;
  font-size: 0.72rem;
  padding: 7px 10px;
}
.f-editor-tabs {
  margin: 0 0 25px;
}
.f-authoring {
  display: grid;
  gap: 22px;
}
.f-authoring .f-form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.f-authoring details {
  border: 1px solid var(--f-line);
  border-radius: 14px;
  background: var(--f-surface);
  overflow: hidden;
  margin: 0;
}
.f-authoring summary {
  padding: 18px;
  display: flex;
  gap: 12px;
  align-items: center;
  cursor: pointer;
  background: var(--f-soft);
  font-weight: 700;
  font-size: 0.87rem;
}
.f-authoring details > div {
  padding: 20px;
  display: grid;
  gap: 18px;
}
.f-authoring h3 {
  margin: 0;
}
.f-editor-meta {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.f-editor-meta p {
  font-size: 0.75rem;
  color: var(--f-muted);
  margin: 0;
}
.f-editor-status {
  font-size: 0.75rem;
  color: var(--f-muted);
  display: flex;
  gap: 7px;
  align-items: center;
}
.f-editor-status:before {
  content: "";
  background: var(--f-success);
  width: 6px;
  height: 6px;
  border-radius: 50%;
}
.f-editor-status.dirty:before {
  background: var(--f-warning);
}
.f-empty-card {
  border: 1px dashed var(--f-line);
  border-radius: 18px;
  text-align: center;
  padding: 42px 24px;
}
.f-empty-card h2 {
  font-size: 1.4rem;
}
.f-empty-card p {
  max-width: 440px;
  margin: 12px auto 24px;
  color: var(--f-muted);
}
.code-editor {
  min-height: 480px;
  max-height: 720px;
  font:
    13px/1.75 ui-monospace,
    SFMono-Regular,
    Consolas,
    monospace !important;
  background: var(--f-canvas);
  color: var(--f-ink);
  border-color: var(--f-line);
  border-radius: 12px;
}
.f-preview-drawer {
  background: var(--f-soft);
  padding: 24px;
  border-radius: 18px;
}
.f-preview-drawer h2 {
  font-size: 1.5rem;
}
dialog {
  color: var(--f-ink);
  border: 1px solid var(--f-line);
  border-radius: 23px;
  padding: 0;
  background: var(--f-surface);
  box-shadow: 0 28px 90px #03140b44;
  max-width: calc(100vw - 24px);
  max-height: calc(100dvh - 32px);
  overscroll-behavior: contain;
}
dialog::backdrop {
  background: #071c1473;
  backdrop-filter: blur(7px);
}
dialog.modal {
  border: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
  width: min(720px, calc(100vw - 28px));
  max-height: calc(100dvh - 32px);
}
dialog.modal.wide {
  width: min(1000px, calc(100vw - 28px));
}
.modal-card {
  background: var(--f-surface);
  border-radius: 22px;
}
.modal-body {
  max-height: 62dvh;
  overscroll-behavior: contain;
  padding: 26px;
}
.modal-card footer,
.modal-card header {
  padding: 20px 26px;
}
.modal-card header h2 {
  font-size: 1.35rem;
}
.f-dialog {
  width: min(540px, calc(100vw - 28px));
}
.f-dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 26px;
  border-bottom: 1px solid var(--f-line);
}
.f-dialog-head h2 {
  font-size: 1.35rem;
  margin: 0;
}
.f-dialog-body {
  padding: 26px;
  display: grid;
  gap: 20px;
  max-height: 65dvh;
  overflow-y: auto;
}
.f-dialog-foot {
  border-top: 1px solid var(--f-line);
  padding: 18px 24px;
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}
.f-setting {
  display: grid;
  gap: 10px;
}
.f-setting strong {
  font-size: 0.85rem;
}
.f-segmented {
  display: flex;
  gap: 5px;
  background: var(--f-soft);
  padding: 5px;
  border-radius: 11px;
}
.f-segmented button {
  flex: 1;
  min-height: 42px;
  border: 0;
  border-radius: 8px;
  background: none;
  color: var(--f-muted);
  cursor: pointer;
  font-size: 0.8rem;
}
.f-segmented button[aria-pressed="true"] {
  background: var(--f-surface);
  color: var(--f-primary);
  box-shadow: 0 2px 5px #15352712;
}
.f-dialog p {
  color: var(--f-muted);
  font-size: 0.85rem;
  margin: 0;
}
.f-command {
  width: min(620px, calc(100vw - 28px));
  margin-top: 14vh;
}
.f-command .f-search {
  margin: 18px;
  border-color: var(--f-line);
}
.f-command-results {
  display: grid;
  padding: 0 12px 14px;
  max-height: 54dvh;
  overflow: auto;
  gap: 4px;
}
.f-command-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  min-height: 52px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--f-ink);
  font-size: 0.85rem;
  text-align: left;
  cursor: pointer;
}
.f-command-option:hover,
.f-command-option:focus-visible {
  background: var(--f-soft);
}
.f-command-option small {
  margin-left: auto;
  font-size: 0.68rem;
}
.f-command .f-dialog-foot {
  font-size: 0.7rem;
  color: var(--f-muted);
  justify-content: space-between;
}
.toast,
.toast.show {
  background: var(--f-surface);
  color: var(--f-ink);
  border-color: var(--f-line);
}
.f-network {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  padding: 11px 18px;
  border: 1px solid var(--f-line);
  border-radius: 12px;
  background: var(--f-warning-soft);
  color: var(--f-warning);
  font-size: 0.8rem;
  z-index: 800;
  max-width: calc(100vw - 30px);
  box-shadow: var(--f-shadow);
}
.f-backdrop {
  position: fixed;
  inset: 0;
  background: #071c1470;
  z-index: 29;
  backdrop-filter: blur(4px);
}
/* Motion is finite by default and never conceals content without scripting. */
@keyframes f-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes f-modal-in {
  from {
    opacity: 0;
    transform: translateY(15px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes f-turn {
  from {
    transform: rotate(-8deg) translateY(9px);
    opacity: 0.7;
  }
  to {
    transform: rotate(0) translateY(0);
    opacity: 1;
  }
}
html:not([data-motion="off"]) dialog[open] {
  animation: f-modal-in 0.24s var(--f-ease);
}
html:not([data-motion="off"]) .f-artboard {
  animation: f-in 0.7s var(--f-ease);
}
::view-transition-old(root) {
  animation-duration: 140ms;
}
::view-transition-new(root) {
  animation-duration: 220ms;
}
html[data-density="compact"] .workspace td {
  padding-top: 10px;
  padding-bottom: 10px;
}
html[data-density="compact"] .workspace .panel {
  padding: 20px;
}
/* Responsive layouts retain full keyboard and touch paths. */
@media (min-width: 981px) {
  .studio-shell {
    grid-template-columns: var(--sidebar) minmax(0, 1fr);
  }
  .workspace {
    grid-column: 2;
  }
  .studio-shell .sidebar {
    width: var(--sidebar);
  }
}
@media (max-width: 1200px) {
  .content-grid {
    grid-template-columns: minmax(0, 1fr) 270px;
  }
  .main,
  .workspace main {
    padding: 25px;
  }
  .f-hero {
    gap: 28px;
    padding-top: 55px;
  }
  .f-hero h1 {
    font-size: 66px;
  }
  .f-artboard {
    min-height: 445px;
  }
  .f-float.a {
    left: 12px;
    top: 55px;
  }
  .f-door {
    width: 165px;
    height: 215px;
  }
  .f-door .f-lottie {
    width: 125px;
    height: 125px;
    left: 17px;
  }
  .site-header {
    padding: 0 32px;
  }
  .site-header .site-links {
    gap: 12px;
  }
  .welcome-emblem {
    display: none;
  }
  .metric {
    flex-direction: column;
    align-items: flex-start;
  }
  .f-catalog-grid {
    gap: 17px;
  }
  .f-course-body {
    padding: 20px;
  }
  .f-course-body h3 {
    font-size: 1.2rem;
  }
  .site-footer {
    margin: 0 32px;
  }
  .f-command-trigger > span {
    display: none;
  }
}
@media (max-width: 980px) {
  :root {
    --sidebar: 248px;
  }
  .sidebar {
    transform: translateX(-105%);
    position: fixed;
    width: var(--sidebar);
    inset: 0 auto 0 0;
    z-index: 50;
    transition: transform 0.28s var(--f-ease);
  }
  .sidebar.open {
    transform: none;
  }
  .app-shell {
    padding-left: 0;
  }
  .topbar {
    padding: 0 23px;
  }
  .main {
    padding: 25px;
  }
  .workspace main {
    padding: 27px;
  }
  .mobile-menu,
  .sidebar-close,
  .mobile-close {
    display: flex;
  }
  .sidebar-close,
  .mobile-close {
    position: absolute;
    right: 6px;
    top: 18px;
  }
  .sidebar .mobile-close {
    color: var(--f-ink);
  }
  .sidebar .brand {
    margin-top: 8px;
  }
  .sidebar .f-wordmark {
    font-size: 24px;
  }
  .content-grid {
    grid-template-columns: minmax(0, 1fr) 265px;
    gap: 18px;
  }
  .f-hero {
    grid-template-columns: 1.1fr 1fr;
    gap: 22px;
    min-height: 570px;
  }
  .f-hero h1 {
    font-size: 54px;
  }
  .f-artboard {
    min-height: 405px;
    border-bottom-right-radius: 100px;
  }
  .f-float.a {
    top: 56px;
    padding: 11px;
    font-size: 11px;
  }
  .f-float.b {
    right: 9px;
    bottom: 55px;
    padding: 12px;
  }
  .f-float.c {
    display: none;
  }
  .f-door {
    width: 145px;
    height: 195px;
  }
  .f-door:before {
    left: 30px;
    right: 30px;
    top: 30px;
    height: 116px;
  }
  .f-door .f-lottie {
    left: 8px;
    width: 125px;
    top: 9px;
  }
  .f-door strong {
    font-size: 22px;
  }
  .f-orbit {
    width: 280px;
    height: 280px;
  }
  .f-art-star {
    right: 24px;
  }
  .f-art-dot {
    right: 23px;
    top: 140px;
    width: 30px;
    height: 30px;
    border-width: 8px;
  }
  .f-hero .lede {
    font-size: 0.93rem;
  }
  .f-hero-actions {
    gap: 9px;
  }
  .f-hero-actions .f-btn {
    padding: 12px 18px;
    min-height: 49px;
    font-size: 0.84rem;
  }
  .f-proof-strip {
    margin-bottom: 55px;
    gap: 16px;
  }
  .f-proof-strip strong {
    font-size: 24px;
  }
  .f-catalog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .f-section-head {
    align-items: start;
  }
  .f-process {
    gap: 16px;
  }
  .f-process article {
    padding: 23px;
  }
  .f-process h3 {
    font-size: 1.15rem;
  }
  .site-header .site-links {
    display: none;
  }
  .site-header {
    justify-content: space-between;
    height: 80px;
  }
  .site-main {
    padding: 0 25px 56px;
  }
  .f-detail-grid {
    grid-template-columns: 1fr 270px;
  }
  .f-auth .auth-story {
    min-height: 40vh;
  }
  .auth-shell .auth-story {
    min-height: 40vh;
  }
  .auth-card {
    margin-top: 0;
  }
  .f-reading-progress {
    left: 0;
  }
  .f-course-switch .badge {
    display: none;
  }
}
@media (max-width: 700px) {
  .f-hero {
    grid-template-columns: 1fr;
    padding: 42px 0 35px;
    gap: 32px;
  }
  .f-hero h1 {
    font-size: clamp(48px, 12vw, 70px);
  }
  .f-hero .lede {
    font-size: 0.96rem;
    max-width: 530px;
  }
  .f-artboard {
    min-height: 365px;
    max-width: 530px;
    width: 100%;
    margin: auto;
    border-radius: 28px 28px 110px 28px;
  }
  .f-door {
    width: 154px;
    height: 200px;
  }
  .f-float.a {
    left: 23px;
    top: 53px;
  }
  .f-float.b {
    right: 30px;
    bottom: 52px;
  }
  .f-art-caption {
    left: 24px;
    top: 20px;
    font-size: 9px;
  }
  .f-orbit {
    width: 273px;
    height: 273px;
  }
  .f-art-star {
    right: 40px;
  }
  .f-hero-foot {
    margin-top: 23px;
  }
  .site-header {
    padding: 0 20px;
    height: 76px;
    gap: 14px;
  }
  .site-header .brand {
    font-size: 24px;
  }
  .site-header .brand > svg {
    width: 28px;
  }
  .site-actions .btn.secondary {
    display: none;
  }
  .site-actions .btn {
    font-size: 0.78rem;
    min-height: 42px;
    padding: 10px 13px;
  }
  .site-actions {
    gap: 1px;
  }
  .site-main {
    padding: 0 20px 40px;
  }
  .f-proof-strip {
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
    margin-bottom: 43px;
    padding: 23px 0;
  }
  .f-proof-strip > div {
    padding-left: 16px;
  }
  .f-proof-strip > div:nth-child(3) {
    padding-left: 0;
    border-left: 0;
  }
  .f-proof-strip strong {
    font-size: 26px;
  }
  .f-proof-strip span {
    font-size: 0.69rem;
  }
  .f-section {
    margin-top: 48px;
  }
  .f-section-head {
    flex-direction: column;
    gap: 15px;
    margin-bottom: 23px;
  }
  .f-section-head h2 {
    font-size: 35px;
  }
  .f-section-head > p {
    font-size: 0.87rem;
  }
  .f-process {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .f-process article {
    padding: 24px;
  }
  .f-process .f-step {
    margin-bottom: 20px;
  }
  .f-final-cta {
    padding: 28px;
    flex-direction: column;
    align-items: start;
    margin-top: 45px;
  }
  .f-final-cta h2 {
    font-size: 32px;
  }
  .f-catalog-hero {
    padding: 42px 0 28px;
    align-items: start;
  }
  .f-catalog-hero h1 {
    font-size: 43px;
  }
  .f-catalog-hero > .f-lottie {
    display: none;
  }
  .f-catalog-hero .lede {
    font-size: 0.9rem;
  }
  .f-detail-grid {
    grid-template-columns: 1fr;
  }
  .f-detail-aside {
    position: static;
    grid-row: 1;
  }
  .f-detail-aside .f-lottie {
    display: none;
  }
  .f-detail-header {
    padding-top: 35px;
  }
  .f-detail-grid summary {
    padding: 16px;
    gap: 12px;
    font-size: 0.87rem;
  }
  .f-course-art {
    height: 140px;
  }
  .f-course-body {
    padding: 17px;
  }
  .f-course-body h3 {
    font-size: 1.15rem;
  }
  .f-course-body p {
    font-size: 0.78rem;
  }
  .f-course-meta {
    gap: 7px;
    font-size: 0.63rem;
  }
  .f-course-body .btn {
    font-size: 0.75rem;
  }
  .f-course-art > span {
    right: 6px;
    width: 112px;
    height: 112px;
  }
  .f-course-art .icon {
    width: 50px;
    height: 50px;
  }
  .f-course-art .f-course-tag {
    font-size: 8px;
  }
  .content-grid {
    grid-template-columns: 1fr;
  }
  .main,
  .workspace main {
    padding: 22px 18px 100px;
  }
  .topbar {
    height: 68px;
    padding: 0 17px;
  }
  .breadcrumb {
    max-width: 120px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 0.72rem;
  }
  .topbar-actions {
    gap: 4px;
  }
  .topbar-actions .xp-chip {
    font-size: 0.65rem;
    padding: 7px 9px;
  }
  .topbar-actions .f-command-trigger {
    padding: 8px;
    min-width: 41px;
  }
  .topbar-actions .f-command-trigger .f-kbd {
    display: none;
  }
  .f-command-trigger > span {
    display: none;
  }
  .topbar-actions .f-tools .f-icon-button {
    min-width: 38px;
    min-height: 40px;
    padding: 8px;
  }
  .page-heading h1 {
    font-size: 33px;
  }
  .page-heading {
    margin-bottom: 24px;
  }
  .panel {
    padding: 22px;
  }
  .welcome-banner {
    padding: 26px;
    min-height: 220px;
  }
  .welcome-banner h2 {
    font-size: 31px;
  }
  .welcome-banner p {
    font-size: 0.88rem;
  }
  .three-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 9px;
  }
  .metric {
    padding: 15px 10px;
    gap: 10px;
  }
  .metric .metric-icon {
    width: 32px;
    height: 32px;
    border-radius: 9px;
  }
  .metric .metric-icon .icon {
    width: 17px;
    height: 17px;
  }
  .metric-number {
    font-size: 1.3rem;
  }
  .metric-label {
    font-size: 0.64rem;
    line-height: 1.5;
  }
  .f-course-switch {
    align-items: start;
    gap: 9px;
    flex-direction: column;
    padding-bottom: 18px;
  }
  .f-course-switch select {
    width: 100%;
    max-width: none;
  }
  .mode-banner {
    font-size: 0.7rem;
    align-items: start;
  }
  .mode-banner .btn {
    display: none;
  }
  .module-row {
    padding: 16px;
    gap: 12px;
    flex-wrap: wrap;
  }
  .module-info {
    flex: 1;
    min-width: 120px;
  }
  .module-progress {
    display: none;
  }
  .module-row .btn {
    min-height: 38px;
    padding: 8px 12px;
  }
  .module-info h3 {
    font-size: 0.9rem;
  }
  .module-info p {
    font-size: 0.67rem;
  }
  .bottom-nav {
    background: color-mix(in srgb, var(--f-surface) 96%, transparent);
    border-top: 1px solid var(--f-line);
    padding: 6px 10px max(8px, env(safe-area-inset-bottom));
    backdrop-filter: blur(12px);
  }
  .bottom-nav a {
    border-radius: 12px;
    padding: 9px;
    font-size: 0.67rem;
    min-height: 54px;
  }
  .bottom-nav a.active {
    background: var(--f-soft);
    color: var(--f-primary);
  }
  .bottom-nav .icon {
    width: 20px;
    height: 20px;
  }
  .f-authoring .f-form-row {
    grid-template-columns: 1fr;
  }
  .f-authoring details > div {
    padding: 16px;
  }
  .f-pagination {
    flex-wrap: wrap;
  }
  .f-reading-progress {
    top: 68px;
  }
  .f-network {
    bottom: 88px;
  }
  .site-footer {
    margin: 0 20px;
    gap: 20px;
    flex-wrap: wrap;
  }
  .site-footer .brand {
    font-size: 25px;
  }
  .f-dialog-head,
  .f-dialog-body {
    padding: 22px;
  }
  .f-editor-meta {
    flex-wrap: wrap;
  }
  .auth-form-wrap {
    padding: 28px 22px;
  }
  .auth-layout {
    margin: 24px 16px;
  }
  .auth-layout .auth-story {
    padding: 35px 26px;
    min-height: 300px;
  }
  .auth-layout .auth-story h1 {
    font-size: 48px;
  }
  .auth-shell .auth-story {
    padding: 35px 28px;
  }
  .auth-story h1 {
    font-size: 44px;
  }
  .auth-panel {
    padding: 24px 18px;
  }
  .auth-card {
    padding: 25px;
  }
  .metrics-grid {
    gap: 12px;
  }
  .metric-card {
    padding: 17px;
    gap: 10px;
  }
  .metric-card strong {
    font-size: 1.45rem;
  }
  .f-preview-banner {
    flex-wrap: wrap;
    font-size: 0.72rem;
  }
  .f-preview-banner .f-btn {
    margin-left: 0;
  }
  .f-form-row {
    grid-template-columns: 1fr;
  }
  .course-summary h2 {
    font-size: 27px;
  }
  .course-stats span {
    font-size: 0.72rem;
  }
  .course-stats strong {
    font-size: 1.7rem;
  }
}
@media (max-width: 400px) {
  .f-catalog-grid {
    grid-template-columns: 1fr;
  }
  .f-course-art {
    height: 150px;
  }
  .f-course-body h3 {
    font-size: 1.3rem;
  }
  .f-course-body p {
    font-size: 0.85rem;
  }
  .f-catalog-hero h1 {
    font-size: 38px;
  }
  .f-hero h1 {
    font-size: 48px;
  }
  .topbar .breadcrumb {
    display: none;
  }
  .topbar-actions {
    gap: 2px;
  }
  .f-artboard {
    min-height: 345px;
  }
  .f-float.a {
    left: 12px;
  }
  .f-float.b {
    right: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  ::view-transition-group(*),
  ::view-transition-old(*),
  ::view-transition-new(*) {
    animation: none !important;
  }
  .f-ripple {
    display: none;
  }
}
html[data-motion="off"] *,
html[data-motion="off"] *::before,
html[data-motion="off"] *::after {
  animation: none !important;
  transition: none !important;
  scroll-behavior: auto !important;
}
html[data-motion="off"] .f-ripple {
  display: none;
}
@media (forced-colors: active) {
  .btn,
  .button,
  .f-btn,
  .panel,
  .f-course,
  .tab,
  .f-chip,
  .meter,
  .icon-btn,
  .icon-button {
    border: 1px solid ButtonText;
  }
  .tab.active,
  .f-chip[aria-pressed="true"] {
    outline: 2px solid Highlight;
  }
  .f-door,
  .f-artboard {
    forced-color-adjust: none;
  }
}
@media print {
  .sidebar,
  .topbar,
  .bottom-nav,
  .site-header,
  .site-footer,
  .f-tools,
  .f-preview-banner,
  .f-course-switch,
  .f-command,
  .f-reading-progress {
    display: none !important;
  }
  .app-shell {
    padding-left: 0;
  }
  .main,
  .workspace main {
    padding: 0;
  }
  .studio-shell {
    display: block;
  }
  .panel {
    box-shadow: none;
    break-inside: avoid;
  }
  body {
    background: white;
    color: black;
  }
}

.f-path-select {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 28px;
  padding: 14px 18px;
  border: 1px solid var(--f-line);
  border-radius: 14px;
  background: var(--f-surface);
}
.f-path-select label {
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
}
.f-path-select select {
  flex: 1;
  max-width: 420px;
  min-width: 0;
}
.f-path-select a {
  font-size: 0.78rem;
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
@media (max-width: 700px) {
  .f-path-select {
    flex-wrap: wrap;
    gap: 8px;
  }
  .f-path-select label {
    width: 100%;
  }
  .f-path-select a {
    display: none;
  }
  .f-path-select select {
    max-width: 100%;
    width: 100%;
  }
}

.f-editor-toolbar {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin: 18px 0;
}
.f-editor-toolbar .field {
  flex: 1;
  min-width: 180px;
}
.f-editor-heading {
  margin: 28px 0 15px;
}
.f-editor-block {
  border: 1px solid var(--f-line);
  border-radius: 16px;
  background: var(--f-soft);
  padding: 20px;
  margin: 14px 0;
}
.f-editor-tabs {
  display: flex;
  gap: 4px;
  overflow: auto;
  border-bottom: 1px solid var(--f-line);
  padding-bottom: 14px;
  margin-bottom: 22px;
}
.f-editor-tabs button {
  white-space: nowrap;
}
.f-editor-tabs [aria-pressed="true"] {
  background: var(--f-primary);
  color: var(--f-on-primary);
}
.f-save-state {
  font-size: 0.78rem;
  background: var(--f-soft);
  color: var(--f-ink);
  padding: 12px 15px;
  border-radius: 10px;
  margin: 16px 0;
}
.f-preview-banner {
  margin-bottom: 25px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 17px;
  border: 1px solid var(--f-line);
  border-radius: 14px;
  background: var(--f-warning-soft);
  color: var(--f-ink);
  font-size: 0.77rem;
}
.f-preview-banner strong {
  white-space: nowrap;
}
.f-preview-banner a {
  margin-left: auto;
  white-space: nowrap;
}
.f-authoring input,
.f-authoring textarea {
  max-width: 100%;
}
.f-authoring select {
  width: 100%;
  min-width: 0;
}
.f-authoring .field {
  margin: 12px 0;
}
.f-editor-intro p {
  color: var(--f-muted);
  font-size: 0.9rem;
}
.modal form[aria-busy="true"] {
  cursor: progress;
}
.f-pagination {
  display: flex;
  gap: 14px;
  justify-content: space-between;
  align-items: center;
  padding: 20px 6px 0;
  font-size: 0.8rem;
}
@media (max-width: 650px) {
  .f-preview-banner {
    flex-wrap: wrap;
  }
  .f-preview-banner a {
    margin: 0;
  }
  .f-pagination {
    flex-wrap: wrap;
  }
  .f-editor-block {
    padding: 13px;
  }
}

.sidebar .brand .f-wordmark {
  font-size: 25px;
  color: var(--f-ink);
  display: flex;
  gap: 5px;
}
.sidebar .brand {
  padding: 0 5px 14px;
}
.sidebar .brand .f-wordmark small {
  font-size: 9px;
  padding-left: 8px;
  margin-left: 4px;
  letter-spacing: 0.08em;
}
.studio-shell .metrics-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.activity-day small {
  white-space: nowrap;
}
.activity-chart .activity-day {
  min-width: 0;
}
.studio-shell .metric-card {
  min-height: 117px;
}
.f-logo-symbol {
  flex: none;
}
@media (min-width: 981px) {
  .mobile-menu,
  .mobile-close,
  .sidebar-close {
    display: none !important;
  }
}
@media (max-width: 700px) {
  .studio-shell .metrics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .studio-shell .topbar-title {
    display: none;
  }
  .site-actions .f-tools {
    display: none;
  }
  .f-wordmark {
    font-size: 25px;
  }
  .site-header .f-wordmark svg {
    width: 28px;
    height: 31px;
  }
}

.f-course-index {
  opacity: 1 !important;
  color: #435547 !important;
}
/* Shrink grid children, not the entire page. Overflow remains local to record tables. */
.panel,
.editor-grid > *,
.dashboard-grid > *,
.settings-grid > *,
.record-grid > *,
.review-grid > *,
.two-column > * {
  min-width: 0;
}
.f-authoring,
.f-editor-tabs {
  min-width: 0;
  max-width: 100%;
}
.panel-head {
  flex-wrap: wrap;
  gap: 14px;
}
.f-editor-tabs {
  scrollbar-width: thin;
}
.field {
  min-width: 0;
}
.field input,
.field textarea,
.field select {
  min-width: 0;
}
.f-editor-tabs .button {
  flex: none;
}
@media (max-width: 700px) {
  .dashboard-grid,
  .editor-grid,
  .settings-grid,
  .record-grid,
  .review-grid,
  .operations-grid,
  .two-column {
    grid-template-columns: minmax(0, 1fr);
  }
  .span-2 {
    grid-column: auto;
  }
  .topbar-actions > [data-action="theme"] {
    display: none;
  }
  .readiness-list > div {
    gap: 10px;
  }
  .metrics-grid .metric-icon {
    width: 32px;
    height: 32px;
  }
  .metrics-grid .metric-card {
    padding: 14px;
  }
  .metrics-grid .metric-card small {
    font-size: 0.67rem;
  }
  .f-editor-tabs .button {
    padding: 10px 12px;
  }
  .activity-chart {
    gap: 5px;
  }
  .activity-day small {
    font-size: 9px;
  }
}
@media (max-width: 400px) {
  .topbar-actions > .xp-chip {
    display: none;
  }
}

.f-quest {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px;
  min-width: 0;
}
.f-quest h3 {
  font-size: 1.05rem;
}
.f-request-row {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--line);
  margin-top: 18px;
  padding-top: 18px;
}
.f-ticket-list {
  margin-top: 24px;
}
.f-ticket-list details {
  border-top: 1px solid var(--line);
  padding: 18px 0;
}
.f-ticket-list summary {
  cursor: pointer;
  font-weight: 700;
  overflow-wrap: anywhere;
}
.f-ticket-list summary .badge {
  margin: 8px;
}
.f-ticket-list p {
  margin-top: 16px;
}
.f-ticket-list h3 {
  margin-top: 24px;
}
