:root {
  color-scheme: light;
  --bg: #f8f4ff;
  --bg-warm: #fff8f4;
  --surface: #ffffff;
  --surface-2: #f1eaff;
  --surface-3: #fff0ec;
  --text: #201a2f;
  --muted: #746b84;
  --line: #e5ddf4;
  --violet: #8b6ff6;
  --violet-deep: #5e49bd;
  --coral: #ff7a68;
  --done: #34a36f;
  --done-deep: #20784f;
  --done-bg: #eefaf3;
  --amber: #f0a35b;
  --blue: #5168f4;
  --rose: #d94f7a;
  --mobile-nav-height: 72px;
  --shadow: 0 18px 48px rgba(55, 36, 112, 0.1);
  --shadow-soft: 0 10px 28px rgba(55, 36, 112, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background:
    linear-gradient(135deg, var(--bg) 0%, #ffffff 48%, var(--bg-warm) 100%);
  color: var(--text);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 8px;
  left: 8px;
  padding: 9px 12px;
  border-radius: 8px;
  color: #fff;
  background: var(--violet-dark);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

button,
input,
textarea,
select {
  font: inherit;
}

button,
.topbar-actions a {
  min-height: 42px;
  max-width: 100%;
  border: 0;
  border-radius: 8px;
  background: var(--violet-deep);
  color: #fff;
  cursor: pointer;
  font-weight: 620;
  text-align: center;
  overflow-wrap: anywhere;
}

button:hover,
.topbar-actions a:hover {
  background: #4d3da5;
}

button.secondary {
  background: var(--done);
  color: #fff;
}

button.secondary:hover {
  background: var(--done-deep);
}

button.ghost {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--violet-deep);
}

button.ghost:hover {
  background: var(--surface-2);
}

button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

strong {
  font-weight: 650;
}

a {
  color: inherit;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 272px minmax(0, 1fr);
  max-width: 100%;
  overflow-x: clip;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 20px;
  border-right: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(18px);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  min-width: 0;
}

.brand-mark {
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  border-radius: 8px;
  background: var(--violet-deep);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 680;
  box-shadow: inset -8px -8px 0 rgba(255, 122, 104, 0.26);
}

.brand h1 {
  font-size: 20px;
  line-height: 1.12;
  font-weight: 650;
}

.brand > div:last-child,
.panel-head > div,
.topbar > div,
.command-bar > div,
.lesson-row > span:nth-child(3),
.done-row span,
.metric-card,
.week-node,
.path-node {
  min-width: 0;
}

.eyebrow {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: uppercase;
}

.nav-list {
  display: grid;
  gap: 6px;
  overflow: auto;
  padding-right: 4px;
}

.nav-list button {
  min-height: 72px;
  height: auto;
  padding: 10px 12px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text);
  text-align: left;
  display: grid;
  gap: 2px;
  align-content: center;
  overflow: visible;
}

.nav-list button.active,
.nav-list button:hover {
  border-color: #d8ccf2;
  background: var(--surface-2);
}

.nav-list span {
  font-size: 15px;
  font-weight: 620;
}

.nav-list small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 450;
  line-height: 1.25;
  white-space: normal;
  overflow-wrap: anywhere;
}

.sidebar-status {
  margin-top: auto;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  display: grid;
  gap: 3px;
}

.sidebar-status span,
.sidebar-status small {
  color: var(--muted);
}

.sidebar-status strong {
  font-size: 24px;
  line-height: 1.05;
  font-weight: 650;
}

main {
  width: min(1260px, 100%);
  min-width: 0;
  margin: 0 auto;
  padding: 22px;
  display: grid;
  gap: 16px;
}

.topbar {
  min-height: 70px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
}

.topbar h2 {
  max-width: 860px;
  font-size: 23px;
  line-height: 1.18;
  font-weight: 650;
  overflow-wrap: anywhere;
}

.topbar-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.topbar-actions button,
.topbar-actions a {
  padding: 10px 14px;
  text-decoration: none;
  display: grid;
  place-items: center;
}

.view-host {
  display: grid;
  gap: 16px;
}

.mobile-nav,
.mobile-menu {
  display: none;
}

main > *,
.view-host > *,
.panel,
.command-bar,
.metric-grid,
.today-grid,
.two-col,
.content-grid,
.month-timeline,
.week-map,
.day-grid,
.case-grid,
.service-grid,
.source-grid,
.week-detail-grid,
.skill-board,
.path-track {
  min-width: 0;
  max-width: 100%;
}

.panel,
.metric-card,
.command-bar,
.daily-overview,
.completion-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-soft);
}

.daily-overview {
  padding: 18px 20px;
  border-left: 5px solid var(--violet);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
}

.daily-copy h2 {
  max-width: 760px;
  margin-bottom: 6px;
  font-size: clamp(24px, 2.4vw, 32px);
  font-weight: 650;
  line-height: 1.14;
  overflow-wrap: anywhere;
}

.daily-copy,
.daily-copy h2,
.daily-result,
.daily-overview > * {
  min-width: 0;
  max-width: 100%;
}

.daily-result {
  color: var(--muted);
}

.daily-stats {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.daily-stats span {
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 13px;
}

.daily-stats strong {
  color: var(--text);
}

.daily-goal {
  max-width: 420px;
  margin-top: 10px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #faf8ff;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
}

.daily-goal > .tiny-meter {
  grid-column: 1 / -1;
}

.daily-goal.done {
  border-color: rgba(41, 158, 112, 0.32);
  background: var(--done-bg);
}

.daily-goal-mark {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: #fff;
  background: var(--violet);
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
}

.daily-goal.done .daily-goal-mark {
  background: var(--done);
}

.daily-goal-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.daily-goal-copy strong {
  font-size: 13px;
  font-weight: 650;
}

.daily-goal-copy small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.daily-progress {
  width: 142px;
  display: grid;
  justify-items: center;
  gap: 2px;
  text-align: center;
}

.daily-progress .progress-ring {
  transform: scale(0.86);
  margin: -9px;
}

.daily-progress > small {
  max-width: 150px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.25;
}

.command-bar {
  padding: 18px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  border-left: 5px solid var(--coral);
}

.command-bar h2 {
  max-width: 780px;
  margin-bottom: 6px;
  font-size: clamp(22px, 2.5vw, 30px);
  line-height: 1.14;
  font-weight: 650;
  overflow-wrap: anywhere;
}

.command-bar p {
  max-width: 850px;
  color: var(--muted);
}

.command-actions {
  display: flex;
  gap: 14px;
  align-items: center;
}

.level-chip {
  min-width: 150px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  display: grid;
  gap: 3px;
}

.level-chip span,
.level-chip small {
  color: var(--muted);
}

.level-chip span {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.level-chip strong {
  font-size: 18px;
  font-weight: 650;
  line-height: 1.15;
}

.progress-ring {
  position: relative;
  width: 132px;
  height: 132px;
  display: grid;
  place-items: center;
}

.progress-ring svg {
  position: absolute;
  inset: 0;
  transform: rotate(-90deg);
}

.progress-ring circle {
  fill: none;
  stroke-width: 10;
}

.ring-bg {
  stroke: var(--surface-2);
}

.ring-value {
  stroke: var(--violet);
  stroke-linecap: round;
  transition: stroke-dashoffset 220ms ease;
}

.progress-ring div {
  width: 94px;
  height: 94px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  display: grid;
  place-items: center;
  align-content: center;
  text-align: center;
}

.progress-ring strong {
  font-size: 25px;
  font-weight: 650;
  line-height: 1;
}

.progress-ring span {
  max-width: 76px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 560;
  line-height: 1.15;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.metric-card {
  min-height: 86px;
  padding: 14px;
  display: grid;
  gap: 2px;
  align-content: center;
}

.metric-card.accent {
  border-color: rgba(255, 122, 104, 0.5);
  background: var(--surface-3);
}

.metric-card.success {
  border-color: rgba(52, 163, 111, 0.35);
  background: var(--done-bg);
}

.metric-card span,
.metric-card small {
  color: var(--muted);
}

.metric-card span {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.metric-card strong {
  font-size: 23px;
  font-weight: 650;
  line-height: 1.08;
  overflow-wrap: anywhere;
}

.panel {
  padding: 18px;
}

.panel h3 {
  margin-bottom: 10px;
  font-size: 20px;
  line-height: 1.22;
  font-weight: 650;
  overflow-wrap: anywhere;
}

.panel h4 {
  margin: 14px 0 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.panel p {
  color: var(--muted);
}

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

.panel-head > span,
.output-row span,
.readiness {
  max-width: 260px;
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 12px;
  font-weight: 560;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.path-panel {
  padding-bottom: 12px;
  min-width: 0;
  overflow: hidden;
}

.path-track {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: visible;
  padding: 8px 2px 2px;
}

.path-node {
  position: relative;
  min-width: 0;
  min-height: 142px;
  padding: 4px 8px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  color: var(--text);
  font-weight: 450;
  text-align: center;
}

.path-node:not(:last-child)::after {
  position: absolute;
  top: 25px;
  left: calc(50% + 25px);
  z-index: 0;
  width: calc(100% - 50px);
  height: 4px;
  border-radius: 999px;
  background: var(--line);
  content: "";
}

.path-node.done:not(:last-child)::after {
  background: rgba(52, 163, 111, 0.62);
}

button.path-node:hover {
  background: var(--surface-2);
}

.path-node.active {
  background: #fbf9ff;
}

.path-node.done {
  color: var(--done-deep);
}

.path-node.future {
  color: var(--muted);
}

.node-badge {
  position: relative;
  z-index: 1;
  width: 44px;
  height: 44px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--violet-deep);
  display: grid;
  place-items: center;
  font-weight: 650;
  box-shadow: 0 0 0 1px var(--line);
}

.node-copy {
  min-width: 0;
  width: 100%;
  display: grid;
  justify-items: center;
}

.compact-button {
  min-height: 34px;
  padding: 6px 10px;
  font-size: 13px;
}

.path-node.active .node-badge {
  background: var(--violet);
  color: #fff;
  box-shadow: 0 0 0 4px rgba(139, 111, 246, 0.18);
}

.path-node.done .node-badge {
  background: var(--done);
  color: #fff;
  box-shadow: 0 0 0 1px rgba(52, 163, 111, 0.45);
}

.path-node strong,
.path-node span,
.path-node small {
  display: block;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.path-node span,
.path-node small {
  color: var(--muted);
}

.path-node span {
  margin: 3px 0;
  font-size: 13px;
  line-height: 1.25;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.path-node small {
  font-size: 12px;
  font-weight: 560;
}

.path-node.active small,
.path-node.available small {
  color: var(--violet-deep);
}

.today-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.72fr);
  gap: 16px;
  align-items: start;
}

.side-stack {
  display: grid;
  gap: 16px;
}

.lesson-panel {
  min-height: 0;
}

.lesson-progress {
  margin-bottom: 14px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.next-lesson-card {
  margin-bottom: 14px;
  padding: 16px;
  border: 1px solid rgba(139, 111, 246, 0.52);
  border-radius: 8px;
  background: #fbf9ff;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
}

.next-lesson-card > div {
  min-width: 0;
}

.next-lesson-card h4 {
  margin: 3px 0 5px;
  font-size: 18px;
  font-weight: 650;
  overflow-wrap: anywhere;
}

.next-lesson-card p:not(.eyebrow) {
  margin: 0 0 7px;
  color: var(--muted);
}

.next-lesson-card small,
.route-status {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.next-lesson-card button {
  flex: 0 0 auto;
}

.route-status {
  margin-bottom: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(139, 111, 246, 0.3);
  border-radius: 8px;
  background: var(--surface-2);
}

.route-status.done {
  border-color: rgba(52, 163, 111, 0.36);
  background: var(--done-bg);
  color: var(--done-deep);
}

.day-resources {
  margin: 4px 0 8px;
  padding: 12px;
  border: 1px solid rgba(139, 111, 246, 0.3);
  border-radius: 8px;
  background: #fbf9ff;
}

.day-resources.compact {
  grid-column: 1 / -1;
  margin: 0;
}

.resource-heading {
  margin-bottom: 9px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.resource-heading h4 {
  margin: 0;
  font-size: 15px;
}

.resource-heading > span {
  min-width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--violet-deep);
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
}

.resource-list {
  display: grid;
  gap: 8px;
}

.resource-row {
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  gap: 9px;
  align-items: center;
}

.resource-row.started {
  border-color: rgba(52, 163, 111, 0.35);
  background: var(--done-bg);
}

.resource-type {
  min-height: 34px;
  border-radius: 7px;
  background: var(--violet-deep);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
}

.resource-row > div {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.resource-row strong,
.resource-row small,
.resource-row em {
  overflow-wrap: anywhere;
}

.resource-row small {
  color: var(--muted);
  font-size: 12px;
}

.resource-row em {
  color: var(--done-deep);
  font-size: 11px;
  font-style: normal;
}

.resource-download {
  min-height: 38px;
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--violet-deep);
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
}

.resource-download:hover {
  background: var(--surface-2);
}

.resource-row > label {
  grid-column: 2 / -1;
  display: flex;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
  cursor: pointer;
}

.resource-row > label input {
  width: 18px;
  height: 18px;
  padding: 0;
}

.tiny-meter {
  height: 9px;
  border-radius: 999px;
  background: var(--surface-2);
  overflow: hidden;
}

.tiny-meter i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--violet), var(--coral));
}

.lesson-list,
.task-list,
.done-list,
.mode-list,
.notes-form,
.service-card,
.source-list {
  display: grid;
  gap: 9px;
}

.task-list.compact {
  gap: 7px;
}

.lesson-row {
  min-height: 72px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  display: grid;
  grid-template-columns: 22px 42px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  cursor: pointer;
}

.lesson-row > span:nth-child(3) em {
  display: block;
  margin-top: 5px;
}

.lesson-start {
  min-height: 38px;
  padding: 7px 11px;
  color: var(--violet-deep);
  font-size: 13px;
}

.lesson-row:hover,
.task-row:hover,
.done-row:hover,
.skill-list label:hover {
  border-color: rgba(139, 111, 246, 0.56);
  background: #fbf8ff;
}

.lesson-row.next {
  border-color: rgba(139, 111, 246, 0.56);
  background: #fbf9ff;
}

.lesson-dot {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--violet-deep);
  display: grid;
  place-items: center;
  font-weight: 650;
}

.lesson-row small {
  display: block;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.28;
  overflow-wrap: anywhere;
}

.lesson-row em,
.done-row em {
  color: var(--done-deep);
  font-size: 12px;
  font-style: normal;
  font-weight: 600;
}

.task-row,
.done-row {
  min-height: 50px;
  padding: 10px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  cursor: pointer;
}

.task-row {
  grid-template-columns: 22px minmax(0, 1fr);
}

.task-row span,
.done-row span,
.skill-list span {
  overflow-wrap: anywhere;
}

.task-row input,
.lesson-row input,
.done-row input,
.skill-list input {
  width: 18px;
  height: 18px;
  accent-color: var(--violet);
}

.done-row {
  border-color: rgba(52, 163, 111, 0.35);
  background: var(--done-bg);
}

.done-row input {
  accent-color: var(--done);
}

.completed-today {
  margin-top: 14px;
  display: grid;
  gap: 8px;
}

.section-title {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: end;
}

.section-title span {
  font-weight: 650;
}

.section-title small {
  color: var(--muted);
  font-size: 12px;
}

.inline-done {
  min-height: 46px;
}

.empty-state {
  padding: 14px;
  border: 1px dashed #d7c8f2;
  border-radius: 8px;
  background: #fbf8ff;
  color: var(--muted);
  font-weight: 520;
}

.empty-state.strong {
  color: var(--text);
  background: var(--done-bg);
  border-color: rgba(52, 163, 111, 0.4);
}

.day-actions {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.day-actions button {
  padding: 10px 16px;
}

.done-open {
  min-height: 34px;
  padding: 6px 9px;
  font-size: 12px;
}

.completion-panel {
  padding: 16px 18px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  border-left: 5px solid var(--done);
}

.completion-panel h3 {
  margin-bottom: 4px;
  font-size: 21px;
  font-weight: 650;
  line-height: 1.15;
}

.completion-panel p {
  color: var(--muted);
}

.completion-panel > button {
  padding: 10px 14px;
}

.celebration-overlay,
.lesson-dialog-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  padding: 20px;
  background: rgba(32, 26, 47, 0.48);
  backdrop-filter: blur(6px);
  display: grid;
  place-items: center;
}

.lesson-dialog {
  width: min(760px, 100%);
  max-height: calc(100vh - 40px);
  overflow: auto;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.lesson-dialog-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: start;
}

.lesson-dialog-head h3 {
  margin-bottom: 8px;
  font-size: 28px;
  font-weight: 650;
  line-height: 1.15;
}

.lesson-dialog-head p:not(.eyebrow) {
  max-width: 620px;
  color: var(--muted);
}

.lesson-dialog-body {
  margin-top: 22px;
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 0 24px;
}

.lesson-section {
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.steps-section {
  grid-row: span 2;
}

.lesson-section h4 {
  margin: 0 0 10px;
  color: var(--violet-deep);
  font-size: 13px;
  font-weight: 650;
  text-transform: uppercase;
}

.lesson-section ul,
.lesson-section ol {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 9px;
}

.lesson-section li {
  padding-left: 4px;
  color: var(--text);
}

.evidence-section {
  grid-column: 1 / -1;
}

.evidence-form {
  display: grid;
  gap: 10px;
}

.evidence-form label {
  display: grid;
  gap: 6px;
  color: var(--text);
  font-size: 13px;
  font-weight: 620;
}

.evidence-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.evidence-actions small {
  color: var(--done-deep);
  font-size: 12px;
  text-align: right;
}

.ready-section li::marker {
  color: var(--done);
}

.lesson-sources {
  display: grid;
  gap: 7px;
}

.lesson-sources a {
  width: fit-content;
  color: var(--violet-deep);
  font-size: 13px;
  font-weight: 600;
  text-underline-offset: 3px;
}

.lesson-sources a:hover {
  color: var(--text);
}

.russian-sources-section {
  border-color: rgba(139, 111, 246, 0.3);
  background: #fbf9ff;
}

.russian-sources-section .lesson-sources a {
  width: 100%;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  text-decoration: none;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.russian-sources-section .lesson-sources small {
  color: var(--muted);
  font-size: 11px;
  text-align: right;
  overflow-wrap: anywhere;
}

.lesson-dialog-footer {
  margin-top: 4px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
}

.lesson-dialog-footer > div {
  display: grid;
  gap: 2px;
}

.lesson-dialog-footer span {
  color: var(--muted);
  font-size: 12px;
}

.lesson-dialog-footer small {
  color: var(--done-deep);
  font-size: 12px;
}

.lesson-dialog-footer button {
  padding: 10px 14px;
}

.celebration-dialog {
  width: min(460px, 100%);
  max-height: calc(100vh - 40px);
  overflow: auto;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
  text-align: center;
}

.celebration-dialog h3 {
  margin: 2px 0 8px;
  font-size: 30px;
  font-weight: 650;
}

.celebration-dialog h4 {
  margin: 18px 0 10px;
  font-size: 16px;
  font-weight: 650;
}

.celebration-dialog > p:not(.eyebrow),
.celebration-dialog > small {
  color: var(--muted);
}

.celebration-dialog > small {
  display: block;
  margin-top: 12px;
  font-size: 12px;
}

.celebration-mascot {
  min-height: 104px;
  display: grid;
  place-items: center;
}

.reward-badge {
  width: fit-content;
  margin: 18px auto 0;
  padding: 10px 16px;
  border: 1px solid rgba(240, 163, 91, 0.55);
  border-radius: 8px;
  background: #fff7e8;
  display: grid;
}

.reward-badge strong {
  color: #9a551d;
  font-size: 20px;
}

.reward-badge span {
  color: var(--muted);
  font-size: 12px;
}

.lesson-complete-dialog .button-row {
  margin-top: 18px;
  justify-content: center;
}

.lesson-reward-progress {
  width: min(280px, 100%);
  height: 8px;
  margin: 16px auto 0;
  border-radius: 999px;
  background: var(--surface-2);
  overflow: hidden;
}

.lesson-reward-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--done);
}

.mascot-panel {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

.mascot-visual {
  min-height: 96px;
  display: grid;
  place-items: center;
}

.lion-face {
  position: relative;
  width: 82px;
  height: 82px;
  border: 10px solid #8c5a2d;
  border-radius: 50%;
  background: var(--amber);
  display: grid;
  place-items: center;
  box-shadow: inset -7px -8px 0 rgba(105, 67, 26, 0.12);
}

.lion-ear,
.lion-eye,
.lion-muzzle,
.lion-nose {
  position: absolute;
  display: block;
}

.lion-ear {
  top: -18px;
  width: 24px;
  height: 24px;
  border: 6px solid #8c5a2d;
  border-radius: 50%;
  background: var(--amber);
}

.lion-ear.left {
  left: 4px;
}

.lion-ear.right {
  right: 4px;
}

.lion-eye {
  top: 26px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #25160d;
}

.lion-eye.left {
  left: 24px;
}

.lion-eye.right {
  right: 24px;
}

.lion-muzzle {
  top: 43px;
  left: 50%;
  width: 34px;
  height: 24px;
  border-radius: 50%;
  background: #ffe2a9;
  transform: translateX(-50%);
}

.lion-nose {
  top: 45px;
  left: 50%;
  width: 11px;
  height: 8px;
  border-radius: 50% 50% 60% 60%;
  background: #25160d;
  transform: translateX(-50%);
}

.two-col,
.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, 0.82fr);
  gap: 16px;
}

.two-col.slim {
  align-items: start;
}

.mode-list article {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  display: grid;
  gap: 2px;
}

.mode-list span {
  color: var(--muted);
}

.notes-form label,
.service-card label {
  display: grid;
  gap: 6px;
  color: var(--text);
  font-weight: 620;
}

textarea,
input,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  padding: 10px 11px;
}

textarea:focus,
input:focus,
select:focus,
button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(139, 111, 246, 0.28);
  outline-offset: 2px;
}

textarea {
  resize: vertical;
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill-list span {
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font-size: 13px;
  font-weight: 560;
}

.month-timeline {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.month-timeline article {
  min-height: 238px;
  padding: 14px;
  border: 1px solid var(--line);
  border-top: 4px solid #cbbde8;
  border-radius: 8px;
  background: #fff;
  display: grid;
  gap: 8px;
  align-content: start;
}

.month-timeline article.current {
  border-top-color: var(--violet);
  background: #fbf8ff;
}

.month-timeline span,
.month-timeline small {
  color: var(--muted);
}

.month-timeline span {
  font-size: 12px;
  font-weight: 650;
  text-transform: uppercase;
}

.week-map,
.day-grid,
.case-grid,
.service-grid,
.source-grid,
.week-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.route-section {
  display: grid;
  gap: 12px;
}

.route-section + .route-section {
  margin-top: 24px;
}

.sprint-map {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}

.sprint-card {
  min-width: 0;
  min-height: 128px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 8px;
  text-align: left;
  align-content: start;
  box-shadow: none;
}

.sprint-card:hover {
  border-color: rgba(139, 111, 246, 0.55);
  transform: none;
}

.sprint-card.selected {
  border-color: var(--violet);
  background: #faf8ff;
  outline: 2px solid rgba(139, 111, 246, 0.14);
}

.sprint-card.done {
  border-color: rgba(41, 158, 112, 0.34);
  background: var(--done-bg);
}

.sprint-card.ready {
  border-color: rgba(139, 111, 246, 0.52);
  background: #faf8ff;
}

.sprint-number {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #eee9ff;
  color: var(--violet-dark);
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 700;
}

.sprint-card.done .sprint-number {
  color: #fff;
  background: var(--done);
}

.sprint-card-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.sprint-card-copy small,
.sprint-card-copy span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
}

.sprint-card-copy strong {
  overflow: hidden;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.sprint-card > .tiny-meter {
  grid-column: 1 / -1;
  align-self: end;
}

.sprint-summary {
  margin: 20px 0 24px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(240px, 1fr);
  gap: 28px;
  align-items: center;
}

.sprint-summary h3,
.sprint-summary p {
  margin-bottom: 6px;
}

.sprint-summary > div > p:last-child,
.sprint-result span,
.sprint-result small {
  color: var(--muted);
}

.sprint-result {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.sprint-result strong {
  font-size: 14px;
  font-weight: 650;
  line-height: 1.35;
}

.sprint-challenge {
  margin-bottom: 24px;
  padding: 18px;
  border: 1px solid var(--line);
  border-left: 4px solid #cbbde8;
  border-radius: 8px;
  background: #fff;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(190px, 0.65fr);
  gap: 22px;
  align-items: center;
}

.sprint-challenge.ready {
  border-left-color: var(--violet);
  background: #faf8ff;
}

.sprint-challenge.done {
  border-left-color: var(--done);
  background: var(--done-bg);
}

.sprint-challenge.locked {
  color: var(--muted);
}

.sprint-challenge h3,
.sprint-challenge p {
  margin-bottom: 5px;
}

.sprint-challenge-checks,
.sprint-challenge-action {
  display: grid;
  gap: 8px;
}

.sprint-challenge-checks span {
  min-width: 0;
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 7px;
  font-size: 12px;
  line-height: 1.35;
}

.sprint-challenge-checks i {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #eee9ff;
  color: var(--violet-dark);
  display: grid;
  place-items: center;
  font-style: normal;
  font-weight: 700;
}

.sprint-challenge.done .sprint-challenge-checks i {
  color: #fff;
  background: var(--done);
}

.sprint-challenge-action small,
.sprint-challenge-action strong {
  color: var(--muted);
  font-size: 12px;
  font-weight: 550;
}

.daily-cycle-grid {
  margin-top: 16px;
}

.missions-panel,
.sprint-snapshot {
  min-height: 100%;
}

.mission-list {
  margin-top: 14px;
  display: grid;
  gap: 8px;
}

.mission-item {
  min-width: 0;
  padding: 9px 0;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  gap: 9px;
  align-items: center;
}

.mission-item:first-child {
  border-top: 0;
}

.mission-item > span:nth-child(2) {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.mission-item strong {
  font-size: 13px;
  font-weight: 650;
}

.mission-item small {
  color: var(--muted);
  font-size: 11px;
}

.mission-mark {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: var(--violet-dark);
  background: #eee9ff;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
}

.mission-item.done .mission-mark {
  color: #fff;
  background: var(--done);
}

.mission-complete {
  color: var(--done) !important;
  font-weight: 650;
}

.mission-item button {
  min-height: 32px;
  padding: 6px 10px;
  font-size: 11px;
}

.sprint-snapshot > .tiny-meter {
  margin: 14px 0;
}

.sprint-snapshot.done {
  border-left: 4px solid var(--done);
  background: var(--done-bg);
}

.sprint-snapshot-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.sprint-snapshot-stats span {
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.72);
  display: grid;
  gap: 2px;
  font-size: 11px;
}

.sprint-snapshot-stats strong {
  color: var(--ink);
  font-size: 13px;
  font-weight: 650;
}

.sprint-snapshot > p {
  margin: 13px 0 10px;
  color: var(--muted);
  font-size: 12px;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: end;
}

.section-heading h3,
.section-heading p {
  margin-bottom: 0;
}

.section-heading > span {
  color: var(--muted);
  font-size: 13px;
}

.archive-section {
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.completed-card {
  position: relative;
  border-left: 4px solid var(--done);
  background: var(--done-bg);
}

.completion-mark {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  color: #fff;
  background: var(--done);
  display: grid;
  place-items: center;
  font-weight: 700;
}

.day-done-list {
  margin-top: 12px;
  display: grid;
  gap: 7px;
}

.day-done-list > small {
  color: var(--done-deep);
  font-weight: 650;
}

.compact-done-row {
  min-height: 44px;
  padding: 8px 9px;
}

.week-detail.progress {
  border-left-color: var(--amber);
}

.week-detail.done {
  border-left-color: var(--done);
  background: var(--done-bg);
}

.gamification-grid {
  align-items: stretch;
}

.activity-panel,
.rewards-panel {
  min-width: 0;
}

.activity-calendar {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 7px;
}

.activity-day {
  min-width: 0;
  min-height: 58px;
  padding: 7px 3px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: #fff;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 2px;
}

.activity-day strong {
  color: var(--text);
  font-size: 14px;
}

.activity-day span {
  font-size: 10px;
  font-weight: 600;
}

.activity-day.current {
  border-color: var(--violet);
  background: var(--surface-2);
}

.activity-day.partial {
  border-color: rgba(222, 153, 61, 0.45);
  background: #fff8eb;
}

.activity-day.closed {
  border-color: rgba(52, 163, 111, 0.4);
  color: var(--done-deep);
  background: var(--done-bg);
}

.activity-day.future {
  opacity: 0.58;
}

.reward-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.reward-item {
  min-height: 62px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
}

.reward-item > span {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--surface-2);
  display: grid;
  place-items: center;
  font-weight: 700;
}

.reward-item div {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.reward-item strong,
.reward-item small {
  overflow-wrap: anywhere;
}

.reward-item strong {
  font-size: 13px;
}

.reward-item small {
  color: var(--muted);
  font-size: 11px;
}

.reward-item.unlocked {
  border-color: rgba(52, 163, 111, 0.35);
  background: var(--done-bg);
}

.reward-item.unlocked > span {
  color: #fff;
  background: var(--done);
}

.reward-item.locked {
  opacity: 0.68;
}

.week-node {
  min-height: 134px;
  padding: 14px;
  border: 1px solid var(--line);
  border-left: 4px solid #cbbde8;
  border-radius: 8px;
  background: #fff;
  display: grid;
  gap: 10px;
}

.week-node.current,
.week-detail.current,
.day-card.current {
  outline: 2px solid rgba(139, 111, 246, 0.23);
  border-color: rgba(139, 111, 246, 0.48);
}

.day-card.closed,
.week-node.done,
.case-card.done {
  border-left-color: var(--done);
  background: var(--done-bg);
}

.week-node.progress,
.case-card.progress {
  border-left-color: var(--amber);
}

.week-node span,
.week-node small {
  color: var(--muted);
}

.week-node span {
  font-size: 12px;
  font-weight: 650;
}

.week-node strong,
.month-timeline strong,
.output-row strong {
  overflow-wrap: anywhere;
}

.skill-board {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.skills-metrics,
.portfolio-metrics {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.skill-map-panel {
  margin-top: 12px;
}

.skill-track {
  border: 1px solid var(--line);
  border-top: 4px solid #cbbde8;
  border-radius: 8px;
  background: #fff;
  padding: 14px;
  display: grid;
  gap: 12px;
}

.skill-track > summary {
  list-style: none;
  cursor: pointer;
}

.skill-track > summary::-webkit-details-marker {
  display: none;
}

.skill-track > summary::after {
  content: "+";
  position: absolute;
  top: 14px;
  right: 14px;
  color: var(--muted);
  font-size: 18px;
  font-weight: 500;
}

.skill-track[open] > summary::after {
  content: "−";
}

.skill-track {
  position: relative;
}

.skill-track.blue {
  border-top-color: var(--blue);
}

.skill-track.coral {
  border-top-color: var(--coral);
}

.skill-track.yellow {
  border-top-color: var(--amber);
}

.skill-track.violet {
  border-top-color: var(--violet);
}

.skill-track.orange {
  border-top-color: var(--rose);
}

.skill-track.slate {
  border-top-color: #8a7aa7;
}

.track-head {
  display: grid;
  gap: 8px;
}

.track-head div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding-right: 26px;
}

.track-head span {
  color: var(--muted);
  font-weight: 650;
}

.skill-list {
  display: grid;
  gap: 8px;
}

.skill-row {
  width: 100%;
  min-height: 58px;
  padding: 8px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) 38px;
  gap: 8px;
  align-items: center;
  text-align: left;
  cursor: pointer;
}

.skill-row:hover {
  border-color: rgba(139, 111, 246, 0.45);
  background: var(--surface-2);
}

.skill-row.proven {
  border-color: rgba(52, 163, 111, 0.35);
  background: var(--done-bg);
}

.skill-row.practice {
  border-color: rgba(222, 153, 61, 0.4);
  background: #fffaf1;
}

.skill-stage {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--violet-deep);
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
}

.skill-row.proven .skill-stage {
  background: var(--done);
  color: #fff;
}

.skill-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.skill-copy strong,
.skill-copy small {
  overflow-wrap: anywhere;
}

.skill-copy strong {
  font-size: 13px;
  font-weight: 620;
}

.skill-copy small {
  color: var(--muted);
  font-size: 11px;
}

.skill-row em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 650;
  text-align: right;
}

.skill-dialog-body {
  grid-template-columns: 1fr;
}

.wide-select {
  max-width: 320px;
}

.linked-days {
  margin-bottom: 9px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.muted-copy {
  color: var(--muted);
}

.clean-list {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
}

.clean-list li + li {
  margin-top: 6px;
}

.week-detail,
.case-card {
  border-left: 4px solid #cbbde8;
}

.output-row {
  margin-top: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  display: grid;
  gap: 6px;
}

.day-card small {
  margin-top: 10px;
  display: block;
  color: var(--muted);
}

.case-card.planned {
  border-left-color: #cbbde8;
}

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

.case-card {
  display: grid;
  gap: 12px;
  align-content: start;
}

.case-card h3,
.case-card h4 {
  margin: 0;
}

.case-percent {
  color: var(--violet-deep);
  font-size: 18px;
  font-weight: 650;
}

.case-card.done .case-percent {
  color: var(--done-deep);
}

.case-checklist {
  display: grid;
  gap: 7px;
}

.case-checklist label {
  min-height: 42px;
  padding: 8px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  cursor: pointer;
}

.case-checklist input {
  width: 18px;
  height: 18px;
  padding: 0;
}

.case-checklist span {
  overflow-wrap: anywhere;
}

.case-days {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.case-week-hint {
  color: var(--muted);
}

.case-evidence-form {
  padding-top: 12px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 9px;
}

.case-evidence-form label {
  display: grid;
  gap: 6px;
  font-size: 13px;
  font-weight: 620;
}

.service-metrics {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.service-card {
  border-left: 4px solid #cbbde8;
  align-content: start;
}

.service-card.building {
  border-left-color: var(--amber);
}

.service-card.pilot,
.service-card.outreach {
  border-left-color: var(--done);
}

.service-head {
  align-items: start;
}

.service-stage {
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--violet-deep);
  font-size: 12px;
  font-weight: 650;
  white-space: nowrap;
}

.service-card.pilot .service-stage,
.service-card.outreach .service-stage {
  border-color: rgba(52, 163, 111, 0.35);
  background: var(--done-bg);
  color: var(--done-deep);
}

.service-progress-line {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 9px;
  align-items: center;
}

.service-progress-line strong {
  color: var(--violet-deep);
  font-size: 20px;
}

.service-progress-line span {
  color: var(--muted);
  overflow-wrap: anywhere;
}

.service-summary {
  display: grid;
  gap: 8px;
}

.service-summary > div {
  padding-left: 10px;
  border-left: 3px solid var(--line);
  display: grid;
  gap: 2px;
}

.service-summary span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
  text-transform: uppercase;
}

.service-summary p {
  font-size: 13px;
}

.service-readiness-list {
  display: grid;
  gap: 7px;
}

.service-requirement {
  min-width: 0;
  min-height: 58px;
  padding: 8px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  gap: 9px;
  align-items: center;
}

.service-requirement > span,
.service-requirement > input {
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: 50%;
}

.service-requirement > span {
  background: var(--surface-2);
  color: var(--violet-deep);
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
}

.service-requirement > div {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.service-requirement strong,
.service-requirement small {
  overflow-wrap: anywhere;
}

.service-requirement strong {
  font-size: 13px;
}

.service-requirement small {
  color: var(--muted);
  font-size: 11px;
}

.service-requirement.done {
  border-color: rgba(52, 163, 111, 0.35);
  background: var(--done-bg);
}

.service-requirement.done > span {
  background: var(--done);
  color: #fff;
}

.service-requirement.manual {
  grid-template-columns: 38px minmax(0, 1fr);
  cursor: pointer;
}

.service-commercial {
  padding: 10px;
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
}

.service-editor {
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.service-editor summary {
  color: var(--violet-deep);
  cursor: pointer;
  font-size: 13px;
  font-weight: 620;
}

.service-editor-fields {
  margin-top: 10px;
  display: grid;
  gap: 9px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.readiness {
  justify-self: start;
}

.content-grid .wide {
  grid-column: 1 / -1;
}

.idea-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.idea-list article {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.idea-list span {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--violet-deep);
  display: grid;
  place-items: center;
  font-weight: 650;
}

.source-list a {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  background: #fff;
  text-decoration: none;
  font-weight: 620;
  overflow-wrap: anywhere;
  display: grid;
  gap: 3px;
}

.source-list a small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
}

.source-list a:hover {
  border-color: var(--violet);
  background: #fbf8ff;
}

.source-more {
  margin-top: 10px;
}

.source-more summary {
  width: fit-content;
  color: var(--violet-deep);
  cursor: pointer;
  font-size: 13px;
  font-weight: 650;
}

.source-more[open] summary {
  margin-bottom: 9px;
}

.button-row {
  margin: 14px 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.button-row.inline {
  margin: 0;
  grid-template-columns: repeat(2, minmax(150px, 1fr));
}

.cloud-panel {
  border-left: 5px solid var(--violet);
  display: grid;
  gap: 12px;
}

.cloud-panel.synced {
  border-left-color: var(--done);
}

.cloud-panel.offline,
.cloud-panel.error,
.cloud-panel.unavailable {
  border-left-color: var(--amber);
}

.cloud-status {
  max-width: 280px;
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--violet-deep);
  font-size: 12px;
  font-weight: 650;
  overflow-wrap: anywhere;
}

.cloud-panel.synced .cloud-status {
  border-color: rgba(52, 163, 111, 0.35);
  background: var(--done-bg);
  color: var(--done-deep);
}

.cloud-notice {
  padding: 10px 12px;
  border-radius: 8px;
  background: #fff8eb;
  color: #7c5817;
}

.cloud-setup {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: end;
}

.cloud-setup > button {
  padding: 10px 14px;
}

.cloud-setup form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: end;
}

.cloud-setup label {
  min-width: 0;
  display: grid;
  gap: 5px;
  font-size: 12px;
  font-weight: 620;
}

.cloud-connected {
  display: grid;
  gap: 10px;
}

.cloud-connected > small {
  color: var(--muted);
}

.cloud-delete {
  width: fit-content;
  min-height: 36px;
  padding: 7px 10px;
  color: #9a3f4b;
  font-size: 12px;
}

.sync-key-row {
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.sync-key-row > span {
  color: var(--muted);
  font-size: 12px;
}

.sync-key-row strong {
  font-family: "Cascadia Code", Consolas, monospace;
  overflow-wrap: anywhere;
}

#syncPayload,
#importPayload {
  min-height: 260px;
  font-family:
    "Cascadia Code",
    Consolas,
    monospace;
  font-size: 13px;
}

.saved-note {
  min-height: 28px;
  margin-top: 10px;
  color: var(--muted);
  font-weight: 620;
}

body.intro-active {
  height: 100vh;
  overflow: hidden;
}

.course-intro {
  position: fixed;
  z-index: 5000;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: var(--text);
  background: #f8f4ff;
  transform: translateY(0);
  transition: transform 560ms cubic-bezier(0.76, 0, 0.24, 1), visibility 560ms ease;
  will-change: transform;
}

.course-intro::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 8px;
  background: var(--coral);
  content: "";
}

.course-intro::after {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 34vw;
  height: 14px;
  background: var(--violet);
  content: "";
}

.course-intro.is-leaving {
  visibility: hidden;
  transform: translateY(-100%);
}

.intro-stage {
  position: relative;
  display: grid;
  width: min(calc(100% - 80px), 1180px);
  grid-template-columns: minmax(0, 1.25fr) minmax(330px, 0.75fr);
  gap: 72px;
  align-items: center;
}

.intro-copy {
  position: relative;
  z-index: 2;
  min-width: 0;
}

.intro-kicker {
  margin-bottom: 18px;
  color: var(--violet-deep);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(12px);
  animation: intro-rise 420ms 80ms ease forwards;
}

.intro-wordmark {
  font-size: clamp(72px, 10vw, 150px);
  font-weight: 720;
  line-height: 0.86;
  letter-spacing: 0;
  opacity: 0;
  transform: translateY(28px);
  animation: intro-rise 560ms 140ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.intro-tagline {
  margin-top: 30px;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 22px);
  opacity: 0;
  animation: intro-fade 420ms 360ms ease forwards;
}

.intro-route {
  position: relative;
  display: grid;
  max-width: 620px;
  grid-template-columns: repeat(6, 1fr);
  align-items: center;
  margin-top: 42px;
}

.intro-route > span {
  position: absolute;
  right: 7%;
  left: 7%;
  height: 3px;
  background: var(--line);
}

.intro-route i {
  position: relative;
  z-index: 1;
  display: block;
  width: 18px;
  height: 18px;
  justify-self: center;
  border: 4px solid #f8f4ff;
  border-radius: 50%;
  background: var(--line);
  box-shadow: 0 0 0 1px var(--line);
  animation: intro-node 260ms ease forwards;
}

.intro-route i:nth-of-type(1) { animation-delay: 220ms; }
.intro-route i:nth-of-type(2) { animation-delay: 360ms; }
.intro-route i:nth-of-type(3) { animation-delay: 500ms; }
.intro-route i:nth-of-type(4) { animation-delay: 640ms; }
.intro-route i:nth-of-type(5) { animation-delay: 780ms; }
.intro-route i:nth-of-type(6) { animation-delay: 920ms; }

.intro-loading {
  display: grid;
  max-width: 620px;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  margin-top: 26px;
}

.intro-loading strong {
  color: var(--violet-deep);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.intro-loading > div {
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--line);
}

.intro-loading i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--violet);
}

.intro-day {
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
}

.intro-visual {
  position: relative;
  min-height: 430px;
  display: grid;
  place-items: center;
}

.intro-number {
  position: absolute;
  inset: 50% auto auto 50%;
  color: rgba(139, 111, 246, 0.11);
  font-size: clamp(260px, 28vw, 420px);
  font-weight: 760;
  line-height: 0.72;
  transform: translate(-50%, -50%);
  user-select: none;
}

.intro-lion {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
  gap: 18px;
  opacity: 0;
  transform: scale(0.74) translateY(24px);
  animation: intro-lion 620ms 280ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.intro-lion .lion-face {
  width: 138px;
  height: 138px;
  border-width: 16px;
  box-shadow: inset -12px -13px 0 rgba(105, 67, 26, 0.12), 0 24px 50px rgba(94, 73, 189, 0.18);
}

.intro-lion .lion-ear {
  top: -28px;
  width: 38px;
  height: 38px;
  border-width: 9px;
}

.intro-lion .lion-eye {
  top: 45px;
  width: 10px;
  height: 10px;
  animation: intro-blink 1.4s 720ms ease;
}

.intro-lion .lion-eye.left { left: 41px; }
.intro-lion .lion-eye.right { right: 41px; }
.intro-lion .lion-muzzle { top: 72px; width: 55px; height: 38px; }
.intro-lion .lion-nose { top: 75px; width: 16px; height: 11px; }
.intro-lion > span { color: var(--violet-deep); font-size: 13px; font-weight: 700; }

.intro-course-mark {
  position: absolute;
  right: 2px;
  bottom: 24px;
  z-index: 2;
  display: grid;
  min-width: 100px;
  padding: 15px 18px;
  border-left: 3px solid var(--coral);
  background: #fff;
  box-shadow: var(--shadow-soft);
  opacity: 0;
  animation: intro-fade 380ms 620ms ease forwards;
}

.intro-course-mark strong { font-size: 28px; line-height: 1; }
.intro-course-mark span { color: var(--muted); font-size: 11px; }

@keyframes intro-rise {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes intro-fade {
  to { opacity: 1; }
}

@keyframes intro-node {
  to { background: var(--coral); box-shadow: 0 0 0 1px var(--coral), 0 5px 14px rgba(255, 122, 104, 0.28); }
}

@keyframes intro-lion {
  to { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes intro-blink {
  0%, 42%, 58%, 100% { transform: scaleY(1); }
  50% { transform: scaleY(0.12); }
}

@media (max-width: 760px) {
  .course-intro::before { width: 5px; }
  .course-intro::after { width: 58vw; height: 9px; }
  .intro-stage {
    width: min(calc(100% - 40px), 560px);
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .intro-copy { display: grid; }
  .intro-kicker { margin-bottom: 12px; font-size: 10px; }
  .intro-wordmark { font-size: clamp(58px, 20vw, 90px); }
  .intro-tagline { margin-top: 20px; font-size: 16px; }
  .intro-route { margin-top: 30px; }
  .intro-loading { margin-top: 20px; }
  .intro-visual {
    min-height: 210px;
    grid-row: 1;
  }
  .intro-number { font-size: 210px; }
  .intro-lion { gap: 10px; }
  .intro-lion .lion-face { width: 94px; height: 94px; border-width: 11px; }
  .intro-lion .lion-ear { top: -20px; width: 28px; height: 28px; border-width: 7px; }
  .intro-lion .lion-eye { top: 30px; width: 8px; height: 8px; }
  .intro-lion .lion-eye.left { left: 28px; }
  .intro-lion .lion-eye.right { right: 28px; }
  .intro-lion .lion-muzzle { top: 48px; width: 39px; height: 27px; }
  .intro-lion .lion-nose { top: 51px; width: 12px; height: 8px; }
  .intro-course-mark { right: 0; bottom: 4px; min-width: 82px; padding: 10px 13px; }
  .intro-course-mark strong { font-size: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  .course-intro,
  .intro-kicker,
  .intro-wordmark,
  .intro-tagline,
  .intro-route i,
  .intro-lion,
  .intro-course-mark,
  .intro-lion .lion-eye {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 1180px) {
  .command-bar,
  .today-grid,
  .two-col,
  .content-grid,
  .completion-panel {
    grid-template-columns: 1fr;
  }

  .command-actions {
    justify-content: space-between;
  }

  .path-track {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .month-timeline,
  .week-map,
  .sprint-map,
  .day-grid,
  .case-grid,
  .service-grid,
  .source-grid,
  .week-detail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sprint-summary {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .sprint-challenge {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

@media (max-width: 900px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    display: none;
  }

  main {
    padding-bottom: calc(var(--mobile-nav-height) + 22px);
  }

  .topbar {
    position: sticky;
    top: 0;
    z-index: 30;
    min-height: 62px;
    padding: 8px 0;
    background: rgba(248, 244, 255, 0.94);
    backdrop-filter: blur(14px);
  }

  .mobile-nav {
    position: fixed;
    inset: auto 0 0;
    z-index: 60;
    min-height: var(--mobile-nav-height);
    padding: 8px 10px max(8px, env(safe-area-inset-bottom));
    border-top: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 -10px 28px rgba(55, 36, 112, 0.1);
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 5px;
  }

  .mobile-nav button {
    min-height: 50px;
    padding: 6px 4px;
    border: 1px solid transparent;
    background: transparent;
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
  }

  .mobile-nav button:hover,
  .mobile-nav button.active {
    border-color: #d8ccf2;
    background: var(--surface-2);
    color: var(--violet-deep);
  }

  .mobile-menu {
    position: fixed;
    right: 12px;
    bottom: calc(var(--mobile-nav-height) + 12px);
    left: 12px;
    z-index: 70;
    max-height: calc(100vh - var(--mobile-nav-height) - 36px);
    overflow: auto;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--shadow);
  }

  .mobile-menu:not([hidden]) {
    display: grid;
    gap: 12px;
  }

  .mobile-menu-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
  }

  .icon-button {
    width: 42px;
    min-height: 42px;
    padding: 0;
    font-size: 24px;
    line-height: 1;
  }

  .mobile-menu-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .mobile-menu-nav button {
    min-height: 62px;
    padding: 9px 10px;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--text);
    text-align: left;
    display: grid;
    gap: 2px;
  }

  .mobile-menu-nav button.active,
  .mobile-menu-nav button:hover {
    border-color: #d8ccf2;
    background: var(--surface-2);
  }

  .mobile-menu-nav small {
    color: var(--muted);
    font-size: 11px;
    font-weight: 450;
    line-height: 1.2;
  }
}

@media (max-width: 760px) {
  main {
    padding: 12px 14px calc(var(--mobile-nav-height) + 18px);
  }

  .metric-grid,
  .skill-board,
  .month-timeline,
  .week-map,
  .sprint-map,
  .day-grid,
  .case-grid,
  .service-grid,
  .source-grid,
  .week-detail-grid,
  .idea-list,
  .form-row,
  .button-row,
  .button-row.inline,
  .nav-list,
  .daily-overview {
    grid-template-columns: 1fr;
  }

  .topbar {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
  }

  .topbar h2 {
    font-size: 20px;
  }

  .topbar-actions button {
    min-height: 38px;
    padding: 8px 10px;
    font-size: 13px;
  }

  .topbar-actions,
  .command-actions {
    align-items: stretch;
  }

  .evidence-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .evidence-actions small {
    text-align: left;
  }

  .topbar-actions,
  .command-actions,
  .day-actions {
    flex-direction: column;
  }

  .command-bar,
  .daily-overview,
  .panel,
  .completion-panel {
    padding: 16px;
  }

  .daily-overview {
    gap: 10px;
  }

  .daily-copy h2 {
    width: 100%;
    font-size: 22px;
    overflow-wrap: anywhere;
  }

  .daily-result {
    display: none;
  }

  .daily-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .daily-stats span {
    min-width: 0;
    padding: 7px 4px;
    text-align: center;
    font-size: 11px;
  }

  .daily-stats span:last-child {
    display: none;
  }

  .daily-progress {
    width: 100%;
    grid-template-columns: 96px minmax(0, 1fr);
    justify-items: start;
    align-items: center;
    text-align: left;
  }

  .daily-progress .progress-ring {
    transform: scale(0.72);
    margin: -18px;
  }

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

  .sprint-card {
    min-height: 116px;
    padding: 10px;
  }

  .daily-goal {
    max-width: none;
    grid-template-columns: 32px minmax(0, 1fr);
  }

  .daily-goal > .tiny-meter {
    grid-column: 1 / -1;
  }

  .mission-item {
    grid-template-columns: 30px minmax(0, 1fr);
  }

  .mission-item > button,
  .mission-complete {
    grid-column: 2;
    justify-self: start;
  }

  .sprint-snapshot-stats {
    grid-template-columns: 1fr;
  }

  .daily-progress > small {
    max-width: 200px;
  }

  .panel-head {
    display: grid;
  }

  .panel-head > span {
    max-width: 100%;
    justify-self: start;
  }

  .lesson-row {
    grid-template-columns: 22px 36px minmax(0, 1fr);
  }

  .next-lesson-card {
    align-items: stretch;
    flex-direction: column;
  }

  .next-lesson-card button {
    width: 100%;
  }

  .resource-row {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .resource-download,
  .resource-row > label {
    grid-column: 1 / -1;
  }

  .cloud-setup,
  .cloud-setup form,
  .sync-key-row {
    grid-template-columns: 1fr;
  }

  .sync-key-row .compact-button {
    width: 100%;
  }

  .lesson-start {
    grid-column: 3;
    justify-self: start;
  }

  .mascot-panel {
    grid-template-columns: 78px minmax(0, 1fr);
  }

  .lion-face {
    width: 66px;
    height: 66px;
  }

  .path-track {
    grid-template-columns: 1fr;
    padding: 2px;
  }

  .path-node {
    min-height: 92px;
    padding: 10px 8px 14px;
    flex-direction: row;
    gap: 14px;
    align-items: flex-start;
    text-align: left;
  }

  .path-node:not(:last-child)::after {
    top: 55px;
    left: 29px;
    width: 4px;
    height: calc(100% - 48px);
  }

  .node-copy {
    justify-items: start;
  }

  .celebration-overlay {
    padding: 12px;
  }

  .lesson-dialog-overlay {
    padding: 12px;
  }

  .celebration-dialog {
    max-height: calc(100vh - 24px);
    padding: 20px 16px;
  }

  .celebration-dialog h3 {
    font-size: 27px;
  }

  .lesson-dialog {
    max-height: calc(100vh - 24px);
    padding: 18px 16px;
  }

  .lesson-dialog-head,
  .lesson-dialog-body,
  .lesson-dialog-footer {
    grid-template-columns: 1fr;
  }

  .lesson-dialog-head {
    position: relative;
  }

  .lesson-dialog-head .icon-button {
    position: absolute;
    top: 0;
    right: 0;
  }

  .lesson-dialog-head > div {
    padding-right: 48px;
  }

  .lesson-dialog-head h3 {
    font-size: 24px;
  }

  .lesson-dialog-body {
    gap: 0;
  }

  .steps-section {
    grid-row: auto;
  }

  .lesson-dialog-footer button {
    width: 100%;
  }
}
