:root {
  color-scheme: light;
  --ink: #182e2b;
  --sub: #526663;
  --line: #d7e1dc;
  --green: #08765c;
  --deep: #102e2b;
  --muted: #edf3ef;
  --lime: #d4fa89;
  --paper: #f7f9f6;
  --mono: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
  --sans: "Inter", "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 1rem/1.63 var(--sans);
  word-break: keep-all;
  overflow-wrap: anywhere;
}
button,
input,
select {
  font: inherit;
  color: inherit;
}
button,
summary,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: default;
  opacity: 0.46;
}
button {
  border: 0;
  background: none;
}
button:focus-visible,
a:focus-visible,
summary:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid #229a76;
  outline-offset: 3px;
}
a {
  color: var(--green);
  text-underline-offset: 3px;
}
svg {
  display: block;
}
.ico {
  flex: none;
  vertical-align: middle;
}
[hidden] {
  display: none !important;
}
.skip {
  position: fixed;
  top: -100px;
  z-index: 20;
  background: white;
  padding: 0.5rem 1rem;
}
.skip:focus {
  top: 0.4rem;
}
.shell {
  display: grid;
  grid-template-columns: 268px minmax(0, 1fr);
  min-height: 100vh;
}
#sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: auto;
  background: #f0f4ee;
  border-right: 1px solid var(--line);
  scrollbar-width: thin;
  scrollbar-color: #cad5ca transparent;
  z-index: 5;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 23px 21px 22px;
  border-bottom: 1px solid var(--line);
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: var(--deep);
  color: var(--lime);
  font: 750 18px var(--mono);
  letter-spacing: -2px;
}
.brand strong {
  display: block;
  line-height: 1.1;
  font-size: 1.45rem;
  letter-spacing: -0.07em;
}
.brand div > span {
  display: block;
  font: 700 0.72rem/1.8 var(--mono);
  letter-spacing: 0.16em;
  color: #587067;
}
.brand #close-nav {
  margin-left: auto;
}
.side-progress {
  padding: 21px 21px 18px;
}
.side-label,
.split,
.section-heading,
.modalhead,
.between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.side-label strong {
  font-size: 0.94rem;
}
.side-label span,
.mono,
.filename,
.chip,
.week-no {
  font-family: var(--mono);
}
.side-label span {
  font-size: 0.85rem;
  color: var(--green);
  font-weight: 700;
}
.progress-track {
  margin: 10px 0 5px;
  height: 6px;
  background: #d7e1d7;
  border-radius: 9px;
  overflow: hidden;
}
.progress-track > i {
  height: 100%;
  display: block;
  background: var(--green);
}
.side-progress small {
  font-size: 0.79rem;
  color: var(--sub);
}
.week-group {
  margin: 2px 11px 16px;
}
.week-group summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  padding: 6px 10px 9px;
  color: #3d574e;
  font-weight: 700;
  font-size: 0.86rem;
}
.week-group summary::-webkit-details-marker,
details.fold > summary::-webkit-details-marker {
  display: none;
}
.week-group summary .week-no {
  color: #537860;
  font-size: 0.75rem;
  margin-right: 7px;
}
.week-group:not([open]) summary .chev {
  transform: rotate(-90deg);
}
.day-link {
  display: grid;
  width: 100%;
  grid-template-columns: 29px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  text-align: left;
  margin: 2px 0;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 9px;
  line-height: 1.35;
}
.day-link:hover {
  background: #e6ede4;
}
.day-link.active {
  background: #e1efdb;
  border-color: #b3cead;
}
.day-link.active strong {
  color: #234f36;
}
.day-num {
  display: grid;
  place-items: center;
  height: 28px;
  width: 28px;
  border: 1px solid #d4dfd4;
  background: #f6f8f3;
  color: #576d60;
  border-radius: 8px;
  font: 650 0.78rem var(--mono);
}
.active .day-num {
  background: #284e3e;
  border-color: #284e3e;
  color: #ecffd7;
}
.day-link.done .day-num {
  color: var(--green);
  background: #d0ecd9;
}
.day-link strong {
  display: block;
  font-size: 0.91rem;
}
.day-link small {
  display: block;
  color: #586b61;
  font: normal 0.72rem/1.55 var(--mono);
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}
.workspace {
  min-width: 0;
}
.toolbar {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 0 clamp(20px, 3.5vw, 65px);
  background: #fbfcf9;
  border-bottom: 1px solid var(--line);
}
.breadcrumb,
.toolbar nav,
.tool,
.action,
.icon-title,
.row,
.toptag,
.badges {
  display: flex;
  align-items: center;
  gap: 8px;
}
.breadcrumb {
  font-size: 0.86rem;
  color: var(--sub);
}
.breadcrumb strong {
  color: var(--ink);
}
.breadcrumb .slash {
  color: #9ca9a0;
  margin: 0 2px;
}
.toolbar nav {
  gap: 8px;
}
.tool,
.action,
.icon-only {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 37px;
  padding: 7px 12px;
  font-weight: 650;
  font-size: 0.87rem;
  justify-content: center;
}
.tool:hover,
.action:hover,
.icon-only:hover {
  background: #edf5ec;
  border-color: #9db9aa;
}
.icon-only {
  display: inline-grid;
  place-items: center;
  width: 37px;
  padding: 0;
}
.mobile {
  display: none;
}
main {
  width: min(100%, 1580px);
  margin: auto;
  padding: clamp(18px, 2.1vw, 35px) clamp(17px, 3.5vw, 65px) 60px;
}
#hero {
  position: relative;
  isolation: isolate;
  background: #133532;
  color: #f4f8ef;
  border-radius: 19px;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: 232px;
  padding: 30px clamp(23px, 3vw, 46px);
  box-shadow: 0 3px 9px #153e2b11;
}
.herocopy {
  width: 64%;
  z-index: 1;
}
.toptag {
  font: 700 0.75rem var(--mono);
  letter-spacing: 0.08em;
  color: #d4f79b;
}
.toptag .daytag {
  color: var(--deep);
  background: var(--lime);
  padding: 4px 8px;
  border-radius: 5px;
}
.toptag .hr {
  width: 16px;
  height: 1px;
  background: #78a090;
}
h1,
h2,
h3,
h4,
p {
  margin: 0;
}
h1 {
  font-size: clamp(1.9rem, 3.15vw, 3.45rem);
  line-height: 1.18;
  letter-spacing: -0.075em;
  margin: 14px 0 10px;
  text-wrap: balance;
}
#hero p {
  max-width: 42rem;
  color: #d2e3d8;
  font-size: clamp(0.91rem, 1.15vw, 1.07rem);
  line-height: 1.55;
}
.badges {
  margin-top: 16px;
  gap: 7px;
  flex-wrap: wrap;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  border: 1px solid #517368;
  border-radius: 5px;
  font-size: 0.75rem;
  color: #e7f0e5;
}
.heroart {
  position: absolute;
  right: 0;
  top: 0;
  width: 40%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
}
.heroart svg {
  width: 100%;
  height: 100%;
}
#tabs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-bottom: 1px solid #cfdad2;
  margin: 15px 0 23px;
  gap: 3px;
}
.tab {
  position: relative;
  min-height: 55px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: #52685d;
  font-size: 0.93rem;
  font-weight: 650;
  padding: 8px 3px;
}
.tab:hover {
  background: #edf3eb;
}
.tab[aria-selected="true"] {
  color: #145c45;
}
.tab[aria-selected="true"]:after {
  content: "";
  position: absolute;
  height: 3px;
  border-radius: 4px 4px 0 0;
  background: var(--green);
  bottom: -1px;
  left: 7px;
  right: 7px;
}
.overview-grid,
.two-col,
.editor-grid,
.quiz-grid {
  display: grid;
  gap: 16px;
  align-items: start;
}
.overview-grid {
  grid-template-columns: minmax(0, 1.35fr) minmax(235px, 0.75fr);
}
.two-col,
.quiz-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.editor-grid {
  grid-template-columns: minmax(0, 1.45fr) minmax(230px, 0.8fr);
}
.stack {
  display: grid;
  gap: 16px;
  min-width: 0;
}
.card {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 14px;
  padding: clamp(17px, 1.7vw, 26px);
  min-width: 0;
}
.section-heading {
  margin-bottom: 16px;
  align-items: flex-start;
}
.icon-title {
  gap: 10px;
}
.icon-tile {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  background: #e8f3e5;
  color: #21604b;
  border-radius: 9px;
  flex: none;
}
h2 {
  font-size: 1.26rem;
  line-height: 1.4;
  letter-spacing: -0.048em;
}
h3 {
  font-size: 1.06rem;
  line-height: 1.5;
  letter-spacing: -0.035em;
}
h4 {
  font-size: 0.98rem;
}
.secondary,
.intro,
.muted {
  color: var(--sub);
}
.intro {
  margin: 6px 0 18px;
}
.small,
.secondary {
  font-size: 0.85rem;
}
.eyebrow {
  font: 700 0.73rem var(--mono);
  letter-spacing: 0.09em;
  color: #517066;
}
.lesson-goals {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}
.lesson-goals li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.goal-index {
  flex: none;
  font: 700 0.79rem var(--mono);
  color: #36694e;
  background: #edf5e8;
  border: 1px solid #d5e6ce;
  border-radius: 6px;
  padding: 3px 6px;
  margin-top: 2px;
}
.lesson-goals span:last-child {
  line-height: 1.55;
}
.button-row,
.filters,
.seg,
.options {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.button-row {
  margin-top: 15px;
}
.action.primary {
  background: #195b45;
  border-color: #195b45;
  color: white;
}
.action.primary:hover {
  background: #104532;
}
.action.tiny {
  min-height: 31px;
  font-size: 0.8rem;
  padding: 4px 9px;
}
.action.selected,
.seg button.selected,
.filters button.selected {
  border-color: #7ba78c;
  background: #e6f2e2;
  color: #20543e;
}
.full {
  width: 100%;
}
.rule {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 17px 0;
}
.routine-list {
  display: grid;
  gap: 9px;
}
.routine-list button {
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  border-radius: 6px;
  padding: 2px 0;
  font-size: 0.92rem;
}
.routine-list button:hover b {
  text-decoration: underline;
}
.routine-list i {
  width: 9px;
  height: 9px;
  flex: none;
  border-radius: 3px;
}
.routine-list b {
  font-weight: 550;
}
.routine-list span {
  margin-left: auto;
  font: 600 0.8rem var(--mono);
  color: var(--sub);
}
.routine-bar {
  display: flex;
  height: 8px;
  gap: 3px;
  border-radius: 5px;
  overflow: hidden;
  margin: 4px 0 15px;
}
.routine-bar i {
  height: 100%;
}
.concept p + p {
  margin-top: 9px;
}
.concept h3 {
  margin: 16px 0 4px;
}
.design-note,
.feedback,
.hintbox {
  padding: 12px 15px;
  border-radius: 9px;
  background: #edf5e8;
  border-left: 3px solid #6a9663;
  margin-top: 14px;
  color: #294b37;
}
.design-note h3 {
  margin: 0 0 5px;
}
.flow {
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 6px;
}
.flow span {
  display: flex;
  align-items: center;
  gap: 5px;
  border: 1px solid #cadcce;
  background: #f1f7f0;
  border-radius: 6px;
  padding: 5px 8px;
  font-size: 0.87rem;
}
.flow .ico {
  align-self: center;
  color: #729380;
}
.file-tree {
  list-style: none;
  padding: 0;
  margin: 7px 0;
  font: 0.81rem/1.8 var(--mono);
  color: #43574d;
}
.file-tree li {
  display: flex;
  align-items: center;
  gap: 6px;
  word-break: break-all;
}
.file-status,
.status {
  font: 700 0.71rem var(--mono);
  padding: 2px 5px;
  border-radius: 4px;
  background: #e6f4da;
  color: #375c2c;
}
.edited {
  background: #f9ecd8;
  color: #76501a;
}
.fold {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  min-width: 0;
}
.fold > summary {
  list-style: none;
  font-weight: 650;
  padding: 12px 15px;
  cursor: pointer;
}
.fold > summary:before {
  content: "＋";
  font-family: var(--mono);
  margin-right: 7px;
  color: #497455;
}
.fold[open] > summary:before {
  content: "−";
}
.fold-body {
  padding: 0 15px 14px;
}
.footnav {
  border-top: 1px solid var(--line);
  margin-top: 22px;
  padding-top: 17px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.codebox,
.terminal {
  background: #152b2b;
  color: #e0efe5;
  border-radius: 10px;
  overflow: hidden;
  min-width: 0;
}
.codehead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
  padding: 9px 12px;
  background: #203938;
  color: #cee1d6;
  font: 500 0.8rem var(--mono);
}
.codehead .row {
  min-width: 0;
}
.filename {
  overflow-wrap: anywhere;
}
.codehead button {
  color: #e3efe8;
}
.codebody,
pre {
  font: 0.87rem/1.75 var(--mono);
  tab-size: 4;
  text-align: left;
  margin: 0;
  white-space: pre;
  overflow: auto;
  word-break: normal;
  overflow-wrap: normal;
}
.codebody {
  overflow: auto;
  max-height: 570px;
  padding: 8px 0;
}
.codeline {
  display: flex;
  align-items: flex-start;
  font: inherit;
  color: inherit;
  border: 0;
  width: max-content;
  min-width: 100%;
  text-align: left;
  white-space: pre;
  padding: 1px 12px 1px 0;
  border-left: 3px solid transparent;
  min-height: 1.62em;
}
.codeline:hover {
  background: #203a39;
}
.codeline.active {
  background: #2a493f;
  border-left-color: var(--lime);
}
.codeline.focusline {
  background: #375646;
}
.lineno {
  color: #92a59b;
  display: inline-block;
  flex: 0 0 3.1em;
  text-align: right;
  margin-right: 1em;
  font-size: 0.82em;
  user-select: none;
}
.kw {
  color: #c7b8ff;
}
.str {
  color: #c8e889;
}
.num {
  color: #ffc298;
}
.comment {
  color: #a1b3a7;
}
.fn {
  color: #8dded4;
}
.terminal pre,
.codebox > pre {
  padding: 13px 15px;
  max-height: 480px;
}
.readout {
  display: grid;
  gap: 12px;
}
.readout section {
  padding-top: 10px;
  border-top: 1px solid var(--line);
}
.readout section h3 {
  font-size: 0.84rem;
  color: var(--green);
  margin-bottom: 3px;
}
.readout p {
  font-size: 0.94rem;
}
.editor-aside {
  position: sticky;
  top: 15px;
}
.switches {
  display: grid;
  gap: 10px;
}
.controlbox {
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 11px 12px;
}
.switchline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
}
.switchline strong {
  font-size: 0.96rem;
}
.switchline input {
  appearance: none;
  flex: none;
  width: 39px;
  height: 23px;
  background: #9aaba3;
  border-radius: 14px;
  position: relative;
  margin: 0;
}
.switchline input:before {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: white;
}
.switchline input:checked {
  background: #257852;
}
.switchline input:checked:before {
  left: 19px;
}
.controlbox p {
  font-size: 0.88rem;
  color: var(--sub);
  margin-top: 5px;
}
.options {
  margin-top: 7px;
}
.trace {
  background: #152b2b;
  color: #daebdf;
  padding: 15px;
  border-radius: 10px;
  display: grid;
  gap: 8px;
}
.trace-row {
  display: grid;
  grid-template-columns: 1.5rem minmax(0, 1fr);
  gap: 7px;
}
.trace-row .step {
  font: 600 0.76rem/2 var(--mono);
  color: #a6c5ae;
}
.trace-row b {
  font: 650 0.83rem var(--mono);
  color: #c7eb9b;
}
.trace-row p {
  font-size: 0.91rem;
  white-space: pre-wrap;
}
.trace-row.bad b {
  color: #ffb6a0;
}
.alert {
  color: #873b27;
  background: #ffebe2;
}
.feedback.ok {
  background: #e4f2e2;
  color: #295436;
}
.feedback.error {
  background: #ffefe8;
  color: #8a3829;
  border-color: #b5644d;
}
.quiz-list,
.mission-list {
  display: grid;
  gap: 12px;
}
.quiz-item {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 9px;
}
.quiz-item code,
.inline-code {
  font-family: var(--mono);
  background: #eef4ed;
  border-radius: 4px;
  padding: 1px 4px;
}
.quiz-item input,
.field {
  width: 100%;
  min-height: 36px;
  border: 1px solid #b6cabc;
  border-radius: 6px;
  padding: 5px 8px;
  background: white;
}
.quiz-item .snippet {
  font: 0.88rem/1.85 var(--mono);
  white-space: pre-wrap;
  color: #264c3b;
}
.quiz-item input {
  width: clamp(80px, 14ch, 100%);
  font: inherit;
}
.quiz-item small {
  display: block;
  margin-top: 5px;
}
.order-slot,
.order-bank {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  padding: 11px;
  border-radius: 8px;
  min-height: 50px;
}
.order-slot {
  background: #eff6ec;
  border: 1px dashed #a6bba6;
}
.order-bank {
  padding-left: 0;
}
.mission-list label {
  display: flex;
  align-items: flex-start;
  gap: 9px;
}
.mission-list input {
  accent-color: var(--green);
  margin-top: 6px;
}
.mission-list strong {
  color: #246448;
}
.gitcheck {
  margin-top: 13px;
}
.seg,
.filters {
  gap: 5px;
}
.seg button,
.filters button {
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: white;
  font-size: 0.9rem;
}
.provider-card {
  margin: 12px 0;
}
.provider-card p {
  margin: 8px 0;
}
.provider-card a {
  font-size: 0.9rem;
}
.feedback:empty {
  display: none;
}
dialog {
  position: fixed;
  inset: 0;
  width: min(650px, calc(100% - 24px));
  max-height: 85dvh;
  border: 1px solid #bccbc0;
  border-radius: 17px;
  color: var(--ink);
  padding: 0;
  box-shadow: 0 20px 80px #16352a32;
  background: #fbfcf9;
}
dialog::backdrop {
  background: #102e2a76;
}
#dialog-content {
  padding: 23px;
}
.modalhead {
  margin-bottom: 15px;
}
.modalhead h2 {
  font-size: 1.38rem;
}
.vocab-controls {
  display: grid;
  gap: 10px;
}
.word-list {
  display: grid;
  gap: 9px;
  margin-top: 14px;
}
.word-card {
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 12px 14px;
  background: #fff;
}
.word-card code {
  display: block;
  background: #edf3ee;
  padding: 6px 8px;
  margin-top: 5px;
  border-radius: 5px;
  font: normal 0.84rem/1.5 var(--mono);
  white-space: pre-wrap;
}
.word-card .tag {
  font: 0.74rem var(--mono);
  color: var(--green);
}
.timer-face {
  font: 600 clamp(2.3rem, 7vw, 4rem) / 1.4 var(--mono);
  color: var(--deep);
  text-align: center;
  margin: 14px 0;
}
.timer-presets {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
}
.settings-group {
  border-top: 1px solid var(--line);
  margin-top: 15px;
  padding-top: 13px;
}
.settings-group h3 {
  margin-bottom: 7px;
}
#toast {
  position: fixed;
  z-index: 12;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  padding: 9px 17px;
  border-radius: 9px;
  background: #203f33;
  color: white;
  box-shadow: 0 4px 16px #20362c24;
  pointer-events: none;
}
#toast:empty {
  display: none;
}
@media (min-width: 1600px) {
  .shell {
    grid-template-columns: 290px minmax(0, 1fr);
  }
}
@media (max-width: 1140px) {
  .shell {
    grid-template-columns: 226px minmax(0, 1fr);
  }
  main {
    padding-left: 20px;
    padding-right: 20px;
  }
  .toolbar {
    padding: 0 20px;
  }
  .overview-grid {
    grid-template-columns: minmax(0, 1.25fr) minmax(210px, 0.8fr);
  }
  .editor-grid {
    grid-template-columns: minmax(0, 1.3fr) minmax(195px, 0.85fr);
  }
  .heroart {
    width: 35%;
  }
  .herocopy {
    width: 69%;
  }
}
@media (max-width: 900px) {
  .shell {
    grid-template-columns: 1fr;
  }
  #sidebar {
    position: fixed;
    left: 0;
    width: 272px;
    transform: translateX(-100%);
    transition: transform 0.18s;
    visibility: hidden;
  }
  body.nav-open #sidebar {
    transform: translateX(0);
    visibility: visible;
  }
  #shade {
    position: fixed;
    inset: 0;
    background: #10251b65;
    z-index: 4;
  }
  .mobile {
    display: inline-grid;
  }
  .toolbar .breadcrumb {
    margin-right: auto;
  }
  .toolbar {
    height: 57px;
  }
  .week-group summary {
    padding-top: 9px;
  }
}
@media (max-width: 640px) {
  body {
    word-break: normal;
  }
  .toolbar {
    padding: 0 12px;
    gap: 8px;
  }
  .toolbar nav {
    gap: 5px;
  }
  .toolbar .tool {
    padding: 7px;
  }
  .tool .utility-label {
    display: none;
  }
  .breadcrumb .bparent,
  .breadcrumb .slash {
    display: none;
  }
  main {
    padding: 12px 12px 38px;
  }
  #hero {
    min-height: 205px;
    padding: 20px 16px;
    align-items: flex-start;
  }
  .herocopy {
    width: 85%;
  }
  .heroart {
    width: 33%;
    opacity: 0.35;
    right: -6%;
    top: 17%;
  }
  #hero p {
    max-width: 96%;
  }
  .toptag {
    font-size: 0.68rem;
  }
  h1 {
    margin: 14px 0 9px;
    font-size: 1.9rem;
  }
  .badges {
    gap: 4px;
  }
  .chip {
    font-size: 0.7rem;
  }
  .tab {
    flex-direction: column;
    gap: 3px;
    font-size: 0.78rem;
    line-height: 1.3;
  }
  .tab .ico {
    width: 17px;
    height: 17px;
  }
  #tabs {
    margin: 7px 0 14px;
  }
  .overview-grid,
  .editor-grid,
  .two-col,
  .quiz-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .editor-aside {
    position: static;
  }
  .overview-grid,
  .two-col,
  .stack,
  .editor-grid {
    gap: 12px;
  }
  .codebody {
    max-height: 330px;
  }
  .card {
    padding: 15px;
  }
  .footnav {
    flex-wrap: wrap;
  }
  .split {
    flex-wrap: wrap;
  }
  .tool {
    font-size: 0.82rem;
  }
  #dialog-content {
    padding: 16px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
@page {
  size: A4;
  margin: 13mm;
}
@media print {
  body {
    color: #111;
    background: white;
    font-size: 10pt;
  }
  .shell {
    display: block;
  }
  #sidebar,
  .toolbar,
  #tabs,
  .heroart,
  .button-row,
  .footnav,
  .skip,
  #toast,
  .mobile,
  #shade,
  dialog::backdrop {
    display: none !important;
  }
  main {
    padding: 0;
  }
  #hero {
    color: #111;
    background: white;
    border: 1px solid #999;
    min-height: 0;
    margin-bottom: 8px;
    padding: 12px;
  }
  #hero p,
  .toptag,
  .chip {
    color: #222;
  }
  .herocopy {
    width: 100%;
  }
  .overview-grid,
  .two-col,
  .editor-grid {
    display: block;
  }
  .card {
    margin-bottom: 8px;
    box-shadow: none;
  }
  .print-vocab .shell {
    display: none !important;
  }
  .print-vocab dialog {
    display: block !important;
    position: static;
    width: 100%;
    max-height: none;
    height: auto;
    overflow: visible;
    border: none;
    box-shadow: none;
    margin: 0;
  }
  .print-vocab .vocab-controls,
  .print-vocab .modalhead button,
  .word-card button {
    display: none !important;
  }
  .word-card {
    break-inside: avoid;
  }
  .print-vocab .word-list {
    display: block;
  }
  .print-vocab .word-card {
    margin-bottom: 6px;
  }
}
:root {
  --purple: #6550a5;
}
.brand-home {
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  padding: 0;
}
.brand-home small,
.hub-brand small {
  display: block;
  letter-spacing: 0.14em;
  font: 650 0.68rem/1.8 var(--mono);
  color: #557060;
}
.brand-home .brand-mark,
.hub-brand .brand-mark {
  font: 700 35px/1 var(--sans);
  padding-bottom: 5px;
  letter-spacing: -0.1em;
}
.toolbar {
  position: sticky;
  top: 0;
  z-index: 3;
}
.track-switch {
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 3px;
  background: #edf1ec;
}
.track-switch button {
  color: #59645f;
  border-radius: 5px;
  padding: 4px 9px;
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.84rem;
  font-weight: 650;
  white-space: nowrap;
}
.track-switch .chosen {
  background: white;
  box-shadow: 0 1px 4px #2f49331d;
  color: var(--green);
}
.cmd-grid {
  margin-top: 13px;
}
.editor-aside {
  top: 80px;
}
.hub-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  text-align: left;
  padding: 0;
}
.hub-brand .brand-mark {
  width: 35px;
  height: 35px;
  border-radius: 10px;
  font-size: 29px;
}
.hub-brand strong {
  font: 750 1.16rem/1.1 var(--sans);
  letter-spacing: -0.045em;
}
.hub-brand small {
  font-size: 0.62rem;
  line-height: 1.3;
}
body.lobby-view #sidebar,
body.lobby-view #open-nav,
body.lobby-view #track-switch {
  display: none;
}
body.lobby-view .shell {
  display: block;
}
body.lobby-view .toolbar {
  padding-left: max(5vw, calc((100vw - 1224px) / 2));
  padding-right: max(5vw, calc((100vw - 1224px) / 2));
}
body.lobby-view .toolbar .breadcrumb {
  display: flex;
}
body.lobby-view main {
  max-width: 1340px;
  padding: 45px clamp(20px, 4.5vw, 60px) 58px;
}
body.lobby-view {
  background: radial-gradient(ellipse at 95% 0%, #e6efdf55 0, transparent 47%), #f8f9f5;
}
.hub-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(190px, 240px);
  align-items: center;
  gap: 25px;
  margin: 0 0 28px;
}
.hub-intro h1 {
  font-size: clamp(2.2rem, 4.2vw, 3.8rem);
  margin: 4px 0 9px;
  letter-spacing: -0.085em;
}
.hub-intro .eyebrow {
  color: #47835b;
}
.hub-intro p {
  color: var(--sub);
}
.hub-meter {
  padding: 12px 0 12px 24px;
  border-left: 1px solid #cad6ca;
}
.hub-meter strong {
  font: 650 1.65rem/1.3 var(--mono);
  letter-spacing: -0.08em;
}
.hub-meter strong small {
  font-size: 0.9rem;
  color: var(--sub);
  letter-spacing: 0;
}
.track-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.track-card {
  overflow: hidden;
  background: #fff;
  border: 1px solid #d2d9d4;
  border-radius: 17px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 3px 13px #15211506;
}
.track-card-content {
  padding: 20px clamp(17px, 2.2vw, 30px) 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.track-card-content h2 {
  font-size: clamp(1.45rem, 2.5vw, 2.05rem);
  letter-spacing: -0.065em;
}
.track-card-content p {
  margin: 6px 0 11px;
  color: var(--sub);
  font-size: 1rem;
}
.track-art {
  height: 180px;
  background: #153733;
  position: relative;
  color: #d8f4da;
  overflow: hidden;
}
.track-card.llm .track-art {
  background: #2c2547;
  color: #e7ddff;
}
.art-label {
  position: absolute;
  top: 18px;
  left: 22px;
  z-index: 1;
  font: 600 0.76rem var(--mono);
  letter-spacing: 0.08em;
}
.track-art .heroart {
  height: 145%;
  top: -26%;
  width: 85%;
  right: -2%;
  z-index: 0;
}
.track-art .architecture {
  position: absolute;
  bottom: 13px;
  left: 22px;
  color: inherit;
  font: 0.73rem var(--mono);
  opacity: 0.8;
}
.stackchips {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 15px;
}
.stackchips span {
  font: 0.77rem var(--mono);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 2px 6px;
  color: #536154;
}
.card-progress {
  margin-top: auto;
}
.card-progress .split {
  font-size: 0.81rem;
  color: var(--sub);
}
.card-progress .progress-track {
  height: 5px;
}
.track-card .action {
  justify-content: center;
  min-height: 42px;
  align-self: flex-start;
  padding-inline: 17px;
  margin-top: 13px;
}
.track-card.llm .action.primary {
  background: #604a95;
  border-color: #604a95;
}
.hub-routine {
  display: flex;
  gap: 20px;
  align-items: center;
  border-top: 1px solid var(--line);
  margin-top: 27px;
  padding: 20px 0 0;
}
.hub-routine .icon-title {
  flex: none;
}
.hub-routine .routines {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  flex: 1;
}
.hub-routine button {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #486054;
  font-size: 0.83rem;
  text-align: left;
}
.hub-routine button b {
  font: 650 0.82rem var(--mono);
  white-space: nowrap;
}
.hub-routine button:hover {
  text-decoration: underline;
}
body.theme-llm:not(.lobby-view) {
  --green: #62429a;
  --deep: #302640;
  --paper: #f8f8fb;
  --muted: #eeebf7;
}
.theme-llm #hero {
  background: #302642;
}
.theme-llm #hero p {
  color: #e0d8ee;
}
.theme-llm .daytag {
  background: #dfc8ff;
}
.theme-llm #hero .toptag,
.theme-llm #hero .chip {
  color: #eadcfb;
}
.theme-llm #hero .chip {
  border-color: #736383;
}
.theme-llm #hero .toptag .daytag {
  color: #302642;
}
.theme-llm .day-link.active,
.theme-llm .action.selected,
.theme-llm .filters .selected {
  background: #e9e2f3;
  border-color: #c2afd7;
}
.theme-llm .day-link.active strong,
.theme-llm .tab[aria-selected="true"] {
  color: #5d4286;
}
.theme-llm .active .day-num,
.theme-llm:not(.lobby-view) .action.primary {
  background: #5d4586;
  color: #f5edff;
  border-color: #5d4586;
}
.theme-llm .icon-tile,
.theme-llm .goal-index {
  background: #f0eaf8;
  color: #664989;
}
.theme-llm #sidebar {
  background: #f2f1f6;
}
.theme-llm .switchline input:checked {
  background: #7558a3;
}
.plot {
  margin: 0;
  padding: 14px;
  border: 1px solid #d9cfe8;
  border-radius: 9px;
  background: #fbf9ff;
}
.plot figcaption {
  margin-bottom: 9px;
}
.plot figcaption small {
  display: block;
  color: var(--sub);
  font-size: 0.82rem;
}
.heat {
  display: grid;
  grid-template-columns: repeat(var(--cols), minmax(0, 1fr));
  gap: 3px;
}
.heat span {
  border-radius: 3px;
  display: grid;
  place-items: center;
  padding: 5px;
  font: 500 0.79rem var(--mono);
}
.bars {
  display: grid;
  gap: 8px;
}
.bars > div {
  display: grid;
  grid-template-columns: minmax(40px, 1fr) 2fr 52px;
  gap: 6px;
  align-items: center;
  font-size: 0.8rem;
}
.bars i {
  height: 10px;
  border-radius: 5px;
  overflow: hidden;
  background: #e9e1f4;
}
.bars b {
  height: 100%;
  display: block;
  background: #8267b0;
}
.bars span {
  font-family: var(--mono);
  text-align: right;
}
.controlbox input[type="range"] {
  accent-color: var(--purple);
  flex-basis: 100%;
}
@media (max-width: 1180px) {
  .breadcrumb .bparent,
  .breadcrumb .slash {
    display: none;
  }
  .toolbar {
    gap: 6px;
  }
  .toolbar nav {
    gap: 4px;
  }
}
@media (max-width: 760px) {
  body.lobby-view main {
    padding-top: 23px;
  }
  .hub-intro {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 18px;
  }
  .hub-meter {
    padding: 0;
    border: 0;
    max-width: 270px;
  }
  .hub-meter strong {
    font-size: 1.2rem;
  }
  .hub-routine {
    display: block;
  }
  .hub-routine .routines {
    margin-top: 10px;
    grid-template-columns: repeat(2, 1fr);
  }
  .track-art {
    height: 140px;
  }
  .track-cards {
    gap: 12px;
  }
  .track-switch button {
    font-size: 0.78rem;
    padding: 5px;
  }
  .toolbar .breadcrumb strong:not(.hub-brand strong) {
    display: none;
  }
  .art-label,
  .track-art .architecture {
    left: 13px;
  }
  .art-label {
    font-size: 0.69rem;
  }
}
@media (max-width: 570px) {
  .track-cards {
    grid-template-columns: minmax(0, 1fr);
  }
  .track-card-content {
    padding: 15px;
  }
  .track-art {
    height: 135px;
  }
  .track-art .heroart {
    width: 72%;
    opacity: 1;
  }
  .hub-routine {
    margin-top: 17px;
  }
  .toolbar .track-switch {
    margin-right: auto;
  }
  .toolbar .breadcrumb:not(:has(.hub-brand)) {
    display: none;
  }
  .hub-intro p {
    font-size: 0.94rem;
  }
  .editor-aside {
    position: static;
  }
}
.day-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 22px;
  align-items: center;
}
.day-row .day-link {
  min-width: 0;
}
.side-done {
  width: 15px;
  height: 15px;
  justify-self: center;
  accent-color: var(--green);
  cursor: pointer;
}
.side-done:not(:checked) {
  opacity: 0.65;
}
@media (min-width: 901px) and (max-width: 1110px) {
  .workspace .breadcrumb {
    display: none;
  }
  .day-link {
    padding-left: 6px;
    gap: 5px;
  }
}
.heat {
  grid-template-columns: auto repeat(var(--cols), minmax(0, 1fr));
  align-items: center;
}
.heat small {
  text-align: center;
  font: 0.76rem var(--mono);
  color: #62566f;
}
.bars i {
  position: relative;
}
.bars b {
  position: absolute;
  top: 0;
}
.bars.signed i:before {
  content: "";
  position: absolute;
  z-index: 1;
  left: 50%;
  height: 100%;
  border-left: 1px solid #746986;
}
