/* Match the lesson shell and let the home content follow the page height. */
body.learning-simple.dashboard {
  background: oklch(98.42% 0.00341 247.86);
  color: var(--studio-ink);
}
body.dashboard .context-bar,
body.dashboard #main>footer {
  display: none;
}
body.dashboard .app-header {
  position: relative;
  top: 0;
  border-top-width: 3px;
}
body.dashboard .brand small {
  display: none;
}
@media (min-width: 761px) {
  body.dashboard .app-header {
    height: 56px;
    min-height: 56px;
  }
  body.dashboard .header-inner {
    height: 53px;
    min-height: 0;
    max-width: none;
    padding: 0 18px;
    gap: 20px;
  }
  body.dashboard .brand {
    gap: 10px;
    font-size: 18px;
  }
  body.dashboard .brand-mark {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    font-size: 16px;
    box-shadow: none;
  }
  body.dashboard .app-header nav {
    gap: 8px;
  }
  body.dashboard .app-header nav a {
    font-size: 14px;
    padding: 8px 15px;
  }
}
body.dashboard .local-label {
  font-size: 12px;
}
body.dashboard #main {
  width: 100%;
  max-width: 1480px;
  margin: 0 auto;
  padding: 16px clamp(14px, 2.5vw, 28px) 16px;
}
body.dashboard[data-hosted-badge] #main {
  padding-bottom: 72px;
}
body.workbench #overview,
body.topic-hub #overview {
  display: none;
}
body.dashboard .bento-dashboard {
  --home-ink: oklch(24.27% 0.05511 299.81);
  --home-muted: oklch(47.64% 0.04027 305.71);
  --home-line: oklch(89.67% 0.02448 306.94);
  --home-accent: oklch(41.47% 0.13747 302.47);
  --home-ease: cubic-bezier(.2,.85,.3,1.25);
  --preview-spring: cubic-bezier(.34,1.56,.64,1);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
}
body.dashboard .bento-card {
  min-width: 0;
  border: 1px solid var(--home-line);
  border-radius: 18px;
  background: oklch(100% 0 0);
  color: var(--home-ink);
  transition: transform .3s var(--preview-spring), border-color .18s, box-shadow .3s ease;
}
body.dashboard .dashboard-welcome {
  grid-column: 1 / -1;
  position: relative;
  display: grid;
  align-items: center;
  gap: 16px 24px;
  padding: clamp(16px, 2vw, 26px);
  border-color: oklch(36.34% 0.08847 297.82);
  background: linear-gradient(108deg, oklch(23.69% 0.05659 295.60) 8%, oklch(32.52% 0.11079 294.02) 60%, oklch(35.65% 0.07492 258.98));
  color: oklch(100% 0 0);
  isolation: isolate;
}
body.dashboard .dashboard-welcome::before {
  position: absolute;
  z-index: -1;
  inset: 0 0 0 43%;
  border-radius: inherit;
  background: radial-gradient(circle, oklch(85.03% 0.08597 298.84) 1px, transparent 1px) 0 0 / 17px 17px;
  mask-image: linear-gradient(to right, transparent, oklch(0% 0 0));
  opacity: .22;
  pointer-events: none;
  content: '';
}
body.dashboard .dashboard-welcome h1 {
  margin: 0;
  font-size: clamp(28px, 3.15vw, 44px);
  font-weight: 780;
  line-height: 1.08;
  letter-spacing: -.035em;
}
body.dashboard .dashboard-intro p {
  margin: 8px 0 0;
  color: oklch(93.11% 0.02806 303.91);
  font-size: 15px;
  line-height: 1.45;
}
body.dashboard .dashboard-entry {
  display: grid;
  align-items: center;
  justify-items: start;
  gap: 4px 14px;
  min-width: 0;
}
body.dashboard .dashboard-browse {
  min-height: 44px;
  padding: 6px 8px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: white;
  font-size: 14px;
  font-weight: 680;
  text-align: start;
}
body.dashboard .dashboard-browse:hover { text-decoration: underline; }
body.dashboard .dashboard-path-status {
  grid-column: 1 / -1;
  color: oklch(93.11% 0.02806 303.91);
  font-size: 12px;
  line-height: 1.4;
}
body.dashboard .dashboard-first {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 12px;
  max-width: 100%;
  min-height: 59px;
  padding: 10px 13px;
  border: 1px solid oklch(100% 0 0);
  border-radius: 10px;
  background: oklch(100% 0 0);
  color: oklch(31.44% 0.09821 297.44);
  box-shadow: 0 6px 18px oklch(20.76% 0.05773 294.69 / 0.2078);
  font-size: 14px;
  line-height: 1.3;
  text-decoration: none;
  transition: background-color .18s, transform .22s var(--home-ease);
}
body.dashboard .dashboard-first:hover { background: oklch(95.76% 0.02533 305.86); }
body.dashboard .dashboard-first small {
  display: block;
  margin-top: 2px;
  color: oklch(45.14% 0.06987 307.26);
  font-size: 12px;
}
body.dashboard .dashboard-first > span:last-child { margin-inline-start: auto; font-size: 20px; }
body.dashboard .dashboard-entry[data-arrays-complete="true"] .dashboard-browse {
  min-height: 52px;
  padding-inline: 16px;
  background: white;
  color: oklch(31.44% 0.09821 297.44);
}
body.dashboard .dashboard-entry[data-arrays-complete="true"] .dashboard-first {
  inline-size: auto;
  min-height: 44px;
  padding: 6px 8px;
  border-color: transparent;
  background: transparent;
  color: white;
  box-shadow: none;
}
body.dashboard .dashboard-entry[data-arrays-complete="true"] .dashboard-first:hover { text-decoration: underline; }
body.dashboard .dashboard-entry[data-arrays-complete="true"] .dashboard-play { display: none; }
body.dashboard .dashboard-play {
  display: grid;
  place-items: center;
  flex: none;
  width: 33px;
  height: 33px;
  border-radius: 8px;
  background: oklch(91.92% 0.04224 303.69);
  color: oklch(37.34% 0.14053 295.48);
  font-size: 12px;
}

body.dashboard .dashboard-topics-heading {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  flex-wrap: wrap;
}
body.dashboard .dashboard-topics-heading h2 {
  margin: 0;
  font-size: clamp(19px, 2vw, 24px);
  letter-spacing: -.025em;
}
body.dashboard #topic-motion-toggle {
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--home-line);
  border-radius: 8px;
  background: oklch(100% 0 0);
  color: var(--home-accent);
  font: inherit;
  font-size: 13px;
  font-weight: 680;
  cursor: pointer;
}
body.dashboard #topic-motion-toggle:hover { background: oklch(95.13% 0.02412 306.96); }
body.dashboard .bento-arrays { --topic-ink: oklch(44.25% 0.13190 301.48); --topic-cycle: 5.2s; --scene-light: oklch(65.61% 0.17039 287.35); }
body.dashboard .bento-lists { --topic-ink: oklch(45.04% 0.07828 165.71); --topic-cycle: 5.6s; --scene-light: oklch(81.87% 0.10685 208.26); }
body.dashboard .bento-searching { --topic-ink: oklch(43.74% 0.10038 256.55); --topic-cycle: 4.8s; --scene-light: oklch(73.55% 0.13812 256.67); }
body.dashboard .bento-sorting { --topic-ink: oklch(47.61% 0.09190 63.99); --topic-cycle: 4.4s; --scene-light: oklch(85.32% 0.11996 72.52); }
body.dashboard .bento-stacks { --topic-fill: oklch(95.55% 0.02202 24.44); --topic-ink: oklch(49.33% 0.08805 354.79); --topic-cycle: 4.9s; --scene-light: oklch(79.24% 0.11992 357.21); }
body.dashboard .bento-queues { --topic-fill: oklch(95.6% 0.01584 196.89); --topic-ink: oklch(47.15% 0.06598 203.62); --topic-cycle: 5.5s; --scene-light: oklch(84.93% 0.11476 184.11); }
body.dashboard .bento-topic {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 10px;
  padding: 12px;
}
body.dashboard .bento-topic:focus-within {
  border-color: var(--topic-ink);
  box-shadow: 0 5px 18px oklch(29.92% 0.07786 303.52 / 0.0784);
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  body.dashboard .bento-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 22px oklch(29.92% 0.07786 303.52 / 0.0784);
  }
  body.dashboard .bento-topic:hover { border-color: var(--topic-ink); }
}
@media (prefers-reduced-motion: no-preference) {
  body.dashboard :is(.bento-card,.dashboard-first,#overview button,.app-header button,.dashboard-shortcuts a,.dashboard-catalog button):not(:disabled):active {
    transform: scale(.98);
  }
  body.dashboard :is(#overview,.app-header,.dashboard-catalog) button,
  body.dashboard .dashboard-shortcuts a { transition: transform .18s var(--home-ease); }
}
body.dashboard .topic-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
}
body.dashboard .bento-topic h2 {
  margin: 0 0 5px;
  font-size: clamp(19px, 1.7vw, 24px);
  line-height: 1.15;
  letter-spacing: -.025em;
}
body.dashboard .bento-topic p {
  margin: 0 0 6px;
  color: var(--home-muted);
  font-size: 13px;
  line-height: 1.45;
}
body.dashboard .topic-stage {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  width: 100%;
  height: 146px;
  margin: 0;
  padding: 12px 11px;
  border: 1px solid color-mix(in srgb, var(--scene-light) 33%, oklch(21.18% 0.03079 269.55));
  border-radius: 12px;
  background:
    radial-gradient(circle, oklch(87.35% 0.06160 270.93 / 0.1922) 1px, transparent 1px) 0 0 / 15px 15px,
    radial-gradient(ellipse at 50% 108%, color-mix(in srgb, var(--scene-light) 40%, oklch(19.63% 0.04013 277.70)), transparent 67%),
    linear-gradient(140deg, oklch(24.43% 0.04397 276.97), oklch(19.12% 0.02885 274.12) 65%);
  color: oklch(100% 0 0);
}
body.dashboard .topic-stage figcaption {
  font-size: 13px;
  font-weight: 720;
  line-height: 1.3;
}
body.dashboard .topic-availability {
  display: inline-block;
  margin-top: auto;
  padding: 4px 9px;
  border-radius: 6px;
  background: var(--topic-fill);
  color: var(--topic-ink);
  font-size: 12px;
  font-weight: 720;
}
body.dashboard .topic-art {
  display: grid;
  place-items: center;
  min-width: 0;
  padding-top: 8px;
  pointer-events: none;
  perspective: 440px;
  --lift-easing: cubic-bezier(.23,.78,.31,1);
  --travel-easing: cubic-bezier(.45,0,.24,1);
  --land-easing: cubic-bezier(.24,.65,.3,1);
}
body.dashboard :is(.array-preview,.sort-preview) {
  --lift-easing: var(--preview-spring);
  --travel-easing: var(--preview-spring);
  --land-easing: var(--preview-spring);
  --preview-glow: 0 12px 24px -6px rgb(59 130 246 / .5);
}
body.dashboard .topic-row {
  position: relative;
  display: grid;
  width: min(96%, 224px);
  grid-template-columns: repeat(var(--cells, 4), minmax(0, 1fr));
  justify-items: center;
}
body.dashboard .array-preview .topic-row {
  height: 67px;
  align-items: end;
  margin-top: 4px;
  margin-bottom: 9px;
  transform-style: preserve-3d;
}
body.dashboard .array-slot {
  position: relative;
  width: 83%;
  height: 8px;
  border: 1px solid oklch(83.59% 0.07373 289.02 / 0.3333);
  border-radius: 3px;
  background: oklch(68.77% 0.14730 291.03 / 0.1412);
  box-shadow: 0 2px 6px oklch(66.66% 0.14538 290.64 / 0.2157);
}
body.dashboard .array-slot::after {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  color: oklch(91.12% 0.04624 290.85);
  font: 11px ui-monospace, monospace;
  content: attr(data-index);
}
body.dashboard .array-slot[data-index="3"] { border-style: dashed; }
body.dashboard :is(.array-prism,.topic-prism) {
  --prism-glow: color-mix(in srgb, var(--prism-color, var(--scene-light)) 37%, transparent);
  --prism-shadow: inset 0 0 11px color-mix(in srgb, var(--prism-color, var(--scene-light)) 64%, transparent), 0 4px 10px var(--prism-glow);
  position: relative;
  display: grid;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--prism-color, var(--scene-light)) 71%, oklch(100% 0 0));
  border-radius: 4px 3px 4px 4px;
  background: linear-gradient(160deg, color-mix(in srgb, var(--prism-color, var(--scene-light)) 54%, oklch(26.86% 0.06355 287.90)), color-mix(in srgb, var(--prism-color, var(--scene-light)) 25%, oklch(21.77% 0.04136 276.23)));
  box-shadow: var(--prism-shadow);
  color: oklch(100% 0 0);
  font-size: 14px;
  font-weight: 760;
  text-shadow: 0 1px 4px oklch(18.29% 0.04520 273.37);
}
body.dashboard .array-prism {
  position: absolute;
  bottom: 5px;
  left: calc(var(--slot) * 25% + 2.5%);
  width: 20%;
  height: var(--prism-height);
}
body.dashboard :is(.array-prism,.topic-prism)::before,
body.dashboard :is(.array-prism,.topic-prism)::after {
  position: absolute;
  background: var(--prism-color, var(--scene-light));
  content: '';
}
body.dashboard :is(.array-prism,.topic-prism)::before {
  inset: auto 1px 100% 0;
  height: 5px;
  border-radius: 3px 3px 0 0;
  transform: skewX(-40deg) translateX(2px);
  opacity: .85;
}
body.dashboard :is(.array-prism,.topic-prism)::after {
  inset: 1px auto 0 100%;
  width: 4px;
  border-radius: 0 2px 3px 0;
  transform: skewY(-46deg) translateY(-2px);
  opacity: .58;
}
body.dashboard .array-10 { --prism-height: 32px; --prism-color: oklch(72.84% 0.13169 285.61); }
body.dashboard .array-20 { --prism-height: 42px; --prism-color: oklch(83.91% 0.11623 219.51); }
body.dashboard .array-30 { --prism-height: 52px; --prism-color: oklch(73.87% 0.17248 306.29); }
body.dashboard .array-incoming { --prism-height: 37px; --prism-color: oklch(88.94% 0.11323 169.21); }
body.dashboard :is(.array-source-20,.array-source-30) { opacity: 0; }

body.dashboard .topic-chain {
  position: relative;
  display: grid;
  align-items: center;
  width: min(96%, 212px);
  height: 68px;
  transform-style: preserve-3d;
}
body.dashboard .list-preview .topic-block {
  position: absolute;
  left: var(--at);
  display: grid;
  place-items: center;
  width: 19%;
  height: auto;
  aspect-ratio: 1;
  border: 1px solid oklch(89.36% 0.09729 204.51);
  border-radius: 50%;
  background: radial-gradient(circle at 30% 21%, oklch(96.19% 0.04414 201.66), oklch(68.86% 0.09335 221.58) 24%, oklch(38.9% 0.06846 245.47) 54%, oklch(24.41% 0.06598 275.48) 82%);
  box-shadow: inset -4px -5px 10px oklch(21.95% 0.06249 272.28), 0 0 13px oklch(83.51% 0.11782 219.17 / 0.3961);
  color: oklch(100% 0 0);
  font-size: 14px;
  font-weight: 760;
  text-shadow: 0 1px 5px oklch(19.18% 0.03775 260.49);
  transform: translateX(-50%);
}
body.dashboard .list-first { --at: 14%; }
body.dashboard .list-preview .list-incoming {
  --at: 50%;
  border-color: oklch(85.6% 0.08985 305.87);
  background: radial-gradient(circle at 32% 27%, oklch(91.59% 0.05395 309.50), oklch(68.24% 0.15847 296.80) 26%, oklch(41.15% 0.11862 297.36) 58%, oklch(25.35% 0.07270 286.89) 90%);
  box-shadow: inset -4px -5px 10px oklch(23.81% 0.07821 287.47), 0 0 17px oklch(70.77% 0.17569 305.24 / 0.549);
}
body.dashboard .list-last { --at: 86%; }
body.dashboard .list-first::before {
  position: absolute;
  top: -17px;
  color: oklch(100% 0 0);
  font: 10px ui-monospace, monospace;
  content: attr(data-pointer);
}
body.dashboard .topic-edge {
  position: absolute;
  top: 50%;
  left: calc(var(--from) + 9%);
  width: 18%;
  height: 2px;
  background: linear-gradient(90deg, oklch(70.2% 0.16195 292.30), oklch(91.66% 0.07958 207.74));
  color: oklch(91.66% 0.07958 207.74);
  transform-origin: left center;
}
body.dashboard .topic-edge::after {
  position: absolute;
  top: -2px;
  right: 1px;
  width: 6px;
  height: 6px;
  border-top: 2px solid;
  border-right: 2px solid;
  transform: rotate(45deg);
  content: '';
}
body.dashboard .list-predecessor-edge { --from: 14%; }
body.dashboard .list-successor-edge { --from: 50%; }
body.dashboard .list-original-edge {
  left: 18%;
  top: 68%;
  width: 64%;
  height: 17px;
  border: 2px solid;
  border-top: 0;
  border-radius: 0 0 8px 8px;
  background: transparent;
  color: oklch(72.34% 0.06523 247.32);
  opacity: 0;
}
body.dashboard .list-original-edge::after { top: 0; right: -4px; transform: rotate(-45deg); }
body.dashboard .list-signal {
  position: absolute;
  top: calc(50% - 3px);
  left: 14%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: oklch(99.54% 0.00283 308.43);
  box-shadow: 0 0 4px 2px oklch(96.57% 0.03088 209.15), 0 0 12px 5px oklch(65.61% 0.18551 293.10);
  opacity: 0;
}

body.dashboard .search-preview .topic-row { --cells: 5; transform-style: preserve-3d; }
body.dashboard .search-cell { width: 78%; height: 29px; font-size: 12px; }
body.dashboard :is(.search-discard,.search-last) { opacity: .52; }
body.dashboard .search-middle { --prism-color: oklch(73.22% 0.14804 288.81); }
body.dashboard .search-found {
  --prism-color: oklch(89.45% 0.11354 173.68);
  border-color: oklch(95.6% 0.06274 175.02);
  box-shadow: 0 0 10px oklch(88.35% 0.11662 176.92 / 0.5255), inset 0 0 10px oklch(88.35% 0.11662 176.92 / 0.3608);
}
body.dashboard .search-range {
  position: absolute;
  inset: auto 0 -12px;
  height: 6px;
  border: solid oklch(85.99% 0.08596 230.37);
  border-width: 0 2px 2px;
  border-radius: 0 0 4px 4px;
  transform: translateX(-20%) scaleX(.2);
  transform-origin: right;
  box-shadow: 0 3px 5px oklch(73.55% 0.13812 256.67 / 0.2745);
}
body.dashboard .topic-bars {
  position: relative;
  width: min(96%, 190px);
  height: 70px;
  border-bottom: 1px solid oklch(89.78% 0.07702 69.75 / 0.5137);
  transform-style: preserve-3d;
}
body.dashboard .sort-bar {
  position: absolute;
  bottom: 3px;
  left: calc(var(--slot) * 25% + 3%);
  width: 19%;
  height: var(--bar-height);
  font-size: 13px;
}
body.dashboard .sort-high { --prism-color: oklch(81.29% 0.12079 342.54); --swap: -131.58%; --lift: -28px; --depth: 25px; }
body.dashboard .sort-low { --prism-color: oklch(86.96% 0.09633 208.86); --swap: 131.58%; --lift: 3px; --depth: -14px; }

body.dashboard .stack-column {
  position: relative;
  display: grid;
  gap: 4px;
  width: min(54%, 80px);
  margin-top: 12px;
  transform-style: preserve-3d;
}
body.dashboard .stack-block { height: 14px; font-size: 11px; }
body.dashboard .stack-active { --prism-color: oklch(79.84% 0.13813 310.45); }
body.dashboard .stack-top {
  position: absolute;
  right: calc(100% + 4px);
  top: 1px;
  color: oklch(90.85% 0.05765 347.33);
  font: 9px ui-monospace, monospace;
}
body.dashboard .queue-track {
  position: relative;
  display: grid;
  justify-items: center;
  grid-template-columns: repeat(3,minmax(0,1fr));
  width: min(76%, 154px);
  margin-top: 14px;
  transform-style: preserve-3d;
}
body.dashboard .queue-block { width: 75%; height: 30px; font-size: 13px; }
body.dashboard .queue-arrives { --prism-color: oklch(88.53% 0.08729 217.08); }
body.dashboard :is(.queue-arrives,.queue-next) { transform: translateX(133.33%); }
body.dashboard .queue-leaves { --prism-color: oklch(89.55% 0.12034 157.94); opacity: 0; }
body.dashboard .queue-label {
  position: absolute;
  top: -22px;
  color: oklch(94.07% 0.06781 182.33);
  font: 9px ui-monospace, monospace;
}
body.dashboard .queue-back { left: 0; }
body.dashboard .queue-front { right: 0; }

@media (prefers-reduced-motion: no-preference) {
  /* Movement and spotlight share a clock, including when a preview is paused. */
  body.dashboard .topic-animations-ready :is(.topic-art,.topic-art *) {
    animation-duration: var(--topic-cycle);
    animation-iteration-count: infinite;
    animation-play-state: paused;
  }
  body.dashboard .topic-animations-ready:not(.topic-animations-paused) .is-visible :is(.topic-art,.topic-art *) {
    animation-play-state: running;
  }
  body.dashboard .topic-animations-ready .array-10 { animation-name: topic-array-idle; }
  body.dashboard .topic-animations-ready .array-source-30 { animation-name: topic-array-source-30; }
  body.dashboard .topic-animations-ready .array-source-20 { animation-name: topic-array-source-20; }
  body.dashboard .topic-animations-ready .array-copy-30 { animation-name: topic-array-first-copy; }
  body.dashboard .topic-animations-ready .array-copy-20 { animation-name: topic-array-second-copy; }
  body.dashboard .topic-animations-ready .array-incoming { animation-name: topic-array-write; }
  body.dashboard .topic-animations-ready .list-incoming { animation-name: topic-list-node; }
  body.dashboard .topic-animations-ready .list-original-edge { animation-name: topic-list-old-edge; }
  body.dashboard .topic-animations-ready .list-successor-edge { animation-name: topic-list-successor; }
  body.dashboard .topic-animations-ready .list-predecessor-edge { animation-name: topic-list-predecessor; }
  body.dashboard .topic-animations-ready .list-signal { animation-name: topic-list-signal; }
  body.dashboard .topic-animations-ready .search-discard { animation-name: topic-search-discard; }
  body.dashboard .topic-animations-ready .search-middle { animation-name: topic-search-discard, topic-search-midpoint; }
  body.dashboard .topic-animations-ready .search-found { animation-name: topic-search-match; }
  body.dashboard .topic-animations-ready .search-last { animation-name: topic-search-last; }
  body.dashboard .topic-animations-ready .search-range { animation-name: topic-search-range; }
  body.dashboard .topic-animations-ready :is(.sort-high,.sort-low) { animation-name: topic-sort-swap; }
  body.dashboard .topic-animations-ready .sort-bar:not(.sort-high,.sort-low) { animation-name: topic-sort-idle; }
  body.dashboard .topic-animations-ready .stack-active { animation-name: topic-stack-push-pop; }
  body.dashboard .topic-animations-ready .stack-top { animation-name: topic-stack-top; }
  body.dashboard .topic-animations-ready .queue-arrives { animation-name: topic-queue-arrive; }
  body.dashboard .topic-animations-ready .queue-next { animation-name: topic-queue-advance; }
  body.dashboard .topic-animations-ready .queue-leaves { animation-name: topic-queue-leave; }
}
@keyframes topic-array-first-copy {
  0%, 9% { opacity: 0; scale: 1; box-shadow: var(--prism-shadow); transform: translate3d(-125%,0,0) rotateX(0deg) rotateY(0deg); animation-timing-function: var(--lift-easing); }
  17% { opacity: 1; scale: 1.05; box-shadow: var(--preview-glow); transform: translate3d(-108%,-19px,24px) rotateX(9deg) rotateY(-16deg); animation-timing-function: var(--travel-easing); }
  24% { scale: 1.05; box-shadow: var(--preview-glow); transform: translate3d(-12%,-19px,20px) rotateX(7deg) rotateY(11deg); animation-timing-function: var(--land-easing); }
  30% { transform: translate3d(0,1px,0) rotateX(0deg) rotateY(0deg); animation-timing-function: var(--land-easing); }
  33%, 74%, 91% { opacity: 1; scale: 1; box-shadow: var(--prism-shadow); transform: none; }
  37%, 70% { opacity: .5; }
  96%, 100% { opacity: 0; transform: none; }
}
@keyframes topic-array-second-copy {
  0%, 32% { opacity: 0; scale: 1; box-shadow: var(--prism-shadow); transform: translate3d(-125%,0,0) rotateX(0deg) rotateY(0deg); animation-timing-function: var(--lift-easing); }
  40% { opacity: 1; scale: 1.05; box-shadow: var(--preview-glow); transform: translate3d(-108%,-19px,24px) rotateX(9deg) rotateY(-16deg); animation-timing-function: var(--travel-easing); }
  47% { scale: 1.05; box-shadow: var(--preview-glow); transform: translate3d(-12%,-19px,20px) rotateX(7deg) rotateY(11deg); animation-timing-function: var(--land-easing); }
  53% { transform: translate3d(0,1px,0) rotateX(0deg) rotateY(0deg); animation-timing-function: var(--land-easing); }
  56%, 74%, 91% { opacity: 1; scale: 1; box-shadow: var(--prism-shadow); transform: none; }
  60%, 70% { opacity: .5; }
  96%, 100% { opacity: 0; transform: none; }
}
@keyframes topic-array-idle {
  0%, 9%, 74%, 100% { opacity: 1; }
  14%, 70% { opacity: .5; }
}
@keyframes topic-array-source-30 {
  0%, 9%, 100% { opacity: 1; }
  14%, 52% { opacity: .5; }
  54%, 96% { opacity: 0; }
}
@keyframes topic-array-source-20 {
  0%, 9%, 100% { opacity: 1; }
  14%, 70% { opacity: .5; }
  72%, 96% { opacity: 0; }
}
@keyframes topic-array-write {
  0%, 56% { opacity: 0; scale: 1; box-shadow: var(--prism-shadow); transform: translate3d(0,-29px,24px) rotateX(15deg); animation-timing-function: var(--lift-easing); }
  62% { opacity: 1; scale: 1.05; box-shadow: var(--preview-glow); transform: translate3d(0,-25px,27px) rotateX(11deg); animation-timing-function: var(--travel-easing); }
  71% { transform: translate3d(0,1px,0) rotateX(0deg); animation-timing-function: var(--land-easing); }
  74%, 91% { opacity: 1; scale: 1; box-shadow: var(--prism-shadow); transform: none; }
  96%, 100% { opacity: 0; transform: none; }
}
@keyframes topic-list-node {
  0%, 9% { opacity: 0; transform: translate3d(-64%,-29px,8px) rotateY(-19deg) scale(.9); animation-timing-function: var(--lift-easing); }
  17% { opacity: 1; transform: translate3d(-62%,-24px,30px) rotateY(-15deg) scale(1); animation-timing-function: var(--travel-easing); }
  26% { transform: translate3d(-48%,-7px,14px) rotateY(8deg); animation-timing-function: var(--land-easing); }
  31% { transform: translate3d(-50%,2px,0) rotateY(0deg); animation-timing-function: var(--land-easing); }
  34%, 94% { opacity: 1; transform: translateX(-50%); }
  100% { opacity: 0; transform: translateX(-50%); }
}
@keyframes topic-list-old-edge {
  0%, 51% { opacity: 1; }
  54%, 96% { opacity: 0; }
  100% { opacity: 1; }
}
@keyframes topic-list-successor {
  0%, 34% { opacity: 0; transform: scaleX(.1); animation-timing-function: var(--travel-easing); }
  47%, 92% { opacity: 1; transform: scaleX(1); }
  96%, 100% { opacity: 0; transform: scaleX(1); }
}
@keyframes topic-list-predecessor {
  0%, 54% { opacity: 0; transform: scaleX(.1); animation-timing-function: var(--travel-easing); }
  66%, 92% { opacity: 1; transform: scaleX(1); }
  96%, 100% { opacity: 0; transform: scaleX(1); }
}
@keyframes topic-list-signal {
  0%, 67% { opacity: 0; left: 14%; transform: translateX(-50%) scale(.6); animation-timing-function: var(--lift-easing); }
  71% { opacity: 1; left: 14%; transform: translateX(-50%) scale(1.15); animation-timing-function: linear; }
  81% { left: 50%; transform: translateX(-50%) scale(1); animation-timing-function: linear; }
  91% { opacity: 1; left: 86%; transform: translateX(-50%) scale(1); animation-timing-function: var(--land-easing); }
  96%, 100% { opacity: 0; left: 86%; transform: translateX(-50%) scale(.6); }
}
@keyframes topic-search-discard {
  0%, 37%, 100% { opacity: 1; }
  49%, 93% { opacity: .52; }
}
@keyframes topic-search-midpoint {
  0%, 10% { transform: none; animation-timing-function: var(--lift-easing); }
  23%, 35% { transform: translate3d(0,-12px,25px) rotateX(13deg); box-shadow: 0 0 15px oklch(78.81% 0.11556 290.19); animation-timing-function: var(--land-easing); }
  48%, 100% { transform: none; }
}
@keyframes topic-search-match {
  0%, 50%, 100% { transform: none; background: oklch(40.16% 0.08331 269.30); box-shadow: 0 0 6px oklch(73.55% 0.13812 256.67 / 0.3765); animation-timing-function: var(--lift-easing); }
  64% { transform: translate3d(0,-13px,28px) rotateX(12deg); box-shadow: 0 0 19px oklch(89.45% 0.11354 173.68); animation-timing-function: var(--land-easing); }
  75%, 92% { transform: none; }
}
@keyframes topic-search-last {
  0%, 64%, 100% { opacity: 1; }
  76%, 93% { opacity: .52; }
}
@keyframes topic-search-range {
  0%, 35%, 100% { transform: none; animation-timing-function: var(--travel-easing); }
  49%, 64% { transform: scaleX(.4); animation-timing-function: var(--travel-easing); }
  76%, 93% { transform: translateX(-20%) scaleX(.2); }
}
@keyframes topic-sort-swap {
  0%, 14% { opacity: 1; scale: 1; box-shadow: var(--prism-shadow); transform: translateX(var(--swap)); animation-timing-function: var(--lift-easing); }
  27% { scale: 1.05; box-shadow: var(--preview-glow); transform: translate3d(var(--swap),var(--lift),var(--depth)) rotateX(11deg) rotateY(-13deg); animation-timing-function: var(--travel-easing); }
  44% { scale: 1.05; box-shadow: var(--preview-glow); transform: translate3d(0,var(--lift),var(--depth)) rotateX(7deg) rotateY(10deg); animation-timing-function: var(--land-easing); }
  56%, 89% { opacity: 1; scale: 1; box-shadow: var(--prism-shadow); transform: none; }
  94% { opacity: 0; transform: none; }
  95% { opacity: 0; transform: translateX(var(--swap)); }
  100% { opacity: 1; transform: translateX(var(--swap)); }
}
@keyframes topic-sort-idle {
  0%, 14%, 56%, 100% { opacity: 1; }
  18%, 52% { opacity: .5; }
}
@keyframes topic-stack-push-pop {
  0%, 11% { opacity: 0; transform: translate3d(0,-25px,20px) rotateX(15deg); animation-timing-function: var(--land-easing); }
  21% { opacity: 1; transform: translate3d(0,-15px,22px) rotateX(12deg); animation-timing-function: var(--land-easing); }
  34%, 64% { opacity: 1; transform: none; animation-timing-function: var(--lift-easing); }
  77% { opacity: 1; transform: translate3d(0,-21px,22px) rotateX(15deg); }
  87%, 100% { opacity: 0; transform: translate3d(0,-30px,20px) rotateX(15deg); }
}
@keyframes topic-stack-top {
  0%, 30%, 69%, 100% { transform: translateY(18px); }
  36%, 63% { transform: none; }
}
@keyframes topic-queue-arrive {
  0%, 10% { opacity: 0; transform: translate3d(-65%,0,17px) rotateY(-15deg); animation-timing-function: var(--travel-easing); }
  21% { opacity: 1; transform: translate3d(-34%,-8px,21px) rotateY(-10deg); animation-timing-function: var(--land-easing); }
  34%, 72% { opacity: 1; transform: none; animation-timing-function: var(--travel-easing); }
  82%, 91% { opacity: 1; transform: translateX(133.33%); }
  96% { opacity: 0; transform: translateX(133.33%); }
  97%, 100% { opacity: 0; transform: none; }
}
@keyframes topic-queue-advance {
  0%, 72%, 100% { opacity: 1; transform: none; animation-timing-function: var(--travel-easing); }
  82%, 91% { opacity: 1; transform: translateX(133.33%); }
  95% { opacity: 0; transform: translateX(133.33%); }
  96% { opacity: 0; transform: none; }
}
@keyframes topic-queue-leave {
  0%, 51% { opacity: 1; transform: none; animation-timing-function: var(--lift-easing); }
  63% { opacity: 1; transform: translate3d(25%,-8px,21px) rotateY(12deg); animation-timing-function: var(--travel-easing); }
  78%, 95% { opacity: 0; transform: translate3d(68%,0,17px) rotateY(15deg); }
  96% { opacity: 0; transform: none; }
  100% { opacity: 1; transform: none; }
}
body.dashboard .topic-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 12px;
  margin-top: auto;
}
body.dashboard .topic-hub-link {
  color: inherit;
  text-decoration: none;
}
body.dashboard .topic-hub-link:hover { text-decoration: underline; }
body.dashboard :is(.topic-hub-link, .bento-topic:not(.has-topic-hub) .topic-links > a:first-child)::after {
  position: absolute;
  inset: 0;
  border-radius: 18px;
  content: '';
}
body.dashboard .topic-links > :not(:first-child) { position: relative; z-index: 1; }
body.dashboard .has-topic-hub .topic-hub-link::after { z-index: 1; }
body.dashboard .has-topic-hub .topic-links > * { position: relative; z-index: 2; }
body.dashboard :is(.topic-links,.dashboard-shortcuts) :is(a,button) {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 44px;
  padding: 2px 0;
  border: 0;
  background: none;
  color: var(--topic-ink,var(--home-accent));
  text-align: left;
  text-decoration: none;
  font: inherit;
  font-size: 13px;
  font-weight: 680;
  line-height: 1.3;
  cursor: pointer;
}
body.dashboard :is(.topic-links,.dashboard-shortcuts) :is(a,button):hover { text-decoration: underline; }
body.dashboard .dashboard-footer {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0 16px;
  border-top: 1px solid var(--home-line);
}
body.dashboard .dashboard-shortcuts {
  display: flex;
  flex-wrap: wrap;
  gap: 0 16px;
}
body.dashboard .overview-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  color: var(--home-muted);
  font-size: 12px;
}
body.dashboard .overview-stats strong { color: var(--home-ink); font-size: 16px; letter-spacing: normal; }
body.dashboard .overview-stats span { margin: 0; font-size: 13px; }
body.dashboard #experiment-count {
  display: inline-block;
  min-inline-size: 2ch;
  font-variant-numeric: tabular-nums;
  text-align: end;
}
body.dashboard #overview :is(a,button):focus-visible,
.dashboard-catalog :is(a,button,input):focus-visible {
  outline: 3px solid oklch(60.4% 0.14019 304.88);
  outline-offset: 3px;
}
body.dashboard .dashboard-welcome :is(a,button):focus-visible { outline-color: oklch(91.37% 0.07098 162.91); }

@media (min-width: 520px) {
  body.dashboard .bento-dashboard {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
}
@media (min-width: 650px) {
  body.dashboard .dashboard-welcome { grid-template-columns: minmax(0,1fr) auto; }
  body.dashboard .dashboard-first { inline-size: 230px; }
}
@media (min-width: 1151px) {
  body.dashboard .dashboard-entry { grid-template-columns: auto auto; }
}
@media (min-width: 820px) {
  body.dashboard .bento-dashboard { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media (min-width: 1000px) {
  body.dashboard .bento-topic {
    grid-template-columns: minmax(96px, 4fr) minmax(0, 5fr);
    grid-template-rows: 1fr;
  }
  body.dashboard .bento-topic .topic-stage { height: 100%; min-height: 146px; }
}
@media (min-width: 1000px) and (max-height: 800px) {
  body.dashboard #main { padding-block: 12px; }
  body.dashboard .bento-dashboard { gap: 10px; }
  body.dashboard .dashboard-welcome { padding-block: 18px; }
}
@media (max-width: 1150px) {
  body.dashboard .local-label { display: none; }
}

/* The entire catalog remains available without extending the home document. */
body.learning-simple .dashboard-catalog{width:min(1060px,calc(100vw - 40px));max-width:none;height:min(760px,calc(100dvh - 48px));max-height:calc(100dvh - 48px);padding:22px;border-radius:16px;overflow:hidden}
.dashboard-catalog[open]{display:flex;flex-direction:column}
.dashboard-catalog>header{flex:none;position:static;margin:0 0 15px;padding:0;background:oklch(100% 0 0)}
.dashboard-catalog>header .eyebrow{font-size:10px;letter-spacing:1.3px;margin-bottom:5px}
.dashboard-catalog>header h2{font-size:25px;letter-spacing:-.7px}
.dashboard-catalog .catalog-controls{display:flex;align-items:end;gap:16px;flex:none}
.dashboard-catalog .catalog-controls>label{flex:1;font-size:12px;gap:6px;color:oklch(47.55% 0.06392 311.11)}
.dashboard-catalog input{width:100%;height:41px;font-size:14px;min-width:0}
.dashboard-catalog .catalog-filters{display:flex;gap:5px;flex:none}
.dashboard-catalog .catalog-filters button{font-size:12px;padding:8px 11px;min-height:40px;border-radius:7px;background:oklch(100% 0 0);border-color:oklch(87.95% 0.03335 307.14)}
body.learning-simple .dashboard-catalog .catalog-filters [aria-pressed=true]{background:oklch(42.41% 0.13220 300.56);color:oklch(100% 0 0);border-color:oklch(42.41% 0.13220 300.56)}
.dashboard-catalog .catalog-count{flex:none;font-size:12px;margin:12px 0 9px;color:oklch(52.41% 0.06120 311.95)}
.dashboard-catalog .course-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-auto-rows:max-content;gap:10px;overflow:auto;min-height:0;align-content:start;padding:4px 5px 10px}
.dashboard-catalog .course-card {
  --catalog-marker-light: #704caf;
  --catalog-marker-dark: var(--aura-violet);
  --catalog-marker: var(--catalog-marker-light);
}
body.learning-simple .dashboard-catalog .course-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 150px;
  padding: 15px;
  border: 1px solid #e2e7ee;
  border-radius: 10px;
  background: var(--paper);
  box-shadow: none;
  transform: none;
}
.dashboard-catalog .course-card[data-catalog-group="list"] {
  --catalog-marker-light: #227958;
  --catalog-marker-dark: var(--aura-mint);
}
.dashboard-catalog .course-card[data-catalog-group="stack"] {
  --catalog-marker-light: #a2416a;
  --catalog-marker-dark: var(--aura-rose);
}
.dashboard-catalog .course-card[data-catalog-group="queue"] {
  --catalog-marker-light: #147679;
  --catalog-marker-dark: oklch(84% .106 195);
}
.dashboard-catalog .course-card[data-catalog-section="searching"] {
  --catalog-marker-light: #3467a5;
  --catalog-marker-dark: var(--aura-blue);
}
.dashboard-catalog .course-card[data-catalog-section="sorting"] {
  --catalog-marker-light: #a06521;
  --catalog-marker-dark: var(--aura-amber);
}
.dashboard-catalog .course-card[hidden]{display:none!important}
body.learning-simple .dashboard-catalog .course-card:hover{border-color:oklch(64.64% 0.09437 305.69)}
body.learning-simple .dashboard-catalog .course-meta{font-size:9px;letter-spacing:.4px;display:flex;justify-content:space-between;gap:5px;color:oklch(51% 0.05924 309.69)}
.dashboard-catalog .course-meta > span:first-child {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.dashboard-catalog .course-meta > span:first-child::before {
  content: '';
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--catalog-marker);
}
body.learning-simple .dashboard-catalog .course-card h3{font-size:16px;line-height:22px;margin:0;color:oklch(35.64% 0.08815 306.45)}
body.learning-simple .dashboard-catalog .course-card p{font-size:12px;line-height:18px;margin:0;color:oklch(52.3% 0.05206 314.34);flex:1 0 auto}
.dashboard-catalog .card-demo{display:none}
body.learning-simple .dashboard-catalog .course-card .cta{font-size:11px;color:oklch(46.97% 0.12955 305.03);margin:2px 0 0}
.dashboard-catalog #catalog-empty{font-size:14px;padding:25px 0;color:oklch(47.55% 0.06392 311.11)}

.arrays-path-dialog{width:min(540px,calc(100% - 24px));padding:16px}
.arrays-path-dialog>header{top:-16px;gap:8px;margin-bottom:6px}
.arrays-path-dialog>header h2{font-size:20px}
.arrays-path-dialog #arrays-path-check-goal{margin:0;font-size:15px}
.arrays-path-dialog #arrays-path-check-goal:empty{display:none}
.arrays-path-values{display:flex;flex-wrap:wrap;gap:6px;margin:12px 0 16px;padding:0;list-style:none}
.arrays-path-values li{display:grid;justify-items:center;gap:3px;min-width:50px;padding:5px 7px;border:1px solid oklch(79.85% 0.05797 307.11);border-radius:6px;background:oklch(95.5% 0.01755 311.58);color:oklch(30.42% 0.06919 309.00);line-height:1.25}
.arrays-path-values li>span{font-size:11px}
.arrays-path-values li>strong{font-size:18px}
.arrays-path-dialog fieldset{min-width:0;margin:0 0 12px;padding:0;border:0}
.arrays-path-dialog legend{padding:0;color:oklch(28.9% 0.05692 313.29);font-size:15px;font-weight:650;line-height:1.45}
.arrays-path-choices,.arrays-path-check-actions{display:flex;flex-wrap:wrap;gap:6px;margin-top:6px}
.arrays-path-choices label{display:flex;flex-direction:row;align-items:center;gap:6px;min-height:44px;padding:5px 9px;border:1px solid oklch(79.85% 0.05797 307.11);border-radius:6px;color:oklch(30.42% 0.06919 309.00);font-size:14px}
.arrays-path-choices label:has(:checked){border-color:oklch(46.41% 0.12913 303.71);background:oklch(93.87% 0.02869 308.12)}
.arrays-path-choices input[type=radio]{width:16px;height:16px;min-height:0;margin:0;padding:0;accent-color:oklch(45.24% 0.13266 300.67)}
.arrays-path-dialog .arrays-path-feedback{margin:8px 0;font-size:14px;line-height:1.5}
.arrays-path-dialog .arrays-path-feedback:empty{display:none}
.arrays-path-dialog .arrays-path-check-actions .button{min-height:44px;white-space:normal}
.arrays-path-dialog .arrays-path-storage{margin:10px 0 0;color:oklch(48.64% 0.05047 307.30);font-size:12px}

@media (max-width: 740px) {
 body.learning-simple .dashboard-catalog{width:calc(100vw - 20px);height:calc(100dvh - 24px);max-height:calc(100dvh - 24px);padding:17px 12px}
 .dashboard-catalog>header h2{font-size:20px}
 .dashboard-catalog>header .button{font-size:12px;min-height:34px;padding:6px 9px}
 .dashboard-catalog .catalog-controls{flex-direction:column;align-items:stretch;gap:10px}
 .dashboard-catalog .catalog-filters{flex-wrap:wrap}
 .dashboard-catalog .catalog-filters button{flex:1 0 auto;padding:6px 8px;font-size:12px;min-height:34px}
 .dashboard-catalog .course-cards{grid-template-columns:1fr;padding-right:4px}
 body.learning-simple .dashboard-catalog .course-card{min-height:135px}
}
