.studio-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.studio-card { display: flex; flex-direction: column; min-width: 0; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.tone-mint { --studio-tint: #dcecdf; --studio-ink: #2c6147; }
.tone-gold { --studio-tint: #f4e8c9; --studio-ink: #74501e; }
.tone-blue { --studio-tint: #e0ebf5; --studio-ink: #335d7a; }
.tone-rose { --studio-tint: #f6e2e6; --studio-ink: #7c3f54; }
.tone-pine { --studio-tint: #d8e7df; --studio-ink: #204b3a; }
.tone-lilac { --studio-tint: #ebe3f3; --studio-ink: #5d4973; }
.studio-card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 13px; }
.studio-mark { display: grid; place-content: center; flex: 0 0 auto; width: 48px; height: 48px; border-radius: 14px; color: var(--studio-ink); background: var(--studio-tint); font: 1.7rem/1 Georgia, serif; }
.studio-group { color: var(--studio-ink); font-size: .8rem; font-weight: 740; }
.studio-card h3 { font: 400 1.7rem/1.07 Georgia, serif; letter-spacing: -.04em; margin-bottom: 7px; }
.studio-card p { color: var(--muted); line-height: 1.45; margin-bottom: 5px; }
.studio-open { align-self: start; display: inline-flex; align-items: center; min-height: 42px; margin-top: auto; padding-top: 4px; font-weight: 730; color: var(--forest); text-underline-offset: .24em; }
.studio-open:hover { color: #8b401c; }
.course-feature { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 14px 16px; margin-bottom: 16px; border: 1px solid #d4dfd1; border-radius: 13px; background: #e9f0e3; }
.course-feature h3 { font-size: 1.04rem; }
.course-feature p { color: var(--muted); font-size: .92rem; margin-top: 4px; }
.course-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--forest); color: #f6d783; font: 1.7rem Georgia, serif; }
.studio-history:not(:empty) { margin-top: 13px; display: grid; gap: 9px; padding: 17px 21px; border: 1px solid var(--line); border-radius: 13px; background: var(--white); }
.studio-history h3 { font: 400 1.4rem/1.1 Georgia, serif; }
.studio-history ul { list-style: none; margin: 0; padding: 0; }
.studio-history li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.studio-history li:last-child { border-bottom: 0; padding-bottom: 0; }
.studio-history li p { color: var(--muted); margin-top: 3px; }
.studio-history .button { flex-shrink: 0; }
.studio-history + .quiet { margin-top: 8px; }

dialog.studio-dialog { width: min(790px, calc(100% - 26px)); }
.studio-choices { display: grid; gap: 10px; margin-top: 16px; }
.studio-choices > div, .studio-inset { min-width: 0; padding: 14px 16px; border: 1px solid #d6e0d3; border-radius: 12px; background: #eef3e9; }
.studio-choices h3, .studio-inset h3 { font-size: 1.06rem; }
.studio-choices p, .studio-inset p { margin-top: 6px; color: var(--muted); line-height: 1.48; }
.studio-choices .button { margin-top: 9px; }
.studio-inset .topic-list { margin-block: 6px; }
.studio-inset summary { cursor: pointer; font-weight: 700; }
details.studio-inset { margin-top: 14px; }
.studio-checklist { border: 1px solid var(--line); border-radius: 12px; padding: 11px 14px; margin: 0; min-width: 0; }
.studio-checklist legend { padding: 0 5px; font-weight: 730; }
.studio-checklist label { display: flex; line-height: 1.5; gap: 8px; padding: 9px 0; cursor: pointer; }
.studio-checklist input { flex-shrink: 0; width: 18px; height: 18px; accent-color: var(--forest); }
.plan-form > .dialog-actions { margin-top: 0; }

.early-board { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: clamp(5px, 2vw, 13px); min-height: 126px; padding: 18px 10px; margin-top: 16px; border-radius: 14px; background: #ecf2e4; }
.early-token { display: grid; place-items: center; min-width: clamp(30px, 7.5vw, 56px); height: 58px; font-size: clamp(1.7rem, 5.6vw, 3.25rem); font-weight: 800; line-height: 1; }
.token-0 { color: #2a6b50; }
.token-1 { color: #985030; }
.token-2 { color: #5c5080; }
.early-answers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin-top: 12px; }
.early-answers button { border: 1px solid #c6d6c5; border-radius: 12px; min-height: 64px; background: var(--white); color: var(--forest); font-size: 1.7rem; font-weight: 760; }
.early-answers button:hover, .early-answers button.is-right { background: #d9eed4; }
.early-answers button.is-wrong { background: #faeddf; border-color: #d0a58f; }
.early-answers button:disabled { opacity: 1; }
.early-win { margin: 15px 0; color: #895b17; font-size: 3rem; text-align: center; }
.early-win span { font-size: 4rem; }

.rehearsal-stage { margin-top: 15px; padding: 17px 20px 21px; background: #153c2f; color: var(--white); border-radius: 13px; }
.rehearsal-timer { display: block; margin-bottom: 4px; color: #f6d783; font-size: 3.5rem; font-variant-numeric: tabular-nums; line-height: 1.06; }
.rehearsal-stage strong { display: block; margin: 10px 0 3px; }

.lab-controls { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.replica-map { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
.replica-zone { min-width: 0; padding: 10px; border: 1px solid #bdcdbb; border-radius: 10px; background: #e7efe4; text-align: center; }
.replica-zone.down { border-color: #d2ae9d; background: #f8ece3; }
.replica-zone h3 { font-size: .95rem; }
.replica-zone p { font-size: .87rem; color: var(--muted); margin: 2px 0 7px; }
.replica-zone.down p { color: #7b472c; }
.replica-zone ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; justify-content: center; }
.replica-zone li { display: grid; place-items: center; min-width: 25px; height: 25px; padding: 2px; border-radius: 6px; color: #fff; font-size: .8rem; font-weight: 750; background: #26533d; }
.replica-zone.down li { background: #825135; }
.lab-result { margin-top: 15px; padding: 16px; color: #fbfffa; background: #153c2f; border-radius: 13px; }
.lab-result h3 { font: 400 1.5rem/1.1 Georgia, serif; }
.lab-result p { margin-top: 6px; line-height: 1.48; }
.overlap-grid { margin-top: 12px; padding-top: 8px; border-top: 1px solid #7f9b8e; display: grid; grid-template-columns: repeat(2, 1fr); gap: 5px 14px; }
.overlap-grid strong { color: #ffdd80; margin-right: 4px; }
.lab-comparison:not(:empty) { margin-top: 16px; }
.run-list { margin-top: 8px; border: 1px solid var(--line); border-radius: 10px; }
.run-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px; }
.run-row + .run-row { border-top: 1px solid var(--line); }
.run-row .button { flex-shrink: 0; }
.run-row p { color: var(--muted); margin-top: 3px; }
#research-evidence { display: grid; gap: 10px; }
.evidence-card { display: grid; gap: 9px; margin: 0; }
.evidence-card legend { font-weight: 750; padding: 0 5px; }
.brief-fields { display: grid; gap: 8px; }
.brief-fields div, .brief-evidence article { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.brief-fields dt { font-weight: 740; }
.brief-fields dd { margin: 3px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.45; }
.brief-evidence { display: grid; gap: 7px; margin: 8px 0 12px; }
.brief-evidence h4 { margin: 0 0 5px; }
.brief-evidence p { line-height: 1.45; }
.brief-checks { list-style: none; display: grid; gap: 5px; padding: 0; margin: 10px 0 0; }

.course-hero { margin-top: 24px; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: stretch; gap: 20px; background: #133b2d; color: #fffbec; border-radius: 24px; padding: clamp(20px, 5vw, 53px); }
.course-hero h1 { font: 400 clamp(2.6rem, 6vw, 5.1rem)/.98 Georgia, serif; letter-spacing: -.06em; margin: 13px 0 15px; }
.course-hero p { line-height: 1.55; max-width: 40rem; }
.course-hero .hero-label { color: #d9e7d4; }
.course-hero .formula { display: grid; align-content: center; padding: 20px; min-width: 0; min-height: 180px; border: 1px solid #779b85; border-radius: 15px; background: #174837; }
.formula p { color: #f9de91; font: clamp(1.55rem, 3vw, 2.8rem)/1.2 Georgia, serif; }
.formula span { display: block; color: #e1ecdf; margin-top: 6px; }
.course-columns { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .86fr); gap: 18px; margin: 25px 0 30px; }
.course-columns article { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; background: var(--white); }
.course-columns article p { line-height: 1.52; margin-top: 10px; }
.course-columns h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.course-followup { margin-bottom: 25px; }

@media (max-width: 980px) {
  .studio-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 650px) {
  .studio-grid { grid-template-columns: 1fr; }
  .studio-card { padding: 16px; }
  .studio-card-head { margin-bottom: 9px; }
  .course-feature { grid-template-columns: auto minmax(0, 1fr); }
  .course-feature .button { grid-column: 2; justify-self: start; }
  .course-hero, .course-columns { grid-template-columns: 1fr; }
  .course-hero .formula { min-height: 100px; }
  .lab-controls { gap: 6px; }
  .run-row { align-items: start; flex-direction: column; }
}
@media (max-width: 420px) {
  .studio-history li { align-items: start; flex-direction: column; }
  .lab-controls .form-field { font-size: .83rem; }
  .replica-zone { padding-inline: 5px; }
}
