/* Exact commercial command-center layout based on the selected desktop reference. */
body.studio-redesign {
  --command-red: #bd3f31;
  --command-red-bright: #d24a39;
  --command-gold: #d0ac68;
  --command-teal: #48b6a4;
  --command-amber: #d89c35;
  --command-bg: var(--cc-bg);
  --command-panel: var(--cc-panel);
  --command-panel-2: var(--cc-panel-raised);
  --command-line: var(--cc-line);
  --command-text: var(--cc-text);
  --command-muted: var(--cc-muted);
  --command-faint: var(--cc-faint);
  font-family: var(--ff-font, system-ui, sans-serif);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.studio-redesign .brand-copy strong,
body.studio-redesign .page-create:not(.task-mode) .home-operations-head h1 {
  font-family: var(--ff-font, system-ui, sans-serif);
}

body.studio-redesign .public-preview-banner {
  display: none !important;
}

body.studio-redesign .prompt-input-shell {
  min-width: 0;
  display: flex;
  flex: 1;
  flex-direction: column;
}

body.studio-redesign .prompt-reference-actions {
  min-height: 48px;
  padding: 7px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

body.studio-redesign .prompt-reference-button {
  min-height: 31px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid var(--cc-line);
  border-radius: 4px;
  color: var(--cc-muted);
  background: transparent;
  font-size: 11px;
}

body.studio-redesign .prompt-reference-button:hover {
  border-color: var(--cc-line-strong);
  color: var(--cc-text);
}

body.studio-redesign .prompt-reference-button svg {
  width: 14px;
  height: 14px;
}

body.studio-redesign .prompt-char-count {
  margin-left: auto;
  color: var(--cc-faint);
  font-size: 10px;
}

body.studio-redesign .composer-parameter-field,
body.studio-redesign .composer-lock-field {
  min-width: 0;
  display: grid;
  gap: 7px;
  color: var(--cc-faint);
  font-size: 10px;
  font-weight: 500;
}

body.studio-redesign .composer-parameter-field > span,
body.studio-redesign .composer-lock-field > span {
  min-width: 0;
}

body.studio-redesign .credit-cost-label {
  color: var(--cc-muted);
  font-size: 11px;
}

body.studio-redesign .home-queue-footer {
  min-height: 44px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  gap: 4px;
  border-top: 1px solid var(--cc-line);
  color: var(--cc-gold);
  background: transparent;
  font-size: 11px;
}

body.studio-redesign .home-queue-footer:hover {
  color: var(--cc-text);
  background: var(--cc-panel-hover);
}

body.studio-redesign .home-queue-footer svg {
  width: 13px;
  height: 13px;
}

body.studio-redesign .queue-owner,
body.studio-redesign .queue-timing {
  color: var(--cc-muted);
  font-size: 10px;
}

body.studio-redesign .queue-timing {
  display: grid;
  justify-items: end;
  gap: 5px;
}

body.studio-redesign .queue-timing > small {
  color: var(--cc-faint);
  font-size: 9px;
  white-space: nowrap;
}

body.studio-redesign .project-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  color: var(--cc-muted);
}

body.studio-redesign .project-actions svg {
  width: 13px;
  height: 13px;
}

body.studio-redesign .preview-project-history em {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--command-teal);
  font-size: 9px;
  font-style: normal;
}

body.studio-redesign .preview-project-history em i {
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: currentColor;
}

body.studio-redesign .preview-project-history em time {
  margin-left: auto;
  color: var(--command-faint);
  font-size: 9px;
}

body.studio-redesign .preview-project-history em.review { color: var(--command-amber); }
body.studio-redesign .preview-project-history em.draft { color: var(--ff-muted); }
body.studio-redesign .preview-project-history em.failed { color: #e45c52; }
body.studio-redesign .preview-project-history em.done { color: var(--command-teal); }

body.studio-redesign .topbar-user-chevron {
  width: 14px;
  height: 14px;
  color: var(--cc-muted);
}

:root[data-theme="light"] body.studio-redesign .hero-user-line,
:root[data-theme="light"] body.studio-redesign .hero-user-line #userName {
  color: var(--ff-muted) !important;
}

:root[data-theme="light"] body.studio-redesign .prompt-reference-button {
  color: var(--ff-muted);
}

:root[data-theme="light"] body.studio-redesign .prompt-char-count,
:root[data-theme="light"] body.studio-redesign .composer-parameter-field,
:root[data-theme="light"] body.studio-redesign .composer-lock-field,
:root[data-theme="light"] body.studio-redesign .credit-cost-label {
  color: var(--ff-muted);
}

body.studio-redesign .home-work-column,
body.studio-redesign .home-side-column {
  min-width: 0;
}

body.studio-redesign .page-create:not(.task-mode) .home-work-column > *,
body.studio-redesign .page-create:not(.task-mode) .home-side-column > * {
  grid-area: auto;
}

body.studio-redesign .page-create.task-mode .home-work-column,
body.studio-redesign .page-create.task-mode .home-side-column {
  display: contents;
}

body.studio-redesign .page-create.task-mode .home-queue-footer {
  display: none;
}

body.studio-redesign .account-settings-dialog {
  position: fixed;
  inset: 0;
  width: min(440px, calc(100% - 32px));
  max-width: none;
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 0;
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid var(--cc-line-strong);
  border-radius: 8px;
  color: var(--cc-text);
  background: var(--cc-panel);
  box-shadow: 0 24px 72px color-mix(in srgb, var(--ff-shadow-ink) 60%, transparent);
  font-size: 14px;
}

body.studio-redesign .account-settings-dialog::backdrop {
  background: #000a;
}

body.studio-redesign .account-settings-head {
  position: sticky;
  top: 0;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--cc-line);
  background: var(--cc-panel);
}

body.studio-redesign .account-settings-head h2 {
  margin: 0;
  font-size: 20px;
  line-height: 1.4;
  color: var(--cc-text);
}

body.studio-redesign .account-settings-head button {
  width: 36px;
  height: 36px;
  padding: 0;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid var(--cc-line);
  border-radius: 4px;
  color: var(--cc-muted);
  background: transparent;
}

body.studio-redesign .account-settings-dialog button svg {
  width: 18px;
  height: 18px;
}

body.studio-redesign .account-settings-body { padding: 20px; }

body.studio-redesign .account-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--cc-line);
}

body.studio-redesign .account-summary > strong {
  overflow-wrap: anywhere;
  color: var(--cc-text);
  font-size: 16px;
}

body.studio-redesign .account-summary > span { color: var(--cc-muted); font-size: 12px; }

body.studio-redesign .account-summary > div {
  grid-column: 1 / -1;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  color: var(--cc-muted);
}

body.studio-redesign .account-summary b {
  color: var(--cc-gold);
  font-size: 26px;
  font-variant-numeric: tabular-nums;
}

body.studio-redesign .account-settings-dialog h3 {
  margin: 20px 0 0;
  color: var(--cc-text);
  font-size: 16px;
}

body.studio-redesign .account-settings-dialog label {
  margin: 16px 0 8px;
  font-size: 13px;
  font-weight: 500;
}

body.studio-redesign .account-settings-dialog label span { color: var(--cc-muted); }

body.studio-redesign .account-settings-dialog :is(input, textarea) {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid var(--cc-line-strong);
  border-radius: 4px;
  color: var(--cc-text);
  background: var(--cc-bg);
  line-height: 1.5;
  font-size: 14px;
}

body.studio-redesign .account-settings-dialog textarea { resize: vertical; max-height: 180px; }

body.studio-redesign .credit-request-status {
  min-height: 22px;
  margin: 12px 0;
  overflow-wrap: anywhere;
  line-height: 1.6;
  font-size: 13px;
  color: var(--cc-muted);
}

body.studio-redesign .credit-request-status[data-status="success"] { color: var(--cc-teal); }
body.studio-redesign .credit-request-status[data-status="error"] { color: #f18c83; }

body.studio-redesign .account-settings-dialog .primary {
  width: 100%;
  min-height: 44px;
  border-radius: 4px;
  background: var(--cc-red);
  color: #fff;
}

body.studio-redesign .account-settings-dialog button:disabled { opacity: .6; cursor: wait; }

body.studio-redesign .account-settings-footer {
  padding: 14px 20px;
  border-top: 1px solid var(--cc-line);
}

body.studio-redesign .account-settings-footer button {
  min-height: 36px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--cc-muted);
  background: transparent;
  font-size: 13px;
}

body.studio-redesign .account-settings-dialog button:hover:not(:disabled) { filter: brightness(1.15); }

/* Project conversations share the new controls, not the legacy round composer. */
body.studio-redesign .page-create.task-mode .command-deck .composer {
  min-width: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--cc-line);
  border-radius: 6px;
  color: var(--cc-text);
  background: var(--cc-panel);
  box-shadow: none;
  backdrop-filter: none;
}

body.studio-redesign .page-create.task-mode .command-deck .composer:focus-within {
  border-color: var(--cc-line-strong);
}

body.studio-redesign .page-create.task-mode .command-deck .prompt-editor {
  min-height: 152px;
  max-height: 320px;
  padding: 18px 18px 10px;
  overflow-y: auto;
  overflow-wrap: anywhere;
  color: var(--cc-text);
  font-size: 14px;
  line-height: 1.7;
}

body.studio-redesign .page-create.task-mode .prompt-reference-actions {
  padding: 8px 18px 12px;
}

body.studio-redesign .page-create.task-mode .command-deck .reference-preview:not(.hidden) {
  margin: 0 18px 8px;
}

body.studio-redesign .page-create.task-mode .command-deck .composer-tools {
  width: 100%;
  min-width: 0;
  height: auto;
  min-height: 0;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  border-top: 1px solid var(--cc-line);
}

body.studio-redesign .page-create.task-mode .composer-options {
  min-width: 0;
  padding: 14px 18px;
  display: grid;
  grid-template-columns: minmax(150px, 1.8fr) repeat(3, minmax(78px, 1fr)) minmax(100px, 1fr);
  gap: 12px;
  align-items: end;
}

body.studio-redesign .page-create.task-mode :is(.composer-parameter-field, .composer-lock-field) {
  margin: 0;
  color: var(--cc-muted);
  font-size: 12px;
}

body.studio-redesign .page-create.task-mode .command-deck .composer .chip {
  width: 100%;
  min-width: 0;
  max-width: none;
  height: 38px;
  min-height: 38px;
  padding: 0 10px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  border: 1px solid var(--cc-line);
  border-radius: 4px;
  color: var(--cc-text);
  background: var(--cc-panel-raised);
  font-size: 12px;
}

body.studio-redesign .page-create.task-mode .composer .chip > span:not(.menu-arrow) {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.studio-redesign .page-create.task-mode .composer .chip .menu-arrow {
  margin-left: auto;
  flex: 0 0 auto;
}

body.studio-redesign .page-create.task-mode .composer .chip svg {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
}

body.studio-redesign .page-create.task-mode .composer-actions {
  min-width: 0;
  min-height: 68px;
  padding: 10px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--cc-line);
}

body.studio-redesign .page-create.task-mode .credit-cost-label {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 12px;
}

body.studio-redesign .page-create.task-mode .credit-cost {
  margin: 0;
  color: var(--cc-gold);
}

body.studio-redesign .page-create.task-mode .arrow-send[data-stable-hit-target] {
  position: relative;
  width: 168px;
  min-width: 168px;
  height: 44px;
  min-height: 44px;
  margin: 0;
  padding: 0 18px;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 4px;
  color: #fff;
  background: var(--cc-red);
  box-shadow: none;
  white-space: nowrap;
  font-size: 14px;
  line-height: 1;
}

body.studio-redesign .page-create.task-mode .arrow-send svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

body.studio-redesign .page-create.task-mode .arrow-send.is-busy .send-label {
  visibility: hidden;
}

@media (max-width: 1100px) {
  body.studio-redesign .page-create.task-mode .composer-options {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  body.studio-redesign .page-create.task-mode .composer-parameter-field:first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 600px) {
  body.studio-redesign .page-create.task-mode .studio-shell {
    width: calc(100% - 24px);
  }
  body.studio-redesign .page-create.task-mode .composer-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 12px;
    gap: 10px;
  }
  body.studio-redesign .page-create.task-mode .composer-actions {
    padding: 10px 12px;
  }
  body.studio-redesign .page-create.task-mode .arrow-send[data-stable-hit-target] {
    width: 140px;
    min-width: 140px;
  }
}

/* Keep real employee projects inside the fixed-width project rail. */
body.studio-redesign .project-sidebar .history {
  width: 100%;
  padding-top: 14px;
  gap: 2px;
  overflow-x: hidden;
}

body.studio-redesign .project-sidebar .history-card-media {
  width: 100%;
  min-width: 0;
  grid-template-columns: minmax(0, 1fr) 24px;
  overflow: hidden;
}

body.studio-redesign .project-sidebar .history-main {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 10px;
  overflow: hidden;
}

body.studio-redesign .project-sidebar .history-copy {
  width: 100%;
  min-width: 0;
  overflow: hidden;
}

body.studio-redesign .project-sidebar .history-copy b,
body.studio-redesign .project-sidebar .history-copy small {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.studio-redesign .project-sidebar .history-copy b {
  color: var(--ff-muted);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.35;
}

body.studio-redesign .project-sidebar .history-copy small {
  color: var(--ff-muted);
  font-size: 9px;
  line-height: 1.4;
}

body.studio-redesign .project-sidebar .history-more {
  width: 24px;
  min-width: 24px;
}

/* A single sharp image layer is clearer and much cheaper to animate. */
body.studio-redesign .page-create:not(.task-mode) .mythic-character,
body.studio-redesign .page-create:not(.task-mode) .mythic-fur-layer,
body.studio-redesign .page-create:not(.task-mode) .mythic-depth-glow,
body.studio-redesign .page-create:not(.task-mode) .mythic-cloud,
body.studio-redesign .page-create:not(.task-mode) .mythic-ribbon,
body.studio-redesign .page-create:not(.task-mode) .mythic-particles {
  display: none;
}

body.studio-redesign .page-create:not(.task-mode) .mythic-scene {
  inset: 0;
  background-position: right 27%;
  background-size: 140% auto;
  filter: brightness(1.8) contrast(1.06) saturate(1.07);
  transform: translateZ(0);
}

body.studio-redesign .page-create:not(.task-mode) .hero-bg::after {
  background: linear-gradient(90deg, rgba(5, 8, 9, .72) 0%, rgba(5, 8, 9, .42) 34%, rgba(5, 8, 9, .08) 68%, rgba(5, 8, 9, .02) 100%);
}

body.studio-redesign .topbar,
body.studio-redesign .project-sidebar,
body.studio-redesign .home-task-zone,
body.studio-redesign .home-continue-zone,
body.studio-redesign .home-insight-zone,
body.studio-redesign .command-deck {
  color: var(--ff-muted);
}

body.studio-redesign .page-create:not(.task-mode) .command-deck .hero-title h2,
body.studio-redesign .workspace-section-head h2,
body.studio-redesign .home-task-zone h2,
body.studio-redesign .home-insight-zone h2 {
  color: var(--ff-muted);
  font-weight: 650;
}

body.studio-redesign .page-create:not(.task-mode) .command-deck .hero-title p,
body.studio-redesign .prompt-editor[data-placeholder]::before,
body.studio-redesign .topbar-context > span {
  color: var(--ff-muted);
}

@media (min-width: 821px) and (max-width: 1320px) {
  body.studio-redesign .brand .logo-line {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  body.studio-redesign .brand .logo.mythic-logo {
    display: none;
  }

  body.studio-redesign .brand-copy {
    width: 100%;
    display: grid;
    justify-items: center;
    gap: 3px;
    text-align: center;
  }

  body.studio-redesign .brand-copy strong {
    color: #d5ae64;
    font-family: var(--ff-font, system-ui, sans-serif);
    font-size: 22px;
  }

  body.studio-redesign .brand-copy small {
    color: var(--ff-muted);
    font-size: 7px;
  }

  body.studio-redesign .nav-group-label {
    width: 100%;
    white-space: nowrap;
  }

  body.studio-redesign .page-create:not(.task-mode) .home-operations-head {
    padding: 0 30px;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
  }

  body.studio-redesign .page-create:not(.task-mode) .home-operations-copy {
    width: auto;
    max-width: 520px;
    margin: 0;
    text-align: left;
    transform: none;
  }

  body.studio-redesign .page-create:not(.task-mode) .home-operations-head h1 {
    color: #d8b875;
    font-size: 38px;
    font-weight: 600;
    line-height: 1.08;
    text-align: left;
  }

  body.studio-redesign .page-create:not(.task-mode) .home-operations-head p {
    margin-top: 9px;
    color: var(--ff-muted);
    font-size: 13px;
  }
}

@media (max-width: 820px) {
  body.studio-redesign .page-create:not(.task-mode) .mythic-scene {
    background-position: 74% 26%;
    background-size: auto 235%;
  }

  body.studio-redesign .page-create:not(.task-mode) .hero-bg::after {
    background: rgba(5, 8, 9, .38);
  }
}

@media (min-width: 1321px) {
  body.studio-redesign .app,
  body.studio-redesign .app:not(.sidebar-collapsed) {
    padding-left: 374px;
  }

  body.studio-redesign .sidebar,
  :root[data-theme="light"] body.studio-redesign .sidebar,
  body.studio-redesign .sidebar:not(.collapsed):hover,
  body.studio-redesign .sidebar.menu-locked {
    width: 110px;
    padding: 0 10px 10px;
  }

  body.studio-redesign .brand {
    height: 91px;
    margin: 0;
    align-items: center;
  }

  body.studio-redesign .brand .logo-line {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  body.studio-redesign .brand .logo.mythic-logo {
    display: none;
  }

  body.studio-redesign .brand-copy {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-align: center;
  }

  body.studio-redesign .brand-copy strong {
    position: relative;
    color: #d5ae64;
    font-family: var(--ff-font, system-ui, sans-serif);
    font-size: 29px;
    font-weight: 700;
    line-height: 1;
  }

  body.studio-redesign .brand-copy strong::after {
    content: "";
    position: absolute;
    right: 1px;
    bottom: -5px;
    left: 1px;
    height: 1px;
    background: #916f39;
  }

  body.studio-redesign .brand-copy small {
    margin-top: 4px;
    color: var(--ff-muted);
    font-size: 8px;
    font-weight: 600;
  }

  body.studio-redesign .sidebar-toggle {
    top: 31px;
    left: 121px;
    width: 24px;
    height: 24px;
    border: 0;
    color: var(--ff-muted);
    background: transparent;
  }

  body.studio-redesign .sidebar-toggle svg {
    width: 18px;
    height: 18px;
  }

  body.studio-redesign .sidebar .nav {
    padding-top: 19px;
    gap: 4px;
  }

  body.studio-redesign .sidebar .nav > .nav-group-label:first-child {
    display: none;
  }

  body.studio-redesign .nav-group-label {
    margin: 17px 8px 4px;
    color: var(--ff-muted);
    font-size: 10px;
    font-weight: 500;
  }

  body.studio-redesign .nav button {
    min-height: 62px;
    padding: 8px 3px;
    gap: 7px;
    border: 0;
    border-radius: 3px;
    font-size: 11px;
  }

  body.studio-redesign .nav button:first-of-type {
    min-height: 73px;
  }

  body.studio-redesign .nav button svg {
    width: 21px;
    height: 21px;
  }

  body.studio-redesign .nav button.active {
    color: #e8dfcc;
    background: #2b2924;
    box-shadow: inset 2px 0 0 var(--command-red);
  }

  body.studio-redesign .sidebar-settings {
    margin-top: auto;
    padding-top: 4px;
  }

  body.studio-redesign .sidebar-settings .settings-main {
    min-height: 53px;
  }

  body.studio-redesign .project-sidebar {
    inset: 0 auto 0 110px;
    width: 264px;
    padding: 0 12px 13px;
    border-right-color: var(--cc-line);
    background: var(--cc-sidebar-2);
  }

  body.studio-redesign .project-sidebar-head {
    position: relative;
    height: 72px;
    align-items: center;
  }

  body.studio-redesign .project-sidebar-head > div {
    display: none;
  }

  body.studio-redesign .project-view-toggle {
    position: absolute;
    right: 4px;
    width: 30px;
    height: 30px;
    border: 0;
    color: var(--ff-muted);
    background: transparent;
  }

  body.studio-redesign .project-sidebar .sidebar-new {
    min-height: 43px;
    margin: 17px 0 24px;
    font-size: 13px;
    font-weight: 650;
    background: linear-gradient(90deg, #9d3027, #bf4132);
  }

  body.studio-redesign .project-sidebar .history-head {
    min-height: 29px;
    padding: 0 7px 8px;
    border-bottom: 1px solid var(--ff-line-strong);
  }

  body.studio-redesign .project-sidebar .history-head > span {
    color: var(--ff-muted);
    font-size: 11px;
    font-weight: 600;
  }

  body.studio-redesign .project-sidebar .history-head button {
    color: var(--ff-muted);
    font-size: 10px;
  }

  body.studio-redesign.commercial-preview-history .preview-project-history {
    padding-top: 14px;
    gap: 2px;
  }

  body.studio-redesign .preview-project-history > button {
    min-height: 98px;
    padding: 9px 7px;
    grid-template-columns: 62px minmax(0, 1fr);
    gap: 10px;
    border-radius: 3px;
  }

  body.studio-redesign .preview-project-history > button:first-child,
  body.studio-redesign .preview-project-history > button:hover {
    border-color: #80613a;
    background: var(--cc-panel);
  }

  body.studio-redesign .preview-project-history img {
    width: 62px;
    height: 62px;
    border-radius: 3px;
  }

  body.studio-redesign .preview-project-history span {
    gap: 4px;
  }

  body.studio-redesign .preview-project-history b {
    font-size: 12px;
  }

  body.studio-redesign .preview-project-history small {
    color: var(--ff-muted);
    font-size: 9px;
  }

  body.studio-redesign .project-sidebar .history-card {
    min-height: 84px;
    margin: 2px 0;
  }

  body.studio-redesign .project-sidebar .history-main {
    min-height: 82px;
    padding: 9px 7px;
  }

  body.studio-redesign .project-sidebar .history-thumb {
    width: 58px;
    height: 58px;
  }

  body.studio-redesign .project-sidebar-all {
    min-height: 45px;
    margin-top: 12px;
    flex: 0 0 auto;
  }

  body.studio-redesign .topbar {
    height: 70px;
    padding: 0 30px;
    background: #181818;
  }

  body.studio-redesign .topbar-context {
    gap: 12px;
  }

  body.studio-redesign .topbar-context .crumb {
    font-size: 13px;
    font-weight: 500;
  }

  body.studio-redesign .topbar-context > span {
    padding-left: 14px;
    border-left: 0;
    color: var(--ff-muted);
    font-size: 13px;
  }

  body.studio-redesign .topbar-context > span::before {
    content: "/";
    margin-right: 14px;
    color: var(--ff-muted);
  }

  body.studio-redesign .top-right {
    height: 100%;
    gap: 10px;
  }

  body.studio-redesign .system-state {
    min-width: 104px;
    height: 42px;
    margin-right: 7px;
    padding-right: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-right: 1px solid var(--ff-line-strong);
  }

  body.studio-redesign .system-state > svg {
    width: 23px;
    height: 23px;
    padding: 3px;
    border: 1px solid #2d8b70;
    border-radius: 50%;
    color: #42b394;
  }

  body.studio-redesign .system-state > span {
    display: grid;
    gap: 2px;
  }

  body.studio-redesign .system-state b {
    color: var(--ff-muted);
    font-size: 11px;
    font-weight: 650;
  }

  body.studio-redesign .system-state small {
    color: var(--ff-muted);
    font-size: 9px;
  }

  body.studio-redesign .topbar-tool {
    height: 39px;
    border: 0;
    background: transparent;
  }

  body.studio-redesign .topbar-tool.task-inbox {
    min-width: 137px;
    padding: 0 28px 0 8px;
    border-right: 1px solid var(--ff-line-strong);
  }

  body.studio-redesign .topbar-tool.task-inbox > svg {
    width: 34px;
    height: 34px;
    padding: 8px;
    border: 1px solid var(--ff-line-strong);
    border-radius: 50%;
    background: var(--cc-panel);
  }

  body.studio-redesign .topbar-tool.task-inbox > span {
    font-size: 12px;
  }

  body.studio-redesign .topbar-tool b {
    top: -1px;
    right: 14px;
  }

  body.studio-redesign .topbar-user {
    min-width: 74px;
    padding: 0;
    text-align: left;
  }

  body.studio-redesign .topbar-user strong {
    font-size: 12px;
  }

  body.studio-redesign .topbar-user span {
    color: var(--ff-muted);
    font-size: 9px;
  }

  body.studio-redesign .avatar {
    width: 38px;
    height: 38px;
    font-size: 13px;
  }

  body.studio-redesign .page-create {
    min-height: calc(100vh - 70px);
  }

  body.studio-redesign .page-create:not(.task-mode) .hero-bg {
    height: 166px;
    background: var(--cc-bg);
  }

  body.studio-redesign .page-create:not(.task-mode) .hero-bg::after {
    background: linear-gradient(90deg, rgba(5, 8, 9, .76) 0%, rgba(5, 8, 9, .22) 50%, rgba(5, 8, 9, .06) 100%);
  }

  body.studio-redesign .page-create:not(.task-mode) .mythic-scene,
  body.studio-redesign .page-create:not(.task-mode) .mythic-character,
  body.studio-redesign .page-create:not(.task-mode) .mythic-fur-layer,
  body.studio-redesign .page-create:not(.task-mode) .mythic-depth-glow {
    inset: 0;
    background-position: right 27%;
    background-size: 140% auto;
  }

  body.studio-redesign .page-create:not(.task-mode) .mythic-character-wrap {
    inset: 0;
  }

  body.studio-redesign .page-create:not(.task-mode) .mythic-scene {
    filter: brightness(1.8) contrast(1.06) saturate(1.07);
  }

  body.studio-redesign .page-create:not(.task-mode) .mythic-character {
    opacity: 1;
    filter: brightness(1.38) contrast(1.12) saturate(1.02) drop-shadow(-14px 10px 24px rgba(0, 0, 0, .5));
  }

  body.studio-redesign .page-create:not(.task-mode) .studio-shell {
    width: 100%;
    margin: 0;
    padding: 0;
    grid-template-columns: minmax(0, 1fr) 458px;
    grid-template-areas:
      "banner banner"
      "work side"
      "legacy legacy";
    column-gap: 0;
    row-gap: 0;
  }

  body.studio-redesign .page-create:not(.task-mode) .home-operations-head {
    position: relative;
    grid-area: banner;
    height: 166px;
    padding: 0 32px;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
    border-bottom-color: rgba(208, 172, 104, .22);
  }

  body.studio-redesign .page-create:not(.task-mode) .home-operations-copy {
    position: absolute;
    top: 52px;
    left: 34px;
    width: auto;
    max-width: 560px;
    margin: 0;
    text-align: left;
    transform: none;
  }

  body.studio-redesign .page-create:not(.task-mode) .workspace-eyebrow {
    display: none;
  }

  body.studio-redesign .page-create:not(.task-mode) .home-operations-head h1 {
    margin: 0;
    color: #d8b875;
    font-family: var(--ff-font, system-ui, sans-serif);
    font-size: 38px;
    font-weight: 600;
    transform: none;
  }

  body.studio-redesign .page-create:not(.task-mode) .home-operations-head p {
    margin: 9px 0 0;
    color: var(--ff-muted);
    font-size: 13px;
    transform: none;
  }

  :root[data-theme="light"] body.studio-redesign .page-create:not(.task-mode) .home-operations-head p {
    color: var(--ff-muted);
  }

  body.studio-redesign .page-create:not(.task-mode) .home-work-column {
    grid-area: work;
    padding: 18px 28px 40px;
    display: grid;
    align-content: start;
    gap: 24px;
  }

  body.studio-redesign .page-create:not(.task-mode) .home-side-column {
    grid-area: side;
    display: grid;
    align-content: start;
    border-left: 1px solid var(--command-line);
  }

  body.studio-redesign .page-create:not(.task-mode) .home-prime {
    margin: 0;
  }

  body.studio-redesign .page-create:not(.task-mode) .command-deck {
    min-height: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    overflow: visible;
  }

  body.studio-redesign .page-create:not(.task-mode) .command-deck .hero-title {
    height: 52px;
    margin: 0;
    padding: 1px 4px 12px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
  }

  body.studio-redesign .page-create:not(.task-mode) .command-deck .hero-title h2 {
    color: var(--ff-muted);
    font-size: 23px;
    font-weight: 650;
  }

  body.studio-redesign .page-create:not(.task-mode) .command-deck .hero-title p {
    display: none;
  }

  body.studio-redesign .page-create:not(.task-mode) .home-flow-switch {
    min-height: 44px;
    border: 1px solid var(--command-line);
    background: var(--cc-panel);
  }

  body.studio-redesign .page-create:not(.task-mode) .home-flow-switch button {
    min-height: 43px;
    border-right-color: var(--command-line);
    font-size: 12px;
  }

  body.studio-redesign .page-create:not(.task-mode) .home-flow-switch button.active {
    background: linear-gradient(90deg, #a83429, #c34334);
    box-shadow: inset 0 -2px 0 #d8a45d;
  }

  body.studio-redesign .page-create:not(.task-mode) .command-deck .composer {
    min-height: 315px;
    border: 1px solid var(--command-line);
    border-top: 0;
    background: var(--cc-panel);
  }

  body.studio-redesign .page-create:not(.task-mode) .prompt-input-shell {
    min-height: 169px;
    border-bottom: 1px solid var(--command-line);
    background: var(--cc-panel);
  }

  body.studio-redesign .page-create:not(.task-mode) .command-deck .prompt-editor {
    min-height: 112px;
    padding: 18px 16px 8px;
    font-size: 13px;
    line-height: 1.6;
  }

  body.studio-redesign .page-create:not(.task-mode) .command-deck .reference-preview:not(.hidden) {
    margin: 0 14px 7px;
  }

  body.studio-redesign .page-create:not(.task-mode) .prompt-reference-actions {
    margin-top: auto;
  }

  body.studio-redesign .page-create:not(.task-mode) .command-deck .composer-tools {
    height: 145px;
    min-height: 145px;
    margin: 0;
    border-top: 0;
    background: var(--cc-bg-soft);
    box-sizing: border-box;
  }

  body.studio-redesign .page-create:not(.task-mode) .composer-options {
    height: 87px;
    min-height: 87px;
    padding: 13px 14px 12px;
    display: grid;
    grid-template-columns: minmax(145px, 1.55fr) minmax(72px, .76fr) minmax(72px, .76fr) minmax(80px, .82fr) 74px;
    align-items: end;
    gap: 8px;
    box-sizing: border-box;
  }

  body.studio-redesign .page-create:not(.task-mode) .composer-actions {
    height: 58px;
    min-height: 58px;
    padding: 8px 6px 8px 14px;
    border-top-color: var(--command-line);
    box-sizing: border-box;
  }

  body.studio-redesign .page-create:not(.task-mode) .command-deck .composer .chip {
    width: 100%;
    min-width: 0;
    min-height: 35px;
    padding: 0 9px;
    justify-content: space-between;
    overflow: hidden;
    border-color: var(--cc-line);
    color: var(--cc-text);
    background: var(--cc-panel-raised);
    font-size: 10px;
  }

  body.studio-redesign .page-create:not(.task-mode) .command-deck .composer .chip > span:first-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body.studio-redesign .page-create:not(.task-mode) .composer-lock-field {
    justify-items: center;
  }

  body.studio-redesign .page-create:not(.task-mode) .reference-mode-chip.active {
    position: relative;
    width: 40px !important;
    min-height: 23px !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 12px !important;
    color: transparent !important;
    background: var(--ff-subtle) !important;
    font-size: 0 !important;
  }

  body.studio-redesign .page-create:not(.task-mode) .reference-mode-chip.active::after {
    content: "";
    position: absolute;
    top: 3px;
    right: 3px;
    width: 17px;
    height: 17px;
    border-radius: 50%;
    background: var(--ff-surface);
    box-shadow: 0 1px 3px color-mix(in srgb, var(--ff-shadow-ink) 35%, transparent);
  }

  body.studio-redesign .page-create:not(.task-mode) .credit-cost-label {
    color: var(--ff-muted);
  }

  body.studio-redesign .page-create:not(.task-mode) .credit-cost {
    margin: 0 0 0 6px;
    color: #e6b958;
    font-size: 11px;
  }

  body.studio-redesign .page-create:not(.task-mode) .arrow-send[data-stable-hit-target] {
    width: 221px;
    min-width: 221px;
    height: 46px;
    margin: 0;
    border-radius: 3px;
    background: linear-gradient(90deg, #a63228, #c64334);
    font-size: 14px;
    font-weight: 650;
  }

  body.studio-redesign .page-create:not(.task-mode) .arrow-send[data-stable-hit-target]:hover {
    background: linear-gradient(90deg, #b63a2d, #d34d3b);
  }

  body.studio-redesign .page-create:not(.task-mode) .home-task-zone,
  body.studio-redesign .page-create:not(.task-mode) .home-continue-zone,
  body.studio-redesign .page-create:not(.task-mode) .home-insight-zone {
    margin: 0;
    border-color: var(--command-line);
    border-radius: 0;
    background: var(--cc-panel);
  }

  body.studio-redesign .page-create:not(.task-mode) .home-task-zone {
    min-height: 529px;
    border-width: 0 1px 1px 0;
  }

  body.studio-redesign .workspace-section-head {
    min-height: 70px;
    padding: 0 22px;
    border-bottom: 1px solid var(--command-line);
  }

  body.studio-redesign .workspace-section-head > div > span {
    display: none;
  }

  body.studio-redesign .workspace-section-head h2 {
    color: var(--ff-muted);
    font-size: 21px;
    font-weight: 620;
  }

  body.studio-redesign .workspace-section-head button {
    color: var(--ff-muted);
    font-size: 10px;
  }

  body.studio-redesign .page-create:not(.task-mode) .home-metrics {
    height: 70px;
    min-height: 70px;
    border-bottom: 1px solid var(--command-line);
    background: var(--cc-panel);
    box-sizing: border-box;
  }

  body.studio-redesign .page-create:not(.task-mode) .home-metrics > div {
    height: 70px;
    min-height: 70px;
    padding: 12px 20px;
    border-left-color: var(--command-line);
    background: transparent;
    box-sizing: border-box;
  }

  body.studio-redesign .page-create:not(.task-mode) .home-metrics span {
    color: var(--ff-muted);
    font-size: 9px;
  }

  body.studio-redesign .page-create:not(.task-mode) .home-metrics b {
    margin-top: 5px;
    font-size: 23px;
  }

  body.studio-redesign .page-create:not(.task-mode) .home-metrics > div:nth-child(3) b {
    color: #df584f;
  }

  body.studio-redesign .home-queue-row {
    min-height: 67px;
    padding: 8px 15px;
    grid-template-columns: 50px minmax(118px, 1fr) 52px 98px 56px;
    gap: 9px;
    border-bottom-color: var(--command-line);
  }

  body.studio-redesign .home-queue-row > img {
    width: 50px;
    height: 50px;
    border-radius: 2px;
  }

  body.studio-redesign .queue-copy {
    gap: 5px;
  }

  body.studio-redesign .queue-copy b {
    font-size: 11px;
  }

  body.studio-redesign .queue-copy small,
  body.studio-redesign .queue-owner {
    font-size: 9px;
  }

  body.studio-redesign .queue-progress {
    display: grid;
    grid-template-columns: 1fr 25px;
    gap: 6px;
  }

  body.studio-redesign .queue-progress small {
    text-align: right;
  }

  body.studio-redesign .queue-open {
    display: none;
  }

  body.studio-redesign .home-queue-footer {
    min-height: 42px;
  }

  body.studio-redesign .home-continue-zone {
    border: 0;
    background: transparent;
  }

  body.studio-redesign .home-continue-zone > .workspace-section-head {
    min-height: 40px;
    padding: 0 4px;
    border: 0;
  }

  body.studio-redesign .home-continue-zone > .workspace-section-head h2 {
    font-size: 21px;
  }

  body.studio-redesign .home-continue-list {
    overflow: hidden;
    border: 1px solid var(--command-line);
    border-radius: 3px;
    background: var(--cc-panel);
  }

  body.studio-redesign .continue-table-head,
  body.studio-redesign .home-project-row {
    grid-template-columns: minmax(168px, 1.8fr) minmax(87px, .9fr) minmax(78px, .78fr) minmax(58px, .62fr) minmax(75px, .75fr) 50px;
    gap: 7px;
  }

  body.studio-redesign .continue-table-head {
    min-height: 34px;
    padding: 0 10px;
    font-size: 9px;
  }

  body.studio-redesign .home-project-row {
    min-height: 47px;
    padding: 5px 10px;
    font-size: 9px;
  }

  body.studio-redesign .project-name {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 7px;
  }

  body.studio-redesign .project-name img {
    width: 34px;
    height: 34px;
  }

  body.studio-redesign .project-name b {
    font-size: 10px;
  }

  body.studio-redesign .home-insight-zone {
    min-height: 293px;
    border-width: 0 1px 1px 0;
  }

  body.studio-redesign .home-insight-zone > .workspace-section-head {
    min-height: 62px;
  }

  body.studio-redesign .home-insight-content {
    min-height: 230px;
    padding: 14px 18px 18px;
    display: grid;
    grid-template-columns: 1.08fr .92fr;
    gap: 0;
    background: transparent;
  }

  body.studio-redesign .insight-signal,
  body.studio-redesign .insight-action {
    min-width: 0;
    display: grid;
    align-content: start;
  }

  body.studio-redesign .insight-signal {
    padding-right: 17px;
    grid-template-columns: minmax(0, 1fr) 74px;
    border-right: 1px solid var(--command-line);
  }

  body.studio-redesign .insight-signal > span,
  body.studio-redesign .insight-signal > strong,
  body.studio-redesign .insight-signal > p {
    grid-column: 1 / -1;
  }

  body.studio-redesign .insight-signal > span,
  body.studio-redesign .insight-action > span {
    color: var(--ff-muted);
    font-size: 9px;
  }

  body.studio-redesign .insight-signal > strong {
    margin-top: 7px;
    color: var(--command-gold);
    font-size: 13px;
  }

  body.studio-redesign .insight-signal > p {
    margin: 5px 0 10px;
    color: var(--ff-muted);
    font-size: 9px;
  }

  body.studio-redesign .insight-signal > img {
    width: 74px;
    height: 91px;
    align-self: end;
    object-fit: cover;
    border-radius: 2px;
  }

  body.studio-redesign .insight-signal dl {
    margin: 0;
    padding: 9px 0 0 11px;
    display: grid;
    align-content: center;
    gap: 10px;
  }

  body.studio-redesign .insight-signal dl div {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 5px;
  }

  body.studio-redesign .insight-signal dt {
    color: var(--ff-muted);
    font-size: 9px;
  }

  body.studio-redesign .insight-signal dd {
    margin: 0;
    color: #e1b653;
    font-size: 15px;
    font-weight: 700;
  }

  body.studio-redesign .insight-action {
    padding-left: 18px;
  }

  body.studio-redesign .insight-action > p {
    margin: 9px 0 5px;
    color: var(--ff-muted);
    font-size: 9px;
  }

  body.studio-redesign .insight-action > strong {
    color: var(--ff-muted);
    font-size: 11px;
  }

  body.studio-redesign .insight-action > button {
    width: 100%;
    min-height: 39px;
    margin-top: 26px;
    border: 0;
    border-radius: 2px;
    color: #fff8f0;
    background: var(--command-red);
    font-size: 11px;
  }

  body.studio-redesign .insight-action > a {
    margin-top: 18px;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    color: var(--command-gold);
    font-size: 9px;
    text-decoration: none;
  }

  body.studio-redesign .insight-action > a svg {
    width: 12px;
    height: 12px;
  }
}

@media (max-width: 1320px) {
  body.studio-redesign .page-create:not(.task-mode) .studio-shell {
    grid-template-columns: minmax(0, 1fr) 380px;
    grid-template-areas:
      "banner banner"
      "work side"
      "legacy legacy";
  }

  body.studio-redesign .page-create:not(.task-mode) .home-work-column {
    grid-area: work;
    min-width: 0;
    display: grid;
    align-content: start;
    gap: 14px;
  }

  body.studio-redesign .page-create:not(.task-mode) .home-work-column > *,
  body.studio-redesign .page-create:not(.task-mode) .home-side-column > * {
    grid-area: auto;
  }

  body.studio-redesign .page-create:not(.task-mode) .home-side-column {
    grid-area: side;
    min-width: 0;
    display: grid;
    align-content: start;
    gap: 14px;
  }

  body.studio-redesign .page-create:not(.task-mode) .composer-options {
    display: grid;
    grid-template-columns: minmax(160px, 1.4fr) repeat(3, minmax(72px, .7fr));
  }

  body.studio-redesign .page-create:not(.task-mode) .composer-lock-field {
    grid-column: 1 / -1;
    grid-template-columns: 1fr auto;
    align-items: center;
  }

  body.studio-redesign .home-queue-row {
    grid-template-columns: 48px minmax(100px, 1fr) 82px 52px;
  }

  body.studio-redesign .home-queue-row .queue-owner,
  body.studio-redesign .home-queue-row .queue-open {
    display: none;
  }
}

@media (max-width: 1080px) {
  body.studio-redesign .page-create:not(.task-mode) .studio-shell {
    grid-template-columns: 1fr;
    grid-template-areas:
      "banner"
      "work"
      "side"
      "legacy";
  }

  body.studio-redesign .page-create:not(.task-mode) .home-work-column,
  body.studio-redesign .page-create:not(.task-mode) .home-side-column {
    gap: 14px;
  }
}

@media (max-width: 820px) {
  body.studio-redesign .prompt-reference-actions {
    padding-inline: 10px;
  }

  body.studio-redesign .page-create:not(.task-mode) .composer-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.studio-redesign .page-create:not(.task-mode) .composer-actions {
    gap: 10px;
  }

  body.studio-redesign .page-create:not(.task-mode) .credit-cost-label {
    font-size: 10px;
  }

  body.studio-redesign .queue-owner {
    display: none;
  }
}

@media (max-width: 560px) {
  body.studio-redesign .prompt-reference-button span {
    display: none;
  }

  body.studio-redesign .prompt-reference-button {
    width: 32px;
    padding: 0;
  }

  body.studio-redesign .page-create:not(.task-mode) .composer-options {
    grid-template-columns: 1fr 1fr;
  }

  body.studio-redesign .page-create:not(.task-mode) .composer-lock-field {
    grid-column: 1 / -1;
  }

  body.studio-redesign .home-queue-row {
    grid-template-columns: 42px minmax(0, 1fr) 54px;
  }

  body.studio-redesign .home-queue-row .queue-progress {
    display: none;
  }
}
