.hero-inner {
  min-height: 206px;
}
.hero h1 {
  font-size: clamp(2rem, 3.3vw, 2.85rem);
  line-height: 1.14;
}
.hero-copy {
  padding-block: 20px;
}
.hero .art-wrap img {
  height: 182px;
}
.main-shell {
  padding-top: 17px;
}
.course-bar,
.course-bar > div {
  display: flex;
  align-items: center;
  gap: 12px;
}
.course-bar {
  justify-content: space-between;
  margin: 0 0 15px;
}
.course-bar b {
  font-size: 0.91rem;
  color: #4f4c62;
}
.course-bar progress {
  width: 94px;
  height: 6px;
  appearance: none;
  border: 0;
  border-radius: 8px;
  overflow: hidden;
  background: #dddce6;
}
.course-bar progress::-webkit-progress-bar {
  background: #dddce6;
}
.course-bar progress::-webkit-progress-value {
  background: #7861b7;
}
.course-bar progress::-moz-progress-bar {
  background: #7861b7;
}
.plain-button {
  font-size: 0.9rem;
  font-weight: 650;
  color: #59458b;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.study-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 275px;
  gap: 20px;
  align-items: start;
}
.study-sheet,
#path {
  min-width: 0;
  background: white;
  border: 1px solid var(--border);
  border-radius: 13px;
}
.study-sheet {
  padding: clamp(16px, 2.2vw, 28px);
}
.study-sheet h2 {
  font-size: 1.62rem;
  line-height: 1.3;
  letter-spacing: -0.05em;
  margin: 6px 0;
}
.study-sheet h3,
#placement h2 {
  letter-spacing: -0.045em;
  line-height: 1.4;
}
.unit-sub {
  color: #545867;
  line-height: 1.65;
}
.unit-tag,
.path-group {
  color: #614c9a;
  font-weight: 650;
  font-size: 0.79rem;
  letter-spacing: 0.01em;
}
.lesson-input {
  background: #f3f1f9;
  border-left: 3px solid #9c8bbf;
  padding: 11px 13px;
  margin: 13px 0;
  border-radius: 0 6px 6px 0;
  font-size: 0.97rem;
}
.lesson-input strong {
  font-size: 0.83rem;
  display: block;
  color: #635382;
  margin-bottom: 2px;
}
.studio-box {
  margin: 14px 0;
  padding: 13px 15px;
  border-radius: 8px;
  background: #f6f6f9;
  border: 1px solid #e4e3eb;
}
.studio-box h3,
.lesson-reading h3 {
  font-size: 1.02rem;
  margin: 0 0 4px;
}
.studio-field {
  display: grid;
  gap: 4px;
  color: #454555;
  font-size: 0.93rem;
  font-weight: 630;
  margin: 8px 0;
  min-width: 0;
}
.studio-fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(185px, 100%), 1fr));
  gap: 0 12px;
}
.study-sheet input:not([type="checkbox"]),
.study-sheet select,
.study-sheet textarea,
#placement select {
  min-width: 0;
  max-width: 100%;
  width: 100%;
  font: 400 1rem/1.45 var(--sans);
  color: #30303a;
  background: #fff;
  border: 1px solid #b9bbc9;
  border-radius: 5px;
  padding: 8px 9px;
}
.study-sheet textarea {
  resize: vertical;
  min-height: 75px;
}
.study-sheet select,
#placement select {
  appearance: none;
  background: #fff
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='m2 4 4 4 4-4' fill='none' stroke='%23646370' stroke-width='1.5'/%3E%3C/svg%3E")
    no-repeat right 11px center / 12px;
  padding-right: 30px;
}
.study-sheet :is(input, textarea, select):focus-visible,
#placement select:focus-visible {
  outline: 2px solid #7a69aa;
  outline-offset: 1px;
}
.studio-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 11px 0;
}
.studio-button,
.studio-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 7px 13px;
  border-radius: 6px;
  font-size: 0.91rem;
  font-weight: 650;
}
.studio-button {
  background: #373044;
  color: white;
  border: 1px solid #373044;
}
.studio-button:hover {
  background: #544465;
}
.studio-secondary {
  border: 1px solid #cfc9dc;
  color: #57446f;
  background: white;
}
.studio-secondary:hover {
  background: #f6f3fa;
}
.studio-output,
.sample-terminal {
  display: block;
  max-width: 100%;
  overflow: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
  color: #dcf1e5;
  background: #22242f;
  border-radius: 8px;
  padding: 12px 14px;
  font:
    normal 0.9rem/1.6 var(--mono),
    var(--sans);
  margin: 9px 0;
}
.sample-terminal {
  color: #c8d1e9;
}
.lesson-reading {
  margin: 15px 0;
  padding: 9px 0;
  border-block: 1px solid #e8e7ee;
}
.lesson-reading summary,
details summary {
  cursor: pointer;
  font-weight: 630;
  color: #54466d;
}
.lesson-reading p {
  font-size: 0.96rem;
  margin: 8px 0;
}
.lesson-reading a,
.study-sheet a:not([class]),
#placement a {
  color: #5b4697;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.unit-footer {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid #e5e4eb;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.unit-footer small {
  color: #5c5d6a;
}
.report {
  white-space: pre-line;
  font-size: 0.94rem;
  background: #f2edf9;
  border-radius: 6px;
  padding: 9px 12px;
  margin: 8px 0;
}
.report:empty {
  display: none;
}
.sample-data {
  font-family: var(--mono), var(--sans);
  font-size: 0.88rem;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.unit-terms {
  font-size: 0.87rem;
  color: #665d75;
}
.work-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  margin: 8px 0;
}
.work-table th,
.work-table td {
  text-align: left;
  border-bottom: 1px solid #e0e1e6;
  padding: 6px;
}
#path {
  padding: 18px 16px;
}
#path h2 {
  font-size: 1.16rem;
  letter-spacing: -0.04em;
  margin-bottom: 9px;
}
.path-group {
  padding-top: 9px;
  margin: 6px 0 3px;
  border-top: 1px solid #e8e6ed;
}
.path-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 6px 7px;
  border-radius: 5px;
  color: #42414c;
  font-size: 0.92rem;
}
.path-row em {
  font: 500 0.77rem var(--mono);
  color: #716d80;
}
.path-row .path-check {
  margin-left: auto;
  color: #327149;
}
.path-row[aria-current] {
  background: #eeebf8;
  font-weight: 680;
  color: #544286;
}
.path-row:hover {
  background: #f5f3f9;
}
.light-note {
  color: #626171;
  font-size: 0.89rem;
}
.prompt-composer {
  display: grid;
  gap: 3px;
}
.prompt-composer textarea {
  min-height: 54px;
}
.progress-msg {
  color: #2f664b;
  font-weight: 650;
}
.code-entry {
  font-family: var(--mono), var(--sans) !important;
}
.kit-box {
  margin: 18px 0 0;
}
#placement h2 {
  margin: 0 0 12px;
}
.check-options {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.check-options label {
  cursor: pointer;
}
.study-sheet fieldset {
  border: 1px solid var(--border);
  border-radius: 6px;
  margin: 10px 0;
  padding: 6px 12px;
}
.study-sheet legend {
  font-weight: 650;
}
.bar-inner .manual-link {
  font-size: 0.88rem;
  white-space: nowrap;
}
@media (max-width: 830px) {
  .study-layout {
    grid-template-columns: minmax(0, 1fr) 215px;
    gap: 12px;
  }
}
@media (max-width: 680px) {
  .study-layout {
    grid-template-columns: 1fr;
  }
  .hero-inner {
    min-height: 155px;
  }
  .hero .art-wrap img {
    height: 109px;
  }
  .hero h1 {
    font-size: 1.75rem;
  }
  .main-shell {
    padding-top: 12px;
  }
  .course-bar {
    margin-bottom: 10px;
  }
  .course-bar progress {
    width: 58px;
  }
  .study-sheet h2 {
    font-size: 1.34rem;
  }
  .bar-inner {
    gap: 8px;
  }
  .bar-inner nav {
    gap: 11px;
  }
  .studio-fields {
    grid-template-columns: 1fr;
  }
  .study-sheet {
    padding: 16px;
  }
  .work-table {
    font-size: 0.84rem;
  }
  .study-sheet textarea {
    font-size: 1rem;
  }
  .bar-inner .manual-link {
    font-size: 0.79rem;
  }
  #path {
    scroll-margin-top: 12px;
  }
}
