:root {
  color-scheme: dark;
  --bg: #151515;
  --surface: #1f1f1f;
  --surface-soft: #272727;
  --ink: #f3f3f3;
  --text: #d4d4d4;
  --muted: #a3a3a3;
  --line: #2d2d2d;
  --line-strong: #3a3a3a;
  --accent: #ededed;
  --orange: #9a9a9a;
  --orange-deep: #f5f5f5;
  --orange-soft: #2c2c2c;
  --danger: #ff7d7d;
  --shadow: 0 18px 44px rgba(0, 0, 0, 0.32);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Microsoft YaHei UI", "PingFang SC", "Noto Sans CJK SC", "Segoe UI", sans-serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

button {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 14px;
  background: var(--surface-soft);
  color: var(--ink);
  cursor: pointer;
}

button.primary {
  border-color: #c8c8c8;
  background: #c8c8c8;
  color: #141414;
  font-weight: 700;
}

button.secondary {
  background: var(--surface-soft);
}

button:hover {
  filter: brightness(0.98);
}

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

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

h1 {
  font-size: 24px;
  line-height: 1.2;
}

h2 {
  font-size: 18px;
}

h3 {
  font-size: 15px;
}

.topbar {
  position: fixed;
  inset: 0 auto 0 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 256px;
  padding: 20px 14px 16px;
  border-right: 1px solid var(--line);
  background: #171717;
  box-shadow: 10px 0 28px rgba(0, 0, 0, 0.2);
  z-index: 20;
}

.brand-block {
  display: grid;
  gap: 8px;
}

.brand-block p {
  color: var(--muted);
  font-size: 13px;
}

.product-badge,
.eyebrow {
  width: fit-content;
  color: #7c756c;
  font-size: 12px;
  font-weight: 700;
}

.product-badge {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 9px;
  background: var(--surface);
}

.eyebrow {
  margin-bottom: 6px;
  color: #c9c9c9;
  text-transform: uppercase;
}

.sidebar-nav {
  display: grid;
  gap: 8px;
}

.sidebar-link {
  width: 100%;
  justify-content: flex-start;
  gap: 8px;
  min-height: 40px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  text-align: left;
}

.sidebar-link.is-active,
.sidebar-link:hover {
  border-color: var(--line);
  background: var(--surface-soft);
}

.userbar,
.button-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
}

.userbar {
  margin-top: auto;
  flex-direction: column;
  align-items: stretch;
}

.page-wrap {
  width: calc(100vw - 256px);
  margin: 0 0 36px 256px;
  padding: 0 24px 0 24px;
}

body.is-resource-route .platform-hero,
body.is-resource-route .app-shell,
body.is-resource-route .image-dock {
  display: none !important;
}

.page-wrap.is-library-page {
  padding-top: 18px;
  padding-right: 32px;
  padding-left: 32px;
}

body.is-ops-mode:not(.is-resource-route) .page-wrap {
  width: calc(100vw - 236px);
  min-height: 100vh;
  margin-left: 236px;
  padding: 26px 24px 80px;
}

.home-hero {
  display: grid;
  justify-items: center;
  gap: 14px;
  min-height: 360px;
  padding: 78px 20px 26px;
  text-align: center;
}

.hero-kicker {
  color: var(--muted);
  font-size: 16px;
}

.home-hero h2 {
  font-size: 54px;
  line-height: 1.08;
  letter-spacing: 0;
}

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.hero-chips span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--text);
  font-size: 13px;
}

.platform-hero {
  display: grid;
  gap: 12px;
  justify-items: center;
  padding: 0 0 42px;
  text-align: center;
}

.platform-hero-copy {
  display: grid;
  gap: 12px;
  justify-items: center;
  max-width: 980px;
}

.platform-hero h2 {
  font-size: 46px;
  font-weight: 400;
  line-height: 1.16;
  letter-spacing: 0;
}

.hero-note {
  max-width: 760px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

body.is-ops-mode:not(.is-resource-route) .hero-kicker {
  color: #b8b8b8;
  font-size: 19px;
  font-weight: 400;
}

body.is-ops-mode:not(.is-resource-route) .hero-note,
body.is-ops-mode:not(.is-resource-route) .platform-hero-actions {
  display: none;
}

.surface-tabs {
  display: inline-flex;
  gap: 6px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #303030;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.surface-tab {
  min-height: 34px;
  border: 0;
  border-radius: 9px;
  padding: 0 16px;
  background: transparent;
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
}

.surface-tab::before {
  display: inline-block;
  margin-right: 7px;
  color: #d8d8d8;
}

.surface-tab[data-surface-mode="ops"]::before {
  content: "▣";
}

.surface-tab[data-surface-mode="image"]::before {
  content: "▧";
}

.surface-tab.is-active {
  background: #626262;
  color: #f5f5f5;
}

.surface-panel {
  display: grid;
  gap: 18px;
  width: min(840px, 100%);
  margin: 0 auto 20px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.surface-panel[hidden] {
  display: none;
}

.surface-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.surface-panel-head h3 {
  font-size: 18px;
}

.surface-model-field {
  width: 190px;
  margin-bottom: 0;
  text-align: left;
}

.ops-conversation {
  display: grid;
  gap: 10px;
  min-height: 120px;
  max-height: 300px;
  overflow: auto;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #1d1d1d;
  text-align: left;
}

.ops-conversation[hidden] {
  display: none;
}

.ops-message {
  display: grid;
  gap: 5px;
  width: min(78%, 560px);
}

.ops-message.is-user {
  justify-self: end;
  text-align: right;
}

.ops-message-role {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.ops-message p {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--text);
  font-size: 13px;
  line-height: 1.6;
  white-space: pre-wrap;
}

.ops-message.is-user p {
  background: #313131;
  color: #f3f3f3;
}

.ops-suggestion-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ops-suggestion-row button {
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  white-space: nowrap;
}

.ops-chip-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 16px;
}

.ops-chip-row button {
  min-height: 38px;
  border: 0;
  border-radius: 10px;
  padding: 0 16px;
  background: #383838;
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.ops-chip-row button::before {
  display: inline-block;
  margin-right: 7px;
  color: #d6d6d6;
}

.ops-chip-row button:nth-child(1)::before {
  content: "✦";
}

.ops-chip-row button:nth-child(2)::before {
  content: "⌕";
}

.ops-chip-row button:nth-child(3)::before {
  content: "✎";
}

.ops-chip-row button:nth-child(4)::before {
  content: "♙";
}

.ops-chip-row button:nth-child(5)::before {
  content: "▤";
}

.ops-chip-row button:nth-child(6)::before {
  content: "⌁";
}

.ops-composer {
  display: grid;
  grid-template-columns: 1fr;
  align-items: stretch;
  gap: 18px;
  min-height: 188px;
  padding: 18px;
  border: 0;
  border-radius: 22px;
  background: #292929;
  box-shadow: none;
}

.ops-plus {
  width: 32px;
  min-width: 32px;
  min-height: 32px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #363636;
  color: #d8d8d8;
  font-size: 18px;
  line-height: 1;
}

.ops-composer textarea {
  min-height: 74px;
  border-color: transparent;
  background: transparent;
  padding: 0 2px;
  color: #ffffff;
  font-size: 15px;
  line-height: 1.65;
  resize: none;
}

.ops-composer textarea::placeholder {
  color: #c7c7c7;
  opacity: 1;
}

.ops-composer textarea:focus {
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}

.ops-composer .primary {
  min-height: 38px;
  border: 0;
  border-radius: 10px;
  padding: 0 18px;
  background: #d7dbd2;
  color: #171717;
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
}

.ops-composer-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.ops-left-tools,
.ops-right-tools {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ops-tool-button {
  min-height: 36px;
  border: 0;
  border-radius: 9px;
  padding: 0 14px;
  background: #414141;
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
}

.ops-tool-button::before {
  content: "▤";
  margin-right: 7px;
  color: #d4d4d4;
}

.ops-project-line {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #c7c7c7;
  font-size: 14px;
}

.ops-project-line::before {
  content: "□";
  color: #b0b0b0;
  font-size: 12px;
}

.ops-surface .surface-model-field {
  display: flex;
  align-items: center;
  gap: 7px;
  width: auto;
  margin: 0;
}

.ops-surface .surface-model-field span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.ops-surface .surface-model-field::before {
  content: "◌";
  color: #d4d4d4;
}

.ops-surface .surface-model-field select {
  min-height: 38px;
  width: 170px;
  border: 1px solid #484848;
  border-radius: 10px;
  background: #333333;
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  padding: 0 10px;
}

.ops-surface .surface-model-field select option {
  background: #333333;
  color: #ffffff;
}

.surface-tab::before,
.ops-chip-row button::before,
.ops-tool-button::before,
.ops-project-line::before,
.ops-surface .surface-model-field::before {
  content: none;
}

.ops-image-panel {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid #3e3e3e;
  border-radius: 14px;
  background: #202020;
}

.ops-image-panel[hidden] {
  display: none;
}

.ops-image-drop {
  display: grid;
  gap: 5px;
  margin: 0;
  padding: 14px;
  border: 1px dashed #555;
  border-radius: 12px;
  background: #2a2a2a;
  color: #ffffff;
  cursor: pointer;
}

.ops-image-drop input {
  display: none;
}

.ops-image-drop span {
  font-size: 15px;
  font-weight: 800;
}

.ops-image-drop small {
  color: #c8c8c8;
  font-size: 13px;
}

.ops-image-preview {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(82px, 1fr));
  gap: 8px;
  min-height: 0;
}

.ops-image-empty {
  grid-column: 1 / -1;
  color: #c8c8c8;
  font-size: 13px;
}

.ops-image-thumb {
  position: relative;
  overflow: hidden;
  border: 1px solid #444;
  border-radius: 10px;
  background: #2b2b2b;
}

.ops-image-thumb img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.ops-image-thumb span {
  position: absolute;
  left: 6px;
  bottom: 6px;
  padding: 3px 6px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.7);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
}

.ops-image-remove {
  position: absolute;
  top: 6px;
  right: 6px;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.68);
  color: #ffffff;
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
}

.ops-image-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.ops-image-actions span {
  color: #d8d8d8;
  font-size: 13px;
}

#opsImageAnalysisResult {
  min-height: 112px;
  padding: 10px;
  border: 1px solid #444;
  border-radius: 10px;
  background: #181818;
  color: #ffffff;
  font-size: 14px;
  resize: vertical;
}

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.chip-button,
.launch-pill,
.launch-card {
  border: 1px solid var(--line);
  background: var(--surface-soft);
  color: var(--ink);
}

.chip-button {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 13px;
}

.chip-button.is-active,
.launch-pill.is-active,
.launch-card.is-active {
  border-color: #c8c8c8;
  background: #2a2a2a;
  color: #f3f3f3;
}

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

.launch-pill {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
}

.launch-pill.is-secondary {
  background: var(--surface);
}

.platform-launcher {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 6px;
}

.launch-card {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 150px;
  padding: 14px;
  border-radius: 8px;
  text-align: left;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.launch-card:hover {
  border-color: #555;
  background: #292929;
  transform: translateY(-1px);
}

.launch-card-art {
  display: block;
  min-height: 88px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background-color: #202020;
  background-position: center;
  background-size: cover;
}

.launch-card-kicker {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.launch-card strong {
  font-size: 16px;
  line-height: 1.3;
}

.launch-card p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.app-shell {
  position: relative;
  display: grid;
  grid-template-columns: 370px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  margin-top: 16px;
}

.app-shell[hidden] {
  display: none;
}

.control-pane,
.workspace-pane {
  min-width: 0;
}

.control-pane {
  display: grid;
  gap: 12px;
}

.quick-guide {
  display: none;
}

.quick-guide summary {
  padding: 12px 14px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  user-select: none;
}

.quick-guide[open] summary {
  border-bottom: 1px solid var(--line);
}

.quick-guide ol {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0 14px 4px;
  list-style: none;
  counter-reset: guide-step;
}

.quick-guide li {
  position: relative;
  display: grid;
  gap: 2px;
  min-height: 50px;
  padding: 10px 0 10px 34px;
  border-bottom: 1px solid var(--line);
  counter-increment: guide-step;
}

.quick-guide li:last-child {
  border-bottom: 0;
}

.quick-guide li::before {
  content: counter(guide-step);
  position: absolute;
  top: 11px;
  left: 0;
  display: grid;
  width: 23px;
  height: 23px;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
}

.quick-guide li b {
  font-size: 13px;
  line-height: 1.4;
}

.quick-guide li span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.workspace-pane {
  min-height: 780px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.panel-card,
.generated-section,
.idea-card,
.module-card,
.image-card,
.analysis-drawer {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.panel-card {
  padding: 14px;
}

.card-title,
.section-heading,
.workspace-head,
.card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.card-title {
  margin-bottom: 12px;
}

.card-title p,
.workspace-head p,
.idea-card p,
.idea-card ul,
.inline-status,
.progress-text {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.inline-status {
  overflow-wrap: anywhere;
}

label {
  display: grid;
  gap: 7px;
  margin-bottom: 12px;
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 10px 11px;
  background: var(--surface-soft);
  color: var(--ink);
  outline: none;
}

input:focus,
select:focus,
textarea:focus {
  border-color: #505050;
  background: #2f2f2f;
}

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

.file-drop input {
  display: none;
}

.image-preview {
  display: grid;
  min-height: 106px;
  place-items: center;
  border: 1px dashed #d8d0c6;
  border-radius: 12px;
  background: var(--surface-soft);
}

.image-preview img {
  display: block;
  width: 100%;
  max-height: 170px;
  object-fit: contain;
  border-radius: 10px;
}

.main-image-preview-grid {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 8px;
}

.main-image-thumb {
  position: relative;
  min-width: 0;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.main-image-thumb img {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: contain;
}

.main-image-thumb span {
  position: absolute;
  right: 5px;
  bottom: 5px;
  max-width: calc(100% - 10px);
  border-radius: 999px;
  padding: 3px 6px;
  background: rgba(17, 17, 17, 0.78);
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.2;
}

.main-image-remove,
.reference-remove {
  position: absolute;
  top: 5px;
  right: 5px;
  display: grid;
  width: 22px;
  min-width: 22px;
  height: 22px;
  min-height: 22px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 50%;
  padding: 0;
  background: rgba(16, 16, 16, 0.78);
  color: #ffffff;
  font-size: 16px;
  font-weight: 800;
  line-height: 1;
}

.main-image-remove:hover,
.reference-remove:hover {
  background: #d74a4a;
  filter: none;
}

.upload-hint {
  display: grid;
  gap: 6px;
  color: var(--ink);
  text-align: center;
}

.upload-hint span {
  color: var(--muted);
  font-size: 12px;
}

.image-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.three-view-launch {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.three-view-launch-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.three-view-launch-kicker {
  color: #9a5d12;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.three-view-launch strong {
  color: var(--ink);
  font-size: 13px;
  line-height: 1.4;
}

.three-view-launch small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.three-view-launch button {
  flex: none;
  min-width: 110px;
}

.mode-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 14px;
}

.mode-tabs button {
  min-height: 32px;
  padding: 0 8px;
  font-size: 12px;
}

.mode-tabs .is-active {
  border-color: #c8c8c8;
  background: #c8c8c8;
  color: #141414;
}

.self-fill-panel {
  margin-bottom: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.self-options {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}

.reference-preview {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: -4px 0 12px;
}

.reference-thumb {
  position: relative;
  min-width: 0;
}

.reference-preview img,
.reference-thumb img {
  width: 100%;
  aspect-ratio: 1 / 1;
  border: 1px solid var(--line);
  border-radius: 8px;
  object-fit: cover;
  background: var(--surface-soft);
}

.is-self-mode .idea-picker,
.is-self-mode #analysisProviderField,
.is-self-mode #requirementsField,
.is-self-mode #outputLanguageField,
.is-self-mode #copyProviderField,
.is-self-mode #generateCopyButton,
.is-self-mode .image-number-field,
.is-self-mode .analysis-drawer,
.is-self-mode .prompt-section {
  display: none;
}

.is-self-mode .output-action-row {
  grid-template-columns: 1fr;
}

.settings-row,
.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.image-number-field {
  grid-column: 1 / -1;
  min-width: 0;
  margin: 0 0 12px;
  border: 0;
  padding: 0;
}

.image-number-field legend {
  width: 100%;
  margin-bottom: 7px;
  padding: 0;
  color: #34302a;
  font-size: 12px;
  font-weight: 700;
}

.image-number-field legend small {
  margin-left: 5px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 400;
}

.image-number-picker {
  display: grid;
  grid-template-columns: repeat(9, minmax(0, 1fr));
  gap: 5px;
}

.image-number-picker label {
  display: block;
  margin: 0;
  cursor: pointer;
}

.image-number-picker input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.image-number-picker span {
  display: grid;
  min-height: 34px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface-soft);
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
}

.image-number-picker input:checked + span {
  border-color: var(--orange);
  background: var(--orange);
  color: #ffffff;
}

.image-number-picker input:focus-visible + span {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.field-caption {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
  color: #34302a;
  font-size: 12px;
  font-weight: 700;
}

.field-caption small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 400;
}

.idea-picker {
  margin-bottom: 12px;
}

.advanced-generation-panel {
  margin: 6px 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #202020;
}

.advanced-generation-panel > summary {
  padding: 11px 12px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  user-select: none;
}

.advanced-generation-panel > summary::-webkit-details-marker {
  display: none;
}

.advanced-generation-body {
  display: grid;
  gap: 12px;
  padding: 0 12px 12px;
}

.idea-refresh-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 7px;
  margin-bottom: 8px;
}

.idea-refresh-row input,
.idea-refresh-row button {
  min-height: 38px;
  margin: 0;
}

.idea-refresh-row button {
  padding: 0 10px;
  white-space: nowrap;
  font-size: 11px;
}

.idea-choices {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.idea-switcher {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.idea-switcher button {
  position: relative;
  min-height: 38px;
  padding: 0;
  border-color: var(--line-strong);
  border-radius: 6px;
  background: var(--surface-soft);
  font-size: 14px;
  font-weight: 700;
}

.idea-switcher button.is-active {
  border-color: #c8c8c8;
  background: #c8c8c8;
  color: #141414;
}

.idea-switcher button.is-adopted::after {
  content: "";
  position: absolute;
  top: 5px;
  right: 5px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
}

.idea-switcher button.is-active.is-adopted::after {
  background: #141414;
}

.idea-choice {
  display: grid;
  min-width: 0;
  min-height: 0;
  align-content: start;
  gap: 10px;
  padding: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  text-align: left;
}

.idea-choice-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
}

.idea-choice input,
.idea-choice textarea {
  width: 100%;
  min-width: 0;
  margin: 0;
  border-color: var(--line);
  background: var(--surface-soft);
  color: var(--ink);
  font-family: "Microsoft YaHei UI", "PingFang SC", "Noto Sans CJK SC", "Segoe UI", sans-serif;
  padding: 9px 10px;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.6;
  resize: vertical;
}

.idea-choice input:focus,
.idea-choice textarea:focus {
  border-color: #575757;
  background: #2d2d2d;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.06);
}

.idea-choice .idea-title-editor {
  min-height: 40px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
}

.idea-choice .idea-angle-editor {
  min-height: 76px;
  color: var(--text);
}

.idea-choice .idea-list-editor {
  min-height: 72px;
  color: var(--text);
}

.idea-choice .idea-use-button {
  min-height: 40px;
  padding: 0 12px;
  border-color: var(--line-strong);
  white-space: nowrap;
  font-size: 12px;
  font-weight: 700;
}

.idea-editor-field {
  display: grid;
  gap: 5px;
  margin: 0;
}

.idea-choice .idea-editor-field > span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}

.idea-choice.is-edited .idea-use-button,
.idea-choice.is-active .idea-use-button {
  border-color: var(--orange);
  color: var(--orange-deep);
}

.idea-choice strong,
.idea-choice span {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.idea-choice strong {
  font-size: 12px;
  line-height: 1.35;
}

.idea-choice span {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.4;
}

.idea-choice .idea-detail {
  padding-top: 5px;
  border-top: 1px solid var(--line);
  color: var(--text);
  font-size: 11px;
}

.idea-choice.is-active {
  border-color: #c8c8c8;
  background: #292929;
  box-shadow: inset 0 0 0 1px #c8c8c8;
}

.check-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.check-row input {
  width: auto;
}

.block-button {
  width: 100%;
  margin-top: 4px;
}

.output-action-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 4px;
}

.output-action-row button {
  min-width: 0;
  padding: 0 8px;
  font-size: 12px;
}

.image-dock {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 28;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  width: min(520px, calc(100vw - 290px));
  margin: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(23, 23, 23, 0.96);
  box-shadow: var(--shadow);
}

.image-dock button {
  min-height: 38px;
  padding: 0 14px;
  font-size: 12px;
  font-weight: 700;
  flex: 1 1 0;
}

.message {
  min-height: 20px;
  margin-top: 10px;
  color: var(--danger);
  font-size: 13px;
  line-height: 1.45;
}

.diagnostic-panel {
  margin-top: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--text);
}

.diagnostic-panel summary {
  padding: 9px 10px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
}

.diagnostic-panel pre {
  max-height: 180px;
  margin: 0 10px 10px;
  padding: 10px;
  overflow: auto;
  border-radius: 6px;
  background: #111111;
  color: #e7e7e7;
  font-size: 11px;
  line-height: 1.55;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.diagnostic-panel button {
  margin: 0 10px 10px;
}

.pending-review {
  margin-top: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 10px;
  background: var(--surface-soft);
  color: var(--text);
  font-size: 12px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.verification-dialog {
  width: min(520px, calc(100vw - 32px));
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 24px 70px rgba(20, 16, 10, 0.22);
}

.verification-dialog::backdrop {
  background: rgba(20, 18, 15, 0.48);
}

.verification-dialog form {
  display: grid;
  gap: 14px;
  padding: 20px;
}

.verification-dialog p,
.verification-dialog li {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.verification-dialog ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 12px 12px 12px 30px;
  border-radius: 8px;
  background: var(--surface-soft);
}

.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.analysis-drawer summary {
  padding: 12px 14px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.drawer-body {
  padding: 0 14px 14px;
}

.workspace-head {
  margin-bottom: 14px;
}

.generation-progress {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.generation-progress-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
}

.generation-progress-head strong {
  color: var(--ink);
  font-size: 13px;
}

.generation-progress-track {
  height: 9px;
  overflow: hidden;
  border-radius: 5px;
  background: #e9e5df;
}

.generation-progress-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--orange);
  transition: width 320ms ease;
}

.generation-progress.is-completed .generation-progress-track span {
  background: #238636;
}

.generation-progress.is-failed .generation-progress-track span {
  background: var(--danger);
}

.listing-copy-section {
  margin-bottom: 16px;
  padding: 0 0 16px;
  border-bottom: 1px solid var(--line);
}

.listing-copy-section[hidden] {
  display: none;
}

.copy-platform-badge {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 8px;
  color: var(--muted);
  font-size: 11px;
}

.listing-copy-field {
  margin-top: 12px;
}

.listing-copy-label {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  color: #34302a;
  font-size: 12px;
  font-weight: 700;
}

.listing-copy-label > span:nth-child(2) {
  color: var(--muted);
  font-weight: 400;
}

.listing-copy-label button {
  min-height: 30px;
  padding: 0 10px;
  font-size: 11px;
}

.listing-copy-field textarea {
  resize: vertical;
  border-color: var(--line);
  background: var(--surface-soft);
}

.listing-copy-note {
  margin-top: 10px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.generated-section {
  min-height: 250px;
  margin-bottom: 16px;
  padding: 16px;
}

.prompt-section {
  min-height: 0;
  margin-bottom: 16px;
  padding: 0 0 16px;
  border-bottom: 1px solid var(--line);
}

.history-section {
  margin-bottom: 16px;
  padding: 16px 0 0;
  border-top: 1px solid var(--line);
}

.recent-history-section .history-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.recent-history-section .history-item {
  min-width: 0;
}

.recent-history-section .history-thumbs {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.history-dialog {
  width: min(980px, calc(100vw - 32px));
  max-height: calc(100vh - 40px);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 24px 70px rgba(20, 16, 10, 0.22);
}

.history-dialog::backdrop {
  background: rgba(20, 18, 15, 0.48);
}

.history-dialog-body {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.history-dialog-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.history-dialog .history-list {
  max-height: calc(100vh - 150px);
  overflow-y: auto;
  padding-right: 4px;
}

.history-list {
  display: grid;
  gap: 12px;
}

.history-empty {
  padding: 14px;
  border: 1px dashed var(--line);
  border-radius: 10px;
  color: var(--muted);
  font-size: 13px;
  background: var(--surface-soft);
}

.history-item {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-soft);
}

.history-item.is-active {
  border-color: #c8c8c8;
  background: #262626;
}

.history-item-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.history-item h3 {
  font-size: 14px;
}

.history-meta {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.history-status {
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 12px;
  white-space: nowrap;
}

.status-completed {
  background: #243024;
  color: #a8e3b0;
}

.status-failed {
  background: #312121;
  color: #ff9b9b;
}

.status-running {
  background: #2d2820;
  color: #f0c37a;
}

.history-thumbs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

.history-thumbs img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 8px;
}

.history-actions {
  display: flex;
  justify-content: flex-end;
}

.admin-prompt-dialog {
  width: min(1180px, calc(100vw - 32px));
}

.library-dialog {
  width: min(1220px, calc(100vw - 32px));
}

.library-editor-dialog {
  width: min(980px, calc(100vw - 32px));
}

.library-page {
  display: block;
  width: 100%;
  padding: 0 0 28px;
}

.library-page[hidden] {
  display: none;
}

.library-page-body {
  display: grid;
  gap: 16px;
  width: min(1880px, 100%);
  margin: 0 auto;
}

.library-page-head {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.library-page-head h2 {
  font-size: 24px;
}

.library-layout {
  display: grid;
  grid-template-columns: minmax(220px, 250px) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.library-overview {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 12px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.library-overview h3 {
  margin-bottom: 4px;
  font-size: 18px;
}

.library-overview p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.library-overview-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.library-sidebar {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  position: sticky;
  top: 18px;
  align-self: start;
}

.library-sidebar button {
  justify-content: flex-start;
  min-height: 44px;
  padding: 0 12px;
  text-align: left;
}

.library-sidebar button.is-active {
  border-color: #c8c8c8;
  background: #2a2a2a;
  color: #f3f3f3;
  font-weight: 700;
}

.library-folder-panel {
  display: grid;
  gap: 8px;
  margin-top: 6px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.library-folder-title {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.library-folder-list {
  display: grid;
  gap: 8px;
}

.library-folder-list button {
  justify-content: flex-start;
  min-height: 36px;
  padding: 0 12px;
  text-align: left;
}

.library-folder-list button.is-active {
  border-color: #c8c8c8;
  background: #2a2a2a;
  color: #f3f3f3;
}

.library-main {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.library-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.library-toolbar input[type="search"] {
  flex: 1 1 280px;
  min-width: 220px;
}

.library-toolbar select {
  min-width: 120px;
}

.slider-field {
  display: grid;
  gap: 6px;
  min-width: 140px;
  margin-bottom: 0;
}

.slider-field[hidden] {
  display: none !important;
}

.slider-field span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.library-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  max-height: none;
  overflow: visible;
  padding-right: 0;
}

.library-list.is-assets {
  grid-template-columns: repeat(auto-fill, minmax(var(--asset-thumb-size, 132px), 1fr));
}

.library-list.is-products {
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}

.library-list.is-creators {
  grid-template-columns: repeat(2, minmax(460px, 1fr));
  gap: 18px;
}

.library-item {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  overflow: hidden;
}

.library-item.is-product-card,
.library-item.is-asset-card {
  padding: 10px;
}

.library-item.is-product-card .library-item-head,
.library-item.is-asset-card .library-item-head {
  flex-direction: column;
}

.library-item-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.library-item h3 {
  font-size: 16px;
  line-height: 1.2;
}

.library-item-meta {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.library-item-media {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.library-item.is-product-card .library-item-media,
.library-item.is-asset-card .library-item-media {
  grid-template-columns: 1fr;
}

.library-item.is-product-card .library-item-media,
.library-item.is-creator-card .library-item-media {
  gap: 8px;
}

.library-item-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

.library-item-gallery img {
  width: 100%;
  aspect-ratio: 1 / 1;
  border: 1px solid var(--line);
  border-radius: 6px;
  object-fit: cover;
  background: var(--surface-soft);
}

.library-item-media img {
  width: 120px;
  height: 120px;
  border: 1px solid var(--line);
  border-radius: 8px;
  object-fit: cover;
  background: var(--surface-soft);
}

.library-item.is-product-card .library-item-media img,
.library-item.is-asset-card .library-item-media img {
  width: 100%;
  height: 190px;
  object-fit: cover;
}

.library-item.is-creator-card .library-item-media {
  grid-template-columns: 1fr;
  gap: 10px;
}

.library-item.is-creator-card .library-item-media img {
  width: 100%;
  height: clamp(460px, 38vw, 620px);
  object-fit: cover;
  object-position: center top;
}

.library-item.is-creator-card .library-item-gallery {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.library-item.is-creator-card .library-item-gallery img {
  height: 96px;
  aspect-ratio: auto;
}

.library-item.is-creator-card .library-item-copy p {
  max-height: 150px;
  overflow: auto;
  font-size: 14px;
  line-height: 1.68;
}

.library-item-copy {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.library-item-copy p {
  color: var(--text);
  font-size: 12px;
  line-height: 1.5;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.library-item-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.library-item-chips span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #272727;
  color: var(--text);
  font-size: 11px;
}

.library-item textarea {
  min-height: 108px;
  border-color: var(--line-strong);
  background: var(--surface-soft);
  font-size: 12px;
}

.library-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: space-between;
}

.library-actions button {
  min-height: 34px;
  padding: 0 10px;
  font-size: 12px;
}

.library-actions .primary {
  flex: 1 1 110px;
}

.library-list.is-creators {
  grid-template-columns: repeat(auto-fill, minmax(172px, 1fr));
  gap: 16px;
  align-items: stretch;
}

.creator-avatar-card {
  position: relative;
  display: grid;
  grid-template-rows: 250px 78px 32px 34px;
  gap: 8px;
  min-width: 0;
  height: 438px;
  padding: 0 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  background: rgba(26, 28, 28, 0.86);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.28);
  overflow: hidden;
}

.creator-avatar-card.is-create-card {
  height: 438px;
  min-height: 438px;
  place-items: center;
  align-content: center;
  padding: 18px;
  border-style: dashed;
  background: rgba(28, 31, 32, 0.72);
  color: #f6fbf8;
  text-align: center;
}

.creator-create-plus {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin-bottom: 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  color: #f6fbf8;
  font-size: 34px;
  line-height: 1;
}

.creator-avatar-card.is-create-card small {
  color: var(--muted);
}

.creator-avatar-media {
  position: relative;
  display: block;
  width: 100%;
  height: 250px;
  min-height: 250px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: #151717;
  overflow: hidden;
  cursor: pointer;
}

.creator-avatar-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transform: scale(1.01);
}

.creator-avatar-media::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 46%;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.72));
  pointer-events: none;
}

.creator-avatar-overlay {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 1;
  display: grid;
  gap: 3px;
  color: #fff;
  text-align: left;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
}

.creator-avatar-overlay strong {
  font-size: 18px;
  line-height: 1.08;
}

.creator-avatar-overlay small {
  color: rgba(255, 255, 255, 0.86);
  font-size: 12px;
  font-weight: 800;
}

.creator-avatar-info {
  display: grid;
  grid-template-rows: 18px 28px 22px;
  gap: 5px;
  padding: 0 12px;
  overflow: hidden;
}

.creator-avatar-info h3 {
  font-size: 15px;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.creator-avatar-info p,
.creator-avatar-summary {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.creator-avatar-info p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.creator-avatar-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  height: 22px;
  overflow: hidden;
}

.creator-avatar-chips span {
  max-width: 100%;
  padding: 3px 7px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: #f2f6f3;
  font-size: 10px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.creator-avatar-summary {
  display: -webkit-box;
  min-height: 32px;
  padding: 0 12px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.creator-avatar-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 0 12px;
  align-self: end;
}

.creator-avatar-actions button {
  min-height: 32px;
  padding: 0 10px;
  font-size: 12px;
}

.library-actions .secondary {
  flex: 0 0 auto;
}

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

.library-editor-grid label {
  margin-bottom: 0;
}

.library-editor-grid label:nth-child(4),
.library-editor-grid label:nth-child(5),
.library-editor-grid label:nth-child(6),
.library-editor-grid label:nth-child(8) {
  grid-column: 1 / -1;
}

.library-editor-actions {
  justify-content: space-between;
}

.library-editor-actions .primary {
  margin-left: auto;
}

.admin-filters {
  display: grid;
  grid-template-columns: minmax(180px, 1.2fr) minmax(160px, 1fr) minmax(130px, 0.8fr) minmax(120px, 0.7fr) minmax(120px, 0.7fr) auto;
  gap: 8px;
}

.admin-view-tabs {
  display: flex;
  gap: 8px;
}

.admin-view-tabs button {
  min-height: 36px;
  padding: 0 12px;
  background: var(--surface-soft);
}

.admin-view-tabs button.is-active {
  border-color: #c8c8c8;
  background: #2a2a2a;
  color: #f3f3f3;
}

.admin-panel {
  display: none;
}

.admin-panel.is-active {
  display: block;
}

.admin-record-list {
  display: grid;
  gap: 12px;
  max-height: calc(100vh - 210px);
  overflow: auto;
  padding-right: 4px;
}

.admin-record {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.admin-record-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.admin-record-meta {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.admin-record-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 240px);
  gap: 12px;
}

.admin-record textarea {
  min-height: 170px;
  border-color: var(--line-strong);
  background: var(--surface-soft);
  font-family: Consolas, "Courier New", monospace;
  font-size: 12px;
}

.admin-record img {
  width: 100%;
  aspect-ratio: 1 / 1;
  border: 1px solid var(--line);
  border-radius: 8px;
  object-fit: cover;
  background: var(--surface-soft);
}

.admin-job-images {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.admin-job-images img {
  width: 100%;
  aspect-ratio: 1 / 1;
  border: 1px solid var(--line);
  border-radius: 8px;
  object-fit: cover;
  background: var(--surface-soft);
}

.admin-job-summary {
  color: var(--text);
  font-size: 12px;
  line-height: 1.5;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.manual-import {
  margin-bottom: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.manual-import summary {
  padding: 10px 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.manual-import[open] summary {
  border-bottom: 1px solid var(--line);
}

.manual-import .import-row {
  margin: 0;
  padding: 12px;
}

.import-row {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto auto;
  gap: 8px;
  margin-bottom: 12px;
}

.file-button {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 14px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}

.file-button input {
  display: none;
}

.compact-heading {
  margin-bottom: 12px;
}

.images-output {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 210px));
  justify-content: start;
  align-items: start;
  gap: 12px;
}

.image-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.image-card img,
.placeholder-box {
  width: 100%;
  aspect-ratio: 1 / 1;
}

.image-card img {
  display: block;
  height: auto;
  object-fit: contain;
  background: #f2eee8;
}

.placeholder-box {
  display: grid;
  place-items: center;
  color: var(--muted);
  text-align: center;
  line-height: 1.5;
  background: #f2eee8;
}

.placeholder-box span {
  font-size: 12px;
}

.image-card a,
.image-card button {
  display: block;
  width: 100%;
  min-height: 38px;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  padding: 8px 10px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.generated-empty {
  display: grid;
  min-height: 170px;
  place-items: center;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: var(--surface-soft);
  font-size: 13px;
  text-align: center;
}

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

.idea-card {
  display: grid;
  gap: 9px;
  padding: 13px;
}

.idea-card.is-active {
  border-color: var(--orange);
  background: var(--orange-soft);
}

.idea-card ul {
  margin: 0;
  padding-left: 18px;
}

.idea-best {
  color: var(--muted);
}

.tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 10px;
}

.tabs button {
  min-width: 42px;
  background: var(--surface-soft);
}

.tabs button.is-active {
  border-color: var(--orange);
  background: var(--orange);
  color: #ffffff;
}

.modules-output {
  display: grid;
  gap: 12px;
}

.module-card {
  padding: 14px;
}

.module-card[hidden] {
  display: none;
}

.module-number {
  margin-bottom: 5px;
  color: var(--orange);
  font-size: 12px;
  font-weight: 700;
}

.module-card textarea {
  min-height: 190px;
  border-color: var(--line-strong);
  background: var(--surface-soft);
  font-family: Consolas, "Courier New", monospace;
  font-size: 12px;
}

.module-card textarea:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(255, 111, 24, 0.12);
}

.module-card.is-edited textarea {
  border-left: 3px solid var(--orange);
}

.auth-shell {
  display: grid;
  place-items: start center;
  padding: 42px 18px;
}

.auth-card {
  width: min(440px, 100%);
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.field-note {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

@media (max-width: 980px) {
  .topbar {
    position: static;
    inset: auto;
    width: auto;
    overflow: visible;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
    box-shadow: none;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .sidebar-nav {
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .userbar {
    margin-top: 0;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .page-wrap {
    width: calc(100vw - 24px);
    margin: 0 auto 36px;
    padding: 0;
  }

  .app-shell,
  .ideas-grid {
    grid-template-columns: 1fr;
  }

  .workspace-pane {
    min-height: 520px;
  }

  .recent-history-section .history-list {
    grid-template-columns: 1fr;
  }

  .quick-guide {
    position: static;
    width: auto;
  }
}

@media (min-width: 981px) and (max-width: 1819px) {
  .page-wrap {
    width: calc(100vw - 256px);
  }

  .app-shell {
    grid-template-columns: 370px minmax(0, 1fr);
    gap: 16px;
  }
}

@media (max-width: 640px) {
  .topbar,
  .workspace-head,
  .card-head {
    flex-direction: column;
  }

  .page-wrap {
    width: calc(100vw - 24px);
  }

  .settings-row,
  .field-grid,
  .import-row,
  .admin-filters,
  .admin-record-body {
    grid-template-columns: 1fr;
  }

  .mode-tabs,
  .reference-preview {
    grid-template-columns: 1fr;
  }

  .three-view-launch {
    flex-direction: column;
    align-items: stretch;
  }

  .three-view-launch button {
    width: 100%;
  }

  .library-layout,
  .library-toolbar,
  .library-item-media,
  .library-editor-grid {
    grid-template-columns: 1fr;
  }

  .library-sidebar {
    position: static;
  }

  .library-list {
    grid-template-columns: 1fr;
  }

  .admin-job-images {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .idea-choices {
    grid-template-columns: 1fr;
  }

  .idea-refresh-row {
    grid-template-columns: 1fr;
  }

  .idea-choice {
    min-height: 64px;
  }

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

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

  .button-row,
  .button-row button {
    width: 100%;
  }

  .output-action-row {
    grid-template-columns: 1fr;
  }

  .surface-panel-head {
    flex-direction: column;
    align-items: stretch;
  }

  .ops-composer {
    grid-template-columns: 1fr;
  }

  .surface-model-field {
    width: 100%;
  }

  .ops-message {
    width: 100%;
  }

  .image-dock {
    position: static;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .image-dock button {
    flex: 1 1 120px;
  }

  .platform-hero {
    padding-top: 28px;
  }

  .platform-hero h2 {
    font-size: 34px;
  }

  .platform-launcher {
    grid-template-columns: 1fr;
  }

  .launch-card {
    min-height: 128px;
  }
}

.task-dashboard-section {
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.task-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.task-summary-card {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.task-summary-card strong {
  font-size: 20px;
}

.task-summary-card span {
  color: var(--muted);
  font-size: 12px;
}

.admin-prompt-template-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 8px;
}

.prompt-template-card textarea {
  min-height: 180px;
}

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

.system-setting-card {
  display: grid;
  gap: 6px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.system-setting-card h3 {
  font-size: 14px;
}

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

.admin-panel[hidden] {
  display: none !important;
}

@media (min-width: 641px) and (max-width: 1180px) {
  .platform-launcher {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Workbench shell upgrade */
.topbar.sidebar-shell {
  width: 236px;
  gap: 16px;
  padding: 18px 12px;
  background: #151515;
}

.topbar.sidebar-shell .brand-block {
  padding: 0 4px 12px;
  border-bottom: 1px solid var(--line);
}

.topbar.sidebar-shell .brand-block h1 {
  font-size: 18px;
  line-height: 1.25;
}

.topbar.sidebar-shell .brand-block p {
  font-size: 12px;
  line-height: 1.55;
}

.nav-group {
  display: grid;
  gap: 6px;
  padding: 8px 0;
}

.nav-group > span {
  padding: 0 8px 3px;
  color: #797979;
  font-size: 11px;
  font-weight: 700;
}

.nav-group[hidden],
.admin-only[hidden] {
  display: none !important;
}

.workspace-topbar {
  position: sticky;
  top: 0;
  z-index: 18;
  display: grid;
  grid-template-columns: minmax(150px, 240px) auto minmax(240px, 1fr) auto auto auto;
  gap: 12px;
  align-items: center;
  min-height: 68px;
  margin-left: 236px;
  padding: 12px 22px;
  border-bottom: 1px solid var(--line);
  background: rgba(21, 21, 21, 0.94);
  backdrop-filter: blur(16px);
}

.topbar-title {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.topbar-title span {
  color: var(--muted);
  font-size: 11px;
}

.topbar-title h1 {
  overflow: hidden;
  font-size: 18px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.selected-product-pill {
  overflow: hidden;
  max-width: 230px;
  min-height: 34px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #202020;
  color: var(--text);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.global-search-wrap {
  position: relative;
  min-width: 0;
}

.global-search-wrap input {
  min-height: 40px;
  margin: 0;
  padding-left: 14px;
  background: #202020;
}

.global-search-results {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  left: 0;
  z-index: 40;
  display: grid;
  gap: 6px;
  max-height: 420px;
  overflow: auto;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #1a1a1a;
  box-shadow: var(--shadow);
}

.global-search-results[hidden] {
  display: none;
}

.search-result {
  display: grid;
  gap: 2px;
  width: 100%;
  height: auto;
  min-height: 58px;
  padding: 8px 10px;
  text-align: left;
}

.search-result span,
.search-result small,
.search-empty {
  color: var(--muted);
  font-size: 11px;
}

.search-result strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-empty {
  padding: 12px;
}

.topbar-task-button span {
  display: inline-grid;
  min-width: 20px;
  height: 20px;
  margin-left: 5px;
  place-items: center;
  border-radius: 999px;
  background: #303030;
  color: #f5f5f5;
  font-size: 11px;
}

.workspace-topbar .userbar {
  margin-top: 0;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.workspace-topbar #currentUser {
  max-width: 180px;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workspace-topbar .userbar button,
.workspace-topbar > button {
  min-height: 36px;
  white-space: nowrap;
}

.page-wrap {
  width: calc(100vw - 236px);
  margin-left: 236px;
  padding-top: 20px;
  padding-bottom: 120px;
}

.platform-hero {
  padding-top: 34px;
}

.platform-hero h2 {
  max-width: 920px;
}

body.is-ops-mode:not(.is-resource-route) .platform-hero {
  padding-top: 0;
  padding-bottom: 54px;
}

body.is-ops-mode:not(.is-resource-route) .platform-hero h2 {
  max-width: 920px;
  font-size: 46px;
  font-weight: 400;
}

body.is-ops-mode:not(.is-resource-route) .ops-surface {
  width: min(900px, 100%);
}

@media (max-width: 1080px) {
  .workspace-topbar {
    grid-template-columns: minmax(140px, 1fr) minmax(220px, 1.4fr) auto;
  }

  .selected-product-pill,
  .workspace-topbar #openSettingsButton,
  .workspace-topbar #pendingTaskButton {
    display: none;
  }

  .workspace-topbar .userbar {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }
}

@media (max-width: 760px) {
  .topbar.sidebar-shell {
    position: static;
    width: auto;
    min-height: auto;
  }

  .workspace-topbar {
    position: sticky;
    margin-left: 0;
    grid-template-columns: 1fr;
  }

  .page-wrap {
    width: 100%;
    margin-left: 0;
    padding: 14px 14px 120px;
  }

  body.is-ops-mode:not(.is-resource-route) .page-wrap {
    padding: 18px 14px 56px;
  }

  body.is-ops-mode:not(.is-resource-route) .platform-hero h2 {
    font-size: 34px;
  }

  .ops-composer-footer,
  .ops-left-tools,
  .ops-right-tools {
    flex-wrap: wrap;
  }

  .ops-right-tools {
    justify-content: space-between;
    width: 100%;
  }
}

body.is-ops-mode:not(.is-resource-route) {
  background:
    linear-gradient(180deg, #181a1d 0%, #121314 58%, #101112 100%);
}

body.is-ops-mode:not(.is-resource-route) .page-wrap {
  padding: 28px 28px 72px;
}

body.is-ops-mode:not(.is-resource-route) .platform-hero {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 12px 0 22px;
  justify-items: stretch;
  text-align: left;
}

body.is-ops-mode:not(.is-resource-route) .platform-hero-copy {
  max-width: none;
  justify-items: stretch;
  gap: 14px;
}

body.is-ops-mode:not(.is-resource-route) .hero-kicker {
  color: #82d8c7;
  font-size: 13px;
  font-weight: 800;
}

body.is-ops-mode:not(.is-resource-route) .platform-hero h2 {
  max-width: 900px;
  color: #f7f7f3;
  font-size: 42px;
  font-weight: 750;
  line-height: 1.12;
}

body.is-ops-mode:not(.is-resource-route) .hero-note {
  display: block;
  max-width: 720px;
  color: #aeb7b7;
  font-size: 15px;
}

.ops-command-center {
  width: min(1180px, 100%) !important;
  gap: 16px;
}

.ops-command-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: end;
  padding: 22px 24px;
  border: 1px solid #30383a;
  border-radius: 8px;
  background: #1d2224;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.24);
}

.ops-command-title {
  display: grid;
  gap: 7px;
}

.ops-command-title > span {
  color: #82d8c7;
  font-size: 12px;
  font-weight: 800;
}

.ops-command-title h2 {
  color: #f6f4ec;
  font-size: 26px;
  line-height: 1.18;
}

.ops-command-title p {
  max-width: 640px;
  color: #aab3b2;
  font-size: 14px;
  line-height: 1.7;
}

.ops-command-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(86px, 1fr));
  gap: 8px;
}

.ops-command-stats div {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid #354144;
  border-radius: 8px;
  background: #15191a;
}

.ops-command-stats strong {
  color: #f3d98a;
  font-size: 20px;
  line-height: 1;
}

.ops-command-stats span {
  color: #9fa8a8;
  font-size: 12px;
  white-space: nowrap;
}

.ops-command-frame {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  gap: 16px;
  min-height: 660px;
}

.ops-session-rail {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 12px;
  border: 1px solid #30383a;
  border-radius: 8px;
  background: #181d1f;
}

.ops-session-rail button {
  display: grid;
  gap: 5px;
  justify-items: start;
  width: 100%;
  height: auto;
  min-height: 62px;
  padding: 11px 12px;
  border-color: transparent;
  border-radius: 8px;
  background: transparent;
  color: #dce4e2;
  text-align: left;
}

.ops-session-rail button:hover,
.ops-session-rail button.is-active {
  border-color: #3d4c4f;
  background: #22292b;
}

.ops-session-rail button span {
  font-size: 14px;
  font-weight: 800;
}

.ops-session-rail button small {
  color: #8f9b9b;
  font-size: 12px;
  line-height: 1.4;
}

.ops-chat-stage {
  display: grid;
  grid-template-rows: auto auto minmax(220px, 1fr) auto;
  gap: 12px;
  min-width: 0;
  padding: 14px;
  border: 1px solid #30383a;
  border-radius: 8px;
  background: #161a1c;
}

.ops-welcome-panel {
  display: grid;
  gap: 6px;
  padding: 18px 18px 16px;
  border: 1px solid #314144;
  border-radius: 8px;
  background: #20282a;
}

.ops-welcome-panel span {
  color: #82d8c7;
  font-size: 12px;
  font-weight: 800;
}

.ops-welcome-panel h3 {
  color: #f4f1e8;
  font-size: 22px;
  line-height: 1.2;
}

.ops-welcome-panel p {
  color: #a8b1b0;
  font-size: 14px;
  line-height: 1.65;
}

.ops-command-center .ops-chip-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.ops-command-center .ops-chip-row button {
  min-height: 42px;
  border: 1px solid #333d40;
  border-radius: 8px;
  background: #1e2426;
  color: #e6eeec;
  font-size: 13px;
  font-weight: 800;
}

.ops-command-center .ops-conversation {
  min-height: 260px;
  max-height: none;
  padding: 16px;
  border-color: #2b3436;
  border-radius: 8px;
  background: #101314;
}

.ops-command-center .ops-conversation[hidden] {
  display: grid;
  place-items: center;
}

.ops-command-center .ops-conversation[hidden]::before {
  content: "选择一个运营场景，或者直接输入你的问题。";
  color: #7f8b8b;
  font-size: 14px;
}

.ops-command-center .ops-message {
  width: min(82%, 720px);
}

.ops-command-center .ops-message p {
  padding: 13px 15px;
  border-color: #303b3d;
  background: #1d2426;
  color: #dfe7e5;
  font-size: 14px;
}

.ops-command-center .ops-message.is-user p {
  border-color: #4f695f;
  background: #263b35;
  color: #f5fbf8;
}

.ops-command-center .ops-composer {
  min-height: 176px;
  gap: 14px;
  padding: 16px;
  border: 1px solid #3a4648;
  border-radius: 8px;
  background: #202628;
}

.ops-command-center .ops-composer textarea {
  min-height: 92px;
  padding: 2px;
  color: #ffffff;
  font-size: 15px;
}

.ops-command-center .ops-composer textarea::placeholder {
  color: #99a5a5;
}

.ops-command-center .ops-tool-button,
.ops-command-center .ops-plus,
.ops-command-center .surface-model-field select {
  border: 1px solid #3b474a;
  border-radius: 8px;
  background: #151a1b;
}

.ops-command-center .ops-tool-button {
  color: #e5ecea;
}

.ops-command-center .ops-plus {
  color: #f3d98a;
}

.ops-command-center .ops-composer .primary {
  min-height: 40px;
  border-radius: 8px;
  background: #d9e5df;
  color: #101515;
}

.ops-command-center .ops-project-line {
  color: #889493;
  font-size: 12px;
}

.ops-command-center .ops-image-panel {
  border-color: #354144;
  border-radius: 8px;
  background: #171d1f;
}

@media (max-width: 1120px) {
  .ops-command-head {
    grid-template-columns: 1fr;
  }

  .ops-command-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .ops-command-frame {
    grid-template-columns: 1fr;
  }

  .ops-session-rail {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  body.is-ops-mode:not(.is-resource-route) .platform-hero h2 {
    font-size: 30px;
  }

  .ops-command-head,
  .ops-chat-stage {
    padding: 14px;
  }

  .ops-command-stats,
  .ops-command-center .ops-chip-row,
  .ops-session-rail {
    grid-template-columns: 1fr;
  }

  .ops-command-frame {
    min-height: 0;
  }

  .ops-command-center .ops-message {
    width: 100%;
  }
}

body.is-ops-mode:not(.is-resource-route) .page-wrap {
  padding: 44px 24px 80px;
}

body.is-ops-mode:not(.is-resource-route) .platform-hero {
  width: min(980px, 100%);
  margin: 0 auto;
  padding: 0 0 26px;
  justify-items: center;
  text-align: center;
}

body.is-ops-mode:not(.is-resource-route) .platform-hero-copy {
  justify-items: center;
  gap: 14px;
}

body.is-ops-mode:not(.is-resource-route) .hero-kicker {
  color: #a9a9a9;
  font-size: 18px;
  font-weight: 500;
}

body.is-ops-mode:not(.is-resource-route) .platform-hero h2 {
  max-width: 980px;
  color: #f2f2f2;
  font-size: 46px;
  font-weight: 430;
  line-height: 1.16;
}

body.is-ops-mode:not(.is-resource-route) .hero-note {
  display: none;
}

body.is-ops-mode:not(.is-resource-route) .surface-tabs {
  gap: 4px;
  padding: 5px;
  border: 0;
  border-radius: 14px;
  background: #3a3a3a;
}

body.is-ops-mode:not(.is-resource-route) .surface-tab {
  min-height: 38px;
  border-radius: 10px;
  padding: 0 18px;
  color: #dcdcdc;
  font-size: 14px;
}

body.is-ops-mode:not(.is-resource-route) .surface-tab.is-active {
  background: #5c5c5c;
  color: #ffffff;
}

.ops-focus-home {
  width: min(840px, 100%) !important;
  margin: 0 auto;
}

.ops-focus-surface {
  display: grid;
  gap: 28px;
}

.ops-focus-home .ops-conversation {
  min-height: 160px;
  max-height: 360px;
  padding: 12px;
  border: 0;
  border-radius: 20px;
  background: #242424;
}

.ops-focus-home .ops-conversation[hidden] {
  display: none;
}

.ops-focus-home .ops-message {
  width: min(82%, 660px);
}

.ops-focus-home .ops-message p {
  border-color: #3a3a3a;
  border-radius: 14px;
  background: #2d2d2d;
  color: #eeeeee;
  font-size: 14px;
}

.ops-focus-home .ops-message.is-user p {
  background: #3c4a43;
}

.ops-focus-home .ops-composer {
  min-height: 172px;
  gap: 18px;
  padding: 20px;
  border: 0;
  border-radius: 24px;
  background: #272727;
}

.ops-focus-home .ops-composer textarea {
  min-height: 72px;
  padding: 0;
  color: #f6f6f6;
  font-size: 15px;
}

.ops-focus-home .ops-composer textarea::placeholder {
  color: #b7b7b7;
}

.ops-focus-home .ops-composer-footer {
  align-items: center;
}

.ops-focus-home .ops-left-tools,
.ops-focus-home .ops-right-tools {
  gap: 8px;
}

.ops-focus-home .ops-plus {
  width: 34px;
  min-width: 34px;
  min-height: 34px;
  border: 0;
  border-radius: 50%;
  background: #353535;
  color: #d8d8d8;
}

.ops-focus-home .ops-tool-button {
  min-height: 34px;
  border: 0;
  border-radius: 9px;
  background: #343434;
  color: #f2f2f2;
}

.ops-focus-home .surface-model-field select {
  width: 158px;
  min-height: 34px;
  border: 0;
  border-radius: 9px;
  background: #272727;
  color: #eeeeee;
}

.ops-focus-home .ops-composer .primary {
  min-height: 36px;
  border: 0;
  border-radius: 12px;
  padding: 0 18px;
  background: #d5dcd7;
  color: #171717;
}

.ops-focus-home .ops-project-line {
  color: #b0b0b0;
  font-size: 13px;
}

.ops-focus-home .ops-chip-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 6px 0 0;
}

.ops-focus-home .ops-chip-row button {
  min-height: 38px;
  border: 0;
  border-radius: 13px;
  padding: 0 16px;
  background: #3a3a3a;
  color: #f4f4f4;
  font-size: 14px;
  font-weight: 700;
}

.ops-focus-home .ops-chip-row button:hover {
  background: #4b4b4b;
  filter: none;
}

.ops-focus-home .ops-image-panel {
  border: 1px solid #3c3c3c;
  border-radius: 14px;
  background: #222222;
}

@media (max-width: 760px) {
  body.is-ops-mode:not(.is-resource-route) .page-wrap {
    padding: 24px 14px 56px;
  }

  body.is-ops-mode:not(.is-resource-route) .platform-hero h2 {
    font-size: 32px;
  }

  .ops-focus-home .ops-composer {
    border-radius: 18px;
  }

  .ops-focus-home .ops-composer-footer,
  .ops-focus-home .ops-left-tools,
  .ops-focus-home .ops-right-tools {
    flex-wrap: wrap;
  }

  .ops-focus-home .ops-right-tools,
  .ops-focus-home .surface-model-field,
  .ops-focus-home .surface-model-field select,
  .ops-focus-home .ops-composer .primary {
    width: 100%;
  }
}

/* Glass command theme */
:root {
  --bg: #050706;
  --surface: rgba(18, 22, 22, 0.72);
  --surface-soft: rgba(28, 34, 34, 0.7);
  --ink: #f5f8f6;
  --text: #dce5e1;
  --muted: #8c9995;
  --line: rgba(255, 255, 255, 0.11);
  --line-strong: rgba(255, 255, 255, 0.2);
  --accent: #13d882;
  --orange: #d0d9d5;
  --orange-deep: #ffffff;
  --orange-soft: rgba(19, 216, 130, 0.12);
  --danger: #ff685f;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.5);
  --glass-border: rgba(255, 255, 255, 0.14);
  --glass-highlight: rgba(255, 255, 255, 0.07);
  --success: #13d882;
  --warning: #e7d071;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  background:
    linear-gradient(115deg, rgba(19, 216, 130, 0.08) 0%, transparent 28%),
    linear-gradient(180deg, #080a09 0%, #050706 48%, #030404 100%);
}

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

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 82px 82px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.75), transparent 78%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(100deg, transparent 0 52%, rgba(255, 255, 255, 0.045) 52.2% 52.6%, transparent 52.8%),
    linear-gradient(160deg, transparent 0 62%, rgba(19, 216, 130, 0.08) 62.2% 62.6%, transparent 62.9%);
  opacity: 0.7;
}

button {
  border-color: var(--glass-border);
  background: rgba(23, 29, 29, 0.72);
  color: var(--ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

button:hover {
  border-color: rgba(19, 216, 130, 0.46);
  background: rgba(32, 42, 40, 0.86);
  filter: none;
  transform: translateY(-1px);
}

button.primary,
.mode-tabs .is-active {
  border-color: rgba(19, 216, 130, 0.62);
  background: linear-gradient(180deg, #18e18b 0%, #0aa864 100%);
  color: #03120b;
  box-shadow: 0 0 0 1px rgba(19, 216, 130, 0.12), 0 14px 34px rgba(19, 216, 130, 0.2);
}

input,
select,
textarea {
  border-color: rgba(255, 255, 255, 0.09);
  background: rgba(9, 12, 12, 0.62);
  color: var(--ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(19, 216, 130, 0.5);
  background: rgba(12, 17, 16, 0.86);
  box-shadow: 0 0 0 3px rgba(19, 216, 130, 0.09);
}

.topbar.sidebar-shell {
  width: 252px;
  margin: 18px 0 18px 18px;
  height: calc(100vh - 36px);
  border: 1px solid var(--glass-border);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 26%),
    rgba(10, 13, 13, 0.78);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(22px) saturate(1.18);
}

.topbar.sidebar-shell .brand-block {
  position: relative;
  padding: 4px 8px 18px;
  border-bottom-color: rgba(255, 255, 255, 0.09);
}

.topbar.sidebar-shell .brand-block::before {
  content: "WB";
  display: grid;
  width: 42px;
  height: 42px;
  margin-bottom: 12px;
  place-items: center;
  border: 1px solid rgba(19, 216, 130, 0.38);
  border-radius: 12px;
  background: rgba(19, 216, 130, 0.1);
  color: #effff7;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0;
  box-shadow: 0 0 36px rgba(19, 216, 130, 0.12);
}

.product-badge {
  border-color: rgba(19, 216, 130, 0.28);
  background: rgba(19, 216, 130, 0.08);
  color: #8bf0bd;
}

.topbar.sidebar-shell .brand-block h1 {
  color: #f7fbf8;
  font-size: 19px;
  font-weight: 780;
}

.topbar.sidebar-shell .brand-block p,
.nav-group > span {
  color: #7f8b87;
}

.sidebar-link {
  position: relative;
  min-height: 42px;
  padding-left: 34px;
  border-radius: 12px;
  color: #cbd5d1;
}

.sidebar-link::before {
  content: "";
  position: absolute;
  left: 13px;
  top: 50%;
  width: 7px;
  height: 7px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 50%;
  transform: translateY(-50%);
}

.sidebar-link.is-active,
.sidebar-link:hover {
  border-color: rgba(19, 216, 130, 0.24);
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
}

.sidebar-link.is-active::before {
  border-color: var(--success);
  background: var(--success);
  box-shadow: 0 0 16px rgba(19, 216, 130, 0.8);
}

.nav-group-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 10px;
}

.nav-mini-button {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 24px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #aeb8b4;
  font-size: 18px;
}

.nav-mini-button:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.image-dialog-group {
  min-height: 206px;
}

.image-home-sidebar-sessions {
  display: grid;
  gap: 7px;
  max-height: 308px;
  overflow: auto;
  padding-right: 2px;
}

.image-home-session-empty {
  padding: 7px 4px;
  color: #6f7a76;
  font-size: 12px;
}

.image-home-session-item {
  display: grid;
  gap: 3px;
  width: 100%;
  padding: 7px 8px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #f2f6f4;
  text-align: left;
}

.image-home-session-item strong,
.image-home-session-item span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.image-home-session-item strong {
  font-size: 13px;
  font-weight: 760;
}

.image-home-session-item span {
  color: #8d9894;
  font-size: 11px;
}

.image-home-session-item:hover,
.image-home-session-item.is-active {
  background: rgba(255, 255, 255, 0.08);
}

.workspace-topbar {
  top: 18px;
  width: calc(100vw - 306px);
  margin: 18px 18px 0 288px;
  grid-template-columns: minmax(128px, 190px) minmax(220px, 1fr) auto auto minmax(0, auto);
  border: 1px solid var(--glass-border);
  border-radius: 18px;
  background: rgba(7, 10, 10, 0.72);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(22px) saturate(1.12);
  overflow: hidden;
}

.page-wrap,
body.is-ops-mode:not(.is-resource-route) .page-wrap {
  width: calc(100vw - 288px);
  margin-left: 288px;
}

body.is-resource-route .page-wrap {
  width: calc(100vw - 252px);
  margin-left: 220px;
  padding: 16px 28px 80px;
}

body.is-resource-route .library-page-body {
  width: 100%;
}

.selected-product-pill,
.global-search-wrap input,
.global-search-results {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(8, 11, 11, 0.7);
}

.workspace-topbar .selected-product-pill {
  display: none;
}

.workspace-topbar .global-search-wrap {
  min-width: 180px;
}

.workspace-topbar .userbar {
  min-width: 0;
}

.workspace-topbar .userbar button {
  max-width: 100px;
  padding: 0 10px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.topbar-title span {
  color: #83a098;
}

.topbar-title h1 {
  color: #f8fbfa;
}

body.is-ops-mode:not(.is-resource-route) {
  background:
    linear-gradient(115deg, rgba(19, 216, 130, 0.13) 0%, transparent 30%),
    linear-gradient(180deg, #070908 0%, #050706 54%, #020303 100%);
}

body.is-ops-mode:not(.is-resource-route) .page-wrap {
  padding: 58px 34px 92px;
}

body.is-ops-mode:not(.is-resource-route) .platform-hero {
  position: relative;
  width: min(1120px, 100%);
  padding: 18px 0 34px;
}

body.is-ops-mode:not(.is-resource-route) .platform-hero::after {
  content: "";
  position: absolute;
  right: max(2vw, 12px);
  bottom: -168px;
  width: min(44vw, 560px);
  height: 260px;
  pointer-events: none;
  opacity: 0.78;
  background:
    linear-gradient(112deg, transparent 0 18%, rgba(255, 255, 255, 0.2) 18.2% 18.6%, transparent 19%),
    linear-gradient(112deg, transparent 0 30%, rgba(255, 255, 255, 0.16) 30.2% 30.7%, transparent 31%),
    linear-gradient(112deg, transparent 0 43%, rgba(19, 216, 130, 0.62) 43.2% 44.6%, transparent 45%),
    linear-gradient(112deg, transparent 0 57%, rgba(255, 255, 255, 0.14) 57.2% 57.8%, transparent 58%),
    linear-gradient(112deg, transparent 0 70%, rgba(255, 255, 255, 0.12) 70.2% 70.8%, transparent 71%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent);
  filter: drop-shadow(0 24px 42px rgba(19, 216, 130, 0.16));
  transform: perspective(760px) rotateX(58deg) rotateZ(-17deg);
}

body.is-ops-mode:not(.is-resource-route) .hero-kicker {
  color: #72eab2;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
}

body.is-ops-mode:not(.is-resource-route) .platform-hero h2 {
  max-width: 760px;
  color: #fbfffd;
  font-size: 54px;
  font-weight: 820;
  line-height: 1.04;
  text-shadow: 0 18px 48px rgba(0, 0, 0, 0.55);
}

body.is-ops-mode:not(.is-resource-route) .surface-tabs {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 20px 54px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px);
}

body.is-ops-mode:not(.is-resource-route) .surface-tab {
  border: 0;
  background: transparent;
  color: #aeb9b5;
}

body.is-ops-mode:not(.is-resource-route) .surface-tab.is-active {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.ops-focus-home {
  position: relative;
  width: min(980px, 100%) !important;
  margin-top: 8px;
}

.ops-focus-home::before {
  content: "";
  position: absolute;
  inset: -54px 0 -70px;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent 0 12%, rgba(255, 255, 255, 0.055) 12.1% 12.3%, transparent 12.6% 100%),
    linear-gradient(135deg, transparent 0 58%, rgba(19, 216, 130, 0.1) 58.2% 58.7%, transparent 59%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent);
  opacity: 0.9;
}

.ops-focus-surface {
  gap: 20px;
}

.ops-focus-surface {
  position: relative;
}

.ops-focus-surface.is-image-dragging::before {
  content: "";
  position: absolute;
  inset: -10px;
  z-index: 20;
  pointer-events: none;
  border: 2px dashed rgba(104, 235, 168, 0.82);
  border-radius: 24px;
  background:
    radial-gradient(circle at 50% 46%, rgba(104, 235, 168, 0.22), transparent 36%),
    rgba(4, 18, 13, 0.42);
  box-shadow: 0 0 44px rgba(19, 216, 130, 0.26);
}

.ops-focus-home .ops-composer,
.ops-focus-home .ops-conversation,
.panel-card,
.generated-section,
.idea-card,
.module-card,
.image-card,
.analysis-drawer,
.workspace-head,
.generation-progress,
.listing-copy-section,
.prompt-section,
.history-section {
  border: 1px solid var(--glass-border);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.025)),
    rgba(13, 18, 17, 0.74);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(18px) saturate(1.08);
}

.ops-focus-home .ops-composer {
  position: relative;
  min-height: 146px;
  padding: 16px 20px;
  border-radius: 22px;
  overflow: hidden;
}

.ops-focus-home .ops-composer.has-ops-image-panel {
  min-height: 360px;
  overflow: visible;
}

.ops-focus-home .ops-composer::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.16), transparent 22%),
    linear-gradient(180deg, transparent, rgba(19, 216, 130, 0.055));
  opacity: 0.72;
}

.ops-focus-home .ops-composer > * {
  position: relative;
}

.ops-focus-home .ops-composer textarea {
  min-height: 42px;
  font-size: 16px;
}

.ops-focus-home .ops-composer textarea::placeholder {
  color: #7f8b87;
}

.ops-focus-home .ops-tool-button,
.ops-focus-home .ops-plus,
.ops-focus-home .surface-model-field select {
  border: 1px solid rgba(255, 255, 255, 0.11);
  background: rgba(3, 6, 6, 0.62);
}

.ops-focus-home .ops-tool-button {
  min-height: 36px;
  padding: 0 14px;
  border-radius: 12px;
  color: #dce7e2;
}

.ops-focus-home .ops-plus {
  width: 36px;
  min-width: 36px;
  min-height: 36px;
  color: #7df0b5;
}

.ops-focus-home .ops-composer .primary {
  min-height: 38px;
  padding: 0 18px;
  border-radius: 12px;
}

.ops-focus-home .ops-project-line {
  color: #73807b;
}

.ops-focus-home .ops-chip-row button {
  min-height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 0 22px;
  background: rgba(255, 255, 255, 0.07);
  color: #e7efeb;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.ops-focus-home .ops-chip-row button:hover {
  border-color: rgba(19, 216, 130, 0.45);
  background: rgba(19, 216, 130, 0.12);
}

.ops-focus-home .ops-conversation {
  min-height: 430px;
  max-height: none;
  border-radius: 20px;
  overflow: auto;
}

.ops-focus-home .ops-conversation.is-empty {
  position: relative;
  overflow: hidden;
}

.ops-focus-home .ops-conversation.is-empty::before {
  content: "";
  position: absolute;
  inset: 20px;
  border-radius: 18px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.08), transparent 42%),
    linear-gradient(180deg, rgba(19, 216, 130, 0.1), transparent 58%);
  opacity: 0.38;
}

.ops-focus-home .ops-conversation.is-empty::after {
  content: "";
  position: absolute;
  left: 34px;
  top: 34px;
  width: min(620px, 72%);
  height: 138px;
  border-radius: 18px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.14) 0 42%, transparent 42% 100%) 0 0 / 100% 18px,
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 0 76%, transparent 76% 100%) 0 42px / 100% 14px,
    linear-gradient(90deg, rgba(19, 216, 130, 0.18) 0 55%, transparent 55% 100%) 0 84px / 100% 14px;
  background-repeat: no-repeat;
  opacity: 0.5;
}

.ops-focus-home .ops-message p {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(20, 27, 26, 0.86);
}

.ops-focus-home .ops-message.is-user p {
  border-color: rgba(19, 216, 130, 0.28);
  background: rgba(17, 72, 48, 0.74);
}

.ops-focus-home .ops-image-panel {
  max-height: min(64vh, 560px);
  overflow: auto;
  padding: 16px;
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(5, 9, 9, 0.58);
}

.ops-focus-home .ops-image-panel.has-ops-images {
  gap: 14px;
}

.ops-focus-home .ops-image-panel.has-ops-images .ops-image-preview {
  grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
  grid-auto-rows: 116px;
  min-height: 124px;
  max-height: 250px;
  overflow: auto;
  padding: 2px;
}

.ops-focus-home .ops-image-panel.has-ops-images .ops-image-thumb {
  height: 116px;
  min-height: 116px;
  border-color: rgba(104, 235, 168, 0.36);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.ops-focus-home .ops-image-panel.has-ops-images .ops-image-thumb img {
  height: 100%;
  aspect-ratio: auto;
}

.ops-focus-home .ops-image-panel.has-ops-images #opsImageAnalysisResult {
  min-height: 86px;
}

.ops-focus-home .ops-image-drop {
  border-color: rgba(104, 235, 168, 0.38);
  background: rgba(4, 20, 15, 0.54);
}

.ops-focus-home .ops-image-drop:hover {
  border-color: rgba(104, 235, 168, 0.78);
  background: rgba(10, 35, 26, 0.72);
}

.app-shell {
  grid-template-columns: minmax(330px, 392px) minmax(0, 1fr);
  gap: 18px;
}

.panel-card,
.analysis-drawer,
.workspace-head,
.generated-section,
.prompt-section,
.history-section,
.listing-copy-section {
  border-radius: 14px;
}

.panel-card {
  padding: 16px;
}

.workspace-head,
.generation-progress,
.listing-copy-section,
.prompt-section,
.generated-section,
.history-section {
  padding: 16px;
}

.file-drop .image-preview,
.self-fill-panel,
.reference-preview img,
.reference-thumb img,
.main-image-thumb {
  border-color: rgba(255, 255, 255, 0.11);
  background: rgba(7, 10, 10, 0.58);
}

.image-preview {
  border-color: rgba(19, 216, 130, 0.28);
}

.three-view-launch {
  border-top-color: rgba(255, 255, 255, 0.1);
}

.three-view-launch-kicker,
.eyebrow {
  color: #6ff0ad;
}

.mode-tabs button {
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.055);
}

.image-dock {
  border: 1px solid var(--glass-border);
  border-radius: 18px;
  background: rgba(7, 10, 10, 0.76);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(20px) saturate(1.12);
}

.library-page-body,
.history-dialog-body,
.verification-dialog form {
  border-color: var(--glass-border);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.025)),
    rgba(9, 13, 13, 0.9);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(20px);
}

.library-sidebar button,
.admin-view-tabs button,
.tabs button,
.image-number-picker label span {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.055);
}

.library-sidebar button.is-active,
.admin-view-tabs button.is-active,
.tabs button.is-active,
.image-number-picker input:checked + span {
  border-color: rgba(19, 216, 130, 0.58);
  background: rgba(19, 216, 130, 0.14);
  color: #eafff4;
}

@media (max-width: 1080px) {
  .topbar.sidebar-shell {
    width: 224px;
    margin-left: 12px;
  }

  .workspace-topbar {
    width: calc(100vw - 264px);
    margin-left: 252px;
  }

  .page-wrap,
  body.is-ops-mode:not(.is-resource-route) .page-wrap {
    width: calc(100vw - 252px);
    margin-left: 252px;
  }

  .library-list.is-creators {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .topbar.sidebar-shell {
    width: auto;
    height: auto;
    margin: 10px;
    border-radius: 16px;
  }

  .workspace-topbar {
    top: 0;
    width: auto;
    margin: 10px;
    border-radius: 16px;
    overflow: visible;
  }

  .workspace-topbar .global-search-wrap {
    min-width: 0;
  }

  .workspace-topbar .userbar {
    flex-wrap: wrap;
    gap: 6px;
  }

  .workspace-topbar #currentUser {
    width: 100%;
    max-width: 100%;
  }

  .workspace-topbar .userbar button {
    flex: 1 1 86px;
    max-width: none;
  }

  .page-wrap,
  body.is-ops-mode:not(.is-resource-route) .page-wrap {
    width: 100%;
    margin-left: 0;
    padding: 18px 14px 72px;
  }

  body.is-ops-mode:not(.is-resource-route) .platform-hero h2 {
    font-size: 36px;
  }

  body.is-ops-mode:not(.is-resource-route) .platform-hero::after {
    display: none;
  }

  .app-shell {
    grid-template-columns: 1fr;
  }
}

/* Denser daily-operations dashboard */
body.is-ops-mode:not(.is-resource-route) .platform-hero {
  width: min(1560px, calc(100vw - 340px));
  padding: 22px 0 28px;
}

body.is-ops-mode:not(.is-resource-route) .platform-hero h2 {
  max-width: 900px;
}

.ops-focus-home {
  width: min(1560px, calc(100vw - 340px)) !important;
}

.ops-dashboard-layout {
  display: grid;
  grid-template-columns: minmax(230px, 300px) minmax(600px, 1fr) minmax(240px, 310px);
  gap: 20px;
  align-items: stretch;
  min-height: clamp(560px, calc(100vh - 330px), 720px);
}

.ops-dashboard-panel {
  display: grid;
  align-content: start;
  gap: 14px;
  min-height: clamp(560px, calc(100vh - 330px), 720px);
  padding: 18px;
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02)),
    rgba(7, 11, 10, 0.72);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(18px) saturate(1.08);
}

.ops-panel-title {
  display: grid;
  gap: 4px;
}

.ops-panel-title span {
  color: #68eba8;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
}

.ops-panel-title strong {
  color: #f6fbf8;
  font-size: 18px;
  line-height: 1.2;
}

.ops-panel-title.compact strong {
  font-size: 15px;
}

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

.ops-metric-grid button {
  display: grid;
  justify-items: start;
  gap: 6px;
  min-height: 112px;
  padding: 13px;
  border-radius: 16px;
  text-align: left;
}

.ops-metric-grid button span,
.ops-metric-grid button small {
  color: #889690;
  font-size: 12px;
}

.ops-metric-grid button strong {
  color: #ffffff;
  font-size: 30px;
  line-height: 0.95;
}

.ops-metric-grid button:nth-child(4) strong {
  color: #7df0b5;
}

.ops-task-stack {
  display: grid;
  gap: 10px;
}

.ops-task-stack button {
  justify-content: flex-start;
  gap: 10px;
  min-height: 44px;
  border-radius: 14px;
  color: #dce8e3;
}

.ops-task-stack button span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #13d882;
  box-shadow: 0 0 14px rgba(19, 216, 130, 0.75);
}

.ops-project-card {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  padding: 15px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.055);
}

.ops-project-card div {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.ops-project-card small {
  color: #899791;
  font-size: 12px;
}

.ops-project-card strong {
  overflow: hidden;
  color: #f8fffb;
  font-size: 17px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ops-live-dot {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: none;
  color: #7df0b5;
  font-size: 12px;
  font-weight: 800;
}

.ops-live-dot::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #13d882;
  box-shadow: 0 0 14px rgba(19, 216, 130, 0.85);
}

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

.ops-resource-grid button {
  min-height: 48px;
  border-radius: 14px;
  font-weight: 800;
}

.ops-rhythm-card,
.ops-ai-card {
  display: grid;
  gap: 12px;
  padding: 15px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.055);
}

.ops-timeline {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 7px;
}

.ops-timeline span {
  height: 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.ops-timeline .is-done {
  background: rgba(19, 216, 130, 0.45);
}

.ops-timeline .is-active {
  background: #13d882;
  box-shadow: 0 0 18px rgba(19, 216, 130, 0.55);
}

.ops-rhythm-card p,
.ops-ai-card p {
  color: #a3b0ab;
  font-size: 12px;
  line-height: 1.6;
}

.ops-ai-card strong {
  color: #f5fbf8;
  font-size: 15px;
}

.ops-ai-card button {
  min-height: 38px;
  border-color: rgba(19, 216, 130, 0.35);
  color: #eafff4;
}

.ops-dashboard-layout .ops-focus-surface {
  min-width: 0;
  min-height: clamp(560px, calc(100vh - 330px), 720px);
  grid-template-rows: minmax(430px, 1fr) minmax(132px, 0.28fr) auto;
  gap: 14px;
}

.ops-dashboard-layout .ops-focus-surface.has-ops-image-panel {
  grid-template-rows: minmax(350px, 0.85fr) minmax(340px, auto) auto;
}

.ops-dashboard-layout .ops-focus-home .ops-chip-row {
  justify-content: center;
}

@media (max-width: 1500px) {
  .ops-dashboard-layout {
    grid-template-columns: 1fr;
  }

  .ops-dashboard-left {
    order: 2;
    min-height: 0;
    grid-template-columns: minmax(180px, 0.85fr) minmax(260px, 1fr);
  }

  .ops-dashboard-layout,
  .ops-dashboard-layout .ops-focus-surface,
  .ops-dashboard-panel {
    min-height: 0;
  }

  .ops-focus-surface {
    order: 1;
  }

  .ops-dashboard-right {
    order: 3;
    min-height: 0;
    grid-template-columns: minmax(220px, 1fr) minmax(220px, 1fr) minmax(240px, 1.1fr);
  }

  .ops-dashboard-left .ops-panel-title {
    grid-column: 1 / -1;
  }

  .ops-dashboard-right .ops-panel-title {
    grid-column: 1 / -1;
  }
}

@media (max-width: 980px) {
  .ops-dashboard-layout {
    grid-template-columns: 1fr;
  }

  .ops-dashboard-panel {
    min-height: 0;
  }

  .ops-dashboard-right {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .ops-dashboard-layout {
    gap: 14px;
  }

  .ops-metric-grid,
  .ops-resource-grid {
    grid-template-columns: 1fr 1fr;
  }
}

body.is-image-mode:not(.is-resource-route) {
  background: linear-gradient(180deg, #1a1a1a 0%, #171717 48%, #151515 100%);
}

body.is-image-mode:not(.is-resource-route) .workspace-topbar {
  display: none;
}

body.is-image-mode:not(.is-resource-route) .page-wrap {
  padding: 132px 24px 72px;
}

body.is-image-mode:not(.is-resource-route) .platform-hero {
  width: min(840px, 100%);
  padding: 0 0 28px;
}

body.is-image-mode:not(.is-resource-route) .platform-hero-copy {
  display: grid;
  justify-items: center;
  gap: 12px;
  text-align: center;
}

body.is-image-mode:not(.is-resource-route) .hero-kicker {
  color: #aaa;
  font-size: 20px;
  font-weight: 500;
}

body.is-image-mode:not(.is-resource-route) .platform-hero h2 {
  max-width: 760px;
  color: #f5f5f5;
  font-size: 52px;
  font-weight: 520;
  line-height: 1.08;
  text-shadow: none;
}

body.is-image-mode:not(.is-resource-route) .hero-note,
body.is-image-mode:not(.is-resource-route) .platform-hero-actions {
  display: none;
}

body.is-image-mode:not(.is-resource-route) .surface-tabs {
  border: 0;
  border-radius: 12px;
  background: #303030;
  box-shadow: none;
}

body.is-image-mode:not(.is-resource-route) .surface-tab {
  min-height: 44px;
  border: 0;
  background: transparent;
  color: #c9c9c9;
}

body.is-image-mode:not(.is-resource-route) .surface-tab.is-active {
  background: #5a5a5a;
  color: #fff;
}

.image-creation-home {
  display: grid;
  justify-items: center;
  gap: 26px;
  width: min(840px, 100%);
  margin: 0 auto;
}

.image-creation-home[hidden] {
  display: none !important;
}

.image-home-composer {
  position: relative;
  display: grid;
  gap: 14px;
  width: min(840px, 100%);
  min-height: 196px;
  padding: 22px 22px 16px;
  border-radius: 24px;
  background: #202020;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.36);
}

.image-home-composer.is-dragging {
  outline: 2px dashed rgba(219, 255, 48, 0.82);
  outline-offset: 7px;
  box-shadow: 0 0 0 1px rgba(219, 255, 48, 0.24), 0 34px 80px rgba(0, 0, 0, 0.48);
}

.image-home-composer textarea {
  min-height: 92px;
  border: 0;
  background: transparent;
  color: #f3f3f3;
  font-size: 16px;
  line-height: 1.6;
  resize: none;
}

.image-home-composer textarea::placeholder {
  color: #a8a8a8;
}

.image-home-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: end;
}

.image-home-controls,
.image-home-actions,
.image-home-categories {
  display: flex;
  align-items: center;
  gap: 8px;
}

.image-home-icon,
.image-home-pill,
.image-home-step,
.image-home-count,
.image-home-categories button {
  display: inline-grid;
  place-items: center;
  min-height: 36px;
  border: 0;
  border-radius: 10px;
  background: #303030;
  color: #f0f0f0;
  font-size: 13px;
  font-weight: 700;
}

.image-home-icon,
.image-home-step {
  width: 36px;
  padding: 0;
  font-size: 20px;
}

.image-home-pill {
  padding: 0 12px;
}

.image-home-pill.is-model {
  color: #ecff2f;
}

.image-home-count {
  min-width: 56px;
  color: #d8d8d8;
}

.image-home-resource {
  display: grid;
  align-content: center;
  gap: 9px;
  width: 86px;
  height: 82px;
  padding: 12px;
  border: 0;
  border-radius: 14px;
  background: #292929;
  color: #fff;
  text-align: left;
}

.image-home-resource span {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border: 1px solid #666;
  border-radius: 50%;
  font-size: 20px;
  font-weight: 400;
}

.image-home-resource strong {
  display: block;
  max-width: 100%;
  font-size: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.image-home-go {
  width: 126px;
  height: 82px;
  border: 0;
  border-radius: 14px;
  background: #dbff30;
  color: #0f0f0f;
  font-weight: 900;
  box-shadow: 0 7px 0 #050505, 0 20px 34px rgba(0, 0, 0, 0.42);
}

.image-home-project {
  color: #909090;
  font-size: 13px;
}

.image-home-reference-strip {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-top: 4px;
}

.image-home-reference-strip[hidden] {
  display: none !important;
}

.image-home-reference {
  position: relative;
  flex: 0 0 82px;
  width: 82px;
  height: 82px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 13px;
  background: #111;
}

.image-home-reference img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-home-reference button {
  position: absolute;
  top: 5px;
  right: 5px;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
  font-size: 16px;
}

.image-home-popover {
  position: absolute;
  z-index: 25;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  background: rgba(38, 38, 38, 0.96);
  box-shadow: 0 22px 58px rgba(0, 0, 0, 0.52);
  backdrop-filter: blur(18px);
}

.image-home-popover[hidden] {
  display: none !important;
}

.image-home-aspect-popover {
  left: 166px;
  bottom: 86px;
  display: grid;
  grid-template-columns: repeat(2, 72px);
  gap: 6px;
  padding: 14px;
}

.image-home-aspect-popover span {
  grid-column: 1 / -1;
  color: #9a9a9a;
  font-size: 12px;
  font-weight: 800;
}

.image-home-aspect-popover button,
.image-home-plus-menu button {
  min-height: 34px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #ededed;
  font-weight: 750;
  text-align: left;
}

.image-home-aspect-popover button.is-selected,
.image-home-aspect-popover button:hover,
.image-home-plus-menu button:hover {
  background: rgba(255, 255, 255, 0.09);
}

.image-home-aspect-popover button.is-selected::after {
  content: "✓";
  float: right;
  color: #dfff30;
}

.image-home-plus-menu {
  left: 18px;
  bottom: 82px;
  display: grid;
  grid-template-columns: 208px 318px;
  gap: 8px;
  padding: 8px;
}

.image-home-plus-left {
  display: grid;
  align-content: start;
  gap: 5px;
}

.image-home-plus-skills {
  display: grid;
  gap: 5px;
  max-height: 250px;
  overflow: auto;
}

.image-home-plus-skills button {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
}

.image-home-plus-skills strong {
  color: #fff;
  font-size: 14px;
}

.image-home-plus-skills span {
  color: #9ca3a0;
  font-size: 12px;
  font-weight: 500;
}

.image-home-conversation {
  width: min(840px, 100%);
}

.image-home-conversation[hidden] {
  display: none !important;
}

.image-home-chat-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  background: rgba(31, 31, 31, 0.92);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.34);
}

.image-home-chat-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.image-home-chat-head span {
  color: #dfff30;
  font-size: 12px;
  font-weight: 900;
}

.image-home-chat-head h3 {
  margin: 3px 0 0;
  color: #fff;
  font-size: 20px;
}

.image-home-chat-head strong {
  flex: 0 0 auto;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(19, 216, 130, 0.14);
  color: #6df0ad;
  font-size: 12px;
}

.image-home-chat-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.image-home-chat-chips span {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #d7ddda;
  font-size: 12px;
}

.image-home-chat-prompt {
  max-height: 180px;
  margin: 0;
  padding: 14px;
  overflow: auto;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.32);
  color: #dce4e0;
  font-family: inherit;
  font-size: 13px;
  line-height: 1.55;
  white-space: pre-wrap;
}

.image-home-message-list {
  display: grid;
  gap: 10px;
}

.image-home-message {
  display: grid;
  gap: 8px;
  max-width: 86%;
  padding: 11px 13px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.07);
}

.image-home-message.is-user {
  justify-self: end;
  background: rgba(19, 216, 130, 0.16);
}

.image-home-message strong {
  color: #dfff30;
  font-size: 12px;
}

.image-home-message p {
  margin: 0;
  color: #f4f6f5;
  font-size: 13px;
  line-height: 1.55;
}

.image-home-message-attachments {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.image-home-message-attachments img {
  width: 58px;
  height: 58px;
  border-radius: 10px;
  object-fit: cover;
}

.image-home-output-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
  gap: 10px;
}

.image-home-output-grid:empty {
  display: none;
}

.image-home-output-grid a {
  display: block;
  overflow: hidden;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.25);
}

.image-home-output-grid img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.image-home-chat-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.image-home-generate-action {
  min-height: 38px;
  padding: 0 18px;
  border: 0;
  border-radius: 11px;
  background: #dfff30;
  color: #111;
  font-weight: 900;
}

.image-home-generate-action:disabled {
  opacity: 0.6;
  cursor: wait;
}

.image-home-categories {
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 0;
}

.image-home-categories button {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 12px;
}

.image-home-categories button.is-active {
  background: #737373;
  color: #fff;
}

.image-home-grid {
  display: grid;
  grid-template-columns: repeat(5, 156px);
  justify-content: center;
  gap: 12px;
  width: min(840px, 100%);
}

.image-home-card {
  position: relative;
  display: grid;
  align-content: start;
  gap: 10px;
  width: 156px;
  height: 228px;
  min-height: 228px;
  padding: 17px 12px;
  border: 0;
  border-radius: 14px;
  overflow: hidden;
  background-color: #252525;
  background-position: center;
  background-size: cover;
  color: #fff;
  text-align: center;
  box-shadow: 0 20px 42px rgba(0, 0, 0, 0.22);
}

.image-home-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.5), transparent 34%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.28), transparent 44%);
}

.image-home-card span {
  position: relative;
  z-index: 1;
  font-size: 16px;
  font-weight: 900;
  line-height: 1.18;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.75);
}

.image-home-card small {
  display: none;
}

.image-home-card em {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 1;
  display: grid;
  place-items: center;
  min-height: 40px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: #151515;
  font-size: 14px;
  font-style: normal;
  font-weight: 900;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}

.image-home-card:hover,
.image-home-card.is-active {
  transform: translateY(-2px);
  box-shadow: 0 0 0 2px rgba(219, 255, 48, 0.55), 0 24px 48px rgba(0, 0, 0, 0.3);
}

@media (max-width: 1180px) {
  .image-home-grid {
    grid-template-columns: repeat(4, 156px);
  }
}

@media (max-width: 820px) {
  body.is-image-mode:not(.is-resource-route) .platform-hero h2 {
    font-size: 38px;
  }

  .image-home-toolbar {
    grid-template-columns: 1fr;
  }

  .image-home-actions {
    justify-content: stretch;
  }

  .image-home-resource,
  .image-home-go {
    flex: 1 1 0;
  }

  .image-home-grid {
    grid-template-columns: repeat(2, 156px);
  }
}

/* NexTide-style image creation workspace, enlarged for the local desktop layout. */
body.is-image-mode:not(.is-resource-route) .page-wrap {
  padding: 64px 26px 72px;
}

body.is-image-mode:not(.is-resource-route) .platform-hero,
.image-creation-home,
.image-home-composer,
.image-home-conversation,
.image-home-categories,
.image-home-grid {
  width: min(1120px, calc(100vw - 340px));
}

body.is-image-mode:not(.is-resource-route) .platform-hero {
  margin: 0 auto;
  padding: 0 0 24px;
}

body.is-image-mode:not(.is-resource-route) .platform-hero-copy {
  gap: 10px;
}

body.is-image-mode:not(.is-resource-route) .hero-kicker {
  font-size: 19px;
}

body.is-image-mode:not(.is-resource-route) .platform-hero h2 {
  max-width: 980px;
  font-size: clamp(46px, 4.1vw, 68px);
  line-height: 1.02;
}

body.is-image-mode:not(.is-resource-route) .surface-tabs {
  transform: scale(1.04);
  transform-origin: center;
}

.image-creation-home {
  gap: 22px;
}

.image-home-composer {
  min-height: 238px;
  padding: 28px 28px 18px;
  border-radius: 26px;
}

.image-home-composer textarea {
  min-height: 112px;
  font-size: 17px;
}

.image-home-controls,
.image-home-actions,
.image-home-categories {
  gap: 10px;
}

.image-home-icon,
.image-home-step {
  width: 40px;
  min-height: 40px;
}

.image-home-pill,
.image-home-count,
.image-home-categories button {
  min-height: 40px;
  font-size: 14px;
}

.image-home-pill {
  padding: 0 14px;
}

.image-home-resource {
  width: 94px;
  height: 90px;
  border-radius: 16px;
}

.image-home-go {
  width: 138px;
  height: 90px;
  border-radius: 16px;
  font-size: 15px;
}

.image-home-reference {
  flex-basis: 96px;
  width: 96px;
  height: 96px;
}

.image-home-aspect-popover,
.image-home-quality-popover {
  bottom: 98px;
  display: grid;
  grid-template-columns: repeat(2, 82px);
  gap: 7px;
  padding: 16px;
}

.image-home-aspect-popover {
  left: 184px;
}

.image-home-quality-popover {
  left: 326px;
}

.image-home-aspect-popover span,
.image-home-quality-popover span {
  grid-column: 1 / -1;
  color: #9a9a9a;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0;
}

.image-home-aspect-popover button,
.image-home-quality-popover button,
.image-home-plus-menu button {
  min-height: 38px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #ededed;
  font-size: 14px;
  font-weight: 760;
  text-align: left;
}

.image-home-aspect-popover button.is-selected,
.image-home-quality-popover button.is-selected,
.image-home-aspect-popover button:hover,
.image-home-quality-popover button:hover,
.image-home-plus-menu button:hover {
  background: rgba(255, 255, 255, 0.1);
}

.image-home-aspect-popover button.is-selected::after,
.image-home-quality-popover button.is-selected::after {
  content: "✓";
  float: right;
  color: #dfff30;
}

.image-home-plus-menu {
  left: 18px;
  bottom: 98px;
  grid-template-columns: 224px;
  gap: 0;
  width: 240px;
  padding: 8px;
}

.image-home-plus-left {
  display: grid;
  gap: 6px;
}

.image-home-plus-skills {
  position: absolute;
  left: calc(100% + 10px);
  bottom: 0;
  display: none;
  width: 360px;
  max-height: 360px;
  gap: 6px;
  overflow: auto;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  background: rgba(38, 38, 38, 0.98);
  box-shadow: 0 22px 58px rgba(0, 0, 0, 0.52);
}

.image-home-plus-menu.is-showing-skills .image-home-plus-skills {
  display: grid;
}

.image-home-plus-skills button {
  min-height: 68px;
  padding: 12px 14px;
}

.image-home-categories {
  justify-content: center;
  flex-wrap: wrap;
}

.image-home-categories button {
  padding: 0 18px;
  border-radius: 13px;
}

.image-home-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.image-home-card {
  width: 100%;
  height: 286px;
  min-height: 286px;
  border-radius: 18px;
}

.image-home-card span {
  font-size: 18px;
}

.image-home-card em {
  left: 14px;
  right: 14px;
  bottom: 14px;
  min-height: 46px;
  font-size: 15px;
}

.image-home-conversation {
  margin-top: 4px;
}

.image-home-chat-card {
  padding: 22px;
  border-radius: 22px;
}

.image-home-chat-head h3 {
  font-size: 24px;
}

.image-home-chat-prompt {
  max-height: 220px;
  font-size: 14px;
}

.image-home-output-grid {
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
}

.image-home-picker {
  position: fixed;
  inset: 0;
  z-index: 2100;
  display: grid;
  place-items: center;
}

.image-home-picker[hidden] {
  display: none !important;
}

.image-home-picker-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(7px);
}

.image-home-picker-panel {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 18px 28px;
  width: min(1180px, calc(100vw - 120px));
  height: min(800px, calc(100vh - 90px));
  padding: 26px;
  overflow: hidden;
  border-radius: 24px;
  background: #343434;
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.62);
}

.image-home-picker-close {
  position: absolute;
  top: 24px;
  right: 24px;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: #262b2f;
  color: #f5f5f5;
  font-size: 24px;
}

.image-home-picker-panel h2 {
  grid-column: 1 / -1;
  margin: 0;
  color: #fff;
  font-size: 24px;
  font-weight: 850;
  text-align: center;
}

.image-home-picker-folders {
  grid-row: 2 / 4;
  display: grid;
  align-content: start;
  gap: 12px;
  padding-top: 8px;
}

.image-home-picker-folders[hidden] {
  display: none !important;
}

.image-home-picker-folders button {
  min-height: 52px;
  padding: 0 18px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #d8d8d8;
  font-size: 15px;
  font-weight: 850;
  text-align: left;
}

.image-home-picker-folders button:hover,
.image-home-picker-folders button.is-active {
  background: #272c30;
  color: #fff;
}

.image-home-picker-search {
  grid-column: 2;
}

.image-home-picker-search input {
  width: 100%;
  min-height: 54px;
  padding: 0 20px;
  border: 0;
  border-radius: 0;
  background: #454545;
  color: #fff;
  font-size: 16px;
}

.image-home-picker-list {
  grid-column: 2;
  min-height: 0;
  overflow: auto;
}

.image-home-picker-list.is-products {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.image-home-picker.is-product-picker .image-home-picker-panel {
  grid-template-columns: 1fr;
  width: min(960px, calc(100vw - 120px));
  height: min(720px, calc(100vh - 90px));
}

.image-home-picker.is-product-picker .image-home-picker-search,
.image-home-picker.is-product-picker .image-home-picker-list {
  grid-column: 1;
}

.image-home-picker-list.is-creators {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(154px, 1fr));
  align-content: start;
  gap: 18px;
  padding-right: 12px;
}

.image-home-picker-empty {
  grid-column: 1 / -1;
  display: grid;
  place-items: center;
  min-height: 220px;
  color: #b8b8b8;
}

.image-home-avatar-option,
.image-home-product-option {
  position: relative;
  overflow: hidden;
  border: 0;
  border-radius: 14px;
  background: #242424;
  color: #fff;
  text-align: left;
}

.image-home-avatar-option {
  aspect-ratio: 3 / 4.35;
  min-height: 224px;
}

.image-home-avatar-option img,
.image-home-product-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-home-avatar-option::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 48%, rgba(0, 0, 0, 0.78));
}

.image-home-avatar-option > span {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  z-index: 1;
  display: grid;
  gap: 4px;
}

.image-home-avatar-option strong,
.image-home-product-option strong {
  color: #fff;
  font-size: 16px;
  font-weight: 900;
}

.image-home-avatar-option small,
.image-home-product-option small {
  color: #dcdcdc;
  font-size: 12px;
  font-weight: 700;
}

.image-home-avatar-option:hover,
.image-home-product-option:hover {
  box-shadow: 0 0 0 2px #dfff30;
}

.image-home-avatar-option.is-create {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 16px;
  border: 1px dashed rgba(255, 255, 255, 0.16);
  background: #24292d;
  text-align: center;
}

.image-home-avatar-option.is-create::after {
  display: none;
}

.image-home-avatar-option.is-create span {
  position: static;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  color: #eee;
  font-size: 32px;
}

.image-home-product-option {
  display: grid;
  gap: 10px;
  padding: 12px;
}

.image-home-product-media {
  display: block;
  height: 190px;
  overflow: hidden;
  border-radius: 12px;
  background: #111;
}

@media (max-width: 1280px) {
  body.is-image-mode:not(.is-resource-route) .platform-hero,
  .image-creation-home,
  .image-home-composer,
  .image-home-conversation,
  .image-home-categories,
  .image-home-grid {
    width: min(980px, calc(100vw - 300px));
  }

  .image-home-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 960px) {
  body.is-image-mode:not(.is-resource-route) .platform-hero,
  .image-creation-home,
  .image-home-composer,
  .image-home-conversation,
  .image-home-categories,
  .image-home-grid {
    width: min(100%, calc(100vw - 36px));
  }

  body.is-image-mode:not(.is-resource-route) .page-wrap {
    padding: 48px 18px 56px;
  }

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

  .image-home-picker-panel {
    grid-template-columns: 1fr;
    width: calc(100vw - 28px);
    height: calc(100vh - 36px);
  }

  .image-home-picker-folders,
  .image-home-picker-search,
  .image-home-picker-list {
    grid-column: 1;
  }
}
