:root {
  color-scheme: light;
  --ink: #16181d;
  --muted: #7b818c;
  --line: #e8eaf0;
  --soft: #f7f8fb;
  --blue: #4c70ff;
  --violet: #8b62f5;
  --dark: #1d2028;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: #fbfbfc; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.app-shell { min-height: 100vh; background: radial-gradient(circle at 80% 3%, rgba(216,223,255,.42), transparent 28%), #fbfbfc; }
.topbar { height: 80px; max-width: 1400px; margin: 0 auto; padding: 0 42px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(225,227,234,.72); }
.brand { display: flex; align-items: center; gap: 11px; color: var(--ink); text-decoration: none; letter-spacing: -.03em; }
.brand-mark { width: 30px; height: 30px; display: grid; place-items: center; color: #fff; background: var(--dark); border-radius: 9px; font-weight: 800; font-size: 16px; }
.brand b { display: block; font-size: 17px; line-height: 15px; }
.brand small { display: block; color: #999eaa; font-size: 9px; letter-spacing: .16em; text-transform: uppercase; margin-top: 4px; }
.top-actions { display: flex; align-items: center; gap: 12px; }
.status-pill { color: #657080; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 8px 12px; font-size: 11px; }
.status-pill.live { color: #3462d8; background: #f0f4ff; border-color: #d9e1ff; }
.icon-button, .avatar { width: 32px; height: 32px; border: 1px solid var(--line); border-radius: 50%; background: #fff; color: #858b96; }
.avatar { display: grid; place-items: center; background: var(--dark); border: 0; color: #fff; font-size: 12px; }
.workspace { max-width: 1400px; margin: 0 auto; padding: 42px; }
.hero { min-height: 355px; display: flex; justify-content: space-between; align-items: center; padding: 46px 58px; overflow: hidden; border: 1px solid #e8eaf0; border-radius: 26px; background: linear-gradient(112deg, #fff 0%, #fff 49%, #f4f6ff 100%); box-shadow: 0 24px 70px rgba(50,57,83,.06); }
.eyebrow, .side-title { color: #8c919b; font-size: 10px; font-weight: 800; letter-spacing: .18em; }
.hero h1 { margin: 15px 0 16px; font-size: clamp(38px, 5.2vw, 72px); line-height: .98; letter-spacing: -.075em; }
.hero h1 em { color: #637aff; font-style: normal; }
.hero p { max-width: 560px; margin: 0; color: var(--muted); line-height: 1.75; font-size: 15px; }
.hero-stats { display: flex; gap: 34px; margin-top: 34px; }
.hero-stats div { display: flex; flex-direction: column; gap: 5px; }
.hero-stats strong { font-size: 20px; letter-spacing: -.04em; }
.hero-stats span { color: #9ba0ab; font-size: 11px; }
.hero-art { position: relative; width: 340px; height: 260px; margin-right: 30px; flex: 0 0 auto; }
.orbit { position: absolute; inset: 25px 0 0 15px; width: 280px; height: 180px; border: 1px solid #cad3ff; border-radius: 50%; transform: rotate(-24deg); }
.orbit-two { transform: rotate(30deg); border-color: #e0cdfc; }
.orb { position: absolute; left: 110px; top: 70px; width: 100px; height: 100px; border-radius: 50%; background: radial-gradient(circle at 35% 25%, #fff 0 4%, #c8d2ff 13%, #6379ff 54%, #343e98 100%); box-shadow: 0 20px 45px rgba(82,98,214,.28); }
.art-label { position: absolute; color: #9aa2bd; font-size: 9px; letter-spacing: .16em; }
.label-one { top: 25px; right: 12px; }.label-two { bottom: 22px; left: 3px; }.label-three { bottom: 45px; right: 6px; }
.workspace-grid { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 20px; margin-top: 20px; align-items: start; }
.main-column, .side-column { display: flex; flex-direction: column; gap: 20px; }
.card { padding: 28px; border: 1px solid var(--line); border-radius: 20px; background: rgba(255,255,255,.92); box-shadow: 0 12px 45px rgba(50,57,83,.035); }
.step-heading { display: flex; gap: 13px; align-items: flex-start; margin-bottom: 23px; }
.step-heading.compact { margin-bottom: 0; }
.step-number { color: #8190d6; font-size: 11px; font-weight: 800; letter-spacing: .1em; padding-top: 4px; }
h2 { margin: 0 0 6px; font-size: 19px; letter-spacing: -.04em; }
.step-heading p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.dropzone { min-height: 220px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 9px; cursor: pointer; border: 1px dashed #cfd5e1; border-radius: 16px; color: var(--ink); background: linear-gradient(180deg, #fcfdff, #f8f9fc); transition: .2s ease; }
.dropzone:hover, .dropzone.dragover { border-color: var(--blue); background: #f4f6ff; transform: translateY(-1px); }
.dropzone input { display: none; }
.upload-icon { width: 43px; height: 43px; display: grid; place-items: center; border-radius: 14px; color: #fff; background: var(--dark); font-size: 23px; line-height: 1; }
.dropzone strong { font-size: 14px; }.dropzone span { color: #a0a6b1; font-size: 11px; }
.source-video { width: 100%; max-height: 430px; margin-top: 18px; border-radius: 13px; background: #101218; }
.file-meta { min-height: 18px; margin-top: 12px; color: #858c98; font-size: 11px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field-label, .field span { display: block; margin: 0 0 8px; color: #6f7682; font-size: 11px; font-weight: 700; }
input[type="file"], input, textarea, select { width: 100%; color: var(--ink); border: 1px solid #e0e3ea; border-radius: 10px; outline: 0; background: #fff; padding: 12px 13px; }
input[type="file"] { color: #858b96; font-size: 11px; padding: 10px; }
input:focus, textarea:focus, select:focus { border-color: #8da1ff; box-shadow: 0 0 0 3px #eef1ff; }
.primary-button { width: 100%; display: flex; align-items: center; justify-content: space-between; margin-top: 20px; padding: 14px 16px; color: #fff; background: var(--dark); border: 0; border-radius: 11px; transition: .2s ease; }
.primary-button:hover:not(:disabled) { background: #303541; transform: translateY(-1px); }.primary-button:disabled { opacity: .38; cursor: not-allowed; }
.primary-button b { color: #9cafff; font-size: 19px; font-weight: 400; }.section-topline { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin-bottom: 24px; }.text-button { border: 0; color: #6178e7; background: transparent; font-size: 11px; padding: 5px; white-space: nowrap; }.text-button span { font-size: 18px; vertical-align: -2px; }
.analysis-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: -7px 0 22px; }.analysis-meta span { color: #606b7d; background: #f4f6fa; border-radius: 999px; padding: 6px 9px; font-size: 10px; }.analysis-meta .done { color: #3564d5; background: #eef3ff; }
.style-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 20px; }.field input, .field textarea { margin-top: 0; }.field textarea { min-height: 94px; line-height: 1.6; resize: vertical; }
.shot-card, .result-card { margin-top: 12px; padding: 18px; border: 1px solid #e9ebf0; border-radius: 14px; background: #fcfcfd; }.shot-head, .result-card > div:first-child { display: flex; justify-content: space-between; gap: 10px; color: #444b58; font-size: 12px; }.shot-head span { color: #7487e4; font-variant-numeric: tabular-nums; }.shot-facts { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0; }.shot-facts span, .status { color: #697485; background: #f0f2f6; border-radius: 999px; padding: 5px 8px; font-size: 10px; }
.shot-detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 16px; margin: 12px 0 16px; padding: 12px; border: 1px solid #eef0f4; border-radius: 10px; background: #fff; }.shot-detail-grid div { min-width: 0; }.shot-detail-grid b { display: block; margin-bottom: 4px; color: #8a93a1; font-size: 10px; }.shot-detail-grid span { display: block; color: #4f5968; font-size: 11px; line-height: 1.55; overflow-wrap: anywhere; }
.shot-prompt-field textarea { min-height: 112px; overflow: hidden; resize: none; white-space: pre-wrap; line-height: 1.75; }
.shot-prompt-card > .shot-prompt-field { display: block; margin-top: 16px; }
.shot-technical-content { padding-top: 4px; }
.result-card small { display: block; margin-top: 7px; color: #7d8796; font-size: 10px; }
.modal-backdrop { position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; padding: 20px; background: rgba(25, 30, 42, .26); backdrop-filter: blur(8px); }.modal-backdrop.hidden { display: none; }.workspace-modal { width: min(420px, 100%); padding: 26px; border: 1px solid #eef0f5; border-radius: 18px; background: #fff; box-shadow: 0 24px 80px rgba(25, 31, 48, .18); }.modal-kicker { margin-bottom: 8px; color: #7184e4; font-size: 9px; letter-spacing: .16em; }.workspace-modal h2 { margin: 0 0 8px; color: #2c3441; font-size: 21px; }.workspace-modal p { margin: 0 0 20px; color: #858e9d; font-size: 11px; line-height: 1.6; }.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }
.side-card { padding: 23px; }.side-title { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }.live-dot { width: 7px; height: 7px; margin-right: 5px; display: inline-block; border-radius: 50%; background: #6d86ff; box-shadow: 0 0 0 4px #edf0ff; }.side-card h3 { margin: 0 0 8px; font-size: 18px; letter-spacing: -.04em; }.side-copy { margin: 0; color: #858c99; font-size: 12px; line-height: 1.65; }.pipeline { margin-top: 22px; }.pipeline-item { display: flex; align-items: center; gap: 10px; }.pipeline-item div { display: flex; flex-direction: column; gap: 4px; }.pipeline-item b { font-size: 12px; }.pipeline-item small { color: #9a9fab; font-size: 10px; word-break: break-all; }.pipeline-dot { width: 9px; height: 9px; flex: 0 0 auto; border-radius: 50%; }.pipeline-dot.blue { background: #6784ff; }.pipeline-dot.violet { background: #9c75f2; }.pipeline-dot.dark { background: #2b2f39; }.pipeline-line { height: 21px; margin-left: 4px; border-left: 1px dashed #d9dce5; }
.side-count { color: #a2a8b3; font-size: 10px; }.workflow-list { display: grid; gap: 3px; }.workflow-item { display: flex; gap: 12px; align-items: center; padding: 12px 10px; border-radius: 11px; }.workflow-item.active { background: #f5f6ff; }.workflow-item > span { color: #a0a6b0; font-size: 10px; }.workflow-item b, .workflow-item small { display: block; }.workflow-item b { font-size: 12px; }.workflow-item small { color: #9ba1ad; margin-top: 3px; font-size: 10px; }.config-list { display: grid; gap: 10px; }.config-list div { display: flex; justify-content: space-between; gap: 12px; color: #8a909c; font-size: 10px; }.config-list strong { color: #4b5360; text-align: right; font-size: 10px; word-break: break-word; }.security-note { margin: 18px 0 0; padding-top: 14px; border-top: 1px solid #eef0f3; color: #9ca2ac; font-size: 10px; line-height: 1.5; }
.job-summary { padding: 18px 0 5px; color: #4d6de0; font-size: 12px; }.mock-output { margin-top: 12px; padding: 14px; color: #7e6a2f; border: 1px dashed #e1d6b1; border-radius: 10px; background: #fffdf5; font-size: 12px; }.error { padding: 14px 0; color: #c44f62; font-size: 12px; }code { color: #526fe0; }
footer { max-width: 1400px; margin: 0 auto; padding: 18px 42px 38px; display: flex; justify-content: space-between; color: #a1a6b0; font-size: 10px; letter-spacing: .06em; }
.hidden { display: none; }
.workspace-bar { margin: 0 0 18px; padding: 14px 18px; border: 1px solid #e8ebf1; border-radius: 16px; background: rgba(255,255,255,.86); box-shadow: 0 10px 30px rgba(33,42,66,.04); }.workspace-bar-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }.workspace-kicker { display: block; margin-bottom: 4px; color: #8d96a7; font-size: 9px; letter-spacing: .16em; }.workspace-bar-head strong { color: #27303d; font-size: 14px; }.workspace-actions { display: flex; align-items: center; gap: 8px; }.workspace-actions select { width: 180px; padding: 9px 10px; font-size: 11px; }.small-button { padding: 9px 12px; color: #fff; background: #252b37; border: 0; border-radius: 9px; font-size: 11px; cursor: pointer; }.small-button.ghost { color: #5e6878; background: #f0f2f6; }.workspace-panel { display: flex; justify-content: space-between; gap: 14px; margin-top: 12px; padding-top: 12px; color: #8a93a0; border-top: 1px solid #eef0f4; font-size: 11px; }.workspace-panel.collapsed { display: none; }.workspace-count { color: #7182df; white-space: nowrap; }.identity-section { margin: 24px 0 20px; padding-top: 20px; border-top: 1px solid #edf0f4; }.identity-section-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 14px; }.identity-section-head h3 { margin: 0 0 6px; color: #343b48; font-size: 15px; }.identity-section-head p { max-width: 680px; margin: 0; color: #87909d; font-size: 11px; line-height: 1.6; }.identity-hint { color: #788be8; font-size: 9px; letter-spacing: .14em; white-space: nowrap; }.identities-editor { display: grid; gap: 10px; }.identity-card { display: grid; grid-template-columns: 86px minmax(0, 1fr) 170px; align-items: center; gap: 14px; padding: 12px; border: 1px solid #e9ecf2; border-radius: 12px; background: #fbfcfe; }.identity-original, .identity-replacement { position: relative; min-height: 82px; overflow: hidden; border-radius: 9px; background: #f0f2f6; }.identity-original img, .identity-replacement img { display: block; width: 100%; height: 82px; object-fit: cover; }.identity-original small, .identity-replacement > span { position: absolute; right: 5px; bottom: 5px; left: 5px; z-index: 1; padding: 3px 4px; color: #fff; background: rgba(25,29,38,.64); border-radius: 4px; font-size: 9px; text-align: center; }.identity-info { min-width: 0; }.identity-title { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }.identity-title strong { color: #343c49; font-size: 12px; }.identity-title span { padding: 3px 6px; color: #6d7cdf; background: #eef1ff; border-radius: 999px; font-size: 9px; }.identity-info p { margin: 0 0 6px; color: #616c7c; font-size: 11px; line-height: 1.5; }.identity-info small { display: block; color: #9aa2ae; font-size: 10px; line-height: 1.4; }.identity-replacement { display: block; cursor: pointer; }.identity-replacement input { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; padding: 0; opacity: 0; cursor: pointer; }.identity-upload-placeholder { display: grid; height: 82px; place-items: center; padding: 10px; color: #7f8998; font-size: 10px; text-align: center; }.identity-empty { padding: 16px; color: #8b94a2; border: 1px dashed #dfe3eb; border-radius: 10px; font-size: 11px; }.shot-accordion { padding: 0; }.shot-accordion > summary { padding: 18px; cursor: pointer; list-style: none; }.shot-accordion > summary::-webkit-details-marker { display: none; }.shot-accordion > summary::after { content: "+"; color: #7588e8; font-size: 18px; font-weight: 300; }.shot-accordion[open] > summary::after { content: "−"; }.shot-head i { margin-left: 8px; color: #a0a7b3; font-size: 9px; font-style: normal; }.shot-content { padding: 0 18px 18px; }
@media (max-width: 980px) { .workspace { padding: 24px; }.workspace-grid { grid-template-columns: 1fr; }.side-column { display: grid; grid-template-columns: repeat(3, 1fr); }.hero-art { width: 250px; transform: scale(.8); margin-right: -15px; } }
@media (max-width: 700px) { .topbar { padding: 0 18px; }.workspace { padding: 16px; }.hero { min-height: 0; padding: 30px 24px; }.hero-art { display: none; }.hero-stats { gap: 18px; }.form-grid, .style-grid, .side-column, .shot-detail-grid { grid-template-columns: 1fr; }.workspace-bar-head, .workspace-panel { display: block; }.workspace-actions { flex-wrap: wrap; margin-top: 10px; }.workspace-actions select { flex: 1 1 140px; width: auto; }.identity-section-head { display: block; }.identity-hint { display: block; margin-top: 8px; }.identity-card { grid-template-columns: 70px minmax(0, 1fr); }.identity-replacement { grid-column: 1 / -1; }.card { padding: 20px; }.section-topline { display: block; }.text-button { margin-top: 15px; padding-left: 0; }footer { padding: 18px; display: block; line-height: 2; }.status-pill { display: none; } }

/* Audio recognition and multi-emotion voice controls */
.identity-actions { display: grid; gap: 10px; min-width: 0; }
.audio-preferences { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 12px; padding: 13px 15px; border: 1px solid #e6e9f1; border-radius: 13px; background: linear-gradient(110deg, #f8f9ff, #fff); }
.audio-switch { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.audio-switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch-track { position: relative; width: 38px; height: 22px; border-radius: 99px; background: #cfd4df; transition: .2s ease; }
.switch-track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(30,36,48,.2); transition: .2s ease; }
.audio-switch input:checked + .switch-track { background: #6e7fe2; }
.audio-switch input:checked + .switch-track::after { transform: translateX(16px); }
.audio-switch b { display: block; color: #3b4351; font-size: 11px; }
.audio-switch small, .audio-status span { display: block; margin-top: 3px; color: #8c95a4; font-size: 10px; }
.audio-status { color: #626d7d; font-size: 10px; text-align: right; }
.audio-status b { display: block; color: #4e5969; font-size: 11px; }
.transcript-panel { margin-bottom: 10px; padding: 10px 13px; border: 1px solid #edf0f5; border-radius: 10px; background: #fff; color: #707b8b; font-size: 10px; }
.transcript-panel summary { cursor: pointer; color: #6778d4; list-style: none; }
.transcript-panel summary::-webkit-details-marker { display: none; }
.transcript-panel summary span { margin-left: 8px; color: #9aa3af; }
.transcript-panel p { margin: 9px 0 0; line-height: 1.7; }
.voice-controls { padding: 10px; border: 1px solid #e3e7f3; border-radius: 10px; background: #fff; transition: .2s ease; }
.voice-controls.is-disabled { opacity: .55; filter: grayscale(.3); }
.voice-control-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; color: #5362bb; font-size: 10px; }
.voice-control-head small { color: #a1a8b5; font-size: 9px; }
.voice-control-grid { display: grid; grid-template-columns: 1.2fr .8fr 1fr auto; gap: 6px; align-items: end; }
.voice-control-grid label { min-width: 0; }
.voice-control-grid label > span { display: flex; justify-content: space-between; margin-bottom: 4px; color: #929aa7; font-size: 9px; }
.voice-control-grid select, .voice-control-grid input[type="range"] { width: 100%; min-width: 0; }
.voice-control-grid select { padding: 7px 5px; color: #556171; border: 1px solid #e6e9ef; border-radius: 7px; background: #fbfcfe; font-size: 10px; }
.voice-control-grid input[type="range"] { accent-color: #7182e1; }
.voice-preview-button { height: 30px; padding: 0 9px; color: #6476d6; border: 1px solid #dbe0f3; border-radius: 7px; background: #f4f6ff; cursor: pointer; font-size: 10px; white-space: nowrap; }
.voice-preview-button:disabled, .voice-control-grid select:disabled, .voice-control-grid input:disabled { cursor: not-allowed; }
.audio-subject-card { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 12px; align-items: center; padding: 12px; border: 1px dashed #dfe4f1; border-radius: 12px; background: #fcfcff; }
.audio-subject-card > div:first-child strong { display: block; color: #4b5667; font-size: 12px; }
.audio-subject-card > div:first-child small { display: block; margin-top: 5px; color: #9aa2af; font-size: 10px; line-height: 1.4; }
@media (max-width: 700px) { .audio-preferences { display: block; }.audio-status { margin-top: 10px; text-align: left; }.identity-actions { grid-column: 1 / -1; }.voice-control-grid { grid-template-columns: 1fr 1fr; }.voice-preview-button { width: 100%; }.audio-subject-card { grid-template-columns: 1fr; } }

/* Product workspace polish */
:root {
  --ink: #161922;
  --muted: #7c8492;
  --line: #e7eaf0;
  --soft: #f5f7fb;
  --blue: #536ff6;
  --violet: #8664e8;
  --dark: #1c2029;
}
body {
  background:
    radial-gradient(circle at 86% -8%, rgba(196, 208, 255, .38), transparent 30rem),
    #f7f8fb;
}
.app-shell { background: transparent; }
.topbar {
  height: 72px;
  max-width: 1280px;
  padding: 0 32px;
  border-bottom: 1px solid rgba(222, 226, 235, .8);
}
.brand { gap: 10px; }
.brand-mark { width: 29px; height: 29px; border-radius: 8px; }
.top-actions { gap: 10px; }
.status-pill { padding: 7px 11px; background: rgba(255,255,255,.76); }
.workspace {
  max-width: 1280px;
  padding: 30px 32px 52px;
}
.hero {
  min-height: 318px;
  padding: 40px 48px;
  border-radius: 24px;
  background:
    linear-gradient(110deg, rgba(255,255,255,.98) 0%, rgba(255,255,255,.94) 50%, rgba(240,244,255,.96) 100%);
  box-shadow: 0 18px 55px rgba(42, 53, 86, .07);
}
.hero h1 {
  max-width: 680px;
  margin: 14px 0 15px;
  font-size: clamp(38px, 5vw, 64px);
}
.hero p { max-width: 520px; font-size: 14px; line-height: 1.7; }
.hero-stats { gap: 30px; margin-top: 28px; }
.hero-stats strong { font-size: 18px; }
.hero-art { transform: scale(.9); transform-origin: center right; }
.workspace-bar {
  position: sticky;
  top: 14px;
  z-index: 10;
  margin: 18px 0 18px;
  padding: 13px 16px;
  border-color: rgba(222, 226, 235, .92);
  background: rgba(255,255,255,.84);
  box-shadow: 0 12px 32px rgba(42, 53, 86, .07);
  backdrop-filter: blur(18px);
}
.workspace-bar-head strong { font-size: 13px; }
.workspace-actions select { width: 205px; background: #fafbfe; }
.small-button { padding: 9px 13px; border-radius: 10px; font-weight: 650; }
.small-button:not(.ghost):hover { background: #323949; transform: translateY(-1px); }
.workspace-grid { grid-template-columns: minmax(0, 1fr) 306px; gap: 22px; }
.side-column { position: sticky; top: 86px; }
.card {
  padding: 26px;
  border-radius: 18px;
  box-shadow: 0 10px 35px rgba(42, 53, 86, .045);
}
.step-heading { margin-bottom: 20px; }
.step-number { color: #7184e8; }
.dropzone {
  min-height: 198px;
  border-color: #d4d9e5;
  background: linear-gradient(180deg, #fcfdff, #f7f9fc);
}
.dropzone:hover, .dropzone.dragover {
  border-color: #8295ff;
  background: #f5f7ff;
  box-shadow: 0 10px 28px rgba(84, 108, 233, .09);
}
.primary-button { border-radius: 12px; }
.analysis-meta { margin-bottom: 18px; }
.analysis-meta span { padding: 6px 10px; }
.style-grid { gap: 10px; margin-bottom: 18px; }
.field span, .field-label { color: #727b8b; }
input, textarea, select { border-color: #dde1e9; border-radius: 10px; }
input:focus, textarea:focus, select:focus {
  border-color: #94a5ff;
  box-shadow: 0 0 0 3px rgba(104, 128, 246, .11);
}
.side-card { padding: 21px; }
.side-card h3 { font-size: 17px; }
.side-copy { line-height: 1.7; }
.pipeline { margin-top: 20px; }
.pipeline-item { padding: 3px 0; }
.pipeline-item b { font-size: 11px; }
.pipeline-item small { font-size: 10px; }
.workflow-item { padding: 11px 9px; }
.config-list { gap: 11px; }
.identity-section { margin-top: 22px; }
.identity-card { border-radius: 14px; background: #fafbfe; }
.shot-card, .result-card { border-radius: 13px; }
.shot-accordion > summary { padding: 17px; }
.shot-content { padding: 0 17px 17px; }
.modal-backdrop { background: rgba(21, 27, 40, .2); }
.workspace-modal { border-radius: 20px; }
footer { max-width: 1280px; padding: 16px 32px 34px; }
@media (max-width: 980px) {
  .workspace { padding: 24px; }
  .workspace-grid { grid-template-columns: 1fr; }
  .side-column { position: static; display: grid; grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 700px) {
  .topbar { height: 64px; padding: 0 18px; }
  .workspace { padding: 16px 14px 38px; }
  .hero { padding: 29px 23px; border-radius: 20px; }
  .workspace-bar { top: 8px; margin-top: 12px; }
  .workspace-actions select { width: auto; }
  .side-column { display: flex; }
  .card { padding: 20px; }
  footer { padding: 16px 14px 28px; }
}

/* Workspace home and task shell */
.workspace-home {
  margin-top: 24px;
  padding: 30px;
  border: 1px solid #e4e7ee;
  border-radius: 20px;
  background: rgba(255,255,255,.94);
  box-shadow: 0 14px 42px rgba(42, 53, 86, .055);
}
.workspace-home-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 25px;
}
.workspace-home-head h2 {
  margin: 8px 0 7px;
  color: #202633;
  font-size: 24px;
  letter-spacing: -.045em;
}
.workspace-home-head p {
  margin: 0;
  color: #89919f;
  font-size: 12px;
  line-height: 1.65;
}
.workspace-home-head .small-button {
  min-width: 126px;
  padding: 11px 16px;
  color: #fff;
  background: #5a36a3;
  box-shadow: 0 8px 18px rgba(90, 54, 163, .18);
}
.workspace-home-head .small-button:hover { background: #4e2f91; }
.workspace-list { min-height: 108px; }
.workspace-table {
  overflow: hidden;
  border: 1px solid #e5e8ee;
  border-radius: 13px;
  background: #fff;
}
.workspace-table-head,
.workspace-table-row {
  display: grid;
  grid-template-columns: minmax(245px, 1.45fr) minmax(145px, 1fr) minmax(145px, 1fr) minmax(130px, .8fr) 190px;
  align-items: center;
  gap: 18px;
  padding: 0 18px;
}
.workspace-table-head {
  min-height: 48px;
  color: #8a92a0;
  border-bottom: 1px solid #edf0f4;
  background: #fafbfc;
  font-size: 10px;
  font-weight: 700;
}
.workspace-table-row {
  min-height: 88px;
  color: #646e7d;
  border-bottom: 1px solid #f0f2f5;
  font-size: 11px;
}
.workspace-table-row:last-child { border-bottom: 0; }
.workspace-table-row > span { min-width: 0; line-height: 1.5; }
.workspace-name-cell {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}
.workspace-name-cell strong,
.workspace-name-cell small,
.workspace-table-row > span small {
  display: block;
}
.workspace-name-cell strong {
  overflow: hidden;
  color: #2e3643;
  font-size: 12px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.workspace-name-cell small,
.workspace-table-row > span small {
  overflow: hidden;
  margin-top: 5px;
  color: #9aa2ae;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.workspace-tile-mark {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  color: #fff;
  border-radius: 9px;
  background: linear-gradient(145deg, #6f55c8, #3a2a72);
  box-shadow: 0 7px 14px rgba(75, 54, 147, .18);
  font-size: 13px;
  font-weight: 800;
}
.workspace-status {
  display: inline-block;
  color: #5c6fc7;
  border-radius: 999px;
  background: #eef1ff;
  padding: 5px 8px;
  font-size: 10px;
  font-weight: 650;
  white-space: nowrap;
}
.workspace-open-button {
  justify-self: end;
  padding: 9px 11px;
  color: #5b3ba8;
  border: 1px solid #dfd7f3;
  border-radius: 8px;
  background: #faf8ff;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}
.workspace-open-button span {
  margin-left: 5px;
  color: #8d73d1;
  font-size: 14px;
}
.workspace-open-button:hover { background: #f0eaff; border-color: #cbbbe9; }
.workspace-row-actions,
.workspace-view-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
}
.workspace-delete-button {
  padding: 9px 10px;
  color: #a85660;
  border: 1px solid #efd9dc;
  border-radius: 8px;
  background: #fffafa;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
}
.workspace-delete-button:hover {
  color: #913943;
  border-color: #e9c4c9;
  background: #fff1f2;
}
.workspace-delete-current { padding: 9px 12px; }
.workspace-empty {
  display: grid;
  justify-items: center;
  padding: 28px;
  color: #87909f;
  border: 1px dashed #dfe3eb;
  border-radius: 13px;
  background: #fbfcfe;
  text-align: center;
}
.workspace-empty-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  margin-bottom: 9px;
  color: #6547b2;
  border-radius: 50%;
  background: #f0ebff;
  font-size: 20px;
}
.workspace-empty strong { color: #465061; font-size: 13px; }
.workspace-empty p { margin: 6px 0 0; font-size: 11px; }
.workspace-view-head {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  margin: 22px 0 10px;
  padding: 18px 21px;
  border: 1px solid #e4e7ee;
  border-radius: 17px;
  background: rgba(255,255,255,.92);
  box-shadow: 0 10px 30px rgba(42, 53, 86, .04);
}
.back-button {
  justify-self: start;
  padding: 9px 11px;
  color: #687284;
  border: 1px solid #e3e6ec;
  border-radius: 9px;
  background: #fafbfc;
  font-size: 11px;
}
.back-button:hover { color: #4f3d9c; border-color: #d9cff0; background: #faf8ff; }
.workspace-view-title h2 { margin: 5px 0 4px; font-size: 20px; }
.workspace-view-title p { margin: 0; color: #9098a5; font-size: 11px; }
.workspace-view-head + .workspace-panel {
  margin-top: 0;
  padding: 0 5px 17px;
  border: 0;
  font-size: 10px;
}
@media (max-width: 860px) {
  .workspace-table-head { display: none; }
  .workspace-table-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    padding: 15px;
  }
  .workspace-table-row > span { display: none; }
  .workspace-row-actions { grid-column: 2; grid-row: 1; }
  .workspace-name-cell { grid-column: 1; grid-row: 1; }
  .workspace-view-head { grid-template-columns: 1fr auto; }
  .back-button { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .workspace-home { padding: 20px; border-radius: 17px; }
  .workspace-home-head { display: block; }
  .workspace-home-head .small-button { margin-top: 18px; }
  .workspace-view-head { display: block; padding: 18px; }
  .workspace-view-head .small-button { margin-top: 13px; }
  .workspace-view-actions { justify-content: flex-start; margin-top: 13px; }
  .workspace-view-head .workspace-view-actions .small-button { margin-top: 0; }
  .workspace-view-head + .workspace-panel { display: block; line-height: 1.6; }
}

/* Each shot has one accordion, including its technical parameters and constraints. */
.analysis-quality { padding: 14px 16px; margin: 12px 0; border: 1px solid #f2d59a; border-radius: 10px; background: #fffbeb; color: #875816; font-size: 14px; line-height: 1.8; overflow-wrap: anywhere; }
.analysis-quality ul { margin: 8px 0 0; padding-left: 22px; }
.review-badge { padding: 3px 9px; border-radius: 6px; background: #fff3ce; color: #875816; font-size: 12px; font-weight: 600; }
.shot-accordion { background: #fff; border-color: #dde5f1; }
.shot-accordion[open] { border-color: #b8cdf5; box-shadow: 0 6px 22px rgba(37, 99, 235, .05); }
.shot-accordion > .shot-head { align-items: center; font-size: 14px; gap: 12px; }
.shot-head strong { flex-shrink: 0; }
.shot-head span { margin-left: auto; color: #496b9d; }
.shot-head i { flex-shrink: 0; color: #64748b; font-size: 12px; }
.shot-accordion > summary::after { flex-shrink: 0; color: #2563eb; font-size: 22px; }
.shot-content .shot-prompt-field { display: block; margin-top: 18px; }
.shot-content .field > span { font-size: 14px; font-weight: 650; color: #334155; }
.shot-content .shot-prompt-field textarea { width: 100%; min-height: 144px; max-height: none; padding: 16px; font-size: 15px; line-height: 1.9; color: #28374b; background: #fafcff; border-color: #dbe4f0; overflow: hidden; resize: none; overflow-wrap: anywhere; }
.shot-technical-content { margin-top: 22px; padding-top: 18px; border-top: 1px solid #e4ebf4; }
.shot-technical-content h3 { margin: 0 0 14px; font-size: 16px; color: #24354d; }
.shot-detail-grid { padding: 16px; gap: 14px 18px; background: #f8fafc; }
.shot-detail-grid b { font-size: 13px; color: #5d6c80; }
.shot-detail-grid span { font-size: 14px; line-height: 1.8; }
.shot-facts span { font-size: 12px; color: #46618c; background: #edf3ff; }

/* Center both normal labels and dynamically changing progress text. */
button { display: inline-flex; align-items: center; justify-content: center; text-align: center; gap: 8px; transition: background .18s ease, box-shadow .18s ease, transform .18s ease; }
button:focus-visible, .shot-accordion > summary:focus-visible { outline: 3px solid #93b7fc; outline-offset: 3px; }
.primary-button, .small-button:not(.ghost), .workspace-home-head .small-button {
  justify-content: center; color: #fff; border: 1px solid #2563eb;
  background: linear-gradient(135deg, #347cf5, #2356d8);
  box-shadow: 0 5px 12px rgba(37, 99, 235, .20); font-weight: 650;
}
.primary-button { min-height: 50px; line-height: 1.6; white-space: normal; overflow-wrap: anywhere; }
.primary-button b { color: #fff; flex-shrink: 0; }
.primary-button:hover:not(:disabled), .small-button:not(.ghost):hover:not(:disabled), .workspace-home-head .small-button:hover:not(:disabled) { background: linear-gradient(135deg, #2563eb, #1d4ed8); transform: translateY(-1px); box-shadow: 0 7px 18px rgba(37, 99, 235, .28); }
.workspace-open-button, .voice-preview-button, .small-button.ghost, .back-button { color: #2459b9; border: 1px solid #c8d9f7; background: #f0f6ff; }
.workspace-open-button span { margin-left: 0; color: #2563eb; }
.workspace-open-button:hover:not(:disabled), .voice-preview-button:hover:not(:disabled), .small-button.ghost:hover:not(:disabled), .back-button:hover:not(:disabled) { color: #1d4ed8; border-color: #92b5f4; background: #e5efff; }
.text-button { color: #2563eb; }
button:active:not(:disabled) { transform: translateY(0); }
button:disabled, .primary-button:disabled { opacity: .48; cursor: not-allowed; box-shadow: none; }
@media (max-width: 700px) {
  .shot-accordion > .shot-head { flex-wrap: wrap; }
  .shot-head span { order: 4; flex-basis: 100%; margin: 0; font-size: 12px; }
  .shot-head i { margin-left: auto; }
  .shot-content .shot-prompt-field textarea { padding: 12px; font-size: 15px; }
}
