.studio-project-bar { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.studio-project-bar h3 { margin: 6px 0 0; font-size: 20px; letter-spacing: -.03em; }
.studio-project-actions { display: flex; align-items: center; gap: 10px; }
.studio-project-actions select { min-width: 240px; background: #fff; }
.studio-empty { padding: 75px 30px; text-align: center; }
.studio-empty h3 { margin: 14px 0 12px; font-size: 27px; letter-spacing: -.04em; }
.studio-empty p { max-width: 650px; margin: 0 auto 26px; color: var(--muted); font-size: 12px; line-height: 1.9; }
.studio-stepper { list-style: none; padding: 0; margin: 0 0 24px; display: grid; grid-template-columns: repeat(5, 1fr); background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.studio-stepper li { position: relative; display: flex; align-items: center; gap: 10px; padding: 16px 17px; color: #8b918c; cursor: pointer; }
.studio-stepper li:not(:last-child)::after { content: ""; position: absolute; right: 0; top: 18px; bottom: 18px; width: 1px; background: var(--line); }
.studio-stepper li > span { width: 27px; height: 27px; display: grid; place-items: center; border-radius: 50%; background: #f0f1ef; font-size: 10px; font-weight: 750; }
.studio-stepper li b { display: block; font-size: 11px; color: #555b57; }
.studio-stepper li small { display: block; margin-top: 3px; font-size: 8px; }
.studio-stepper li.ready > span { color: var(--green); background: #e8f5ee; }
.studio-stepper li.generating > span { color: var(--amber); background: #fff4df; animation: studioPulse 1.4s infinite; }
.studio-stepper li.failed > span, .studio-stepper li.stale > span { color: var(--brand); background: var(--brand-soft); }
@keyframes studioPulse { 50% { opacity: .45; } }
.studio-operation { margin-bottom: 18px; padding: 13px 16px; border-radius: 10px; background: #fff4df; color: #8b5b17; font-size: 11px; }
.studio-step-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 26px; margin-bottom: 22px; box-shadow: var(--shadow); scroll-margin-top: 20px; }
.studio-step-heading { display: flex; align-items: flex-start; gap: 15px; margin-bottom: 24px; }
.studio-step-heading > div:nth-child(2) { flex: 1; }
.studio-step-heading h3 { margin: 5px 0 6px; font-size: 19px; letter-spacing: -.025em; }
.studio-step-heading p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.7; }
.studio-number { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: var(--brand-soft); color: var(--brand); font-size: 10px; font-weight: 800; }
.studio-status { display: inline-flex; align-items: center; border-radius: 20px; padding: 6px 10px; background: #f0f1ef; color: #777d78; font-size: 9px; white-space: nowrap; }
.studio-status.ready { color: var(--green); background: #e8f5ee; }
.studio-status.generating { color: var(--amber); background: #fff4df; }
.studio-status.stale, .studio-status.failed { color: var(--brand); background: var(--brand-soft); }
.studio-step-card[data-studio-section="references"] { padding: 20px 22px 16px; }
.studio-step-card[data-studio-section="references"] .studio-step-heading { margin-bottom: 14px; }
.reference-groups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 11px; }
.reference-group { border: 1px solid var(--line); border-radius: 11px; padding: 10px 11px 12px; min-width: 0; }
.reference-group-title { margin-bottom: 8px; }
.reference-group-title h4 { margin: 0 0 2px; font-size: 11px; }
.reference-group-title p { margin: 0; color: #9a9f9b; font-size: 8px; line-height: 1.4; }
.reference-grid { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-start; }
.reference-item { position: relative; flex: 0 0 80px; width: 80px; min-width: 0; }
.reference-thumb { position: relative; width: 80px; height: 80px; border-radius: 8px; overflow: hidden; background: #eff1ee; }
.reference-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.reference-delete { position: absolute; top: 4px; right: 4px; width: 19px; height: 19px; border: 0; border-radius: 5px; background: rgba(25,28,26,.74); color: white; font-size: 13px; line-height: 1; }
.reference-asset-input { width: 80px; margin-top: 6px; padding: 5px 6px; border-radius: 6px; font-size: 8px; }
.reference-upload-tile { position: relative; flex: 0 0 80px; width: 80px; height: 80px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; border: 1px dashed #cfd4cf; border-radius: 8px; background: #fafbf9; color: #7d837e; cursor: pointer; transition: border-color .15s, color .15s, background .15s; }
.reference-upload-tile:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }
.reference-upload-tile span { font-size: 24px; font-weight: 300; line-height: 1; }
.reference-upload-tile small { font-size: 8px; }
.reference-upload-tile input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.reference-upload-tile.disabled { opacity: .45; pointer-events: none; }
.reference-empty { display: none; }
.studio-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 17px; }
.studio-form-grid .full { grid-column: 1 / -1; }
.studio-form-grid label, .audio-input-grid label, .voice-settings label, .video-prompt-label { display: flex; flex-direction: column; gap: 8px; color: #555b57; font-size: 11px; font-weight: 650; }
.studio-button-row { display: flex; align-items: center; gap: 13px; flex-wrap: wrap; margin: 16px 0; }
.sync-note { color: #939894; font-size: 9px; }
.reference-text-preview { padding: 14px; border-radius: 10px; background: #f6f7f5; }
.reference-text-preview > span { color: #838984; font-size: 9px; }
.reference-text-preview pre { margin: 9px 0 0; white-space: pre-wrap; color: #4d534e; font: 11px/1.8 "PingFang SC", "Microsoft YaHei", sans-serif; }
.audio-input-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 16px; margin-bottom: 18px; }
.voice-settings { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; padding: 16px; border-radius: 11px; background: #f7f8f6; }
.voice-settings output { float: right; color: var(--brand); }
.voice-settings input[type="range"] { padding: 0; accent-color: var(--brand); box-shadow: none; }
.voice-settings small { color: #9ba09c; font-size: 8px; font-weight: 400; }
.audio-results { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 20px; }
.audio-result { border: 1px solid var(--line); border-radius: 12px; padding: 17px; }
.audio-result.emphasized { border-color: #ecc4bd; background: #fffaf8; }
.audio-result > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.audio-result h4 { margin: 0; font-size: 12px; }
.audio-result span { color: #8f9490; font-size: 9px; }
.audio-result audio { width: 100%; height: 34px; margin: 15px 0 9px; }
.audio-result p { margin: 0; color: #929793; font-size: 9px; line-height: 1.6; }
.video-sync-panel { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 16px 18px; border-radius: 11px; background: #f6f7f5; }
.video-sync-panel h4 { margin: 5px 0; font-size: 13px; }
.video-sync-panel p { margin: 0; color: #8b918c; font-size: 9px; }
.video-sync-panel audio { width: 45%; height: 34px; }
.video-param-panel { margin-top: 14px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 11px; background: #fbfcfa; }
.video-param-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 12px; }
.video-param-head h4 { margin: 0 0 3px; font-size: 12px; }
.video-param-head p { margin: 0; color: #8f9490; font-size: 9px; line-height: 1.6; }
.chip-note { flex: none; padding: 4px 7px; border-radius: 20px; background: #f0f1ef; color: #8b918c; font-size: 8px; }
.video-param-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.video-param-grid label { display: flex; flex-direction: column; gap: 5px; color: #555b57; font-size: 10px; font-weight: 650; }
.video-param-grid select { padding: 7px 8px; border-radius: 7px; font-size: 10px; }
.video-param-grid small { color: #9ba09c; font-size: 8px; font-weight: 400; line-height: 1.45; }
.video-duration-row { display: grid; grid-template-columns: auto minmax(100px, 1fr) auto auto; align-items: center; gap: 12px; margin-top: 13px; padding-top: 12px; border-top: 1px solid #eceeeb; }
.video-duration-label b { display: block; font-size: 10px; color: #555b57; }
.video-duration-label span { display: block; margin-top: 2px; color: #9ba09c; font-size: 8px; }
.video-duration-row input[type="range"] { padding: 0; accent-color: var(--brand); }
.video-duration-row output { min-width: 44px; color: var(--brand); font-size: 11px; font-weight: 700; text-align: right; }
.auto-duration { display: flex; align-items: center; gap: 5px; color: #646a65; font-size: 9px; cursor: pointer; }
.auto-duration input { width: auto; }
.video-toggle-grid { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 11px; padding-top: 11px; border-top: 1px solid #eceeeb; }
.video-toggle-grid label { display: grid; grid-template-columns: 14px auto; align-items: center; column-gap: 5px; color: #555b57; font-size: 9px; cursor: pointer; }
.video-toggle-grid input { grid-row: 1 / 3; width: auto; margin: 0; }
.video-toggle-grid small { grid-column: 2; color: #9ba09c; font-size: 7px; line-height: 1.3; }
.video-prompt-label { margin-top: 18px; }
.video-result { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.video-result > div { display: flex; align-items: center; justify-content: space-between; }
.video-result h4 { margin: 0; }
.video-result video { display: block; width: min(360px, 100%); max-height: 620px; margin: 15px auto; border-radius: 12px; background: #111; }
.video-result .button { display: flex; width: fit-content; margin: 0 auto; }
.editing-placeholder { box-shadow: none; background: #f8f9f7; }
.editing-slot { padding: 25px; border: 1px dashed #d6dad5; border-radius: 10px; color: #989d99; text-align: center; font-size: 10px; }
.video-confirm-summary { margin: 20px 0; padding: 15px; border-radius: 10px; background: #f6f7f5; font-size: 11px; line-height: 2; color: #555b57; }
.modal-sticky .modal-panel { width: min(560px, calc(100vw - 32px)); }
.action-error-detail { margin: 16px 0; padding: 14px; max-height: 260px; overflow: auto; border: 1px solid #efd2cc; border-radius: 10px; background: #fff8f6; color: #8c3b30; font: 11px/1.75 "PingFang SC", "Microsoft YaHei", sans-serif; white-space: pre-wrap; word-break: break-word; }
@media (max-width: 1180px) {
  .voice-settings { grid-template-columns: repeat(3, 1fr); }
  .reference-groups { grid-template-columns: 1fr; }
  .reference-grid { gap: 8px; }
  .video-param-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .studio-stepper li { padding: 12px 9px; }
  .studio-stepper li small { display: none; }
  .voice-settings { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .studio-project-bar { align-items: flex-start; flex-direction: column; }
  .studio-project-actions { width: 100%; }
  .studio-project-actions select { min-width: 0; flex: 1; }
  .studio-stepper { overflow-x: auto; grid-template-columns: repeat(5, minmax(90px, 1fr)); }
  .studio-stepper li { justify-content: center; }
  .studio-stepper li > span { display: none; }
  .studio-step-card { padding: 19px 16px; }
  .studio-step-heading { gap: 10px; flex-wrap: wrap; }
  .studio-step-heading .studio-status { margin-left: 44px; }
  .studio-form-grid, .audio-input-grid, .audio-results { grid-template-columns: 1fr; }
  .voice-settings { grid-template-columns: 1fr; }
  .video-param-grid { grid-template-columns: 1fr; }
  .video-duration-row { grid-template-columns: 1fr auto auto; }
  .video-duration-label { grid-column: 1 / -1; }
  .video-param-head { flex-direction: column; gap: 6px; }
  .video-sync-panel { align-items: flex-start; flex-direction: column; }
  .video-sync-panel audio { width: 100%; }
  .studio-button-row .button { width: 100%; }
}
