.studio-page {
  --studio-accent: #536846;
  --studio-soft: #edf2e8;
}
.studio-page :is(input, textarea, select, button, a):focus-visible {
  outline: 3px solid #799a60;
  outline-offset: 3px;
}
.studio-panel,
.studio-source-card,
.studio-production-card,
.studio-direction,
.studio-clip,
.studio-version {
  min-width: 0;
  border: 1px solid var(--line, #deded6);
  border-radius: 16px;
  background: white;
}
.studio-panel {
  padding: 26px;
  margin-bottom: 22px;
}
.studio-panel h2,
.studio-panel h3 {
  margin: 0 0 12px;
}
.studio-panel p {
  line-height: 1.7;
}
.studio-intro {
  background: var(--studio-soft);
  padding: 30px;
}
.studio-intro h2 {
  max-width: 700px;
  font-size: 28px;
  line-height: 1.3;
}
.studio-intro p {
  max-width: 720px;
  margin: 14px 0;
}
.studio-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.studio-section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}
.studio-section-head h2,
.studio-section-head h3 {
  margin: 0;
}
.studio-section-head > span {
  color: var(--muted);
  font-size: 12px;
}
.studio-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.studio-source-card,
.studio-production-card,
.studio-direction {
  padding: 20px;
}
.studio-source-card {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 12px;
  cursor: pointer;
}
.studio-source-card:has(input:checked) {
  border-color: var(--studio-accent);
  background: #f3f6ee;
}
.studio-source-card > input {
  margin-top: 3px;
  accent-color: var(--studio-accent);
}
.studio-source-card strong {
  display: block;
  overflow-wrap: anywhere;
  margin-bottom: 9px;
}
.studio-source-card p,
.studio-production-card p,
.studio-direction p {
  font-size: 12px;
  line-height: 1.75;
  margin: 9px 0;
}
.studio-source-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.studio-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 9px;
  border-radius: 7px;
  font-size: 11px;
  line-height: 1.4;
  background: #edf0e8;
  color: #3e4f34;
}
.studio-pill.warning {
  background: #fff1d3;
  color: #71531b;
}
.studio-pill.neutral {
  background: #eeedf3;
  color: #565066;
}
.studio-pill svg {
  width: 12px;
  height: 12px;
}
.studio-source-review {
  list-style: none;
  padding: 0;
  margin: 0;
}
.studio-source-review li {
  padding: 15px 0;
  border-top: 1px solid var(--line);
}
.studio-source-review li:first-child {
  border-top: 0;
}
.studio-source-review strong,
.studio-source-review span {
  display: block;
}
.studio-source-review span {
  margin-top: 7px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}
.studio-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.studio-form-grid .field {
  margin: 0;
  min-width: 0;
}
.studio-form-grid .studio-wide {
  grid-column: 1 / -1;
}
.studio-hint {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.75;
}
.studio-notice {
  padding: 17px 20px;
  margin: 0 0 20px;
  border: 1px solid #d6c49c;
  border-radius: 12px;
  background: #fff7e5;
  line-height: 1.7;
  font-size: 13px;
}
.studio-notice .studio-actions {
  margin-top: 12px;
}
.studio-save-state {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
  font-size: 12px;
}
.studio-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 0 0 22px;
}
.studio-tabs button {
  padding: 11px 17px;
  border: 1px solid var(--line);
  background: white;
  border-radius: 9px;
  cursor: pointer;
  color: inherit;
}
.studio-tabs button[aria-current="page"] {
  background: #e7eddc;
  border-color: #8d9d78;
  color: #35462d;
}
.studio-directions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 20px;
}
.studio-direction h3 {
  margin-bottom: 10px;
}
.studio-direction details {
  margin: 17px 0;
  font-size: 12px;
  line-height: 1.75;
}
.studio-evidence {
  padding-left: 19px;
}
.studio-evidence li {
  margin: 9px 0;
}
.studio-workbench {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  align-items: start;
  gap: 22px;
}
.studio-workbench > * {
  min-width: 0;
}
.studio-clip {
  padding: 22px;
  margin-bottom: 16px;
}
.studio-clip-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}
.studio-clip-head strong {
  font-size: 14px;
  overflow-wrap: anywhere;
}
.studio-clip-head .studio-actions button {
  min-height: 36px;
  padding: 7px 10px;
  font-size: 11px;
}
.studio-clip .field {
  font-size: 12px;
}
.studio-clip .field input,
.studio-clip .field select {
  min-width: 0;
  width: 100%;
}
.studio-clip-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 17px;
}
.studio-check {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  line-height: 1.5;
}
.studio-check input {
  accent-color: var(--studio-accent);
}
.studio-add-clip {
  padding: 22px;
  border: 1px dashed #aab699;
  border-radius: 14px;
  background: #f8faf4;
}
.studio-empty {
  padding: 24px;
  border: 1px dashed #c7d0bf;
  border-radius: 12px;
  background: #f8faf4;
  line-height: 1.8;
}
.studio-preview {
  padding: 22px;
  background: #f0f3eb;
  border-radius: 14px;
}
.studio-preview video {
  display: block;
  width: 100%;
  max-height: 480px;
  background: #20271f;
  border-radius: 10px;
  margin: 18px 0;
}
.studio-version {
  padding: 18px;
  margin-bottom: 12px;
}
.studio-version > p {
  margin: 9px 0;
  font-size: 12px;
  line-height: 1.7;
}
.studio-artifacts {
  list-style: none;
  padding: 0;
}
.studio-artifacts li {
  padding: 14px 0;
  border-top: 1px solid var(--line);
}
.studio-artifacts .studio-actions {
  margin-top: 9px;
}
.studio-inspection {
  margin-top: 18px;
}
.studio-inspection video {
  width: 100%;
  max-height: 400px;
  border-radius: 12px;
  background: #20271f;
}
.studio-error {
  margin: 14px 0;
  color: #8b3030;
  line-height: 1.7;
  font-size: 13px;
}
.studio-narration audio {
  display: block;
  width: 100%;
  margin: 18px 0;
}
.studio-narration form {
  margin: 18px 0;
}
.studio-approved-text {
  padding: 18px;
  margin: 15px 0;
  background: var(--studio-soft);
  border-radius: 10px;
}
.studio-approved-text p {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.studio-review-checks {
  display: grid;
  gap: 12px;
  margin: 20px 0;
}
.studio-candidate video {
  display: block;
  width: 100%;
  max-height: 380px;
  border-radius: 12px;
  background: #20271f;
  margin: 18px 0;
}
.studio-candidate form {
  margin-top: 20px;
}
.studio-candidate h4 {
  margin: 18px 0;
}
.studio-narration form > .btn {
  margin-top: 15px;
}
@media (max-width: 1120px) {
  .studio-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .studio-workbench {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 640px) {
  .studio-panel,
  .studio-intro,
  .studio-clip {
    padding: 19px;
  }
  .studio-intro h2 {
    font-size: 23px;
  }
  .studio-grid,
  .studio-directions,
  .studio-form-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .studio-form-grid .studio-wide {
    grid-column: auto;
  }
  .studio-actions .btn {
    max-width: 100%;
    white-space: normal;
    text-align: center;
  }
  .studio-clip-head {
    align-items: start;
  }
}
