
:root {
  color-scheme: light;
  --canvas: #f6f5f2;
  --surface: #ffffff;
  --surface-muted: #f7f8fa;
  --border: #e5e7e9;
  --text-primary: #202a34;
  --text-secondary: #66717c;
  --text-muted: #89939c;
  --accent: #536f8e;
  --accent-soft: #edf2f7;
  --radius-card: 18px;
  --content-width: 1160px;
  --card-shadow: 0 12px 34px rgb(34 46 58 / 5%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text-primary);
  background: var(--canvas);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  min-height: 100%;
  background: var(--canvas);
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
}

a {
  color: inherit;
}

.site-shell {
  display: flex;
  min-height: 100vh;
  min-height: 100svh;
  flex-direction: column;
}

.site-header {
  display: flex;
  width: min(calc(100% - 48px), var(--content-width));
  min-height: 82px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 auto;
  border-bottom: 1px solid var(--border);
}

.brand {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand:focus-visible {
  outline: 3px solid rgb(83 111 142 / 35%);
  outline-offset: 5px;
  border-radius: 8px;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid #dde5ed;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 17px;
  font-weight: 700;
}

.brand-copy {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.brand-name {
  overflow: hidden;
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 650;
  letter-spacing: -0.025em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-subtitle {
  color: var(--text-secondary);
  font-size: 11px;
  letter-spacing: 0.015em;
}

.mvp-badge,
.workspace-status {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 7px;
  border: 1px solid #dfe6ed;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
}

.mvp-badge {
  padding: 8px 11px;
  letter-spacing: 0.04em;
}

.badge-dot,
.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.main-content {
  width: min(calc(100% - 48px), 1000px);
  flex: 1;
  margin: 0 auto;
  padding: clamp(56px, 8vw, 88px) 0 76px;
}

.intro {
  max-width: 730px;
  margin-bottom: 38px;
}

.eyebrow,
.section-label {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.14em;
}

.eyebrow-rule {
  width: 18px;
  height: 1px;
  background: var(--accent);
}

.intro h1 {
  margin: 19px 0 12px;
  color: var(--text-primary);
  font-size: clamp(31px, 4vw, 43px);
  font-weight: 650;
  letter-spacing: -0.045em;
  line-height: 1.28;
}

.intro-copy {
  max-width: 650px;
  margin: 0;
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.9;
}

.workspace-card {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: var(--card-shadow);
}

.workspace-header {
  display: flex;
  min-height: 82px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 17px 26px;
  border-bottom: 1px solid var(--border);
}

.section-label {
  margin-bottom: 7px;
  font-size: 9px;
  letter-spacing: 0.13em;
}

.workspace-header h2 {
  margin: 0;
  color: var(--text-primary);
  font-size: 16px;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.workspace-status {
  padding: 8px 10px;
  color: var(--text-secondary);
  font-weight: 500;
  white-space: nowrap;
}

.workspace-status .status-dot {
  width: 6px;
  height: 6px;
  background: #94a3b1;
}

.workspace-placeholder {
  display: flex;
  min-height: 270px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 38px 24px;
  background: var(--surface);
  text-align: center;
}

.workspace-icon {
  position: relative;
  width: 46px;
  height: 46px;
  margin-bottom: 17px;
  border: 1px solid #e5e9ed;
  border-radius: 14px;
  background: var(--surface-muted);
}

.workspace-icon::before {
  position: absolute;
  top: 12px;
  left: 12px;
  width: 20px;
  height: 16px;
  border: 1.5px solid #91a0ad;
  border-radius: 4px;
  content: "";
}

.workspace-icon::after {
  position: absolute;
  right: 13px;
  bottom: 14px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #91a0ad;
  content: "";
}

.workspace-placeholder h3 {
  margin: 0;
  color: var(--text-primary);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.workspace-placeholder p {
  max-width: 440px;
  margin: 9px 0 0;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.8;
}

.site-footer {
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  width: min(calc(100% - 48px), var(--content-width));
  min-height: 62px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 0 auto;
  color: var(--text-muted);
  font-size: 11px;
}

.footer-brand {
  color: var(--text-secondary);
  font-weight: 550;
}

.footer-note {
  text-align: right;
}

@media (max-width: 600px) {
  .site-header,
  .footer-inner {
    width: calc(100% - 32px);
  }

  .site-header {
    min-height: 72px;
    gap: 8px;
  }

  .brand {
    gap: 9px;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
    border-radius: 11px;
    font-size: 15px;
  }

  .brand-name {
    max-width: 200px;
    font-size: 12px;
  }

  .brand-subtitle {
    font-size: 10px;
  }

  .mvp-badge {
    padding: 7px 9px;
    font-size: 10px;
  }

  .main-content {
    width: calc(100% - 32px);
    padding: 54px 0 58px;
  }

  .intro {
    margin-bottom: 29px;
  }

  .intro h1 {
    margin-top: 16px;
    font-size: clamp(29px, 8vw, 36px);
  }

  .intro-copy {
    font-size: 14px;
    line-height: 1.85;
  }

  .workspace-header {
    min-height: 74px;
    padding: 15px 17px;
  }

  .workspace-placeholder {
    min-height: 230px;
    padding: 32px 19px;
  }

  .workspace-placeholder p {
    max-width: 300px;
  }

  .footer-inner {
    min-height: 62px;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 5px 12px;
    padding: 13px 0;
    font-size: 10px;
  }

  .footer-note {
    width: 100%;
    text-align: left;
  }
}
.scene-selector {
  padding: 25px 26px 23px;
}

.scene-section-heading {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 15px;
}

.scene-step-number {
  display: grid;
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid #e0e6ec;
  border-radius: 9px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.scene-heading-copy {
  min-width: 0;
}

.scene-heading-copy h3 {
  margin: 1px 0 4px;
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 650;
  letter-spacing: -0.015em;
}

.scene-heading-copy p {
  margin: 0;
  color: var(--text-muted);
  font-size: 11px;
  line-height: 1.65;
}

.scene-option-count,
.scene-parent-label {
  margin: 5px 0 0 auto;
  color: var(--text-muted);
  font-size: 10px;
  white-space: nowrap;
}

.scene-parent-label {
  overflow: hidden;
  max-width: 34%;
  padding: 6px 9px;
  border-radius: 999px;
  background: var(--surface-muted);
  color: var(--text-secondary);
  text-overflow: ellipsis;
}

.scene-primary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
}

.scene-primary-option {
  display: grid;
  min-width: 0;
  min-height: 82px;
  grid-template-columns: 34px minmax(0, 1fr) 16px;
  align-items: start;
  gap: 12px;
  padding: 15px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: var(--surface);
  color: inherit;
  cursor: pointer;
  text-align: left;
  transition: border-color 120ms ease, background-color 120ms ease, box-shadow 120ms ease;
}

.scene-primary-option:hover {
  border-color: #cbd6e0;
  background: #fbfcfd;
}

.scene-primary-option:focus-visible,
.scene-subscene-option:focus-visible {
  outline: 3px solid rgb(83 111 142 / 32%);
  outline-offset: 2px;
}

.scene-primary-option.is-selected {
  border-color: var(--accent);
  background: #f4f7fa;
  box-shadow: inset 0 0 0 1px var(--accent);
}

.scene-option-index {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid #e7eaed;
  border-radius: 9px;
  background: var(--surface-muted);
  color: var(--text-muted);
  font-size: 9px;
  font-weight: 650;
}

.scene-primary-option.is-selected .scene-option-index {
  border-color: #d6e0e9;
  background: var(--accent-soft);
  color: var(--accent);
}

.scene-option-copy {
  display: grid;
  min-width: 0;
  gap: 5px;
}

.scene-option-name {
  color: var(--text-primary);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.45;
}

.scene-option-description {
  display: -webkit-box;
  overflow: hidden;
  color: var(--text-muted);
  font-size: 10px;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.scene-option-indicator {
  display: grid;
  width: 16px;
  height: 16px;
  place-items: center;
  border: 1px solid #dce2e7;
  border-radius: 50%;
  color: var(--accent);
  font-size: 10px;
  font-weight: 700;
}

.scene-primary-option.is-selected .scene-option-indicator {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.scene-subsection {
  margin-top: 25px;
  padding-top: 23px;
  border-top: 1px solid var(--border);
}

.scene-subsection-heading {
  align-items: flex-start;
  margin-bottom: 14px;
}

.scene-subscene-list {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.scene-subscene-option {
  min-height: 36px;
  padding: 8px 13px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-secondary);
  cursor: pointer;
  font: inherit;
  font-size: 11px;
  line-height: 1.2;
  transition: border-color 120ms ease, background-color 120ms ease, color 120ms ease;
}

.scene-subscene-option:hover {
  border-color: #cbd6e0;
  color: var(--text-primary);
}

.scene-subscene-option.is-selected {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 650;
}

.scene-subscene-empty {
  margin: 0;
  padding: 16px;
  border: 1px dashed #dfe3e7;
  border-radius: 12px;
  color: var(--text-muted);
  font-size: 11px;
  line-height: 1.6;
  text-align: center;
}

.scene-selection-summary {
  display: flex;
  min-height: 47px;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px 12px;
  margin-top: 23px;
  padding: 11px 14px;
  border-radius: 11px;
  background: var(--surface-muted);
}

.scene-summary-label {
  color: var(--text-muted);
  font-size: 10px;
}

.scene-selection-summary strong {
  color: var(--text-primary);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.55;
}

.workflow-prompt-step {
  padding: 25px 26px 28px;
}

.workflow-step-heading {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 19px;
}

.workflow-step-number {
  display: grid;
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid #e0e6ec;
  border-radius: 9px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.workflow-step-kicker {
  margin: 0 0 3px;
  color: var(--text-muted);
  font-size: 9px;
  font-weight: 650;
  letter-spacing: 0.12em;
}

.workflow-step-heading h3 {
  margin: 0;
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 650;
}

.workflow-step-transition {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 26px;
  padding: 18px 0 0;
  border-top: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 550;
}

.prompt-input {
  min-width: 0;
}

.prompt-input-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.prompt-input-label {
  color: var(--text-primary);
  font-size: 11px;
  font-weight: 600;
}

.prompt-clear-button {
  padding: 3px 0;
  border: 0;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  font: inherit;
  font-size: 10px;
}

.prompt-clear-button:hover {
  color: var(--accent);
}

.prompt-clear-button:focus-visible,
.prompt-example-button:focus-visible {
  outline: 3px solid rgb(83 111 142 / 32%);
  outline-offset: 2px;
}

.prompt-clear-button:disabled,
.prompt-example-button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.prompt-textarea {
  display: block;
  width: 100%;
  min-height: 126px;
  resize: vertical;
  padding: 14px 15px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text-primary);
  font: inherit;
  font-size: 13px;
  line-height: 1.75;
  transition: border-color 120ms ease, box-shadow 120ms ease;
}

.prompt-textarea::placeholder {
  color: #9aa3aa;
}

.prompt-textarea:focus {
  border-color: var(--accent);
  outline: 0;
  box-shadow: 0 0 0 3px rgb(83 111 142 / 13%);
}

.prompt-textarea[aria-invalid="true"] {
  border-color: #c27676;
}

.prompt-input-meta {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
}

.prompt-guidance,
.prompt-counter {
  margin: 0;
  color: var(--text-muted);
  font-size: 10px;
  line-height: 1.6;
}

.prompt-counter {
  flex: 0 0 auto;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.prompt-validation {
  margin: 6px 0 0;
  color: #9c5555;
  font-size: 10px;
}

.prompt-examples {
  display: grid;
  gap: 9px;
  margin-top: 20px;
}

.prompt-examples-label {
  color: var(--text-secondary);
  font-size: 10px;
  font-weight: 600;
}

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

.prompt-example-button {
  min-height: 32px;
  padding: 7px 10px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--surface-muted);
  color: var(--text-secondary);
  cursor: pointer;
  font: inherit;
  font-size: 10px;
  line-height: 1.5;
  text-align: left;
  transition: border-color 120ms ease, background-color 120ms ease, color 120ms ease;
}

.prompt-example-button:hover {
  border-color: #cbd6e0;
  background: #fbfcfd;
  color: var(--text-primary);
}


@media (max-width: 600px) {
  .workflow-prompt-step {
    padding: 20px 17px 23px;
  }

  .workflow-step-transition {
    margin: 0 17px;
    padding-top: 15px;
  }

  .prompt-textarea {
    min-height: 118px;
    padding: 12px;
  }

  .prompt-input-meta {
    align-items: flex-start;
  }

  .prompt-guidance {
    max-width: 78%;
  }

  .prompt-example-button {
    max-width: 100%;
  }

  .scene-selector {
    padding: 20px 17px 18px;
  }

  .scene-section-heading {
    gap: 9px;
  }

  .scene-option-count {
    margin-left: auto;
  }

  .scene-primary-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  .scene-primary-option {
    min-height: 76px;
    grid-template-columns: 32px minmax(0, 1fr) 16px;
    gap: 10px;
    padding: 12px;
  }

  .scene-parent-label {
    max-width: 42%;
  }

  .scene-subscene-list {
    gap: 8px;
  }

  .scene-subscene-option {
    min-height: 35px;
    padding: 8px 12px;
  }

  .scene-selection-summary {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }
}

.style-recommendations {
  padding: 25px 26px 28px;
  border-top: 1px solid var(--border);
}

.style-section-heading {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin-bottom: 16px;
}

.style-heading-copy {
  min-width: 0;
}

.style-heading-copy h3 {
  margin: 1px 0 4px;
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 650;
  letter-spacing: -0.015em;
}

.style-heading-copy > p:last-child {
  margin: 0;
  color: var(--text-muted);
  font-size: 11px;
  line-height: 1.65;
}

.style-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.style-tag-button {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-secondary);
  cursor: pointer;
  font: inherit;
  font-size: 11px;
  line-height: 1.4;
  transition: border-color 120ms ease, background-color 120ms ease, color 120ms ease;
}

.style-tag-button:hover {
  border-color: #cbd6e0;
  color: var(--text-primary);
}

.style-tag-button.is-selected {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 650;
}

.style-tag-button:focus-visible {
  outline: 3px solid rgb(83 111 142 / 32%);
  outline-offset: 2px;
}

.style-tag-check {
  font-size: 10px;
  font-weight: 700;
}

.style-selection-help {
  margin: 11px 0 0;
  color: var(--text-muted);
  font-size: 10px;
  line-height: 1.6;
}

.style-empty-state {
  margin: 0;
  padding: 15px;
  border: 1px dashed #dfe3e7;
  border-radius: 11px;
  color: var(--text-muted);
  font-size: 11px;
  line-height: 1.6;
}

.quality-recommendations {
  padding: 25px 26px 28px;
  border-top: 1px solid var(--border);
}

.quality-section-heading {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin-bottom: 16px;
}

.quality-heading-copy {
  min-width: 0;
}

.quality-heading-copy h3 {
  margin: 1px 0 4px;
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 650;
  letter-spacing: -0.015em;
}

.quality-heading-copy > p:last-child {
  margin: 0;
  color: var(--text-muted);
  font-size: 11px;
  line-height: 1.65;
}

@media (max-width: 600px) {
  .style-recommendations {
    padding: 20px 17px 22px;
  }

  .quality-recommendations {
    padding: 20px 17px 22px;
  }

  .style-tag-list {
    gap: 8px;
  }
}

.prompt-generate-step {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 26px;
  border-top: 1px solid var(--border);
  background: var(--surface-muted);
}

.prompt-generate-copy h3 {
  margin: 0 0 5px;
  font-size: 14px;
  font-weight: 650;
}

.prompt-generate-copy p,
.prompt-results-heading p,
.prompt-next-step p {
  margin: 0;
  color: var(--text-muted);
  font-size: 11px;
  line-height: 1.65;
}

.prompt-generate-button {
  min-height: 42px;
  flex: 0 0 auto;
  padding: 10px 17px;
  border: 1px solid var(--accent);
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 650;
  transition: background-color 120ms ease, border-color 120ms ease;
}

.prompt-generate-button:hover:not(:disabled) {
  border-color: #405a77;
  background: #405a77;
}

.prompt-generate-button:focus-visible,
.prompt-option-button:focus-visible,
.prompt-option-select:focus-visible,
.prompt-next-step button:focus-visible {
  outline: 3px solid rgb(83 111 142 / 32%);
  outline-offset: 2px;
}

.prompt-generate-button:disabled {
  border-color: #cbd3db;
  background: #cbd3db;
  cursor: not-allowed;
}

.prompt-results-step {
  padding: 25px 26px 28px;
  border-top: 1px solid var(--border);
}

.prompt-results-heading {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin-bottom: 20px;
}

.prompt-results-heading h3 {
  margin: 1px 0 5px;
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 650;
}

.prompt-results-heading .workflow-step-kicker {
  margin: 0 0 3px;
}

.prompt-demo-note {
  margin-top: 5px !important;
  color: var(--text-secondary) !important;
}

.prompt-generation-error {
  margin: 0 0 16px;
  color: #9c5555;
  font-size: 12px;
}

.prompt-options-container {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.prompt-options-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  min-width: 0;
}

.prompt-option-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 15px;
  padding: 17px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: var(--surface);
  transition: border-color 120ms ease, background-color 120ms ease;
}

.prompt-option-card.is-selected {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.prompt-option-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.prompt-option-kicker {
  margin: 0 0 3px;
  color: var(--text-muted);
  font-size: 9px;
  font-weight: 650;
  letter-spacing: 0.08em;
}

.prompt-option-header h4 {
  margin: 0;
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 650;
}

.prompt-option-select {
  display: inline-flex;
  min-height: 30px;
  flex: 0 0 auto;
  align-items: center;
  gap: 6px;
  padding: 4px 7px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  font: inherit;
  font-size: 10px;
}

.prompt-option-card.is-selected .prompt-option-select {
  color: var(--accent);
  font-weight: 650;
}

.prompt-option-select-indicator {
  display: grid;
  width: 17px;
  height: 17px;
  place-items: center;
  border: 1px solid #cbd4dc;
  border-radius: 50%;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
}

.prompt-option-card.is-selected .prompt-option-select-indicator {
  border-color: var(--accent);
  background: var(--accent);
}

.prompt-option-text {
  min-height: 110px;
  margin: 0;
  color: var(--text-primary);
  font-size: 12px;
  line-height: 1.8;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.prompt-option-editor {
  display: block;
  width: 100%;
  min-height: 145px;
  resize: vertical;
  padding: 10px;
  border: 1px solid var(--accent);
  border-radius: 9px;
  background: var(--surface);
  color: var(--text-primary);
  font: inherit;
  font-size: 12px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.prompt-option-editor:focus {
  outline: 0;
  box-shadow: 0 0 0 3px rgb(83 111 142 / 13%);
}

.prompt-option-tags {
  display: grid;
  gap: 9px;
}

.prompt-option-tag-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}

.prompt-option-tag-label {
  margin-right: 2px;
  color: var(--text-muted);
  font-size: 9px;
}

.prompt-option-tag {
  max-width: 100%;
  padding: 4px 7px;
  border: 1px solid #e0e6ec;
  border-radius: 999px;
  background: var(--surface-muted);
  color: var(--text-secondary);
  font-size: 9px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.prompt-option-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.prompt-option-button {
  min-height: 32px;
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text-secondary);
  cursor: pointer;
  font: inherit;
  font-size: 10px;
}

.prompt-option-button:hover:not(:disabled) {
  border-color: var(--accent);
  color: var(--accent);
}

.prompt-option-button.is-primary {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.prompt-option-button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.prompt-option-feedback {
  margin: -6px 0 0;
  color: var(--accent);
  font-size: 10px;
}

.prompt-option-feedback.is-error {
  color: #9c5555;
}

.prompt-next-step {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-top: 15px;
  border-top: 1px solid var(--border);
}

.prompt-next-step button {
  min-height: 34px;
  flex: 0 0 auto;
  padding: 7px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-muted);
  color: var(--text-muted);
  cursor: not-allowed;
  font: inherit;
  font-size: 10px;
}

@media (max-width: 700px) {
  .prompt-options-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 600px) {
  .prompt-generate-step {
    align-items: stretch;
    flex-direction: column;
    gap: 14px;
    padding: 20px 17px 22px;
  }

  .prompt-generate-button {
    width: 100%;
  }

  .prompt-results-step {
    padding: 20px 17px 22px;
  }

  .prompt-option-card {
    padding: 14px;
  }

  .prompt-option-text {
    min-height: 0;
  }

  .prompt-next-step {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* T11 replaces PromptOptions' disabled future-step placeholder with a page-level action. */
.prompt-options-container .prompt-next-step {
  display: none;
}

.image-generation-step {
  padding: 24px 26px 28px;
  border-top: 1px solid var(--border);
}

.image-generation-heading {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin-bottom: 16px;
}

.image-generation-heading > div {
  min-width: 0;
}

.image-generation-heading h3,
.image-results-heading h3 {
  margin: 1px 0 5px;
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 650;
}

.image-generation-heading p:last-child {
  margin: 0;
  color: var(--text-muted);
  font-size: 11px;
  line-height: 1.65;
}

.image-generation-button {
  min-height: 42px;
  padding: 10px 17px;
  border: 1px solid var(--accent);
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 650;
}

.image-generation-button:hover:not(:disabled) {
  border-color: #405a77;
  background: #405a77;
}

.image-generation-button:focus-visible {
  outline: 3px solid rgb(83 111 142 / 32%);
  outline-offset: 2px;
}

.image-generation-button:disabled {
  border-color: #cbd3db;
  background: #cbd3db;
  cursor: not-allowed;
}

.image-generation-error {
  margin: 13px 0 0;
  color: #9c5555;
  font-size: 12px;
}

.image-results-section {
  margin-top: 27px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}

.image-results-heading {
  margin-bottom: 15px;
}

.image-results-heading .workflow-step-kicker {
  margin: 0 0 3px;
}

.image-grid-results {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.image-grid-demo-banner {
  justify-self: start;
  max-width: 100%;
  margin: 0;
  padding: 7px 10px;
  border: 1px solid #dfe6ed;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--text-secondary);
  font-size: 10px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.image-results-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(12px, 1.5vw, 18px);
  min-width: 0;
}

.image-result-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: 0 2px 8px rgb(24 34 44 / 5%);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.image-result-card:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgb(83 111 142 / 18%);
}

.image-result-media {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--surface-muted);
}

.image-preview-trigger {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.image-preview-trigger:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: -3px;
}

.image-result-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 180ms ease;
}

.image-result-number {
  margin: 0;
  padding: 11px 13px;
  border-top: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.45;
}

.image-preview-backdrop {
  position: fixed;
  z-index: 20;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgb(24 34 44 / 72%);
}

.image-preview-dialog {
  width: min(100%, 980px);
  max-height: min(90vh, 820px);
  overflow: auto;
  padding: 14px;
  border: 1px solid rgb(255 255 255 / 50%);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 22px 70px rgb(0 0 0 / 25%);
}

.image-preview-dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 0 12px;
}

.image-preview-dialog-header p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 650;
}

.image-preview-dialog-header button {
  min-height: 34px;
  padding: 7px 11px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-muted);
  color: var(--text-primary);
  cursor: pointer;
  font: inherit;
  font-size: 11px;
}

.image-preview-dialog-header button:focus-visible {
  outline: 3px solid rgb(83 111 142 / 32%);
  outline-offset: 2px;
}

.image-preview-dialog > img {
  display: block;
  width: 100%;
  height: auto;
  max-height: calc(90vh - 82px);
  object-fit: contain;
}

@media (hover: hover) and (pointer: fine) {
  .image-result-card:hover {
    transform: translateY(-2px);
    border-color: #c3ced9;
    box-shadow: 0 9px 22px rgb(24 34 44 / 11%);
  }

  .image-preview-trigger:hover img {
    transform: scale(1.015);
  }
}

@media (max-width: 700px) {
  .image-results-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }
}

@media (max-width: 380px) {
  .image-grid-demo-banner {
    border-radius: 12px;
  }

  .image-preview-backdrop {
    padding: 12px;
  }

  .image-preview-dialog {
    padding: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .image-result-card,
  .image-result-media img {
    transition: none;
  }

  .image-result-card:hover {
    transform: none;
  }

  .image-preview-trigger:hover img {
    transform: none;
  }
}

@media (max-width: 600px) {
  .image-generation-step {
    padding: 20px 17px 22px;
  }

  .image-generation-button {
    width: 100%;
  }
}

/* UI-REDESIGN-01: compact publishing workbench */
:root {
  --canvas: #f3f5f8;
  --surface: #ffffff;
  --surface-muted: #f7f9fc;
  --border: #dce3eb;
  --text-primary: #172536;
  --text-secondary: #586879;
  --text-muted: #7b8795;
  --accent: #1f4e82;
  --accent-soft: #eaf1f8;
  --radius-card: 12px;
}

body {
  overflow-x: hidden;
  background: var(--canvas);
}

.workbench-header {
  position: sticky;
  z-index: 15;
  top: 0;
  width: 100%;
  min-height: 64px;
  padding: 8px clamp(14px, 2.5vw, 36px);
  border-bottom: 1px solid var(--border);
  background: rgb(255 255 255 / 96%);
  box-shadow: 0 2px 8px rgb(24 39 56 / 3%);
  backdrop-filter: blur(12px);
}

.workbench-header .brand {
  gap: 10px;
}

.workbench-header .brand-mark {
  width: 36px;
  height: 36px;
  border-color: #c9d8e8;
  border-radius: 10px;
  background: #e7eff8;
  color: #1f4e82;
}

.workbench-header .brand-name {
  font-size: 14px;
  letter-spacing: 0;
}

.workbench-header .brand-subtitle {
  font-size: 10px;
}

.header-actions {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.mode-summary,
.result-mode-label {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  gap: 7px;
  padding: 6px 10px;
  border: 1px solid #d8e3ef;
  border-radius: 999px;
  background: #f4f8fc;
  color: #385d83;
  font-size: 11px;
  font-weight: 650;
  line-height: 1.35;
}

.mode-summary .badge-dot {
  flex: 0 0 auto;
  background: #2d7a55;
}

.mode-toggle [role="group"] {
  display: inline-flex;
  gap: 3px;
  padding: 3px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: #f7f9fc;
}

.mode-toggle button,
.header-history-trigger,
.help-menu > summary {
  min-height: 30px;
  padding: 6px 9px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  font: inherit;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.mode-toggle button[aria-pressed="true"] {
  background: var(--accent);
  color: #fff;
}

.mode-toggle button:focus-visible,
.header-history-trigger:focus-visible,
.help-menu > summary:focus-visible,
.round-tab:focus-visible,
.image-actions-list button:focus-visible,
.image-regenerate-button:focus-visible {
  outline: 3px solid rgb(31 78 130 / 32%);
  outline-offset: 2px;
}

.header-history-trigger {
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text-primary);
}

.header-history-trigger span {
  display: inline-grid;
  min-width: 18px;
  height: 18px;
  place-items: center;
  margin-left: 4px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 10px;
}

.help-menu {
  position: relative;
}

.help-menu > summary {
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text-primary);
  list-style: none;
  cursor: pointer;
}

.help-menu > summary::-webkit-details-marker {
  display: none;
}

.help-menu > summary::after {
  margin-left: 6px;
  content: "⌄";
  color: var(--text-muted);
}

.help-menu-content {
  position: absolute;
  z-index: 30;
  top: calc(100% + 8px);
  right: 0;
  width: min(320px, calc(100vw - 28px));
  padding: 13px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 12px 32px rgb(24 39 56 / 14%);
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1.6;
}

.help-menu-content p {
  margin: 0;
}

.help-menu-content p + p {
  margin-top: 8px;
}

.main-content.workbench-main {
  width: min(calc(100% - 36px), 1600px);
  max-width: none;
  margin: 0 auto;
  padding: 22px 0 40px;
}

.workbench-layout {
  display: grid;
  grid-template-columns: minmax(340px, 380px) minmax(0, 1fr);
  align-items: start;
  gap: 20px;
  min-width: 0;
}

.creation-sidebar,
.result-workspace {
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 4px 18px rgb(24 39 56 / 4%);
}

.creation-sidebar {
  position: sticky;
  top: 82px;
  max-height: calc(100svh - 96px);
  overflow-y: auto;
  padding: 18px;
  scrollbar-color: #c4cfdb transparent;
  scrollbar-width: thin;
}

.creation-sidebar-heading,
.results-header,
.result-section-heading,
.image-results-heading,
.model-config-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.creation-sidebar-heading {
  margin-bottom: 18px;
}

.creation-sidebar-heading .section-label,
.results-header .section-label {
  margin-bottom: 6px;
  color: #6b7e92;
  font-size: 9px;
  letter-spacing: .12em;
}

.creation-sidebar-heading h1,
.results-header h2 {
  margin: 0;
  color: var(--text-primary);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -.025em;
  line-height: 1.35;
}

.workspace-subtitle,
.results-header > div > p:last-child {
  margin: 6px 0 0;
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1.55;
}

.creation-sidebar .mvp-badge {
  flex: 0 0 auto;
  padding: 6px 8px;
  font-size: 9px;
}

.creation-fields {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.creation-fields .workflow-prompt-step,
.creation-fields .workflow-scene-step,
.model-config {
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.field-section-heading,
.model-config-heading h3 {
  margin: 0 0 9px;
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
}

.prompt-input-label,
.field-label {
  display: block;
  margin-bottom: 6px;
  color: #344456;
  font-size: 12px;
  font-weight: 650;
}

.prompt-input-label-row {
  margin-bottom: 5px;
}

.prompt-textarea,
.field-control,
.prompt-option-editor,
#round-feedback {
  display: block;
  width: 100%;
  min-width: 0;
  border: 1px solid #cfd8e2;
  border-radius: 8px;
  background: #fff;
  color: var(--text-primary);
  font: inherit;
  font-size: 12px;
  line-height: 1.55;
}

.prompt-textarea,
.prompt-option-editor,
#round-feedback {
  min-height: 92px;
  padding: 10px 11px;
  resize: vertical;
}

.prompt-textarea::placeholder,
#round-feedback::placeholder {
  color: #8a97a5;
}

.field-control {
  min-height: 38px;
  padding: 7px 10px;
}

.field-control:disabled {
  background: #f2f4f7;
  color: #6b7785;
  opacity: 1;
}

.prompt-textarea:focus-visible,
.field-control:focus-visible,
.prompt-option-editor:focus-visible,
#round-feedback:focus-visible {
  border-color: #2e6499;
  outline: 3px solid rgb(31 78 130 / 15%);
  outline-offset: 1px;
}

.prompt-input-meta {
  align-items: flex-start;
  gap: 8px;
  margin-top: 5px;
}

.prompt-guidance,
.model-config-note,
.auto-recommendation-note,
.prompt-disabled-reason,
.demo-scope-note {
  margin: 0;
  color: var(--text-muted);
  font-size: 10px;
  line-height: 1.55;
}

.prompt-counter {
  flex: 0 0 auto;
  font-size: 10px;
}

.prompt-examples {
  margin-top: 8px;
}

.prompt-examples-label {
  color: var(--text-muted);
  font-size: 10px;
}

.prompt-example-list {
  gap: 5px;
  margin-top: 5px;
}

.prompt-example-button {
  padding: 5px 7px;
  border: 1px solid #e0e6ec;
  border-radius: 6px;
  background: #f8fafc;
  color: #536476;
  font-size: 10px;
}

.scene-selector {
  display: grid;
  gap: 10px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.field-group {
  min-width: 0;
}

.scene-selection-summary {
  margin: 0;
  padding: 8px 9px;
  border-radius: 7px;
  background: #f5f8fb;
  color: #5c6d7f;
  font-size: 10px;
  line-height: 1.5;
}

.auto-recommendation-note {
  margin-top: 7px;
}

.model-config {
  display: grid;
  gap: 10px;
  padding-top: 13px !important;
  border-top: 1px solid #e8edf2 !important;
}

.model-config-heading {
  align-items: center;
}

.model-config-heading h3 {
  margin: 0;
}

.model-status {
  flex: 0 0 auto;
  padding: 4px 7px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 650;
}

.model-status.is-available {
  background: #e8f4ed;
  color: #286542;
}

.model-status.is-unavailable {
  background: #fff4e5;
  color: #8b5c17;
}

.model-config-note {
  margin-top: 4px;
}

.demo-launcher {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px;
  border: 1px solid #dce6f1;
  border-radius: 9px;
  background: #f7faff;
}

.demo-launcher-copy {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.demo-launcher-copy strong {
  color: #294969;
  font-size: 10px;
}

.demo-launcher-copy span {
  color: var(--text-muted);
  font-size: 9px;
  line-height: 1.4;
}

.demo-launcher button,
.prompt-generate-button,
.image-generation-button {
  min-height: 38px;
  padding: 9px 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  transition: background-color 120ms ease, box-shadow 120ms ease;
}

.demo-launcher button {
  min-height: 32px;
  flex: 0 0 auto;
  padding: 7px 9px;
  background: #fff;
  border-color: #bfd0e1;
  color: #234f7c;
  font-size: 10px;
}

.demo-launcher button:hover {
  background: #edf4fb;
}

.prompt-generate-button:hover:not(:disabled),
.image-generation-button:hover:not(:disabled) {
  background: #173d68;
  box-shadow: 0 4px 12px rgb(31 78 130 / 18%);
}

.prompt-generate-button:disabled,
.image-generation-button:disabled {
  background: #aeb9c5;
  color: #f9fbfc;
  cursor: not-allowed;
  box-shadow: none;
}

.demo-launcher button:focus-visible,
.prompt-generate-button:focus-visible,
.image-generation-button:focus-visible,
.prompt-option-select:focus-visible,
.prompt-option-button:focus-visible {
  outline: 3px solid rgb(31 78 130 / 30%);
  outline-offset: 2px;
}

.prompt-submit-block {
  display: grid;
  gap: 6px;
  padding-top: 3px;
}

.prompt-submit-block .prompt-generate-button {
  width: 100%;
  min-height: 42px;
  font-size: 13px;
}

.prompt-disabled-reason {
  min-height: 14px;
  text-align: center;
}

.demo-scope-note {
  margin-top: 14px;
  padding-top: 11px;
  border-top: 1px solid #e8edf2;
}

.provider-notice {
  margin: -6px 0 14px;
  padding: 8px 9px;
  border: 1px solid #f0dfc2;
  border-radius: 7px;
  background: #fffaf1;
  color: #785a2b;
  font-size: 10px;
  line-height: 1.5;
}

.result-workspace {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.results-header {
  align-items: center;
  padding-bottom: 12px;
  border-bottom: 1px solid #e8edf2;
}

.results-header h2 {
  font-size: 19px;
}

.result-mode-label {
  flex: 0 0 auto;
  font-size: 10px;
}

.result-mode-label.is-real {
  border-color: #f0dfc2;
  background: #fffaf1;
  color: #785a2b;
}

.round-navigation {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid #e4e9ef;
  border-radius: 9px;
  background: #fafbfd;
}

.round-navigation > span {
  flex: 0 0 auto;
  color: var(--text-secondary);
  font-size: 10px;
  font-weight: 650;
}

.round-navigation > div {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 5px;
}

.round-tab {
  min-height: 28px;
  padding: 5px 8px;
  border: 1px solid #dbe2e9;
  border-radius: 6px;
  background: #fff;
  color: var(--text-secondary);
  cursor: pointer;
  font: inherit;
  font-size: 10px;
}

.round-tab.is-active {
  border-color: #b7cce1;
  background: #eaf1f8;
  color: #214d78;
  font-weight: 700;
}

.result-section {
  min-width: 0;
  padding: 15px;
  border: 1px solid #e0e6ed;
  border-radius: 11px;
  background: #fff;
}

.result-section-heading {
  margin-bottom: 12px;
}

.result-section-heading h3,
.image-results-heading h3,
.selected-prompt-snapshot h3,
.image-generation-controls h3 {
  margin: 0;
  color: var(--text-primary);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
}

.result-section-heading > div > p:not(.workflow-step-kicker),
.image-generation-controls p {
  margin: 5px 0 0;
  color: var(--text-secondary);
  font-size: 11px;
  line-height: 1.55;
}

.result-section .workflow-step-kicker,
.image-results-heading .workflow-step-kicker,
.selected-prompt-snapshot .workflow-step-kicker {
  margin: 0 0 4px;
  color: #788898;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .08em;
}

.prompt-demo-note {
  margin: 5px 0 0;
  color: #728092;
  font-size: 10px;
  line-height: 1.5;
}

.prompt-options-container,
.prompt-options-grid {
  min-width: 0;
}

.prompt-options-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.prompt-option-card {
  min-width: 0;
  padding: 12px;
  border-radius: 9px;
  box-shadow: none;
}

.prompt-option-card.is-selected {
  border-color: #84a7ca;
  background: #f8fbff;
  box-shadow: 0 0 0 2px rgb(31 78 130 / 8%);
}

.prompt-option-header h4 {
  margin: 0;
  font-size: 12px;
}

.prompt-option-text,
.selected-prompt-text {
  overflow-wrap: anywhere;
  word-break: break-word;
  color: #35475a;
  font-size: 11px;
  line-height: 1.65;
}

.prompt-option-select,
.prompt-option-button,
.image-actions-list button,
.image-regenerate-button {
  min-height: 30px;
  padding: 6px 8px;
  border: 1px solid #d5dee7;
  border-radius: 6px;
  background: #fff;
  color: #344b62;
  cursor: pointer;
  font: inherit;
  font-size: 10px;
  font-weight: 600;
}

.prompt-option-select[aria-pressed="true"] {
  border-color: #2c5e91;
  background: #eaf1f8;
  color: #204a73;
}

.prompt-option-actions {
  gap: 6px;
  margin-top: 10px;
}

.image-generation-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 13px;
  padding: 11px 12px;
  border: 1px solid #e2e8ef;
  border-radius: 8px;
  background: #f9fbfd;
}

.image-generation-controls h3 {
  font-size: 12px;
}

.image-generation-controls .image-generation-button {
  flex: 0 0 auto;
}

.image-generation-controls .image-generation-button:disabled {
  background: #adb8c4;
}

.selected-prompt-snapshot {
  display: grid;
  gap: 8px;
}

.selected-prompt-text {
  margin: 0;
  padding: 10px 11px;
  border-radius: 8px;
  background: #f6f8fa;
  white-space: pre-wrap;
}

.image-results-section {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.image-results-heading {
  align-items: center;
}

.image-regenerate-button {
  flex: 0 0 auto;
}

.image-grid-results {
  gap: 8px;
}

.image-grid-demo-banner {
  border-radius: 6px;
  background: #eef4fa;
  color: #476687;
  font-size: 10px;
}

.image-results-grid {
  gap: 10px;
}

.image-result-card {
  border-radius: 9px;
  box-shadow: none;
}

.image-result-media {
  aspect-ratio: 4 / 3;
}

.image-result-number {
  padding: 7px 9px;
  font-size: 10px;
}

.image-actions-list {
  display: grid;
  gap: 5px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.image-action-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
  padding: 6px 0;
  border-bottom: 1px solid #eef1f4;
}

.image-action-row > span {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--text-secondary);
  font-size: 10px;
}

.image-action-row > div {
  display: flex;
  flex: 0 0 auto;
  gap: 5px;
}

.image-actions-list button[aria-pressed="true"] {
  border-color: #d5b461;
  background: #fff8df;
  color: #725714;
}

.results-empty-state {
  display: grid;
  min-height: 240px;
  align-content: center;
  justify-items: center;
  padding: 24px;
  border: 1px dashed #cdd7e1;
  border-radius: 11px;
  background: #fbfcfd;
  text-align: center;
}

.empty-state-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  margin-bottom: 9px;
  border-radius: 10px;
  background: #eaf1f8;
  color: #315e88;
  font-size: 16px;
}

.results-empty-state h3 {
  margin: 0;
  color: var(--text-primary);
  font-size: 14px;
}

.results-empty-state p {
  max-width: 380px;
  margin: 6px 0 0;
  color: var(--text-secondary);
  font-size: 11px;
  line-height: 1.6;
}

.history-panel-wrapper {
  min-width: 0;
  scroll-margin-top: 82px;
}

.history-panel-wrapper > section {
  border-color: var(--border);
  background: #fff;
  box-shadow: none;
}

.history-panel-wrapper ul {
  min-width: 0;
}

.prompt-generate-step button:focus-visible,
.image-generation-step button:focus-visible,
.history-panel-wrapper button:focus-visible {
  outline: 3px solid rgb(31 78 130 / 26%);
  outline-offset: 2px;
}

@media (max-width: 1020px) {
  .workbench-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  .creation-sidebar {
    position: static;
    max-height: none;
    overflow: visible;
  }

  .creation-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    column-gap: 18px;
  }

  .creation-fields .workflow-prompt-step {
    grid-column: 1 / -1;
  }

  .creation-fields .demo-launcher,
  .creation-fields .prompt-submit-block {
    align-self: center;
  }
}

@media (max-width: 700px) {
  .main-content.workbench-main {
    width: min(calc(100% - 24px), 600px);
    padding-top: 12px;
  }

  .workbench-header {
    position: relative;
    min-height: 56px;
    padding: 8px 12px;
    flex-wrap: wrap;
    gap: 7px;
  }

  .header-actions {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 6px;
  }

  .mode-summary {
    min-height: 26px;
    padding: 4px 7px;
    font-size: 10px;
  }

  .creation-sidebar,
  .result-workspace {
    padding: 14px;
  }

  .creation-fields {
    grid-template-columns: minmax(0, 1fr);
  }

  .creation-fields .workflow-prompt-step {
    grid-column: auto;
  }

  .prompt-options-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .results-empty-state {
    min-height: 185px;
  }
}

@media (max-width: 420px) {
  .workbench-header .brand-name {
    font-size: 12px;
  }

  .workbench-header .brand-subtitle {
    display: none;
  }

  .header-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
  }

  .mode-summary {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .mode-toggle [role="group"] {
    gap: 1px;
    padding: 2px;
  }

  .mode-toggle button,
  .header-history-trigger,
  .help-menu > summary {
    min-height: 28px;
    padding: 5px 6px;
    font-size: 9px;
  }

  .creation-sidebar,
  .result-workspace {
    padding: 12px;
  }

  .creation-sidebar-heading h1 {
    font-size: 17px;
  }

  .demo-launcher {
    align-items: flex-start;
    flex-direction: column;
  }

  .demo-launcher button {
    width: 100%;
  }

  .image-generation-controls {
    align-items: stretch;
    flex-direction: column;
  }

  .image-generation-controls .image-generation-button {
    width: 100%;
  }

  .round-navigation {
    align-items: flex-start;
    flex-direction: column;
  }

  .round-navigation > div {
    justify-content: flex-start;
  }

  .image-action-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .image-action-row > div {
    width: 100%;
  }

  .image-action-row button {
    flex: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .prompt-generate-button,
  .image-generation-button {
    transition: none;
  }
}


.model-verify-button {
  min-height: 34px;
  margin-top: 7px;
  padding: 6px 10px;
  border: 1px solid #b9c9d8;
  border-radius: 8px;
  background: #f7fafc;
  color: #29445e;
  font: inherit;
  font-size: 11px;
  font-weight: 650;
  cursor: pointer;
}

.model-verify-button:hover:not(:disabled) {
  background: #edf4fa;
}

.model-verify-button:focus-visible {
  outline: 3px solid rgb(31 78 130 / 20%);
  outline-offset: 2px;
}

.model-verify-button:disabled {
  color: #778492;
  cursor: not-allowed;
  opacity: 0.75;
}

[hidden] { display: none !important; }
button, textarea, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .6; }
.static-banner { padding: 12px 16px; margin-bottom: 18px; border: 1px solid #c9d8e8; border-radius: 10px; background: #eaf1f8; color: #1f4e82; font-size: 13px; line-height: 1.7; }
.static-tags { display: flex; gap: 6px; flex-wrap: wrap; margin: 8px 0 14px; font-size: 12px; color: #66717c; }
.static-tags button { font-size: 12px; padding: 6px 9px; }
.static-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 20px; }
.static-image-state p { color: #586879; font-size: 13px; line-height: 1.8; }
.static-image-state h3 { font-size: 16px; }
.static-notice { margin: 12px 20px; color: #1f4e82; font-size: 13px; line-height: 1.7; min-height: 1.7em; }
.static-history-item { display: block; text-align: left; border: 1px solid #dce3eb; background: #f7f9fc; border-radius: 8px; padding: 10px; margin-bottom: 8px; max-width: 100%; overflow-wrap: anywhere; }
.prompt-option-editor { width: 100%; resize: vertical; min-height: 160px; font-size: 13px; line-height: 1.8; }
.prompt-option-card { padding: 14px; }
.prompt-option-header { gap: 8px; margin-bottom: 10px; }
.field-label { display: block; margin: 10px 0 6px; }
.model-config h3 { margin: 0; font-size: 14px; }
.creation-sidebar .model-config { padding: 14px 0; }
#feedback { min-height: 80px; margin-bottom: 10px; }
@media (max-width: 700px) { .workbench-layout { grid-template-columns: 1fr; } .creation-sidebar { position: static; max-height: none; } .header-actions { flex-wrap: wrap; } .mode-summary { font-size: 10px; } .prompt-option-header { flex-wrap: wrap; } .brand-name { white-space: normal; } .workbench-header { position: static; } }
