﻿:root {
  --bg: #fbfbfd;
  --panel: rgba(255,255,255,.94);
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --line: rgba(38,34,28,.09);
  --soft: #f5f5f7;
  --black: #1d1d1f;
  --blue: #0071e3;
  --accent: #8a7d6c;
  --accent-soft: #f1eee8;
  --shadow: 0 18px 46px rgba(0,0,0,.075);
  --soft-shadow: 0 14px 34px rgba(0,0,0,.055);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html, body {
  margin: 0;
  min-height: 100%;
}

body {
  color: var(--ink);
  background: radial-gradient(circle at 50% 8%, rgba(255,255,255,.9), transparent 30%), linear-gradient(180deg, #fbfbfd, #f5f5f7);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", "Microsoft YaHei", sans-serif;
}

body::before { display: none; }
button, textarea, select, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .45; }
h1, h2, p { margin: 0; }









.app-header {
  width: min(1540px, calc(100vw - 280px));
  min-height: 74px;
  margin: 20px auto 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 950;
}

.brand-copy { display: grid; gap: 2px; line-height: 1; }
.brand-copy strong { font-size: 28px; font-weight: 950; letter-spacing: -.07em; }
.brand-copy small { display: none; }
.brand img { width: 42px; height: 42px; border-radius: 50%; }

.account-strip, .author-strip, .header-tools, .main-actions, .module-tabs {
  display: flex;
  align-items: center;
  gap: 10px;
}

.account-strip { justify-self: center; font-weight: 800; color: var(--muted); }
.account-strip span { white-space: nowrap; }
.author-strip { justify-self: end; max-width: 260px; color: var(--muted); font-size: 12px; font-weight: 700; line-height: 1.4; }

.simple-shell {
  width: min(1540px, calc(100vw - 280px));
  margin: 0 auto 22px;
  display: grid;
  grid-template-columns: 340px minmax(660px, 1fr);
  gap: 14px;
  min-height: calc(100vh - 126px);
}

.prompt-panel, .result-panel > section, .toolbar {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--panel);
  box-shadow: var(--soft-shadow);
  backdrop-filter: blur(8px);
}

.prompt-panel {
  align-self: start;
  max-height: calc(100vh - 126px);
  overflow: auto;
  background: #fff;
}

.prompt-panel::before {
  content: "上传 · 参数 · 生成";
  display: block;
  padding: 18px 18px 0;
  color: #8a7d6c;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.panel-section {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-bottom: 1px solid rgba(38,34,28,.08);
}

.panel-note { color: #62594f; line-height: 1.55; font-size: 14px; }
.section-title { display: flex; align-items: center; gap: 8px; }
.section-title span { width: 28px; height: 28px; border-radius: 999px; background: #f1f1f4; color: #6e6e73; display: grid; place-items: center; font-size: 12px; font-weight: 900; box-shadow: inset 0 0 0 1px rgba(0,0,0,.035); }
.section-title h2 { font-size: 24px; line-height: 1; letter-spacing: -.05em; }
.section-title.action-title { justify-content: space-between; flex-wrap: wrap; }
.section-title.action-title h2 { margin-right: auto; }

label { display: grid; gap: 8px; color: #4d463f; font-size: 13px; font-weight: 800; }
textarea, select, input {
  width: 100%;
  min-height: 44px;
  padding: 12px 14px;
  border: 1px solid rgba(0,0,0,.035);
  border-radius: 16px;
  background: #f5f5f7;
  color: var(--ink);
  outline: none;
}
textarea { resize: vertical; line-height: 1.7; }
textarea:focus, select:focus, input:focus { border-color: #c7c7cc; box-shadow: 0 0 0 3px rgba(0,0,0,.045); }

.button {
  display: inline-grid;
  place-items: center;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid rgba(0,0,0,.05);
  border-radius: 15px;
  background: #fff;
  color: var(--ink);
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(0,0,0,.04);
  transition: transform .16s ease, box-shadow .16s ease;
}
.button:hover:not(:disabled) { transform: translateY(-1px); }
.button.primary { border: 0; border-radius: 22px; background: linear-gradient(135deg,#1d1d1f,#3a3a3c); color: #fff; box-shadow: 0 18px 42px rgba(29,29,31,.16), inset 0 0 0 1px rgba(255,255,255,.08); }
.button.secondary { border-color: rgba(0,0,0,.05); }
.button.ghost { border-color: transparent; background: transparent; color: var(--muted); box-shadow: none; }
.compact-button { min-height: 34px; padding: 0 12px; border-radius: 999px; font-size: 12px; }

.main-actions { position: sticky; bottom: 0; z-index: 4; align-items: stretch; flex-direction: column; padding: 16px 18px 18px; border-top: 1px solid rgba(38,34,28,.08); background: linear-gradient(180deg, rgba(255,255,255,.72), #fff 34%); backdrop-filter: blur(12px); }
.main-actions .button { width: 100%; }

.image-upload, .detail-upload {
  position: relative;
  min-height: 170px;
  display: grid;
  place-items: center;
  gap: 6px;
  overflow: hidden;
  padding: 14px;
  border: 1.5px dashed rgba(126,116,104,.46);
  border-radius: 28px;
  background: #fff;
  text-align: center;
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}
.image-upload::before, .detail-upload::before { content: "+"; width: 64px; height: 64px; border-radius: 22px; background: #f2f2f7; color: #1d1d1f; display: grid; place-items: center; font-size: 34px; font-weight: 400; box-shadow: inset 0 0 0 1px rgba(0,0,0,.045); }
.image-upload:hover, .detail-upload:hover { border-color: rgba(29,29,31,.55); box-shadow: 0 12px 28px rgba(0,0,0,.06); transform: translateY(-1px); }
.image-upload:has(+ .detail-image-grid .detail-thumb), .detail-upload:has(+ .detail-image-grid .detail-thumb) { min-height: 74px; padding: 10px 12px; }
.image-upload input, .detail-upload input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.image-upload span, .detail-upload span { font-size: 18px; font-weight: 950; }
.image-upload small, .detail-upload small { color: #8a7d6c; }
.image-upload img { display: none; position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.image-upload.has-image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255,255,255,.84), rgba(255,255,255,.58)); }
.image-upload.has-image img { display: block; }

.mode-switch { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.mode-switch button { min-height: 40px; border: 1px solid rgba(0,0,0,.035); border-radius: 15px; background: #f5f5f7; color: #6e6e73; font-weight: 900; transition: border-color .16s ease, background .16s ease, color .16s ease, box-shadow .16s ease; }
.mode-switch button.active { background: #fff; color: #1d1d1f; border-color: #c7c7cc; box-shadow: inset 0 0 0 1px rgba(0,0,0,.035), 0 8px 18px rgba(0,0,0,.045); }
.mode-switch button.active::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 999px; background: var(--black); vertical-align: middle; }

.option-label { margin: 2px 0 -4px; color: var(--muted); font-size: 13px; font-weight: 900; }
.print-position-switch { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.print-craft-switch, .print-source-switch { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.print-background-switch { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.print-only .mode-switch { gap: 8px; }
.print-only .mode-switch button { min-height: 36px; padding: 8px 10px; }
.advanced-options { display: grid; gap: 12px; border: 1px solid rgba(38,34,28,.08); border-radius: 24px; padding: 16px; background: #fff; }
.advanced-options summary { cursor: pointer; color: var(--ink); font-weight: 900; }
.advanced-options[open] summary { margin-bottom: 2px; }
.range-control { gap: 10px; }
.range-control > span { display: flex; align-items: center; justify-content: space-between; }
.range-control strong { font-size: 13px; }
.range-control input[type="range"] { width: 100%; accent-color: var(--black); }
.mood-switch { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mood-switch.compact button { min-height: 36px; font-size: 12px; }

.detail-image-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.detail-thumb { position: relative; overflow: hidden; aspect-ratio: 1 / 1; border: 1px solid rgba(38,34,28,.08); border-radius: 16px; background: #fbfaf7; }
.detail-thumb img { width: 100%; height: 100%; object-fit: cover; }
.detail-thumb span { position: absolute; left: 6px; bottom: 6px; display: inline-grid; place-items: center; min-width: 24px; height: 24px; border-radius: 8px; background: rgba(255,255,255,.86); font-size: 12px; font-weight: 900; }
.thumb-delete-button { position: absolute; right: 6px; bottom: 6px; z-index: 2; display: inline-grid; place-items: center; width: 24px; height: 24px; border: 1px solid rgba(255, 255, 255, .8); border-radius: 8px; background: rgba(18, 18, 18, .86); color: #fff; font-size: 18px; line-height: 1; font-weight: 900; cursor: pointer; }
.thumb-delete-button:hover { background: #b42318; }
.reference-thumb.is-subject { border-color: var(--black); box-shadow: inset 0 0 0 2px var(--black); }
.subject-picker { position: absolute; right: 6px; bottom: 6px; display: inline-flex; align-items: center; gap: 4px; min-height: 24px; padding: 0 7px; border-radius: 8px; background: rgba(255,255,255,.9); color: var(--black); font-size: 12px; font-weight: 900; }
.subject-picker input { width: 13px; height: 13px; margin: 0; }

.result-panel { display: grid; grid-template-rows: 230px minmax(360px, 1fr); align-self: start; align-content: start; gap: 14px; min-width: 0; }
.toolbar { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: start; gap: 20px; padding: 18px 22px; background: #fff; }
.toolbar::after { display: none; }
.eyebrow { margin-bottom: 8px; color: #8a7d6c; font-size: 12px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
h1 { font-size: 26px; line-height: 1; letter-spacing: -.05em; }
.summary-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; overflow: hidden; background: rgba(38,34,28,.08); }
.summary-grid article { display: grid; gap: 8px; padding: 18px; background: #fff; }
.summary-grid span { color: var(--muted); font-size: 12px; }
.summary-grid strong { font-size: 20px; }

.module-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 14px; padding: 0; border: 0; background: transparent; box-shadow: none; }
.module-group { display: contents; }
.module-group > span, .module-group__hint { display: none; }
.module-group__buttons { display: contents; }
.module-tab { height: 48px; border: 1px solid rgba(0,0,0,.04); background: #f7f7f9; border-radius: 16px; padding: 0 14px; color: #6e6e73; font-weight: 850; text-align: center; font-size: 15px; box-shadow: none; transition: transform .16s ease, box-shadow .16s ease; }
.module-tab:hover:not(.active) { transform: translateY(-1px); box-shadow: 0 8px 18px rgba(0,0,0,.04); }
.module-tab.active { background: #fff; color: #1d1d1f; border-color: #c7c7cc; box-shadow: inset 0 0 0 1px rgba(0,0,0,.035), 0 8px 18px rgba(0,0,0,.04); }

.output-section { padding: 18px; background: #fff; min-height: 0; }
.task-panel { display: grid; gap: 12px; margin-bottom: 14px; padding: 14px; border: 1px solid rgba(38,34,28,.08); border-radius: 24px; background: #fff; }
.task-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.task-panel-head strong { font-size: 15px; }
.task-panel-head span { color: var(--muted); font-size: 12px; font-weight: 800; }
.task-list { display: grid; gap: 8px; }
.task-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid rgba(38,34,28,.08); border-radius: 16px; background: #f7f7f9; }
.task-item div:first-child { display: grid; gap: 4px; min-width: 0; }
.task-item strong, .task-item span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.task-item span { color: var(--muted); font-size: 12px; }
.task-status { color: var(--muted); font-size: 12px; font-weight: 900; }
.task-item.running .task-status { color: var(--blue); }
.task-item.done .task-status { color: #1f7a3d; }
.task-item.failed .task-status { max-width: 380px; color: #b42318; }

.result-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.history-load-more { grid-column: 1 / -1; justify-self: center; min-width: 220px; min-height: 42px; }
.task-filter-bar { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.task-filter-buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.task-filter-bar button { min-height: 38px; padding: 0 16px; border: 1px solid rgba(0,0,0,.04); border-radius: 14px; background: #f7f7f9; color: var(--muted); font-weight: 900; }
.task-filter-bar button.active { background: #fff; color: #1d1d1f; border-color: #c7c7cc; box-shadow: inset 0 0 0 1px rgba(0,0,0,.035), 0 8px 18px rgba(0,0,0,.04); }
.task-filter-bar .task-history-button { margin-left: auto; color: var(--black); }
.generation-task-card { grid-column: 1 / -1; display: grid; gap: 10px; padding: 14px; border: 1px solid rgba(38,34,28,.08); border-radius: 24px; background: #fff; }
.generation-task-head { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0; border: 0; background: transparent; color: var(--ink); text-align: left; }
.generation-task-head > div:first-child { display: grid; gap: 5px; min-width: 0; }
.generation-task-head strong { font-size: 16px; }
.generation-task-head span { color: var(--muted); font-size: 12px; }
.task-output-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.suite-group-card { padding: 16px; }
.suite-group-head { cursor: default; }
.suite-output-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); align-items: start; }
.suite-output-grid .result-card { min-width: 0; }
.generation-task-card.collapsed .task-output-grid { display: none; }

.empty-state { grid-column: 1 / -1; height: 166px; border: 1px dashed rgba(120,120,128,.42); border-radius: 24px; background: linear-gradient(135deg,#f8f8fb,#fff); display: grid; place-items: center; text-align: center; color: #62594f; padding: 28px; font-weight: 700; }
.empty-state strong { display: block; color: #34302a; font-size: 22px; margin-bottom: 8px; font-weight: 900; }
.empty-state span { max-width: 520px; line-height: 1.7; }
.loading-state { align-content: center; gap: 14px; min-height: 140px; font-weight: 800; }
.loading-spinner { width: 38px; height: 38px; border: 4px solid #ded9cf; border-top-color: var(--black); border-radius: 50%; animation: loading-spin .8s linear infinite; }
@keyframes loading-spin { to { transform: rotate(360deg); } }

.result-card { display: grid; gap: 10px; padding: 10px; border: 1px solid rgba(38,34,28,.08); border-radius: 22px; background: #fff; box-shadow: 0 10px 24px rgba(81,63,34,.05); }
.result-card canvas, .result-card img { width: 100%; aspect-ratio: var(--ratio, 1 / 1); object-fit: cover; border-radius: 16px; background: #f5f5f7; }
.card-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--muted); font-size: 12px; font-weight: 800; }
.text-link { border: 0; background: transparent; color: var(--black); font-weight: 900; }
.history-card .history-info { display: grid; gap: 4px; color: var(--muted); font-size: 12px; }
.history-card .history-info strong { color: var(--ink); font-size: 13px; }

.modal-backdrop { position: fixed; inset: 0; z-index: 30; display: grid; place-items: center; padding: 20px; background: rgba(0,0,0,.26); backdrop-filter: blur(8px); }
.modal-panel { width: min(520px, 100%); padding: 20px; border-radius: 28px; background: rgba(255,255,255,.96); box-shadow: 0 28px 70px rgba(0,0,0,.18); }
.modal-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 18px; }
.icon-button { width: 34px; height: 34px; border: 1px solid rgba(0,0,0,.05); border-radius: 999px; background: #fff; color: var(--ink); font-size: 20px; }
.api-form { display: grid; gap: 12px; }
.modal-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.api-status { min-height: 20px; margin-top: 10px; color: var(--muted); font-size: 13px; font-weight: 800; }
.api-status.success { color: #1f7a3d; }
.api-status.error { color: #b42318; }

.member-modal {
  width: min(920px, calc(100vw - 40px));
  padding: 24px;
  border: 1px solid rgba(255,255,255,.78);
  border-radius: 34px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 34px 90px rgba(0,0,0,.2);
}
.member-modal__head {
  margin-bottom: 20px;
}
.member-modal__head h2 {
  margin: 4px 0 8px;
  color: #1d1d1f;
  font-size: 34px;
  line-height: 1;
  letter-spacing: -.06em;
}
.member-modal__head span {
  color: #86868b;
  font-size: 13px;
  font-weight: 800;
}
.member-modal__body {
  display: grid;
  grid-template-columns: minmax(280px, .9fr) minmax(360px, 1.1fr);
  gap: 16px;
  align-items: stretch;
}
.member-login-card,
.member-plan-card,
.member-modal__footer {
  border: 1px solid rgba(29,29,31,.075);
  border-radius: 26px;
  background: #f7f7f9;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.72);
}
.member-login-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  background: linear-gradient(180deg,#fff,#f7f7f9);
}
.member-login-title {
  display: grid;
  gap: 5px;
}
.member-login-title strong {
  color: #1d1d1f;
  font-size: 20px;
  letter-spacing: -.03em;
}
.member-login-title small {
  color: #86868b;
  font-size: 12px;
  font-weight: 800;
}
.member-login-form label {
  color: #6e6e73;
  font-size: 12px;
  font-weight: 900;
}
.member-login-form input {
  margin-top: 7px;
  min-height: 44px;
  background: #fff;
}
.cloud-base-field {
  display: none !important;
}
.member-modal__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 0;
}
.member-modal__actions .button.primary {
  grid-column: 1 / -1;
}
.member-plan-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.member-plan-card {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 18px;
}
.member-plan-card.pro {
  background: linear-gradient(145deg,#111,#2f2f33);
  color: #fff;
  box-shadow: 0 22px 46px rgba(0,0,0,.18), inset 0 0 0 1px rgba(255,255,255,.12);
}
.member-plan-card__top {
  display: grid;
  gap: 8px;
}
.member-plan-card__top span {
  width: max-content;
  padding: 6px 10px;
  border-radius: 999px;
  background: #fff;
  color: #1d1d1f;
  font-size: 11px;
  font-weight: 950;
}
.member-plan-card.pro .member-plan-card__top span {
  background: rgba(255,255,255,.14);
  color: #fff;
}
.member-plan-card__top strong {
  font-size: 22px;
  line-height: 1.05;
  letter-spacing: -.05em;
}
.member-plan-card p {
  margin: 0;
  color: #6e6e73;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.65;
}
.member-plan-card.pro p {
  color: rgba(255,255,255,.72);
}
.member-plan-card ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.member-plan-card li {
  color: #1d1d1f;
  font-size: 13px;
  font-weight: 900;
}
.member-plan-card.pro li {
  color: #fff;
}
.member-plan-card li::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 9px;
  border-radius: 50%;
  background: #1d1d1f;
  vertical-align: middle;
}
.member-plan-card.pro li::before {
  background: #fff;
}
.member-modal__footer {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-top: 16px;
  padding: 14px 16px;
  background: #fff;
}
.member-modal__footer strong {
  color: #1d1d1f;
  font-size: 14px;
}
.member-modal__footer span {
  color: #86868b;
  font-size: 12px;
  font-weight: 800;
}
@media (max-width: 820px) {
  .member-modal__body,
  .member-plan-grid {
    grid-template-columns: 1fr;
  }
  .member-modal__footer {
    display: grid;
  }
}

.startup-mask { position: fixed; inset: 0; z-index: 9999; display: grid; place-items: center; background: radial-gradient(circle at 50% 28%, rgba(255,255,255,1), transparent 32%), linear-gradient(180deg,#fbfbfd,#f1f1f4); transition: opacity .75s ease; animation: launchFade .75s ease forwards; animation-delay: 2.75s; }
.startup-mask::before { content: ""; position: absolute; width: 760px; height: 360px; border-radius: 50%; top: 18%; left: 50%; transform: translateX(-50%); background: radial-gradient(circle, rgba(255,255,255,.95), rgba(0,113,227,.045), transparent 70%); filter: blur(18px); animation: launchBreath 5s ease-in-out infinite; }
.startup-mask.is-hidden { opacity: 0; pointer-events: none; }
.startup-mask__card { position: relative; z-index: 2; display: grid; justify-items: center; gap: 0; padding: 0; border: 0; background: transparent; box-shadow: none; text-align: center; animation: launchFadeUp 1.2s cubic-bezier(.2,.8,.2,1) both; }
.startup-mask__dot { display: none; }
.startup-mask__copy { display: grid; gap: 0; }
.startup-mask__kicker { order: 2; margin-bottom: 30px; color: #6e6e73; font-size: 15px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.startup-mask__copy strong { order: 1; margin-bottom: 18px; font-size: 72px; line-height: 1; letter-spacing: -.085em; font-weight: 950; animation: launchLetter 1.8s ease both; }
.startup-mask__copy small { order: 3; margin-bottom: 46px; color: #515154; font-size: 15px; font-weight: 700; letter-spacing: .08em; }
.startup-mask__progress { width: 360px; height: 2px; overflow: hidden; border-radius: 999px; background: rgba(0,0,0,.09); }
.startup-mask__progress span { display: block; width: 0; height: 100%; border-radius: inherit; background: #1d1d1f; animation: launchLoad 2.7s ease-in-out forwards; }
.startup-mask::after { content: "AI IMAGE · COMMERCE"; position: absolute; bottom: 38px; left: 0; right: 0; text-align: center; color: #a1a1a6; font-size: 12px; letter-spacing: .06em; }
@keyframes launchFadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes launchLetter { from { letter-spacing: -.12em; filter: blur(6px); opacity: .4; } to { letter-spacing: -.085em; filter: blur(0); opacity: 1; } }
@keyframes launchBreath { 0%,100% { opacity: .72; transform: translateX(-50%) scale(1); } 50% { opacity: 1; transform: translateX(-50%) scale(1.06); } }
@keyframes launchLoad { 0% { width: 0; } 38% { width: 42%; } 72% { width: 78%; } 100% { width: 100%; } }
@keyframes launchFade { to { opacity: 0; transform: scale(1.01); pointer-events: none; } }
@keyframes startupPulse { 0%,100% { transform: scale(1); opacity: 1; } 50% { transform: scale(.82); opacity: .72; } }

.print-help { margin: -2px 0 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.print-material-block { display: grid; gap: 10px; }
.print-material-block[hidden], #printBrandTextBlock[hidden] { display: none; }
.print-only .advanced-options { background: #fff; }
.product-name-title { justify-content: space-between; align-items: center; }
.photo-enhance-toggle { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; cursor: pointer; user-select: none; color: var(--muted); font-size: 12px; font-weight: 800; }
.photo-enhance-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.photo-enhance-toggle span { width: 38px; height: 22px; border-radius: 999px; background: #e8e8ed; border: 1px solid rgba(0,0,0,.06); position: relative; transition: background .18s ease, border-color .18s ease; }
.photo-enhance-toggle span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.18); transition: transform .18s ease; }
.photo-enhance-toggle input:checked + span { background: var(--black); border-color: var(--black); }
.photo-enhance-toggle input:checked + span::after { transform: translateX(16px); }
.photo-enhance-toggle strong { font-size: 12px; white-space: nowrap; }
.suite-fixed-toggle { justify-content: flex-start; width: fit-content; margin-top: 4px; }
.suite-toggle-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 4px; }
.suite-toggle-row .suite-fixed-toggle { margin-top: 0; }
.suite-plan { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 12px; border: 1px solid rgba(38,34,28,.08); border-radius: 18px; background: #f7f7f9; color: var(--muted); font-size: 12px; }
.suite-plan strong { grid-column: 1 / -1; color: var(--ink); font-size: 13px; }
.suite-plan span { padding: 8px 10px; border-radius: 12px; background: #fff; border: 1px solid rgba(38,34,28,.08); }

.module-group-commerce { align-items: flex-start; }

@media (min-width: 1241px) {
  .app-header::before {
    content: "";
    justify-self: center;
    grid-column: 2;
    width: 188px;
    height: 48px;
    border-radius: 999px;
    background: rgba(238,234,226,.56);
    border: 1px solid rgba(255,255,255,.78);
  }
  .account-strip { grid-column: 3; }
}

@media (max-width: 1240px) {
  .app-header, .simple-shell { width: calc(100vw - 36px); }
  .simple-shell { grid-template-columns: 340px 1fr; }
}

@media (max-width: 860px) {
  body { overflow: auto; }
  .app-header { grid-template-columns: 1fr; height: auto; padding: 14px; }
  .simple-shell { grid-template-columns: 1fr; }
  .result-panel { grid-template-rows: auto auto; }
  .module-tabs { grid-template-columns: 1fr 1fr; }
  .result-grid { grid-template-columns: 1fr; }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  min-height: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 14% 0%, rgba(255, 255, 255, .96), transparent 30%),
    radial-gradient(circle at 86% 8%, rgba(207, 184, 145, .32), transparent 32%),
    linear-gradient(135deg, #fbfaf8 0%, #f0eee9 50%, #f8f7f4 100%);
  font-family: Inter, "Microsoft YaHei", "PingFang SC", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.56) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.56) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(circle at 50% 10%, #000, transparent 76%);
}

button, textarea, select, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .45; }
h1, h2, p { margin: 0; }

.app-header {
  position: sticky;
  top: 0;
  z-index: 10;
  min-height: 78px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 18px;
  padding: 0 30px;
  border-bottom: 1px solid rgba(255, 255, 255, .78);
  background: rgba(255, 255, 255, .72);
  box-shadow: 0 12px 34px rgba(22, 22, 22, .05);
  backdrop-filter: blur(24px) saturate(150%);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 900;
}

.brand-copy {
  display: grid;
  gap: 2px;
  line-height: 1.1;
}

.brand-copy strong {
  font-size: 17px;
  font-weight: 900;
}

.brand-copy small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.brand img {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  padding: 3px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(18, 18, 18, .10);
}

.account-strip, .author-strip, .header-tools, .main-actions, .module-tabs {
  display: flex;
  align-items: center;
  gap: 10px;
}

.account-strip {
  font-weight: 800;
  color: var(--muted);
}

.account-strip span {
  white-space: nowrap;
}

.author-strip {
  justify-self: end;
  max-width: 280px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  opacity: .82;
}

.module-tabs {
  align-self: start;
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, .82);
  border-radius: 24px;
  background: rgba(255, 255, 255, .76);
  box-shadow: var(--soft-shadow);
  backdrop-filter: blur(18px);
}

.module-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.module-group > span {
  min-width: 68px;
  color: #8a8174;
  font-size: 12px;
  font-weight: 800;
}

.module-tab {
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid rgba(20, 20, 20, .08);
  border-radius: 999px;
  background: linear-gradient(180deg, #fff, #f7f6f3);
  color: #5f594f;
  font-size: 13px;
  font-weight: 800;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease, background .16s ease;
}

.module-tab:hover:not(.active) {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(20, 20, 20, .06);
}

.module-tab.active {
  border-color: rgba(17,17,17,.92);
  background: linear-gradient(135deg, #111, #383028);
  color: #fff;
  box-shadow: 0 12px 28px rgba(0, 0, 0, .18);
}


.button {
  display: inline-grid;
  place-items: center;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 14px;
  background: linear-gradient(180deg, #fff, #f7f6f3);
  color: var(--ink);
  font-weight: 800;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease, background .16s ease;
}

.button:hover:not(:disabled) {
  transform: translateY(-1px);
}

.button.primary {
  background: linear-gradient(135deg, #111111, #33271b 56%, #8d6a3e);
  color: #fff;
  box-shadow: 0 16px 34px rgba(0, 0, 0, .20);
}

.button.secondary {
  border-color: var(--line);
}

.button.ghost {
  border-color: transparent;
  background: transparent;
  color: var(--muted);
}

.compact-button {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 12px;
}

.simple-shell {
  display: grid;
  grid-template-columns: 390px minmax(0, 1fr);
  gap: 24px;
  padding: 24px;
}

.prompt-panel, .result-panel > section, .toolbar {
  border: 1px solid rgba(255, 255, 255, .74);
  border-radius: 28px;
  background: rgba(255, 255, 255, .78);
  box-shadow: var(--soft-shadow);
  backdrop-filter: blur(22px) saturate(140%);
}

.prompt-panel {
  position: sticky;
  top: 102px;
  align-self: start;
  max-height: calc(100vh - 126px);
  overflow: auto;
  box-shadow: var(--shadow);
  scrollbar-width: thin;
}

.panel-section {
  display: grid;
  gap: 14px;
  padding: 20px;
  border-bottom: 1px solid rgba(20, 20, 20, .08);
}

.panel-note {
  color: var(--muted);
  line-height: 1.7;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-title span {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 26px;
  border-radius: 7px;
  background: var(--soft);
  color: #615d55;
  font-size: 12px;
  font-weight: 900;
}

.section-title h2 { font-size: 18px; }
.section-title.action-title {
  justify-content: space-between;
  flex-wrap: wrap;
}

.section-title.action-title h2 {
  margin-right: auto;
}

label {
  display: grid;
  gap: 8px;
  color: #4c4943;
  font-size: 13px;
  font-weight: 600;
}

textarea, select, input {
  width: 100%;
  min-height: 44px;
  padding: 11px 12px;
  border: 1px solid rgba(20, 20, 20, .10);
  border-radius: 14px;
  background: rgba(255, 255, 255, .82);
  color: var(--ink);
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.82);
}

textarea {
  resize: vertical;
  line-height: 1.7;
}

textarea:focus, select:focus, input:focus {
  border-color: #9b8f7a;
  box-shadow: 0 0 0 3px rgba(155, 143, 122, .15);
}


.main-actions {
  position: sticky;
  bottom: 0;
  z-index: 4;
  align-items: stretch;
  flex-direction: column;
  padding: 16px 18px 18px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,.72), #fff 34%);
  backdrop-filter: blur(12px);
}

.main-actions .button {
  width: 100%;
}

.upload-stack {
  display: grid;
  gap: 12px;
}

.image-upload {
  position: relative;
  min-height: 128px;
  display: grid;
  place-items: center;
  gap: 6px;
  overflow: hidden;
  padding: 14px;
  border: 1px dashed rgba(154, 116, 69, .38);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255,255,255,.94), rgba(248,246,241,.88));
  text-align: center;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.86);
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.image-upload::before {
  content: "+";
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 24px;
  font-weight: 700;
}

.image-upload:hover {
  border-color: var(--accent);
  box-shadow: 0 10px 22px rgba(141, 95, 47, .10);
  transform: translateY(-1px);
}

.image-upload:has(+ .detail-image-grid .detail-thumb) {
  min-height: 64px;
  padding: 10px 12px;
}

.image-upload input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.image-upload span,
.image-upload small {
  position: relative;
  z-index: 2;
}

.image-upload span {
  font-weight: 900;
}

.image-upload small {
  color: var(--muted);
}

.image-upload img {
  display: none;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-upload.has-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,.84), rgba(255,255,255,.58));
}

.image-upload.has-image img {
  display: block;
}

.detail-upload {
  position: relative;
  min-height: 118px;
  display: grid;
  place-items: center;
  gap: 6px;
  padding: 14px;
  border: 1px dashed rgba(154, 116, 69, .38);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255,255,255,.94), rgba(248,246,241,.88));
  text-align: center;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.86);
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.detail-upload::before {
  content: "+";
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 24px;
  font-weight: 700;
}

.detail-upload:hover {
  border-color: var(--accent);
  box-shadow: 0 10px 22px rgba(141, 95, 47, .10);
  transform: translateY(-1px);
}

.detail-upload:has(+ .detail-image-grid .detail-thumb) {
  min-height: 62px;
  padding: 10px 12px;
}

.detail-upload input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.detail-upload span {
  font-weight: 900;
}

.detail-upload small {
  color: var(--muted);
}

.mode-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.mode-switch button {
  position: relative;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  font-weight: 900;
  transition: border-color .16s ease, background .16s ease, color .16s ease, box-shadow .16s ease;
}

.mode-switch button.active {
  border-color: var(--black);
  background: #f7f6f2;
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--black);
}

.mode-switch button.active::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 7px;
  border-radius: 999px;
  background: var(--black);
  vertical-align: middle;
}

.option-label {
  margin: 2px 0 -4px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.print-position-switch {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.print-craft-switch {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.print-source-switch {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.print-background-switch {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.print-only .mode-switch {
  gap: 8px;
}

.print-only .mode-switch button {
  min-height: 36px;
  padding: 8px 10px;
}

.advanced-options {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fbfaf8;
}

.advanced-options summary {
  cursor: pointer;
  color: var(--ink);
  font-weight: 900;
}

.advanced-options[open] summary {
  margin-bottom: 2px;
}

.range-control {
  gap: 10px;
}

.range-control > span {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.range-control strong {
  font-size: 13px;
}

.range-control input[type="range"] {
  width: 100%;
  accent-color: var(--black);
}

.mood-switch {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mood-switch.compact button {
  min-height: 36px;
  font-size: 12px;
}


.detail-image-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.detail-thumb {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fbfaf7;
}

.detail-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-thumb span {
  position: absolute;
  left: 6px;
  bottom: 6px;
  display: inline-grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  border-radius: 6px;
  background: rgba(255,255,255,.86);
  font-size: 12px;
  font-weight: 900;
}

.thumb-delete-button {
  position: absolute;
  right: 6px;
  bottom: 6px;
  z-index: 2;
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 1px solid rgba(255, 255, 255, .8);
  border-radius: 6px;
  background: rgba(18, 18, 18, .86);
  color: #fff;
  font-size: 18px;
  line-height: 1;
  font-weight: 900;
  cursor: pointer;
}

.thumb-delete-button:hover {
  background: #b42318;
}

.reference-thumb.is-subject {
  border-color: var(--black);
  box-shadow: inset 0 0 0 2px var(--black);
}

.subject-picker {
  position: absolute;
  right: 6px;
  bottom: 6px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 24px;
  padding: 0 7px;
  border-radius: 6px;
  background: rgba(255,255,255,.9);
  color: var(--black);
  font-size: 12px;
  font-weight: 900;
}

.subject-picker input {
  width: 13px;
  height: 13px;
  margin: 0;
}

.result-panel {
  display: grid;
  align-self: start;
  align-content: start;
  gap: 16px;
  min-width: 0;
}

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px;
  overflow: hidden;
  position: relative;
}

.toolbar::after {
  content: "";
  position: absolute;
  right: 28px;
  top: -48px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(196, 170, 126, .28), transparent 66%);
  pointer-events: none;
}

.eyebrow {
  margin-bottom: 8px;
  color: #81796b;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

h1 {
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.05;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  background: var(--line);
}

.summary-grid article {
  display: grid;
  gap: 8px;
  padding: 18px;
  background: #fff;
}

.summary-grid span {
  color: var(--muted);
  font-size: 12px;
}

.summary-grid strong {
  font-size: 20px;
}

.output-section {
  padding: 18px;
  min-height: 560px;
}

.task-panel {
  display: grid;
  gap: 12px;
  margin-bottom: 14px;
  padding: 16px;
  border: 1px solid rgba(38,34,28,.08);
  border-radius: 24px;
  background: linear-gradient(135deg, #fff, #f8f8fb);
  box-shadow: 0 12px 30px rgba(0,0,0,.05);
}

.task-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.task-panel-head strong {
  color: #1d1d1f;
  font-size: 17px;
  font-weight: 950;
  letter-spacing: -.03em;
}

.task-panel-head span {
  color: #8a7d6c;
  font-size: 12px;
  font-weight: 900;
}

.task-list {
  display: grid;
  gap: 8px;
}

.task-item,
.task-empty {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(0,0,0,.04);
  border-radius: 16px;
  background: rgba(255,255,255,.86);
  box-shadow: 0 8px 18px rgba(0,0,0,.035);
}

.task-empty {
  grid-template-columns: 1fr;
  min-height: 74px;
  color: #766d62;
  text-align: center;
}

.task-item div:first-child,
.task-empty {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.task-item strong,
.task-item span,
.task-empty strong,
.task-empty span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.task-item span,
.task-empty span {
  color: var(--muted);
  font-size: 12px;
}

.task-status {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.task-item.running .task-status {
  color: var(--blue);
}

.task-item.done .task-status {
  color: #1f7a3d;
}

.task-item.failed .task-status {
  max-width: 380px;
  color: #b42318;
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.history-load-more {
  grid-column: 1 / -1;
  justify-self: center;
  min-width: 220px;
  min-height: 42px;
}

.task-filter-bar {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
}

.task-filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.task-filter-bar button {
  min-height: 40px;
  padding: 0 18px;
  border: 1px solid rgba(0,0,0,.04);
  border-radius: 14px;
  background: #f7f7f9;
  color: #6e6e73;
  font-weight: 900;
  box-shadow: none;
}

.task-filter-bar button.active {
  background: #fff;
  color: #1d1d1f;
  border-color: #c7c7cc;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.035),0 8px 18px rgba(0,0,0,.04);
}

.task-filter-bar .task-history-button {
  margin-left: auto;
  color: #1d1d1f;
}

.generation-task-card {
  grid-column: 1 / -1;
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(38,34,28,.08);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(0,0,0,.05);
}

.generation-task-head {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  text-align: left;
}

.generation-task-head > div:first-child {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.generation-task-head strong {
  font-size: 16px;
}

.generation-task-head span {
  color: var(--muted);
  font-size: 12px;
}

.task-output-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}


.suite-group-card {
  padding: 16px;
}

.suite-group-head {
  cursor: default;
}

.suite-output-grid {
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  align-items: start;
}

.suite-output-grid .result-card {
  min-width: 0;
}
.generation-task-card.collapsed .task-output-grid {
  display: none;
}

.empty-state {
  grid-column: 1 / -1;
  display: grid;
  place-items: center;
  gap: 10px;
  min-height: 320px;
  border: 1px solid rgba(255,255,255,.76);
  border-radius: 28px;
  background:
    radial-gradient(circle at 50% 0%, rgba(202, 178, 137, .34), transparent 46%),
    linear-gradient(135deg, rgba(255,255,255,.92), rgba(243,241,236,.78));
  color: var(--muted);
  text-align: center;
  padding: 34px;
  font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.92);
}

.empty-state strong {
  color: var(--ink);
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -.02em;
}

.empty-state span {
  max-width: 520px;
  line-height: 1.7;
}

.loading-state {
  align-content: center;
  gap: 14px;
  min-height: 140px;
  font-weight: 800;
}

.loading-spinner {
  width: 38px;
  height: 38px;
  border: 4px solid #ded9cf;
  border-top-color: var(--black);
  border-radius: 50%;
  animation: loading-spin .8s linear infinite;
}

@keyframes loading-spin {
  to {
    transform: rotate(360deg);
  }
}

.result-card {
  display: grid;
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(20, 20, 20, .08);
  border-radius: 22px;
  background: rgba(255, 255, 255, .86);
  box-shadow: 0 14px 34px rgba(24, 22, 18, .08);
  box-shadow: var(--soft-shadow);
  transition: transform .16s ease, box-shadow .16s ease;
}

.result-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(40, 32, 20, .12);
}

.result-card canvas {
  width: 100%;
  aspect-ratio: var(--ratio, 1 / 1);
  border-radius: 7px;
  background: #f4f1ea;
  cursor: zoom-in;
}

.placeholder-card {
  min-width: 0;
}

.placeholder-body {
  width: 100%;
  aspect-ratio: var(--ratio, 1 / 1);
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  border-radius: 7px;
  background: #fbfaf7;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.placeholder-card.failed .placeholder-body {
  padding: 18px;
  color: #b42318;
  text-align: center;
  line-height: 1.6;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
}

.history-card img {
  width: 100%;
  aspect-ratio: var(--ratio, 1 / 1);
  object-fit: cover;
  border-radius: 7px;
  background: #f4f1ea;
}

.history-info {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.text-link {
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid rgba(72, 107, 141, .20);
  border-radius: 999px;
  background: rgba(72, 107, 141, .08);
  color: var(--blue);
  font-weight: 800;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(20, 20, 20, .38);
}

.modal-panel {
  width: min(560px, 100%);
  display: grid;
  gap: 18px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.modal-head h2 {
  font-size: 24px;
}

.icon-button {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-size: 26px;
  line-height: 1;
}

.api-form {
  display: grid;
  gap: 14px;
}

.api-status {
  min-height: 22px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.6;
}

.api-status.success {
  color: #1f7a3d;
}

.api-status.error {
  color: #b42318;
}

.api-status.pending {
  color: var(--blue);
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.image-preview {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 14px;
  padding: 18px;
  background: rgba(20, 20, 20, .88);
}

.image-preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #fff;
}

.image-preview-head strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.image-preview img {
  align-self: center;
  justify-self: center;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  background: #fff;
  border-radius: 8px;
}

@media (max-width: 1050px) {
  .simple-shell {
    grid-template-columns: 1fr;
  }
  .prompt-panel {
    position: static;
    max-height: none;
  }
}

@media (max-width: 720px) {
  .app-header, .toolbar {
    align-items: flex-start;
    flex-direction: column;
  }
  .module-tabs {
    width: 100%;
  }
  .module-tab {
    flex: 1;
  }
  .account-strip,
  .author-strip,
  .header-tools {
    width: 100%;
    flex-wrap: wrap;
  }
  .button {
    width: 100%;
  }
  .modal-actions {
    flex-direction: column;
  }
  .simple-shell {
    padding: 14px;
  }
  .summary-grid, .result-grid {
    grid-template-columns: 1fr;
  }
  .task-output-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .task-item {
    grid-template-columns: 1fr;
  }
  .generation-task-head {
    align-items: flex-start;
    flex-direction: column;
  }
  .task-panel-head {
    align-items: flex-start;
    flex-direction: column;
  }
}



.print-step-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .68);
}

.print-step-head {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
}

.print-step-head span {
  width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: var(--black);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.print-step-head strong {
  font-size: 14px;
}

.print-help {
  margin: -2px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.print-material-block {
  display: grid;
  gap: 10px;
}

.print-material-block[hidden],
#printBrandTextBlock[hidden] {
  display: none;
}

.print-only .advanced-options {
  background: rgba(247, 248, 250, .72);
}

.product-name-title {
  justify-content: space-between;
  align-items: center;
}

.photo-enhance-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  cursor: pointer;
  user-select: none;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.photo-enhance-toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.photo-enhance-toggle span {
  width: 38px;
  height: 22px;
  border-radius: 999px;
  background: #e8e3d8;
  border: 1px solid var(--line);
  position: relative;
  transition: background .18s ease, border-color .18s ease;
}

.photo-enhance-toggle span::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .18);
  transition: transform .18s ease;
}

.photo-enhance-toggle input:checked + span {
  background: var(--black);
  border-color: var(--black);
}

.photo-enhance-toggle input:checked + span::after {
  transform: translateX(16px);
}

.photo-enhance-toggle strong {
  font-size: 12px;
  white-space: nowrap;
}


.suite-fixed-toggle {
  justify-content: flex-start;
  width: 100%;
  min-width: 0;
  margin-top: 4px;
}

.suite-toggle-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  align-items: center;
  margin-top: 4px;
}

.suite-toggle-row .suite-fixed-toggle {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  margin-top: 0;
}
.suite-plan {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(247, 248, 250, .72);
  color: var(--muted);
  font-size: 12px;
}

.suite-plan strong {
  grid-column: 1 / -1;
  color: var(--ink);
  font-size: 13px;
}

.suite-plan span {
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .72);
  border: 1px solid var(--line);
}


.startup-mask {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 18%, rgba(255,255,255,.98), transparent 28%),
    radial-gradient(circle at 72% 18%, rgba(198, 168, 120, .30), transparent 36%),
    linear-gradient(135deg, #faf9f6, #eeece7 58%, #f8f7f4);
  transition: opacity .28s ease;
}

.startup-mask.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.startup-mask__card {
  position: relative;
  min-width: 360px;
  display: grid;
  justify-items: center;
  gap: 18px;
  padding: 42px 44px;
  border: 1px solid rgba(255, 255, 255, .78);
  border-radius: 34px;
  background: rgba(255, 255, 255, .70);
  box-shadow: 0 30px 90px rgba(32, 28, 22, .14);
  backdrop-filter: blur(26px) saturate(150%);
  text-align: center;
}

.startup-mask__dot {
  width: 48px;
  height: 48px;
  border-radius: 18px;
  background: linear-gradient(135deg, #111, #8d6a3e);
  box-shadow: 0 18px 40px rgba(40, 32, 20, .18), 0 0 0 12px rgba(154, 116, 69, .08);
  animation: startupPulse 1.35s ease-in-out infinite;
}

.startup-mask__copy {
  display: grid;
  gap: 6px;
}

.startup-mask__kicker {
  color: var(--accent);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.startup-mask__copy strong {
  font-size: 38px;
  line-height: 1;
  letter-spacing: -.04em;
}

.startup-mask__copy small {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.startup-mask__progress {
  width: 210px;
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(20,20,20,.08);
}

.startup-mask__progress span {
  display: block;
  width: 42%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #111, #a98250);
  animation: startupProgress 1.2s ease-in-out infinite;
}

@keyframes startupProgress {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(260%); }
}

@keyframes startupPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(.82); opacity: .72; }
}

.module-group-commerce {
  align-items: flex-start;
}

.module-group__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  flex: 1 1 0;
}

.module-group__hint {
  margin-left: 76px;
  color: #8a8174;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
}



.compact-note {
  margin-top: -4px;
  font-size: 12px;
  line-height: 1.5;
}

/* Reference UI final pass: match the provided luxury launch/workspace mockups. */
body { background: radial-gradient(circle at 50% 8%, rgba(255,255,255,.9), transparent 30%), linear-gradient(180deg,#fbfbfd,#f5f5f7); color: #1d1d1f; font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", "Microsoft YaHei", sans-serif; }
body::before { display: none; }
/* Scheme C top navigation: brand/tools first row, category second row, modules below workspace. */
.app-header {
  position: relative;
  top: auto;
  width: min(1540px, calc(100vw - 280px));
  min-height: 0;
  margin: 22px auto 14px;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  align-items: center;
  gap: 14px 18px;
  padding: 16px 18px 14px;
  border: 1px solid rgba(38,34,28,.09);
  border-radius: 28px;
  background: rgba(255,255,255,.92);
  box-shadow: 0 14px 34px rgba(0,0,0,.055);
  backdrop-filter: blur(8px);
}
.app-header .brand {
  grid-column: 1;
  grid-row: 1;
}
.app-header .author-strip {
  grid-column: 2;
  grid-row: 1;
  justify-self: start;
  max-width: none;
}
.app-header .header-tools {
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
}
.app-header .primary-tabs {
  grid-column: 1 / -1;
  grid-row: 2;
  justify-self: start;
}
.brand-copy strong { font-size: 18px; font-weight: 950; letter-spacing: -.05em; }
.brand-copy small { color: #6e6e73; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.account-strip { justify-self: center; color: #6e6e73; font-weight: 800; }
.author-strip { justify-self: end; max-width: 260px; color: #6e6e73; font-size: 12px; font-weight: 700; line-height: 1.4; }
.simple-shell { width: min(1540px, calc(100vw - 280px)); margin: 0 auto 22px; display: grid; grid-template-columns: 340px minmax(660px, 1fr); gap: 14px; min-height: calc(100vh - 126px); }
.prompt-panel, .result-panel > section, .module-tabs { overflow: hidden; border: 1px solid rgba(38,34,28,.09); border-radius: 28px; background: rgba(255,255,255,.94); box-shadow: 0 14px 34px rgba(0,0,0,.055); backdrop-filter: blur(8px); }
.prompt-panel { align-self: start; max-height: calc(100vh - 126px); overflow: auto; background: #fff; }
.prompt-panel::before { content: "上传 · 参数 · 生成"; display: block; padding: 18px 18px 0; color: #8a7d6c; font-size: 12px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.panel-section { display: grid; gap: 14px; padding: 18px; border-bottom: 1px solid rgba(38,34,28,.08); }
.section-title span { width: 28px; height: 28px; border-radius: 999px; background: #f1f1f4; color: #6e6e73; display: grid; place-items: center; font-size: 12px; font-weight: 900; box-shadow: inset 0 0 0 1px rgba(0,0,0,.035); }
.section-title h2 { font-size: 24px; line-height: 1; letter-spacing: -.05em; }
textarea, select, input { border: 1px solid rgba(0,0,0,.035); border-radius: 16px; background: #f5f5f7; color: #1d1d1f; }
.button { border: 1px solid rgba(0,0,0,.05); border-radius: 15px; background: #fff; color: #1d1d1f; font-weight: 900; box-shadow: 0 8px 18px rgba(0,0,0,.04); }
.button.primary { border: 0; border-radius: 22px; background: linear-gradient(135deg,#1d1d1f,#3a3a3c); color: #fff; box-shadow: 0 18px 42px rgba(29,29,31,.16), inset 0 0 0 1px rgba(255,255,255,.08); }
.image-upload, .detail-upload { min-height: 170px; border: 1.5px dashed rgba(126,116,104,.46); border-radius: 28px; background: #fff; }
.image-upload::before, .detail-upload::before { content: "+"; width: 64px; height: 64px; border-radius: 22px; background: #f2f2f7; color: #1d1d1f; display: grid; place-items: center; font-size: 34px; font-weight: 400; box-shadow: inset 0 0 0 1px rgba(0,0,0,.045); }
.image-upload span, .detail-upload span { font-size: 18px; font-weight: 950; }
.mode-switch button { border: 1px solid rgba(0,0,0,.035); border-radius: 15px; background: #f5f5f7; color: #6e6e73; font-weight: 900; }
.mode-switch button.active { background: #fff; color: #1d1d1f; border-color: #c7c7cc; box-shadow: inset 0 0 0 1px rgba(0,0,0,.035),0 8px 18px rgba(0,0,0,.045); }
.result-panel { display: grid; grid-template-rows: auto minmax(360px,1fr); align-self: start; align-content: start; gap: 14px; min-width: 0; }
.module-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 18px 22px; background: #fff; }
.module-group, .module-group__buttons { display: contents; }
.module-group > span, .module-group__hint { display: none; }
.module-tab { flex: 0 0 calc((100% - 20px) / 3); height: 48px; border: 1px solid rgba(0,0,0,.04); background: #f7f7f9; border-radius: 16px; padding: 0 14px; color: #6e6e73; font-weight: 850; text-align: center; font-size: 15px; box-shadow: none; }
.module-tab[hidden] { display: none !important; }
.module-tab.active { background: #fff; color: #1d1d1f; border-color: #c7c7cc; box-shadow: inset 0 0 0 1px rgba(0,0,0,.035),0 8px 18px rgba(0,0,0,.04); }
.history-filter-list {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(38,34,28,.075);
  border-radius: 22px;
  background: #f7f7f9;
}
.history-filter-list p {
  margin: 8px 4px 0;
  color: #8a7d6c;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .12em;
}
.history-filter-list button {
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid rgba(0,0,0,.035);
  border-radius: 13px;
  background: #fff;
  color: #6e6e73;
  font-size: 13px;
  font-weight: 850;
  text-align: left;
}
.history-filter-list button.active {
  color: #1d1d1f;
  border-color: rgba(29,29,31,.16);
  box-shadow: inset 0 0 0 1px rgba(29,29,31,.04), 0 8px 18px rgba(0,0,0,.045);
}
.output-section { min-height: 0; padding: 18px; background: #fff; }
.result-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }
.empty-state { height: 166px; border: 1px dashed rgba(120,120,128,.42); border-radius: 24px; background: linear-gradient(135deg,#f8f8fb,#fff); color: #62594f; }
.empty-state strong { color: #34302a; font-size: 22px; font-weight: 900; }
.startup-mask { position: fixed; inset: 0; z-index: 9999; display: grid; place-items: start center; padding-top: 32vh !important; background: radial-gradient(circle at 50% 50%, rgba(255,255,255,1), transparent 34%), linear-gradient(180deg,#fbfbfd,#f1f1f4); transition: opacity .75s ease; animation: launchFade .75s ease forwards; animation-delay: 4.15s; }
.startup-mask::before { content: ""; position: absolute; top: 34%; left: 50%; width: 760px; height: 360px; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.95), rgba(0,113,227,.045), transparent 70%); filter: blur(18px); transform: translateX(-50%); animation: launchBreath 5s ease-in-out infinite; }
.startup-mask::after { content: "AI IMAGE · COMMERCE"; position: absolute; right: 0; bottom: 38px; left: 0; color: #a1a1a6; font-size: 12px; letter-spacing: .06em; text-align: center; }
.startup-mask.is-hidden { opacity: 0; pointer-events: none; }
.startup-mask__card { position: relative; z-index: 2; min-width: 0; display: grid; justify-items: center; gap: 0; margin-top: 70px !important; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; backdrop-filter: none; text-align: center; animation: launchFadeUp 1.2s cubic-bezier(.2,.8,.2,1) both; }
.startup-mask__dot { display: none; }
.startup-logo { position: relative; width: 92px; height: 92px; margin-bottom: 38px; overflow: visible; border-radius: 50%; background: #050505; box-shadow: 0 24px 54px rgba(0,0,0,.18), inset 0 0 0 1px rgba(255,255,255,.14); animation: logoCircleSettle 1.65s cubic-bezier(.2,.85,.22,1) both; }
.startup-logo span { position: absolute; left: 50%; top: 50%; width: 30px; height: 38px; background: radial-gradient(circle at 34% 28%, rgba(255,255,255,.98), rgba(255,255,255,.9) 42%, rgba(238,238,242,.98)); clip-path: none; border-radius: 64% 64% 72% 28% / 58% 58% 78% 42%; transform: translate(-50%, -190px) rotate(45deg) scale(.9); transform-origin: 50% 58%; filter: drop-shadow(0 10px 12px rgba(0,0,0,.22)); animation: logoDrop 2.55s cubic-bezier(.16,.88,.2,1) both; }
.startup-logo::before { content: ""; position: absolute; left: 50%; top: -108px; width: 6px; height: 96px; border-radius: 999px; background: linear-gradient(180deg, transparent, rgba(0,0,0,.16) 38%, rgba(0,0,0,.06)); transform: translateX(-50%) scaleY(0); transform-origin: top; animation: logoDropTrail 2.42s ease-out both; }
.startup-logo::after { content: ""; position: absolute; left: 50%; top: 50%; width: 48px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.24); transform: translate(-50%, 25px) scaleX(.2); opacity: 0; animation: logoRipple 2.52s ease-out both; }
.startup-mask__copy { display: grid; justify-items: center; gap: 0; margin-top: 10px; }
.startup-mask__kicker { order: 2; margin-bottom: 14px; color: #1d1d1f; font-size: 19px; font-weight: 900; letter-spacing: .06em; text-transform: none; }
.startup-mask__copy strong { order: 1; margin-bottom: 24px; color: #1d1d1f; font-size: 70px; line-height: 1; letter-spacing: -.085em; font-weight: 950; animation: launchLetter 1.8s ease both; }
.startup-mask__copy small { order: 3; margin-bottom: 46px; color: #9a9aa0; font-size: 13px; font-weight: 700; letter-spacing: .04em; }
.startup-mask__progress { width: 360px; height: 2px; overflow: hidden; border-radius: 999px; background: rgba(0,0,0,.09); }
.startup-mask__progress span { display: block; width: 0; height: 100%; border-radius: inherit; background: #1d1d1f; animation: launchLoad 3.85s ease-in-out forwards; }
.startup-loading-text { position: relative; width: 360px; height: 18px; margin-top: 13px; overflow: hidden; color: #9a9aa0; font-size: 11px; font-weight: 700; letter-spacing: .08em; line-height: 18px; }
.startup-loading-text span { position: absolute; inset: 0; display: block; opacity: 0; transform: translateY(8px) scale(.98); filter: blur(3px); animation: startupLoadingText 1.05s ease-out both; }
.startup-loading-text span:nth-child(1) { animation-delay: .25s; }
.startup-loading-text span:nth-child(2) { animation-delay: 1.45s; }
.startup-loading-text span:nth-child(3) { animation-delay: 2.65s; }
@keyframes launchFadeUp { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes launchLetter { from { letter-spacing: -.12em; filter: blur(6px); opacity: .4; } to { letter-spacing: -.085em; filter: blur(0); opacity: 1; } }
@keyframes logoCircleSettle { 0% { opacity: 0; transform: scale(.78); } 30% { opacity: 1; transform: scale(1.04); } 100% { opacity: 1; transform: scale(1); } }
@keyframes logoDrop { 0% { opacity: 0; width: 30px; height: 38px; clip-path: none; border-radius: 64% 64% 72% 28% / 58% 58% 78% 42%; transform: translate(-50%, -190px) rotate(45deg) scale(.78); } 12% { opacity: 1; transform: translate(-50%, -158px) rotate(45deg) scale(.96); } 34% { width: 31px; height: 42px; border-radius: 66% 66% 74% 26% / 58% 58% 80% 40%; transform: translate(-50%, -96px) rotate(45deg) scaleY(1.1) scaleX(.92); } 58% { width: 30px; height: 45px; clip-path: none; border-radius: 68% 68% 76% 24% / 58% 58% 82% 38%; transform: translate(-50%, -24px) rotate(45deg) scaleY(1.18) scaleX(.86); } 66% { width: 34px; height: 28px; clip-path: none; border-radius: 56% 56% 62% 38% / 52% 52% 68% 42%; transform: translate(-50%, -50%) rotate(45deg) scaleY(.68) scaleX(1.28); } 76% { width: 38px; height: 40px; clip-path: polygon(50% 0, 100% 100%, 0 100%); border-radius: 0; transform: translate(-50%, -57%) rotate(0) scaleY(.9) scaleX(1.08); } 88% { width: 38px; height: 40px; clip-path: polygon(50% 0, 100% 100%, 0 100%); border-radius: 0; transform: translate(-50%, -55%) rotate(0) scaleY(1.06) scaleX(.95); } 100% { opacity: 1; width: 38px; height: 40px; clip-path: polygon(50% 0, 100% 100%, 0 100%); border-radius: 0; transform: translate(-50%, -50%) rotate(0) scale(1); } }
@keyframes logoDropTrail { 0%,8% { opacity: 0; transform: translateX(-50%) scaleY(0); } 26% { opacity: .42; transform: translateX(-50%) scaleY(1); } 58%,100% { opacity: 0; transform: translateX(-50%) scaleY(.08); } }
@keyframes logoRipple { 0%,61% { opacity: 0; transform: translate(-50%, 25px) scaleX(.2); } 70% { opacity: 1; transform: translate(-50%, 25px) scaleX(1.16); } 100% { opacity: 0; transform: translate(-50%, 25px) scaleX(1.9); } }
@keyframes startupLoadingText { 0% { opacity: 0; transform: translateY(8px) scale(.98); filter: blur(3px); } 24%,72% { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); } 100% { opacity: 0; transform: translateY(-8px) scale(.99); filter: blur(3px); } }
@keyframes launchBreath { 0%,100% { opacity: .72; transform: translateX(-50%) scale(1); } 50% { opacity: 1; transform: translateX(-50%) scale(1.06); } }
@keyframes launchLoad { 0% { width: 0; } 32% { width: 38%; } 64% { width: 72%; } 100% { width: 100%; } }
@keyframes launchFade { to { opacity: 0; transform: scale(1.01); pointer-events: none; } }
@media (min-width: 1241px) { .app-header::before { content: ""; justify-self: center; grid-column: 2; width: 188px; height: 48px; border-radius: 999px; background: rgba(238,234,226,.56); border: 1px solid rgba(255,255,255,.78); } .account-strip { grid-column: 3; } }
/* Restore reference workspace top tabs and right account module. */
.primary-tabs {
  justify-self: start;
  display: flex;
  gap: 8px;
  padding: 6px;
  border: 1px solid rgba(38,34,28,.08);
  border-radius: 999px;
  background: rgba(245,245,247,.88);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.72);
}
.primary-tabs button {
  min-height: 38px;
  padding: 0 30px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: #82796e;
  font-size: 14px;
  font-weight: 900;
  box-shadow: none;
}
.primary-tabs button.on {
  background: #111;
  color: #fff;
  border-color: #111;
  box-shadow: 0 12px 26px rgba(0,0,0,.22), inset 0 0 0 1px rgba(255,255,255,.12);
}
.simple-shell { grid-template-columns: 340px minmax(660px, 1fr) 240px; align-items: start; gap: 14px; }
.module-tabs { order: -1; position: static; top: auto; z-index: 5; }
.account-zone { align-self: start; position: sticky; top: 104px; width: 100%; }
.account-panel { display: grid; gap: 14px; width: 100%; padding: 18px; border: 1px solid rgba(38,34,28,.09); border-radius: 28px; background: rgba(255,255,255,.94); box-shadow: 0 14px 34px rgba(0,0,0,.055); backdrop-filter: blur(8px); }
.account-pill { min-height: 54px; display: flex; align-items: center; gap: 10px; padding: 8px 12px; border: 1px solid rgba(38,34,28,.075); border-radius: 999px; background: #fff; box-shadow: 0 10px 24px rgba(0,0,0,.05); }
.account-avatar { flex: 0 0 auto; width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg,#d8d8de,#f6f6f8); box-shadow: inset 0 0 0 1px rgba(0,0,0,.045); }
.account-main { min-width: 0; line-height: 1.25; }
.account-main b { display: block; max-width: 92px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.account-main span { display: block; color: #8a7d6c; font-size: 12px; white-space: nowrap; }
.account-login-button { margin-left: auto; min-height: 32px; padding: 0 10px; border: 1px solid rgba(0,0,0,.05); border-radius: 999px; background: #f7f7f9; color: #1d1d1f; font-size: 12px; font-weight: 900; box-shadow: none; }
.account-mini { padding: 14px; border: 1px solid rgba(38,34,28,.075); border-radius: 24px; background: #fff; box-shadow: 0 10px 24px rgba(81,63,34,.05); }
.account-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px; }
.account-stat { padding: 12px; border: 1px solid rgba(0,0,0,.035); border-radius: 16px; background: #f7f7f9; }
.account-stat small { display: block; margin-bottom: 5px; color: #86868b; }
.account-stat b { font-size: 18px; }
.account-actions { display: grid; gap: 10px; }
.recharge-contact { margin: 0; padding: 10px 12px; border-radius: 16px; background: #f7f7f9; color: #1d1d1f; font-size: 13px; font-weight: 900; text-align: center; }
.member-benefits { margin-top: 12px; padding: 14px; border: 1px solid rgba(38,34,28,.075); border-radius: 18px; background: #f5f5f7; }
.member-benefits h3 { margin: 0 0 10px; font-size: 13px; }
.member-benefits ul { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.member-benefits li { color: #766d62; font-size: 12px; }
.member-benefits li::before { content: "✓"; margin-right: 7px; color: #c3a46f; font-weight: 900; }
@media (min-width: 1241px) { .app-header::before { display: none; } }
@media (max-width: 1240px) { .app-header, .simple-shell { width: calc(100vw - 36px); } .app-header { grid-template-columns: 1fr auto; } .app-header .brand { grid-column: 1; } .app-header .author-strip { grid-column: 1 / -1; grid-row: 2; } .app-header .header-tools { grid-column: 2; } .app-header .primary-tabs { grid-column: 1 / -1; grid-row: 3; } .simple-shell { grid-template-columns: 340px 1fr; } .account-zone { display: none; } }
@media (max-width: 860px) { .primary-tabs { justify-self: stretch; flex-wrap: wrap; } .primary-tabs button { flex: 1 1 auto; } .simple-shell { grid-template-columns: 1fr; } .module-tabs { position: static; } }
/* Final header flattening: blend page header into canvas. */
.app-header {
  position: relative !important;
  top: auto !important;
  z-index: 10;
  width: min(1540px, calc(100vw - 280px)) !important;
  min-height: 74px !important;
  margin: 20px auto 10px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  padding: 0 18px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}
.app-header::before,
.app-header::after {
  display: none !important;
  content: none !important;
}
.app-header .brand {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 12px !important;
  grid-column: auto !important;
  grid-row: auto !important;
}
.app-header .brand img {
  width: 44px !important;
  height: 44px !important;
  padding: 0 !important;
  border-radius: 50% !important;
  background: transparent !important;
  box-shadow: none !important;
}
.app-header .brand-copy strong {
  font-size: 30px !important;
  line-height: 1 !important;
  font-weight: 950 !important;
  letter-spacing: -.07em !important;
}
.app-header .brand-copy small,
.app-header .header-tools {
  display: none !important;
}
/* Align account panel with the main workspace canvas. */
.simple-shell {
  grid-template-columns: 340px minmax(660px, 1fr) 240px !important;
  align-items: start !important;
  gap: 14px !important;
}
.account-zone {
  align-self: start !important;
  position: sticky !important;
  top: 104px !important;
  width: 100% !important;
}
.account-panel {
  width: 100% !important;
  margin: 0 !important;
  padding: 18px !important;
  border: 1px solid rgba(38,34,28,.09) !important;
  border-radius: 28px !important;
  background: rgba(255,255,255,.94) !important;
  box-shadow: 0 14px 34px rgba(0,0,0,.055) !important;
  backdrop-filter: blur(8px) !important;
}
@media (max-width: 1240px) {
  .simple-shell { grid-template-columns: 340px 1fr !important; }
}

/* Force one-click product suite switches into a horizontal row. */
.suite-toggle-row {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 10px !important;
  align-items: center !important;
  width: 100% !important;
}
.suite-toggle-row .photo-enhance-toggle,
.suite-toggle-row .suite-fixed-toggle {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 10px !important;
  width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
}
.suite-toggle-row .photo-enhance-toggle strong {
  white-space: nowrap !important;
}
@media (max-width: 520px) {
  .suite-toggle-row {
    grid-template-columns: 1fr !important;
  }
}

/* Prompt panel real header: holds the 摄影增强 switch beside the section label. */
.prompt-panel::before {
  content: none !important;
  display: none !important;
}
.prompt-panel__head {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  padding: 16px 18px 0 !important;
  color: #8a7d6c !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  letter-spacing: .14em !important;
  text-transform: uppercase !important;
}
.prompt-panel__head > span {
  min-width: 0 !important;
  white-space: nowrap !important;
}
.prompt-panel__head .global-photo-enhance-toggle {
  flex: 0 0 auto !important;
  justify-self: auto !important;
  margin-left: auto !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}
@media (max-width: 520px) {
  .prompt-panel__head {
    align-items: stretch !important;
    flex-direction: column !important;
  }
  .prompt-panel__head .global-photo-enhance-toggle {
    justify-content: space-between !important;
    width: 100% !important;
  }
}

.global-photo-enhance-toggle {
  justify-self: end !important;
  min-height: 44px !important;
  margin: 0 !important;
  padding: 0 12px !important;
  border: 1px solid rgba(38,34,28,.08) !important;
  border-radius: 14px !important;
  background: rgba(255,255,255,.72) !important;
}


/* Final stable startup screen. */
.startup-mask {
  position: fixed !important;
  inset: 0 !important;
  z-index: 9999 !important;
  display: grid !important;
  place-items: center !important;
  padding: 0 !important;
  background: linear-gradient(180deg, #fbfbfd 0%, #f1f1f4 100%) !important;
  opacity: 1 !important;
  visibility: visible !important;
  transition: opacity .45s ease !important;
}
.startup-mask.is-hidden {
  opacity: 0 !important;
  pointer-events: none !important;
}
.startup-mask::before {
  content: "" !important;
  position: absolute !important;
  left: 50% !important;
  top: 45% !important;
  width: 560px !important;
  height: 300px !important;
  border-radius: 50% !important;
  background: radial-gradient(circle, rgba(255,255,255,.96), rgba(255,255,255,0) 70%) !important;
  transform: translate(-50%, -50%) !important;
}
.startup-mask::after {
  content: "AI IMAGE · COMMERCE" !important;
  position: absolute !important;
  right: 0 !important;
  bottom: 38px !important;
  left: 0 !important;
  color: #a1a1a6 !important;
  font-size: 12px !important;
  letter-spacing: .06em !important;
  text-align: center !important;
}
.startup-mask__card {
  position: relative !important;
  z-index: 2 !important;
  display: grid !important;
  justify-items: center !important;
  gap: 0 !important;
  width: min(560px, calc(100vw - 48px)) !important;
  margin: 7vh 0 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  text-align: center !important;
  opacity: 1 !important;
  transform: none !important;
}
.startup-logo {
  position: relative !important;
  display: block !important;
  width: 96px !important;
  height: 96px !important;
  margin: 0 0 34px !important;
  overflow: hidden !important;
  border-radius: 50% !important;
  background: #050505 !important;
  box-shadow: 0 22px 48px rgba(0,0,0,.16), inset 0 0 0 1px rgba(255,255,255,.14) !important;
  opacity: 1;
  transform: scale(1);
  animation: launchLogoPop .72s cubic-bezier(.18,.9,.22,1.08) both !important;
}
.startup-logo > span {
  position: absolute !important;
  left: 50% !important;
  top: 50% !important;
  z-index: 2 !important;
  display: block !important;
  width: 38px !important;
  height: 42px !important;
  overflow: hidden !important;
  background: #fff !important;
  clip-path: polygon(50% 0, 100% 100%, 0 100%) !important;
  border-radius: 0 !important;
  opacity: 1;
  transform: translate(-50%, -50%) rotate(0) scale(1);
  transform-origin: 50% 58% !important;
  filter: none !important;
  animation: launchTriangleFloat 2.4s ease-in-out .72s infinite !important;
}
.startup-logo::before {
  content: "" !important;
  position: absolute !important;
  left: -72% !important;
  top: -28% !important;
  z-index: 1 !important;
  display: block !important;
  width: 62% !important;
  height: 160% !important;
  border-radius: 999px !important;
  background: linear-gradient(105deg, transparent 0%, rgba(255,255,255,.04) 26%, rgba(255,255,255,.28) 50%, rgba(255,255,255,.04) 74%, transparent 100%) !important;
  opacity: 0;
  transform: rotate(24deg) translateX(0);
  animation: launchLogoSheen 3.2s ease-in-out .45s infinite !important;
}
.startup-logo::after {
  content: none !important;
  display: none !important;
  opacity: 0 !important;
  animation: none !important;
}
.startup-logo > span::before,
.startup-logo > span::after {
  content: none !important;
  display: none !important;
  opacity: 0 !important;
  animation: none !important;
}
.startup-logo > span {
  overflow: hidden !important;
}
.startup-mask__copy {
  display: grid !important;
  justify-items: center !important;
  gap: 0 !important;
  margin: 0 !important;
  visibility: visible !important;
}
.startup-mask__copy strong {
  order: 1 !important;
  display: block !important;
  margin: 0 0 22px !important;
  color: #1d1d1f !important;
  font-size: 70px !important;
  line-height: 1 !important;
  letter-spacing: -.085em !important;
  font-weight: 950 !important;
  visibility: visible !important;
  filter: none !important;
  text-shadow: none !important;
  opacity: 1 !important;
  transform: none !important;
  animation: none !important;
}
.startup-mask__kicker {
  order: 2 !important;
  display: block !important;
  margin: 0 0 14px !important;
  color: #1d1d1f !important;
  font-size: 19px !important;
  font-weight: 900 !important;
  letter-spacing: .06em !important;
  text-transform: none !important;
  visibility: visible !important;
  filter: none !important;
  opacity: 1 !important;
  transform: none !important;
  animation: none !important;
}
.startup-mask__copy small {
  order: 3 !important;
  display: block !important;
  margin: 0 0 44px !important;
  color: #9a9aa0 !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  letter-spacing: .04em !important;
  visibility: visible !important;
  filter: none !important;
  opacity: 1 !important;
  transform: none !important;
  animation: none !important;
}
.startup-mask__progress {
  display: block !important;
  width: 360px !important;
  max-width: calc(100vw - 72px) !important;
  height: 2px !important;
  overflow: hidden !important;
  border-radius: 999px !important;
  background: rgba(0,0,0,.09) !important;
}
.startup-mask__progress span {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  border-radius: inherit !important;
  background: #1d1d1f !important;
  transform: scaleX(0);
  transform-origin: left center !important;
  animation: launchProgressVisible 4.2s ease-in-out forwards !important;
}
.startup-loading-text {
  position: relative !important;
  display: block !important;
  width: 360px !important;
  max-width: calc(100vw - 72px) !important;
  height: 18px !important;
  margin-top: 13px !important;
  overflow: hidden !important;
  color: #9a9aa0 !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: .08em !important;
  line-height: 18px !important;
}
.startup-loading-text span {
  position: absolute !important;
  inset: 0 !important;
  display: block !important;
  filter: none !important;
  opacity: 0;
  animation: launchLoadingWordVisible 1.15s ease-out both !important;
}
.startup-loading-text span:nth-child(1) { animation-delay: .55s !important; }
.startup-loading-text span:nth-child(2) { display: block !important; animation-delay: 1.85s !important; }
.startup-loading-text span:nth-child(3) { display: block !important; animation-delay: 3.15s !important; }
@keyframes launchLogoCirclePulse {
  0% { transform: scale(.9); box-shadow: 0 12px 28px rgba(0,0,0,.1), inset 0 0 0 1px rgba(255,255,255,.14); }
  55% { transform: scale(1.04); box-shadow: 0 26px 54px rgba(0,0,0,.18), inset 0 0 0 1px rgba(255,255,255,.14); }
  100% { transform: scale(1); box-shadow: 0 22px 48px rgba(0,0,0,.16), inset 0 0 0 1px rgba(255,255,255,.14); }
}
@keyframes launchWaterDropToTriangle {
  0% { opacity: 0; width: 28px; height: 38px; background: linear-gradient(145deg, #fff 0%, #f7f7f8 62%, #e9e9ee 100%); clip-path: none; border-radius: 64% 64% 76% 24% / 58% 58% 82% 38%; filter: drop-shadow(0 10px 18px rgba(0,0,0,.22)); transform: translate(-50%, -230px) rotate(45deg) scale(.72); }
  10% { opacity: 1; transform: translate(-50%, -188px) rotate(45deg) scale(.88); }
  36% { width: 30px; height: 48px; clip-path: none; border-radius: 68% 68% 78% 22% / 58% 58% 84% 36%; transform: translate(-50%, -100px) rotate(45deg) scale(.86, 1.2); }
  58% { width: 30px; height: 50px; clip-path: none; border-radius: 70% 70% 80% 20% / 58% 58% 84% 36%; transform: translate(-50%, -28px) rotate(45deg) scale(.82, 1.22); }
  68% { width: 39px; height: 25px; clip-path: none; border-radius: 58% 58% 66% 34% / 52% 52% 72% 40%; transform: translate(-50%, -50%) rotate(45deg) scale(1.32, .64); }
  78% { width: 34px; height: 40px; clip-path: none; border-radius: 62% 62% 72% 28% / 56% 56% 78% 42%; transform: translate(-50%, -53%) rotate(45deg) scale(.92, 1.04); }
  88% { opacity: 1; width: 38px; height: 42px; background: #fff; clip-path: polygon(50% 0, 100% 100%, 0 100%); border-radius: 0; filter: none; transform: translate(-50%, -53%) rotate(0) scale(1.08, .94); }
  100% { opacity: 1; width: 38px; height: 42px; background: #fff; clip-path: polygon(50% 0, 100% 100%, 0 100%); border-radius: 0; filter: none; transform: translate(-50%, -50%) rotate(0) scale(1); }
}
@keyframes launchDropRipple {
  0%, 58% { opacity: 0; transform: translate(-50%, 25px) scaleX(.18); }
  72% { opacity: .78; transform: translate(-50%, 25px) scaleX(1.12); }
  100% { opacity: 0; transform: translate(-50%, 25px) scaleX(1.9); }
}
@keyframes launchLogoPop {
  0% { transform: scale(.82); opacity: 0; }
  55% { transform: scale(1.09); opacity: 1; }
  78% { transform: scale(.985); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}
@keyframes launchTriangleFloat {
  0%, 100% { transform: translate(-50%, -50%) rotate(0) scale(1); }
  50% { transform: translate(-50%, calc(-50% - 5px)) rotate(0) scale(1.04); }
}
@keyframes launchLogoSheen {
  0%, 12% { opacity: 0; transform: rotate(24deg) translateX(0); }
  28% { opacity: .9; }
  52%, 100% { opacity: 0; transform: rotate(24deg) translateX(260px); }
}
@keyframes launchProgressVisible {
  0% { transform: scaleX(0); }
  30% { transform: scaleX(.34); }
  66% { transform: scaleX(.72); }
  100% { transform: scaleX(1); }
}
@keyframes launchLoadingWordVisible {
  0% { opacity: 0; transform: translateY(8px); }
  22%, 74% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(-8px); }
}

/* Final safe UI slimming pass: visual density only, no behavior selectors changed. */
:root {
  --shadow: 0 12px 30px rgba(0,0,0,.055);
  --soft-shadow: 0 8px 22px rgba(0,0,0,.042);
}
body::before {
  opacity: .42 !important;
}
.app-header {
  min-height: 62px !important;
  margin: 12px auto 8px !important;
  padding: 0 12px !important;
}
.app-header .brand {
  gap: 10px !important;
}
.app-header .brand img {
  width: 38px !important;
  height: 38px !important;
}
.app-header .brand-copy strong {
  font-size: 27px !important;
}
.simple-shell {
  gap: 12px !important;
  margin-bottom: 16px !important;
  min-height: calc(100vh - 94px) !important;
}
.prompt-panel,
.result-panel > section,
.module-tabs,
.account-panel {
  border-radius: 22px !important;
  box-shadow: var(--soft-shadow) !important;
  backdrop-filter: blur(6px) !important;
}
.prompt-panel,
.account-zone {
  top: 86px !important;
}
.prompt-panel {
  max-height: calc(100vh - 102px) !important;
}
.prompt-panel__head {
  padding: 13px 15px 0 !important;
}
.panel-section {
  gap: 11px !important;
  padding: 14px 15px !important;
}
.section-title {
  gap: 8px !important;
}
.section-title span {
  width: 24px !important;
  height: 24px !important;
  font-size: 11px !important;
}
.section-title h2 {
  font-size: 21px !important;
}
label {
  gap: 6px !important;
}
textarea,
select,
input {
  min-height: 40px !important;
  padding: 10px 12px !important;
  border-radius: 13px !important;
}
.button {
  min-height: 38px !important;
  padding: 0 14px !important;
  border-radius: 13px !important;
  box-shadow: none !important;
}
.button.primary {
  min-height: 42px !important;
  border-radius: 18px !important;
  box-shadow: 0 12px 26px rgba(29,29,31,.14), inset 0 0 0 1px rgba(255,255,255,.08) !important;
}
.main-actions {
  padding: 12px 15px 14px !important;
}
.image-upload,
.detail-upload {
  min-height: 132px !important;
  padding: 12px !important;
  border-radius: 22px !important;
}
.image-upload::before,
.detail-upload::before {
  width: 46px !important;
  height: 46px !important;
  border-radius: 16px !important;
  font-size: 28px !important;
}
.image-upload span,
.detail-upload span {
  font-size: 16px !important;
}
.image-upload small,
.detail-upload small,
.panel-note {
  font-size: 12px !important;
  line-height: 1.5 !important;
}
.mode-switch,
.detail-image-grid,
.task-list,
.account-actions,
.member-benefits ul {
  gap: 7px !important;
}
.mode-switch button {
  min-height: 36px !important;
  border-radius: 12px !important;
}
.module-tabs {
  gap: 8px !important;
  padding: 14px 16px !important;
}
.module-tab {
  height: 42px !important;
  min-height: 42px !important;
  padding: 0 12px !important;
  border-radius: 14px !important;
  font-size: 14px !important;
}
.primary-tabs {
  gap: 6px !important;
  padding: 5px !important;
}
.primary-tabs button {
  min-height: 34px !important;
  padding: 0 24px !important;
  font-size: 13px !important;
}
.primary-tabs button.on {
  box-shadow: 0 8px 18px rgba(0,0,0,.16), inset 0 0 0 1px rgba(255,255,255,.12) !important;
}
.result-panel {
  gap: 12px !important;
  min-height: 0 !important;
}
.output-section {
  padding: 14px !important;
}
.result-grid {
  gap: 12px !important;
}
.result-card,
.generation-task-card,
.task-panel,
.account-mini,
.member-benefits {
  border-radius: 18px !important;
  box-shadow: none !important;
}
.result-card {
  gap: 8px !important;
  padding: 8px !important;
}
.result-card:hover {
  transform: none !important;
  box-shadow: var(--soft-shadow) !important;
}
.generation-task-card,
.task-panel {
  gap: 10px !important;
  padding: 12px !important;
}
.task-output-grid {
  gap: 8px !important;
}
.task-filter-bar,
.task-filter-buttons {
  gap: 8px !important;
}
.task-filter-bar button {
  min-height: 34px !important;
  padding: 0 13px !important;
  border-radius: 12px !important;
}
.empty-state {
  height: 138px !important;
  min-height: 138px !important;
  padding: 22px !important;
  border-radius: 20px !important;
}
.empty-state strong {
  font-size: 20px !important;
}
.global-photo-enhance-toggle {
  min-height: 38px !important;
  padding: 0 10px !important;
  border-radius: 12px !important;
}
.photo-enhance-toggle span {
  width: 34px !important;
  height: 20px !important;
}
.photo-enhance-toggle span::after {
  top: 3px !important;
  left: 3px !important;
  width: 12px !important;
  height: 12px !important;
}
.photo-enhance-toggle input:checked + span::after {
  transform: translateX(14px) !important;
}
.suite-toggle-row {
  gap: 8px !important;
}
.suite-plan {
  gap: 7px !important;
  padding: 10px !important;
  border-radius: 14px !important;
}
.suite-plan span {
  padding: 7px 9px !important;
  border-radius: 10px !important;
}
.account-panel {
  gap: 12px !important;
  padding: 14px !important;
}
.account-pill {
  min-height: 48px !important;
  padding: 7px 10px !important;
}
.account-avatar {
  width: 32px !important;
  height: 32px !important;
}
.account-mini,
.member-benefits {
  padding: 12px !important;
}
.account-stat {
  padding: 10px !important;
  border-radius: 13px !important;
}
.recharge-contact {
  padding: 9px 10px !important;
  border-radius: 13px !important;
}
.startup-mask {
  transition: opacity .3s ease !important;
}
.startup-mask__card {
  margin-top: 4vh !important;
}
.startup-logo {
  width: 88px !important;
  height: 88px !important;
  margin-bottom: 28px !important;
  box-shadow: 0 16px 34px rgba(0,0,0,.14), inset 0 0 0 1px rgba(255,255,255,.14) !important;
}
.startup-logo > span {
  width: 34px !important;
  height: 38px !important;
}
.startup-mask__copy strong {
  margin-bottom: 16px !important;
  font-size: 62px !important;
}
.startup-mask__kicker {
  margin-bottom: 10px !important;
  font-size: 17px !important;
}
.startup-mask__copy small {
  margin-bottom: 34px !important;
}
.startup-mask__progress,
.startup-loading-text {
  width: 320px !important;
}
.startup-mask__progress span {
  animation-duration: 3.6s !important;
}
.startup-loading-text span:nth-child(1) { animation-delay: .45s !important; }
.startup-loading-text span:nth-child(2) { animation-delay: 1.6s !important; }
.startup-loading-text span:nth-child(3) { animation-delay: 2.75s !important; }
@media (max-width: 1240px) {
  .app-header,
  .simple-shell {
    width: calc(100vw - 28px) !important;
  }
}
@media (max-width: 860px) {
  .simple-shell {
    grid-template-columns: 1fr !important;
  }
  .prompt-panel {
    max-height: none !important;
  }
}
@media (max-width: 520px) {
  .primary-tabs button {
    padding: 0 16px !important;
  }
  .module-tab {
    flex-basis: calc((100% - 8px) / 2) !important;
  }
}
