/* [project]/apps/web/app/globals.css [app-client] (css) */
:root {
  --ink: #e9eef5;
  --muted: #8d9aab;
  --faint: #596677;
  --line: #263444;
  --panel: #111a25;
  --panel-raised: #162332;
  --canvas: #0a111a;
  --cyan: #58d6d1;
  --amber: #e7b66e;
  --red: #ed7b83;
  --green: #6ed19c;
  --blue: #8baeff;
}

.sound-factory-page {
  max-width: 1380px;
}

.sound-factory-head {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
  margin: 12px 0 28px;
}

.sound-factory-head h1 {
  margin: 0 0 10px;
  font-size: 42px;
}

.sound-factory-head p {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.sound-factory-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.sound-factory-grid {
  display: grid;
  grid-template-columns: minmax(320px, .9fr) minmax(0, 1.1fr);
  gap: 18px;
  align-items: start;
}

.sound-input {
  padding: 18px;
}

.sound-input label {
  display: block;
  color: var(--muted);
  margin-bottom: 10px;
}

.sound-input textarea {
  display: block;
  width: 100%;
  min-height: 520px;
  resize: vertical;
  border: 1px solid var(--line);
  background: var(--canvas);
  color: var(--ink);
  padding: 14px;
  font: 12px / 1.6 ui-monospace, SFMono-Regular, Consolas, monospace;
}

.sound-plan, .sound-result {
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 18px;
}

.sound-plan-item {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.sound-plan-item b, .sound-plan-item small {
  display: block;
}

.sound-plan-item small {
  color: var(--muted);
  margin-top: 5px;
}

.sound-plan-item span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.sound-warning {
  border-left: 3px solid var(--amber);
  padding: 8px 12px;
  color: var(--amber);
  background: #e7b66e14;
  font-size: 12px;
}

.sound-result {
  margin-top: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.sound-result p {
  color: var(--muted);
  margin: 8px 0 0;
}

.sound-result audio {
  max-width: 100%;
}

@media (width <= 820px) {
  .sound-factory-head, .sound-factory-grid {
    display: block;
  }

  .sound-factory-actions {
    margin-top: 16px;
  }

  .sound-plan {
    margin-top: 18px;
  }

  .sound-plan-item {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  min-height: 100%;
  background: var(--canvas);
  color: var(--ink);
}

body {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, sans-serif;
  font-size: 14px;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, textarea, select {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  min-height: 100vh;
}

.topbar {
  height: 68px;
  display: flex;
  align-items: center;
  gap: 34px;
  padding: 0 32px;
  border-bottom: 1px solid var(--line);
  background: #0c151f;
  position: sticky;
  top: 0;
  z-index: 20;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 220px;
}

.brand-mark {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  color: #071318;
  font-weight: 800;
  border-radius: 8px;
  background: var(--cyan);
}

.brand strong, .brand small {
  display: block;
  line-height: 1.1;
}

.brand strong {
  letter-spacing: .02em;
  font-size: 14px;
}

.brand small {
  color: var(--muted);
  font-size: 10px;
  margin-top: 4px;
}

.topnav {
  display: flex;
  align-items: center;
  gap: 23px;
  color: var(--muted);
  font-size: 13px;
}

.topnav a:hover {
  color: var(--ink);
}

.runtime-pill {
  margin-left: auto;
  color: var(--green);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .11em;
  display: flex;
  align-items: center;
  gap: 7px;
}

.runtime-pill i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 9px var(--green);
}

.page-wrap {
  width: min(1450px, 100% - 56px);
  margin: 0 auto;
  padding: 38px 0 70px;
}

.product-home {
  overflow: hidden;
}

.home-hero, .home-band, .home-footer-cta {
  width: min(1160px, 100% - 56px);
  margin: 0 auto;
}

.home-hero {
  padding: 86px 0 54px;
}

.home-hero h1 {
  max-width: 760px;
  margin: 14px 0 16px;
  font-size: 56px;
  line-height: 1.08;
  letter-spacing: 0;
}

.home-hero > p {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

.home-actions, .home-proof {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.home-actions {
  margin-top: 28px;
}

.home-proof {
  gap: 24px;
  margin-top: 42px;
  color: var(--muted);
  font-size: 11px;
}

.home-proof span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.home-proof b {
  color: var(--cyan);
  font-size: 10px;
  letter-spacing: .1em;
}

.home-band {
  padding: 58px 0 68px;
  border-top: 1px solid var(--line);
}

.section-heading {
  max-width: 700px;
}

.section-heading h2, .home-footer-cta h2 {
  margin: 10px 0 0;
  font-size: 29px;
  line-height: 1.25;
  letter-spacing: 0;
}

.section-heading p {
  max-width: 620px;
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin-top: 42px;
}

.feature-item {
  min-width: 0;
  padding-top: 15px;
  border-top: 2px solid #304252;
}

.feature-item:nth-child(2) {
  border-color: #4a6e75;
}

.feature-item:nth-child(3) {
  border-color: #8a6a43;
}

.feature-item:nth-child(4) {
  border-color: #587d68;
}

.feature-index {
  color: var(--cyan);
  font-weight: 800;
}

.feature-item h3 {
  margin: 23px 0 8px;
  font-size: 16px;
}

.feature-item p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}

.home-dark-band {
  width: 100%;
  padding-right: max(28px, 50% - 580px);
  padding-left: max(28px, 50% - 580px);
  background: #101a22;
}

.home-dark-band .section-heading {
  width: min(1160px, 100%);
  margin: 0 auto;
}

.home-dark-band > .button {
  display: inline-flex;
  margin-top: 28px;
}

.home-footer-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 48px 0 64px;
}

.home-footer-cta h2 {
  margin: 0;
}

.eyebrow {
  color: var(--cyan);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .13em;
  font-weight: 700;
}

.page-title {
  font-size: 30px;
  letter-spacing: 0;
  margin: 7px 0 8px;
}

.page-subtitle {
  color: var(--muted);
  margin: 0;
  line-height: 1.6;
}

.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.page-actions {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
}

.button {
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--ink);
  background: var(--panel-raised);
  min-height: 36px;
  padding: 0 13px;
  font-weight: 600;
  font-size: 12px;
  transition: border-color .15s, background .15s, transform .15s;
}

.button:hover {
  border-color: #4f657e;
  background: #1b2c40;
}

.button:active {
  transform: translateY(1px);
}

.button.primary {
  color: #08191d;
  border-color: var(--cyan);
  background: var(--cyan);
}

.button.primary:hover {
  background: #77e5de;
}

.button.ghost {
  background: none;
}

.button.danger {
  color: #ffc4c4;
  border-color: #66363d;
  background: #28191e;
}

.button.small {
  min-height: 29px;
  padding: 0 9px;
  font-size: 11px;
}

.button:disabled {
  opacity: .45;
  cursor: not-allowed;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}

.project-card {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 10px;
  padding: 18px;
  min-height: 165px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: border-color .2s, transform .2s;
}

.project-card:hover {
  border-color: #416276;
  transform: translateY(-2px);
}

.project-card h2 {
  margin: 8px 0 7px;
  font-size: 17px;
}

.project-card p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.project-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 18px;
  color: var(--faint);
  font-size: 11px;
}

.project-link {
  color: var(--cyan);
  font-weight: 700;
  font-size: 12px;
}

.empty-state {
  border: 1px dashed #314256;
  border-radius: 10px;
  padding: 45px 22px;
  text-align: center;
  color: var(--muted);
}

.form-shell {
  max-width: 720px;
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 10px;
  padding: 24px;
}

.field {
  display: grid;
  gap: 7px;
  margin-bottom: 18px;
}

.field label {
  color: #b8c2d0;
  font-size: 12px;
  font-weight: 600;
}

.field input, .field textarea, .field select, .command-input {
  width: 100%;
  color: var(--ink);
  background: #0b131d;
  border: 1px solid #2d3d50;
  border-radius: 6px;
  padding: 10px 11px;
  outline: none;
}

.field input:focus, .field textarea:focus, .field select:focus, .command-input:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 2px #58d6d11f;
}

.field textarea {
  min-height: 255px;
  resize: vertical;
  line-height: 1.7;
}

.form-footer {
  display: flex;
  align-items: center;
  gap: 12px;
}

.form-message {
  color: var(--muted);
  font-size: 12px;
}

.workbench {
  width: min(1580px, 100% - 38px);
  margin: 0 auto;
  padding: 24px 0 56px;
}

.workbench-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 0 6px 20px;
}

.crumb {
  color: var(--muted);
  font-size: 11px;
  margin-bottom: 8px;
}

.crumb a:hover {
  color: var(--ink);
}

.workbench-title {
  font-size: 24px;
  margin: 0 0 7px;
  letter-spacing: 0;
}

.workbench-copy {
  color: var(--muted);
  font-size: 12px;
  margin: 0;
}

.metric-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 13px;
}

.metric-row > span {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  border: 1px solid #253648;
  border-radius: 5px;
  background: #0d1722;
  color: var(--faint);
  padding: 5px 8px;
  font-size: 9px;
}

.metric-row b {
  color: #cbd8e5;
  font-size: 12px;
}

.metric-row .metric-status {
  color: var(--green);
  border-color: #29493f;
  background: #10231f;
  font-weight: 700;
}

.metric-status i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}

.workbench-actions {
  display: flex;
  gap: 7px;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  max-width: 600px;
}

.workbench-layout {
  display: grid;
  grid-template-columns: 262px minmax(500px, 1fr) 328px;
  gap: 12px;
  align-items: start;
}

.rail, .inspector, .canvas-panel {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 9px;
}

.rail, .inspector {
  overflow: hidden;
}

.rail-section {
  border-bottom: 1px solid var(--line);
  padding: 15px;
}

.rail-section:last-child {
  border-bottom: 0;
}

.section-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #bdc8d7;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .11em;
  font-weight: 800;
  margin-bottom: 12px;
}

.section-count {
  color: var(--faint);
  font-size: 10px;
}

.rail-list {
  display: grid;
  gap: 7px;
}

.rail-item {
  background: #0d1722;
  border: 1px solid #0000;
  border-radius: 6px;
  padding: 9px 10px;
  min-width: 0;
}

.rail-item.active {
  border-color: #3a777b;
  background: #10262b;
}

.rail-item strong {
  display: block;
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rail-item small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  margin-top: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rail-note {
  color: var(--faint);
  font-size: 11px;
  line-height: 1.5;
}

.stat-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.stat {
  background: #0c151f;
  border-radius: 6px;
  padding: 9px 8px;
}

.stat b {
  display: block;
  font-size: 17px;
  color: var(--ink);
}

.stat span {
  display: block;
  margin-top: 3px;
  color: var(--faint);
  font-size: 9px;
}

.canvas-panel {
  min-width: 0;
}

.canvas-toolbar {
  min-height: 59px;
  padding: 12px 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
}

.canvas-toolbar strong {
  font-size: 13px;
}

.canvas-toolbar small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  margin-top: 4px;
}

.toolbar-group {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.shot-grid {
  padding: 13px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(224px, 1fr));
  gap: 10px;
  max-height: 710px;
  overflow: auto;
}

.shot-card {
  border: 1px solid #29394a;
  border-radius: 8px;
  background: #0d1722;
  overflow: hidden;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}

.shot-card:hover {
  border-color: #49637d;
}

.shot-card.selected {
  border-color: var(--cyan);
  box-shadow: 0 0 0 1px #58d6d12e;
}

.shot-thumb {
  height: 65px;
  background: linear-gradient(135deg, #192a3a, #0d1722 67%);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 9px;
}

.shot-no {
  color: #d9e8f5;
  font-size: 11px;
  font-weight: 800;
}

.shot-duration {
  color: var(--cyan);
  font-size: 10px;
  font-weight: 700;
}

.shot-content {
  padding: 10px;
}

.shot-context {
  display: grid;
  gap: 3px;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 9px;
}

.shot-context span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.shot-context span:first-child {
  color: #b7c5d4;
  font-weight: 700;
}

.shot-content p {
  margin: 0;
  font-size: 11px;
  line-height: 1.5;
  color: #c6d0dc;
  min-height: 34px;
}

.shot-content .shot-dialogue {
  min-height: 0;
  color: #a6c9ca;
  font-size: 10px;
  margin-top: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.shot-tags {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  margin-top: 9px;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 6px;
  border-radius: 4px;
  color: #aebdd0;
  background: #1a2939;
  font-size: 9px;
}

.tag.accent {
  color: var(--cyan);
  background: #123235;
}

.tag.warn {
  color: var(--amber);
  background: #332917;
}

.tag.success {
  color: var(--green);
  background: #153226;
}

.shot-thumb.has-media {
  background-size: cover;
  background-position: center;
}

.shot-check {
  align-self: flex-start;
  margin-right: auto;
  border-radius: 4px;
  padding: 3px;
  background: #071318c7;
}

.shot-check input {
  display: block;
  accent-color: var(--cyan);
}

.status-line {
  padding: 0 14px 12px;
  color: var(--muted);
  font-size: 11px;
}

.status-line.error {
  color: var(--red);
}

.status-line.success {
  color: var(--green);
}

.status-action {
  margin-left: 9px;
  vertical-align: middle;
}

.shot-timeline {
  display: flex;
  gap: 3px;
  min-height: 42px;
  padding: 9px 13px 12px;
  overflow-x: auto;
  border-top: 1px solid var(--line);
}

.shot-timeline button {
  min-width: 26px;
  height: 21px;
  padding: 0;
  border: 1px solid #304256;
  border-radius: 3px;
  color: var(--muted);
  background: #101c29;
  font-size: 9px;
}

.shot-timeline button.active {
  border-color: var(--cyan);
  color: #071318;
  background: var(--cyan);
  font-weight: 800;
}

.inspector-head {
  padding: 15px;
  border-bottom: 1px solid var(--line);
}

.inspector-head h2 {
  margin: 0;
  font-size: 14px;
}

.inspector-head p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.inspector-body {
  padding: 15px;
  max-height: calc(100vh - 165px);
  overflow: auto;
}

.bible-editor {
  margin-bottom: 2px;
}

.mini-label {
  display: block;
  color: var(--faint);
  font-size: 9px;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-weight: 800;
  margin-bottom: 5px;
}

.inspector-value {
  color: #cbd6e1;
  font-size: 12px;
  line-height: 1.55;
  margin: 0 0 13px;
}

.inspector textarea, .inspector input, .inspector select {
  width: 100%;
  color: var(--ink);
  background: #0b131d;
  border: 1px solid #2b3b4d;
  border-radius: 5px;
  padding: 8px;
  margin-bottom: 10px;
  outline: none;
}

.inspector textarea {
  min-height: 64px;
  resize: vertical;
  line-height: 1.5;
}

.inspector input:focus, .inspector textarea:focus, .inspector select:focus {
  border-color: var(--cyan);
}

.inspector-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin: 2px 0 15px;
}

.divider {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 16px 0;
}

.prompt-box {
  border: 1px solid #2e4850;
  background: #0b1a20;
  border-radius: 6px;
  padding: 9px;
  color: #b7dfe0;
  white-space: pre-wrap;
  font: 11px / 1.6 ui-monospace, SFMono-Regular, Menlo, monospace;
  max-height: 230px;
  overflow: auto;
}

.version-list {
  display: grid;
  gap: 5px;
}

.version-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  border: 1px solid #263646;
  border-radius: 5px;
  background: #0d1722;
  padding: 6px 7px 6px 8px;
}

.version-row > span {
  display: flex;
  align-items: baseline;
  gap: 7px;
  min-width: 0;
}

.version-row b {
  color: #c9d8e7;
  font-size: 11px;
}

.version-row small {
  color: var(--faint);
  font-size: 9px;
}

.issue {
  border-left: 2px solid var(--amber);
  background: #171b1a;
  padding: 9px 10px;
  margin-bottom: 7px;
  border-radius: 0 5px 5px 0;
}

.issue.high, .issue.critical {
  border-left-color: var(--red);
}

.issue strong {
  display: block;
  font-size: 11px;
}

.issue p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.45;
}

.copilot-box {
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.command-input {
  min-height: 62px;
  resize: vertical;
  line-height: 1.5;
}

.diff-grid {
  display: grid;
  gap: 6px;
  margin: 11px 0;
}

.diff-row {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 7px;
  font-size: 10px;
  line-height: 1.45;
}

.diff-row b {
  color: var(--faint);
  font-size: 9px;
  text-transform: uppercase;
}

.diff-before {
  color: #db969a;
}

.diff-after {
  color: var(--green);
}

.task-chip {
  padding: 8px 10px;
  border-radius: 5px;
  background: #0d1722;
  color: var(--muted);
  font-size: 11px;
  margin-bottom: 10px;
}

.task-chip b {
  color: var(--ink);
}

.loading {
  color: var(--muted);
  font-size: 12px;
  padding: 22px;
}

.generation-panel {
  margin-bottom: 16px;
}

.generation-controls, .batch-box {
  display: flex;
  gap: 6px;
  align-items: center;
  margin-bottom: 10px;
}

.generation-controls select, .batch-box select {
  margin: 0;
  min-width: 0;
}

.generation-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}

.generation-fields label {
  color: var(--faint);
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.generation-fields input, .generation-fields select {
  margin: 4px 0 0;
}

.generation-estimate {
  display: grid;
  gap: 4px;
  margin: 2px 0 10px;
  padding: 8px;
  border: 1px solid #294650;
  border-radius: 5px;
  background: #0b1a20;
  font-size: 9px;
  color: var(--muted);
}

.generation-estimate b {
  color: var(--cyan);
}

.generation-progress {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 8px 0;
  padding: 8px;
  border-radius: 5px;
  color: var(--green);
  background: #10231f;
  font-size: 11px;
}

.generation-progress i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 8px;
}

.generation-progress small {
  margin-left: auto;
  color: var(--muted);
  font-size: 9px;
}

.generation-progress.error, .generation-message.error {
  color: var(--red);
}

.generation-message {
  margin: 7px 0 11px;
  color: var(--green);
  font-size: 10px;
  line-height: 1.5;
}

.asset-grid, .generation-history {
  display: grid;
  gap: 7px;
}

.asset-card {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 8px;
  align-items: center;
  padding: 7px;
  border: 1px solid #29394a;
  border-radius: 6px;
  background: #0d1722;
}

.asset-card.primary {
  border-color: #3a777b;
}

.asset-card img {
  width: 58px;
  height: 58px;
  border-radius: 4px;
  object-fit: cover;
  background: #08111a;
}

.asset-card b, .asset-card span {
  display: block;
  font-size: 10px;
}

.asset-card span {
  color: var(--faint);
  margin-top: 3px;
}

.asset-actions {
  grid-column: 1 / -1;
  display: flex;
  gap: 5px;
}

.generation-history article {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 7px;
  align-items: center;
  padding: 7px;
  border: 1px solid #29394a;
  border-radius: 6px;
  background: #0d1722;
}

.generation-history article.current {
  border-color: var(--cyan);
}

.generation-history img {
  width: 56px;
  height: 70px;
  object-fit: cover;
  border-radius: 4px;
  background: #08111a;
}

.generation-history b, .generation-history span {
  display: block;
  font-size: 10px;
}

.generation-history span {
  color: var(--faint);
  margin-top: 3px;
}

.generation-history video {
  grid-column: 1 / -1;
  width: 100%;
  max-height: 220px;
  border-radius: 5px;
  background: #050a10;
}

.generation-history button {
  grid-column: 1 / -1;
}

.admin-error {
  margin-bottom: 14px;
  padding: 10px 12px;
  border: 1px solid #65363e;
  border-radius: 6px;
  color: #ffc4c4;
  background: #28191e;
}

.admin-error.compact {
  padding: 7px;
  font-size: 10px;
  overflow-wrap: anywhere;
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.admin-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--panel);
}

.admin-card h2 {
  margin: 0;
  font-size: 16px;
}

.admin-card p {
  color: var(--muted);
  font-size: 11px;
}

.admin-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.admin-card dl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  font-size: 11px;
}

.admin-card dt {
  color: var(--faint);
}

.admin-card dd {
  margin: 0;
  text-align: right;
  color: #cbd6e1;
}

.admin-status {
  display: inline-flex;
  padding: 3px 6px;
  border-radius: 4px;
  color: var(--muted);
  background: #1a2939;
  font-size: 9px;
  font-weight: 800;
  white-space: nowrap;
}

.admin-status.ok {
  color: var(--green);
  background: #153226;
}

.admin-status.bad {
  color: var(--red);
  background: #321b22;
}

.admin-status.warn {
  color: var(--amber);
  background: #332917;
}

.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 9px;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--panel);
  font-size: 11px;
}

.admin-table th, .admin-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.admin-table th {
  color: var(--faint);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 9px;
  background: #0d1722;
}

.admin-table tr:last-child td {
  border-bottom: 0;
}

.admin-table span {
  color: var(--muted);
}

.admin-table .mono {
  font-family: ui-monospace, monospace;
  color: var(--faint);
}

.capability-list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  min-width: 260px;
}

.capability-list span {
  padding: 2px 5px;
  border-radius: 3px;
  color: #a9d7d6;
  background: #123235;
  font-size: 8px;
}

.row-error {
  display: block;
  max-width: 280px;
  margin-top: 5px;
  color: var(--red);
  overflow-wrap: anywhere;
}

.cost-total {
  color: var(--cyan);
  margin-top: 10px !important;
  font-size: 28px !important;
}

.queue-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.queue-strip article {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #0d1722;
  font-size: 10px;
}

.queue-strip b {
  margin-right: auto;
}

.queue-strip span {
  color: var(--muted);
}

.queue-strip .bad {
  color: var(--red);
}

.health-list {
  display: grid;
  gap: 5px;
  margin-top: 13px;
}

.health-list div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.health-list small {
  color: var(--faint);
}

.audio-studio {
  width: min(1600px, 100% - 38px);
  margin: 0 auto;
  padding: 25px 0 60px;
}

.audio-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 28px;
  margin-bottom: 18px;
}

.audio-head h1 {
  margin: 7px 0;
  font-size: 25px;
}

.audio-head p {
  margin: 0;
  color: var(--muted);
}

.audio-actions {
  max-width: 700px;
  display: flex;
  justify-content: flex-end;
  gap: 7px;
  flex-wrap: wrap;
}

.audio-notice {
  border-left: 3px solid var(--cyan);
  background: #102229;
  color: #b8dfe0;
  padding: 9px 12px;
  margin: 0 0 12px;
  font-size: 11px;
}

.audio-console {
  display: grid;
  grid-template-columns: 270px minmax(600px, 1fr);
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 8px;
  overflow: hidden;
  min-height: 650px;
}

.audio-sidebar {
  border-right: 1px solid var(--line);
  padding: 16px;
}

.audio-sidebar article {
  display: grid;
  grid-template-columns: 33px 1fr auto;
  align-items: center;
  gap: 9px;
  padding: 9px 0;
  border-bottom: 1px solid #202e3d;
}

.audio-sidebar article b, .audio-sidebar article small {
  display: block;
}

.audio-sidebar article b {
  font-size: 11px;
}

.audio-sidebar article small {
  color: var(--faint);
  font-size: 9px;
  margin-top: 3px;
}

.audio-sidebar > .button {
  width: 100%;
  margin-bottom: 7px;
}

.voice-avatar {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #071318;
  background: var(--cyan);
  font-weight: 800;
}

.audio-main {
  min-width: 0;
}

.audio-preview {
  min-height: 86px;
  padding: 15px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  background: #0d1722;
}

.audio-preview audio {
  width: min(480px, 55vw);
  height: 32px;
}

.audio-preview p {
  color: var(--faint);
  font-size: 11px;
  margin: 5px 0 0;
}

.audio-transport {
  display: flex;
  align-items: center;
  gap: 14px;
}

.audio-transport label {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 10px;
}

.audio-transport input {
  width: 100px;
  accent-color: var(--cyan);
}

.audio-ruler {
  display: flex;
  justify-content: space-between;
  padding: 8px 16px;
  color: var(--faint);
  font: 9px ui-monospace, monospace;
  border-bottom: 1px solid var(--line);
}

.audio-track-scroll {
  overflow-x: auto;
  padding-bottom: 5px;
}

.audio-track {
  min-width: 100%;
  display: grid;
  grid-template-columns: 105px 1fr;
  min-height: 69px;
  border-bottom: 1px solid #202e3d;
}

.audio-track-label {
  position: sticky;
  left: 0;
  z-index: 2;
  padding: 15px 12px;
  border-right: 1px solid var(--line);
  background: var(--panel);
}

.audio-track-label strong, .audio-track-label span {
  display: block;
}

.audio-track-label strong {
  font-size: 10px;
  text-transform: uppercase;
}

.audio-track-label span {
  color: var(--faint);
  font-size: 9px;
  margin-top: 5px;
}

.audio-lane {
  position: relative;
  min-width: 100%;
  min-height: 68px;
  background-image: linear-gradient(90deg, #0000 49px, #1d2b3a 50px);
  background-size: 50px 100%;
}

.audio-clip {
  position: absolute;
  top: 10px;
  height: 46px;
  min-width: 32px;
  overflow: hidden;
  text-align: left;
  padding: 6px 7px;
  border: 1px solid #397b7a;
  border-radius: 4px;
  color: #d8ffff;
  background: #174548;
}

.audio-clip b, .audio-clip small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.audio-clip b {
  font-size: 9px;
}

.audio-clip small {
  font-size: 8px;
  opacity: .7;
  margin-top: 4px;
}

.audio-clip.narration {
  border-color: #5a72a6;
  background: #273c68;
}

.audio-clip.sfx {
  border-color: #977146;
  background: #543b21;
}

.audio-clip.ambience {
  border-color: #47745f;
  background: #244736;
}

.audio-clip.music {
  border-color: #96776b;
  background: #53382f;
}

.audio-clip.subtitle {
  border-color: #686d7e;
  background: #343746;
}

.duck-strip {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 16px;
  color: var(--muted);
  font-size: 10px;
  background: #0d1722;
}

.duck-strip b {
  color: var(--green);
}

@media (width <= 1180px) {
  .workbench-layout {
    grid-template-columns: 220px minmax(460px, 1fr);
  }

  .inspector {
    grid-column: 1 / -1;
  }

  .inspector-body {
    max-height: none;
  }
}

@media (width <= 760px) {
  .topbar {
    padding: 0 16px;
    gap: 14px;
  }

  .topnav {
    display: flex;
    flex: auto;
    min-width: 0;
    overflow-x: auto;
    gap: 14px;
    white-space: nowrap;
    scrollbar-width: none;
  }

  .topnav::-webkit-scrollbar {
    display: none;
  }

  .brand {
    min-width: 0;
  }

  .runtime-pill {
    font-size: 0;
    flex: 0 0 6px;
  }

  .page-wrap, .workbench {
    width: min(100% - 28px, 680px);
    padding-top: 24px;
  }

  .home-hero, .home-band, .home-footer-cta {
    width: min(100% - 28px, 680px);
  }

  .home-hero {
    padding: 52px 0 40px;
  }

  .home-hero h1 {
    max-width: 520px;
    font-size: 38px;
  }

  .home-hero > p {
    font-size: 15px;
  }

  .home-proof {
    gap: 12px 18px;
    margin-top: 30px;
  }

  .home-band {
    padding: 42px 0 48px;
  }

  .section-heading h2, .home-footer-cta h2 {
    font-size: 24px;
  }

  .feature-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px 16px;
    margin-top: 30px;
  }

  .home-dark-band {
    width: 100%;
    padding-right: 14px;
    padding-left: 14px;
  }

  .home-dark-band .section-heading {
    width: min(100%, 680px);
  }

  .home-footer-cta {
    align-items: flex-start;
    display: block;
    padding: 38px 0 50px;
  }

  .home-footer-cta .button {
    display: inline-flex;
    margin-top: 20px;
  }

  .page-head, .workbench-head {
    display: block;
  }

  .page-actions, .workbench-actions {
    justify-content: flex-start;
    margin-top: 17px;
  }

  .workbench-layout {
    grid-template-columns: 1fr;
  }

  .rail, .inspector {
    grid-column: auto;
  }

  .shot-grid {
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    max-height: none;
  }

  .audio-studio {
    width: min(100% - 24px, 680px);
  }

  .audio-head {
    display: block;
  }

  .audio-actions {
    justify-content: flex-start;
    margin-top: 15px;
  }

  .audio-console {
    grid-template-columns: 1fr;
  }

  .audio-sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .audio-preview {
    align-items: flex-start;
    flex-direction: column;
  }

  .audio-preview audio {
    width: 100%;
  }

  .audio-track {
    grid-template-columns: 82px 1fr;
  }
}

.editing-studio {
  width: min(1700px, 100% - 32px);
  margin: 0 auto;
  padding: 22px 0 60px;
}

.editing-head {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-start;
  margin-bottom: 16px;
}

.editing-head h1 {
  margin: 5px 0;
  font-size: 24px;
}

.editing-head p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}

.editing-actions {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.editing-actions select, .editing-actions button, .edit-inspector button {
  color: var(--ink);
  background: #132131;
  border: 1px solid #314255;
  border-radius: 5px;
  padding: 9px 11px;
}

.editing-actions .primary {
  background: var(--cyan);
  color: #061315;
}

.render-progress {
  position: relative;
  display: flex;
  justify-content: space-between;
  overflow: hidden;
  margin-bottom: 12px;
  padding: 9px 11px;
  border: 1px solid #2c4d51;
  border-radius: 6px;
  background: #0d1d24;
  font-size: 10px;
}

.render-progress i {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  background: var(--cyan);
}

.editing-grid {
  display: grid;
  grid-template-columns: 235px minmax(460px, 1fr) 270px;
  gap: 10px;
}

.edit-assets, .edit-center, .edit-inspector, .edit-timeline {
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--panel);
}

.edit-assets, .edit-inspector {
  padding: 14px;
  max-height: 590px;
  overflow: auto;
}

.edit-scene {
  padding: 8px;
  border-bottom: 1px solid var(--line);
}

.edit-scene b, .edit-scene small {
  display: block;
  font-size: 10px;
}

.edit-scene small {
  color: var(--faint);
  margin-top: 3px;
}

.edit-reason {
  border-left: 2px solid var(--cyan);
  padding: 7px 8px;
  margin-bottom: 7px;
  background: #0d1823;
}

.edit-reason b, .edit-reason small {
  font-size: 8px;
  color: var(--cyan);
}

.edit-reason p {
  font-size: 9px;
  line-height: 1.4;
  margin: 4px 0;
  color: var(--muted);
}

.edit-preview {
  aspect-ratio: 9 / 16;
  max-height: 500px;
  margin: auto;
  background: #050a10;
  display: grid;
  place-items: center;
}

.edit-preview video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.edit-preview div {
  text-align: center;
  color: var(--faint);
}

.edit-preview b, .edit-preview span {
  display: block;
}

.curve-panel {
  height: 75px;
  padding: 9px;
  border-top: 1px solid var(--line);
}

.curve-panel span {
  font-size: 8px;
  color: var(--faint);
}

.curve-panel svg {
  display: block;
  width: 100%;
  height: 48px;
}

.curve-panel polyline {
  fill: none;
  stroke: var(--cyan);
  stroke-width: 1.5px;
  vector-effect: non-scaling-stroke;
}

.edit-inspector label {
  display: grid;
  gap: 4px;
  font-size: 9px;
  color: var(--faint);
  margin-bottom: 8px;
}

.edit-inspector input, .edit-inspector select, .edit-inspector textarea {
  width: 100%;
  padding: 8px;
  color: var(--ink);
  background: #0a131d;
  border: 1px solid #2b3c4d;
  border-radius: 4px;
}

.edit-inspector textarea {
  min-height: 72px;
  resize: vertical;
}

.change-proposal {
  margin-top: 8px;
  padding: 8px;
  border: 1px solid #315c55;
  background: #10231f;
}

.change-proposal b {
  display: block;
  font-size: 10px;
  margin-bottom: 7px;
}

.edit-timeline {
  margin-top: 10px;
  overflow: hidden;
}

.edit-timeline > header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 13px;
  border-bottom: 1px solid var(--line);
}

.edit-timeline > header b {
  margin-right: auto;
}

.edit-timeline > header label {
  font-size: 9px;
  color: var(--muted);
}

.edit-ruler {
  display: flex;
  justify-content: space-between;
  padding: 6px 95px 6px 90px;
  font: 8px ui-monospace;
  color: var(--faint);
}

.edit-track-scroll {
  overflow-x: auto;
}

.edit-track {
  display: grid;
  grid-template-columns: 85px 1fr;
  min-height: 52px;
  border-top: 1px solid var(--line);
}

.edit-track > strong {
  padding: 16px 10px;
  font-size: 9px;
}

.edit-track > div {
  position: relative;
  min-height: 52px;
  background-image: linear-gradient(90deg, #0000 49px, #1d2b3a 50px);
  background-size: 50px 100%;
}

.edit-clip {
  position: absolute;
  top: 7px;
  height: 37px;
  overflow: hidden;
  text-align: left;
  border: 1px solid #3a777b;
  border-radius: 3px;
  color: #d8ffff;
  background: #174548;
  padding: 4px;
}

.edit-clip.selected {
  outline: 2px solid var(--cyan);
}

.edit-clip b, .edit-clip small {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 8px;
}

.edit-clip small {
  opacity: .65;
  margin-top: 3px;
}

.result-page {
  width: min(1100px, 100% - 32px);
  margin: 0 auto;
  padding: 30px 0 60px;
}

.result-page > header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.result-page h1 {
  margin: 5px 0;
}

.result-page header p {
  color: var(--muted);
}

.result-page > video {
  display: block;
  width: min(480px, 100%);
  aspect-ratio: 9 / 16;
  max-height: 70vh;
  margin: 20px auto;
  background: #050a10;
}

.result-actions {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.result-versions {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 8px;
  margin-top: 20px;
}

.result-versions button {
  padding: 10px;
  text-align: left;
  color: var(--ink);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 5px;
}

.result-versions button.active {
  border-color: var(--cyan);
}

.result-versions b, .result-versions span {
  display: block;
}

.result-versions span {
  color: var(--faint);
  font-size: 9px;
  margin-top: 4px;
}

.track-controls {
  display: flex;
  align-items: center;
  gap: 3px;
  min-width: 0;
  padding: 8px;
}

.track-controls strong {
  min-width: 0;
  margin-right: auto;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 9px;
}

.track-controls button, .clip-actions button {
  flex: none;
  padding: 3px 5px;
  color: var(--faint);
  background: #111f2d;
  border: 1px solid #304256;
  border-radius: 3px;
}

.clip-actions {
  display: flex;
  gap: 5px;
}

.edit-track {
  grid-template-columns: 105px 1fr;
}

.edit-ruler {
  padding-left: 110px;
}

.audio-lead {
  margin: 10px 0;
  padding: 9px;
  border: 1px solid var(--line);
  background: #0c1721;
}

.audio-lead > div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
}

.audio-lead button {
  padding: 7px;
  color: var(--cyan);
  font-weight: 700;
}

.share-result {
  display: flex;
  justify-content: center;
  gap: 10px;
  align-items: center;
  width: min(560px, 100%);
  margin: 10px auto;
  padding: 9px;
  border: 1px solid #315c55;
  background: #10231f;
  font-size: 10px;
}

.share-result a {
  color: var(--cyan);
}

.share-result span {
  color: var(--muted);
}

@media (width <= 1000px) {
  .editing-grid {
    grid-template-columns: 200px 1fr;
  }

  .edit-inspector {
    grid-column: 1 / -1;
    max-height: none;
  }
}

@media (width <= 700px) {
  .editing-head {
    display: block;
  }

  .editing-actions {
    justify-content: flex-start;
    margin-top: 14px;
  }

  .editing-grid {
    grid-template-columns: 1fr;
  }

  .edit-assets, .edit-inspector {
    max-height: none;
  }

  .edit-preview {
    max-height: 430px;
  }

  .edit-ruler {
    padding-left: 90px;
  }

  .result-page > header {
    display: block;
  }
}


/*# sourceMappingURL=app_globals_b39aef.css.map*/
