﻿:root {
  --bg: #f7f8fc;
  --surface: #ffffff;
  --surface-soft: #f1effb;
  --surface-green: #FFF789;
  --border: #e9eaf3;
  --text: #22243d;
  --muted: #80849b;
  --purple: #6847dc;
  --purple-dark: #5938ca;
  --green: #FFF789;
  --green-dark: #4e4700;
  --cyan: #4eb7d4;
  --amber: #FFF789;
  --red: #ee4e45;
  --slate: #66758d;
  --navy: #31445e;
  --accent-ink: #3f3900;
  --shadow: 0 18px 55px rgba(67, 61, 121, 0.12);
  --font-scale: 1;
  --font-xs: clamp(9px, calc(10px * var(--font-scale)), 13px);
  --font-sm: clamp(10px, calc(11px * var(--font-scale)), 14px);
  --font-md: clamp(11px, calc(12px * var(--font-scale)), 16px);
  --font-body: clamp(12px, calc(14px * var(--font-scale)), 18px);
  --font-card: clamp(13px, calc(16px * var(--font-scale)), 20px);
  --font-title: clamp(15px, calc(18px * var(--font-scale)), 23px);
  --font-hero: clamp(18px, calc(22px * var(--font-scale)), 28px);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
  font-size: calc(14px * var(--font-scale));
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  min-height: 100vh;
}

.sidebar {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  width: 180px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 18px 14px;
  background: var(--surface);
  border-left: 1px solid var(--border);
  box-shadow: -16px 0 40px rgba(50, 45, 95, 0.06);
  transition: transform 220ms ease;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
}

.brand-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--purple), #FFF789);
  color: #fff;
}

.brand strong,
.brand span {
  display: block;
  line-height: 1.45;
}

.brand strong {
  font-size: 12px;
}

.brand span {
  color: var(--muted);
  font-size: 11px;
}

.nav-list {
  display: grid;
  gap: 4px;
}

.nav-item {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  border: 0;
  border-radius: 8px;
  padding: 0 12px;
  background: transparent;
  color: #60667d;
  text-align: start;
  transition: background-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.nav-item svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
}

.nav-item:hover {
  background: #f5f3ff;
  color: var(--purple-dark);
}

.nav-item.is-active {
  background: var(--purple);
  color: #fff;
  box-shadow: 0 12px 28px rgba(104, 71, 220, 0.26);
}

.support-box {
  margin-top: auto;
  display: grid;
  justify-items: center;
  gap: 7px;
  padding: 16px 10px 12px;
  border-radius: 8px;
  background: #f6f3ff;
  color: #594e78;
  text-align: center;
}

.support-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border: 2px solid #7657e6;
  border-radius: 50%;
  color: var(--purple);
  background: #fff;
}

.support-box strong {
  font-size: 13px;
}

.support-box span {
  color: var(--muted);
  font-size: 10px;
}

.support-link {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border: 0;
  border-radius: 8px;
  padding: 0 10px;
  background: #fff;
  color: var(--purple);
  font-weight: 700;
  font-size: 11px;
}

.main-content {
  min-height: 100vh;
  margin-right: 180px;
  padding: 0 18px 28px;
}

.topbar {
  min-height: 64px;
  display: flex;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid var(--border);
}

.page-title {
  margin-inline-start: auto;
  text-align: end;
}

.page-title h1 {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
}

.page-title p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-button {
  position: relative;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  color: #485068;
}

.icon-button svg {
  width: 18px;
  height: 18px;
}

.menu-toggle {
  display: none;
}

.notification-dot {
  position: absolute;
  inset-block-start: 7px;
  inset-inline-start: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--purple);
  border: 2px solid #fff;
}

.language-switch {
  display: flex;
  align-items: center;
  gap: 2px;
  min-height: 30px;
  padding: 3px;
  border-radius: 8px;
  background: var(--surface-green);
  color: var(--accent-ink);
  font-weight: 800;
}

.language-switch button {
  min-width: 32px;
  min-height: 24px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: inherit;
  font-size: 11px;
  font-weight: 800;
}

.language-switch button.is-selected {
  background: #fff;
  box-shadow: 0 5px 14px rgba(255, 247, 137, 0.28);
}

.font-scale-control {
  position: relative;
}

.font-scale-trigger.is-active {
  border-color: #b8d8fb;
  background: linear-gradient(135deg, #eef7ff, #ffffff);
  color: #285d95;
  box-shadow: 0 10px 24px rgba(172, 208, 246, 0.32);
}

.font-scale-panel {
  position: absolute;
  inset-block-start: calc(100% + 10px);
  inset-inline-end: 0;
  z-index: 55;
  width: min(330px, calc(100vw - 32px));
  padding: 16px;
  border: 1px solid #dce9f8;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 20px 55px rgba(48, 63, 92, 0.16);
}

.font-scale-panel[hidden] {
  display: none;
}

.font-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.font-panel-head strong,
.font-panel-head span {
  display: block;
}

.font-panel-head strong {
  font-size: calc(14px * var(--font-scale));
  font-weight: 900;
}

.font-panel-head span {
  margin-top: 3px;
  color: var(--muted);
  font-size: calc(11px * var(--font-scale));
  line-height: 1.7;
}

.font-reset {
  min-height: 30px;
  border: 0;
  border-radius: 8px;
  padding: 0 10px;
  background: #eef5ff;
  color: #285d95;
  font-size: calc(11px * var(--font-scale));
  font-weight: 900;
}

.font-preset-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

.font-preset {
  min-height: 36px;
  border: 1px solid #e1e7f4;
  border-radius: 8px;
  background: #f8fbff;
  color: #46506a;
  font-size: calc(11px * var(--font-scale));
  font-weight: 900;
  transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.font-preset:hover {
  transform: translateY(-1px);
  border-color: #b8d8fb;
}

.font-preset.is-selected {
  border-color: #9ac8f6;
  background: linear-gradient(135deg, #c8e3ff, #eef7ff);
  color: #213b5a;
  box-shadow: 0 8px 18px rgba(172, 208, 246, 0.28);
}

.font-range-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  color: #66758d;
  font-size: calc(11px * var(--font-scale));
  font-weight: 900;
}

.font-range-row input {
  width: 100%;
  accent-color: #6847dc;
}

.font-preview {
  margin: 14px 0 0;
  padding: 12px 14px;
  border: 1px solid #e4edf8;
  border-radius: 8px;
  background: #f8fbff;
  color: var(--text);
  font-size: calc(14px * var(--font-scale));
  font-weight: 800;
  line-height: 1.8;
}

.account-button {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  padding: 4px 8px;
  color: var(--text);
  text-align: start;
}

.account-button img {
  width: 31px;
  height: 31px;
  border-radius: 50%;
  background: #e6eefc;
}

.account-button span {
  display: grid;
  gap: 1px;
  min-width: 96px;
}

.account-button strong {
  font-size: 12px;
}

.account-button small {
  color: var(--muted);
  font-size: 10px;
}

.hero-band {
  position: relative;
  min-height: 132px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 18px;
  overflow: hidden;
  border: 1px solid #edeafa;
  border-radius: 8px;
  background:
    linear-gradient(110deg, rgba(255, 255, 255, 0.5), rgba(241, 237, 255, 0.96)),
    radial-gradient(circle at 12% 48%, rgba(255, 247, 137, 0.34), transparent 24%),
    #f2f0fe;
  padding: 22px 36px;
}

.hero-band::after {
  content: "";
  position: absolute;
  inset-block: 0;
  inset-inline-start: 34px;
  width: 150px;
  opacity: 0.5;
  background:
    linear-gradient(135deg, transparent 48%, rgba(255, 255, 255, 0.9) 49%, transparent 52%) 0 0 / 24px 24px;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 440px;
  text-align: center;
  margin-inline: auto;
}

.hero-copy h2 {
  margin: 0 0 9px;
  font-size: 22px;
  font-weight: 900;
}

.hero-copy p {
  margin: 0;
  color: #777b93;
  font-size: 13px;
}

.hero-visual {
  position: relative;
  z-index: 2;
  width: 255px;
  min-width: 230px;
  height: 102px;
}

.visual-gear {
  position: absolute;
  inset-block-start: 20px;
  inset-inline-start: 86px;
  width: 66px;
  height: 66px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #d8e7ff;
  color: #4c74bd;
  box-shadow: inset 0 0 0 12px #6f99d8;
}

.visual-gear svg {
  width: 34px;
  height: 34px;
  stroke-width: 2.6;
}

.visual-lens {
  position: absolute;
  inset-block-start: 58px;
  inset-inline-start: 67px;
  width: 48px;
  height: 15px;
  border-radius: 8px;
  background: #e4755e;
  transform: rotate(-35deg);
}

.visual-orbit,
.visual-device,
.visual-megaphone {
  position: absolute;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  box-shadow: 0 10px 20px rgba(73, 80, 132, 0.13);
}

.visual-orbit svg,
.visual-device svg,
.visual-megaphone svg {
  width: 18px;
  height: 18px;
}

.orbit-one {
  inset-block-start: 18px;
  inset-inline-start: 176px;
  width: 33px;
  height: 33px;
  background: #53a9d9;
}

.orbit-two {
  inset-block-start: 6px;
  inset-inline-start: 35px;
  width: 35px;
  height: 35px;
  background: #FFF789;
  color: var(--accent-ink);
}

.orbit-three {
  inset-block-start: 54px;
  inset-inline-start: 12px;
  width: 34px;
  height: 34px;
  background: #8166d8;
}

.visual-device {
  inset-block-start: 58px;
  inset-inline-start: 162px;
  width: 50px;
  height: 34px;
  border-radius: 7px;
  background: #eff7ff;
  color: #4d7abb;
  border: 2px solid #9bbbe7;
}

.visual-megaphone {
  inset-block-start: 58px;
  inset-inline-start: 216px;
  width: 32px;
  height: 32px;
  background: #8066d7;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  margin: 16px 0 12px;
}

.breadcrumbs button {
  min-height: 28px;
  border: 0;
  border-radius: 8px;
  padding: 0 14px;
  background: #f0eef9;
  color: #6f6887;
  font-size: 12px;
}

.breadcrumbs .current {
  background: #fff;
  color: var(--text);
  box-shadow: 0 6px 20px rgba(67, 61, 121, 0.08);
}

.breadcrumbs svg {
  width: 14px;
  height: 14px;
  color: #b7b3c9;
}

.learning-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 24px;
  align-items: start;
}

.content-panel,
.outline-panel {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 12px 38px rgba(76, 70, 130, 0.05);
}

.content-panel {
  grid-column: 1;
  grid-row: 1;
  padding: 22px;
}

.outline-panel {
  grid-column: 2;
  grid-row: 1;
}

.full-span {
  grid-column: 1 / -1;
}

.panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.title-block {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: end;
}

.title-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #eeeaff;
  color: var(--purple);
}

.title-icon svg {
  width: 26px;
  height: 26px;
}

.title-block h2 {
  margin: 0 0 6px;
  font-size: 20px;
}

.title-block p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  border-radius: 8px;
  padding: 0 13px;
  font-size: 11px;
  font-weight: 800;
}

.status-active {
  color: var(--accent-ink);
  background: #FFF789;
}

.status-live {
  margin-inline-start: 8px;
  color: #7258d7;
  background: #f0edff;
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  margin: 22px 0;
}

.goal-dashboard {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}

.goal-summary,
.current-skill-card {
  min-height: 178px;
  display: grid;
  align-content: space-between;
  gap: 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  padding: 16px;
  box-shadow: 0 12px 30px rgba(77, 71, 132, 0.07);
}

.goal-summary {
  position: relative;
  overflow: hidden;
}

.goal-summary::after {
  content: "";
  position: absolute;
  inset-block-start: -36px;
  inset-inline-start: -28px;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  opacity: 0.16;
}

.long-goals::after {
  background: var(--purple);
}

.short-goals::after {
  background: var(--green);
}

.summary-top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #555a73;
  font-weight: 900;
}

.summary-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 8px;
  background: #f1eefc;
  color: var(--purple);
}

.short-goals .summary-icon {
  background: #FFF789;
  color: var(--green-dark);
}

.current-skill-card .summary-icon {
  background: #eaf8fc;
  color: #2389a6;
}

.goal-summary strong {
  position: relative;
  z-index: 1;
  font-size: 34px;
  line-height: 1;
}

.goal-summary p,
.current-skill-card p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: #666b83;
  line-height: 1.8;
}

.goal-summary b {
  color: var(--text);
}

.archive-tab {
  position: relative;
  z-index: 1;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
  border: 1px solid #e2def4;
  border-radius: 8px;
  background: #f8f6ff;
  color: var(--purple);
  font-size: 12px;
  font-weight: 900;
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}

.archive-tab.is-active {
  border-color: var(--purple);
  background: var(--purple);
  color: #fff;
}

.skill-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skill-meta span {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 8px;
  background: #f4f7fb;
  color: #566077;
  padding: 0 10px;
  font-size: 11px;
  font-weight: 800;
}

.skill-meta svg {
  width: 14px;
  height: 14px;
}

.short-goals-panel {
  border-radius: 8px;
  background: #eef0f2;
  padding: 18px;
}

.short-goals-top {
  display: grid;
  grid-template-columns: minmax(190px, 1fr) minmax(0, 2fr) 52px;
  gap: 12px;
  align-items: center;
  direction: ltr;
}

.short-goals-count,
.short-goals-top h3 {
  min-height: 50px;
  display: flex;
  align-items: center;
  border-radius: 8px;
  background: #fff;
  padding: 0 22px;
  color: var(--text);
}

.short-goals-count {
  justify-content: flex-start;
  gap: 6px;
  direction: rtl;
  font-size: 16px;
  font-weight: 800;
}

.short-goals-count strong {
  font-size: 18px;
}

.short-goals-top h3 {
  justify-content: flex-end;
  margin: 0;
  direction: rtl;
  font-size: 18px;
  font-weight: 900;
}

.short-collapse {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 8px;
  background: var(--green);
  color: var(--accent-ink);
  transition: transform 160ms ease, background-color 160ms ease;
}

.short-collapse svg {
  width: 24px;
  height: 24px;
}

.short-goals-panel.is-collapsed .short-collapse svg {
  transform: rotate(180deg);
}

.short-goals-body {
  margin-top: 20px;
}

.short-goals-panel.is-collapsed .short-goals-body {
  display: none;
}

.short-tabs {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 26px;
  min-height: 46px;
  border-bottom: 1px solid #dfe3ea;
  margin-bottom: 16px;
  padding-inline: 4px;
}

.short-tab {
  position: relative;
  min-height: 44px;
  border: 0;
  background: transparent;
  color: #7582a3;
  font-size: 16px;
  font-weight: 900;
}

.short-tab::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  width: 100%;
  height: 2px;
  border-radius: 8px;
  background: transparent;
}

.short-tab.is-active {
  color: #59627f;
}

.short-tab.is-active::after {
  background: var(--green);
}

.short-goal-list {
  display: grid;
  gap: 10px;
}

.short-goal-row {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 42px 150px;
  align-items: start;
  gap: 10px;
  border-radius: 8px;
}

.goal-check {
  width: 52px;
  height: 50px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 8px;
  background: #626f90;
  color: #fff;
}

.goal-check svg {
  width: 24px;
  height: 24px;
  transition: transform 160ms ease;
}

.short-goal-row.is-open .goal-check svg {
  transform: rotate(180deg);
}

.goal-content {
  min-height: 50px;
  display: grid;
  align-content: center;
  border-radius: 8px;
  background: #fff;
  padding: 10px 18px;
}

.goal-content p {
  margin: 0;
  color: #171b2d;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.6;
}

.goal-details {
  display: none;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 9px;
}

.short-goal-row.is-open .goal-details {
  display: flex;
}

.goal-details span {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 8px;
  background: #f3f6fb;
  color: #5d667d;
  padding: 0 10px;
  font-size: 11px;
  font-weight: 800;
}

.goal-details svg {
  width: 14px;
  height: 14px;
}

.goal-assist-levels {
  display: none;
  margin-top: 12px;
  border: 1px solid #e7ebf2;
  border-radius: 8px;
  background: linear-gradient(100deg, #fbfcff, #FFF789);
  padding: 12px;
}

.short-goal-row.is-open .goal-assist-levels {
  display: block;
}

.goal-assist-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.goal-assist-head span {
  color: #22263b;
  font-size: 13px;
  font-weight: 900;
}

.goal-assist-head strong {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  border-radius: 8px;
  background: #FFF789;
  color: var(--green-dark);
  padding: 0 10px;
  font-size: 11px;
  font-weight: 900;
}

.goal-assist-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}

.goal-assist-level {
  min-height: 58px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-areas:
    "num title"
    "badge badge";
  align-items: center;
  gap: 6px;
  border: 1px solid #e2e7f0;
  border-radius: 8px;
  background: #fff;
  color: #24283d;
  padding: 8px;
  text-align: start;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.goal-assist-level:hover,
.goal-assist-level.is-selected {
  transform: translateY(-1px);
  border-color: rgba(255, 247, 137, 0.8);
  box-shadow: 0 10px 20px rgba(73, 88, 120, 0.1);
}

.goal-assist-level strong {
  grid-area: num;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #687892;
  color: #fff;
  font-size: 12px;
}

.goal-assist-level span {
  grid-area: title;
  min-width: 0;
  overflow: hidden;
  color: #24283d;
  font-size: 11px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.goal-assist-level small {
  grid-area: badge;
  width: fit-content;
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  border-radius: 8px;
  background: #e9eef6;
  color: #687892;
  padding: 0 8px;
  font-size: 10px;
  font-weight: 900;
}

.goal-assist-level.is-selected strong {
  background: var(--green);
  color: var(--accent-ink);
}

.goal-assist-level.is-video strong {
  background: #FFF789;
  color: var(--accent-ink);
}

.goal-assist-level.is-video small {
  background: #FFF789;
  color: var(--accent-ink);
}

.goal-beneficiary-panel {
  display: none;
  margin-top: 12px;
  border: 1px solid #e7ebf2;
  border-radius: 8px;
  background: #fff;
  padding: 12px;
}

.short-goal-row.is-open .goal-beneficiary-panel {
  display: block;
}

.goal-beneficiary-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.goal-beneficiary-head span {
  color: #22263b;
  font-size: 13px;
  font-weight: 900;
}

.goal-beneficiary-head strong {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border-radius: 8px;
  background: #FFF789;
  color: var(--accent-ink);
  padding: 0 10px;
  font-size: 11px;
  font-weight: 900;
}

.goal-beneficiary-search {
  min-height: 40px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  border: 1px solid #e2e7f0;
  border-radius: 8px;
  background: #fbfcff;
  padding: 0 10px;
  color: #8a91a5;
}

.goal-beneficiary-search svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

.goal-beneficiary-search input {
  min-width: 0;
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-weight: 800;
}

.goal-beneficiary-search input::placeholder {
  color: #9ba1b5;
}

.goal-beneficiary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.goal-beneficiary {
  min-height: 62px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  border: 1px solid #e2e7f0;
  border-radius: 8px;
  background: #fbfcff;
  color: var(--text);
  padding: 8px;
  text-align: start;
  transition: border-color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.goal-beneficiary:hover,
.goal-beneficiary.is-selected {
  transform: translateY(-1px);
  border-color: rgba(255, 247, 137, 0.8);
  background: #FFF789;
}

.goal-beneficiary-avatar {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #eeeaff;
  color: var(--purple);
  font-weight: 900;
}

.goal-beneficiary.is-selected .goal-beneficiary-avatar {
  background: var(--green);
  color: var(--accent-ink);
}

.goal-beneficiary-info {
  min-width: 0;
}

.goal-beneficiary-info strong,
.goal-beneficiary-info small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.goal-beneficiary-info strong {
  font-size: 12px;
}

.goal-beneficiary-info small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.goal-beneficiary > svg {
  width: 17px;
  height: 17px;
  color: #a6adbf;
}

.goal-beneficiary.is-selected > svg {
  color: var(--green-dark);
}

.goal-beneficiary-empty {
  margin: 8px 0 0;
  border-radius: 8px;
  background: #FFF789;
  color: var(--accent-ink);
  padding: 10px;
  font-size: 12px;
  font-weight: 900;
  text-align: center;
}

.goal-assign-submit {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
  margin-top: 10px;
  border: 0;
  border-radius: 8px;
  background: var(--green);
  color: var(--accent-ink);
  font-weight: 900;
}

.goal-assign-submit svg {
  width: 16px;
  height: 16px;
}

.goal-menu,
.assist-link {
  height: 50px;
  border: 0;
  border-radius: 8px;
  background: #fff;
  color: #171b2d;
  font-weight: 800;
}

.goal-menu {
  display: grid;
  place-items: center;
}

.goal-menu svg {
  width: 20px;
  height: 20px;
}

.assist-link {
  padding: 0 18px;
  text-align: start;
}

.archived-row {
  opacity: 0.78;
}

.action-button,
.wide-button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 8px;
  padding: 0 20px;
  color: #fff;
  font-weight: 800;
  box-shadow: 0 14px 26px rgba(65, 60, 110, 0.12);
  transition: transform 160ms ease, filter 160ms ease;
}

.action-button:hover,
.wide-button:hover,
.add-chapter:hover,
.mini-add:hover {
  transform: translateY(-1px);
  filter: saturate(1.08);
}

.action-button svg,
.wide-button svg {
  width: 17px;
  height: 17px;
}

.green {
  background: var(--green);
  color: var(--accent-ink);
}

.yellow {
  background: #FFF789;
  color: var(--accent-ink);
}

.purple {
  background: var(--purple);
}

.slate {
  background: var(--slate);
}

.navy {
  background: var(--navy);
}

.soft-blue {
  background: linear-gradient(135deg, #c8e3ff, #acd0f6);
  color: #213b5a;
}

.red {
  background: var(--red);
}

.levels-surface {
  border-radius: 8px;
  background: #f3f0fb;
  padding: 22px 20px;
}

.levels-surface.help-levels {
  background:
    linear-gradient(100deg, rgba(255, 255, 255, 0.96), rgba(244, 252, 249, 0.96)),
    #fff;
  border: 1px solid #e6edf7;
  padding: 24px 22px 20px;
}

.section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.section-heading h3 {
  margin: 0 0 5px;
  font-size: 18px;
}

.section-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.levels-heading {
  justify-content: flex-start;
  text-align: start;
}

.levels-heading h3 {
  font-size: 20px;
}

.levels-heading p {
  color: #7885a6;
  font-weight: 800;
}

.help-levels .help-button {
  display: none;
}

.section-heading.compact {
  margin-bottom: 16px;
}

.section-heading.compact > svg {
  width: 31px;
  height: 31px;
  color: var(--purple);
  padding: 6px;
  border-radius: 8px;
  background: #efeaff;
}

.help-button {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: #e7e1ff;
  color: var(--purple);
}

.data-method-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.method-chip {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid #e0dbf1;
  border-radius: 8px;
  background: #fff;
  color: #5d6378;
  padding: 0 14px;
  font-size: 12px;
  font-weight: 900;
}

.method-chip.is-selected {
  border-color: rgba(255, 247, 137, 0.75);
  background: #FFF789;
  color: var(--green-dark);
}

.method-chip svg {
  width: 16px;
  height: 16px;
}

.levels-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(105px, 1fr));
  gap: 14px;
}

.level-card,
.add-level-card {
  min-height: 132px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  box-shadow: 0 10px 25px rgba(92, 86, 140, 0.07);
}

.level-card {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 8px;
  padding: 13px 8px;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.level-card.level-strip {
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  overflow: hidden;
  padding: 0 8px;
  text-align: start;
}

.level-card:hover,
.level-card.is-selected {
  transform: translateY(-2px);
  border-color: rgba(104, 71, 220, 0.38);
  box-shadow: 0 18px 32px rgba(92, 86, 140, 0.13);
}

.level-card.level-strip:hover,
.level-card.level-strip.is-selected {
  border-color: #d8e0ed;
  box-shadow: 0 14px 28px rgba(73, 88, 120, 0.1);
}

.level-name {
  font-weight: 800;
  font-size: 13px;
}

.level-card strong {
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  font-size: 22px;
  box-shadow: inset 0 -6px 0 rgba(0, 0, 0, 0.08);
}

.level-card.level-strip strong {
  width: 29px;
  height: 29px;
  flex: 0 0 auto;
  font-size: 14px;
  background: #687892;
  box-shadow: none;
}

.level-title {
  flex: 1 1 auto;
  min-width: 0;
  color: #24283d;
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.level-card small {
  min-height: 30px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  padding: 0 8px;
  font-size: 10px;
  font-weight: 800;
}

.level-card.level-strip .media-badge {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border-radius: 8px;
  padding: 0 8px;
  font-size: 12px;
  font-weight: 900;
}

.media-badge.image {
  background: #e9eef6;
  color: #687892;
}

.media-badge.video {
  background: #FFF789;
  color: var(--accent-ink);
}

.level-card.gray strong {
  background: #72829a;
}

.level-card.gray small {
  color: #617087;
  background: #eef1f5;
}

.level-card.violet strong {
  background: #7657e6;
}

.level-card.violet small {
  color: #6847dc;
  background: #efeaff;
}

.level-card.cyan strong {
  background: var(--cyan);
}

.level-card.cyan small {
  color: #2587a3;
  background: #e9f8fc;
}

.level-card.mint strong {
  background: #FFF789;
  color: var(--accent-ink);
}

.level-card.mint small {
  color: var(--accent-ink);
  background: #FFF789;
}

.level-card.amber strong {
  background: var(--amber);
  color: var(--accent-ink);
}

.level-card.amber small {
  color: var(--accent-ink);
  background: #FFF789;
}

.level-card.video-level {
  grid-column: span 2;
}

.level-card.video-level strong {
  background: #FFF789;
  color: var(--accent-ink);
}

.add-level-card {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  border-style: dashed;
  color: var(--purple);
  font-weight: 800;
  background: rgba(255, 255, 255, 0.58);
}

.add-level-card svg {
  width: 34px;
  height: 34px;
  stroke-width: 2.4;
}

.primary-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 22px;
}

.primary-actions.help-actions {
  margin-top: 18px;
  border-top: 1px dashed #dfe4ef;
  padding-top: 18px;
}

.primary-actions.goal-resource-actions {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.wide-button {
  min-height: 52px;
  font-size: 14px;
  line-height: 1.5;
  padding: 0 14px;
  text-align: center;
}

.assignment-panel {
  margin-top: 6px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  padding: 18px;
  box-shadow: 0 12px 30px rgba(77, 71, 132, 0.05);
}

.assignment-panel .section-heading.compact > svg {
  background: #FFF789;
  color: var(--green-dark);
}

.assignment-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 16px;
}

.assignment-picker {
  display: grid;
  gap: 12px;
}

.search-control {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #e4e7f0;
  border-radius: 8px;
  background: #fbfcff;
  padding: 0 12px;
  color: #8a91a5;
}

.search-control svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
}

.search-control input {
  min-width: 0;
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-weight: 800;
}

.search-control input::placeholder {
  color: #9ba1b5;
}

.beneficiary-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.beneficiary-chip {
  min-height: 74px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  border: 1px solid #e5e8f2;
  border-radius: 8px;
  background: #fbfcff;
  color: var(--text);
  padding: 10px;
  text-align: start;
  transition: border-color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.beneficiary-chip:hover,
.beneficiary-chip.is-selected {
  transform: translateY(-1px);
  border-color: rgba(255, 247, 137, 0.8);
  background: #FFF789;
}

.beneficiary-chip .avatar {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #eeeaff;
  color: var(--purple);
  font-weight: 900;
}

.beneficiary-chip.is-selected .avatar {
  background: var(--green);
  color: var(--accent-ink);
}

.beneficiary-chip strong,
.beneficiary-chip small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.beneficiary-chip strong {
  font-size: 13px;
}

.beneficiary-chip small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.beneficiary-chip > svg {
  width: 18px;
  height: 18px;
  color: #b2b8c8;
}

.beneficiary-chip.is-selected > svg {
  color: var(--green-dark);
}

.assignment-summary {
  display: grid;
  gap: 10px;
  align-content: stretch;
}

.summary-metric {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid #eceef6;
  border-radius: 8px;
  background: #fbfcff;
  padding: 12px;
}

.summary-metric span {
  color: #626980;
  font-size: 12px;
  font-weight: 900;
}

.summary-metric strong {
  color: var(--text);
  font-size: 22px;
}

.assignment-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.assign-button,
.ghost-button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-radius: 8px;
  font-weight: 900;
}

.assign-button {
  border: 0;
  background: var(--green);
  color: var(--accent-ink);
}

.ghost-button {
  border: 1px solid #e1def2;
  background: #f8f6ff;
  color: var(--purple);
}

.assign-button svg,
.ghost-button svg {
  width: 16px;
  height: 16px;
}

.management-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-start;
  margin-top: 2px;
}

.manage-button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 8px;
  padding: 0 18px;
  color: #fff;
  font-weight: 900;
  box-shadow: 0 12px 24px rgba(65, 60, 110, 0.11);
  transition: transform 160ms ease, filter 160ms ease;
}

.manage-button:hover {
  transform: translateY(-1px);
  filter: saturate(1.08);
}

.manage-button svg {
  width: 16px;
  height: 16px;
}

.manage-button.green,
.manage-button.yellow {
  color: var(--accent-ink);
}

.advanced-settings {
  margin-top: 22px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  padding: 18px;
  box-shadow: 0 12px 30px rgba(77, 71, 132, 0.05);
}

.settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.setting-row {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid #ecedf5;
  border-radius: 8px;
  background: #fbfcff;
  padding: 12px 14px;
  color: #50566d;
  font-weight: 900;
}

.setting-row select {
  min-width: 150px;
  min-height: 38px;
  border: 1px solid #dedfed;
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  padding: 0 12px;
  font-weight: 800;
}

.stepper {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 8px;
  background: #f2f0fb;
  padding: 4px;
}

.stepper button {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 7px;
  background: #fff;
  color: var(--purple);
}

.stepper output {
  min-width: 34px;
  color: var(--text);
  font-size: 18px;
  font-weight: 900;
  text-align: center;
}

.outline-panel {
  padding: 16px;
}

.outline-root {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 18px;
  background: #eeecfb;
  color: #4c4771;
  padding: 0 10px 0 8px;
  font-size: 12px;
  font-weight: 900;
}

.outline-root button {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--purple);
  color: #fff;
}

.outline-root svg {
  width: 14px;
  height: 14px;
}

.tree-list {
  position: relative;
  display: grid;
  gap: 12px;
  margin: 18px 0;
  padding-inline-start: 18px;
}

.tree-line {
  position: absolute;
  inset-block: 3px 12px;
  inset-inline-start: 5px;
  width: 2px;
  background: #d7cff9;
}

.tree-group {
  position: relative;
  display: grid;
  gap: 7px;
}

.tree-node {
  display: flex;
  align-items: center;
  gap: 8px;
}

.node-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--purple);
  box-shadow: 0 0 0 4px #fff;
}

.node-label {
  min-height: 35px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  border: 0;
  border-radius: 18px;
  background: #f6f5fb;
  color: #45425d;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 800;
  text-align: start;
}

.node-label svg {
  width: 14px;
  height: 14px;
  color: #8d86bf;
}

.mini-add {
  width: fit-content;
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  border-radius: 18px;
  padding: 0 11px;
  margin-inline-start: 20px;
  background: #FFF789;
  color: var(--accent-ink);
  font-size: 10px;
  font-weight: 900;
  transition: transform 160ms ease;
}

.mini-add svg {
  width: 13px;
  height: 13px;
}

.tree-group.is-muted .node-label {
  color: #9a94ad;
}

.tree-group.is-muted .mini-add {
  background: #f1ecff;
  color: var(--purple);
}

.add-chapter {
  width: 100%;
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px dashed #c9bef4;
  border-radius: 8px;
  background: #fbfaff;
  color: var(--purple);
  font-size: 12px;
  font-weight: 900;
  transition: transform 160ms ease, background-color 160ms ease;
}

.add-chapter svg {
  width: 16px;
  height: 16px;
}

.toast {
  position: fixed;
  inset-block-end: 24px;
  inset-inline-start: 24px;
  z-index: 50;
  min-width: 230px;
  max-width: calc(100vw - 48px);
  padding: 13px 16px;
  border-radius: 8px;
  background: #263043;
  color: #fff;
  box-shadow: 0 18px 45px rgba(27, 33, 49, 0.24);
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.overlay {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: none;
  background: rgba(31, 35, 51, 0.38);
}

svg {
  width: 18px;
  height: 18px;
}

@media (max-width: 1180px) {
  .learning-grid {
    grid-template-columns: 1fr;
  }

  .content-panel,
  .outline-panel,
  .full-span {
    grid-column: 1;
    grid-row: auto;
  }

  .outline-panel {
    order: 2;
  }

  .goal-dashboard {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .levels-surface.help-levels,
  .primary-actions.help-actions {
    margin-left: 0;
  }

  .levels-grid {
    grid-template-columns: repeat(3, minmax(120px, 1fr));
  }

  .primary-actions.goal-resource-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .assignment-layout {
    grid-template-columns: 1fr;
  }

  .short-goal-row {
    grid-template-columns: 52px minmax(0, 1fr) 42px 132px;
  }

  .goal-assist-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .goal-beneficiary-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .sidebar {
    transform: translateX(100%);
  }

  body.sidebar-open .sidebar {
    transform: translateX(0);
  }

  body.sidebar-open .overlay {
    display: block;
  }

  .main-content {
    margin-right: 0;
  }

  .menu-toggle {
    display: grid;
  }

  .topbar {
    flex-wrap: wrap;
    padding-block: 12px;
  }

  .page-title {
    order: 2;
    width: 100%;
    margin-inline-start: 0;
    text-align: start;
  }

  .top-actions {
    margin-inline-start: auto;
  }

  .hero-band {
    align-items: flex-start;
    padding: 20px;
  }

  .hero-copy {
    margin: 0;
    text-align: start;
  }

  .hero-visual {
    transform: scale(0.86);
    transform-origin: left top;
    margin-inline-start: -32px;
  }

  .panel-heading {
    flex-direction: column-reverse;
  }

  .title-block {
    text-align: start;
  }
}

@media (max-width: 680px) {
  .main-content {
    padding: 0 12px 22px;
  }

  .top-actions {
    width: 100%;
    justify-content: space-between;
  }

  .account-button span {
    min-width: 0;
  }

  .account-button strong,
  .account-button small {
    display: none;
  }

  .hero-band {
    min-height: auto;
    flex-direction: column;
  }

  .hero-visual {
    width: 100%;
    min-width: 0;
    transform: none;
    margin-inline-start: 0;
  }

  .breadcrumbs {
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .content-panel,
  .outline-panel {
    padding: 14px;
  }

  .action-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .goal-dashboard,
  .settings-grid {
    grid-template-columns: 1fr;
  }

  .short-goals-panel {
    padding: 14px;
  }

  .short-goals-top {
    grid-template-columns: 1fr 52px;
  }

  .short-goals-count {
    grid-column: 1 / -1;
  }

  .short-goals-top h3 {
    justify-content: flex-start;
    font-size: 16px;
  }

  .short-tabs {
    gap: 10px;
    overflow-x: auto;
  }

  .short-tab {
    flex: 0 0 auto;
    font-size: 14px;
  }

  .short-goal-row {
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 8px;
  }

  .goal-check {
    width: 46px;
    height: 46px;
  }

  .goal-content {
    min-height: 46px;
    padding: 10px 12px;
  }

  .goal-content p {
    font-size: 14px;
  }

  .goal-assist-head {
    align-items: stretch;
    flex-direction: column;
  }

  .goal-assist-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .goal-beneficiary-head {
    align-items: stretch;
    flex-direction: column;
  }

  .goal-beneficiary-grid {
    grid-template-columns: 1fr;
  }

  .goal-menu,
  .assist-link {
    height: 40px;
  }

  .goal-menu {
    grid-column: 1;
  }

  .assist-link {
    grid-column: 2;
  }

  .beneficiary-list {
    grid-template-columns: 1fr;
  }

  .assignment-actions {
    grid-template-columns: 1fr;
  }

  .goal-summary,
  .current-skill-card {
    min-height: auto;
  }

  .setting-row {
    align-items: stretch;
    flex-direction: column;
  }

  .setting-row select,
  .stepper {
    width: 100%;
  }

  .stepper {
    justify-content: space-between;
  }

  .action-button {
    padding: 0 10px;
  }

  .levels-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .primary-actions {
    grid-template-columns: 1fr;
  }

  .primary-actions.goal-resource-actions {
    grid-template-columns: 1fr;
  }

  .management-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .manage-button {
    padding: 0 12px;
  }
}

@media (max-width: 430px) {
  .action-row,
  .levels-grid {
    grid-template-columns: 1fr;
  }

  .management-actions {
    grid-template-columns: 1fr;
  }

  .levels-surface.help-levels .levels-grid {
    grid-template-columns: 1fr;
  }

  .levels-surface.help-levels .level-card.video-level {
    grid-column: auto;
  }

  .title-block {
    align-items: flex-start;
  }

  .title-icon {
    width: 46px;
    height: 46px;
  }

  .hero-copy h2 {
    font-size: 19px;
  }
}

.brand strong,
.page-title p,
.hero-copy p,
.title-block p,
.support-box strong,
.account-button strong,
.archive-tab,
.breadcrumb-pill,
.metric-label,
.goal-meta,
.goal-assist-head strong,
.goal-beneficiary-head strong,
.goal-beneficiary-info small,
.setting-row span,
.font-panel-head span {
  font-size: var(--font-md);
}

.brand span,
.support-box span,
.account-button small,
.level-card small,
.goal-assist-level small,
.goal-beneficiary-empty,
.font-reset,
.font-preset,
.font-range-row {
  font-size: var(--font-sm);
}

.nav-item,
.support-link,
.action-button,
.wide-button,
.manage-button,
.method-chip,
.beneficiary-chip,
.goal-assign-submit,
.mini-add,
.setting-row select,
.stepper,
.font-preview {
  font-size: var(--font-body);
}

.page-title h1,
.short-goals-count strong,
.short-goals-top h3,
.panel-heading h2,
.title-block h2,
.section-heading h3,
.levels-surface h3,
.assignment-head h3,
.advanced-settings h3,
.current-skill-card h3,
.summary-copy strong,
.node-label {
  font-size: var(--font-title);
}

.hero-copy h2 {
  font-size: var(--font-hero);
}

.short-goals-count,
.short-tab,
.goal-content p,
.level-card strong,
.goal-assist-head span,
.goal-beneficiary-head span,
.goal-assist-level span,
.goal-beneficiary-info strong {
  font-size: var(--font-card);
}

@media (max-width: 680px) {
  .font-scale-control {
    position: static;
  }

  .font-scale-panel {
    position: fixed;
    inset: 76px 12px auto;
    width: auto;
    max-height: calc(100vh - 92px);
    overflow: auto;
  }

  .font-preset-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
