.snack-workshop,
.snack-workshop * {
  box-sizing: border-box;
  letter-spacing: 0;
}

.snack-hero {
  min-height: 560px;
  display: flex;
  align-items: center;
  padding: 4.5rem max(6%, calc((100% - 1180px) / 2));
  color: #fff;
  background:
    linear-gradient(90deg, rgba(7, 31, 79, 0.9) 0%, rgba(7, 31, 79, 0.7) 45%, rgba(15, 118, 110, 0.12) 100%),
    url("../img/english-intermediate/unit-5/workshop-global-snack-review.png") center / cover no-repeat;
}

.snack-hero-content {
  width: min(680px, 100%);
}

.snack-hero .eyebrow {
  display: inline-block;
  margin: 0 0 1rem;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: #071f4f;
  font-weight: 900;
}

.snack-hero h1 {
  margin: 0 0 1rem;
  color: #fff;
  font-size: 3.75rem;
  line-height: 1.03;
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.35);
}

.snack-hero p:not(.eyebrow) {
  max-width: 620px;
  margin: 0 0 1.25rem;
  color: #fff;
  font-size: 1.1rem;
  line-height: 1.7;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

.snack-meta,
.snack-actions,
.speed-controls,
.writer-actions,
.quality-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.snack-meta span {
  padding: 0.42rem 0.72rem;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 999px;
  background: rgba(7, 31, 79, 0.6);
  color: #fff;
  font-weight: 800;
}

.snack-actions {
  margin-top: 1.4rem;
}

.snack-button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.72rem 1rem;
  border: 2px solid transparent;
  border-radius: 8px;
  font: inherit;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.snack-button:hover {
  transform: translateY(-1px);
}

.snack-button:focus-visible,
.workshop-stage summary:focus-visible,
.speed-button:focus-visible,
.writer-field input:focus-visible,
.writer-field select:focus-visible,
.writer-field textarea:focus-visible {
  outline: 3px solid #f4c95d;
  outline-offset: 3px;
}

.snack-button-primary {
  background: #d9a441;
  color: #071f4f;
}

.snack-button-secondary {
  border-color: rgba(255, 255, 255, 0.72);
  background: rgba(7, 31, 79, 0.58);
  color: #fff;
}

.snack-button-dark {
  background: #071f4f;
  color: #fff;
}

.snack-button-light {
  border-color: #b8c7dc;
  background: #fff;
  color: #071f4f;
}

.snack-button:disabled {
  transform: none;
  cursor: wait;
  opacity: 0.66;
}

.snack-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.mission-band {
  padding: 3.5rem 0;
  background: #fff;
  border-bottom: 1px solid #dce8f8;
}

.mission-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  gap: 2.5rem;
  align-items: center;
}

.section-kicker {
  margin: 0 0 0.55rem;
  color: #9a3412;
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.mission-copy h2,
.workshop-heading h2 {
  margin: 0 0 0.8rem;
  color: #071f4f;
  line-height: 1.15;
}

.mission-copy h2 {
  font-size: 2.25rem;
}

.mission-copy > p,
.workshop-heading p,
.stage-intro,
.language-card p,
.model-note,
.audio-card p,
.teacher-note,
.outline-panel p,
.review-preview p,
.receipt-panel p {
  color: #52657d;
  line-height: 1.7;
}

.deliverable-note {
  margin: 1.25rem 0;
  padding: 1rem;
  border-left: 5px solid #0f766e;
  border-radius: 0 8px 8px 0;
  background: #eef9f7;
  color: #173f4b;
  font-weight: 800;
  line-height: 1.6;
}

.mission-checklist {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
}

.mission-checklist li {
  min-height: 58px;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.7rem;
  border: 1px solid #dce8f8;
  border-radius: 8px;
  background: #fbfdff;
  color: #27415f;
  font-weight: 800;
  line-height: 1.4;
}

.mission-checklist i {
  color: #0f766e;
  font-size: 1.15rem;
}

.follow-up-label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 1rem;
  padding: 0.5rem 0.75rem;
  border-radius: 999px;
  background: #fff7ed;
  color: #9a3412;
  font-weight: 900;
}

.evidence-figure {
  margin: 0;
}

.evidence-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  display: block;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 18px 38px rgba(7, 31, 79, 0.16);
}

.evidence-figure figcaption {
  padding: 0.75rem 0.15rem 0;
  color: #52657d;
  font-size: 0.9rem;
  line-height: 1.5;
}

.workshop-band {
  padding: 3.5rem 0 5rem;
  background: #f6f9fd;
}

.workshop-heading {
  max-width: 780px;
  margin-bottom: 1.6rem;
}

.workshop-heading h2 {
  font-size: 2rem;
}

.workshop-stages {
  display: grid;
  gap: 0.9rem;
}

.workshop-stage {
  overflow: hidden;
  border: 1px solid #cddbeb;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(7, 31, 79, 0.06);
}

.workshop-stage summary {
  min-height: 90px;
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr) 42px;
  gap: 1rem;
  align-items: center;
  padding: 1rem 1.25rem;
  list-style: none;
  cursor: pointer;
}

.workshop-stage summary::-webkit-details-marker {
  display: none;
}

.stage-number,
.stage-toggle {
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-weight: 900;
}

.stage-number {
  width: 50px;
  height: 50px;
  background: #071f4f;
  color: #fff;
}

.stage-title span {
  display: block;
  margin-bottom: 0.2rem;
  color: #0f766e;
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
}

.stage-title h3 {
  margin: 0;
  color: #071f4f;
  font-size: 1.25rem;
  line-height: 1.3;
}

.stage-toggle {
  width: 42px;
  height: 42px;
  background: #e8f2ff;
  color: #123b8f;
  transition: transform 0.2s ease;
}

.workshop-stage[open] .stage-toggle {
  transform: rotate(180deg);
}

.stage-body {
  padding: 1.5rem;
  border-top: 1px solid #dce8f8;
}

.stage-intro {
  max-width: 820px;
  margin-top: 0;
}

.language-grid,
.audio-grid,
.planner-grid,
.quality-grid,
.model-sentence-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.language-card,
.audio-card,
.quality-card,
.outline-panel,
.review-preview,
.receipt-panel {
  padding: 1rem;
  border: 1px solid #dce8f8;
  border-radius: 8px;
  background: #fff;
}

.language-card h4,
.audio-card h4,
.outline-panel h4,
.review-preview h4,
.receipt-panel h4 {
  margin: 0 0 0.55rem;
  color: #071f4f;
  font-size: 1.05rem;
}

.language-card.good-example {
  border-left: 5px solid #0f766e;
  background: #f4fffb;
}

.language-card.common-error {
  border-left: 5px solid #dc4c64;
  background: #fff7f8;
}

.word-bank {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.word-bank span,
.quality-legend span {
  padding: 0.4rem 0.62rem;
  border: 1px solid rgba(15, 118, 110, 0.2);
  border-radius: 999px;
  background: #eef9f7;
  color: #0f4f4a;
  font-size: 0.88rem;
  font-weight: 900;
}

.model-panel {
  margin: 1rem 0;
  padding: 1.25rem;
  border-left: 6px solid #d9a441;
  border-radius: 0 8px 8px 0;
  background: #fffaf0;
  color: #24364d;
  font-weight: 700;
  line-height: 1.9;
}

.model-panel mark {
  padding: 0.1rem 0.18rem;
  border-radius: 4px;
  color: #13243b;
}

.mark-context { background: #dbeafe; }
.mark-ingredients { background: #d1fae5; }
.mark-sensory { background: #ffedd5; }
.mark-culture { background: #fef3c7; }
.mark-opinion { background: #fce7f3; }

.audio-card {
  background: #f6fffc;
}

.audio-card audio {
  width: 100%;
  margin: 0.55rem 0;
}

.speed-button {
  min-width: 58px;
  min-height: 38px;
  border: 1px solid #b8c7dc;
  border-radius: 8px;
  background: #fff;
  color: #071f4f;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.speed-button.active {
  border-color: #0f766e;
  background: #0f766e;
  color: #fff;
}

.writer-field {
  display: grid;
  gap: 0.4rem;
}

.writer-field.full-width {
  grid-column: 1 / -1;
}

.writer-field label {
  color: #071f4f;
  font-weight: 900;
}

.writer-field small {
  color: #64748b;
  line-height: 1.4;
}

.writer-field input,
.writer-field select,
.writer-field textarea {
  width: 100%;
  min-width: 0;
  padding: 0.78rem;
  border: 1px solid #b8c7dc;
  border-radius: 8px;
  background: #fff;
  color: #1f2937;
  font: inherit;
}

.writer-field textarea {
  min-height: 120px;
  resize: vertical;
  line-height: 1.6;
}

#finalReview {
  min-height: 260px;
}

.outline-panel {
  margin-top: 1rem;
  background: #eef5ff;
}

.outline-list {
  display: grid;
  gap: 0.55rem;
  margin: 0.75rem 0 0;
  padding-left: 1.25rem;
  color: #27415f;
  line-height: 1.55;
}

.quality-meter {
  margin: 1rem 0;
  padding: 1rem;
  border-radius: 8px;
  background: #eef5ff;
}

.meter-heading {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.55rem;
  color: #071f4f;
  font-weight: 900;
}

.meter-track {
  height: 14px;
  overflow: hidden;
  border-radius: 999px;
  background: #cbd9ea;
}

.meter-fill {
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, #0f766e, #d9a441);
  transition: width 0.2s ease;
}

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

.quality-card {
  min-height: 110px;
  background: #f8fbff;
}

.quality-card h4 {
  margin: 0 0 0.35rem;
  color: #071f4f;
  font-size: 0.95rem;
}

.quality-card p {
  margin: 0;
  color: #64748b;
  font-size: 0.87rem;
  line-height: 1.45;
}

.quality-card.complete {
  border-color: #55bda7;
  background: #ecfdf5;
}

.quality-card.complete h4::after {
  content: " ready";
  color: #047857;
  font-size: 0.75rem;
}

.review-counter {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin: 0.55rem 0 0;
  color: #52657d;
  font-weight: 800;
}

.review-counter strong {
  color: #071f4f;
}

.review-preview,
.receipt-panel {
  margin-top: 1rem;
}

.preview-grid,
.receipt-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

.preview-item,
.receipt-item {
  padding: 0.7rem;
  border: 1px solid #dce8f8;
  border-radius: 8px;
  background: #fbfdff;
}

.preview-item strong,
.receipt-item strong {
  display: block;
  margin-bottom: 0.2rem;
  color: #9a3412;
}

.preview-item span,
.receipt-item span {
  color: #27415f;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.receipt-panel {
  border-color: #55bda7;
  background: #ecfdf5;
}

.receipt-panel[hidden] {
  display: none;
}

.writer-actions {
  margin-top: 1rem;
}

.writer-status {
  display: none;
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 8px;
  background: #eef5ff;
  color: #071f4f;
  font-weight: 900;
  line-height: 1.55;
}

.writer-status.show { display: block; }
.writer-status.error { background: #fff1f2; color: #7f1d1d; }
.writer-status.success { background: #ecfdf5; color: #065f46; }

.teacher-note {
  margin-top: 1rem;
  padding: 0.9rem 1rem;
  border-radius: 8px;
  background: #fff7ed;
}

@media (max-width: 920px) {
  .snack-hero {
    min-height: 520px;
    padding: 3.5rem 6%;
    background-position: 58% center;
  }

  .snack-hero h1 {
    font-size: 3rem;
  }

  .mission-grid {
    grid-template-columns: 1fr;
  }

  .mission-visual {
    order: -1;
  }

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

@media (max-width: 640px) {
  body.english-intermediate-page {
    overflow-x: hidden;
  }

  .english-intermediate-page .navbar {
    display: flex !important;
    flex-direction: column !important;
    align-items: center;
    gap: 0.5rem;
    padding: 8px 10px;
    overflow: hidden;
  }

  .english-intermediate-page .brand img {
    height: 38px;
  }

  .english-intermediate-page .nav-links {
    width: 100% !important;
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 4px !important;
    padding: 2px 0;
  }

  .english-intermediate-page .nav-links a {
    min-height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    font-size: 0.68rem;
    text-align: center;
    white-space: normal !important;
    overflow-wrap: anywhere;
  }

  .snack-hero {
    min-height: 560px;
    padding: 3rem 20px;
    background-position: 62% center;
    background-image:
      linear-gradient(90deg, rgba(7, 31, 79, 0.92), rgba(7, 31, 79, 0.68)),
      url("../img/english-intermediate/unit-5/workshop-global-snack-review.png");
  }

  .snack-hero h1 {
    font-size: 2.25rem;
  }

  .snack-hero p:not(.eyebrow) {
    font-size: 1rem;
  }

  .snack-actions,
  .writer-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .snack-button {
    width: 100%;
  }

  .mission-band,
  .workshop-band {
    padding: 2.5rem 0;
  }

  .mission-copy h2,
  .workshop-heading h2 {
    font-size: 1.65rem;
  }

  .mission-checklist,
  .language-grid,
  .audio-grid,
  .planner-grid,
  .quality-grid,
  .model-sentence-grid,
  .preview-grid,
  .receipt-grid {
    grid-template-columns: 1fr;
  }

  .workshop-stage summary {
    min-height: 82px;
    grid-template-columns: 42px minmax(0, 1fr) 36px;
    gap: 0.7rem;
    padding: 0.85rem;
  }

  .stage-number {
    width: 42px;
    height: 42px;
  }

  .stage-toggle {
    width: 36px;
    height: 36px;
  }

  .stage-title h3 {
    font-size: 1.02rem;
    overflow-wrap: anywhere;
  }

  .stage-body {
    padding: 1rem;
  }

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

  .speed-button {
    width: 100%;
  }

  .review-counter,
  .meter-heading {
    flex-direction: column;
    gap: 0.25rem;
  }
}
