:root {
  --bg: #f6eee1;
  --bg-deep: #ead9bc;
  --card: rgba(255, 249, 239, 0.82);
  --card-strong: rgba(255, 248, 235, 0.96);
  --text: #1f1a15;
  --muted: #695b4d;
  --line: rgba(62, 43, 23, 0.12);
  --primary: #c54e1d;
  --primary-deep: #8f2f07;
  --accent: #1f5f68;
  --shadow: 0 24px 60px rgba(71, 43, 14, 0.18);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
}

* {
  box-sizing: border-box;
}

html {
  font-size: 16px;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: "Noto Sans SC", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.72), transparent 35%),
    radial-gradient(circle at right, rgba(197, 78, 29, 0.18), transparent 30%),
    linear-gradient(140deg, var(--bg) 0%, #f2e5d0 52%, var(--bg-deep) 100%);
}

img {
  display: block;
  max-width: 100%;
}

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

select:disabled,
input:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  background: rgba(236, 226, 212, 0.9);
}

.page-shell {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 10px 0 36px;
}

.hero {
  display: grid;
  grid-template-columns: 1.6fr 0.9fr;
  gap: 18px;
  align-items: stretch;
  margin-bottom: 10px;
}

.hero-copy,
.hero-note,
.panel,
.usage-card {
  background: var(--card);
  backdrop-filter: blur(18px);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.hero-copy {
  border-radius: var(--radius-xl);
  padding: 16px 18px;
  position: relative;
  overflow: hidden;
}

.hero-copy::after {
  content: "";
  position: absolute;
  inset: auto -60px -80px auto;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(31, 95, 104, 0.2), transparent 68%);
}

.eyebrow,
.note-label,
.metric-label,
.usage-label {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1,
.panel h2,
.empty-state h3 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
}

.hero h1 {
  font-size: clamp(1.9rem, 3.4vw, 3.05rem);
  line-height: 0.92;
  margin-top: 6px;
}

.hero-text,
.panel-head p,
.hero-note p,
.subtle-text,
.empty-state p,
#status-text,
.image-filename {
  color: var(--muted);
}

.hero-text {
  max-width: 560px;
  margin: 8px 0 0;
  font-size: 0.94rem;
  line-height: 1.58;
}

.hero-metrics {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.metric,
.usage-card > div {
  background: rgba(255, 255, 255, 0.54);
  border: 1px solid rgba(62, 43, 23, 0.08);
  border-radius: 16px;
  padding: 11px 13px;
}

.metric strong,
.usage-card strong {
  display: block;
  margin-top: 6px;
  font-size: 0.94rem;
}

.hero-note {
  border-radius: var(--radius-xl);
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-copy-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(330px, 0.94fr);
  gap: 18px;
  align-items: start;
}

.hero-copy-main {
  min-width: 0;
}

.hero-compare {
  align-self: stretch;
  display: grid;
  gap: 12px;
  padding: 14px;
  border-radius: 24px;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.82), transparent 32%),
    linear-gradient(180deg, rgba(252, 248, 240, 0.96), rgba(244, 235, 222, 0.96));
  border: 1px solid rgba(62, 43, 23, 0.1);
  box-shadow: 0 18px 34px rgba(71, 43, 14, 0.08);
}

.hero-compare-head h2 {
  margin: 4px 0 0;
  font-size: 1.15rem;
  line-height: 1.2;
}

.hero-compare-head p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

.hero-compare-eyebrow {
  margin: 0;
  color: var(--primary-deep);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-compare-stage {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  min-height: 0;
  border-radius: 24px;
  border: 1px solid rgba(62, 43, 23, 0.08);
  background: rgba(224, 215, 202, 0.88);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.62);
  user-select: none;
  touch-action: none;
}

.hero-compare-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-compare-stage > .hero-compare-image,
.hero-compare-after .hero-compare-image {
  position: absolute;
  inset: 0;
}

.hero-compare-after {
  position: absolute;
  inset: 0;
  clip-path: inset(0 calc(100% - var(--compare-position, 54%)) 0 0);
}

.hero-compare-divider {
  position: absolute;
  top: 12px;
  bottom: 12px;
  left: var(--compare-position, 54%);
  width: 2px;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 0 0 1px rgba(62, 43, 23, 0.12);
}

.hero-compare-handle {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(31, 26, 21, 0.9);
  color: #fff;
  font-size: 0.72rem;
  white-space: nowrap;
  box-shadow: 0 14px 24px rgba(31, 26, 21, 0.22);
}

.hero-compare-tag {
  position: absolute;
  top: 12px;
  z-index: 2;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--text);
  font-size: 0.76rem;
  font-weight: 600;
  box-shadow: 0 8px 16px rgba(31, 26, 21, 0.08);
}

.hero-compare-tag--before {
  left: 12px;
}

.hero-compare-tag--after {
  right: 12px;
  background: rgba(31, 95, 104, 0.92);
  color: #fff;
}

.hero-compare-footer {
  display: grid;
  gap: 10px;
}

.hero-compare-points {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-compare-points span {
  display: inline-flex;
  align-items: center;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(62, 43, 23, 0.08);
  color: var(--muted);
  font-size: 0.78rem;
}

.hero-compare-slider {
  display: grid;
  gap: 6px;
}

.hero-compare-slider span {
  color: var(--muted);
  font-size: 0.82rem;
}

.hero-compare-slider input[type="range"] {
  width: 100%;
  margin: 0;
  accent-color: var(--primary);
}

.secondary-link,
.back-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  margin-top: 14px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(62, 43, 23, 0.12);
  background: rgba(255, 255, 255, 0.66);
  color: var(--text);
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.secondary-link:hover,
.secondary-link:focus-visible,
.back-link:hover,
.back-link:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(197, 78, 29, 0.32);
  box-shadow: 0 12px 20px rgba(197, 78, 29, 0.12);
}

.quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.quick-links .secondary-link {
  margin-top: 0;
}

.account-brief {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.56);
  border: 1px solid rgba(62, 43, 23, 0.08);
}

.account-brief strong {
  display: block;
  margin-top: 8px;
  font-family: "Space Grotesk", sans-serif;
}

.account-brief p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.account-brief.compact {
  margin-bottom: 18px;
}

.support-widget {
  position: fixed;
  right: 20px;
  bottom: 22px;
  z-index: 1600;
  display: grid;
  justify-items: end;
  gap: 12px;
}

.support-widget-trigger {
  width: 58px;
  height: 58px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary) 0%, #ef8a54 100%);
  color: #fff;
  box-shadow: 0 20px 38px rgba(143, 47, 7, 0.28);
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.support-widget-trigger:hover,
.support-widget-trigger:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 24px 42px rgba(143, 47, 7, 0.34);
}

.support-widget-trigger-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.support-widget-panel {
  width: min(380px, calc(100vw - 28px));
  max-height: min(680px, calc(100vh - 108px));
  display: grid;
  grid-template-rows: auto auto minmax(180px, 1fr) auto;
  gap: 12px;
  padding: 16px;
  border-radius: 26px;
  border: 1px solid var(--line);
  background: rgba(255, 248, 238, 0.96);
  box-shadow: 0 28px 60px rgba(71, 43, 14, 0.24);
  backdrop-filter: blur(18px);
}

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

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

.support-widget-eyebrow,
.support-widget-input-label,
.support-widget-message-label {
  display: block;
  color: var(--muted);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.support-widget-head strong {
  display: block;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.2rem;
}

.support-widget-subtitle {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.5;
  font-size: 0.9rem;
}

.support-widget-close {
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  padding: 6px 0;
}

.support-widget-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.support-widget-chip {
  border: 1px solid rgba(62, 43, 23, 0.12);
  background: rgba(255, 255, 255, 0.72);
  color: var(--text);
  border-radius: 999px;
  padding: 8px 12px;
  cursor: pointer;
}

.support-widget-chip:disabled {
  opacity: 0.65;
  cursor: wait;
}

.support-widget-messages {
  min-height: 220px;
  max-height: min(380px, calc(100vh - 280px));
  overflow: auto;
  display: grid;
  gap: 10px;
  padding-right: 4px;
}

.support-widget-message {
  max-width: 88%;
  padding: 12px 14px;
  border-radius: 18px;
  border: 1px solid rgba(62, 43, 23, 0.08);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 10px 22px rgba(71, 43, 14, 0.08);
}

.support-widget-message.user {
  justify-self: end;
  background: rgba(197, 78, 29, 0.14);
  border-color: rgba(197, 78, 29, 0.14);
}

.support-widget-message.assistant {
  justify-self: start;
}

.support-widget-message.pending {
  opacity: 0.72;
}

.support-widget-message p {
  margin: 6px 0 0;
  white-space: pre-wrap;
  line-height: 1.65;
}

.support-widget-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
}

.support-widget-input-wrap {
  display: grid;
  gap: 6px;
}

.support-widget-input {
  width: 100%;
  min-height: 48px;
  max-height: 120px;
  resize: none;
}

.support-widget-send {
  margin-top: 0;
  min-width: 78px;
}

.workspace {
  display: grid;
  grid-template-columns: minmax(360px, 460px) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.panel {
  border-radius: var(--radius-xl);
  padding: 20px;
}

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

.panel-head h2 {
  font-size: 1.5rem;
}

.panel-head p {
  margin: 8px 0 0;
  line-height: 1.7;
}

.generator-form {
  display: grid;
  gap: 18px;
}

.scene-selector {
  display: grid;
  gap: 14px;
  margin-bottom: 18px;
}

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

.scene-card,
.workflow-card {
  width: 100%;
  text-align: left;
  border: 1px solid rgba(62, 43, 23, 0.1);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.65);
  padding: 16px;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.scene-card strong,
.workflow-card strong {
  display: block;
  font-family: "Space Grotesk", sans-serif;
}

.scene-card span,
.workflow-card span,
.scene-brief p {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.6;
}

.scene-card.active,
.workflow-card.active {
  border-color: rgba(197, 78, 29, 0.44);
  box-shadow: 0 16px 24px rgba(197, 78, 29, 0.12);
  background: linear-gradient(135deg, rgba(255, 237, 216, 0.96), rgba(255, 199, 170, 0.72));
}

.scene-brief {
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.48);
  border: 1px solid rgba(62, 43, 23, 0.08);
}

.scene-brief strong {
  font-family: "Space Grotesk", sans-serif;
}

.mode-switch {
  display: inline-flex;
  gap: 10px;
  margin-bottom: 20px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(62, 43, 23, 0.1);
}

.mode-chip {
  border: 0;
  background: transparent;
  color: var(--muted);
  border-radius: 999px;
  padding: 10px 18px;
  cursor: pointer;
}

.mode-chip:disabled {
  opacity: 0.48;
  cursor: not-allowed;
}

.mode-chip.active {
  background: linear-gradient(135deg, #ffedd8, #ffc7aa);
  color: var(--primary-deep);
  box-shadow: 0 10px 18px rgba(197, 78, 29, 0.16);
}

.mode-panel {
  display: none;
}

.mode-panel.active {
  display: block;
}

.field {
  display: grid;
  gap: 10px;
}

.field > span {
  font-size: 0.95rem;
  font-weight: 700;
}

.field-note {
  margin: -6px 0 2px;
  color: var(--muted);
  line-height: 1.7;
  font-size: 0.92rem;
}

.field-hint p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

textarea,
select,
input[type="number"] {
  width: 100%;
  border: 1px solid rgba(62, 43, 23, 0.12);
  border-radius: var(--radius-md);
  background: var(--card-strong);
  padding: 14px 16px;
  color: var(--text);
  transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

textarea {
  min-height: 150px;
  resize: vertical;
  line-height: 1.7;
}

textarea:focus,
select:focus,
input:focus {
  outline: none;
  border-color: rgba(197, 78, 29, 0.5);
  box-shadow: 0 0 0 4px rgba(197, 78, 29, 0.12);
  transform: translateY(-1px);
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tier-switch {
  display: inline-flex;
  gap: 10px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(62, 43, 23, 0.1);
  width: fit-content;
}

.tier-chip {
  border: 0;
  background: transparent;
  color: var(--muted);
  border-radius: 999px;
  padding: 10px 18px;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease, color 160ms ease;
}

.tier-chip.active {
  background: linear-gradient(135deg, rgba(31, 95, 104, 0.14), rgba(183, 229, 220, 0.92));
  color: var(--accent);
  box-shadow: 0 10px 18px rgba(31, 95, 104, 0.14);
}

.tier-chip.disabled,
.tier-chip:disabled {
  opacity: 0.48;
  cursor: not-allowed;
  box-shadow: none;
}

.chip {
  border: 1px solid rgba(62, 43, 23, 0.1);
  background: rgba(255, 255, 255, 0.68);
  color: var(--text);
  border-radius: 999px;
  padding: 10px 14px;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.chip:hover,
.chip:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(197, 78, 29, 0.42);
}

.preset-chip.active {
  background: linear-gradient(135deg, #ffedd8, #ffc7aa);
  border-color: rgba(197, 78, 29, 0.55);
  color: var(--primary-deep);
}

.action-chip.active {
  background: linear-gradient(135deg, #dff4f0, #b7e5dc);
  border-color: rgba(31, 95, 104, 0.38);
  color: var(--accent);
}

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

.upload-dropzone {
  display: block;
  border: 1px dashed rgba(62, 43, 23, 0.2);
  border-radius: 24px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.6), rgba(255, 246, 233, 0.82));
  cursor: pointer;
}

.upload-placeholder,
.upload-preview {
  min-height: 240px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 22px;
}

.upload-placeholder strong,
.upload-meta strong {
  font-family: "Space Grotesk", sans-serif;
}

.upload-placeholder p,
.upload-meta span {
  margin: 10px 0 0;
  color: var(--muted);
}

.upload-preview {
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}

.upload-preview img {
  width: 100%;
  max-height: 320px;
  object-fit: contain;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
}

.upload-meta {
  text-align: left;
}

.form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 6px;
}

.pricing-panel {
  margin-top: 24px;
  display: grid;
  gap: 16px;
}

.compact-head {
  margin-bottom: 0;
}

.pricing-shell {
  width: min(1180px, calc(100% - 32px));
}

.pricing-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(320px, 0.82fr);
  gap: 24px;
  margin-bottom: 24px;
  align-items: start;
}

.pricing-copy,
.pricing-aside-card,
.plan-card {
  background: var(--card);
  backdrop-filter: blur(18px);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.pricing-copy {
  border-radius: var(--radius-xl);
  padding: 30px;
}

.pricing-copy h1 {
  margin: 12px 0 0;
  font-size: clamp(2.2rem, 4.4vw, 4.2rem);
  line-height: 0.95;
  font-family: "Space Grotesk", sans-serif;
}

.pricing-glance {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.pricing-aside {
  display: flex;
  flex-direction: column;
  justify-content: stretch;
}

.pricing-aside-card {
  border-radius: var(--radius-xl);
  padding: 24px;
  display: grid;
  align-content: start;
  min-height: 100%;
}

.pricing-aside-card strong {
  display: block;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.1rem;
}

.pricing-aside-card p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.75;
}

.pricing-main {
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1fr);
}

.plan-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.plan-card {
  border-radius: 24px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.plan-card.featured {
  background: linear-gradient(145deg, rgba(255, 240, 223, 0.96), rgba(255, 212, 184, 0.78));
  border-color: rgba(197, 78, 29, 0.24);
}

.plan-card-top {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.plan-card h2 {
  margin: 0;
  font-size: 1.35rem;
  font-family: "Space Grotesk", sans-serif;
}

.plan-badge {
  display: inline-flex;
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(31, 95, 104, 0.12);
  color: var(--accent);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.plan-price {
  margin-top: 24px;
  font-size: 2rem;
  line-height: 1;
  font-family: "Space Grotesk", sans-serif;
}

.plan-summary {
  min-height: 0;
  margin: 16px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.plan-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: auto;
}

.plan-meta > div {
  border-radius: 18px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.56);
  border: 1px solid rgba(62, 43, 23, 0.08);
}

.plan-meta strong {
  display: block;
  margin-top: 8px;
}

.pricing-detail-panel {
  padding: 26px;
  display: grid;
  gap: 18px;
  min-width: 0;
}

.login-main {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 24px;
  align-items: start;
}

.account-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
}

.account-overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: 24px;
  align-items: start;
}

.account-overview-grid > .panel {
  height: 100%;
}

.auth-card {
  padding: 26px;
  display: grid;
  align-content: start;
  gap: 18px;
}

.auth-actions {
  justify-content: flex-start;
}

.form-alert {
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: 16px;
  line-height: 1.6;
}

.form-alert.error {
  background: rgba(151, 42, 42, 0.12);
  color: #972a2a;
}

.form-alert.success {
  background: rgba(31, 95, 104, 0.12);
  color: var(--accent);
}

.account-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 14px;
}

.balance-panel,
.balance-recharge-form,
.balance-rule-list {
  display: grid;
  gap: 16px;
}

.balance-panel .balance-rule-list {
  margin-top: auto;
}

.balance-preset-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.balance-preset-button {
  margin-top: 0;
}

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

.balance-custom-row .primary-button {
  min-height: 52px;
}

.share-link-text {
  font-size: 0.88rem;
  line-height: 1.7;
  word-break: break-all;
}

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

.referral-item p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.history-shell {
  width: min(1180px, calc(100% - 32px));
}

.history-main {
  display: grid;
  gap: 20px;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  align-items: start;
}

.history-manual-panel {
  padding: 20px;
  grid-column: 1;
}

.history-helper-panel {
  grid-column: 2;
  position: sticky;
  top: 18px;
  align-content: start;
}

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

.history-helper-note {
  margin: 0;
}

.history-auto-import-note {
  margin-bottom: 14px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 244, 231, 0.9);
  color: #5f4630;
}

.history-auto-import-note p {
  margin: 0;
}

.history-auto-import-note p + p {
  margin-top: 8px;
}

.history-auto-import-note code {
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: #8a4318;
}

.stores-main {
  display: grid;
  gap: 20px;
  align-items: start;
}

.stores-sync-card,
.stores-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
}

.stores-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.stores-sync-form {
  margin-top: 14px;
}

.stores-form-grid .field-span-2 {
  grid-column: 1 / -1;
}

.stores-form-grid .field-span-3 {
  grid-column: 1 / -1;
}

.stores-form-summary {
  margin-bottom: 18px;
}

.stores-section-grid {
  display: grid;
  grid-template-columns: minmax(280px, 340px) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.stores-card-list,
.storefront-switcher {
  display: grid;
  gap: 18px;
}

.storefront-card,
.storefront-category-manage,
.storefront-product-create,
.storefront-category-list,
.storefront-category-block {
  display: grid;
  gap: 16px;
}

.storefront-card {
  padding: 22px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 20px 45px rgba(95, 63, 31, 0.08);
}

.storefront-card.is-active {
  border-color: rgba(31, 95, 104, 0.24);
  background: rgba(245, 252, 250, 0.9);
  box-shadow: 0 24px 50px rgba(31, 95, 104, 0.1);
}

.storefront-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.storefront-inline-meta {
  align-items: center;
}

.stores-info-grid-compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.storefront-head h2,
.storefront-product-top h4,
.storefront-category-head h3 {
  margin: 0;
}

.storefront-meta,
.storefront-address p,
.storefront-product-top p,
.storefront-path {
  margin: 6px 0 0;
  color: var(--muted);
}

.storefront-meta code,
.storefront-path code {
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.84);
  color: #7f4b21;
  word-break: break-all;
}

.storefront-qr {
  display: inline-flex;
  width: 120px;
  height: 120px;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
}

.storefront-qr img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.storefront-address {
  padding: 16px 18px;
  border-radius: 22px;
  background: rgba(255, 248, 240, 0.72);
}

.storefront-category-head,
.storefront-product-top,
.storefront-product-meta {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.storefront-product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

.stores-main--with-switcher {
  grid-template-columns: minmax(0, 1fr) 340px;
  column-gap: 20px;
}

.stores-main--with-switcher .stores-main-primary {
  grid-column: 1;
}

.stores-main--with-switcher .stores-main-sidebar {
  grid-column: 2;
  grid-row: 1;
  position: sticky;
  top: 18px;
}

.storefront-switcher.stores-main-sidebar {
  max-height: calc(100vh - 36px);
  overflow: auto;
}

.stores-main--with-switcher .stores-main-wide {
  grid-column: 1 / -1;
}

.storefront-product-card {
  padding: 18px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 20px 45px rgba(95, 63, 31, 0.08);
}

.storefront-sync-note,
.storefront-folder-item {
  display: grid;
  gap: 14px;
}

.storefront-folder-list {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.storefront-folder-head,
.storefront-folder-stats {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.storefront-folder-stats {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.storefront-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 248, 240, 0.88);
  color: #7f4b21;
  font-size: 0.88rem;
  white-space: nowrap;
}

.storefront-folder-rename {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
}

.storefront-folder-rename .secondary-button {
  margin-top: 0;
}

.storefront-gallery {
  --storefront-thumb-size: 88px;
  display: grid;
  grid-template-columns: repeat(auto-fill, var(--storefront-thumb-size));
  gap: 8px;
  margin-top: 12px;
  justify-content: flex-start;
}

.storefront-thumb-card {
  width: var(--storefront-thumb-size);
  display: grid;
  gap: 6px;
}

.storefront-thumb {
  display: block;
  width: var(--storefront-thumb-size);
  aspect-ratio: 1 / 1;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.92);
}

.storefront-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.storefront-thumb-delete {
  margin: 0;
}

.storefront-thumb-delete-button {
  width: 100%;
  border: 1px solid rgba(154, 59, 27, 0.18);
  background: rgba(255, 244, 238, 0.92);
  color: #9a3b1b;
  border-radius: 999px;
  padding: 6px 0;
  font-size: 0.78rem;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.storefront-thumb-delete-button:hover,
.storefront-thumb-delete-button:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(154, 59, 27, 0.36);
  box-shadow: 0 10px 18px rgba(154, 59, 27, 0.12);
}

.storefront-thumb-select {
  display: grid;
  gap: 4px;
  justify-items: center;
  text-align: center;
  font-size: 0.75rem;
  color: var(--muted);
}

.storefront-thumb-select input {
  margin: 0;
}

.storefront-thumb-select input:disabled + span {
  color: rgba(117, 105, 95, 0.68);
}

.storefront-note-builder {
  margin-top: 18px;
  padding: 18px;
  border-radius: 20px;
  border: 1px solid rgba(197, 78, 29, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 252, 248, 0.98), rgba(255, 247, 238, 0.9)),
    rgba(255, 255, 255, 0.9);
  display: grid;
  gap: 14px;
}

.storefront-note-head {
  display: grid;
  gap: 6px;
}

.storefront-note-head .field-note {
  margin: 0;
}

.storefront-note-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.storefront-note-toolbar .storefront-note-count {
  margin-right: auto;
}

.storefront-note-error {
  margin: 0;
}

.storefront-note-result {
  display: grid;
  gap: 14px;
  padding-top: 4px;
}

.storefront-note-template-switch {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 10px;
}

.storefront-note-template-button {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border: 1px solid rgba(117, 105, 95, 0.14);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  text-align: left;
  color: var(--ink);
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.storefront-note-template-button strong {
  font-size: 0.92rem;
}

.storefront-note-template-button span {
  font-size: 0.78rem;
  color: var(--muted);
}

.storefront-note-template-button:hover,
.storefront-note-template-button:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(197, 78, 29, 0.28);
  box-shadow: 0 14px 24px rgba(197, 78, 29, 0.12);
}

.storefront-note-template-button.active {
  border-color: rgba(197, 78, 29, 0.32);
  background: linear-gradient(180deg, rgba(255, 250, 246, 0.96), rgba(255, 241, 231, 0.96));
  box-shadow: 0 16px 28px rgba(197, 78, 29, 0.14);
}

.storefront-note-layout {
  display: grid;
  grid-template-columns: minmax(390px, 390px) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.storefront-note-result-head {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: flex-start;
  justify-content: space-between;
}

.storefront-note-result-heading {
  display: grid;
  gap: 6px;
}

.storefront-note-result-title {
  font-size: 1.12rem;
  color: var(--ink);
}

.storefront-note-result-status {
  margin: 0;
}

.storefront-note-result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.storefront-note-phone {
  --note-shell-bg:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.52), transparent 46%),
    linear-gradient(180deg, #27221d, #171411);
  --note-card-bg:
    linear-gradient(180deg, rgba(255, 253, 250, 1), rgba(255, 247, 240, 0.98));
  --note-card-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
  --note-card-border: transparent;
  --note-card-accent:
    linear-gradient(135deg, rgba(205, 92, 45, 0.18), rgba(242, 189, 137, 0));
  --note-store-bg: rgba(205, 92, 45, 0.12);
  --note-store-color: #9f4a22;
  --note-store-border: transparent;
  --note-folder-color: rgba(103, 89, 79, 0.86);
  --note-title-color: #241c16;
  --note-title-size: 1.2rem;
  --note-description-color: #645448;
  --note-body-color: #2f2721;
  --note-tags-color: #9f4a22;
  --note-gallery-gap: 6px;
  --note-image-radius: 16px;
  --note-card-gap: 12px;
  --note-top-color: rgba(255, 248, 240, 0.9);
  position: sticky;
  top: 18px;
  width: 390px;
  display: grid;
  gap: 12px;
}

.storefront-note-phone-device {
  position: relative;
  width: 390px;
  height: 844px;
  padding: 14px;
  border-radius: 46px;
  background: var(--note-shell-bg);
  box-shadow:
    0 28px 54px rgba(31, 25, 21, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 -12px 18px rgba(255, 255, 255, 0.03);
}

.storefront-note-phone-notch {
  position: absolute;
  top: 24px;
  left: 50%;
  z-index: 3;
  width: 132px;
  height: 32px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: rgba(17, 17, 19, 0.94);
  box-shadow:
    inset 0 -1px 0 rgba(255, 255, 255, 0.08),
    0 3px 14px rgba(0, 0, 0, 0.3);
}

.storefront-note-phone-screen {
  position: relative;
  height: 100%;
  padding: 12px;
  overflow-y: auto;
  overscroll-behavior: contain;
  border-radius: 34px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.26), rgba(255, 255, 255, 0.06)),
    rgba(18, 18, 20, 0.22);
  scrollbar-width: none;
}

.storefront-note-phone-screen::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.storefront-note-phone-status {
  position: sticky;
  top: 0;
  z-index: 2;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 18px 12px 14px;
  color: var(--note-top-color);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  backdrop-filter: blur(14px);
  background: linear-gradient(180deg, rgba(19, 19, 21, 0.62), rgba(19, 19, 21, 0));
}

.storefront-note-phone-signal,
.storefront-note-phone-time {
  font-variant-numeric: tabular-nums;
}

.storefront-note-phone-title {
  justify-self: center;
  font-size: 0.82rem;
  font-weight: 600;
}

.storefront-note-phone-tip {
  margin: 0;
  text-align: center;
}

.storefront-note-mobile-card {
  position: relative;
  display: grid;
  gap: var(--note-card-gap);
  min-height: calc(100% - 62px);
  padding: 22px 18px 28px;
  border-radius: 30px;
  overflow: hidden;
  border: 1px solid var(--note-card-border);
  background: var(--note-card-bg);
  box-shadow: var(--note-card-shadow);
}

.storefront-note-mobile-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 112px;
  background: var(--note-card-accent);
  pointer-events: none;
}

.storefront-note-mobile-meta {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 10px;
  font-size: 0.78rem;
}

.storefront-note-mobile-store {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--note-store-border);
  background: var(--note-store-bg);
  color: var(--note-store-color);
  font-weight: 600;
}

.storefront-note-mobile-folder {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  color: var(--note-folder-color);
}

.storefront-note-mobile-title {
  margin: 0;
  position: relative;
  z-index: 1;
  font-size: var(--note-title-size);
  line-height: 1.45;
  color: var(--note-title-color);
}

.storefront-note-mobile-description {
  margin: 0;
  position: relative;
  z-index: 1;
  color: var(--note-description-color);
  line-height: 1.76;
}

.storefront-note-mobile-gallery {
  position: relative;
  z-index: 1;
  display: grid;
  gap: var(--note-gallery-gap);
}

.storefront-note-mobile-gallery[data-count="1"] {
  grid-template-columns: minmax(0, 1fr);
}

.storefront-note-mobile-gallery[data-count="2"],
.storefront-note-mobile-gallery[data-count="4"] {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.storefront-note-mobile-gallery[data-count="3"],
.storefront-note-mobile-gallery[data-count="5"],
.storefront-note-mobile-gallery[data-count="6"],
.storefront-note-mobile-gallery[data-count="7"],
.storefront-note-mobile-gallery[data-count="8"],
.storefront-note-mobile-gallery[data-count="9"] {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.storefront-note-mobile-image {
  margin: 0;
  aspect-ratio: 1 / 1;
  border-radius: var(--note-image-radius);
  overflow: hidden;
  background: rgba(238, 231, 224, 0.82);
}

.storefront-note-mobile-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.storefront-note-mobile-body,
.storefront-note-mobile-tags {
  margin: 0;
  position: relative;
  z-index: 1;
  color: var(--note-body-color);
  white-space: pre-wrap;
  word-break: break-word;
  line-height: 1.82;
}

.storefront-note-mobile-body {
  display: grid;
  gap: 10px;
}

.storefront-note-mobile-body p {
  margin: 0;
}

.storefront-note-mobile-tags {
  color: var(--note-tags-color);
  font-size: 0.95rem;
}

.storefront-note-editor {
  display: grid;
  gap: 14px;
}

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

.storefront-note-editor-grid .field {
  margin: 0;
}

.storefront-note-editor-grid .field-span-2 {
  grid-column: 1 / -1;
}

.storefront-note-input {
  min-height: 46px;
}

.storefront-note-editor textarea.storefront-note-input {
  min-height: 112px;
}

.storefront-note-phone[data-template="journal"] {
  --note-shell-bg:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.38), transparent 42%),
    linear-gradient(180deg, #2d2520, #171411);
  --note-card-bg:
    linear-gradient(180deg, rgba(255, 251, 247, 1), rgba(255, 244, 235, 0.98));
  --note-card-border: rgba(134, 103, 79, 0.12);
  --note-card-accent:
    linear-gradient(180deg, rgba(205, 92, 45, 0.18), rgba(242, 189, 137, 0));
  --note-store-bg: rgba(255, 255, 255, 0.88);
  --note-store-color: #8d451f;
  --note-store-border: rgba(197, 78, 29, 0.08);
  --note-folder-color: rgba(111, 94, 79, 0.86);
  --note-title-size: 1.28rem;
  --note-title-color: #221a14;
  --note-description-color: #645448;
  --note-body-color: #2f2721;
  --note-tags-color: #8d451f;
  --note-gallery-gap: 8px;
  --note-image-radius: 20px;
  --note-card-gap: 14px;
}

.storefront-note-phone[data-template="boutique"] {
  --note-shell-bg:
    radial-gradient(circle at 20% 0, rgba(205, 171, 136, 0.24), transparent 38%),
    linear-gradient(180deg, #202522, #101210);
  --note-card-bg:
    linear-gradient(180deg, rgba(247, 241, 233, 1), rgba(231, 221, 207, 0.98));
  --note-card-border: rgba(74, 63, 48, 0.16);
  --note-card-accent:
    linear-gradient(90deg, rgba(24, 33, 29, 0.82), rgba(24, 33, 29, 0));
  --note-store-bg: rgba(24, 33, 29, 0.88);
  --note-store-color: #f7efe3;
  --note-store-border: rgba(255, 255, 255, 0.08);
  --note-folder-color: rgba(72, 60, 49, 0.88);
  --note-title-size: 1.28rem;
  --note-title-color: #181410;
  --note-description-color: #5e4c3d;
  --note-body-color: #251d17;
  --note-tags-color: #7d5439;
  --note-gallery-gap: 8px;
  --note-image-radius: 22px;
}

.storefront-note-phone[data-template="collage"] {
  --note-shell-bg:
    radial-gradient(circle at 18% 0, rgba(255, 255, 255, 0.48), transparent 32%),
    linear-gradient(135deg, #f28b58, #e6b08f 52%, #f4ddd1);
  --note-card-bg:
    linear-gradient(180deg, rgba(255, 248, 245, 0.98), rgba(255, 239, 231, 0.98));
  --note-card-border: rgba(255, 255, 255, 0.22);
  --note-card-accent:
    radial-gradient(circle at right top, rgba(255, 255, 255, 0.9), transparent 44%),
    linear-gradient(180deg, rgba(197, 78, 29, 0.16), rgba(197, 78, 29, 0));
  --note-store-bg: rgba(255, 255, 255, 0.78);
  --note-store-color: #bf572b;
  --note-store-border: rgba(191, 87, 43, 0.1);
  --note-folder-color: rgba(112, 75, 56, 0.86);
  --note-title-size: 1.18rem;
  --note-title-color: #302018;
  --note-description-color: #7c5945;
  --note-body-color: #36241b;
  --note-tags-color: #c05a2d;
  --note-gallery-gap: 8px;
  --note-image-radius: 24px;
}

.storefront-note-phone[data-template="minimal"] {
  --note-shell-bg:
    linear-gradient(180deg, #1b1b1d, #09090b);
  --note-card-bg:
    linear-gradient(180deg, rgba(255, 255, 255, 1), rgba(249, 249, 248, 1));
  --note-card-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.94),
    0 18px 34px rgba(15, 15, 15, 0.08);
  --note-card-border: rgba(15, 15, 15, 0.06);
  --note-card-accent: linear-gradient(90deg, rgba(20, 20, 22, 0.82), rgba(20, 20, 22, 0.82));
  --note-store-bg: transparent;
  --note-store-color: #151515;
  --note-store-border: rgba(21, 21, 21, 0.12);
  --note-folder-color: rgba(84, 84, 84, 0.9);
  --note-title-size: 1.12rem;
  --note-title-color: #171717;
  --note-description-color: #66605a;
  --note-body-color: #23211f;
  --note-tags-color: #525252;
  --note-gallery-gap: 4px;
  --note-image-radius: 10px;
  --note-card-gap: 14px;
  --note-top-color: rgba(255, 255, 255, 0.78);
}

.storefront-note-phone[data-template="minimal"] .storefront-note-mobile-card::before {
  height: 3px;
}

.storefront-note-phone[data-template="minimal"] .storefront-note-mobile-meta {
  padding-top: 12px;
}

.storefront-note-phone[data-template="minimal"] .storefront-note-mobile-title {
  letter-spacing: 0.02em;
}

.storefront-note-phone[data-template="journal"] .storefront-note-mobile-card,
.storefront-note-phone[data-template="boutique"] .storefront-note-mobile-card,
.storefront-note-phone[data-template="collage"] .storefront-note-mobile-card,
.storefront-note-phone[data-template="story"] .storefront-note-mobile-card {
  display: flex;
  flex-direction: column;
}

.storefront-note-phone[data-template="journal"] .storefront-note-mobile-meta {
  order: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.storefront-note-phone[data-template="journal"] .storefront-note-mobile-title {
  order: 2;
}

.storefront-note-phone[data-template="journal"] .storefront-note-mobile-gallery {
  order: 3;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.storefront-note-phone[data-template="journal"] .storefront-note-mobile-gallery[data-count="1"] {
  grid-template-columns: 1fr;
}

.storefront-note-phone[data-template="journal"] .storefront-note-mobile-image:first-child {
  grid-column: 1 / -1;
  aspect-ratio: auto;
  min-height: 238px;
  border-radius: 24px;
}

.storefront-note-phone[data-template="journal"] .storefront-note-mobile-description {
  order: 4;
  padding: 16px 18px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.82);
}

.storefront-note-phone[data-template="journal"] .storefront-note-mobile-body {
  order: 5;
  gap: 12px;
}

.storefront-note-phone[data-template="journal"] .storefront-note-mobile-body p {
  padding: 16px 18px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 12px 24px rgba(44, 31, 23, 0.05);
}

.storefront-note-phone[data-template="journal"] .storefront-note-mobile-tags {
  order: 6;
  padding: 12px 14px;
  border-radius: 20px;
  background: rgba(255, 243, 234, 0.92);
}

.storefront-note-phone[data-template="boutique"] .storefront-note-mobile-card {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.84),
    0 18px 32px rgba(35, 26, 20, 0.08);
}

.storefront-note-phone[data-template="boutique"] .storefront-note-mobile-title {
  order: 1;
  padding: 6px 2px 0;
}

.storefront-note-phone[data-template="boutique"] .storefront-note-mobile-description {
  order: 2;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(90, 73, 59, 0.12);
}

.storefront-note-phone[data-template="boutique"] .storefront-note-mobile-tags {
  order: 3;
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(24, 33, 29, 0.06);
  color: #6f4f38;
}

.storefront-note-phone[data-template="boutique"] .storefront-note-mobile-gallery {
  order: 4;
  grid-template-columns: 1.15fr 0.85fr;
  grid-auto-rows: 110px;
  gap: 8px;
}

.storefront-note-phone[data-template="boutique"] .storefront-note-mobile-gallery[data-count="1"] {
  grid-template-columns: 1fr;
  grid-auto-rows: auto;
}

.storefront-note-phone[data-template="boutique"] .storefront-note-mobile-gallery[data-count="2"] {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 160px;
}

.storefront-note-phone[data-template="boutique"] .storefront-note-mobile-image:first-child {
  grid-row: span 2;
  aspect-ratio: auto;
  min-height: 228px;
  border-radius: 28px;
}

.storefront-note-phone[data-template="boutique"] .storefront-note-mobile-meta {
  order: 5;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding-top: 4px;
}

.storefront-note-phone[data-template="boutique"] .storefront-note-mobile-body {
  order: 6;
  gap: 12px;
}

.storefront-note-phone[data-template="boutique"] .storefront-note-mobile-body p {
  padding-left: 14px;
  border-left: 3px solid rgba(125, 84, 57, 0.28);
}

.storefront-note-phone[data-template="collage"] .storefront-note-mobile-meta {
  order: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.storefront-note-phone[data-template="collage"] .storefront-note-mobile-gallery {
  order: 2;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.storefront-note-phone[data-template="collage"] .storefront-note-mobile-gallery[data-count="1"] {
  grid-template-columns: 1fr;
}

.storefront-note-phone[data-template="collage"] .storefront-note-mobile-gallery[data-count="2"] {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.storefront-note-phone[data-template="collage"] .storefront-note-mobile-gallery[data-count="3"] .storefront-note-mobile-image:first-child,
.storefront-note-phone[data-template="collage"] .storefront-note-mobile-gallery[data-count="4"] .storefront-note-mobile-image:first-child,
.storefront-note-phone[data-template="collage"] .storefront-note-mobile-gallery[data-count="5"] .storefront-note-mobile-image:first-child,
.storefront-note-phone[data-template="collage"] .storefront-note-mobile-gallery[data-count="6"] .storefront-note-mobile-image:first-child,
.storefront-note-phone[data-template="collage"] .storefront-note-mobile-gallery[data-count="7"] .storefront-note-mobile-image:first-child,
.storefront-note-phone[data-template="collage"] .storefront-note-mobile-gallery[data-count="8"] .storefront-note-mobile-image:first-child,
.storefront-note-phone[data-template="collage"] .storefront-note-mobile-gallery[data-count="9"] .storefront-note-mobile-image:first-child {
  grid-column: span 2;
  grid-row: span 2;
  aspect-ratio: auto;
  min-height: 180px;
}

.storefront-note-phone[data-template="collage"] .storefront-note-mobile-image:nth-child(2n) {
  border-top-right-radius: 26px;
  border-bottom-left-radius: 26px;
}

.storefront-note-phone[data-template="collage"] .storefront-note-mobile-title {
  order: 3;
  padding: 14px 16px 0;
  border-radius: 26px 26px 0 0;
  background: rgba(255, 255, 255, 0.72);
}

.storefront-note-phone[data-template="collage"] .storefront-note-mobile-description {
  order: 4;
  margin-top: -6px;
  padding: 6px 16px 16px;
  border-radius: 0 0 26px 26px;
  background: rgba(255, 255, 255, 0.72);
}

.storefront-note-phone[data-template="collage"] .storefront-note-mobile-body {
  order: 5;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.storefront-note-phone[data-template="collage"] .storefront-note-mobile-body p:nth-child(odd) {
  grid-column: span 2;
  padding: 16px 18px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.78);
}

.storefront-note-phone[data-template="collage"] .storefront-note-mobile-body p:nth-child(even) {
  padding: 15px 16px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.58);
}

.storefront-note-phone[data-template="collage"] .storefront-note-mobile-tags {
  order: 6;
  padding: 12px 14px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.72);
}

.storefront-note-phone[data-template="story"] {
  --note-shell-bg:
    linear-gradient(180deg, #e7e0d5, #d5cbbd);
  --note-card-bg:
    linear-gradient(180deg, rgba(247, 244, 239, 1), rgba(247, 244, 239, 1));
  --note-card-shadow: none;
  --note-card-border: transparent;
  --note-card-accent: transparent;
  --note-store-bg: rgba(255, 255, 255, 0.9);
  --note-store-color: #4d4438;
  --note-store-border: rgba(104, 93, 80, 0.08);
  --note-folder-color: rgba(100, 91, 82, 0.88);
  --note-title-size: 1.16rem;
  --note-title-color: #1f1b17;
  --note-description-color: #696056;
  --note-body-color: #5c554c;
  --note-tags-color: #ffffff;
  --note-gallery-gap: 12px;
  --note-image-radius: 28px;
  --note-card-gap: 16px;
  --note-top-color: rgba(71, 63, 53, 0.92);
}

.storefront-note-phone[data-template="story"] .storefront-note-phone-screen {
  background: #f7f4ef;
}

.storefront-note-phone[data-template="story"] .storefront-note-phone-status {
  background: linear-gradient(180deg, rgba(247, 244, 239, 0.96), rgba(247, 244, 239, 0));
}

.storefront-note-phone[data-template="story"] .storefront-note-mobile-card {
  padding: 12px 10px 22px;
  background: transparent;
  box-shadow: none;
  border: none;
}

.storefront-note-phone[data-template="story"] .storefront-note-mobile-card::before {
  display: none;
}

.storefront-note-phone[data-template="story"] .storefront-note-mobile-meta {
  order: 1;
  grid-template-columns: 1fr auto;
  align-items: start;
  gap: 10px;
}

.storefront-note-phone[data-template="story"] .storefront-note-mobile-store {
  justify-self: end;
  padding: 7px 12px;
  border-radius: 999px;
  box-shadow: 0 8px 18px rgba(55, 46, 38, 0.08);
}

.storefront-note-phone[data-template="story"] .storefront-note-mobile-folder {
  align-self: center;
  font-size: 0.76rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.storefront-note-phone[data-template="story"] .storefront-note-mobile-title {
  order: 2;
  padding: 20px 18px 0;
  border-radius: 28px 28px 0 0;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 14px 28px rgba(62, 53, 45, 0.08);
}

.storefront-note-phone[data-template="story"] .storefront-note-mobile-description {
  order: 3;
  margin-top: -4px;
  padding: 8px 18px 18px;
  border-radius: 0 0 28px 28px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 14px 28px rgba(62, 53, 45, 0.08);
}

.storefront-note-phone[data-template="story"] .storefront-note-mobile-gallery {
  order: 4;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.storefront-note-phone[data-template="story"] .storefront-note-mobile-gallery[data-count="1"],
.storefront-note-phone[data-template="story"] .storefront-note-mobile-gallery[data-count="2"],
.storefront-note-phone[data-template="story"] .storefront-note-mobile-gallery[data-count="3"],
.storefront-note-phone[data-template="story"] .storefront-note-mobile-gallery[data-count="4"],
.storefront-note-phone[data-template="story"] .storefront-note-mobile-gallery[data-count="5"],
.storefront-note-phone[data-template="story"] .storefront-note-mobile-gallery[data-count="6"],
.storefront-note-phone[data-template="story"] .storefront-note-mobile-gallery[data-count="7"],
.storefront-note-phone[data-template="story"] .storefront-note-mobile-gallery[data-count="8"],
.storefront-note-phone[data-template="story"] .storefront-note-mobile-gallery[data-count="9"] {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.storefront-note-phone[data-template="story"] .storefront-note-mobile-image:first-child {
  grid-column: 1 / -1;
  aspect-ratio: auto;
  min-height: 250px;
  border-radius: 30px;
}

.storefront-note-phone[data-template="story"] .storefront-note-mobile-image:not(:first-child) {
  min-height: 132px;
}

.storefront-note-phone[data-template="story"] .storefront-note-mobile-body {
  order: 5;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.storefront-note-phone[data-template="story"] .storefront-note-mobile-body p {
  grid-column: span 2;
  padding: 18px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 14px 28px rgba(62, 53, 45, 0.08);
}

.storefront-note-phone[data-template="story"] .storefront-note-mobile-body p::before {
  display: block;
  margin-bottom: 10px;
  font-size: 0.63rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #8f8579;
}

.storefront-note-phone[data-template="story"] .storefront-note-mobile-body p:nth-child(1)::before {
  content: "Scene 01";
}

.storefront-note-phone[data-template="story"] .storefront-note-mobile-body p:nth-child(2)::before,
.storefront-note-phone[data-template="story"] .storefront-note-mobile-body p:nth-child(3)::before {
  content: "Selling Point";
}

.storefront-note-phone[data-template="story"] .storefront-note-mobile-body p:nth-child(4)::before {
  content: "Detail Block";
}

.storefront-note-phone[data-template="story"] .storefront-note-mobile-body p:nth-child(n + 5)::before {
  content: "Gallery Copy";
}

.storefront-note-phone[data-template="story"] .storefront-note-mobile-body p:nth-child(2),
.storefront-note-phone[data-template="story"] .storefront-note-mobile-body p:nth-child(3) {
  grid-column: span 1;
  min-height: 170px;
}

.storefront-note-phone[data-template="story"] .storefront-note-mobile-body p:nth-child(4) {
  background: #efe8de;
}

.storefront-note-phone[data-template="story"] .storefront-note-mobile-tags {
  order: 6;
  padding: 18px 18px 20px;
  border-radius: 28px;
  background: #191816;
  box-shadow: 0 18px 28px rgba(25, 24, 22, 0.14);
}

.storefront-note-phone[data-template="story"] .storefront-note-mobile-tags::before {
  content: "Final CTA";
  display: block;
  margin-bottom: 10px;
  font-size: 0.63rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
}

.storefront-note-copytext {
  min-height: 180px;
}

.storefront-note-link-panel {
  display: grid;
  gap: 12px;
  padding: 16px;
  border-radius: 22px;
  background: rgba(255, 252, 248, 0.82);
  border: 1px solid rgba(117, 105, 95, 0.12);
}

.storefront-note-link-head {
  display: grid;
  gap: 6px;
}

.storefront-note-link-head .field-note {
  margin: 0;
}

.storefront-note-link-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.storefront-note-link {
  font-variant-numeric: tabular-nums;
}

.storefront-note-image-builder {
  display: grid;
  gap: 14px;
}

.storefront-note-image-head {
  display: grid;
  gap: 6px;
}

.storefront-note-image-head .field-note {
  margin: 0;
}

.storefront-note-image-toolbar {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 180px)) auto;
  gap: 12px;
  align-items: end;
}

.storefront-note-image-toolbar .field {
  margin: 0;
}

.storefront-note-generated {
  display: grid;
  gap: 12px;
}

.storefront-note-generated-head {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: baseline;
  justify-content: space-between;
}

.storefront-note-generated-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}

.storefront-note-generated-card {
  display: grid;
  gap: 10px;
  padding: 10px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(117, 105, 95, 0.12);
}

.storefront-note-generated-image {
  display: block;
  aspect-ratio: 1 / 1;
  border-radius: 14px;
  overflow: hidden;
  background: rgba(238, 231, 224, 0.82);
}

.storefront-note-generated-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.storefront-note-generated-card .secondary-button {
  width: 100%;
}

.storefront-note-history-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 12px;
  align-items: end;
  margin-bottom: 18px;
}

.storefront-note-history-search .field {
  margin: 0;
}

.storefront-note-history-list {
  display: grid;
  gap: 16px;
}

.storefront-note-history-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 24px;
  background: rgba(255, 252, 248, 0.82);
  border: 1px solid rgba(117, 105, 95, 0.12);
}

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

.storefront-note-history-head h3 {
  margin: 6px 0 0;
  font-size: 1.05rem;
  color: var(--ink);
}

.storefront-note-history-stage {
  display: flex;
  justify-content: center;
}

.storefront-note-history-preview-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.storefront-note-phone-history {
  position: static;
  width: 332px;
}

.storefront-note-phone-history .storefront-note-phone-device {
  width: 332px;
  height: 720px;
  padding: 12px;
  border-radius: 38px;
}

.storefront-note-phone-history .storefront-note-phone-notch {
  top: 18px;
  width: 112px;
  height: 26px;
}

.storefront-note-phone-history .storefront-note-phone-screen {
  border-radius: 28px;
}

.storefront-note-phone-history .storefront-note-phone-status {
  padding: 16px 10px 12px;
}

.storefront-note-phone-history .storefront-note-mobile-card {
  min-height: calc(100% - 54px);
  padding: 18px 15px 24px;
  border-radius: 24px;
}

.storefront-note-phone-history .storefront-note-mobile-card::before {
  height: 92px;
}

.storefront-note-phone-history .storefront-note-mobile-title {
  font-size: clamp(1rem, 1.5vw, 1.16rem);
}

.storefront-note-phone-history .storefront-note-mobile-description,
.storefront-note-phone-history .storefront-note-mobile-body,
.storefront-note-phone-history .storefront-note-mobile-tags {
  font-size: 0.9rem;
}

.storefront-note-public-body {
  min-height: 100vh;
  background:
    radial-gradient(circle at top, rgba(255, 231, 214, 0.78), transparent 34%),
    linear-gradient(180deg, #f5efe8, #efe6dc);
}

.storefront-note-public-shell {
  width: min(1120px, calc(100% - 28px));
}

.storefront-note-public-panel {
  display: grid;
  gap: 22px;
}

.storefront-note-public-head {
  align-items: flex-start;
}

.storefront-note-public-stage {
  display: flex;
  justify-content: center;
}

.storefront-note-phone-public {
  position: static;
}

.storefront-note-public-copy {
  margin-top: 6px;
}

.storefront-note-generate:disabled {
  cursor: not-allowed;
}

.storefront-note-image-generate:disabled {
  cursor: not-allowed;
}

.storefront-note-image-generate[data-busy="1"]:disabled {
  cursor: progress;
}

.storefront-note-generate[data-busy="1"]:disabled {
  cursor: progress;
}

.storefront-empty {
  padding: 16px 18px;
  border-radius: 22px;
  background: rgba(255, 248, 240, 0.62);
}

.stores-category-table code,
.stores-path-cell code {
  display: inline-block;
  max-width: 100%;
  padding: 4px 8px;
  border-radius: 12px;
  background: rgba(255, 248, 240, 0.86);
  color: #7f4b21;
  word-break: break-all;
}

.history-manual-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.history-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.history-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
}

.history-manual-submit {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.history-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  align-items: start;
}

.history-main > .history-list,
.history-main > .history-empty {
  grid-column: 1 / -1;
}

.history-card,
.history-empty {
  background: var(--card);
  backdrop-filter: blur(18px);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  border-radius: var(--radius-xl);
}

.history-card {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 12px;
  min-width: 0;
  padding: 14px;
}

.secondary-button {
  border: 1px solid rgba(62, 43, 23, 0.12);
  background: rgba(255, 255, 255, 0.66);
  color: var(--text);
  border-radius: 999px;
  padding: 10px 14px;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.secondary-button:hover,
.secondary-button:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(197, 78, 29, 0.32);
  box-shadow: 0 12px 20px rgba(197, 78, 29, 0.12);
}

.history-card-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.history-title {
  min-width: 0;
}

.community-owner,
.community-progress {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.community-rule-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.community-actions {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.history-card .community-actions,
.community-pin .community-actions.compact {
  margin-top: auto;
}

.community-actions form {
  margin: 0;
}

.community-reward-note {
  color: var(--muted);
  line-height: 1.6;
}

.community-shell {
  width: min(1480px, calc(100% - 24px));
}

.community-topbar {
  position: sticky;
  top: 10px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 18px;
  margin-bottom: 14px;
  border-radius: 999px;
  background: rgba(255, 248, 238, 0.88);
  backdrop-filter: blur(18px);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.community-brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.community-brand h1 {
  margin: 4px 0 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.3rem;
}

.community-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 112px;
  padding: 12px 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, #c54e1d, #8f2f07);
  color: #fff9f2;
  text-decoration: none;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
}

.community-top-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.community-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(320px, 0.82fr);
  gap: 18px;
  margin-bottom: 16px;
  align-items: start;
}

.community-toolbar-copy,
.community-stats {
  background: var(--card);
  backdrop-filter: blur(18px);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  border-radius: var(--radius-xl);
}

.community-toolbar-copy {
  padding: 20px 22px;
}

.community-lead {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.community-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  padding: 14px;
}

.community-filters {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
  padding: 12px 14px;
  border-radius: 24px;
  background: rgba(255, 248, 238, 0.78);
  border: 1px solid rgba(62, 43, 23, 0.08);
  backdrop-filter: blur(16px);
}

.community-chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.community-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(62, 43, 23, 0.1);
  color: var(--text);
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.community-chip:hover,
.community-chip:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(197, 78, 29, 0.32);
  box-shadow: 0 12px 20px rgba(197, 78, 29, 0.12);
}

.community-chip.active {
  background: linear-gradient(135deg, #ffedd8, #ffc7aa);
  color: var(--primary-deep);
  border-color: rgba(197, 78, 29, 0.36);
}

.community-main {
  display: grid;
  gap: 20px;
}

.community-masonry {
  column-count: 4;
  column-gap: 18px;
}

.community-pin {
  display: grid;
  break-inside: avoid;
  margin: 0 0 16px;
  overflow: hidden;
  border-radius: 22px;
  background: rgba(255, 250, 243, 0.92);
  border: 1px solid rgba(62, 43, 23, 0.08);
  box-shadow: 0 18px 36px rgba(71, 43, 14, 0.14);
}

.community-pin-media {
  position: relative;
  display: block;
  color: inherit;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.76);
  isolation: isolate;
}

.community-pin-media-button {
  width: 100%;
  padding: 0;
  border: 0;
  appearance: none;
  cursor: zoom-in;
}

.community-pin-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 18, 16, 0.04), rgba(20, 18, 16, 0.5));
  opacity: 0;
  transition: opacity 180ms ease;
}

.community-pin-media img,
.community-pin-media video {
  display: block;
  width: 100%;
  height: auto;
}

.community-pin-media video {
  background: rgba(20, 18, 16, 0.9);
}

.community-pin-hover-cta {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 84px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255, 248, 238, 0.92);
  color: var(--text);
  font-size: 0.86rem;
  font-weight: 700;
  transform: translate(-50%, calc(-50% + 10px));
  opacity: 0;
  transition: transform 180ms ease, opacity 180ms ease;
  pointer-events: none;
}

.community-pin-media:hover::after,
.community-pin-media:focus-visible::after {
  opacity: 1;
}

.community-pin-media:hover .community-pin-hover-cta,
.community-pin-media:focus-visible .community-pin-hover-cta {
  opacity: 1;
  transform: translate(-50%, -50%);
}

.community-pin-badge,
.community-pin-stack,
.community-pin-preview-pill {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(20, 18, 16, 0.74);
  color: #fff8f2;
  font-size: 0.78rem;
  backdrop-filter: blur(10px);
}

.community-pin-badge {
  left: 12px;
  bottom: 12px;
}

.community-pin-stack {
  right: 12px;
  top: 12px;
}

.community-pin-preview-pill {
  right: 12px;
  bottom: 12px;
  z-index: 1;
  background: rgba(255, 248, 238, 0.92);
  color: var(--text);
}

.community-pin-body {
  display: grid;
  gap: 12px;
  padding: 14px 14px 16px;
}

.community-pin-body h2 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1rem;
  line-height: 1.3;
}

.community-pin-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 0;
}

.community-actions.compact .secondary-link,
.community-actions.compact .secondary-button {
  padding: 9px 12px;
}

.community-preview-trigger {
  margin-top: 0;
}

body.community-modal-open {
  overflow: hidden;
}

.community-modal[hidden] {
  display: none;
}

.community-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 20px;
}

.community-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 18, 16, 0.72);
  backdrop-filter: blur(10px);
}

.community-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(1440px, calc(100vw - 24px));
  max-height: calc(100vh - 40px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 14px;
  border-radius: 24px;
  background: rgba(255, 250, 243, 0.96);
  border: 1px solid rgba(62, 43, 23, 0.1);
  box-shadow: 0 24px 60px rgba(20, 18, 16, 0.28);
}

.community-modal-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.community-modal-toolbar .secondary-link,
.community-modal-toolbar .community-modal-close {
  margin: 0;
}

.community-modal-note {
  margin: 0 0 12px;
  color: var(--muted);
  line-height: 1.6;
}

.community-modal-stage {
  overflow: auto;
  flex: 1;
  min-height: 0;
  max-height: calc(100vh - 150px);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.84);
  display: grid;
  place-items: center;
}

.community-modal-image {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 100%;
  object-fit: contain;
  border-radius: 18px;
  cursor: zoom-in;
}

.community-modal-stage.is-zoomed {
  place-items: start center;
}

.community-modal-image.community-modal-image-zoomed {
  width: auto;
  min-width: min(1400px, 140%);
  max-width: none;
  max-height: none;
  cursor: zoom-out;
}

.community-modal-title {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.2rem;
}

.community-modal-text {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.community-purchase-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 18px;
}

.community-modal-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 12px auto;
  padding: 9px 12px;
  border: 1px solid rgba(62, 43, 23, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--text);
  cursor: pointer;
}

.history-card-head h2,
.history-empty h2 {
  margin: 4px 0 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.92rem;
  line-height: 1.25;
  white-space: normal;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.history-time {
  color: var(--muted);
  font-size: 0.8rem;
}

.history-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 6px;
}

.history-tag {
  display: inline-flex;
  align-items: center;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(31, 95, 104, 0.12);
  color: var(--accent);
  font-size: 0.78rem;
}

.history-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.history-meta > div {
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.56);
  border: 1px solid rgba(62, 43, 23, 0.08);
}

.history-meta strong {
  display: block;
  margin-top: 8px;
}

.history-prompt {
  margin: 16px 0 0;
  color: var(--muted);
  line-height: 1.75;
}

.history-gallery {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  margin-top: 0;
  align-items: start;
}

.history-gallery .history-thumb:not(:first-child) {
  display: none;
}

.history-thumb {
  display: block;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(62, 43, 23, 0.08);
  background: rgba(255, 255, 255, 0.68);
  width: 100%;
  max-width: none;
  aspect-ratio: 1 / 1;
}

.history-thumb-video {
  position: relative;
}

.history-thumb-badge {
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(20, 18, 16, 0.72);
  color: #fff9f2;
  font-size: 0.78rem;
}

.history-card .history-tags .history-tag:nth-child(n + 3) {
  display: none;
}

.history-card .community-actions {
  margin-top: auto;
  gap: 8px;
}

.history-card .community-reward-note {
  display: none;
}

.history-card .secondary-link,
.history-card .secondary-button {
  margin-top: 0;
  padding: 8px 10px;
  font-size: 0.8rem;
}

.history-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.history-thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: rgba(20, 18, 16, 0.86);
}

.history-empty {
  padding: 28px;
}

.history-empty p {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.75;
}

.estimate-card {
  padding: 18px 20px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(255, 239, 222, 0.96), rgba(255, 206, 177, 0.7));
  border: 1px solid rgba(197, 78, 29, 0.18);
}

.estimate-card strong {
  display: block;
  margin-top: 8px;
  font-size: 1.6rem;
  font-family: "Space Grotesk", sans-serif;
}

.estimate-card p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.pricing-table-wrap {
  overflow-x: auto;
  border-radius: 22px;
  border: 1px solid rgba(62, 43, 23, 0.1);
  background: rgba(255, 255, 255, 0.56);
}

.pricing-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 520px;
}

.pricing-table th,
.pricing-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid rgba(62, 43, 23, 0.08);
}

.pricing-table th {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.92rem;
  background: rgba(255, 248, 235, 0.9);
}

.pricing-table tbody tr:last-child td {
  border-bottom: 0;
}

.primary-button,
.download-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  padding: 14px 22px;
  text-decoration: none;
  cursor: pointer;
}

.primary-button {
  color: #fff9f2;
  background: linear-gradient(135deg, var(--primary), #dd6c38);
  box-shadow: 0 16px 28px rgba(197, 78, 29, 0.24);
  min-width: 146px;
  transition: transform 180ms ease, box-shadow 180ms ease, opacity 180ms ease;
}

.primary-button:hover,
.primary-button:focus-visible,
.download-link:hover,
.download-link:focus-visible {
  transform: translateY(-1px);
}

.primary-button:disabled {
  opacity: 0.68;
  cursor: progress;
  box-shadow: none;
}

kbd {
  padding: 3px 6px;
  border-radius: 8px;
  background: rgba(31, 26, 21, 0.08);
  font-family: "Space Grotesk", sans-serif;
}

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

.progress-wrap {
  margin-bottom: 16px;
  padding: 14px 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(62, 43, 23, 0.08);
}

.progress-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.progress-meta strong {
  font-family: "Space Grotesk", sans-serif;
}

.progress-meta span {
  color: var(--muted);
  font-size: 0.92rem;
}

.progress-track {
  overflow: hidden;
  height: 10px;
  border-radius: 999px;
  background: rgba(31, 95, 104, 0.12);
}

.progress-bar {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary), #dd6c38, #f3ad7f);
  box-shadow: 0 8px 16px rgba(197, 78, 29, 0.18);
  transition: width 280ms ease;
}

.status-pill {
  min-width: 82px;
  padding: 9px 14px;
  text-align: center;
  border-radius: 999px;
  background: rgba(31, 95, 104, 0.12);
  color: var(--accent);
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
}

.status-pill.loading {
  background: rgba(197, 78, 29, 0.12);
  color: var(--primary-deep);
}

.status-pill.error {
  background: rgba(151, 42, 42, 0.12);
  color: #972a2a;
}

.usage-card {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 14px;
  margin-bottom: 18px;
  border-radius: 22px;
  padding: 16px;
}

.gallery {
  min-height: 480px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  align-content: start;
}

.empty-state {
  min-height: 420px;
  border: 1px dashed rgba(62, 43, 23, 0.16);
  border-radius: 24px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 24px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.52), rgba(255, 245, 233, 0.72));
}

.image-card {
  background: rgba(255, 250, 242, 0.92);
  border: 1px solid rgba(62, 43, 23, 0.1);
  border-radius: 24px;
  overflow: hidden;
  animation: rise 260ms ease both;
}

.image-frame {
  aspect-ratio: 1 / 1;
  background:
    linear-gradient(135deg, rgba(31, 95, 104, 0.12), rgba(197, 78, 29, 0.12));
}

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

.video-frame {
  aspect-ratio: 16 / 9;
}

.video-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: rgba(20, 18, 16, 0.86);
}

.image-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
}

.image-meta {
  min-width: 0;
}

.image-title {
  display: block;
}

.image-filename {
  display: block;
  margin-top: 6px;
  font-size: 0.85rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.download-link {
  padding: 10px 14px;
  background: rgba(31, 95, 104, 0.1);
  color: var(--accent);
  font-size: 0.92rem;
  white-space: nowrap;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1024px) {
  .hero,
  .workspace,
  .pricing-hero,
  .login-main,
  .account-main,
  .account-overview-grid,
  .community-toolbar,
  .stores-section-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy-layout {
    grid-template-columns: 1fr;
  }

  .history-meta,
  .usage-card {
    grid-template-columns: 1fr;
  }

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

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

  .balance-custom-row {
    grid-template-columns: 1fr;
  }

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

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

  .storefront-gallery {
    --storefront-thumb-size: 80px;
  }

  .storefront-note-layout {
    grid-template-columns: 1fr;
  }

  .storefront-note-phone {
    position: static;
    width: min(390px, 100%);
    margin: 0 auto;
  }

  .storefront-note-phone-device {
    width: min(390px, 100%);
    margin: 0 auto;
  }

  .storefront-note-editor-grid {
    grid-template-columns: 1fr;
  }

  .storefront-note-editor-grid .field-span-2 {
    grid-column: auto;
  }

  .storefront-note-template-switch {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .storefront-note-image-toolbar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .storefront-note-image-toolbar .primary-button {
    grid-column: 1 / -1;
  }

  .storefront-note-history-search {
    grid-template-columns: 1fr;
  }

  .storefront-note-phone-history {
    width: min(332px, 100%);
  }

  .storefront-note-phone-history .storefront-note-phone-device {
    width: min(332px, 100%);
  }

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

  .history-main {
    grid-template-columns: 1fr;
  }

  .history-helper-panel {
    grid-column: auto;
    position: static;
  }

  .stores-main--with-switcher {
    grid-template-columns: 1fr;
  }

  .stores-main--with-switcher .stores-main-sidebar,
  .stores-main--with-switcher .stores-main-wide,
  .stores-main--with-switcher .stores-main-primary {
    grid-column: auto;
    grid-row: auto;
    position: static;
  }

  .storefront-switcher.stores-main-sidebar {
    max-height: none;
    overflow: visible;
  }

  .community-topbar,
  .community-filters {
    border-radius: 28px;
    flex-direction: column;
    align-items: flex-start;
  }

  .community-stats {
    grid-template-columns: 1fr;
  }

  .community-masonry {
    column-count: 3;
  }
}

@media (max-width: 720px) {
  .page-shell {
    width: min(100% - 18px, 100%);
    padding-top: 10px;
  }

  .hero-copy,
  .hero-note,
  .panel {
    padding: 18px;
  }

  .hero-compare {
    padding: 12px;
  }

  .hero-compare-stage {
    aspect-ratio: 1 / 1;
  }

  .progress-meta {
    flex-direction: column;
    align-items: flex-start;
  }

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

  .stores-form-grid {
    grid-template-columns: 1fr;
  }

  .scene-grid,
  .workflow-grid,
  .plan-meta,
  .history-meta {
    grid-template-columns: 1fr;
  }

  .plan-grid,
  .account-grid {
    grid-template-columns: 1fr;
  }

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

  .history-manual-grid {
    grid-template-columns: 1fr;
  }

  .storefront-head,
  .storefront-category-head,
  .storefront-product-top,
  .storefront-product-meta,
  .storefront-folder-head,
  .storefront-folder-stats {
    flex-direction: column;
    align-items: flex-start;
  }

  .storefront-product-grid {
    grid-template-columns: 1fr;
  }

  .storefront-gallery {
    --storefront-thumb-size: 72px;
  }

  .storefront-note-builder {
    padding: 16px;
  }

  .storefront-note-template-switch {
    grid-template-columns: 1fr;
  }

  .storefront-note-phone-device {
    height: min(844px, 76vh);
    padding: 12px;
    border-radius: 34px;
  }

  .storefront-note-phone-notch {
    top: 18px;
    width: 110px;
    height: 26px;
  }

  .storefront-note-phone-screen {
    border-radius: 26px;
  }

  .storefront-note-mobile-card {
    min-height: 0;
    padding: 20px 16px 24px;
  }

  .storefront-note-mobile-title {
    font-size: 1.05rem;
  }

  .storefront-note-link-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .storefront-note-image-toolbar {
    grid-template-columns: 1fr;
  }

  .storefront-note-history-card,
  .storefront-note-history-head {
    gap: 12px;
  }

  .storefront-note-phone-history .storefront-note-phone-device {
    height: min(720px, 72vh);
    border-radius: 32px;
  }

  .storefront-note-phone-history .storefront-note-phone-notch {
    top: 16px;
    width: 102px;
    height: 24px;
  }

  .storefront-folder-rename {
    grid-template-columns: 1fr;
  }

  .stores-form-grid .field-span-2,
  .stores-form-grid .field-span-3 {
    grid-column: span 1;
  }

  .support-widget {
    right: 12px;
    bottom: 14px;
  }

  .support-widget-panel {
    width: min(calc(100vw - 24px), 380px);
    max-height: min(76vh, 620px);
  }

  .support-widget-form {
    grid-template-columns: 1fr;
  }

  .history-card-head,
  .history-tags,
  .quick-links,
  .pricing-glance,
  .history-meta,
  .plan-meta,
  .hero-metrics {
    gap: 10px;
  }

  .plan-meta {
    gap: 10px;
  }

  .community-shell {
    width: min(100% - 14px, 100%);
  }

  .community-brand {
    align-items: flex-start;
    flex-direction: column;
  }

  .community-logo {
    min-width: 0;
  }

  .community-masonry {
    column-count: 2;
    column-gap: 12px;
  }

  .form-actions,
  .output-head,
  .image-card-footer,
  .history-manual-submit,
  .community-purchase-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .download-link,
  .primary-button {
    width: 100%;
  }
}

.fabric-demo-body {
  color: #1b1f27;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.92), transparent 22%),
    linear-gradient(180deg, #f2f3f5 0%, #eceef1 100%);
}

.fabric-demo-page {
  width: min(1680px, calc(100% - 24px));
  margin: 0 auto;
  padding: 14px 0 28px;
}

.fabric-demo-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.fabric-demo-back,
.fabric-demo-back:visited {
  color: #5f6776;
  text-decoration: none;
  font-size: 0.92rem;
}

.fabric-demo-eyebrow {
  margin: 4px 0 0;
  color: #8f96a3;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.fabric-demo-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(101, 111, 128, 0.12);
  color: #4f5868;
  font-size: 0.88rem;
  box-shadow: 0 18px 32px rgba(57, 63, 72, 0.08);
}

.fabric-demo-shell {
  display: grid;
  grid-template-columns: 230px minmax(420px, 520px) minmax(560px, 1fr);
  min-height: calc(100vh - 96px);
  border-radius: 30px;
  overflow: hidden;
  background: rgba(244, 245, 247, 0.94);
  border: 1px solid rgba(111, 120, 134, 0.1);
  box-shadow: 0 30px 60px rgba(46, 50, 58, 0.08);
}

.fabric-demo-sidebar,
.fabric-demo-controls,
.fabric-demo-stage {
  min-width: 0;
}

.fabric-demo-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 22px 16px 18px;
  background: rgba(248, 249, 250, 0.96);
  border-right: 1px solid rgba(111, 120, 134, 0.1);
}

.fabric-demo-brand h1 {
  margin: 6px 0 0;
  font-size: 2rem;
  line-height: 1;
  letter-spacing: -0.04em;
}

.fabric-demo-brand p {
  margin: 10px 0 0;
  color: #6d7482;
  font-size: 0.92rem;
  line-height: 1.7;
}

.fabric-demo-brand-eyebrow {
  margin: 0;
  color: #8f96a3;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

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

.fabric-demo-nav--secondary {
  margin-top: auto;
}

.fabric-demo-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 13px 14px;
  border: 1px solid transparent;
  border-radius: 18px;
  background: transparent;
  color: #47505f;
  cursor: pointer;
  text-align: left;
  transition:
    transform 0.18s ease,
    background 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.fabric-demo-nav-item:hover,
.fabric-demo-nav-item.is-active {
  transform: translateX(2px);
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(111, 120, 134, 0.12);
  box-shadow: 0 14px 28px rgba(57, 63, 72, 0.08);
}

.fabric-demo-nav-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: rgba(225, 229, 236, 0.9);
  color: #3d4452;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.fabric-demo-nav-copy {
  display: grid;
  gap: 2px;
}

.fabric-demo-nav-copy strong {
  font-size: 1rem;
}

.fabric-demo-nav-copy small {
  color: #8d95a2;
  font-size: 0.78rem;
}

.fabric-demo-sidebar-divider {
  height: 1px;
  background: rgba(111, 120, 134, 0.12);
}

.fabric-demo-sidebar-foot {
  padding: 14px 12px 0;
  color: #8b92a0;
  font-size: 0.84rem;
  line-height: 1.65;
}

.fabric-demo-controls {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 28px 26px;
  overflow: auto;
}

.fabric-demo-section {
  display: grid;
  gap: 16px;
}

.fabric-demo-section-head h2 {
  margin: 0;
  font-size: 1.85rem;
  line-height: 1.05;
}

.fabric-demo-section-head p {
  margin: 8px 0 0;
  color: #6d7482;
  font-size: 0.92rem;
  line-height: 1.7;
}

.fabric-demo-upload-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.fabric-demo-upload-card {
  padding: 16px;
  border-radius: 24px;
  border: 1px solid rgba(133, 142, 156, 0.16);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 16px 34px rgba(67, 74, 83, 0.05);
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.fabric-demo-upload-card.is-active {
  transform: translateY(-2px);
  border-color: rgba(107, 88, 255, 0.28);
  box-shadow: 0 18px 34px rgba(89, 76, 205, 0.12);
}

.fabric-demo-upload-label {
  font-size: 0.98rem;
  font-weight: 700;
}

.fabric-demo-upload-label span {
  color: #f05d5d;
}

.fabric-demo-upload-drop {
  margin-top: 12px;
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 26px 16px 20px;
  border: 1px dashed rgba(140, 149, 162, 0.48);
  border-radius: 22px;
  text-align: center;
  background: linear-gradient(180deg, rgba(249, 250, 251, 0.95), rgba(243, 245, 247, 0.94));
}

.fabric-demo-upload-plus {
  font-size: 2.6rem;
  line-height: 1;
  color: #2f3642;
}

.fabric-demo-upload-drop p {
  margin: 0;
  color: #8a92a0;
  font-size: 0.88rem;
}

.fabric-demo-upload-button,
.fabric-demo-upload-link,
.fabric-demo-primary {
  border: 0;
  border-radius: 14px;
  cursor: pointer;
}

.fabric-demo-upload-button {
  padding: 10px 22px;
  background: linear-gradient(135deg, #7663ff 0%, #5c4ff1 100%);
  color: #fff;
  box-shadow: 0 16px 28px rgba(92, 79, 241, 0.22);
}

.fabric-demo-upload-link {
  padding: 9px 18px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(133, 142, 156, 0.18);
  color: #5f6776;
}

.fabric-demo-field-note {
  margin: -4px 0 0;
  color: #9097a3;
  font-size: 0.88rem;
}

.fabric-demo-style-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.fabric-demo-style-card {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(133, 142, 156, 0.14);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
  cursor: pointer;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.fabric-demo-style-card:hover,
.fabric-demo-style-card.is-active {
  transform: translateY(-2px);
  border-color: rgba(107, 88, 255, 0.24);
  box-shadow: 0 16px 32px rgba(57, 63, 72, 0.08);
}

.fabric-demo-style-thumb {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 0.82;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(239, 241, 244, 1), rgba(229, 233, 238, 1));
}

.fabric-demo-style-thumb::after {
  content: "";
  position: absolute;
  inset: auto 12px 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.46);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.fabric-demo-style-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fabric-demo-style-name {
  color: #49515f;
  font-size: 0.88rem;
  text-align: center;
}

.fabric-demo-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.fabric-demo-chip {
  min-width: 84px;
  padding: 11px 18px;
  border-radius: 14px;
  border: 1px solid rgba(133, 142, 156, 0.16);
  background: rgba(255, 255, 255, 0.8);
  color: #5a6371;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    background 0.18s ease,
    border-color 0.18s ease;
}

.fabric-demo-chip.is-active {
  transform: translateY(-1px);
  background: rgba(104, 87, 255, 0.12);
  border-color: rgba(104, 87, 255, 0.3);
  color: #4e45b8;
}

.fabric-demo-action-bar {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(247, 248, 249, 0.94));
  border: 1px solid rgba(133, 142, 156, 0.12);
}

.fabric-demo-action-copy strong {
  display: block;
  font-size: 1rem;
}

.fabric-demo-action-copy p {
  margin: 6px 0 0;
  color: #6f7785;
  font-size: 0.9rem;
}

.fabric-demo-primary {
  min-width: 156px;
  padding: 13px 24px;
  background: linear-gradient(135deg, #202734 0%, #2d3342 100%);
  color: #fff;
  box-shadow: 0 18px 30px rgba(32, 39, 52, 0.16);
}

.fabric-demo-stage {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 28px 28px 24px;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.95), transparent 22%),
    linear-gradient(180deg, #f0f1f3 0%, #eceef2 100%);
  border-left: 1px solid rgba(111, 120, 134, 0.1);
}

.fabric-demo-stage-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.fabric-demo-stage-title span {
  display: inline-block;
  color: #3252cc;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.fabric-demo-stage-title h2 {
  margin: 6px 0 0;
  font-size: 2.15rem;
  line-height: 1;
}

.fabric-demo-stepper {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  margin: 0;
  list-style: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(133, 142, 156, 0.12);
}

.fabric-demo-stepper li {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #9aa1ac;
  font-size: 0.88rem;
}

.fabric-demo-stepper li + li::before {
  content: "";
  width: 28px;
  height: 1px;
  background: rgba(154, 161, 172, 0.4);
  margin-right: 2px;
}

.fabric-demo-stepper span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid rgba(154, 161, 172, 0.48);
  background: rgba(255, 255, 255, 0.9);
}

.fabric-demo-stepper li.is-current {
  color: #566071;
}

.fabric-demo-stepper li.is-current span {
  border-color: rgba(84, 95, 112, 0.3);
  color: #29313f;
}

.fabric-demo-result-board {
  display: grid;
  grid-template-columns: minmax(240px, 320px) 90px minmax(360px, 1fr);
  align-items: center;
  gap: 24px;
  padding: 16px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(133, 142, 156, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.fabric-demo-result-stack {
  position: relative;
  display: grid;
  gap: 16px;
}

.fabric-demo-example-card,
.fabric-demo-result-card {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #edf0f4;
  border: 1px solid rgba(133, 142, 156, 0.14);
}

.fabric-demo-example-card {
  min-height: 260px;
}

.fabric-demo-example-card img,
.fabric-demo-result-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fabric-demo-example-card--primary img {
  aspect-ratio: 1 / 1;
}

.fabric-demo-example-card--secondary img {
  aspect-ratio: 1 / 1;
  object-position: 42% 44%;
}

.fabric-demo-example-tag {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 1;
  padding: 10px 16px;
  border-radius: 16px;
  background: rgba(28, 30, 35, 0.56);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  backdrop-filter: blur(8px);
}

.fabric-demo-example-tag--result {
  left: 20px;
  top: 20px;
}

.fabric-demo-plus {
  position: absolute;
  left: calc(50% - 27px);
  top: calc(50% - 27px);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffc464 0%, #ff9a2f 100%);
  color: #fff;
  font-size: 2rem;
  box-shadow: 0 18px 30px rgba(255, 160, 53, 0.3);
}

.fabric-demo-arrow {
  width: 100%;
  height: 120px;
  background: linear-gradient(90deg, rgba(255, 184, 91, 0.16), rgba(255, 146, 27, 0.92));
  clip-path: polygon(0 42%, 58% 42%, 58% 18%, 100% 50%, 58% 82%, 58% 58%, 0 58%);
  filter: drop-shadow(0 16px 28px rgba(255, 153, 52, 0.28));
}

.fabric-demo-result-card {
  min-height: 620px;
  box-shadow: 0 26px 44px rgba(57, 63, 72, 0.12);
}

.fabric-demo-result-card img {
  aspect-ratio: 0.86 / 1;
}

.fabric-demo-result-watermark {
  position: absolute;
  right: 20px;
  bottom: 20px;
  padding: 10px 16px;
  border-radius: 18px;
  border: 2px solid rgba(255, 255, 255, 0.58);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.92);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  backdrop-filter: blur(8px);
}

.fabric-demo-stage-foot {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: 16px;
}

.fabric-demo-stage-note,
.fabric-demo-stage-metrics {
  padding: 18px 20px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(133, 142, 156, 0.12);
}

.fabric-demo-stage-note strong {
  display: block;
  font-size: 1rem;
}

.fabric-demo-stage-note p {
  margin: 8px 0 0;
  color: #687180;
  line-height: 1.72;
}

.fabric-demo-stage-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.fabric-demo-stage-metrics span {
  color: #8a92a0;
  font-size: 0.82rem;
}

.fabric-demo-stage-metrics strong {
  display: block;
  margin-top: 6px;
  font-size: 1rem;
  line-height: 1.4;
}

@media (max-width: 1500px) {
  .fabric-demo-shell {
    grid-template-columns: 214px minmax(360px, 470px) minmax(420px, 1fr);
  }

  .fabric-demo-style-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .fabric-demo-result-board {
    grid-template-columns: minmax(220px, 280px) 72px minmax(320px, 1fr);
  }

  .fabric-demo-result-card {
    min-height: 560px;
  }
}

@media (max-width: 1220px) {
  .fabric-demo-shell {
    grid-template-columns: 220px minmax(0, 1fr);
  }

  .fabric-demo-stage {
    grid-column: 1 / -1;
    border-left: 0;
    border-top: 1px solid rgba(111, 120, 134, 0.1);
  }
}

@media (max-width: 920px) {
  .fabric-demo-page {
    width: min(100% - 14px, 100%);
  }

  .fabric-demo-toolbar,
  .fabric-demo-stage-head,
  .fabric-demo-action-bar,
  .fabric-demo-stage-foot {
    flex-direction: column;
    align-items: stretch;
  }

  .fabric-demo-shell {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .fabric-demo-sidebar,
  .fabric-demo-controls,
  .fabric-demo-stage {
    border: 0;
  }

  .fabric-demo-upload-grid,
  .fabric-demo-style-grid,
  .fabric-demo-stage-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fabric-demo-stage-foot {
    grid-template-columns: 1fr;
  }

  .fabric-demo-result-board {
    grid-template-columns: 1fr;
  }

  .fabric-demo-arrow {
    width: 140px;
    height: 74px;
    margin: 0 auto;
    transform: rotate(90deg);
  }

  .fabric-demo-result-card {
    min-height: 0;
  }
}

@media (max-width: 640px) {
  .fabric-demo-style-grid,
  .fabric-demo-upload-grid,
  .fabric-demo-stage-metrics {
    grid-template-columns: 1fr;
  }

  .fabric-demo-stepper {
    display: grid;
    gap: 8px;
    border-radius: 24px;
  }

  .fabric-demo-stepper li + li::before {
    display: none;
  }

  .fabric-demo-controls,
  .fabric-demo-stage,
  .fabric-demo-sidebar {
    padding: 20px 16px;
  }
}

.expand-preview-body {
  color: #181b1f;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.92), transparent 22%),
    linear-gradient(180deg, #f3f4f6 0%, #edeff2 100%);
}

.expand-preview-page {
  width: min(1900px, calc(100% - 18px));
  margin: 0 auto;
  padding: 10px 0 18px;
}

.expand-preview-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 10px;
}

.expand-preview-back,
.expand-preview-back:visited {
  color: #626b77;
  text-decoration: none;
  font-size: 0.92rem;
}

.expand-preview-eyebrow {
  margin: 4px 0 0;
  color: #8b94a1;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.expand-preview-topbar-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.expand-preview-pill,
.expand-preview-note {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(128, 138, 151, 0.16);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 16px 28px rgba(56, 62, 70, 0.06);
  color: #5d6674;
  font-size: 0.86rem;
}

.expand-preview-shell {
  display: grid;
  grid-template-columns: 232px 450px minmax(0, 1fr) 0;
  min-height: calc(100vh - 88px);
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(126, 136, 149, 0.1);
  background: rgba(244, 245, 247, 0.96);
  box-shadow: 0 30px 60px rgba(58, 63, 71, 0.08);
  transition: grid-template-columns 0.3s ease;
}

.expand-preview-shell.is-generated {
  grid-template-columns: 232px 450px minmax(0, 1fr) 340px;
}

.expand-preview-menu,
.expand-preview-submit,
.expand-preview-stage,
.expand-preview-params {
  min-width: 0;
}

.expand-preview-menu {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 18px 14px 16px;
  background: rgba(248, 249, 250, 0.98);
  border-right: 1px solid rgba(126, 136, 149, 0.1);
}

.expand-preview-brand h1 {
  margin: 8px 0 0;
  font-size: 2.35rem;
  line-height: 0.92;
  letter-spacing: -0.05em;
}

.expand-preview-brand p {
  margin: 10px 0 0;
  color: #6a7381;
  font-size: 0.9rem;
  line-height: 1.72;
}

.expand-preview-brand-eyebrow {
  margin: 0;
  color: #8d95a2;
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

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

.expand-preview-nav--secondary {
  margin-top: auto;
}

.expand-preview-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 13px;
  border: 1px solid transparent;
  border-radius: 18px;
  background: transparent;
  color: #515a68;
  cursor: pointer;
  text-align: left;
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    transform 0.18s ease,
    box-shadow 0.18s ease;
}

.expand-preview-nav-item:hover,
.expand-preview-nav-item.is-active {
  transform: translateX(2px);
  background: rgba(255, 255, 255, 0.94);
  border-color: rgba(126, 136, 149, 0.14);
  box-shadow: 0 16px 28px rgba(55, 61, 69, 0.06);
}

.expand-preview-nav-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: rgba(231, 235, 241, 0.92);
  color: #404754;
  font-size: 0.8rem;
  font-weight: 700;
  flex-shrink: 0;
}

.expand-preview-nav-copy {
  display: grid;
  gap: 2px;
}

.expand-preview-nav-copy strong {
  font-size: 1rem;
}

.expand-preview-nav-copy small {
  color: #8f96a3;
  font-size: 0.76rem;
}

.expand-preview-menu-divider {
  height: 1px;
  background: rgba(126, 136, 149, 0.12);
}

.expand-preview-submit {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-right: 1px solid rgba(126, 136, 149, 0.1);
}

.expand-preview-submit-scroll {
  padding: 22px 20px 152px;
  overflow: auto;
}

.expand-preview-section-head h2 {
  margin: 0;
  font-size: 2rem;
  line-height: 1;
}

.expand-preview-section-head p {
  margin: 10px 0 0;
  color: #6d7582;
  font-size: 0.92rem;
  line-height: 1.72;
}

.expand-preview-field {
  margin-top: 24px;
}

.expand-preview-field-title {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 12px;
  color: #181b1f;
  font-size: 1rem;
  font-weight: 700;
}

.expand-preview-field-title strong {
  color: #f05c5c;
}

.expand-preview-helper {
  margin: 10px 0 0;
  color: #8b94a1;
  font-size: 0.82rem;
  line-height: 1.6;
}

.expand-preview-upload-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.expand-preview-upload-trigger,
.expand-preview-upload-reset {
  min-height: 40px;
  padding: 0 16px;
  border-radius: 12px;
  cursor: pointer;
}

.expand-preview-upload-trigger {
  border: 0;
  background: linear-gradient(135deg, #6857ff 0%, #5747eb 100%);
  color: #fff;
  box-shadow: 0 14px 24px rgba(104, 87, 255, 0.18);
}

.expand-preview-upload-reset {
  border: 1px solid rgba(126, 136, 149, 0.14);
  background: #f5f6f7;
  color: #4f5968;
}

.expand-preview-upload-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.expand-preview-upload-item {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(126, 136, 149, 0.14);
  border-radius: 18px;
  background: #f5f6f7;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.expand-preview-upload-item:hover,
.expand-preview-upload-item.is-active {
  transform: translateY(-2px);
  border-color: rgba(104, 87, 255, 0.28);
  box-shadow: 0 16px 30px rgba(74, 86, 103, 0.08);
}

.expand-preview-upload-thumb {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  background: #e6ebf0;
}

.expand-preview-upload-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.expand-preview-upload-label {
  color: #4f5968;
  font-size: 0.85rem;
  text-align: center;
}

.expand-preview-upload-item--empty {
  align-content: center;
  justify-items: center;
  background: linear-gradient(180deg, #f8f9fb 0%, #f3f5f8 100%);
}

.expand-preview-upload-empty {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  border: 1px dashed rgba(136, 146, 159, 0.44);
  color: #5d6674;
  font-size: 2.3rem;
}

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

.expand-preview-angle-card {
  display: grid;
  gap: 6px;
  padding: 6px;
  border: 1px solid rgba(126, 136, 149, 0.14);
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.expand-preview-angle-card:hover,
.expand-preview-angle-card.is-active {
  transform: translateY(-2px);
  border-color: rgba(104, 87, 255, 0.28);
  box-shadow: 0 16px 28px rgba(58, 66, 78, 0.08);
}

.expand-preview-angle-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 10px;
  object-fit: cover;
}

.expand-preview-angle-card span {
  color: #6b7380;
  font-size: 0.78rem;
  text-align: center;
}

.expand-preview-chip-row,
.expand-preview-segment {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.expand-preview-chip,
.expand-preview-segment-item {
  min-width: 82px;
  padding: 10px 16px;
  border: 1px solid rgba(126, 136, 149, 0.16);
  border-radius: 12px;
  background: #f5f6f7;
  color: #4f5968;
  cursor: pointer;
  transition:
    background 0.18s ease,
    color 0.18s ease,
    border-color 0.18s ease,
    transform 0.18s ease;
}

.expand-preview-chip.is-active,
.expand-preview-segment-item.is-active {
  transform: translateY(-1px);
  border-color: rgba(104, 87, 255, 0.26);
  background: rgba(104, 87, 255, 0.12);
  color: #5d4fe9;
}

.expand-preview-submit-bottom {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 18px 20px 16px;
  border-top: 1px solid #e6ebf0;
  background: rgba(255, 255, 255, 0.98);
}

.expand-preview-submit-status {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 0.84rem;
  line-height: 1.6;
}

.expand-preview-submit-status.is-info {
  background: rgba(59, 90, 217, 0.08);
  color: #395ad3;
}

.expand-preview-submit-status.is-success {
  background: rgba(37, 180, 98, 0.1);
  color: #1f8d50;
}

.expand-preview-submit-status.is-error {
  background: rgba(240, 92, 92, 0.1);
  color: #cb3b3b;
}

.expand-preview-generate {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 48px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, #6857ff 0%, #5747eb 100%);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 16px 30px rgba(104, 87, 255, 0.22);
}

.expand-preview-generate.is-loading {
  opacity: 0.88;
}

.expand-preview-generate-cost {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.78rem;
  font-weight: 400;
}

.expand-preview-generate-cost strong {
  font-weight: 700;
}

.expand-preview-bottom-row {
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.expand-preview-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #5f6875;
  font-size: 0.8rem;
}

.expand-preview-auto-save {
  color: #8c95a2;
  font-size: 0.78rem;
  text-align: right;
}

.expand-preview-stage {
  padding: 22px;
  background: #f5f6f8;
}

.expand-preview-stage-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.expand-preview-stage-title span {
  display: inline-block;
  color: #3b5ad9;
  font-size: 0.9rem;
  font-weight: 700;
}

.expand-preview-stage-title h2 {
  margin: 8px 0 0;
  font-size: 2rem;
  line-height: 1;
}

.expand-preview-stage-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.expand-preview-stage-steps span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(126, 136, 149, 0.12);
  background: rgba(255, 255, 255, 0.84);
  color: #8a93a0;
  font-size: 0.84rem;
}

.expand-preview-stage-steps .is-active {
  color: #4d5663;
  border-color: rgba(104, 87, 255, 0.22);
}

.expand-preview-stage-example,
.expand-preview-stage-results {
  height: calc(100% - 96px);
  min-height: 760px;
}

.expand-preview-stage-example {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(260px, 0.7fr);
  gap: 18px;
}

.expand-preview-stage-example-card {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background: #fff;
  border: 1px solid rgba(126, 136, 149, 0.12);
  box-shadow: 0 22px 40px rgba(57, 63, 71, 0.08);
}

.expand-preview-stage-example-card img {
  width: 100%;
  height: 100%;
  min-height: 760px;
  object-fit: cover;
}

.expand-preview-stage-overlay {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
  padding: 18px 20px;
  border-radius: 22px;
  background: rgba(23, 27, 34, 0.56);
  color: #fff;
  backdrop-filter: blur(10px);
}

.expand-preview-stage-overlay strong {
  display: block;
  font-size: 1.1rem;
}

.expand-preview-stage-overlay p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.84);
  line-height: 1.7;
}

.expand-preview-stage-summary {
  display: grid;
  gap: 14px;
}

.expand-preview-stage-summary article {
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(126, 136, 149, 0.12);
}

.expand-preview-stage-summary strong {
  display: block;
  font-size: 1rem;
}

.expand-preview-stage-summary p {
  margin: 8px 0 0;
  color: #697280;
  line-height: 1.72;
}

.expand-preview-stage-results {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 18px;
}

.expand-preview-result-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 100px;
  gap: 16px;
}

.expand-preview-result-board {
  overflow: hidden;
  border-radius: 30px;
  background: #fff;
  border: 1px solid rgba(126, 136, 149, 0.12);
  box-shadow: 0 22px 40px rgba(57, 63, 71, 0.08);
}

.expand-preview-result-board img {
  width: 100%;
  height: 100%;
  min-height: 760px;
  object-fit: cover;
}

.expand-preview-result-thumbs {
  display: grid;
  gap: 12px;
  align-content: start;
}

.expand-preview-result-thumb {
  padding: 6px;
  border: 1px solid rgba(126, 136, 149, 0.14);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.expand-preview-result-thumb.is-active {
  transform: translateY(-1px);
  border-color: rgba(104, 87, 255, 0.26);
  box-shadow: 0 14px 24px rgba(57, 63, 71, 0.08);
}

.expand-preview-result-thumb img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 12px;
}

.expand-preview-result-info {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.expand-preview-result-info > div {
  padding: 16px 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(126, 136, 149, 0.12);
}

.expand-preview-result-info span {
  color: #8a93a0;
  font-size: 0.82rem;
}

.expand-preview-result-info strong {
  display: block;
  margin-top: 6px;
  font-size: 1rem;
}

.expand-preview-params {
  background: #fff;
  border-left: 1px solid rgba(126, 136, 149, 0.1);
}

.expand-preview-params-scroll {
  height: 100%;
  padding: 20px;
  overflow: auto;
}

.expand-preview-params-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding-bottom: 14px;
  margin-bottom: 16px;
  border-bottom: 1px solid #e6ebf0;
}

.expand-preview-download,
.expand-preview-side-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 12px;
  text-decoration: none;
  cursor: pointer;
  font-weight: 700;
}

.expand-preview-download {
  width: 100%;
  background: rgba(104, 87, 255, 0.12);
  color: #6857ff;
}

.expand-preview-side-button {
  width: calc(50% - 6px);
  border: 1px solid rgba(126, 136, 149, 0.12);
  background: #f5f6f7;
  color: #181b1f;
}

.expand-preview-params-group h3 {
  margin: 0 0 14px;
  font-size: 1rem;
}

.expand-preview-param-item + .expand-preview-param-item {
  margin-top: 14px;
}

.expand-preview-param-item span {
  display: block;
  color: #8a93a0;
  font-size: 0.84rem;
}

.expand-preview-param-item strong {
  display: block;
  margin-top: 6px;
  color: #181b1f;
  line-height: 1.6;
}

.expand-preview-param-images {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.expand-preview-param-images img {
  width: 80px;
  height: 80px;
  border-radius: 12px;
  object-fit: cover;
}

@media (max-width: 1680px) {
  .expand-preview-shell,
  .expand-preview-shell.is-generated {
    grid-template-columns: 214px 420px minmax(0, 1fr);
  }

  .expand-preview-params {
    display: none;
  }

  .expand-preview-angle-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1200px) {
  .expand-preview-shell,
  .expand-preview-shell.is-generated {
    grid-template-columns: 214px minmax(0, 1fr);
  }

  .expand-preview-submit {
    border-right: 0;
  }

  .expand-preview-stage {
    grid-column: 1 / -1;
    border-top: 1px solid rgba(126, 136, 149, 0.1);
  }

  .expand-preview-stage-example,
  .expand-preview-result-main,
  .expand-preview-result-info {
    grid-template-columns: 1fr;
  }

  .expand-preview-result-board img,
  .expand-preview-stage-example-card img {
    min-height: 520px;
  }
}

@media (max-width: 860px) {
  .expand-preview-page {
    width: min(100% - 12px, 100%);
  }

  .expand-preview-topbar,
  .expand-preview-bottom-row,
  .expand-preview-stage-head {
    flex-direction: column;
    align-items: stretch;
  }

  .expand-preview-shell,
  .expand-preview-shell.is-generated {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .expand-preview-menu {
    border-right: 0;
    border-bottom: 1px solid rgba(126, 136, 149, 0.1);
  }

  .expand-preview-upload-list,
  .expand-preview-angle-grid,
  .expand-preview-result-info {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .expand-preview-result-thumbs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .expand-preview-upload-list,
  .expand-preview-angle-grid,
  .expand-preview-result-info,
  .expand-preview-result-thumbs {
    grid-template-columns: 1fr;
  }

  .expand-preview-submit-scroll,
  .expand-preview-stage,
  .expand-preview-menu,
  .expand-preview-params-scroll {
    padding-left: 16px;
    padding-right: 16px;
  }

  .expand-preview-submit-bottom {
    padding-left: 16px;
    padding-right: 16px;
  }

  .expand-preview-result-board img,
  .expand-preview-stage-example-card img {
    min-height: 360px;
  }
}

body.workbench-redo-body {
  min-height: 100vh;
  margin: 0;
  color: #1f2937;
  font-family: "Noto Sans SC", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(232, 212, 181, 0.34), transparent 32%),
    radial-gradient(circle at bottom right, rgba(192, 220, 202, 0.24), transparent 24%),
    linear-gradient(180deg, #f6f1e8 0%, #efe6d8 100%);
}

.workbench-redo-body *,
.workbench-redo-body *::before,
.workbench-redo-body *::after {
  box-sizing: border-box;
}

.workbench-redo-body button,
.workbench-redo-body input,
.workbench-redo-body select,
.workbench-redo-body textarea {
  font: inherit;
}

.workbench-redo-page {
  width: min(100%, 1920px);
  margin: 0 auto;
  padding: 26px;
}

.workbench-redo-topbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  padding: 0 6px 18px;
}

.workbench-redo-topbar-copy {
  max-width: 820px;
}

.workbench-redo-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 10px 14px;
  border-radius: 999px;
  color: #4b5563;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.workbench-redo-back:hover {
  color: #111827;
  background: rgba(255, 255, 255, 0.92);
}

.workbench-redo-eyebrow {
  margin: 0 0 10px;
  font-family: "Space Grotesk", "Noto Sans SC", sans-serif;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.82rem;
  color: #8a6b49;
}

.workbench-redo-topbar h1 {
  margin: 0;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.05;
  color: #171717;
}

.workbench-redo-topbar-copy > p:last-child {
  margin: 14px 0 0;
  max-width: 700px;
  font-size: 1rem;
  line-height: 1.8;
  color: #5b6471;
}

.workbench-redo-topbar-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.workbench-redo-pill,
.workbench-redo-note {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(148, 163, 184, 0.16);
}

.workbench-redo-pill {
  font-weight: 700;
  color: #171717;
}

.workbench-redo-note {
  font-size: 0.92rem;
  color: #6b7280;
}

.workbench-redo-shell {
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.workbench-redo-sidebar,
.workbench-redo-panel {
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(14px);
}

.workbench-redo-sidebar {
  position: sticky;
  top: 24px;
  padding: 20px 16px;
  border-radius: 28px;
}

.workbench-redo-sidebar-brand {
  padding: 8px 10px 18px;
}

.workbench-redo-sidebar-brand p {
  margin: 0 0 8px;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  color: #9ca3af;
}

.workbench-redo-sidebar-brand strong {
  font-size: 1.15rem;
  color: #171717;
}

.workbench-redo-nav {
  display: grid;
  gap: 10px;
}

.workbench-redo-nav--secondary .workbench-redo-nav-item {
  min-height: 56px;
}

.workbench-redo-nav-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 68px;
  padding: 14px 14px 14px 12px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 20px;
  color: #374151;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  text-align: left;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease,
    box-shadow 0.18s ease;
}

.workbench-redo-nav-item:hover,
.workbench-redo-nav-item.is-active {
  transform: translateY(-1px);
  color: #171717;
  border-color: rgba(139, 102, 65, 0.24);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(248, 242, 232, 0.92));
  box-shadow: 0 16px 28px rgba(15, 23, 42, 0.08);
}

.workbench-redo-nav-icon {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: rgba(247, 240, 231, 0.95);
  color: #8a6b49;
  font-size: 1rem;
  flex-shrink: 0;
}

.workbench-redo-nav-copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.workbench-redo-nav-copy strong {
  font-size: 0.98rem;
}

.workbench-redo-nav-copy small {
  color: #8b94a1;
  font-size: 0.8rem;
}

.workbench-redo-sidebar-divider {
  height: 1px;
  margin: 16px 10px;
  background: linear-gradient(90deg, transparent, rgba(148, 163, 184, 0.32), transparent);
}

.workbench-redo-main {
  min-width: 0;
}

.workbench-redo-workspace {
  display: grid;
  grid-template-columns: minmax(360px, 456px) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.workbench-redo-panel {
  border-radius: 34px;
}

.workbench-redo-form-panel {
  padding: 28px;
}

.workbench-redo-preview-panel {
  position: sticky;
  top: 24px;
  display: grid;
  gap: 18px;
  padding: 28px;
}

.workbench-redo-panel-head h2,
.workbench-redo-preview-head h2 {
  margin: 0;
  font-size: 1.5rem;
  color: #171717;
}

.workbench-redo-panel-head p,
.workbench-redo-preview-eyebrow,
.workbench-redo-preview-section-head span {
  color: #7b8593;
}

.workbench-redo-panel-head p {
  margin: 10px 0 0;
  line-height: 1.75;
}

.workbench-redo-field + .workbench-redo-field,
.workbench-redo-inline-grid,
.workbench-redo-action-box,
.workbench-redo-status {
  margin-top: 18px;
}

.workbench-redo-field {
  padding: 20px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(148, 163, 184, 0.12);
}

.workbench-redo-field-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  font-weight: 700;
  color: #171717;
}

.workbench-redo-field-head strong {
  color: #d25144;
}

.workbench-redo-upload-toolbar,
.workbench-redo-preview-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.workbench-redo-primary-button,
.workbench-redo-secondary-button,
.workbench-redo-secondary-link {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border-radius: 18px;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease,
    border-color 0.18s ease;
}

.workbench-redo-primary-button {
  border: 0;
  color: #fff;
  font-weight: 700;
  background: linear-gradient(135deg, #7d5cff, #4d6fff);
  box-shadow: 0 16px 24px rgba(77, 111, 255, 0.26);
}

.workbench-redo-primary-button:hover,
.workbench-redo-secondary-button:hover,
.workbench-redo-secondary-link:hover {
  transform: translateY(-1px);
}

.workbench-redo-primary-button:disabled,
.workbench-redo-secondary-button:disabled {
  opacity: 0.62;
  cursor: wait;
  transform: none;
}

.workbench-redo-secondary-button,
.workbench-redo-secondary-link {
  border: 1px solid rgba(148, 163, 184, 0.18);
  color: #374151;
  background: rgba(255, 255, 255, 0.92);
}

.workbench-redo-upload-grid,
.workbench-redo-angle-grid,
.workbench-redo-result-grid,
.workbench-redo-source-grid {
  display: grid;
  gap: 12px;
}

.workbench-redo-upload-grid {
  margin-top: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.workbench-redo-angle-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.workbench-redo-upload-card,
.workbench-redo-angle-card,
.workbench-redo-result-card,
.workbench-redo-source-card {
  padding: 10px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.94);
  cursor: pointer;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
}

.workbench-redo-upload-card:hover,
.workbench-redo-angle-card:hover,
.workbench-redo-result-card:hover,
.workbench-redo-source-card:hover,
.workbench-redo-upload-card.is-active,
.workbench-redo-angle-card.is-active,
.workbench-redo-result-card.is-active,
.workbench-redo-source-card.is-active {
  transform: translateY(-1px);
  border-color: rgba(125, 92, 255, 0.32);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 239, 255, 0.9));
  box-shadow: 0 18px 28px rgba(15, 23, 42, 0.08);
}

.workbench-redo-upload-card-image,
.workbench-redo-angle-card img,
.workbench-redo-result-card img,
.workbench-redo-source-card img {
  width: 100%;
  display: block;
  border-radius: 16px;
  object-fit: cover;
}

.workbench-redo-upload-card-image {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #f5f6f8;
}

.workbench-redo-upload-card-image img {
  width: 100%;
  height: 100%;
}

.workbench-redo-upload-card-name {
  display: block;
  margin-top: 10px;
  font-size: 0.84rem;
  line-height: 1.5;
  color: #475569;
  word-break: break-all;
}

.workbench-redo-angle-card {
  display: grid;
  gap: 10px;
}

.workbench-redo-angle-card img {
  aspect-ratio: 4 / 5;
}

.workbench-redo-angle-card span {
  font-size: 0.92rem;
  font-weight: 700;
  color: #171717;
}

.workbench-redo-helper {
  margin: 12px 0 0;
  font-size: 0.88rem;
  line-height: 1.7;
  color: #7b8593;
}

.workbench-redo-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.workbench-redo-chip {
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 999px;
  color: #475569;
  background: rgba(246, 248, 251, 0.92);
  cursor: pointer;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease,
    background 0.18s ease;
}

.workbench-redo-chip:hover,
.workbench-redo-chip.is-active {
  transform: translateY(-1px);
  color: #171717;
  border-color: rgba(139, 102, 65, 0.28);
  background: rgba(247, 240, 231, 0.98);
}

.workbench-redo-inline-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.workbench-redo-action-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px;
  border-radius: 28px;
  color: #171717;
  background: linear-gradient(135deg, rgba(247, 240, 231, 0.96), rgba(240, 247, 241, 0.96));
  border: 1px solid rgba(148, 163, 184, 0.12);
}

.workbench-redo-action-copy strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1rem;
}

.workbench-redo-action-copy p {
  margin: 0;
  color: #5f6672;
  line-height: 1.7;
}

.workbench-redo-generate {
  min-width: 170px;
}

.workbench-redo-status {
  padding: 14px 16px;
  border-radius: 20px;
  font-size: 0.94rem;
  line-height: 1.6;
  border: 1px solid transparent;
}

.workbench-redo-status.is-info {
  color: #2f4862;
  background: rgba(225, 238, 255, 0.92);
  border-color: rgba(126, 165, 216, 0.28);
}

.workbench-redo-status.is-success {
  color: #21513b;
  background: rgba(226, 244, 232, 0.94);
  border-color: rgba(96, 174, 120, 0.24);
}

.workbench-redo-status.is-error {
  color: #7f1d1d;
  background: rgba(254, 234, 234, 0.96);
  border-color: rgba(220, 94, 94, 0.24);
}

.workbench-redo-preview-head,
.workbench-redo-preview-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.workbench-redo-preview-eyebrow {
  margin: 0 0 10px;
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.workbench-redo-preview-tags {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.workbench-redo-preview-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 0.88rem;
  color: #4b5563;
  background: rgba(247, 248, 250, 0.95);
  border: 1px solid rgba(148, 163, 184, 0.12);
}

.workbench-redo-preview-stage {
  position: relative;
  min-height: 620px;
  padding: 20px;
  border-radius: 30px;
  overflow: hidden;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.75), transparent 28%),
    linear-gradient(180deg, #efe8de 0%, #f8f3ec 100%);
  border: 1px solid rgba(148, 163, 184, 0.14);
}

.workbench-redo-preview-image {
  width: 100%;
  height: 100%;
  min-height: 580px;
  display: block;
  object-fit: contain;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.72);
}

.workbench-redo-preview-tip {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 20px;
  padding: 14px 16px;
  border-radius: 18px;
  font-size: 0.94rem;
  line-height: 1.6;
  color: #374151;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.14);
  backdrop-filter: blur(10px);
}

.workbench-redo-secondary-link {
  min-width: 150px;
}

.workbench-redo-preview-section {
  padding: 18px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.12);
}

.workbench-redo-preview-section-head strong {
  font-size: 1rem;
  color: #171717;
}

.workbench-redo-result-grid,
.workbench-redo-source-grid {
  margin-top: 14px;
  grid-template-columns: repeat(auto-fit, minmax(114px, 1fr));
}

.workbench-redo-result-card img,
.workbench-redo-source-card img {
  aspect-ratio: 1 / 1;
}

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

.workbench-redo-summary-card {
  padding: 16px;
  border-radius: 18px;
  background: rgba(246, 248, 251, 0.92);
  border: 1px solid rgba(148, 163, 184, 0.12);
}

.workbench-redo-summary-card span {
  display: block;
  font-size: 0.8rem;
  color: #8b94a1;
}

.workbench-redo-summary-card strong {
  display: block;
  margin-top: 8px;
  font-size: 0.98rem;
  line-height: 1.6;
  color: #171717;
}

@media (max-width: 1480px) {
  .workbench-redo-workspace {
    grid-template-columns: minmax(340px, 420px) minmax(0, 1fr);
  }

  .workbench-redo-angle-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .workbench-redo-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1200px) {
  .workbench-redo-page {
    padding: 18px;
  }

  .workbench-redo-topbar {
    align-items: stretch;
    flex-direction: column;
  }

  .workbench-redo-topbar-side {
    align-items: flex-start;
  }

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

  .workbench-redo-sidebar {
    position: static;
  }

  .workbench-redo-nav {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }

  .workbench-redo-workspace {
    grid-template-columns: 1fr;
  }

  .workbench-redo-preview-panel {
    position: static;
  }
}

@media (max-width: 760px) {
  .workbench-redo-page {
    padding: 14px;
  }

  .workbench-redo-sidebar,
  .workbench-redo-form-panel,
  .workbench-redo-preview-panel {
    padding: 18px;
    border-radius: 24px;
  }

  .workbench-redo-nav,
  .workbench-redo-upload-grid,
  .workbench-redo-angle-grid,
  .workbench-redo-inline-grid,
  .workbench-redo-summary-grid {
    grid-template-columns: 1fr;
  }

  .workbench-redo-action-box,
  .workbench-redo-preview-head,
  .workbench-redo-preview-section-head,
  .workbench-redo-preview-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .workbench-redo-preview-tags {
    align-items: stretch;
  }

  .workbench-redo-preview-stage {
    min-height: 420px;
    padding: 14px;
  }

  .workbench-redo-preview-image {
    min-height: 360px;
  }

  .workbench-redo-preview-tip {
    position: static;
    margin-top: 12px;
  }
}

body.wbx-body {
  margin: 0;
  min-height: 100vh;
  color: #2d3340;
  font-family: "Noto Sans SC", "Microsoft YaHei", sans-serif;
  background: #eef0f2;
}

.wbx-body *,
.wbx-body *::before,
.wbx-body *::after {
  box-sizing: border-box;
}

.wbx-body button,
.wbx-body input,
.wbx-body select,
.wbx-body textarea {
  font: inherit;
}

.wbx-page {
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr);
  min-height: 100vh;
}

.wbx-sidebar {
  padding: 10px 12px 16px;
  background: #f7f8fa;
  border-right: 1px solid #e2e7ef;
}

.wbx-brand {
  display: none;
}

.wbx-brand-mark {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: #6d5efc;
  background: rgba(109, 94, 252, 0.1);
  flex-shrink: 0;
}

.wbx-brand-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.wbx-brand-copy strong {
  font-size: 1rem;
}

.wbx-brand-copy small {
  font-family: "Space Grotesk", "Noto Sans SC", sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: #99a1ac;
}

.wbx-nav,
.wbx-secondary-nav {
  display: grid;
  gap: 8px;
}

.wbx-nav-item {
  width: 100%;
  min-height: 56px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 14px;
  border: 0;
  border-radius: 18px;
  color: #7a8390;
  background: transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.18s ease, color 0.18s ease;
}

.wbx-nav-item:hover,
.wbx-nav-item.is-active {
  color: #252c35;
  background: #e7eaef;
}

.wbx-nav-item--link {
  justify-content: flex-start;
}

.wbx-nav-icon {
  width: 28px;
  text-align: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.wbx-sidebar-divider {
  height: 1px;
  margin: 20px 8px;
  background: #dde2ea;
}

.wbx-main {
  padding: 12px 20px 28px;
}

.wbx-workspace {
  display: none;
  grid-template-columns: 520px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.wbx-workspace.is-active {
  display: grid;
}

.wbx-form-panel {
  display: grid;
  gap: 18px;
}

.wbx-section-head h1 {
  margin: 0;
  color: #111827;
  font-size: 1.1rem;
  font-weight: 700;
}

.wbx-section-head small,
.wbx-section-head strong {
  color: #8f98a4;
  font-size: 0.92em;
  font-weight: 500;
}

.wbx-section-head strong {
  color: #f35a57;
}

.wbx-card {
  padding: 22px;
  border-radius: 24px;
  background: #f4f5f7;
  border: 1px solid #e3e7ed;
}

.wbx-card-title,
.wbx-field-label {
  margin-bottom: 14px;
  color: #171c24;
  font-size: 0.98rem;
  font-weight: 700;
}

.wbx-card-title strong,
.wbx-field-label strong {
  color: #f35a57;
}

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

.wbx-upload-box {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  min-height: 220px;
  padding: 18px;
  border-radius: 22px;
  border: 1px dashed #c7d0dc;
  background: #fcfcfd;
}

.wbx-upload-box--single {
  grid-template-columns: 220px minmax(0, 1fr);
}

.wbx-upload-box-preview {
  width: 100%;
  height: 100%;
  min-height: 170px;
  border-radius: 18px;
  overflow: hidden;
  background: #eef1f5;
}

.wbx-upload-box-preview img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.wbx-upload-box-copy {
  text-align: center;
  color: #99a1ac;
}

.wbx-upload-box-copy p {
  margin: 10px 0 16px;
  font-size: 0.98rem;
}

.wbx-upload-plus {
  font-size: 2rem;
  line-height: 1;
  color: #373f49;
}

.wbx-upload-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.wbx-upload-actions--stacked {
  flex-direction: column;
}

.wbx-upload-actions--stacked .wbx-button {
  min-width: 122px;
}

.wbx-upload-box-copy small,
.wbx-form-help {
  display: block;
  margin-top: 14px;
  color: #9aa3af;
  font-size: 0.9rem;
}

.wbx-fabric-upload-panel {
  padding: 22px 18px 16px;
}

.wbx-tool-upload-panel {
  padding: 18px 18px 16px;
}

.wbx-fabric-upload-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.wbx-fabric-upload-column {
  display: grid;
  gap: 10px;
}

.wbx-fabric-upload-box {
  min-height: 212px;
  padding: 26px 16px 18px;
  border-radius: 22px;
  border: 1.5px dashed #cad2dd;
  background: #fbfcfd;
  text-align: center;
}

.wbx-fabric-upload-box .wbx-upload-plus {
  margin-bottom: 10px;
  color: #313945;
}

.wbx-fabric-upload-box p {
  margin: 0 0 14px;
  color: #98a1ad;
  font-size: 0.96rem;
}

.wbx-fabric-upload-box small {
  display: block;
  margin-top: 12px;
  color: #9ca5b1;
  font-size: 0.88rem;
}

.wbx-form-help--inline {
  margin-top: 14px;
  padding-left: 4px;
}

.wbx-tool-upload-box {
  min-height: 182px;
  padding: 22px 18px 16px;
  border-radius: 22px;
  border: 1.5px dashed #cad2dd;
  background: #fbfcfd;
  text-align: center;
}

.wbx-tool-upload-box--product {
  min-height: 228px;
}

.wbx-tool-upload-box .wbx-upload-plus {
  margin-bottom: 12px;
}

.wbx-tool-upload-box p {
  margin: 0 0 16px;
  color: #98a1ad;
  font-size: 0.96rem;
}

.wbx-tool-upload-box small {
  display: block;
  margin-top: 12px;
  color: #9ca5b1;
  font-size: 0.88rem;
}

.wbx-tool-upload-panel .wbx-thumb-row {
  margin-top: 12px;
}

.wbx-tool-upload-panel .wbx-button--primary {
  min-width: 122px;
  background: #635cff;
  box-shadow: none;
}

.wbx-tool-upload-panel--model .wbx-tool-upload-box--model {
  width: 220px;
  max-width: 100%;
  min-height: 214px;
}

.wbx-demo-library {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.wbx-demo-chip,
.wbx-chip,
.wbx-tab {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border-radius: 14px;
  border: 1px solid #e0e5ed;
  color: #6f7884;
  background: #f5f6f8;
  cursor: pointer;
  transition: border-color 0.18s ease, color 0.18s ease, background 0.18s ease;
}

.wbx-demo-chip.is-active,
.wbx-demo-chip:hover,
.wbx-chip.is-active,
.wbx-chip:hover,
.wbx-tab.is-active,
.wbx-tab:hover {
  color: #6a59ff;
  border-color: #8c80ff;
  background: #f3f0ff;
}

.wbx-field-group {
  display: grid;
  gap: 12px;
}

.wbx-style-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.wbx-style-card {
  padding: 10px 10px 12px;
  border: 1px solid #e1e6ee;
  border-radius: 18px;
  color: #67707d;
  background: #ffffff;
  cursor: pointer;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.wbx-style-card img {
  width: 100%;
  display: block;
  aspect-ratio: 4 / 3;
  border-radius: 14px;
  object-fit: cover;
}

.wbx-style-card span {
  display: block;
  margin-top: 8px;
  text-align: center;
  font-size: 0.9rem;
}

.wbx-style-card.is-active,
.wbx-style-card:hover {
  transform: translateY(-1px);
  border-color: #8c80ff;
  box-shadow: 0 14px 24px rgba(140, 128, 255, 0.14);
}

.wbx-chip-row,
.wbx-tab-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.wbx-workspace[data-mode-workspace="fabric_render"] .wbx-style-grid {
  gap: 10px;
}

.wbx-workspace[data-mode-workspace="fabric_render"] .wbx-style-card {
  padding: 8px 8px 10px;
  border-radius: 16px;
  box-shadow: none;
}

.wbx-workspace[data-mode-workspace="fabric_render"] .wbx-style-card img {
  border-radius: 12px;
}

.wbx-workspace[data-mode-workspace="fabric_render"] .wbx-chip {
  min-width: 112px;
  min-height: 46px;
  border-color: transparent;
  background: #eceff3;
}

.wbx-workspace[data-mode-workspace="fabric_render"] .wbx-chip.is-active,
.wbx-workspace[data-mode-workspace="fabric_render"] .wbx-chip:hover {
  border-color: #8c80ff;
  background: #f3f0ff;
}

.wbx-workspace[data-mode-workspace="fabric_render"] .wbx-fabric-upload-box .wbx-button--primary {
  background: #635cff;
  box-shadow: none;
}

.wbx-workspace[data-mode-workspace="instruction_polish"] .wbx-chip,
.wbx-workspace[data-mode-workspace="detail_page"] .wbx-chip,
.wbx-workspace[data-mode-workspace="model_scene"] .wbx-chip,
.wbx-workspace[data-mode-workspace="model_scene"] .wbx-tab {
  min-height: 46px;
  border-color: transparent;
  background: #eceff3;
}

.wbx-workspace[data-mode-workspace="instruction_polish"] .wbx-chip.is-active,
.wbx-workspace[data-mode-workspace="instruction_polish"] .wbx-chip:hover,
.wbx-workspace[data-mode-workspace="detail_page"] .wbx-chip.is-active,
.wbx-workspace[data-mode-workspace="detail_page"] .wbx-chip:hover,
.wbx-workspace[data-mode-workspace="model_scene"] .wbx-chip.is-active,
.wbx-workspace[data-mode-workspace="model_scene"] .wbx-chip:hover,
.wbx-workspace[data-mode-workspace="model_scene"] .wbx-tab.is-active,
.wbx-workspace[data-mode-workspace="model_scene"] .wbx-tab:hover {
  border-color: #8c80ff;
  background: #f3f0ff;
}

.wbx-workspace[data-mode-workspace="instruction_polish"] .wbx-textarea,
.wbx-workspace[data-mode-workspace="model_scene"] .wbx-textarea,
.wbx-workspace[data-mode-workspace="detail_page"] .wbx-textarea,
.wbx-workspace[data-mode-workspace="instruction_polish"] .wbx-input,
.wbx-workspace[data-mode-workspace="detail_page"] .wbx-input,
.wbx-workspace[data-mode-workspace="instruction_polish"] .wbx-select-shell,
.wbx-workspace[data-mode-workspace="model_scene"] .wbx-select-shell {
  border-radius: 18px;
  background: #fbfcfd;
}

.wbx-select-shell,
.wbx-input,
.wbx-textarea {
  width: 100%;
  border-radius: 16px;
  border: 1px solid #d8e0ea;
  background: #ffffff;
}

.wbx-select-shell select,
.wbx-input,
.wbx-textarea {
  width: 100%;
  padding: 16px 18px;
  border: 0;
  color: #25303b;
  background: transparent;
  outline: none;
}

.wbx-textarea {
  resize: vertical;
  min-height: 160px;
  line-height: 1.8;
}

.wbx-submit-row {
  display: grid;
  gap: 12px;
  padding-top: 6px;
}

.wbx-button {
  min-height: 42px;
  padding: 0 18px;
  border-radius: 12px;
  border: 1px solid #dbe1ea;
  color: #616a77;
  background: #ffffff;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.wbx-button:hover {
  transform: translateY(-1px);
}

.wbx-button--primary,
.wbx-button--submit {
  color: #ffffff;
  border-color: transparent;
  background: linear-gradient(135deg, #6f5df7, #5d68ff);
  box-shadow: 0 12px 22px rgba(95, 104, 255, 0.2);
}

.wbx-button--submit {
  min-height: 52px;
  font-size: 1rem;
  font-weight: 700;
}

.wbx-button.is-loading,
.wbx-button:disabled {
  opacity: 0.72;
  cursor: wait;
  transform: none;
}

.wbx-status {
  padding: 12px 14px;
  border-radius: 16px;
  font-size: 0.92rem;
  border: 1px solid transparent;
}

.wbx-status.is-info {
  color: #325378;
  background: #e9f0ff;
  border-color: #c9d9ff;
}

.wbx-status.is-success {
  color: #1f6a44;
  background: #e8f6ed;
  border-color: #c3e6d0;
}

.wbx-status.is-error {
  color: #912a2a;
  background: #fdeeee;
  border-color: #f7caca;
}

.wbx-preview-panel {
  padding: 22px 26px 24px;
  border-radius: 30px;
  background: #ffffff;
  border: 1px solid #e5e8ee;
}

.wbx-preview-panel--fabric {
  padding: 28px 34px 20px;
  border-radius: 28px;
  background: #fcfcfd;
  border-color: #e9edf2;
}

.wbx-preview-panel--instruction,
.wbx-preview-panel--model,
.wbx-preview-panel--detail {
  padding: 28px 34px 20px;
  border-radius: 28px;
  background: #fcfcfd;
  border-color: #e9edf2;
}

.wbx-preview-head {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  margin-bottom: 22px;
}

.wbx-preview-head--fabric {
  align-items: flex-start;
  margin-bottom: 26px;
}

.wbx-preview-head--instruction,
.wbx-preview-head--model,
.wbx-preview-head--detail {
  align-items: flex-start;
  margin-bottom: 26px;
}

.wbx-preview-title {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.wbx-preview-title span {
  position: relative;
  font-size: 2rem;
  font-weight: 700;
  color: #161b23;
}

.wbx-preview-title span::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 4px;
  border-radius: 999px;
  background: #6f5df7;
}

.wbx-preview-title h2 {
  margin: 0;
  color: #88909a;
  font-size: 1.15rem;
  font-weight: 700;
}

.wbx-preview-head--fabric .wbx-preview-title span {
  font-size: 2.15rem;
}

.wbx-preview-head--fabric .wbx-preview-title h2 {
  font-size: 1.1rem;
}

.wbx-preview-head--instruction .wbx-preview-title span,
.wbx-preview-head--model .wbx-preview-title span,
.wbx-preview-head--detail .wbx-preview-title span {
  font-size: 2.15rem;
}

.wbx-preview-head--instruction .wbx-preview-title h2,
.wbx-preview-head--model .wbx-preview-title h2,
.wbx-preview-head--detail .wbx-preview-title h2 {
  font-size: 1.1rem;
}

.wbx-step-bar {
  display: flex;
  gap: 0;
  padding: 10px 18px;
  border-radius: 18px;
  color: #a3aab4;
  background: #f6f7f9;
  font-size: 0.95rem;
  font-weight: 700;
}

.wbx-step-bar span {
  position: relative;
  padding-left: 28px;
  white-space: nowrap;
}

.wbx-step-bar span:not(:last-child) {
  margin-right: 18px;
  padding-right: 34px;
}

.wbx-step-bar span:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 10px;
  top: 50%;
  width: 18px;
  height: 1px;
  background: #dadfe6;
  transform: translateY(-50%);
}

.wbx-step-bar span::before {
  content: "1";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid #d4dae3;
  font-size: 0.8rem;
  color: inherit;
  background: #ffffff;
}

.wbx-step-bar span:nth-child(2)::before {
  content: "2";
}

.wbx-step-bar span:nth-child(3)::before {
  content: "3";
}

.wbx-step-bar span.is-active,
.wbx-step-bar span:last-child {
  color: #7a8390;
}

.wbx-preview-layout {
  display: grid;
  grid-template-columns: 360px 120px minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
  min-height: 720px;
}

.wbx-preview-stack {
  display: grid;
  gap: 16px;
  height: 100%;
}

.wbx-preview-card,
.wbx-preview-result,
.wbx-detail-grid-item {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: #f4f5f7;
}

.wbx-preview-card img,
.wbx-preview-result img,
.wbx-detail-grid-item img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.wbx-preview-card {
  min-height: 0;
  height: 100%;
}

.wbx-preview-result {
  min-height: 0;
  height: 100%;
}

.wbx-preview-badge {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 12px;
  color: #ffffff;
  background: rgba(63, 57, 50, 0.68);
  backdrop-filter: blur(6px);
  font-size: 0.98rem;
  font-weight: 700;
}

.wbx-preview-placeholder {
  width: 100%;
  height: 100%;
  min-height: 100%;
  display: grid;
  place-items: center;
  padding: 64px 24px 28px;
  background: linear-gradient(180deg, #f6f7f9 0%, #eef1f4 100%);
}

.wbx-preview-placeholder-inner {
  display: grid;
  justify-items: center;
  gap: 10px;
  color: #8e97a3;
  text-align: center;
}

.wbx-preview-placeholder-plus {
  font-size: 2.1rem;
  line-height: 1;
  color: #4a5360;
}

.wbx-preview-placeholder-inner strong {
  color: #616a77;
  font-size: 1rem;
  font-weight: 700;
}

.wbx-preview-placeholder-inner small {
  font-size: 0.9rem;
}

.wbx-preview-card--text,
.wbx-preview-card--model {
  padding: 76px 24px 24px;
  display: flex;
  align-items: center;
}

.wbx-preview-card--text p,
.wbx-preview-card--model p {
  margin: 0;
  color: #6f7884;
  font-size: 0.96rem;
  line-height: 1.8;
}

.wbx-preview-name {
  color: #555d68;
  text-align: center;
  font-size: 1.25rem;
  font-weight: 700;
}

.wbx-model-summary {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
}

.wbx-model-summary img {
  width: 100%;
  border-radius: 22px;
  background: #f7efe8;
}

.wbx-model-summary strong {
  display: block;
  margin-bottom: 10px;
  color: #404853;
  font-size: 1rem;
}

.wbx-preview-plus-bubble {
  width: 58px;
  height: 58px;
  margin: -4px auto -2px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #ffffff;
  font-size: 2rem;
  background: #f8b96e;
  box-shadow: 0 16px 30px rgba(248, 185, 110, 0.34);
}

.wbx-preview-arrow {
  height: 100%;
  position: relative;
  align-self: center;
}

.wbx-preview-arrow::before {
  content: "";
  position: absolute;
  left: 6px;
  right: 6px;
  top: 50%;
  height: 38px;
  transform: translateY(-50%);
  background: linear-gradient(90deg, rgba(255, 194, 117, 0.06), rgba(255, 168, 38, 0.75));
  clip-path: polygon(0 34%, 72% 34%, 72% 0, 100% 50%, 72% 100%, 72% 66%, 0 66%);
  filter: blur(0.2px);
}

.wbx-preview-layout--fabric {
  grid-template-columns: 360px 128px minmax(520px, 1fr);
  gap: 24px;
  min-height: 668px;
  align-items: center;
}

.wbx-preview-stack--fabric {
  grid-template-rows: 286px auto 286px;
  gap: 18px;
}

.wbx-preview-card--fabric,
.wbx-preview-result--fabric {
  border-radius: 26px;
  background: #f1f3f5;
}

.wbx-preview-card--fabric img,
.wbx-preview-result--fabric img {
  object-fit: cover;
}

.wbx-preview-plus-bubble--fabric {
  width: 56px;
  height: 56px;
  margin: -6px auto -4px;
  background: radial-gradient(circle at 30% 30%, #ffd99f, #f7b55f 66%, #ef9d31 100%);
}

.wbx-preview-arrow--fabric::before {
  left: 4px;
  right: 4px;
  top: 50%;
  height: 58px;
  background: linear-gradient(90deg, rgba(255, 198, 126, 0.02), rgba(255, 168, 38, 0.84));
  clip-path: polygon(0 36%, 70% 36%, 70% 0, 100% 50%, 70% 100%, 70% 64%, 0 64%);
}

.wbx-preview-result--fabric {
  min-height: 660px;
}

.wbx-preview-footer--fabric {
  margin-top: 14px;
  padding: 0 4px;
  font-size: 0.88rem;
}

.wbx-preview-layout--instruction {
  grid-template-columns: 360px 128px minmax(520px, 1fr);
  gap: 24px;
  min-height: 668px;
  align-items: center;
}

.wbx-preview-stack--instruction {
  grid-template-rows: 286px auto 292px;
  gap: 18px;
}

.wbx-preview-card--instruction-source,
.wbx-preview-card--instruction-text,
.wbx-preview-result--instruction {
  border-radius: 26px;
  background: #f1f3f5;
}

.wbx-preview-card--instruction-text {
  padding: 74px 24px 26px;
  display: flex;
  align-items: flex-start;
  background: #eef1f4;
}

.wbx-preview-card--instruction-text p {
  margin: 0;
  color: #747d88;
  font-size: 0.96rem;
  line-height: 1.78;
}

.wbx-preview-plus-bubble--instruction {
  width: 56px;
  height: 56px;
  margin: -6px auto -4px;
  background: radial-gradient(circle at 30% 30%, #ffd99f, #f7b55f 66%, #ef9d31 100%);
}

.wbx-preview-arrow--instruction::before {
  left: 4px;
  right: 4px;
  top: 50%;
  height: 58px;
  background: linear-gradient(90deg, rgba(255, 198, 126, 0.02), rgba(255, 168, 38, 0.84));
  clip-path: polygon(0 36%, 70% 36%, 70% 0, 100% 50%, 70% 100%, 70% 64%, 0 64%);
}

.wbx-preview-result--instruction {
  min-height: 660px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 72px 18px 18px;
  background: #f4efe7;
}

.wbx-preview-result--instruction img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
}

.wbx-preview-footer--instruction {
  margin-top: 14px;
  padding: 0 4px;
  font-size: 0.88rem;
}

.wbx-preview-layout--model {
  grid-template-columns: 360px 128px minmax(520px, 1fr);
  gap: 24px;
  min-height: 668px;
  align-items: center;
}

.wbx-preview-stack--model {
  grid-template-rows: 286px auto 292px;
  gap: 18px;
}

.wbx-preview-card--model-source,
.wbx-preview-card--model-summary,
.wbx-preview-result--model {
  border-radius: 26px;
  background: #f1f3f5;
}

.wbx-preview-card--model-summary {
  padding: 74px 24px 24px;
  display: flex;
  align-items: flex-start;
  background: #eef1f4;
}

.wbx-model-summary--card {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  gap: 16px;
}

.wbx-model-summary--card img {
  width: 112px;
  border-radius: 18px;
  background: #ffffff;
}

.wbx-model-summary--card strong {
  display: none;
}

.wbx-model-summary--card p {
  margin: 0;
  color: #747d88;
  font-size: 0.96rem;
  line-height: 1.78;
}

.wbx-preview-plus-bubble--model {
  width: 56px;
  height: 56px;
  margin: -6px auto -4px;
  background: radial-gradient(circle at 30% 30%, #ffd99f, #f7b55f 66%, #ef9d31 100%);
}

.wbx-preview-arrow--model::before {
  left: 4px;
  right: 4px;
  top: 50%;
  height: 58px;
  background: linear-gradient(90deg, rgba(255, 198, 126, 0.02), rgba(255, 168, 38, 0.84));
  clip-path: polygon(0 36%, 70% 36%, 70% 0, 100% 50%, 70% 100%, 70% 64%, 0 64%);
}

.wbx-preview-result--model {
  min-height: 660px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 72px 18px 18px;
  background: #f4efe7;
}

.wbx-preview-result--model img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
}

.wbx-preview-footer--model {
  margin-top: 14px;
  padding: 0 4px;
  font-size: 0.88rem;
}

.wbx-preview-layout--detail {
  grid-template-columns: 340px 128px minmax(560px, 1fr);
  gap: 24px;
  min-height: 680px;
  align-items: center;
}

.wbx-preview-stack--detail {
  grid-template-rows: 370px auto 240px;
  gap: 18px;
}

.wbx-preview-card--detail-source,
.wbx-preview-card--detail-name,
.wbx-preview-result--detail {
  border-radius: 26px;
  background: #f1f3f5;
}

.wbx-preview-card--detail-name {
  padding: 76px 24px 26px;
  display: flex;
  align-items: flex-start;
  background: #eef1f4;
}

.wbx-preview-card--detail-name .wbx-preview-name {
  width: 100%;
  color: #6a717c;
  font-size: 1.1rem;
  line-height: 1.8;
}

.wbx-preview-plus-bubble--detail {
  width: 56px;
  height: 56px;
  margin: -6px auto -4px;
  background: radial-gradient(circle at 30% 30%, #ffd99f, #f7b55f 66%, #ef9d31 100%);
}

.wbx-preview-arrow--detail::before {
  left: 2px;
  right: 2px;
  top: 50%;
  height: 62px;
  background: linear-gradient(90deg, rgba(255, 198, 126, 0.02), rgba(255, 168, 38, 0.88));
  clip-path: polygon(0 36%, 70% 36%, 70% 0, 100% 50%, 70% 100%, 70% 64%, 0 64%);
}

.wbx-preview-result--detail {
  min-height: 660px;
  background: #f3ece2;
}

.wbx-preview-result--detail .wbx-detail-grid {
  gap: 14px;
  padding: 16px;
}

.wbx-preview-result--detail .wbx-detail-grid-item {
  border-radius: 20px;
  background: #f6f1e8;
}

.wbx-thumb-row--detail {
  display: none;
}

.wbx-preview-footer--detail {
  margin-top: 14px;
  padding: 0 4px;
  font-size: 0.88rem;
}

.wbx-ai-mark {
  position: absolute;
  right: 18px;
  bottom: 18px;
  padding: 10px 16px;
  border-radius: 18px;
  color: rgba(255, 255, 255, 0.95);
  border: 2px solid rgba(255, 255, 255, 0.75);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(6px);
  font-size: 1rem;
  font-weight: 700;
}

.wbx-preview-result--grid {
  padding-top: 56px;
}

.wbx-detail-grid {
  height: 100%;
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 18px;
}

.wbx-detail-grid-item {
  min-height: 0;
  height: 100%;
}

.wbx-thumb-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.wbx-thumb-card {
  width: 84px;
  height: 84px;
  padding: 4px;
  border: 1px solid #e0e5ed;
  border-radius: 16px;
  background: #ffffff;
  cursor: pointer;
}

.wbx-thumb-card img {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 12px;
  object-fit: cover;
}

.wbx-thumb-card.is-active {
  border-color: #8c80ff;
  box-shadow: 0 10px 18px rgba(140, 128, 255, 0.18);
}

.wbx-preview-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-top: 18px;
  color: #8d96a2;
  font-size: 0.92rem;
}

.wbx-preview-footer a {
  color: #6f5df7;
  text-decoration: none;
  font-weight: 700;
}

.wbx-page.is-sidebar-collapsed {
  grid-template-columns: 90px minmax(0, 1fr);
}

.wbx-page.is-sidebar-collapsed .wbx-brand-copy,
.wbx-page.is-sidebar-collapsed .wbx-nav-item span:not(.wbx-nav-icon) {
  display: none;
}

.wbx-page.is-sidebar-collapsed .wbx-nav-item {
  justify-content: center;
  padding: 0;
}

@media (max-width: 1680px) {
  .wbx-style-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .wbx-preview-layout {
    grid-template-columns: 320px 90px minmax(0, 1fr);
  }

  .wbx-preview-layout--fabric,
  .wbx-preview-layout--instruction,
  .wbx-preview-layout--model,
  .wbx-preview-layout--detail {
    grid-template-columns: 320px 90px minmax(0, 1fr);
  }

  .wbx-preview-layout--fabric {
    grid-template-columns: 316px 104px minmax(0, 1fr);
  }

  .wbx-preview-stack--fabric {
    grid-template-rows: 258px auto 258px;
  }

  .wbx-preview-stack--instruction,
  .wbx-preview-stack--model {
    grid-template-rows: 258px auto 262px;
  }

  .wbx-preview-stack--detail {
    grid-template-rows: 286px auto 216px;
  }
}

@media (max-width: 1440px) {
  .wbx-workspace {
    grid-template-columns: 500px minmax(0, 1fr);
  }

  .wbx-style-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .wbx-preview-head {
    flex-direction: column;
    align-items: stretch;
  }

  .wbx-step-bar {
    justify-content: space-between;
  }

  .wbx-fabric-upload-grid {
    grid-template-columns: 1fr;
  }

  .wbx-tool-upload-panel--model .wbx-tool-upload-box--model {
    width: 100%;
  }
}

@media (max-width: 1200px) {
  .wbx-page {
    grid-template-columns: 1fr;
  }

  .wbx-sidebar {
    border-right: 0;
    border-bottom: 1px solid #e2e7ef;
  }

  .wbx-workspace {
    grid-template-columns: 1fr;
  }

  .wbx-preview-layout {
    grid-template-columns: 1fr;
  }

  .wbx-preview-arrow {
    display: none;
  }

  .wbx-preview-result {
    min-height: 560px;
    height: auto;
  }

  .wbx-preview-layout,
  .wbx-preview-layout--fabric,
  .wbx-preview-layout--instruction,
  .wbx-preview-layout--model,
  .wbx-preview-layout--detail {
    min-height: 0;
  }

  .wbx-preview-stack {
    height: auto;
    grid-template-rows: none;
  }

  .wbx-preview-result--fabric {
    min-height: 520px;
  }
}

@media (max-width: 760px) {
  .wbx-main {
    padding: 16px;
  }

  .wbx-upload-box,
  .wbx-upload-box--single {
    grid-template-columns: 1fr;
  }

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

  .wbx-fabric-upload-panel {
    padding: 18px 16px 14px;
  }

  .wbx-tool-upload-panel {
    padding: 18px 16px 14px;
  }

  .wbx-fabric-upload-box {
    min-height: 188px;
  }

  .wbx-tool-upload-box,
  .wbx-tool-upload-box--product {
    min-height: 172px;
  }

  .wbx-step-bar,
  .wbx-preview-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .wbx-preview-card,
  .wbx-preview-result {
    min-height: 340px;
    height: auto;
  }

  .wbx-detail-grid {
    min-height: 420px;
  }
}

body.eco-local-body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(250, 217, 185, 0.42), transparent 30%),
    radial-gradient(circle at top right, rgba(160, 190, 223, 0.32), transparent 28%),
    linear-gradient(180deg, #f7f4ee 0%, #ece7de 100%);
  color: #1f1c18;
}

.eco-local-body *,
.eco-local-body *::before,
.eco-local-body *::after {
  box-sizing: border-box;
}

.eco-local-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(320px, 380px) minmax(0, 1fr);
  gap: 24px;
  padding: 24px;
}

.eco-local-sidebar,
.eco-local-main,
.eco-local-form-column,
.eco-local-preview-column {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.eco-local-content {
  display: grid;
  grid-template-columns: minmax(360px, 440px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.eco-local-card {
  background: rgba(255, 252, 247, 0.86);
  border: 1px solid rgba(88, 72, 57, 0.08);
  border-radius: 30px;
  padding: 24px;
  box-shadow: 0 20px 60px rgba(58, 44, 31, 0.08);
  backdrop-filter: blur(18px);
}

.eco-local-card--intro {
  background:
    radial-gradient(circle at top right, rgba(217, 233, 255, 0.68), transparent 35%),
    linear-gradient(135deg, rgba(255, 247, 236, 0.94), rgba(250, 241, 231, 0.9));
}

.eco-local-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.eco-local-brand-mark {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: linear-gradient(135deg, #243f6b, #5d7fad);
  color: #fff;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.eco-local-brand-copy {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
}

.eco-local-brand-copy strong {
  font-size: 1rem;
}

.eco-local-brand-copy small,
.eco-local-kicker,
.eco-local-card-kicker {
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8b735d;
}

.eco-local-card-head,
.eco-local-output-head,
.eco-local-collect-head,
.eco-local-gpu-head,
.eco-local-gpu-meta,
.eco-local-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.eco-local-card-head {
  margin-bottom: 16px;
}

.eco-local-card-head h2,
.eco-local-toolbar h2 {
  margin: 2px 0 0;
  font-size: 1.3rem;
}

.eco-local-card--intro h1 {
  margin: 6px 0 10px;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  line-height: 1.04;
}

.eco-local-intro-text,
.eco-local-output-note,
.eco-local-engine-box p {
  margin: 0;
  color: #5e5449;
  line-height: 1.6;
}

.eco-local-engine-box {
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(60, 53, 45, 0.08);
}

.eco-local-engine-box span,
.eco-local-gpu-card span,
.eco-local-metric span,
.eco-local-path-item span {
  display: block;
  font-size: 0.85rem;
  color: #867362;
}

.eco-local-engine-box strong,
.eco-local-gpu-card strong,
.eco-local-metric strong {
  display: block;
  margin-top: 6px;
  font-size: 1.05rem;
  color: #1f1c18;
}

.eco-local-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}

.eco-local-field:last-child {
  margin-bottom: 0;
}

.eco-local-field span {
  font-weight: 600;
  color: #41362c;
}

.eco-local-field input,
.eco-local-field select,
.eco-local-field textarea {
  width: 100%;
  border-radius: 18px;
  border: 1px solid rgba(73, 61, 49, 0.12);
  background: rgba(255, 255, 255, 0.92);
  padding: 14px 16px;
  font-size: 0.98rem;
  color: #1f1c18;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.eco-local-field input:focus,
.eco-local-field select:focus,
.eco-local-field textarea:focus {
  border-color: rgba(43, 86, 144, 0.34);
  box-shadow: 0 0 0 4px rgba(76, 122, 184, 0.08);
}

.eco-local-gpu-card {
  margin-top: 6px;
  padding: 16px 18px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(247, 243, 237, 0.94));
  border: 1px solid rgba(73, 61, 49, 0.08);
}

.eco-local-gpu-bar {
  margin-top: 14px;
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: rgba(23, 28, 39, 0.08);
  overflow: hidden;
}

.eco-local-gpu-bar-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #223d65, #5579aa 72%, #7fb5c8);
}

.eco-local-ghost-button,
.eco-local-mini-button,
.eco-local-mini-link,
.eco-local-tier-button,
.eco-local-collect-item,
.eco-local-output-item {
  font: inherit;
}

.eco-local-ghost-button,
.eco-local-mini-button,
.eco-local-mini-link {
  border: 1px solid rgba(73, 61, 49, 0.12);
  background: rgba(255, 255, 255, 0.82);
  color: #2f2a24;
  border-radius: 999px;
  padding: 10px 14px;
  cursor: pointer;
  text-decoration: none;
}

.eco-local-mini-button,
.eco-local-mini-link {
  padding: 8px 12px;
  font-size: 0.84rem;
}

.eco-local-path-list,
.eco-local-metrics,
.eco-local-output-actions,
.eco-local-toolbar-chips,
.eco-local-collect-meta,
.eco-local-preview-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.eco-local-path-item,
.eco-local-metric {
  flex: 1 1 0;
  min-width: 0;
  padding: 14px 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(73, 61, 49, 0.08);
}

.eco-local-path-item code,
.eco-local-output-copy code,
.eco-local-preview-footer code {
  display: block;
  margin-top: 8px;
  white-space: normal;
  word-break: break-all;
  font-size: 0.82rem;
  color: #6c5d50;
}

.eco-local-collect-list,
.eco-local-output-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
  max-height: 380px;
  overflow: auto;
}

.eco-local-collect-item {
  width: 100%;
  text-align: left;
  padding: 16px 18px;
  border-radius: 22px;
  border: 1px solid rgba(73, 61, 49, 0.1);
  background: rgba(255, 255, 255, 0.82);
  cursor: pointer;
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.eco-local-collect-item:hover,
.eco-local-output-item:hover {
  transform: translateY(-2px);
  border-color: rgba(45, 79, 125, 0.18);
  box-shadow: 0 14px 32px rgba(54, 42, 30, 0.08);
}

.eco-local-collect-item.is-active {
  border-color: rgba(39, 82, 137, 0.36);
  background: linear-gradient(135deg, rgba(237, 243, 251, 0.98), rgba(255, 252, 246, 0.94));
}

.eco-local-collect-head strong,
.eco-local-output-head strong {
  font-size: 1rem;
}

.eco-local-collect-item p,
.eco-local-output-copy p,
.eco-local-preview-item-copy p,
.eco-local-preview-placeholder p {
  margin: 8px 0 0;
  color: #64584d;
  line-height: 1.5;
}

.eco-local-collect-badge,
.eco-local-pill,
.eco-local-chip,
.eco-local-preview-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(36, 43, 55, 0.08);
  color: #2a2d31;
  font-size: 0.84rem;
  white-space: nowrap;
}

.eco-local-pill {
  background: rgba(30, 61, 98, 0.1);
  color: #26466f;
}

.eco-local-chip {
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(55, 48, 40, 0.08);
}

.eco-local-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.eco-local-tier-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 6px 0 16px;
}

.eco-local-tier-button {
  border: 1px solid rgba(73, 61, 49, 0.1);
  background: rgba(255, 255, 255, 0.72);
  color: #453b32;
  border-radius: 18px;
  padding: 12px 14px;
  cursor: pointer;
}

.eco-local-tier-button.is-active {
  background: linear-gradient(135deg, #223d65, #5073a4);
  border-color: transparent;
  color: #fff;
}

.eco-local-tier-button.is-disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.eco-local-current-collect,
.eco-local-status,
.eco-local-empty {
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(73, 61, 49, 0.08);
  color: #5d5248;
}

.eco-local-status.is-success {
  border-color: rgba(19, 139, 99, 0.18);
  background: rgba(232, 250, 242, 0.92);
  color: #176548;
}

.eco-local-status.is-error {
  border-color: rgba(191, 88, 70, 0.18);
  background: rgba(255, 240, 236, 0.92);
  color: #8a3829;
}

.eco-local-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
}

.eco-local-generate-button {
  width: 100%;
  min-height: 54px;
  border-radius: 20px;
}

.eco-local-preview-card {
  min-height: 100%;
}

.eco-local-preview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.eco-local-preview-item,
.eco-local-output-item {
  border-radius: 24px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(244, 238, 230, 0.9));
  border: 1px solid rgba(73, 61, 49, 0.08);
}

.eco-local-preview-item-media {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: linear-gradient(135deg, #637389, #2c3340);
}

.eco-local-preview-item-media img,
.eco-local-output-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.eco-local-preview-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  backdrop-filter: blur(6px);
}

.eco-local-preview-item-copy,
.eco-local-output-copy {
  padding: 16px;
}

.eco-local-preview-item-copy strong,
.eco-local-preview-placeholder strong {
  display: block;
  font-size: 1.12rem;
}

.eco-local-preview-placeholder {
  position: relative;
  aspect-ratio: 1 / 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 18px;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.18), transparent 20%),
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.2), transparent 18%),
    radial-gradient(circle at bottom center, rgba(255, 255, 255, 0.16), transparent 20%),
    linear-gradient(135deg, #6a7688, #2b3038);
  color: #fff;
}

.eco-local-output-item {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
}

.eco-local-output-cover,
.eco-local-output-placeholder {
  min-height: 110px;
  height: 100%;
}

.eco-local-output-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  text-align: center;
  font-size: 0.82rem;
  color: #fff;
  background: linear-gradient(135deg, #58677a, #262d36);
}

.eco-local-output-head span {
  font-size: 0.8rem;
  color: #837364;
}

.eco-local-preview-footer {
  margin-top: 16px;
  align-items: center;
}

@media (max-width: 1360px) {
  .eco-local-page {
    grid-template-columns: minmax(300px, 360px) minmax(0, 1fr);
  }

  .eco-local-content {
    grid-template-columns: minmax(320px, 400px) minmax(0, 1fr);
  }
}

@media (max-width: 1120px) {
  .eco-local-page,
  .eco-local-content {
    grid-template-columns: 1fr;
  }

  .eco-local-preview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .eco-local-page {
    padding: 14px;
    gap: 14px;
  }

  .eco-local-card {
    padding: 18px;
    border-radius: 24px;
  }

  .eco-local-form-grid,
  .eco-local-tier-switch,
  .eco-local-preview-grid {
    grid-template-columns: 1fr;
  }

  .eco-local-output-item {
    grid-template-columns: 1fr;
  }

  .eco-local-output-cover,
  .eco-local-output-placeholder {
    min-height: 180px;
  }

  .eco-local-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }
}

.eco-local-page {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.eco-local-windowbar,
.eco-local-windowbar-main,
.eco-local-windowbar-side,
.eco-local-window-dots,
.eco-local-summary-strip,
.eco-local-stage,
.eco-local-statusbar,
.eco-local-hero-meta,
.eco-local-panel-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.eco-local-windowbar,
.eco-local-statusbar {
  justify-content: space-between;
  border-radius: 24px;
  border: 1px solid rgba(57, 49, 40, 0.08);
  background: rgba(255, 251, 246, 0.74);
  box-shadow: 0 16px 48px rgba(50, 38, 27, 0.08);
  backdrop-filter: blur(20px);
}

.eco-local-windowbar {
  padding: 14px 18px;
}

.eco-local-windowbar-main {
  min-width: 0;
  flex: 1 1 auto;
}

.eco-local-windowbar-side {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.eco-local-window-dots span {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  display: inline-block;
}

.eco-local-window-dots span:nth-child(1) {
  background: #fb5f57;
}

.eco-local-window-dots span:nth-child(2) {
  background: #f8bf2b;
}

.eco-local-window-dots span:nth-child(3) {
  background: #28c840;
}

.eco-local-window-pill {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(33, 42, 58, 0.08);
  color: #27303d;
  font-size: 0.82rem;
  white-space: nowrap;
}

.eco-local-summary-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.eco-local-summary-card {
  padding: 18px 20px;
  border-radius: 24px;
  background:
    radial-gradient(circle at top right, rgba(230, 237, 248, 0.9), transparent 36%),
    linear-gradient(180deg, rgba(255, 252, 247, 0.88), rgba(246, 241, 233, 0.94));
  border: 1px solid rgba(57, 49, 40, 0.08);
  box-shadow: 0 16px 44px rgba(50, 38, 27, 0.06);
}

.eco-local-summary-card span {
  display: block;
  font-size: 0.8rem;
  color: #8d7760;
}

.eco-local-summary-card strong {
  display: block;
  margin-top: 8px;
  font-size: 1.06rem;
  color: #1d1c19;
}

.eco-local-summary-card p {
  margin: 8px 0 0;
  color: #665b50;
  font-size: 0.88rem;
}

.eco-local-stage {
  align-items: stretch;
  gap: 18px;
}

.eco-local-sidebar {
  flex: 0 0 350px;
}

.eco-local-taskboard {
  flex: 0 0 430px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.eco-local-outputboard {
  min-width: 0;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.eco-local-panel {
  border-radius: 28px;
  border: 1px solid rgba(57, 49, 40, 0.08);
  background: rgba(255, 252, 247, 0.84);
  box-shadow: 0 20px 60px rgba(50, 38, 27, 0.08);
  padding: 22px;
  backdrop-filter: blur(18px);
}

.eco-local-panel--hero {
  background:
    radial-gradient(circle at top right, rgba(211, 225, 244, 0.84), transparent 36%),
    radial-gradient(circle at bottom left, rgba(251, 218, 190, 0.52), transparent 30%),
    linear-gradient(135deg, rgba(253, 248, 240, 0.96), rgba(246, 240, 232, 0.94));
}

.eco-local-panel--hero h1 {
  margin: 6px 0 10px;
  font-size: clamp(1.9rem, 2.8vw, 2.6rem);
  line-height: 1.02;
}

.eco-local-panel--preview {
  padding-bottom: 16px;
}

.eco-local-panel-head {
  justify-content: space-between;
  margin-bottom: 16px;
}

.eco-local-panel-head h2 {
  margin: 2px 0 0;
  font-size: 1.28rem;
}

.eco-local-hero-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.eco-local-hero-meta > div {
  border-radius: 20px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(57, 49, 40, 0.08);
}

.eco-local-hero-meta span {
  display: block;
  font-size: 0.8rem;
  color: #8c765f;
}

.eco-local-hero-meta strong {
  display: block;
  margin-top: 8px;
  font-size: 1rem;
}

.eco-local-task-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.eco-local-preview-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.eco-local-preview-item {
  border-radius: 28px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(57, 49, 40, 0.08);
}

.eco-local-preview-item-media,
.eco-local-preview-placeholder {
  aspect-ratio: 1 / 1;
  min-height: 240px;
}

.eco-local-preview-item-copy {
  padding: 18px;
}

.eco-local-preview-item-copy strong,
.eco-local-preview-placeholder strong {
  font-family: "Space Grotesk", "Noto Sans SC", sans-serif;
  font-size: 1.12rem;
}

.eco-local-preview-item-copy p,
.eco-local-preview-placeholder p {
  font-size: 0.92rem;
}

.eco-local-output-list {
  max-height: 420px;
}

.eco-local-output-item {
  border-radius: 24px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.9);
}

.eco-local-statusbar {
  padding: 12px 18px;
  flex-wrap: wrap;
  justify-content: space-between;
}

.eco-local-statusbar span {
  color: #5e564d;
  font-size: 0.88rem;
}

.eco-local-statusbar code,
.eco-local-statusbar strong {
  color: #22201d;
}

@media (max-width: 1480px) {
  .eco-local-stage {
    flex-direction: column;
  }

  .eco-local-sidebar,
  .eco-local-taskboard,
  .eco-local-outputboard {
    flex: 1 1 auto;
  }
}

@media (max-width: 980px) {
  .eco-local-summary-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .eco-local-windowbar,
  .eco-local-statusbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .eco-local-windowbar-side {
    justify-content: flex-start;
  }

  .eco-local-summary-strip,
  .eco-local-task-grid,
  .eco-local-hero-meta,
  .eco-local-preview-grid {
    grid-template-columns: 1fr;
  }
}
