.panel,
.module-link,
.resource-link {
  background: var(--sck-cream);
  border: 1.5px solid var(--sck-red);
  border-radius: 24px;
}

.panel {
  padding: 22px;
}

.panel-tight {
  padding: 18px;
}

.kicker {
  display: inline-block;
  width: fit-content;
  margin: 0 0 16px;
  padding: 8px 18px;
  border: 2px solid var(--sck-red);
  border-radius: 999px;
  background: var(--sck-yellow);
  color: var(--sck-red);
  font-family: var(--font-title);
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

.nav-pill,
.drawer-close,
.btn,
.validation-pill {
  appearance: none;
  border: 2px solid var(--sck-red);
  border-radius: 999px;
  cursor: pointer;
  font-family: var(--font-title);
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.nav-pill {
  min-height: 40px;
  padding: 8px 14px;
  background: var(--sck-pink);
  color: var(--sck-red);
  font-size: 0.74rem;
}

.nav-pill:hover,
.nav-pill[aria-expanded="true"],
.nav-pill:focus-visible {
  background: var(--sck-pink);
  color: var(--sck-red);
}

.drawer-close {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  background: var(--sck-red);
  color: #ffffff;
  font-size: 1.2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 52px;
  padding: 12px 18px;
  border-width: 3px;
  box-shadow: var(--sck-button-shadow);
  font-size: 0.88rem;
  text-decoration: none;
}

.btn-primary {
  background: var(--sck-red);
  color: #ffffff;
}

.btn-secondary {
  background: var(--sck-cream);
  color: var(--sck-black);
}

.btn:disabled,
.choice-card:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.module-link,
.resource-link {
  display: grid;
  gap: 10px;
  color: var(--sck-black);
  text-decoration: none;
}

.module-link {
  grid-template-columns: auto 1fr;
  align-items: center;
  padding: 13px;
}

.module-link-marker-only {
  grid-template-columns: auto;
  justify-content: center;
}

.module-link-centered-status {
  grid-template-columns: auto;
  gap: 3px;
  justify-content: center;
  justify-items: center;
  align-content: center;
  text-align: center;
}

.module-link-centered-status > span:not(.module-number) {
  justify-self: center;
}

.module-link-centered-status .module-status {
  margin-top: 0;
  text-align: center;
}

.module-link[aria-current="true"] {
  background: var(--sck-pink);
  border-color: var(--sck-black);
}

.module-number {
  display: grid;
  width: auto;
  min-width: 38px;
  max-width: min(220px, 46vw);
  height: 38px;
  place-items: center;
  padding: 0 14px;
  border: 2px solid var(--sck-red);
  border-radius: 999px;
  background: var(--sck-yellow);
  color: var(--sck-red);
  font-family: var(--font-title);
  font-size: 0.68rem;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
  word-spacing: 0.08em;
}

.module-title,
.module-status,
.resource-link strong {
  display: block;
  font-family: var(--font-title);
  font-weight: 900;
}

.module-title {
  font-size: 0.92rem;
  line-height: 1.05;
}

.module-status,
.resource-link span {
  margin-top: 4px;
  color: var(--sck-muted);
  font-size: 0.78rem;
  line-height: 1.4;
}

.resource-link {
  padding: 15px 16px;
}

.resource-link strong {
  color: var(--sck-red);
  font-size: 0.95rem;
  line-height: 1.05;
}

.placeholder-box {
  min-height: 180px;
  display: grid;
  place-items: center;
  padding: 28px;
  border: 1.5px solid var(--sck-red);
  border-radius: 28px;
  background: var(--sck-blue);
  color: var(--sck-text);
  text-align: center;
}

.opening-cover,
.workbook-placeholder {
  border: 2px solid var(--sck-red);
  border-radius: clamp(28px, 4vw, 48px);
  background: rgba(248, 210, 231, 0.72);
  padding: clamp(28px, 5vw, 56px);
}

.opening-intro-spread {
  display: grid;
  gap: clamp(18px, 3vw, 28px);
}

.opening-cover-page {
  position: relative;
  display: grid;
  min-width: 0;
  place-items: center;
  margin: 0;
  padding: clamp(10px, 2vw, 18px);
  border: 2px solid var(--sck-red);
  border-radius: clamp(30px, 4vw, 54px);
  background: var(--sck-cream);
}

.opening-cover-page img {
  display: block;
  width: min(100%, 680px);
  object-fit: contain;
}

.opening-edition-badge {
  position: absolute;
  top: clamp(18px, 3vw, 34px);
  right: clamp(18px, 3vw, 34px);
  display: grid;
  width: clamp(86px, 10vw, 112px);
  aspect-ratio: 1;
  place-items: center;
  padding: 12px;
  border: 2px solid var(--sck-black);
  border-radius: 999px;
  background: var(--sck-yellow);
  color: var(--sck-black);
  font-family: var(--font-title);
  font-size: clamp(0.68rem, 1vw, 0.82rem);
  font-weight: 900;
  line-height: 1;
  text-align: center;
  text-transform: none;
  transform: rotate(-10deg);
}

.opening-edition-badge svg {
  width: 34px;
  height: 34px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 4;
}

.opening-edition-badge strong {
  font: inherit;
}

.opening-cover {
  position: relative;
  overflow: hidden;
  min-height: min(640px, 70vh);
  display: grid;
  justify-items: center;
  align-content: center;
  gap: clamp(14px, 2vw, 22px);
  text-align: center;
}

.opening-intro-spread .opening-cover {
  min-height: min(640px, 70vh);
  background: rgba(248, 210, 231, 0.72);
}

.opening-cover h2 {
  position: relative;
  z-index: 1;
  max-width: 860px;
  margin: 0;
  color: var(--sck-red);
  font-family: var(--font-title);
  font-size: clamp(3.6rem, 8vw, 7.6rem);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: 0;
}

.opening-intro-spread .opening-cover h2 {
  max-width: 620px;
  font-size: clamp(3rem, 5vw, 5.8rem);
}

.opening-cover > p:not(.kicker):not(.opening-resume) {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0;
  font-size: clamp(1rem, 1.55vw, 1.18rem);
  line-height: 1.5;
}

.opening-actions {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(12px, 1.8vw, 18px);
  width: min(100%, 760px);
  max-width: 760px;
}

.opening-actions-primary {
  max-width: 760px;
}

.opening-actions .btn {
  min-height: clamp(60px, 6vw, 72px);
  padding: 16px clamp(18px, 3vw, 30px);
  border: 2px solid var(--sck-red);
  border-radius: 999px;
  box-shadow: none;
  font-size: clamp(0.95rem, 1.65vw, 1.16rem);
  line-height: 1;
  word-spacing: 0.12em;
  transition: transform 160ms ease, background-color 160ms ease, color 160ms ease, border-color 160ms ease, outline-color 160ms ease;
}

.opening-actions .btn:hover,
.opening-actions .btn:focus-visible {
  background: var(--sck-yellow);
  color: var(--sck-red);
  transform: translateY(-2px);
}

.opening-actions .btn:active {
  transform: translateY(0) scale(0.98);
}

.opening-actions .btn-primary,
.opening-actions .btn-secondary {
  background: var(--sck-cream);
  color: var(--sck-red);
}

.opening-link-button {
  width: 100%;
  min-width: 0;
  justify-self: stretch;
}

.opening-resume {
  width: fit-content;
  max-width: 100%;
  margin: 0;
  padding: 12px 16px;
  border: 1.5px solid var(--sck-red);
  border-radius: 22px;
  background: var(--sck-blue);
  font-family: var(--font-body);
  font-weight: 700;
}

.opening-resume-panel {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 8px;
  width: min(100%, 640px);
  max-width: 640px;
  padding: clamp(16px, 2.4vw, 22px);
  border: 2px solid var(--sck-red);
  border-radius: 30px;
  background: rgba(248, 249, 240, 0.88);
  text-align: center;
}

.opening-resume-panel p,
.opening-resume-panel small {
  margin: 0;
}

.opening-resume-panel p:nth-of-type(2) {
  color: var(--sck-text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.35;
}

.opening-resume-panel strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 9px 18px;
  border: 2px solid var(--sck-red);
  border-radius: 999px;
  background: var(--sck-yellow);
  color: var(--sck-red);
  font-family: var(--font-title);
  font-size: 0.85rem;
  line-height: 1.1;
  text-transform: uppercase;
}

.opening-resume-panel p:first-of-type,
.opening-resume-panel small {
  color: var(--sck-red);
  font-family: var(--font-title);
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1.1;
  text-transform: uppercase;
}

.opening-progress {
  overflow: hidden;
  height: 10px;
  margin-top: 4px;
  border: 1.5px solid var(--sck-red);
  border-radius: 999px;
  background: var(--sck-cream);
}

.opening-progress span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--sck-red);
}

.opening-access-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(12px, 1.8vw, 18px);
  width: min(100%, 820px);
  max-width: 820px;
}

.opening-access-card {
  appearance: none;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 10px;
  min-height: 118px;
  padding: 18px 20px;
  border: 2px solid var(--sck-red);
  border-radius: 30px;
  background: rgba(248, 249, 240, 0.94);
  color: var(--sck-black);
  cursor: pointer;
  text-align: center;
  transition: transform 160ms ease, background-color 160ms ease;
}

.opening-access-card strong {
  color: var(--sck-red);
  font-family: var(--font-title);
  font-size: 0.9rem;
  line-height: 1;
  text-transform: uppercase;
}

.opening-access-card span {
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.45;
}

.opening-access-card:hover,
.opening-access-card:focus-visible {
  background: var(--sck-yellow);
  transform: translateY(-2px);
}

.opening-access-card:active {
  transform: translateY(0) scale(0.98);
}

.workbook-placeholder {
  display: grid;
  max-width: 820px;
  gap: 14px;
}

@media (min-width: 1180px) {
  .opening-intro-spread {
    grid-template-columns: minmax(360px, 0.82fr) minmax(0, 1fr);
    gap: 0;
    overflow: hidden;
    border: 2px solid var(--sck-red);
    border-radius: clamp(30px, 4vw, 54px);
    background: var(--sck-pink);
  }

  .opening-intro-spread .opening-cover-page {
    border: 0;
    border-right: 1.5px solid var(--sck-red);
    border-radius: 0;
  }

  .opening-intro-spread .opening-cover {
    min-height: min(760px, 76vh);
    border: 0;
    border-radius: 0;
  }

  .opening-cover-page img {
    width: min(100%, 500px);
  }
}

@media (max-width: 720px) {
  .opening-cover-page img {
    width: min(100%, 360px);
  }

  .opening-edition-badge {
    width: 78px;
    padding: 9px;
    font-size: 0.62rem;
  }

  .opening-edition-badge svg {
    width: 26px;
    height: 26px;
  }

  .opening-intro-spread .opening-cover {
    min-height: auto;
  }

  .opening-actions,
  .opening-access-grid {
    grid-template-columns: 1fr;
  }

  .opening-link-button {
    width: 100%;
  }
}

.workbook-placeholder p {
  margin: 0;
}

.progress-track {
  width: 100%;
  height: 8px;
  margin-top: 10px;
  overflow: hidden;
  border: 1px solid var(--sck-red);
  border-radius: 999px;
  background: var(--sck-cream);
}

.progress-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--sck-red);
}

.editorial-spread {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  overflow: hidden;
  border: 2px solid var(--sck-red);
  border-radius: clamp(30px, 4vw, 54px);
  background: var(--sck-pink);
}

.editorial-page {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-width: 0;
  padding: clamp(30px, 4.6vw, 64px);
}

.editorial-page > * {
  min-width: 0;
  max-width: 100%;
}

.page-left {
  align-content: start;
  background: var(--sck-pink);
}

.page-right {
  align-content: start;
  gap: 20px;
  border-left: 1.5px solid var(--sck-red);
  background: rgba(248, 249, 240, 0.74);
}

.editorial-page h2 {
  margin: 0 0 24px;
  color: var(--sck-red);
  font-family: var(--font-title);
  font-size: clamp(3rem, 6.2vw, 6.1rem);
  font-weight: 900;
  line-height: 0.88;
}

.text-nowrap {
  white-space: nowrap;
}

.notion-copy {
  max-width: 68ch;
  display: grid;
  gap: 18px;
  color: var(--sck-text);
  font-size: clamp(0.96rem, 1.08vw, 1.08rem);
  line-height: 1.65;
}

.notion-copy p,
.mindset-callout p,
.mission-panel p {
  margin: 0;
}

.mindset-callout {
  max-width: 68ch;
  margin-top: clamp(24px, 4vw, 44px);
  padding: 22px 24px;
  border: 1.5px solid var(--sck-red);
  border-radius: 28px;
  background: var(--sck-cream);
}

.mindset-callout h3,
.mission-panel h3,
.interaction-block > legend,
.interaction-block > h3,
.field > span,
.writing-zone > span,
.live-label {
  margin: 0 0 12px;
  font-family: var(--font-title);
  font-weight: 900;
  line-height: 1.05;
}

.mindset-callout h3 {
  color: var(--sck-red);
  font-size: 1.45rem;
}

.editorial-illustration {
  justify-self: end;
  width: min(150px, 40vw);
  margin: clamp(22px, 4vw, 42px) 0 0;
}

.editorial-illustration img {
  width: 100%;
  display: block;
}

.mission-panel {
  display: grid;
  gap: 20px;
}

.mission-panel > .kicker {
  margin-bottom: 0;
}

.mission-panel h3 {
  color: var(--sck-red);
  font-size: clamp(1.7rem, 3vw, 2.7rem);
}

.diagnostic-spread .editorial-page {
  align-content: start;
  gap: clamp(18px, 2vw, 26px);
}

.diagnostic-spread .page-right {
  grid-template-rows: minmax(0, 1fr) auto;
}

.diagnostic-spread .micro-lesson,
.diagnostic-spread .source-material,
.diagnostic-spread .mindset-block,
.diagnostic-spread .source-list,
.diagnostic-spread .screen-example,
.diagnostic-spread .format-guide,
.diagnostic-spread .screen-result {
  margin: 0;
}

.diagnostic-spread-panel {
  align-content: start;
}

.diagnostic-spread .interaction-block {
  min-width: 0;
}

.diagnostic-spread .interaction-block > legend {
  float: left;
  margin: 0 0 14px;
}

.diagnostic-spread .interaction-block > legend + * {
  clear: both;
}

.diagnostic-spread .choice-card > span:last-child,
.diagnostic-spread .level-button > span:last-child,
.diagnostic-spread .editorial-choice-card > span:last-child {
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

.diagnostic-spread .choice-card {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-height: 50px;
  padding: 10px;
  font-size: clamp(0.8rem, 0.88vw, 0.9rem);
}

.diagnostic-spread .choice-check {
  width: 20px;
  height: 20px;
}

.diagnostic-objective-card {
  display: grid;
  gap: 10px;
  padding: 18px 20px;
  border: 1.5px solid var(--sck-red);
  border-radius: 24px;
  background: var(--sck-blue);
}

.diagnostic-objective-card h3 {
  margin: 0;
  color: var(--sck-red);
  font-family: var(--font-title);
  font-size: clamp(1rem, 1.3vw, 1.2rem);
  font-weight: 900;
  line-height: 1.04;
}

.diagnostic-objective-card p {
  margin: 0;
  font-size: clamp(0.9rem, 1vw, 1rem);
  line-height: 1.45;
}

.diagnostic-objective-card.is-conclusion {
  background: var(--sck-blue);
}

.diagnostic-carry-panel {
  display: grid;
  gap: 16px;
  align-self: start;
}

.diagnostic-carry-panel h2 {
  margin: 0;
  color: var(--sck-red);
  font-family: var(--font-title);
  font-size: clamp(2rem, 3.5vw, 3.5rem);
  font-weight: 900;
  line-height: 0.9;
}

.diagnostic-carry-intro {
  margin: 0;
  padding: 18px 20px;
  border: 1.5px solid var(--sck-red);
  border-radius: 24px;
  background: var(--sck-blue);
  color: var(--sck-text);
  font-size: clamp(0.9rem, 1vw, 1rem);
  line-height: 1.45;
}

.diagnostic-carry-panel .micro-lesson {
  margin: 0;
}

.diagnostic-carry-panel .diagnostic-form {
  gap: 14px;
}

.diagnostic-carry-panel .interaction-block {
  padding: 18px;
}

.diagnostic-carry-panel .interaction-block > legend,
.diagnostic-carry-panel .field > span {
  margin-bottom: 12px;
  font-size: clamp(0.96rem, 1.02vw, 1.12rem);
  line-height: 1.08;
  text-wrap: balance;
}

.diagnostic-carry-panel .choice-grid {
  gap: 8px;
}

.diagnostic-carry-panel .choice-card {
  min-height: 40px;
  padding: 8px 10px;
  font-size: clamp(0.72rem, 0.78vw, 0.86rem);
  line-height: 1.14;
}

.diagnostic-carry-panel .field input {
  min-height: 52px;
}

.diagnostic-carry-panel .field small {
  display: block;
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 0, 0, 0.3);
  border-radius: 16px;
  background: color-mix(in srgb, var(--sck-pink) 24%, var(--sck-cream));
  color: var(--sck-text);
}

.diagnostic-carry-panel .thirty-minute-action-card {
  background: var(--sck-blue) !important;
}

.diagnostic-carry-panel .thirty-minute-action-card small {
  margin-top: 14px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--sck-text);
}

.diagnostic-glossary-guide {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 20px;
  border: 1.5px solid var(--sck-red);
  border-radius: 24px;
  background: var(--sck-cream);
}

.diagnostic-glossary-copy {
  display: grid;
  gap: 10px;
}

.diagnostic-glossary-copy h3 {
  margin: 0;
  color: var(--sck-red);
  font-family: var(--font-title);
  font-size: clamp(1rem, 1.25vw, 1.2rem);
  font-weight: 900;
  line-height: 1.04;
}

.diagnostic-glossary-copy p {
  margin: 0;
  font-size: clamp(0.88rem, 0.98vw, 1rem);
  line-height: 1.45;
}

.mission-block {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.mission-block legend {
  margin: 0 0 14px;
  font-size: 0.96rem;
}

.editorial-choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.editorial-choice-grid > li {
  min-width: 0;
  display: grid;
}

.editorial-choice-card {
  width: 100%;
  min-width: 0;
  min-height: 74px;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 14px 15px;
  border: 1.5px solid var(--sck-red);
  border-radius: 22px;
  background: var(--sck-cream);
  color: var(--sck-black);
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.88rem;
  line-height: 1.32;
  text-align: left;
}

.editorial-choice-card > span:last-child {
  min-width: 0;
  overflow-wrap: anywhere;
  hyphens: auto;
}

.editorial-choice-card.blue .choice-dot {
  background: var(--sck-blue);
}

.editorial-choice-card.yellow .choice-dot {
  background: var(--sck-yellow);
}

.choice-dot {
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--sck-red);
  border-radius: 999px;
  background: var(--sck-pink);
}

.editorial-choice-card.is-selected {
  border-color: var(--sck-black);
  background: var(--sck-yellow);
  font-weight: 700;
}

.editorial-choice-card.is-selected .choice-dot {
  background: var(--sck-red);
}

.conditional-field {
  margin-top: 10px;
}

.live-sentence {
  padding: 18px 20px;
  border: 1.5px solid var(--sck-red);
  border-radius: 24px;
  background: var(--sck-blue);
}

.live-sentence p:last-child {
  font-size: 0.96rem;
  line-height: 1.55;
}

.writing-zone {
  display: grid;
  gap: 12px;
  padding: 20px;
  border: 1.5px solid var(--sck-red);
  border-radius: 28px;
  background: var(--sck-pink);
}

.writing-zone textarea,
.field input,
.field textarea,
.field select {
  width: 100%;
  border: 1.5px solid var(--sck-red);
  border-radius: 20px;
  background: var(--sck-cream);
  color: var(--sck-black);
  font: inherit;
  line-height: 1.5;
}

.writing-zone textarea {
  min-height: 150px;
  padding: 16px;
  resize: vertical;
}

.field {
  display: grid;
  gap: 10px;
}

.field input {
  min-height: 52px;
  padding: 10px 14px;
}

.field select {
  min-height: 52px;
  padding: 10px 14px;
}

.field textarea {
  min-height: 120px;
  padding: 14px;
  resize: vertical;
}

.mini-validation {
  display: grid;
  gap: 14px;
  padding: 20px;
  border: 1.5px solid var(--sck-red);
  border-radius: 26px;
  background: var(--sck-yellow);
}

.mini-validation[hidden] {
  display: none;
}

.mini-validation p {
  font-weight: 700;
  line-height: 1.5;
}

.validation-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.validation-pill {
  min-height: 42px;
  padding: 9px 14px;
  background: var(--sck-cream);
  color: var(--sck-black);
  font-size: 0.72rem;
}

.validation-pill.is-selected {
  background: var(--sck-red);
  color: #ffffff;
}

.editorial-actions,
.screen-actions,
.synthesis-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 6px;
}

.micro-lesson,
.interaction-block,
.synthesis-card {
  border: 1.5px solid var(--sck-red);
  border-radius: 26px;
}

.micro-lesson {
  margin: 0 0 24px;
  padding: 22px 24px;
  background: var(--sck-blue);
}

.micro-lesson p {
  max-width: 760px;
  margin: 0;
  font-size: 1rem;
  line-height: 1.65;
}

.source-material,
.mindset-block,
.source-list,
.screen-example,
.format-guide,
.screen-result {
  margin: 0 0 24px;
  border: 1.5px solid var(--sck-red);
  border-radius: 26px;
}

.source-material {
  padding: 24px;
  background: var(--sck-pink);
}

.source-material-header {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

.source-material-header strong,
.mindset-block strong,
.source-list h3,
.format-guide h3,
.screen-result h3,
.source-material-card h4,
.format-guide-card h4 {
  margin: 0;
  color: var(--sck-red);
  font-family: var(--font-title);
  font-weight: 900;
  line-height: 1;
}

.source-material-header p,
.mindset-block p,
.source-material-card p,
.format-guide-card p,
.screen-result p {
  margin: 0;
}

.source-material-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.source-material-card {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 18px;
  border: 1.5px solid var(--sck-red);
  border-radius: 20px;
  background: var(--sck-cream);
}

.source-material-link {
  width: min(100%, 280px);
  margin-top: 16px;
}

.module-dot-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.module-dot-list li {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.module-dot-list li::before {
  content: "";
  width: 12px;
  height: 12px;
  margin-top: 0.35em;
  border: 1.5px solid var(--sck-red);
  border-radius: 999px;
  background: var(--sck-yellow);
}

.mindset-block {
  display: grid;
  gap: 12px;
  padding: 22px 24px;
  background: var(--sck-yellow);
}

.source-list,
.format-guide,
.screen-result {
  display: grid;
  gap: 14px;
  padding: 22px 24px;
  background: var(--sck-cream);
}

.format-guide {
  background: var(--sck-blue);
}

.screen-example {
  overflow: hidden;
  background: var(--sck-pink);
}

.screen-example summary {
  padding: 18px 22px;
  cursor: pointer;
  color: var(--sck-red);
  font-family: var(--font-title);
  font-weight: 900;
}

.screen-example-body {
  display: grid;
  gap: 12px;
  padding: 0 22px 20px;
}

.format-guide-grid,
.screen-result-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.format-guide-card,
.screen-result-card,
.screen-mini-validation {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 16px;
  border: 1.5px solid var(--sck-red);
  border-radius: 18px;
  background: var(--sck-cream);
}

.screen-mini-validation {
  background: var(--sck-yellow);
}

.glossary-block {
  margin: clamp(28px, 4vw, 44px) 0 clamp(26px, 4vw, 38px);
}

.glossary-intro {
  display: grid;
  gap: 4px;
}

.glossary-intro strong {
  color: var(--sck-red);
  font-family: var(--font-title);
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.glossary-intro span {
  color: var(--sck-muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

.glossary-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
  margin: 0;
}

.glossary-links a {
  max-width: 100%;
  padding: 7px 12px;
  border: 1.5px solid var(--sck-red);
  border-radius: 999px;
  background: var(--sck-cream);
  color: var(--sck-red);
  overflow-wrap: anywhere;
  font-family: var(--font-title);
  font-size: 0.68rem;
  font-weight: 900;
  text-decoration: none;
  text-transform: uppercase;
}

.glossary-term-cells {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}

.glossary-footnote {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-width: 0;
  max-width: 100%;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 0, 0, 0.45);
  background: transparent;
}

.glossary-footnote-label {
  color: var(--sck-red);
  font-family: var(--font-title);
  font-size: 0.58rem;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1;
  text-transform: lowercase;
  white-space: nowrap;
}

.glossary-term-cell {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  min-height: 28px;
  padding: 6px 10px;
  border: 1.5px solid var(--sck-red);
  border-radius: 999px;
  background: transparent;
  color: var(--sck-red);
  cursor: pointer;
  overflow-wrap: anywhere;
  font-family: var(--font-title);
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  text-transform: lowercase;
}

.glossary-term-cell:hover {
  background: transparent;
  color: var(--sck-red);
  filter: brightness(0.9);
  text-decoration: none;
}

.glossary-term-cell:focus-visible {
  outline: 3px solid rgba(255, 0, 0, 0.28);
  outline-offset: 3px;
}

.diagnostic-form {
  display: grid;
  gap: 22px;
}

.diagnostic-section-title {
  display: grid;
  gap: 10px;
  margin: clamp(8px, 1vw, 14px) 0 -8px;
}

.diagnostic-section-title h3 {
  margin: 0;
  color: var(--sck-red);
  font-family: var(--font-title);
  font-size: clamp(1.9rem, 3vw, 2.9rem);
  font-weight: 900;
  line-height: 0.9;
}

.diagnostic-section-title p {
  max-width: 40ch;
  margin: 0;
  padding: 18px 20px;
  border: 1.5px solid var(--sck-red);
  border-radius: 24px;
  background: var(--sck-blue);
  color: var(--sck-text);
  font-size: clamp(0.86rem, 0.95vw, 1rem);
  line-height: 1.45;
}

.interaction-block {
  margin: 0;
  padding: 24px;
  background: var(--sck-cream);
}

.interaction-block > legend {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 0 0 14px;
  padding: 0;
  overflow-wrap: anywhere;
}

.interaction-block > legend + * {
  clear: none;
}

.interaction-block > h3,
.interaction-block > label,
.field > span,
.writing-zone > span {
  max-width: 100%;
  overflow-wrap: anywhere;
}

.interaction-block:nth-child(even) {
  background: var(--sck-pink);
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

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

.choice-help {
  margin: 0 0 16px;
  color: var(--sck-black);
}

.choice-cluster-grid {
  display: grid;
  gap: 16px;
}

.choice-cluster {
  display: grid;
  gap: 10px;
}

.choice-cluster h4 {
  margin: 0;
  color: var(--sck-red);
  font-family: var(--font-title);
  font-size: clamp(0.86rem, 0.9vw, 0.98rem);
  font-weight: 900;
  line-height: 1;
}

.constraints-inventory {
  padding: 22px;
  background: var(--sck-cream) !important;
}

.constraints-inventory > legend {
  font-size: clamp(1.02rem, 1.08vw, 1.18rem);
  line-height: 1.08;
  text-wrap: balance;
}

.constraints-inventory .choice-grid {
  gap: 10px;
}

.constraints-inventory .choice-card {
  min-height: 48px;
  padding: 10px;
  font-size: clamp(0.78rem, 0.84vw, 0.9rem);
  line-height: 1.15;
}

.constraint-focus-card {
  background: color-mix(in srgb, var(--sck-pink) 42%, var(--sck-cream)) !important;
}

.constraint-focus-card .compact-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.constraint-feasibility-card {
  background: var(--sck-blue) !important;
}

.constraint-feasibility-card textarea {
  min-height: 112px;
}

.rhythm-bridge-card {
  background: color-mix(in srgb, var(--sck-pink) 38%, var(--sck-cream)) !important;
}

.rhythm-bridge-card > legend {
  font-size: clamp(0.98rem, 1.04vw, 1.14rem);
  line-height: 1.08;
}

.rhythm-bridge-card .choice-grid {
  gap: 8px;
}

.rhythm-bridge-card .choice-card {
  min-height: 40px;
  padding: 8px 10px;
  font-size: clamp(0.7rem, 0.76vw, 0.84rem);
  line-height: 1.12;
}

.resource-inventory {
  padding: 20px;
  background: var(--sck-cream) !important;
}

.resource-inventory > legend {
  font-size: clamp(1rem, 1.08vw, 1.18rem);
  line-height: 1.04;
  text-wrap: balance;
}

.resource-inventory .choice-cluster-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.resource-inventory .choice-cluster {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(255, 0, 0, 0.26);
  border-radius: 16px;
  background: color-mix(in srgb, var(--sck-pink) 24%, var(--sck-cream));
}

.resource-inventory .choice-cluster:first-child {
  padding-top: 10px;
  border-top: 1px solid rgba(255, 0, 0, 0.26);
}

.resource-inventory .choice-cluster h4 {
  font-size: clamp(0.76rem, 0.82vw, 0.9rem);
  line-height: 1;
}

.resource-inventory .choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.resource-inventory .choice-grid > li {
  min-width: 0;
}

.resource-inventory .choice-card {
  width: 100%;
  min-height: 34px;
  padding: 7px;
  border-radius: 999px;
  background: var(--sck-cream);
  grid-template-columns: 11px minmax(0, 1fr);
  gap: 5px;
  font-size: clamp(0.66rem, 0.7vw, 0.78rem);
  line-height: 1.08;
  text-align: left;
}

.resource-inventory .choice-check {
  width: 11px;
  height: 11px;
}

.resource-inventory .choice-card > span:last-child {
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

@media (max-width: 760px) {
  .resource-inventory .choice-cluster {
    grid-template-columns: 1fr;
  }

  .resource-inventory .choice-grid {
    grid-template-columns: 1fr;
  }
}

.resource-fields-card {
  background: var(--sck-cream) !important;
}

.resource-fields-card.is-resource-conclusion {
  position: relative;
  overflow: hidden;
  padding: 22px 22px 24px;
  border-width: 2px;
  background: var(--sck-cream) !important;
}

.diagnostic-form-left .resource-fields-card {
  padding: 22px;
}

.resource-fields-card h3 {
  position: relative;
  z-index: 1;
  margin: 0 0 18px;
  color: var(--sck-red);
  font-family: var(--font-title);
  font-size: clamp(0.98rem, 1.05vw, 1.18rem);
  font-weight: 900;
  line-height: 1.02;
}

.resource-fields-card .field-grid {
  gap: 12px;
}

.resource-fields-card.is-resource-conclusion .field-grid {
  position: relative;
  z-index: 1;
  gap: 10px 12px;
}

.resource-fields-card .field > span {
  color: var(--sck-black);
  font-family: var(--font-title);
  font-size: clamp(0.7rem, 0.76vw, 0.84rem);
  font-weight: 900;
  line-height: 1;
}

.resource-fields-card input {
  min-height: 46px;
  border-radius: 16px;
  background: color-mix(in srgb, var(--sck-blue) 30%, var(--sck-cream));
}

.resource-fields-card.is-resource-conclusion .field {
  gap: 7px;
  padding: 9px;
  border: 1px solid rgba(255, 0, 0, 0.28);
  border-radius: 18px;
  background: color-mix(in srgb, var(--sck-pink) 18%, var(--sck-cream));
}

.resource-fields-card.is-resource-conclusion .field > span {
  color: var(--sck-red);
}

.resource-inventory + .resource-fields-card {
  padding: 18px;
}

.resource-inventory + .resource-fields-card h3 {
  margin-bottom: 12px;
  font-size: clamp(0.72rem, 0.78vw, 0.9rem);
}

.resource-inventory + .resource-fields-card .field-grid {
  gap: 9px;
}

.resource-inventory + .resource-fields-card .field > span {
  font-size: clamp(0.62rem, 0.68vw, 0.76rem);
}

.resource-inventory + .resource-fields-card input {
  min-height: 44px;
}

.resource-fields-card .field:last-child {
  grid-column: 1 / -1;
  max-width: calc(50% - 6px);
}

.choice-card,
.level-button {
  width: 100%;
  min-width: 0;
  min-height: 54px;
  padding: 12px 14px;
  display: flex;
  gap: 10px;
  align-items: center;
  border: 1.5px solid var(--sck-red);
  border-radius: 18px;
  background: var(--sck-cream);
  color: var(--sck-black);
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.3;
  text-align: left;
}

.choice-card > span:last-child,
.level-button > span:last-child {
  min-width: 0;
  overflow-wrap: anywhere;
}

.choice-card.is-selected,
.level-button.is-selected {
  border-color: var(--sck-black);
  background: var(--sck-yellow);
  font-weight: 700;
}

.choice-check {
  flex: 0 0 auto;
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 1.5px solid var(--sck-red);
  border-radius: 999px;
  background: var(--sck-pink);
  color: var(--sck-red);
  font-family: var(--font-title);
  font-size: 0.8rem;
  font-weight: 900;
}

.field small,
.hint,
.selection-counter,
.form-status,
.field-error {
  font-size: 0.86rem;
  line-height: 1.45;
}

.hint,
.selection-counter {
  margin: 12px 0 0;
  color: var(--sck-muted);
}

.skill-group-help {
  max-width: none;
  margin: -2px 0 18px;
  padding: 14px 16px;
  border-radius: 18px;
  background: color-mix(in srgb, var(--sck-blue) 62%, var(--sck-cream));
  color: var(--sck-black);
  font-size: clamp(0.82rem, 0.86vw, 0.92rem);
  line-height: 1.48;
}

.field-error,
.form-status {
  color: var(--sck-red);
  font-weight: 700;
}

.input-with-suffix {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: stretch;
}

.input-with-suffix input {
  border-radius: 18px 0 0 18px;
}

.input-with-suffix > span {
  display: grid;
  place-items: center;
  min-width: 112px;
  padding: 0 14px;
  border: 1.5px solid var(--sck-red);
  border-left: 0;
  border-radius: 0 18px 18px 0;
  background: var(--sck-yellow);
  font-family: var(--font-title);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: none;
}

.duration-input {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(124px, 0.72fr);
  gap: 10px;
  align-items: end;
}

.duration-control {
  display: grid;
  gap: 6px;
}

.duration-control > span {
  font-family: var(--font-title);
  font-size: 0.76rem;
  font-weight: 900;
  color: var(--sck-red);
}

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

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

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

.skill-level-row h4 {
  margin: 0 0 10px;
  font-family: var(--font-title);
}

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

.synthesis-card {
  padding: 22px;
  background: var(--sck-pink);
}

.synthesis-card h3 {
  margin: 0 0 12px;
  font-family: var(--font-title);
}

.synthesis-card li {
  display: grid;
  gap: 4px;
  padding: 10px 0;
  border-top: 1px solid rgba(255, 0, 0, 0.22);
}

.synthesis-card li:first-child {
  border-top: 0;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--sck-red);
  outline-offset: 4px;
}

@media (max-width: 560px) {
  .glossary-footnote {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}
