/* Day N Drill pages — landing 토큰 재사용 */
@import url("../styles.css");

:root {
  --task-section-bg: color-mix(in srgb, var(--teal) 22%, var(--canvas));
}

.day-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-size: 14px;
}

.day-nav a {
  font-weight: 600;
  text-decoration: none;
}

.day-nav a:hover { text-decoration: underline; }

.day-nav--buttons {
  margin: 0;
  padding: 0;
  border-top: none;
  width: 100%;
  justify-content: space-between !important;
  align-items: center;
}

.day-nav--buttons .btn {
  text-decoration: none;
  flex: 0 1 auto;
}

.day-nav--buttons .btn:last-child {
  margin-left: auto;
}

.quiz-blank {
  display: inline-block;
  min-width: 5rem;
  border-bottom: 2px solid var(--ink);
  font-weight: 700;
}

.quiz-panel details {
  margin-top: 1rem;
  font-size: 14px;
}

.quiz-panel summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--muted);
}

.quiz-panel summary:hover { color: var(--ink); }

.wall-grid {
  display: grid;
  gap: 0.85rem;
  margin-top: 1rem;
}

@media (min-width: 640px) {
  .wall-grid { grid-template-columns: repeat(3, 1fr); }
}

.wall-card {
  margin: 0;
  padding: 1rem 1.1rem;
  font-size: 14px;
  line-height: 1.55;
}

.wall-card strong {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 13px;
}

.section__inner--wide {
  max-width: var(--wide);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

a.flow-tab {
  text-decoration: none;
  color: inherit;
}

a.flow-tab:hover { text-decoration: underline; }

.drill-lines {
  margin: 1rem 0 0;
  padding: 1rem 1.1rem;
  background: var(--code-bg);
  color: var(--code-fg);
  border-radius: var(--r-sm);
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.65;
}

.drill-type-wrap {
  position: relative;
  margin-top: 0.75rem;
}

.drill-type-hint {
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 0.85rem 1rem;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.65;
  color: var(--ink);
  opacity: 0.3;
  white-space: pre-wrap;
  word-wrap: break-word;
  overflow: hidden;
  pointer-events: none;
  border: 2px solid transparent;
  border-radius: 2px;
  z-index: 0;
}

.drill-type {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  margin: 0;
  padding: 0.85rem 1rem;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.65;
  border: 2px solid var(--brutal);
  border-radius: 2px;
  resize: vertical;
  min-height: 5.5rem;
  background: color-mix(in srgb, var(--surface) 70%, transparent);
  color: var(--ink);
}

.drill-type::placeholder {
  color: transparent;
}

.drill-type:focus {
  outline: 2px solid var(--drill-brand);
  outline-offset: 2px;
  background: color-mix(in srgb, var(--surface) 82%, transparent);
}

.drill-type-actions {
  margin-top: 0.75rem;
}

.drill-type-feedback {
  margin-top: 0.75rem;
}

.quiz-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
}

.quiz-list li,
.quiz-list__item {
  margin-bottom: 0.65rem;
  padding: 0.75rem 1rem;
  background: var(--surface-dim);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  font-size: 14px;
  line-height: 1.55;
}

.quiz-list--tf .quiz-list__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.quiz-list__text {
  flex: 1;
  min-width: 0;
}

.quiz-tf.segmented {
  display: inline-flex;
  flex-shrink: 0;
  border: 2px solid var(--brutal);
  border-radius: 2px;
  overflow: hidden;
}

.quiz-tf__btn {
  padding: 6px 14px;
  border: none;
  border-right: 2px solid var(--brutal);
  background: var(--surface);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  min-width: 2.5rem;
}

.quiz-tf__btn:last-child {
  border-right: none;
}

.quiz-tf__btn[aria-pressed="true"] {
  background: var(--yellow);
}

.quiz-tf__btn:hover {
  background: color-mix(in srgb, var(--yellow-soft) 60%, var(--surface));
}

.quiz-tf__btn[aria-pressed="true"]:hover {
  background: var(--yellow);
}

.quiz-tf__btn:focus-visible {
  outline: 2px solid var(--drill-brand);
  outline-offset: 1px;
  z-index: 1;
}

.quiz-tf-actions {
  margin-top: 1rem;
}

.quiz-tf-feedback {
  margin-top: 0.75rem;
}

.l0-card {
  margin-top: 1rem;
  padding: 1rem 1.15rem;
  background: color-mix(in srgb, var(--drill-brand) 12%, var(--surface));
  border: 2px solid var(--brutal);
  border-radius: 2px;
}

.l0-card h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
}

.l0-card p:last-child { margin-bottom: 0; }

.quiz-fill {
  margin-top: 1.25rem;
  font-size: 1.05rem;
  line-height: 2;
}

.quiz-input {
  display: inline-block;
  width: 7.5rem;
  max-width: 40vw;
  margin: 0 0.15rem;
  padding: 0.2rem 0.45rem;
  font: inherit;
  font-weight: 600;
  border: none;
  border-bottom: 2px solid var(--ink);
  border-radius: 0;
  background: color-mix(in srgb, var(--yellow-soft) 55%, transparent);
}

.quiz-input:focus {
  outline: 2px solid var(--drill-brand);
  outline-offset: 2px;
}

.quiz-input--wide { width: 9.5rem; }

.quiz-fill__row {
  margin: 0.65rem 0 0;
}

.quiz-feedback {
  margin: 1rem 0 0;
  padding: 0.75rem 1rem;
  font-size: 14px;
  border-radius: var(--r-sm);
}

.quiz-feedback--ok {
  background: color-mix(in srgb, var(--drill-brand) 18%, var(--surface));
  border: 1px solid var(--drill-brand);
}

.quiz-feedback--miss {
  background: color-mix(in srgb, var(--warn) 35%, var(--surface));
  border: 1px solid var(--line);
  color: var(--text-strong);
}

.quiz-feedback--warn {
  background: color-mix(in srgb, var(--err) 28%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--err) 55%, var(--line));
  color: var(--text-strong);
}

/* 5분 드릴 — 오늘 할 일 ↔ 섹션 번호 통일 */
.step-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.35rem;
  height: 1.35rem;
  padding: 0 0.15rem;
  border-radius: 2px;
  background: var(--yellow);
  border: 1px solid var(--brutal);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  flex-shrink: 0;
}

.eyebrow--step {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.compare-table--terms td:first-child {
  width: 34%;
  font-weight: 600;
  vertical-align: middle;
}

.compare-table--terms .term-row {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.term-chip--table {
  padding: 4px 10px;
  font-size: 12px;
  vertical-align: middle;
}

.compare-table--terms .term-row .term-chip {
  margin: 0;
}

/* 섹션 단계(1~5) ≠ 표 안 다섯 단어 순서 — 시각 분리 */
.term-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.15rem;
  height: 1.15rem;
  padding: 0;
  border-radius: 999px;
  background: var(--surface);
  border: 1.5px solid var(--drill-brand);
  color: var(--drill-brand);
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  flex-shrink: 0;
}

.compare-table--terms thead th:first-child::after {
  content: " · 순서";
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  color: var(--muted);
  font-size: 11px;
}

.steps__anchor {
  color: inherit;
  text-decoration: none;
}

.steps__anchor:hover { text-decoration: underline; }

.steps__anchor strong { font-weight: 700; }

/* 헤더 중앙 — Day 0~7 */
.site-header--day .site-header__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 0.5rem 0.75rem;
}

.site-header--day .logo {
  justify-self: start;
  min-width: 0;
}

.site-header--day .nav {
  justify-self: end;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0.35rem 0.65rem;
}

.site-header--day .nav__sep {
  color: var(--muted-soft);
  font-size: 12px;
  user-select: none;
}

.site-header--day .nav a[hreflang] {
  font-size: 12px;
  font-weight: 600;
}

.site-header--day .nav a[hreflang][aria-current="true"] {
  color: var(--ink);
}

.day-strip {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  gap: 0.2rem;
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
  padding: 0.1rem 0;
}

.day-strip__link {
  flex: 0 0 auto;
  padding: 0.25rem 0.5rem;
  border-radius: var(--r-full);
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
  border: 1px solid transparent;
}

.day-strip__link:hover {
  color: var(--ink);
  background: var(--surface-dim);
  text-decoration: none;
}

.day-strip__link--current {
  background: var(--yellow);
  border-color: var(--brutal);
  color: var(--ink);
  font-weight: 700;
}

.day-strip__link--finale {
  margin-left: 0.15rem;
  padding-left: 0.6rem;
  border-left: 1px solid var(--line);
}

.day-strip__link--soon {
  opacity: 0.4;
  cursor: default;
  pointer-events: none;
}

.btn--disabled,
.btn--disabled:hover {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
  box-shadow: none;
}

@media (max-width: 640px) {
  .site-header--day .site-header__inner {
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
  }

  .site-header--day .nav {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    flex-wrap: wrap;
    justify-content: flex-end;
    max-width: 11rem;
  }

  .site-header--day .day-strip {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }
}

/* Phase 표 · 막히는 단어 — 카탈로그 filter chip + 오버레이 */
.compare-table--phase td:last-child {
  font-weight: 500;
  vertical-align: middle;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chip-row--terms {
  margin: 0.1rem 0;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 600;
  border: 2px solid var(--brutal);
  border-radius: var(--r-full);
  background: var(--yellow-soft);
}

.chip--filter {
  background: var(--surface);
}

.chip--selected {
  background: var(--yellow);
}

.term-chip {
  margin: 0;
  font-family: inherit;
  color: var(--ink);
  cursor: pointer;
  white-space: nowrap;
}

.term-chip:hover {
  background: color-mix(in srgb, var(--yellow-soft) 55%, var(--surface));
}

.term-chip.chip--selected {
  background: var(--yellow);
}

.term-chip.chip--done {
  background: color-mix(in srgb, var(--drill-brand) 20%, var(--surface));
  border-color: var(--drill-brand);
  color: var(--ink);
}

.term-chip.chip--done:hover {
  background: color-mix(in srgb, var(--drill-brand) 28%, var(--surface));
}

.term-chip.chip--done.chip--selected {
  background: var(--yellow);
  border-color: var(--brutal);
}

.term-chip:focus-visible {
  outline: 2px solid var(--drill-brand);
  outline-offset: 2px;
}

body.term-overlay-open {
  overflow: hidden;
}

.term-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.term-overlay[hidden] {
  display: none !important;
}

.term-overlay__scrim {
  position: absolute;
  inset: 0;
  background: rgba(15, 15, 15, 0.42);
}

.term-overlay__panel {
  position: relative;
  width: min(22rem, 100%);
  margin: 0;
  padding: 1.35rem 1.35rem 1.15rem;
  background: var(--surface);
  border: 2px solid var(--brutal);
  border-radius: 2px;
  box-shadow: 6px 6px 0 var(--brutal);
}

.term-overlay__close {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: none;
  border-radius: 2px;
  background: none;
  font-size: 1.35rem;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
}

.term-overlay__close:hover,
.term-overlay__close:focus-visible {
  color: var(--ink);
  background: var(--surface-dim);
  outline: 2px solid var(--drill-brand);
  outline-offset: 1px;
}

.term-overlay__label {
  margin: 0 0 0.2rem;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.term-overlay__title {
  margin: 0 0 0.85rem;
  padding-right: 1.75rem;
  font-size: 1.25rem;
  line-height: 1.3;
  min-height: 1.3em;
}

.term-overlay__core {
  margin: 0 0 0.65rem;
  font-size: 15px;
  line-height: 1.55;
  font-weight: 600;
  min-height: 1.55em;
}

.term-overlay__ko {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
  min-height: 1.6em;
}

.term-overlay__phase {
  margin: 1rem 0 0;
  padding-top: 0.75rem;
  border-top: 1px solid var(--line);
  font-size: 12px;
  font-weight: 600;
  color: var(--drill-brand);
  min-height: 1.2em;
}

.term-overlay__core.term-type,
.term-overlay__ko.term-type {
  font-family: var(--mono);
}

.term-type--active::after {
  content: "";
  display: inline-block;
  width: 2px;
  height: 0.95em;
  margin-left: 1px;
  vertical-align: -0.08em;
  background: var(--drill-brand);
  animation: term-type-cursor 0.85s step-end infinite;
}

.term-overlay__title.term-type--active::after {
  height: 1.05em;
  vertical-align: -0.12em;
}

.term-overlay__panel--typing {
  box-shadow: 6px 6px 0 var(--brutal), inset 0 0 0 1px color-mix(in srgb, var(--drill-brand) 12%, transparent);
}

@keyframes term-type-cursor {
  50% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .term-type--active::after {
    animation: none;
    opacity: 0;
  }
}

/* 오늘 할 일 섹션 */
#pitch.section--split,
.section--task.section--split {
  background: var(--task-section-bg);
  border-top: 2px solid var(--brutal);
  border-bottom: 2px solid var(--brutal);
}

/* 30초 피치 · 오늘 할 일 — 액션 버튼 */
.pitch-panel__actions,
.task-panel__actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0.65rem;
  margin-top: 1.25rem;
}

body.task-detail-overlay-open {
  overflow: hidden;
}

.task-detail-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.task-detail-overlay[hidden] {
  display: none !important;
}

.task-detail-overlay__scrim {
  position: absolute;
  inset: 0;
  background: rgba(15, 15, 15, 0.48);
}

.task-detail-overlay__panel {
  position: relative;
  width: min(26rem, 100%);
  max-height: min(80vh, 32rem);
  margin: 0;
  padding: 1.35rem 1.35rem 1.15rem;
  overflow: auto;
  background: var(--surface);
  border: 2px solid var(--brutal);
  border-radius: 2px;
  box-shadow: 8px 8px 0 var(--brutal);
}

.task-detail-overlay__close {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: none;
  border-radius: 2px;
  background: none;
  font-size: 1.35rem;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
}

.task-detail-overlay__close:hover,
.task-detail-overlay__close:focus-visible {
  color: var(--ink);
  background: var(--surface-dim);
  outline: 2px solid var(--drill-brand);
  outline-offset: 1px;
}

.task-detail-overlay__label {
  margin: 0 0 0.2rem;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.task-detail-overlay__title {
  margin: 0 0 0.85rem;
  padding-right: 1.75rem;
  font-size: 1.2rem;
  line-height: 1.35;
  min-height: 1.35em;
}

.task-detail-overlay__body {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text);
}

.task-detail-overlay__para {
  margin: 0 0 0.75rem;
  min-height: 1.65em;
}

.task-detail-overlay__para:last-child {
  margin-bottom: 0;
}

.task-detail-overlay__title.term-type--active::after,
.task-detail-overlay__para.term-type--active::after {
  content: "";
  display: inline-block;
  width: 2px;
  height: 0.95em;
  margin-left: 1px;
  vertical-align: -0.08em;
  background: var(--drill-brand);
  animation: term-type-cursor 0.85s step-end infinite;
}

.task-detail-overlay__panel--typing {
  box-shadow: 8px 8px 0 var(--brutal), inset 0 0 0 1px color-mix(in srgb, var(--drill-brand) 12%, transparent);
}

.task-detail-overlay__done {
  width: 100%;
  margin-top: 1.15rem;
}

/* Phase 오버레이 — task-detail과 동일 패턴 */
body.phase-overlay-open {
  overflow: hidden;
}

.phase-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.phase-overlay[hidden] {
  display: none !important;
}

.phase-overlay__scrim {
  position: absolute;
  inset: 0;
  background: rgba(15, 15, 15, 0.48);
}

.phase-overlay__panel {
  position: relative;
  width: min(28rem, 100%);
  max-height: min(85vh, 36rem);
  margin: 0;
  padding: 1.35rem 1.35rem 1.15rem;
  overflow: auto;
  background: var(--surface);
  border: 2px solid var(--brutal);
  border-radius: 2px;
  box-shadow: 8px 8px 0 var(--brutal);
}

.phase-overlay__close {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: none;
  border-radius: 2px;
  background: none;
  font-size: 1.35rem;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
}

.phase-overlay__close:hover,
.phase-overlay__close:focus-visible {
  color: var(--ink);
  background: var(--surface-dim);
  outline: 2px solid var(--drill-brand);
  outline-offset: 1px;
}

.phase-overlay__label {
  margin: 0 0 0.2rem;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.phase-overlay__title {
  margin: 0 0 0.85rem;
  padding-right: 1.75rem;
  font-size: 1.15rem;
  line-height: 1.35;
  min-height: 1.35em;
}

.phase-overlay__body {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text);
}

.phase-overlay__para {
  margin: 0 0 0.75rem;
  min-height: 1.65em;
}

.phase-overlay__para:last-child {
  margin-bottom: 0;
}

.phase-overlay__title.term-type--active::after,
.phase-overlay__para.term-type--active::after {
  content: "";
  display: inline-block;
  width: 2px;
  height: 0.95em;
  margin-left: 1px;
  vertical-align: -0.08em;
  background: var(--drill-brand);
  animation: term-type-cursor 0.85s step-end infinite;
}

.phase-overlay__panel--typing {
  box-shadow: 8px 8px 0 var(--brutal), inset 0 0 0 1px color-mix(in srgb, var(--drill-brand) 12%, transparent);
}

.phase-overlay__done {
  width: 100%;
  margin-top: 1.15rem;
}

.compare-table--phase td:first-child {
  width: 4.5rem;
  vertical-align: middle;
}

.phase-chip {
  margin: 0;
  font-family: inherit;
  color: var(--ink);
  cursor: pointer;
  white-space: nowrap;
}

.phase-chip:hover {
  background: color-mix(in srgb, var(--yellow-soft) 55%, var(--surface));
}

.phase-chip.chip--selected {
  background: var(--yellow);
}

.phase-chip.chip--done {
  background: color-mix(in srgb, var(--drill-brand) 20%, var(--surface));
  border-color: var(--drill-brand);
  color: var(--ink);
}

.phase-chip.chip--done:hover {
  background: color-mix(in srgb, var(--drill-brand) 28%, var(--surface));
}

.phase-chip.chip--done.chip--selected {
  background: var(--yellow);
  border-color: var(--brutal);
}

.phase-chip:focus-visible {
  outline: 2px solid var(--drill-brand);
  outline-offset: 2px;
}

.compare-table td .phase-chip {
  margin: 0;
}

.quiz-list .phase-chip {
  margin-left: 0.15rem;
  vertical-align: middle;
}

/* Day 회고 오버레이 */
body.day-recap-overlay-open {
  overflow: hidden;
}

.day-recap-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.day-recap-overlay[hidden] {
  display: none !important;
}

.day-recap-overlay__scrim {
  position: absolute;
  inset: 0;
  background: rgba(15, 15, 15, 0.48);
}

.day-recap-overlay__panel {
  position: relative;
  width: min(28rem, 100%);
  max-height: min(85vh, 36rem);
  margin: 0;
  padding: 1.35rem 1.35rem 1.15rem;
  overflow: auto;
  background: var(--surface);
  border: 2px solid var(--brutal);
  border-radius: 2px;
  box-shadow: 8px 8px 0 var(--brutal);
}

.day-recap-overlay__close {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: none;
  border-radius: 2px;
  background: none;
  font-size: 1.35rem;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
}

.day-recap-overlay__close:hover,
.day-recap-overlay__close:focus-visible {
  color: var(--ink);
  background: var(--surface-dim);
  outline: 2px solid var(--drill-brand);
  outline-offset: 1px;
}

.day-recap-overlay__label {
  margin: 0 0 0.2rem;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.day-recap-overlay__title {
  margin: 0 0 1rem;
  padding-right: 1.75rem;
  font-size: 1.15rem;
  line-height: 1.35;
  min-height: 1.35em;
}

.day-recap-overlay__section-label {
  margin: 0 0 0.35rem;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--drill-brand);
}

.day-recap-overlay__goal,
.day-recap-overlay__result {
  margin: 0 0 1rem;
  font-size: 14px;
  line-height: 1.65;
  color: var(--text);
  min-height: 1.65em;
}

.day-recap-overlay__result {
  margin-bottom: 0;
}

.day-recap-overlay__title.term-type--active::after,
.day-recap-overlay__goal.term-type--active::after,
.day-recap-overlay__result.term-type--active::after {
  content: "";
  display: inline-block;
  width: 2px;
  height: 0.95em;
  margin-left: 1px;
  vertical-align: -0.08em;
  background: var(--drill-brand);
  animation: term-type-cursor 0.85s step-end infinite;
}

.day-recap-overlay__panel--typing {
  box-shadow: 8px 8px 0 var(--brutal), inset 0 0 0 1px color-mix(in srgb, var(--drill-brand) 12%, transparent);
}

.day-recap-overlay__done {
  width: 100%;
  margin-top: 1.15rem;
}

.day-recap-chip {
  margin: 0;
  font-family: inherit;
  color: var(--ink);
  cursor: pointer;
  white-space: nowrap;
}

.day-recap-chip:hover {
  background: color-mix(in srgb, var(--yellow-soft) 55%, var(--surface));
}

.day-recap-chip.chip--selected {
  background: var(--yellow);
}

.day-recap-chip.chip--done {
  background: color-mix(in srgb, var(--drill-brand) 20%, var(--surface));
  border-color: var(--drill-brand);
  color: var(--ink);
}

.day-recap-chip.chip--done:hover {
  background: color-mix(in srgb, var(--drill-brand) 28%, var(--surface));
}

.day-recap-chip.chip--done.chip--selected {
  background: var(--yellow);
  border-color: var(--brutal);
}

.day-recap-chip:focus-visible {
  outline: 2px solid var(--drill-brand);
  outline-offset: 2px;
}

.compare-table td:first-child .day-recap-chip {
  min-width: 4.5rem;
  justify-content: center;
}

body.pitch-overlay-open {
  overflow: hidden;
}

.pitch-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.pitch-overlay[hidden] {
  display: none !important;
}

.pitch-overlay__scrim {
  position: absolute;
  inset: 0;
  background: rgba(15, 15, 15, 0.48);
}

.pitch-overlay__panel {
  position: relative;
  width: min(18rem, 100%);
  margin: 0;
  padding: 1.5rem 1.35rem 1.25rem;
  text-align: center;
  background: var(--surface);
  border: 2px solid var(--brutal);
  border-radius: 2px;
  box-shadow: 8px 8px 0 var(--brutal);
}

.pitch-overlay__close {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: none;
  border-radius: 2px;
  background: none;
  font-size: 1.35rem;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
}

.pitch-overlay__close:hover,
.pitch-overlay__close:focus-visible {
  color: var(--ink);
  background: var(--surface-dim);
  outline: 2px solid var(--drill-brand);
  outline-offset: 1px;
}

.pitch-overlay__label {
  margin: 0 0 0.5rem;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.pitch-overlay__count {
  margin: 0;
  font-family: var(--mono);
  font-size: clamp(4rem, 18vw, 5.5rem);
  font-weight: 700;
  line-height: 1;
  color: var(--ink);
}

.pitch-overlay__count--tick {
  animation: pitch-count-tick 0.35s ease;
}

.pitch-overlay__count--done {
  color: var(--drill-brand);
}

.pitch-overlay__hint {
  margin: 0.85rem 0 1.15rem;
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
}

.pitch-overlay__stop {
  width: 100%;
}

@keyframes pitch-count-tick {
  0% { transform: scale(1.08); opacity: 0.65; }
  100% { transform: scale(1); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .pitch-overlay__count--tick {
    animation: none;
  }
}

/* L0 Reference 오버레이 */
body.l0-overlay-open {
  overflow: hidden;
}

.l0-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.l0-overlay[hidden] {
  display: none !important;
}

.l0-overlay__scrim {
  position: absolute;
  inset: 0;
  background: rgba(15, 15, 15, 0.48);
}

.l0-overlay__panel {
  position: relative;
  width: min(40rem, 100%);
  max-height: min(88vh, 40rem);
  margin: 0;
  padding: 1.35rem 1.35rem 1.15rem;
  overflow: auto;
  background: var(--surface);
  border: 2px solid var(--brutal);
  border-radius: 2px;
  box-shadow: 8px 8px 0 var(--brutal);
}

.l0-overlay__close {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: none;
  border-radius: 2px;
  background: none;
  font-size: 1.35rem;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
}

.l0-overlay__close:hover,
.l0-overlay__close:focus-visible {
  color: var(--ink);
  background: var(--surface-dim);
  outline: 2px solid var(--drill-brand);
  outline-offset: 1px;
}

.l0-overlay__label {
  margin: 0 0 0.2rem;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.l0-overlay__title {
  margin: 0 0 0.75rem;
  padding-right: 1.75rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--muted);
}

.l0-overlay__prose {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text);
}

.l0-overlay__prose h2.l0-overlay__doc-title {
  margin: 0 0 0.85rem;
  font-size: 1.15rem;
  line-height: 1.35;
  color: var(--ink);
}

.l0-overlay__prose h3 {
  margin: 1.1rem 0 0.45rem;
  font-size: 1rem;
  color: var(--ink);
}

.l0-overlay__prose h4 {
  margin: 0.85rem 0 0.35rem;
  font-size: 0.95rem;
}

.l0-overlay__prose p {
  margin: 0 0 0.65rem;
}

.l0-overlay__prose ul {
  margin: 0 0 0.75rem 1.1rem;
  padding: 0;
}

.l0-overlay__prose li {
  margin-bottom: 0.35rem;
}

.l0-overlay__quote {
  margin: 0 0 0.75rem;
  padding: 0.65rem 0.85rem;
  border-left: 3px solid var(--drill-brand);
  background: color-mix(in srgb, var(--drill-brand) 8%, var(--surface));
  font-size: 13px;
}

.l0-overlay__table {
  width: 100%;
  margin: 0 0 0.85rem;
  border-collapse: collapse;
  font-size: 13px;
}

.l0-overlay__table th,
.l0-overlay__table td {
  padding: 0.45rem 0.55rem;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.l0-overlay__table th {
  background: color-mix(in srgb, var(--yellow-soft) 40%, var(--surface));
  font-weight: 600;
}

.l0-overlay__code {
  margin: 0 0 0.85rem;
  padding: 0.75rem 0.85rem;
  background: var(--code-bg);
  color: var(--code-fg);
  border-radius: var(--r-sm);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.55;
  overflow-x: auto;
}

.l0-overlay__prose code {
  font-family: var(--mono);
  font-size: 0.92em;
  padding: 0.1em 0.35em;
  background: var(--surface-dim);
  border-radius: 3px;
}

.l0-overlay__loading,
.l0-overlay__error {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

.l0-overlay__done {
  width: 100%;
  margin-top: 1.15rem;
}

.l0-open-btn {
  font-family: inherit;
  cursor: pointer;
}

.l0-open-btn.btn--active-l0 {
  background: var(--yellow);
}

.l0-open-btn.btn--done-l0 {
  background: color-mix(in srgb, var(--drill-brand) 20%, var(--surface));
  border-color: var(--drill-brand);
}

.l0-open-btn.btn--done-l0.btn--active-l0 {
  background: var(--yellow);
  border-color: var(--brutal);
}

/* Build Track 7단계 오버레이 */
body.build-track-overlay-open {
  overflow: hidden;
}

.build-track-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.build-track-overlay[hidden] {
  display: none !important;
}

.build-track-overlay__scrim {
  position: absolute;
  inset: 0;
  background: rgba(15, 15, 15, 0.48);
}

.build-track-overlay__panel {
  position: relative;
  width: min(38rem, 100%);
  max-height: min(88vh, 40rem);
  margin: 0;
  padding: 1.35rem 1.35rem 1.15rem;
  overflow: auto;
  background: var(--surface);
  border: 2px solid var(--brutal);
  border-radius: 2px;
  box-shadow: 8px 8px 0 var(--brutal);
}

.build-track-overlay__close {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: none;
  border-radius: 2px;
  background: none;
  font-size: 1.35rem;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
}

.build-track-overlay__close:hover,
.build-track-overlay__close:focus-visible {
  color: var(--ink);
  background: var(--surface-dim);
  outline: 2px solid var(--drill-brand);
  outline-offset: 1px;
}

.build-track-overlay__label {
  margin: 0 0 0.2rem;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.build-track-overlay__title {
  margin: 0 0 0.65rem;
  padding-right: 1.75rem;
  font-size: 1.15rem;
  line-height: 1.35;
}

.build-track-overlay__hint {
  margin: 0 0 0.75rem;
  padding: 0.55rem 0.75rem;
  font-size: 13px;
  line-height: 1.5;
  background: color-mix(in srgb, var(--yellow-soft) 55%, var(--surface));
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
}

.build-track-overlay__lead {
  margin: 0 0 0.85rem;
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted);
}

.build-track-overlay__table {
  width: 100%;
  margin: 0 0 1rem;
  border-collapse: collapse;
  font-size: 13px;
}

.build-track-overlay__table th,
.build-track-overlay__table td {
  padding: 0.5rem 0.55rem;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.build-track-overlay__table th {
  background: color-mix(in srgb, var(--yellow-soft) 40%, var(--surface));
  font-weight: 600;
}

.build-track-overlay__table td:first-child {
  width: 2.5rem;
  text-align: center;
}

.build-track-step-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.5rem;
  height: 1.5rem;
  padding: 0 0.35rem;
  font-size: 12px;
  font-weight: 700;
  border: 2px solid var(--brutal);
  border-radius: var(--r-full);
  background: var(--surface);
}

.build-track-overlay__row--focus {
  background: color-mix(in srgb, var(--drill-brand) 14%, var(--surface));
}

.build-track-overlay__row--focus .build-track-step-badge {
  background: var(--yellow);
}

.build-track-overlay__done {
  width: 100%;
  margin-top: 0;
}

.build-track-open-btn {
  font-family: inherit;
  cursor: pointer;
}
