.studio-hero {
  padding-bottom: 38px !important;
}
.studio-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 18px 0;
  border-block: 1px solid var(--line, #ded7d0);
}
.studio-toolbar select {
  max-width: 320px;
}
.studio-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 24px 0 32px;
}
.studio-tabs button,
.studio-toolbar button,
.studio-choice,
.studio-actions button {
  font: inherit;
  border: 1px solid var(--line, #ded7d0);
  background: #fff;
  color: #403848;
  border-radius: 999px;
  padding: 10px 16px;
  cursor: pointer;
}
.studio-tabs button[aria-current="true"],
.studio-choice[aria-pressed="true"] {
  background: #843c4a;
  color: #fff;
  border-color: #843c4a;
}
.studio-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: start;
}
.studio-card {
  background: #fffdf9;
  border: 1px solid var(--line, #ded7d0);
  border-radius: 24px;
  padding: 28px;
  min-width: 0;
}
.studio-card h2 {
  font-size: 32px;
  margin: 0 0 18px;
}
.studio-card h3 {
  margin: 20px 0 10px;
}
.studio-card p {
  line-height: 1.65;
}
.studio-card label {
  display: block;
  font-weight: 650;
  margin: 20px 0 7px;
}
.studio-card input:not([type="checkbox"]),
.studio-card select,
.studio-card textarea,
.studio-toolbar select {
  font: inherit;
  color: inherit;
  width: 100%;
  border: 1px solid #cfc6bd;
  background: #fff;
  border-radius: 12px;
  padding: 12px;
  box-sizing: border-box;
}
.studio-card textarea {
  resize: vertical;
  min-height: 90px;
}
.studio-card button:disabled {
  opacity: 0.5;
  cursor: wait;
}
.studio-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 20px;
}
.studio-actions .primary {
  background: #843c4a;
  color: white;
}
.studio-note {
  font-size: 14px;
  color: #6b6475;
}
.studio-result {
  padding: 20px;
  background: #f2e9df;
  border-radius: 16px;
  margin-top: 20px;
}
.studio-scripts {
  display: grid;
  gap: 10px;
}
.studio-scripts button {
  text-align: left;
  border: 1px solid #ded7d0;
  background: #fff;
  padding: 15px;
  border-radius: 14px;
  font: inherit;
  cursor: pointer;
}
.studio-record {
  border-top: 1px solid #ded7d0;
  padding: 20px 0;
  overflow-wrap: anywhere;
}
.studio-record blockquote {
  margin: 12px 0;
  white-space: pre-wrap;
}
.studio-check {
  display: flex !important;
  gap: 10px;
  align-items: start;
  font-weight: 400 !important;
}
.studio-check input {
  margin-top: 5px;
}
.studio-footnote {
  font-size: 13px;
  color: #6b6475;
  margin-top: 30px;
}
#studio-status {
  padding: 14px 0;
  overflow-wrap: anywhere;
}
#studio-status.error {
  color: #9c273e;
}
.studio-empty {
  padding: 35px;
  border: 1px dashed #cfc6bd;
  border-radius: 20px;
}
.tour-graph {
  max-width: 320px;
  max-height: 560px;
  margin: 0 auto;
}
.tour-graph svg {
  width: 100%;
  height: auto;
  max-height: 560px;
}
.tour-graph .tour-active {
  filter: drop-shadow(0 0 5px #843c4a);
  stroke: #843c4a !important;
  stroke-width: 4 !important;
}
.tour-list {
  display: grid;
  gap: 10px;
  margin-bottom: 20px;
}
.tour-list button {
  text-align: left;
}
.tour-transcript {
  white-space: pre-wrap;
}
.deck-card {
  min-height: 280px;
  background: linear-gradient(145deg, #fff8ef, #eee5f6);
  border: 1px solid #d5c4b3;
  border-radius: 24px;
  padding: 32px;
}
.deck-card h2 {
  font-size: 36px;
}
.deck-question {
  font-size: 24px !important;
  line-height: 1.45 !important;
}
.manual-preview {
  border: 1px solid #ded7d0;
  border-radius: 20px;
  padding: 30px;
  background: #fff;
}
.manual-preview h2 {
  font-size: 32px;
}
.manual-preview p {
  white-space: pre-wrap;
}
.timeline-list {
  border-left: 2px solid #d7b9a1;
  margin-left: 8px;
  padding-left: 28px;
}
.timeline-list article {
  position: relative;
  padding: 20px 0;
}
.timeline-list article:before {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #843c4a;
  left: -35px;
  top: 26px;
}
.timeline-list p {
  white-space: pre-wrap;
}
.lab-time {
  color: #843c4a;
  font-weight: 650;
}
.studio-card a {
  color: #843c4a;
  text-decoration: underline;
}
.studio-card [hidden],
[hidden] {
  display: none !important;
}
button:focus-visible,
a:focus-visible,
select:focus-visible {
  outline: 3px solid #843c4a;
  outline-offset: 3px;
}
audio,
video {
  max-width: 100%;
  width: 100%;
}
@media (max-width: 760px) {
  .studio-grid {
    grid-template-columns: 1fr;
  }
  .studio-card {
    padding: 22px;
  }
  .studio-tabs {
    gap: 6px;
  }
  .studio-tabs button {
    font-size: 14px;
    padding: 9px 12px;
  }
  .studio-toolbar select {
    max-width: none;
  }
  .studio-hero h1 {
    font-size: 44px;
  }
  .deck-card {
    padding: 24px;
  }
  .deck-card h2 {
    font-size: 30px;
  }
  .manual-preview {
    padding: 22px;
  }
}
@media print {
  body > * {
    display: none !important;
  }
  body > .manual-print {
    display: block !important;
    margin: 30px;
    font-family: Georgia, serif;
  }
  .manual-print h1 {
    font-size: 32px;
  }
  .manual-print p {
    white-space: pre-wrap;
    line-height: 1.7;
  }
  .manual-print section {
    break-inside: avoid;
  }
}
