:root {
  color-scheme: light;
  --paper: #f3f5f1;
  --paper-2: #ffffff;
  --ink: #191b18;
  --ink-soft: #4d534b;
  --muted: #7b8178;
  --line: #d9ddd3;
  --line-strong: #bdc5b6;
  --graphite: #151714;
  --graphite-2: #23271f;
  --warm-panel: #fbfaf5;
  --coral: #ff5a3d;
  --teal: #00a98f;
  --acid: #d6ff3f;
  --blue: #356cff;
  --shadow: 0 24px 80px rgba(28, 31, 25, 0.14);
  --shadow-tight: 0 10px 28px rgba(28, 31, 25, 0.12);
  --text-xxs: 10px;
  --text-xs: 11px;
  --text-sm: 12px;
  --text-base: 14px;
  --text-md: 15px;
  --text-lg: 16px;
  --text-xl: 18px;
  --text-2xl: 20px;
  --text-3xl: 22px;
  --text-display: clamp(28px, 2.8vw, 38px);
  font-family: "Avenir Next", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  width: 100%;
  height: 100vh;
  min-height: 100vh;
  overflow: hidden;
  font-size: var(--text-base);
  line-height: 1.55;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(21, 23, 20, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(21, 23, 20, 0.035) 1px, transparent 1px),
    linear-gradient(135deg, #f7f8f4 0%, #eef3ef 44%, #f6f2ec 100%);
  background-size: 42px 42px, 42px 42px, auto;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(125deg, rgba(255, 90, 61, 0.16), transparent 34%),
    linear-gradient(250deg, rgba(0, 169, 143, 0.14), transparent 38%),
    repeating-linear-gradient(0deg, rgba(25, 27, 24, 0.025) 0 1px, transparent 1px 4px);
  mix-blend-mode: multiply;
}

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

button {
  color: inherit;
}

.app-shell {
  display: grid;
  grid-template-columns: minmax(330px, 390px) 1fr;
  height: 100vh;
  min-height: 100vh;
  position: relative;
  overflow: hidden;
}

.sidebar {
  color: #f8faf5;
  background:
    radial-gradient(circle at 22% 14%, rgba(255, 255, 255, 0.08), transparent 21%),
    linear-gradient(180deg, rgba(255, 90, 61, 0.16), transparent 28%),
    linear-gradient(145deg, var(--graphite), #0f110e 72%);
  padding: 24px;
  height: 100vh;
  overflow-x: hidden;
  overflow-y: auto;
  min-width: 0;
  overscroll-behavior: contain;
  box-shadow: 16px 0 60px rgba(24, 26, 22, 0.16);
}

.sidebar::-webkit-scrollbar {
  width: 10px;
}

.sidebar::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  border: 3px solid transparent;
  background-clip: content-box;
}

.brand,
.topbar,
.section-head,
.render-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  justify-content: flex-start;
  min-height: 72px;
  margin-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  padding-bottom: 18px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: var(--acid);
  color: var(--graphite);
  font-weight: 900;
  letter-spacing: 0;
  box-shadow: 6px 6px 0 rgba(255, 90, 61, 0.95);
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

h1 {
  font-size: var(--text-3xl);
  line-height: 1.05;
}

h2 {
  max-width: 740px;
  font-size: var(--text-display);
  line-height: 1.02;
  letter-spacing: 0;
}

h3 {
  font-size: var(--text-2xl);
  line-height: 1.15;
}

.eyebrow {
  color: var(--coral);
  font-size: var(--text-xs);
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 7px;
}

.sidebar .eyebrow {
  color: var(--acid);
}

.brief-form {
  display: grid;
  gap: 14px;
  width: 100%;
  max-width: 100%;
}

label {
  display: grid;
  gap: 8px;
  width: 100%;
  max-width: 100%;
}

label span {
  color: rgba(248, 250, 245, 0.72);
  font-size: var(--text-sm);
  font-weight: 800;
}

input,
textarea,
select {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.055));
  color: #f8faf5;
  padding: 12px 13px;
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

select option {
  color: var(--ink);
}

textarea {
  resize: vertical;
  line-height: 1.5;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--acid);
  box-shadow: 0 0 0 3px rgba(214, 255, 63, 0.2);
}

.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.platform-picker {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  border: 0;
  margin: 0;
  padding: 0;
}

.platform-picker legend {
  grid-column: 1 / -1;
  color: rgba(248, 250, 245, 0.72);
  font-size: var(--text-sm);
  font-weight: 800;
  padding: 0 0 2px;
}

.platform-picker label {
  display: block;
  position: relative;
  cursor: pointer;
}

.platform-picker input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.platform-picker span {
  display: grid;
  place-items: center;
  min-height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: rgba(248, 250, 245, 0.72);
  font-size: var(--text-sm);
  font-weight: 900;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.platform-picker label:hover span {
  transform: translateY(-1px);
  border-color: rgba(214, 255, 63, 0.5);
}

.platform-picker input:checked + span {
  background: var(--acid);
  border-color: var(--acid);
  color: var(--graphite);
  box-shadow: 0 10px 22px rgba(214, 255, 63, 0.16);
}

.format-advisor {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 10px;
  align-items: stretch;
  border: 1px solid rgba(214, 255, 63, 0.3);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(214, 255, 63, 0.09), rgba(255, 255, 255, 0.04));
  padding: 12px;
}

.advisor-main {
  display: grid;
  place-content: center;
  border-radius: 7px;
  background: rgba(214, 255, 63, 0.14);
  min-height: 78px;
  text-align: center;
}

.advisor-main span {
  color: rgba(248, 250, 245, 0.62);
  font-size: var(--text-xs);
  font-weight: 900;
}

.advisor-main strong {
  color: var(--acid);
  font-size: var(--text-xl);
  line-height: 1;
  margin-top: 7px;
}

.advisor-copy {
  display: grid;
  align-content: center;
  gap: 7px;
  min-width: 0;
}

.advisor-copy > strong {
  color: #f8faf5;
  font-size: var(--text-sm);
}

.advisor-copy p {
  color: rgba(248, 250, 245, 0.7);
  font-size: var(--text-sm);
  line-height: 1.5;
}

.advisor-copy small {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.advisor-copy small b {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: rgba(248, 250, 245, 0.7);
  font-size: var(--text-xs);
  padding: 4px 7px;
}

.advisor-copy small em {
  color: var(--acid);
  font-style: normal;
}

.drop-zone {
  min-height: 94px;
  border: 1px dashed rgba(214, 255, 63, 0.42);
  border-radius: 10px;
  padding: 18px;
  background: rgba(214, 255, 63, 0.08);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.drop-zone::after {
  content: "+";
  position: absolute;
  right: 16px;
  top: 16px;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--acid);
  color: var(--graphite);
  font-weight: 900;
}

.drop-zone:hover {
  border-color: var(--acid);
  background: rgba(214, 255, 63, 0.13);
  transform: translateY(-1px);
}

.drop-zone input {
  display: none;
}

.drop-title {
  color: #f8faf5;
  font-weight: 900;
}

.drop-hint {
  color: rgba(248, 250, 245, 0.62);
  font-size: var(--text-sm);
}

.asset-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.asset-chip {
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(248, 250, 245, 0.78);
  border-radius: 999px;
  padding: 7px 10px;
  font-size: var(--text-sm);
}

.status-pill {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  background: var(--paper-2);
  color: var(--ink-soft);
  border-radius: 999px;
  padding: 9px 13px;
  font-size: var(--text-sm);
  font-weight: 800;
  box-shadow: var(--shadow-tight);
}

.primary-action,
.ghost-button {
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.primary-action {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  background: var(--coral);
  color: white;
  padding: 14px 16px;
  font-weight: 900;
  box-shadow: 0 14px 36px rgba(255, 90, 61, 0.28);
}

.primary-action:hover,
.ghost-button:hover {
  transform: translateY(-2px);
}

.primary-action:active,
.ghost-button:active,
.idea-card:active,
.scene-row:active {
  transform: translateY(0);
}

.primary-action svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ghost-button {
  background: var(--graphite);
  border-color: var(--graphite);
  color: #f8faf5;
  padding: 9px 13px;
  font-weight: 900;
  box-shadow: var(--shadow-tight);
}

.ghost-button:disabled {
  opacity: 0.58;
  cursor: wait;
}

.workspace {
  min-width: 0;
  height: 100vh;
  padding: 34px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.workspace::-webkit-scrollbar {
  width: 12px;
}

.workspace::-webkit-scrollbar-thumb {
  background: rgba(25, 27, 24, 0.2);
  border: 4px solid transparent;
  border-radius: 999px;
  background-clip: content-box;
}

.topbar {
  align-items: flex-start;
  margin-bottom: 24px;
  padding: 2px 2px 20px;
}

.top-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.top-metrics span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
  color: var(--ink-soft);
  padding: 6px 10px;
  font-size: var(--text-sm);
  font-weight: 800;
  box-shadow: 0 8px 20px rgba(28, 31, 25, 0.06);
}

.ideas-panel,
.director-panel {
  border-top: 1px solid var(--line);
  padding-top: 22px;
  margin-top: 22px;
  position: relative;
}

.section-help {
  max-width: 780px;
  color: var(--muted);
  font-size: var(--text-sm);
  line-height: 1.55;
  margin-top: 8px;
}

.ideas-panel::before,
.director-panel::before {
  content: "";
  position: absolute;
  left: 0;
  top: -1px;
  width: 72px;
  height: 2px;
  background: var(--coral);
}

.ideas-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.idea-card {
  min-height: 228px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(251, 250, 245, 0.92));
  color: var(--ink);
  padding: 18px;
  text-align: left;
  position: relative;
  cursor: pointer;
  box-shadow: var(--shadow-tight);
  overflow: hidden;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.idea-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: linear-gradient(90deg, var(--coral), var(--acid), var(--teal));
  opacity: 0;
  transition: opacity 180ms ease;
}

.idea-card:hover,
.idea-card.is-selected {
  transform: translateY(-4px);
  border-color: var(--graphite);
  box-shadow: 0 18px 50px rgba(28, 31, 25, 0.16);
}

.idea-card.is-selected::after {
  content: "已选";
  position: absolute;
  right: 14px;
  bottom: 14px;
  border-radius: 999px;
  background: var(--graphite);
  color: var(--acid);
  padding: 5px 9px;
  font-size: var(--text-xs);
  font-weight: 900;
}

.idea-card:hover::before,
.idea-card.is-selected::before {
  opacity: 1;
}

.idea-card p {
  color: var(--teal);
  font-size: var(--text-xs);
  font-weight: 900;
  margin-bottom: 28px;
}

.idea-card h4 {
  max-width: 86%;
  font-size: var(--text-xl);
  line-height: 1.2;
  margin-bottom: 16px;
}

.idea-card strong {
  display: inline-flex;
  background: #eefbd1;
  color: #415300;
  border-radius: 999px;
  padding: 5px 9px;
  margin-bottom: 14px;
  font-size: var(--text-sm);
}

.idea-card small {
  display: block;
  color: var(--muted);
  line-height: 1.55;
}

.idea-score {
  position: absolute;
  top: 15px;
  right: 16px;
  color: var(--coral);
  font-weight: 900;
  text-align: right;
}

.idea-score b,
.idea-score small {
  display: block;
}

.idea-score b {
  font-size: var(--text-xl);
  line-height: 1;
}

.idea-score small {
  color: var(--muted);
  font-size: var(--text-xxs);
  margin-top: 3px;
}

.director-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(310px, 380px);
  gap: 24px;
  margin-top: 16px;
  align-items: start;
}

.storyboard-list {
  display: grid;
  gap: 10px;
}

.scene-row {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 14px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.96), rgba(251, 250, 245, 0.76));
  color: var(--ink);
  padding: 14px;
  text-align: left;
  cursor: default;
  box-shadow: 0 8px 22px rgba(28, 31, 25, 0.06);
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.scene-row:hover,
.scene-row.is-active {
  transform: translateX(3px);
  border-color: var(--teal);
  background: #ffffff;
}

.scene-row.is-active {
  box-shadow: 0 16px 36px rgba(0, 169, 143, 0.13);
}

.scene-no {
  display: grid;
  place-items: center;
  height: 42px;
  background: var(--graphite);
  color: var(--acid);
  font-weight: 900;
  border-radius: 6px;
}

.scene-row p {
  color: var(--muted);
  font-size: var(--text-xs);
  margin-bottom: 5px;
}

.scene-row h4 {
  font-size: 16px;
  line-height: 1.22;
  margin-bottom: 6px;
}

.scene-row small {
  display: block;
  margin-top: 7px;
  color: #687066;
  line-height: 1.48;
}

.scene-row h4[contenteditable],
.scene-row small[contenteditable] {
  border-radius: 6px;
  outline: none;
  padding: 2px 4px;
  margin-left: -4px;
  transition: background 160ms ease, box-shadow 160ms ease;
}

.scene-row h4[contenteditable]:hover,
.scene-row small[contenteditable]:hover {
  background: rgba(0, 169, 143, 0.06);
}

.scene-row h4[contenteditable]:focus,
.scene-row small[contenteditable]:focus {
  background: #ffffff;
  box-shadow: 0 0 0 2px rgba(0, 169, 143, 0.22);
}

.prompt-label {
  display: inline-flex;
  margin-top: 5px;
  border-radius: 999px;
  background: #eefbd1;
  color: #415300;
  padding: 4px 8px;
  font-size: var(--text-xs);
  font-weight: 900;
}

.preview-panel {
  display: grid;
  gap: 14px;
  align-content: start;
  position: sticky;
  top: 24px;
}

.phone-frame {
  width: min(100%, 342px);
  aspect-ratio: 9 / 16;
  justify-self: center;
  border-radius: 34px;
  padding: 11px;
  background:
    linear-gradient(145deg, #333832, #060706 70%),
    var(--graphite);
  box-shadow: 0 32px 90px rgba(24, 26, 22, 0.28);
  position: relative;
}

.phone-frame:has(.phone-screen[data-aspect="4:5"]) {
  width: min(100%, 360px);
  aspect-ratio: 4 / 5;
}

.phone-frame:has(.phone-screen[data-aspect="1:1"]) {
  width: min(100%, 360px);
  aspect-ratio: 1 / 1;
}

.phone-frame:has(.phone-screen[data-aspect="16:9"]) {
  width: min(100%, 420px);
  aspect-ratio: 16 / 9;
}

.phone-frame::after {
  content: "";
  position: absolute;
  inset: 10px;
  pointer-events: none;
  border-radius: 25px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.phone-screen {
  position: relative;
  overflow: hidden;
  height: 100%;
  border-radius: 24px;
  background:
    linear-gradient(90deg, transparent 0 49.6%, rgba(255, 255, 255, 0.08) 49.6% 50.4%, transparent 50.4%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.7)),
    linear-gradient(160deg, #7db3b1 0%, #e8dcc6 36%, #1c1e1b 72%);
}

.phone-screen[data-aspect="4:5"] .caption-stack,
.phone-screen[data-aspect="1:1"] .caption-stack,
.phone-screen[data-aspect="16:9"] .caption-stack {
  bottom: 42px;
}

.phone-screen[data-aspect="16:9"] .scene-visual::before {
  left: 29%;
  top: 22%;
  width: 24%;
}

.phone-screen[data-aspect="16:9"] .scene-visual::after {
  right: 22%;
  top: 30%;
  width: 22%;
}

.phone-screen[data-aspect="1:1"] .caption-stack strong {
  font-size: 19px;
}

.phone-screen::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 10px;
  z-index: 3;
  width: 88px;
  height: 20px;
  border-radius: 999px;
  background: #070806;
  transform: translateX(-50%);
}

.scene-visual {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.12) 0 13%, transparent 13% 18%, rgba(255, 255, 255, 0.1) 18% 19%, transparent 19%),
    linear-gradient(180deg, transparent 0 42%, rgba(21, 23, 20, 0.88) 42%),
    radial-gradient(ellipse at 50% 42%, rgba(255, 255, 255, 0.5), transparent 42%),
    linear-gradient(calc(var(--scene-index) * 31deg), rgba(255, 90, 61, 0.48), rgba(0, 169, 143, 0.32) 46%, transparent 76%);
  filter: saturate(1.12) contrast(1.03);
  animation: floatFrame 5s ease-in-out infinite alternate;
}

.scene-visual::before {
  content: "";
  position: absolute;
  left: 24%;
  top: 24%;
  width: 37%;
  aspect-ratio: 1 / 1.35;
  border-radius: 18px 18px 26px 26px;
  background:
    linear-gradient(180deg, #fff 0 19%, #f1c74f 19% 34%, #f05238 34% 100%);
  box-shadow: 0 26px 58px rgba(0, 0, 0, 0.38);
  transform: rotate(-7deg);
}

.scene-visual::after {
  content: "";
  position: absolute;
  right: 9%;
  top: 30%;
  width: 36%;
  height: 40%;
  border-radius: 48% 42% 34% 30%;
  background:
    linear-gradient(180deg, rgba(187, 132, 82, 0.96), rgba(142, 88, 49, 0.96)),
    #a96d45;
  box-shadow: inset 15px 0 rgba(255, 255, 255, 0.12);
  transform: rotate(8deg);
}

.recording-chip {
  position: absolute;
  right: 17px;
  top: 42px;
  z-index: 2;
  border-radius: 999px;
  background: rgba(255, 90, 61, 0.92);
  color: white;
  padding: 7px 10px;
  font-size: var(--text-xs);
  font-weight: 900;
  letter-spacing: 0.02em;
  box-shadow: 0 8px 18px rgba(255, 90, 61, 0.24);
}

.caption-stack {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 58px;
  z-index: 2;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.82);
}

.caption-stack p {
  display: inline;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  background: var(--acid);
  color: #11140f;
  font-weight: 900;
  font-size: var(--text-sm);
  line-height: 1.75;
  padding: 3px 7px;
}

.caption-stack strong {
  display: block;
  margin-top: 10px;
  color: #ffffff;
  font-size: var(--text-2xl);
  line-height: 1.14;
}

.product-badge {
  position: absolute;
  left: 18px;
  top: 42px;
  z-index: 2;
  max-width: calc(100% - 36px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  background: rgba(9, 10, 8, 0.68);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  padding: 7px 10px;
  font-size: var(--text-sm);
  font-weight: 900;
  backdrop-filter: blur(10px);
}

.sound-bars {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 20px;
  z-index: 2;
  display: flex;
  align-items: end;
  gap: 5px;
  height: 17px;
  opacity: 0.86;
}

.sound-bars span {
  display: block;
  width: 24px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  animation: pulseBar 900ms ease-in-out infinite alternate;
}

.sound-bars span:nth-child(1) {
  height: 7px;
}

.sound-bars span:nth-child(2) {
  height: 14px;
  animation-delay: 120ms;
}

.sound-bars span:nth-child(3) {
  height: 10px;
  animation-delay: 240ms;
}

.sound-bars span:nth-child(4) {
  height: 16px;
  animation-delay: 360ms;
}

.render-card {
  display: block;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(251, 250, 245, 0.94));
  padding: 16px;
  box-shadow: var(--shadow-tight);
}

.render-card .eyebrow {
  color: var(--teal);
}

.render-card h4 {
  font-size: 16px;
  margin-bottom: 12px;
}

.render-card p {
  color: var(--muted);
  font-size: var(--text-sm);
  line-height: 1.5;
}

.confirm-note,
.provider-note {
  display: block;
  color: var(--muted);
  line-height: 1.45;
}

.provider-note {
  margin-top: 9px;
}

.master-output {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  border: 1px solid rgba(28, 34, 25, 0.12);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(225, 247, 107, 0.34), rgba(255, 255, 255, 0.92) 58%),
    #ffffff;
  padding: 12px;
}

.master-output span {
  display: grid;
  gap: 3px;
}

.master-output small,
.output-section-title {
  color: var(--muted);
  font-size: var(--text-xs);
  font-weight: 900;
  text-transform: uppercase;
}

.master-output b {
  color: var(--ink);
  font-size: var(--text-md);
}

.master-output em {
  color: var(--ink);
  font-size: var(--text-sm);
  font-style: normal;
  font-weight: 900;
  text-align: right;
}

.output-section-title {
  display: block;
  margin-top: 14px;
}

.output-list {
  display: grid;
  gap: 7px;
  margin-top: 7px;
}

.output-item {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  color: var(--ink);
  padding: 8px 2px;
}

.output-item:first-child {
  border-top: 0;
}

.output-item b {
  color: var(--ink);
}

.output-item em {
  color: var(--muted);
  font-style: normal;
  font-weight: 800;
  text-align: right;
}

.progress-track {
  width: 100%;
  height: 7px;
  overflow: hidden;
  background: #e4e9df;
  border-radius: 999px;
  margin: 8px 0 12px;
}

.progress-track span {
  display: block;
  width: 8%;
  height: 100%;
  background: linear-gradient(90deg, var(--coral), var(--acid), var(--teal), var(--blue));
  transition: width 460ms ease;
}

.render-actions {
  margin-top: 12px;
}

.render-start-button,
.confirm-button {
  width: 100%;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 900;
  padding: 13px 12px;
}

.render-start-button {
  margin-top: 12px;
  background: var(--graphite);
  color: #f8faf5;
}

.confirm-button {
  background: var(--acid);
  color: var(--graphite);
}

.render-start-button:disabled,
.confirm-button:disabled {
  opacity: 0.62;
  cursor: wait;
}

@keyframes floatFrame {
  from {
    transform: scale(1.02) translateY(0);
  }
  to {
    transform: scale(1.08) translateY(-10px);
  }
}

@keyframes pulseBar {
  to {
    transform: scaleY(0.55);
    opacity: 0.55;
  }
}

@media (max-width: 1100px) {
  body {
    height: auto;
    overflow-x: hidden;
    overflow-y: auto;
  }

  .app-shell {
    grid-template-columns: 1fr;
    height: auto;
    min-height: 100vh;
    overflow: visible;
  }

  .sidebar {
    position: relative;
    height: auto;
    overflow: visible;
  }

  .director-layout,
  .ideas-grid {
    grid-template-columns: 1fr;
  }

  .preview-panel {
    position: static;
  }

  .workspace {
    height: auto;
    overflow: visible;
  }
}

@media (max-width: 640px) {
  .app-shell {
    display: block;
    width: 100%;
    max-width: 100vw;
  }

  .workspace,
  .sidebar {
    box-sizing: border-box;
    width: 100%;
    max-width: 100vw;
    padding: 18px 38px 18px 18px;
  }

  .brief-form,
  .brand,
  label {
    min-width: 0;
  }

  .brief-form,
  .brand {
    width: min(340px, calc(100vw - 56px));
    max-width: min(340px, calc(100vw - 56px));
  }

  .topbar,
  .section-head,
  .render-card {
    align-items: stretch;
    flex-direction: column;
  }

  h2 {
    font-size: 28px;
    line-height: 1.02;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

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

  .platform-picker {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .scene-row {
    grid-template-columns: 42px 1fr;
    padding: 12px;
  }
}
