:root {
  color-scheme: light;
  --ink: #141716;
  --muted: #5d6562;
  --paper: #f3f7f6;
  --surface: #ffffff;
  --surface-2: #eaf2ef;
  --line: #d6dfdb;
  --line-strong: #b7c7c1;
  --accent: #008c78;
  --accent-dark: #006d60;
  --mint: #dff7ef;
  --cyan: #dff5fb;
  --coral: #ff6b5c;
  --lemon: #f7d44c;
  --cut: #ff00ff;
  --selected: #00a7c8;
  --danger: #c43f4a;
  --shadow: 0 18px 48px rgba(20, 23, 22, 0.12);
  --commerce-header-height: 78px;
  --stage-toolbar-height: 0px;
  --editor-sidebar-width: 272px;
  --editor-sidebar-offset: 0px;
  --ui-font-base: 8px;
  --ui-font-scale: 0.8;
  --fs-11: 8.8px;
  --fs-12: 9.6px;
  --fs-13: 10.4px;
  --fs-14: 11.2px;
  --fs-15: 12px;
  --fs-16: 12.8px;
  --fs-17: 13.6px;
  --fs-18: 14.4px;
  --fs-19: 15.2px;
  --fs-20: 16px;
  --fs-21: 16.8px;
  --fs-22: 17.6px;
  --fs-24: 19.2px;
  --fs-28: 22.4px;
  --fs-30: 24px;
  --fs-34: 27.2px;
  --fs-36: 28.8px;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-width: 320px;
  min-height: 100%;
  margin: 0;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-size: var(--ui-font-base);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  letter-spacing: 0;
}

body:has(.commerce-layout.is-workspace) {
  overflow: hidden;
}

button,
input,
select,
textarea {
  font: inherit;
  letter-spacing: 0;
}

button {
  border: 0;
  cursor: pointer;
}

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

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

.commerce-header {
  position: sticky;
  top: 0;
  z-index: 12;
  display: grid;
  grid-template-columns: minmax(220px, 320px) minmax(260px, 1fr) auto;
  align-items: center;
  gap: 16px;
  min-height: 72px;
  padding: 12px 18px;
  background: #101412;
  color: #ffffff;
  border-bottom: 1px solid #26302c;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-self: start;
  color: inherit;
  text-decoration: none;
}

.brand-logo {
  display: block;
  width: 92px;
  height: 66px;
  border-radius: 6px;
  object-fit: contain;
  object-position: center;
}

.brand-icon,
.section-heading span,
.account-avatar {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: var(--mint);
  color: var(--accent-dark);
}

.brand-mark strong {
  display: block;
  font-size: var(--fs-18);
  line-height: 1.1;
}

.brand-mark small {
  display: block;
  margin-top: 3px;
  color: #b8d2ca;
  font-size: var(--fs-12);
}

.top-menu,
.account-area,
.account-menu {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.top-menu {
  justify-content: center;
}

.account-area {
  justify-content: flex-end;
}

.account-menu {
  justify-content: flex-end;
}

.header-google-button {
  display: flex;
  align-items: center;
  min-width: 180px;
  min-height: 40px;
}

.header-google-button[hidden] {
  display: none;
}

.header-google-button iframe {
  display: block;
}

.font-size-controls {
  display: inline-grid;
  grid-template-columns: 34px minmax(42px, auto) 34px;
  align-items: center;
  overflow: hidden;
  min-height: 36px;
  border: 1px solid #33413b;
  border-radius: 8px;
  background: #17201c;
  color: #dce9e4;
}

.font-size-controls button {
  display: grid;
  place-items: center;
  min-height: 34px;
  padding: 0;
  background: transparent;
  color: inherit;
  font-weight: 900;
}

.font-size-controls button:hover {
  background: #24312c;
}

.font-size-controls output {
  display: grid;
  place-items: center;
  min-height: 34px;
  padding: 0 9px;
  border-inline: 1px solid #33413b;
  color: #ffffff;
  font-weight: 900;
  cursor: pointer;
}

.nav-button,
.account-nav-button,
.login-button,
.primary-button,
.mode-button,
.sample-button,
.ghost-button,
.danger-button,
.icon-button {
  min-height: 40px;
  border-radius: 8px;
  padding: 9px 12px;
  font-weight: 800;
}

.nav-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #202823;
  color: #dce9e4;
}

.account-nav-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  background: #f0f5f2;
  color: var(--ink);
  font-size: var(--ui-font-base);
}

.nav-button.is-active,
.nav-button:hover {
  background: #ffffff;
  color: var(--ink);
}

.account-nav-button.is-active,
.account-nav-button:hover {
  border-color: var(--line);
  background: #f0f5f2;
  color: var(--ink);
}

.login-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #ffffff;
  color: var(--ink);
}

.commerce-layout {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(320px, 480px) minmax(360px, 1fr);
  gap: 14px;
  min-height: 0;
  padding: 14px;
}

.commerce-layout.is-workspace {
  grid-template-columns: 1fr;
  height: calc(100vh - var(--commerce-header-height));
  min-height: 0;
  padding: 0;
  overflow: hidden;
}

.menu-panel,
.template-rail {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.main-screen {
  display: none;
}

.commerce-layout.is-workspace .main-screen {
  display: flex;
  height: 100%;
  min-height: 0;
}

.commerce-layout.is-workspace .hero-band {
  display: none;
}

.commerce-layout.is-workspace .empty-state {
  display: none;
}

.commerce-layout.is-workspace .menu-panel,
.commerce-layout.is-workspace .template-rail {
  display: none;
}

.menu-intro,
.account-card,
.process-list,
.prompt-panel,
.saved-panel,
.order-panel,
.tool-panel,
.hero-band {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(20, 23, 22, 0.06);
}

.menu-intro,
.prompt-panel,
.saved-panel,
.order-panel,
.hero-band {
  padding: 16px;
}

.menu-intro h1,
.hero-band h2,
.section-heading h2 {
  margin: 0;
  line-height: 1.15;
}

.menu-intro h1 {
  font-size: var(--fs-28);
}

.hero-band h2 {
  max-width: 760px;
  font-size: var(--fs-24);
}

.menu-intro p,
.hero-band p,
.empty-copy {
  color: var(--muted);
  line-height: 1.55;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--accent-dark);
  font-size: var(--fs-12);
  font-weight: 800;
}

.account-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
}

.account-card strong,
.account-card span {
  display: block;
}

.account-card span {
  margin-top: 3px;
  color: var(--muted);
  font-size: var(--fs-13);
  line-height: 1.35;
}

.process-list {
  padding: 10px;
}

.process-list div {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 8px;
  border-radius: 8px;
  color: var(--muted);
  font-weight: 800;
}

.process-list i {
  color: var(--accent);
}

.sample-strip {
  display: grid;
  gap: 10px;
}

.sample-strip img {
  width: 100%;
  max-height: 160px;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.main-screen {
  min-width: 0;
  flex-direction: column;
  gap: 12px;
}

.hero-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.workspace {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-height: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface-2);
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 0;
  max-height: calc(100vh - 174px);
  padding: 12px;
  overflow: auto;
  border-right: 1px solid var(--line);
  background: var(--surface-2);
}

.home-upload-panel {
  border-color: var(--line-strong);
}

.tool-panel {
  padding: 14px;
}

.step-label {
  margin-bottom: 12px;
  font-size: var(--fs-14);
  font-weight: 900;
}

.file-drop {
  display: grid;
  gap: 4px;
  min-height: 96px;
  place-items: center;
  padding: 18px;
  border: 1px dashed #91a49d;
  border-radius: 8px;
  background: #f8fbfa;
  text-align: center;
  cursor: pointer;
}

.file-drop:hover,
.file-drop.is-dragging {
  border-color: var(--accent);
  background: var(--mint);
}

.file-drop input {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  opacity: 0;
  pointer-events: none;
}

.file-drop span {
  color: var(--muted);
  font-size: var(--fs-13);
}

.file-drop strong {
  font-size: var(--fs-17);
}

.sample-grid,
.field-grid,
.button-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: var(--fs-12);
  font-weight: 800;
}

select,
input[type="text"],
input[type="number"],
textarea {
  width: 100%;
  min-height: 40px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
}

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

input[type="range"] {
  width: 100%;
  accent-color: var(--accent);
}

.range-field {
  margin-top: 12px;
}

.range-field output {
  justify-self: end;
  color: var(--ink);
}

.primary-button {
  width: 100%;
  margin-top: 12px;
  background: var(--accent);
  color: #ffffff;
}

.primary-button.compact {
  margin-top: 0;
}

.primary-button:hover {
  background: var(--accent-dark);
}

.mode-button {
  width: 100%;
  background: #202823;
  color: #ffffff;
}

.mode-button.is-active {
  background: var(--lemon);
  color: #101412;
}

.sample-button,
.ghost-button {
  background: #f0f5f2;
  color: var(--ink);
  border: 1px solid var(--line);
}

.ghost-button.slim {
  min-height: 34px;
  padding: 7px 10px;
}

.ghost-button.compact {
  width: auto;
  min-height: 36px;
  padding: 8px 12px;
}

.ghost-button.is-active {
  background: var(--mint);
  border-color: var(--accent);
  color: var(--accent-dark);
}

.danger-button {
  background: #fff0f1;
  color: var(--danger);
  border: 1px solid #efc4c9;
}

.status-pill,
.status-chip {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: var(--fs-12);
  font-weight: 800;
  white-space: nowrap;
}

.status-pill {
  background: #26302c;
  color: #dce9e4;
}

.status-chip {
  background: #ffffff;
  color: var(--muted);
  border: 1px solid var(--line);
}

.hint {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: var(--fs-13);
  line-height: 1.5;
}

.check-field {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
}

.download-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  margin-top: 10px;
  border-radius: 8px;
  background: #101412;
  color: #ffffff;
  font-weight: 800;
  text-decoration: none;
}

.swatch-row {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: var(--fs-13);
  font-weight: 800;
}

.swatch-row span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.color-swatch {
  width: 18px;
  height: 18px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #ffffff;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.8);
}

.stage {
  position: relative;
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr);
  padding: 12px;
  gap: 12px;
}

.stage-toolbar {
  position: sticky;
  top: var(--commerce-header-height);
  z-index: 11;
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  margin: -4px -4px 0;
  padding: 8px 10px;
  padding-right: min(420px, 38vw);
  border: 1px solid rgba(214, 223, 219, 0.9);
  border-radius: 8px;
  background: rgba(249, 251, 250, 0.94);
  box-shadow: 0 12px 26px rgba(17, 24, 39, 0.08);
  backdrop-filter: blur(12px);
}

.commerce-layout.is-workspace .workspace {
  border-top: 0;
  border-right: 0;
  border-left: 0;
  border-radius: 0;
  height: 100%;
  min-height: 0;
}

.commerce-layout.is-workspace .stage {
  grid-template-rows: minmax(0, 1fr);
  height: 100%;
  min-height: 0;
  gap: 0;
  padding: 0 0 0 var(--editor-sidebar-offset);
  overflow: hidden;
}

.commerce-layout.is-workspace .stage-toolbar {
  position: fixed;
  top: var(--commerce-header-height);
  bottom: 0;
  left: 0;
  right: auto;
  z-index: 18;
  display: flex;
  width: var(--editor-sidebar-width);
  min-width: var(--editor-sidebar-width);
  max-height: none;
  margin: 0;
  overflow: auto;
  transform: none;
  opacity: 1;
  visibility: visible;
  border-top: 0;
  border-right: 1px solid rgba(214, 223, 219, 0.9);
  border-left: 0;
  border-radius: 0;
  background: rgba(249, 251, 250, 0.98);
}

.stage-toolbar .status-chip {
  display: none;
}

.stage-toolbar.is-simplified {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 8px;
  padding-right: 8px;
}

.stage-toolbar.is-left-editor-menu {
  width: var(--editor-sidebar-width);
  min-width: var(--editor-sidebar-width);
}

.stage-toolbar.is-left-editor-menu .editor-command-menu {
  width: 100%;
}

.editor-hidden-status {
  display: none;
}

.editor-command-menu {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  align-items: stretch;
}

.editor-command-group {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: 6px;
  min-width: 0;
  padding: 0;
  border: 1px solid rgba(215, 225, 221, 0.86);
  border-radius: 8px;
  background: #ffffff;
  overflow: hidden;
}

.editor-command-group::before {
  content: none;
}

.editor-command-title {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 5px;
  grid-column: 1 / -1;
  min-height: 18px;
  width: 100%;
  padding: 8px 9px;
  border: 0;
  border-radius: 0;
  background: #f8faf9;
  color: #64748b;
  font-size: var(--fs-11);
  font-weight: 950;
  letter-spacing: 0;
  line-height: 1;
  cursor: pointer;
}

.editor-command-title::after {
  content: "+";
  margin-left: auto;
  color: #94a3b8;
  font-weight: 950;
}

.editor-command-group.is-open {
  padding: 0 6px 6px;
}

.editor-command-group.is-open .editor-command-title {
  margin: 0 -6px 0;
}

.editor-command-group.is-open .editor-command-title::after {
  content: "-";
}

.editor-command-group:not(.is-open) > :not(.editor-command-title) {
  display: none !important;
}

.editor-command-title i {
  color: var(--accent);
  font-size: var(--fs-12);
}

.editor-command-group.is-file {
  grid-column: auto;
}

.editor-command-group.is-preflight {
  grid-column: auto;
}

.editor-command-group.is-shapes {
  grid-column: auto;
}

.editor-command-group.is-edit {
  grid-column: auto;
}

.editor-command-group.is-view {
  grid-column: auto;
}

.editor-command-group.is-print {
  grid-column: auto;
}

.editor-command-group.is-order {
  grid-column: auto;
}

.editor-command-group.is-file,
.editor-command-group.is-preflight,
.editor-command-group.is-print,
.editor-command-group.is-order {
  grid-template-columns: 1fr;
}

.editor-command-group .tray-action,
.editor-command-group .tray-wide-button,
.editor-command-group .editor-flow-button,
.editor-command-group .toolbar-fit-button,
.editor-command-group .toolbar-icon-button,
.shape-tool-button {
  width: 100%;
  min-width: 0;
  min-height: 34px;
  box-shadow: none;
}

.editor-command-group .tray-wide-button {
  padding-inline: 12px;
}

.editor-command-group .top-tool-cluster {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px;
  grid-column: 1 / -1;
}

.editor-command-group .top-tool-cluster .tray-tool-button {
  min-height: 34px;
  flex-direction: row;
  padding: 6px 8px;
  font-size: var(--fs-11);
}

.editor-command-group .top-color-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  width: 100%;
}

.editor-command-group .top-color-row span {
  min-height: 32px;
  padding: 0 6px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8faf9;
}

.editor-command-group .stage-zoom-controls {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: 34px minmax(0, 1fr) 34px minmax(58px, 1fr);
  gap: 5px;
  width: 100%;
  margin-left: 0;
}

.editor-command-group .zoom-level-label {
  min-width: 0;
}

.top-command-button {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 5px;
  min-height: 34px;
  padding: 6px 9px;
  white-space: nowrap;
  width: 100%;
}

.top-command-button.is-main-action,
.editor-command-group.is-order .top-command-button {
  font-weight: 950;
}

.shape-tool-button {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 5px;
  padding: 6px 8px;
  border: 1px solid #d7e1dd;
  border-radius: 8px;
  background: #f8faf9;
  color: #17201c;
  font-size: var(--fs-11);
  font-weight: 950;
  cursor: pointer;
}

.shape-tool-button:hover:not(:disabled),
.shape-tool-button:focus-visible {
  border-color: var(--accent);
  color: var(--accent-dark);
  outline: none;
}

.shape-tool-button:disabled {
  cursor: not-allowed;
  opacity: 0.46;
}

.stage-toolbar.is-left-editor-menu .top-view-grid {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: 1fr;
  width: 100%;
}

.stage-toolbar.is-left-editor-menu .top-view-grid label,
.stage-toolbar.is-left-editor-menu .top-check-field,
.stage-toolbar.is-left-editor-menu .top-command-field.is-width {
  grid-column: 1 / -1;
  width: 100%;
}

.is-hidden-option[hidden] {
  display: none !important;
}

.top-command-field {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  margin: 0;
  color: #475569;
  font-size: var(--fs-11);
  font-weight: 950;
  white-space: nowrap;
}

.top-command-field select,
.top-command-field input[type="color"],
.top-command-field input[type="text"],
.top-command-field input[type="range"],
.top-page-grid select {
  min-height: 34px;
  border: 1px solid #d7e1dd;
  border-radius: 8px;
  background: #f8faf9;
  color: #17201c;
  font-weight: 900;
}

.top-command-field select {
  width: 138px;
}

.top-command-field input[type="range"] {
  width: 92px;
  min-height: 24px;
}

.top-command-field output {
  min-width: 44px;
  color: #111827;
  font-size: var(--fs-11);
  font-weight: 950;
}

.top-command-field input[type="color"] {
  width: 100%;
  min-height: 34px;
  padding: 2px;
  background: #ffffff;
  cursor: pointer;
}

.top-command-field.is-text input {
  width: 142px;
  padding: 0 9px;
}

.top-command-field.is-width input[type="range"] {
  width: 74px;
}

.top-page-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(58px, 1fr));
  gap: 6px;
  width: 100%;
}

.top-page-grid select {
  width: 100%;
  padding: 0 8px;
}

.top-view-grid {
  display: inline-flex;
  gap: 5px;
}

.top-view-grid label {
  cursor: pointer;
}

.top-view-grid span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 34px;
  padding: 6px 8px;
  border: 1px solid #d7e1dd;
  border-radius: 8px;
  background: #f8faf9;
  color: #17201c;
  font-size: var(--fs-11);
  font-weight: 950;
}

.top-view-grid input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.top-view-grid input:checked + span {
  border-color: var(--accent);
  background: var(--mint);
  color: var(--accent-dark);
}

.top-check-field {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 34px;
  margin: 0;
  padding: 0 8px;
  border: 1px solid #d7e1dd;
  border-radius: 8px;
  background: #f8faf9;
  color: #17201c;
  font-size: var(--fs-11);
  font-weight: 950;
  white-space: nowrap;
}

.stage-zoom-controls {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.toolbar-icon-button,
.toolbar-fit-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 32px;
  border: 1px solid #d7e1dd;
  border-radius: 8px;
  background: #ffffff;
  color: #17201c;
  font-weight: 900;
}

.toolbar-icon-button {
  width: 34px;
  padding: 0;
}

.toolbar-fit-button {
  padding: 6px 10px;
}

.toolbar-icon-button:hover,
.toolbar-fit-button:hover {
  border-color: var(--accent);
  color: var(--accent-dark);
}

.zoom-level-label {
  display: inline-grid;
  place-items: center;
  min-width: 52px;
  min-height: 32px;
  padding: 0 8px;
  border-radius: 8px;
  background: #101412;
  color: #ffffff;
  font-weight: 950;
}

.editor-flow-bar {
  display: grid;
  grid-template-columns: minmax(280px, 0.92fr) minmax(420px, 1.35fr);
  gap: 10px;
  align-items: center;
  padding-right: min(420px, 38vw);
}

.editor-flow-bar[hidden] {
  display: none;
}

.editor-flow-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.editor-flow-steps span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 32px;
  padding: 6px 9px;
  border: 1px solid #dbe7e2;
  border-radius: 8px;
  background: #ffffff;
  color: #64748b;
  font-size: var(--fs-12);
  font-weight: 900;
}

.editor-flow-steps span.is-active {
  border-color: #a8ded0;
  background: var(--mint);
  color: var(--accent-dark);
}

.editor-flow-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}

.editor-flow-status {
  flex: 1 1 210px;
  color: #64748b;
  font-size: var(--fs-12);
  font-weight: 800;
  line-height: 1.35;
}

.editor-flow-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 38px;
  border-radius: 8px;
  padding: 8px 12px;
  border: 1px solid #d7e1dd;
  background: #ffffff;
  color: #111827;
  font-weight: 950;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
}

.editor-flow-button.is-primary {
  border-color: var(--accent);
  background: var(--accent);
  color: #ffffff;
}

.editor-flow-button.is-dark {
  border-color: #111827;
  background: #111827;
  color: #ffffff;
}

.editor-flow-button.is-secondary {
  background: #f7faf9;
}

.editor-flow-button:disabled {
  cursor: not-allowed;
  opacity: 0.46;
  box-shadow: none;
}

.editor-flow-button:not(:disabled):hover {
  transform: translateY(-1px);
}

.method-tab-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding-right: min(420px, 38vw);
}

.method-tab-bar[hidden] {
  display: none;
}

.method-tab-bar.is-internal-only {
  display: none !important;
}

.method-tab-bar.is-toolbar-tabs {
  width: 100%;
  margin-bottom: 8px;
  padding-right: 0;
}

.method-tabs {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding: 2px 2px 4px;
  scrollbar-width: thin;
}

.method-tab,
.method-refresh-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 40px;
  border: 1px solid #d7e1dd;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  color: #17201c;
  font-weight: 950;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05);
}

.method-tab {
  flex: 0 0 auto;
  min-width: 112px;
  padding: 7px 10px;
  flex-direction: column;
  align-items: flex-start;
}

.method-tab span,
.method-tab small {
  display: block;
  width: 100%;
  white-space: nowrap;
}

.method-tab span {
  font-size: var(--fs-12);
}

.method-tab small {
  color: #64748b;
  font-size: var(--fs-11);
  font-weight: 850;
}

.method-tab.is-active {
  border-color: var(--accent);
  background: var(--mint);
  color: var(--accent-dark);
}

.method-tab.is-final {
  border-color: #111827;
}

.method-tab.is-final.is-active {
  background: #111827;
  color: #ffffff;
}

.method-tab.is-final.is-active small {
  color: rgba(255, 255, 255, 0.72);
}

.method-tab.is-loading small {
  color: var(--accent-dark);
}

.method-refresh-button {
  min-width: 132px;
  padding: 8px 11px;
}

.method-refresh-button.is-auto-select {
  border-color: rgba(0, 137, 111, 0.42);
  background: var(--mint);
  color: var(--accent-dark);
}

.method-refresh-button.is-object-picker {
  border-color: rgba(17, 24, 39, 0.18);
  background: #111827;
  color: #ffffff;
}

.method-refresh-button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

body.method-object-picker-open {
  overflow: hidden;
}

.method-object-picker {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 12px;
  margin: 0;
  padding: 18px;
  border: 0;
  border-radius: 0;
  background: #f6faf8;
  box-shadow: none;
}

.method-object-picker[hidden] {
  display: none;
}

.method-object-picker-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  min-height: 64px;
  padding: 12px 14px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.08);
}

.method-object-picker-head strong {
  display: block;
  margin-bottom: 4px;
  color: #111827;
  font-size: var(--fs-18);
  font-weight: 950;
  white-space: nowrap;
}

.method-object-picker-head span {
  display: block;
  color: #64748b;
  font-size: var(--fs-12);
  font-weight: 850;
  text-align: left;
}

.method-object-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid rgba(17, 24, 39, 0.18);
  border-radius: 8px;
  background: #111827;
  color: #ffffff;
  font-weight: 950;
  white-space: nowrap;
}

.method-object-list {
  display: grid;
  gap: 10px;
  align-content: start;
  height: 100%;
  max-height: none;
  overflow: auto;
  padding: 2px 4px 22px 2px;
  scrollbar-width: thin;
}

.method-object-row {
  display: grid;
  grid-template-columns: 156px minmax(0, 1fr);
  gap: 10px;
  align-items: stretch;
  transition:
    grid-template-columns 160ms ease,
    transform 160ms ease,
    opacity 160ms ease;
}

.method-object-row.is-expanded {
  grid-template-columns: 260px minmax(0, 1fr);
}

.method-object-list.has-expanded .method-object-row:not(.is-expanded) {
  grid-template-columns: 78px minmax(0, 1fr);
  opacity: 0.74;
}

.method-object-label,
.object-method-button {
  border: 1px solid #dde7e3;
  border-radius: 8px;
  background: #f8fbfa;
  color: #17201c;
}

.method-object-label {
  display: grid;
  gap: 3px;
  align-content: center;
  justify-items: start;
  min-height: 158px;
  padding: 12px;
  text-align: left;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.method-object-label strong,
.method-object-label span,
.method-object-label small {
  display: block;
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.method-object-label strong {
  font-size: var(--fs-14);
  font-weight: 950;
}

.method-object-label span {
  color: #64748b;
  font-size: var(--fs-11);
  font-weight: 850;
}

.method-object-label small {
  color: #00896f;
  font-size: var(--fs-10);
  font-weight: 900;
}

.method-object-row.is-expanded .method-object-label {
  min-height: 476px;
  border-color: var(--accent);
  background: var(--mint);
}

.method-object-list.has-expanded .method-object-row:not(.is-expanded) .method-object-label {
  min-height: 79px;
  padding: 7px;
}

.method-object-list.has-expanded .method-object-row:not(.is-expanded) .method-object-label strong {
  font-size: var(--fs-11);
}

.method-object-list.has-expanded .method-object-row:not(.is-expanded) .method-object-label span,
.method-object-list.has-expanded .method-object-row:not(.is-expanded) .method-object-label small {
  display: none;
}

.object-method-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(156px, 1fr));
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: thin;
}

.object-method-button {
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  gap: 0;
  align-items: center;
  justify-items: center;
  min-height: 158px;
  padding: 7px;
  font-weight: 950;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
  transition:
    min-height 160ms ease,
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

.method-object-row.is-expanded .object-method-grid {
  grid-template-columns: repeat(7, minmax(452px, 1fr));
}

.method-object-list.has-expanded .method-object-row:not(.is-expanded) .object-method-grid {
  grid-template-columns: repeat(7, minmax(78px, 1fr));
  gap: 4px;
}

.method-object-row.is-expanded .object-method-button {
  min-height: 476px;
}

.method-object-list.has-expanded .method-object-row:not(.is-expanded) .object-method-button {
  min-height: 79px;
  padding: 3px;
  box-shadow: none;
}

.object-method-preview {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  height: 112px;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 7px;
  background: #ffffff;
  transition: height 160ms ease;
}

.method-object-row.is-expanded .object-method-preview {
  height: 444px;
}

.method-object-list.has-expanded .method-object-row:not(.is-expanded) .object-method-preview {
  height: 56px;
  border-radius: 6px;
}

.object-method-preview img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.object-method-preview svg {
  width: 72px;
  max-width: 100%;
  height: 42px;
}

.object-method-preview path {
  fill: rgba(0, 137, 111, 0.08);
  stroke: var(--accent);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.object-method-badge {
  position: absolute;
  left: 6px;
  top: 6px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 4px 7px;
  border-radius: 7px;
  background: rgba(17, 24, 39, 0.82);
  color: #ffffff;
  font-size: var(--fs-10);
  font-weight: 950;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.2);
}

.method-object-list.has-expanded .method-object-row:not(.is-expanded) .object-method-badge {
  left: 4px;
  top: 4px;
  min-height: 17px;
  padding: 2px 5px;
  font-size: var(--fs-10);
}

.object-method-button.is-selected {
  border-color: #111827;
  background: #111827;
  color: #ffffff;
}

.object-method-button.is-selected .object-method-preview {
  border-color: rgba(255, 255, 255, 0.36);
}

.object-method-button.is-selected .object-method-badge {
  background: #ffffff;
  color: #111827;
}

.object-method-button.is-selected path {
  fill: rgba(255, 255, 255, 0.18);
  stroke: #ffffff;
}

.object-method-button.is-empty {
  color: #94a3b8;
  background: #f8fafc;
  box-shadow: none;
}

.object-method-preview.is-empty {
  background:
    linear-gradient(45deg, #f1f5f9 25%, transparent 25%),
    linear-gradient(-45deg, #f1f5f9 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #f1f5f9 75%),
    linear-gradient(-45deg, transparent 75%, #f1f5f9 75%),
    #ffffff;
  background-position:
    0 0,
    0 6px,
    6px -6px,
    -6px 0;
  background-size: 12px 12px;
}

.object-method-button:not(:disabled):hover,
.method-object-label:hover {
  border-color: var(--accent);
  background: var(--mint);
  color: var(--accent-dark);
}

.method-object-empty {
  padding: 10px;
  border: 1px dashed #d7e1dd;
  border-radius: 8px;
  color: #64748b;
  font-weight: 850;
  text-align: center;
}

.floating-tool-tray {
  position: absolute;
  top: var(--tray-y, 58px);
  right: 18px;
  z-index: 6;
  width: min(392px, calc(100% - 36px));
  max-height: calc(100% - 84px);
  overflow: auto;
  padding: 10px;
  border: 1px solid rgba(17, 24, 39, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 44px rgba(17, 24, 39, 0.16);
  backdrop-filter: blur(14px);
  transition: top 140ms ease;
}

.floating-tool-tray.is-removed {
  display: none !important;
}

.floating-tool-tray.is-simplified {
  width: min(306px, calc(100% - 36px));
  padding: 8px;
}

.floating-tool-tray.is-simplified .tray-tabs,
.floating-tool-tray.is-simplified [data-tray-panel="auto"],
.floating-tool-tray.is-simplified [data-tray-panel="view"],
.floating-tool-tray.is-simplified [data-tray-panel="save"],
.floating-tool-tray.is-simplified .tray-hint,
.floating-tool-tray.is-simplified .color-tool-row,
.floating-tool-tray.is-simplified .hint,
.floating-tool-tray.is-simplified #editModeBtn,
.floating-tool-tray.is-simplified #pickOuterColorBtn,
.floating-tool-tray.is-simplified #pickInnerColorBtn,
.floating-tool-tray.is-simplified #colorBoundaryBtn {
  display: none;
}

.floating-tool-tray.is-simplified [data-tray-panel="adjust"] {
  display: grid;
}

.floating-tool-tray.is-simplified .tool-cluster {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.floating-tool-tray.is-simplified .tray-tool-button {
  min-height: 44px;
  padding: 6px;
}

.floating-tool-tray.is-simplified .range-field {
  gap: 5px;
}

.tray-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 10px;
}

.tray-tab,
.tray-action,
.tray-tool-button,
.tray-wide-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 38px;
  border-radius: 8px;
  padding: 8px 10px;
  border: 1px solid #d7e1dd;
  background: #f7faf9;
  color: #17201c;
  font-weight: 900;
}

.tray-tab {
  min-height: 36px;
  padding-inline: 8px;
  font-size: var(--fs-12);
}

.tray-tab.is-active,
.tray-action.is-primary,
.tray-wide-button.is-primary,
.tray-tool-button.is-active {
  border-color: var(--accent);
  background: var(--accent);
  color: #ffffff;
}

.tray-panel {
  display: none;
  gap: 10px;
}

.tray-panel.is-active {
  display: grid;
}

.tray-hint {
  margin: 0;
  padding: 9px 10px;
  border-radius: 8px;
  background: #f3f7f6;
  color: #5d6562;
  font-size: var(--fs-12);
  line-height: 1.45;
}

.tray-grid {
  display: grid;
  gap: 8px;
}

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

.tray-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tool-cluster {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(54px, 1fr));
  gap: 7px;
}

.tray-tool-button {
  min-height: 54px;
  flex-direction: column;
  font-size: var(--fs-12);
}

.tray-tool-button.is-danger {
  border-color: #efc4c9;
  background: #fff0f1;
  color: var(--danger);
}

.tray-wide-button {
  width: 100%;
}

.color-tool-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)) auto auto;
  gap: 7px;
  align-items: center;
}

.color-tool-row span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #4b5563;
  font-size: var(--fs-12);
  font-weight: 900;
}

.view-mode-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.view-mode-grid label {
  cursor: pointer;
}

.view-mode-grid input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.view-mode-grid span {
  display: grid;
  place-items: center;
  gap: 6px;
  min-height: 68px;
  border: 1px solid #d7e1dd;
  border-radius: 8px;
  background: #f7faf9;
  color: #17201c;
  font-weight: 900;
  text-align: center;
}

.view-mode-grid input:checked + span {
  border-color: var(--accent);
  background: var(--mint);
  color: var(--accent-dark);
}

.view-mode-grid.top-view-grid {
  display: inline-flex;
  grid-template-columns: none;
  gap: 5px;
}

.view-mode-grid.top-view-grid span {
  display: inline-flex;
  min-height: 34px;
  padding: 6px 8px;
  font-size: var(--fs-11);
}

.canvas-frame {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.commerce-layout.is-workspace .canvas-frame {
  min-height: 0;
  height: 100%;
  border-radius: 0;
  border-top: 0;
  border-right: 0;
  border-bottom: 0;
  box-shadow: none;
}

.candidate-adopt-menu {
  position: absolute;
  z-index: 8;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px;
  border: 1px solid rgba(17, 24, 39, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 16px 34px rgba(17, 24, 39, 0.18);
  backdrop-filter: blur(12px);
}

.candidate-adopt-menu[hidden] {
  display: none;
}

.candidate-adopt-menu span {
  max-width: 132px;
  color: #475569;
  font-size: var(--fs-12);
  font-weight: 900;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.candidate-adopt-menu button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 32px;
  padding: 6px 10px;
  border: 0;
  border-radius: 8px;
  background: var(--accent);
  color: #ffffff;
  font-weight: 950;
}

#editorCanvas {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
}

.empty-state {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 8px;
  padding: 24px;
  text-align: center;
  pointer-events: none;
  color: var(--muted);
}

.section-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.section-heading h2 {
  font-size: var(--fs-19);
}

.template-list,
.order-template-picker {
  display: grid;
  gap: 10px;
}

.template-item,
.order-item {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.template-item img,
.order-item img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #f8fbfa;
}

.template-meta,
.order-meta {
  min-width: 0;
}

.template-meta strong,
.order-meta strong {
  display: block;
  overflow: hidden;
  color: var(--ink);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.template-meta small,
.order-meta small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  line-height: 1.35;
}

.template-type-badge {
  display: inline-flex;
  align-items: center;
  min-height: 18px;
  margin-right: 5px;
  padding: 2px 6px;
  border-radius: 8px;
  background: #111827;
  color: #ffffff;
  font-weight: 950;
}

.template-type-badge.is-workspace {
  background: #fff7ed;
  color: #b45309;
}

.template-type-badge.is-print {
  background: var(--mint);
  color: var(--accent-dark);
}

.template-actions,
.order-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.template-actions a {
  color: var(--accent-dark);
  font-size: var(--fs-13);
  font-weight: 800;
  text-decoration: none;
}

.order-controls input[type="number"] {
  width: 88px;
}

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

.order-form label:nth-last-child(-n + 3),
.address-row {
  grid-column: 1 / -1;
}

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

.address-button {
  height: 40px;
}

.order-result {
  margin-top: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--mint);
  font-weight: 800;
}

.icon-button {
  position: absolute;
  top: 10px;
  right: 10px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  background: #f0f5f2;
  color: var(--ink);
}

.google-login-hint {
  margin: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f6faf8;
  color: var(--muted);
  line-height: 1.5;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 40;
  max-width: min(420px, calc(100vw - 36px));
  padding: 12px 14px;
  border-radius: 8px;
  background: #101412;
  color: #ffffff;
  box-shadow: var(--shadow);
  font-weight: 800;
}

.sticker-extraction-dialog {
  position: fixed;
  inset: 0;
  z-index: 95;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(15, 23, 42, 0.36);
  backdrop-filter: blur(8px);
}

.sticker-extraction-card {
  display: grid;
  gap: 14px;
  width: min(420px, calc(100vw - 48px));
  padding: 22px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.24);
}

.sticker-extraction-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: var(--mint);
  color: var(--accent-dark);
  font-size: var(--fs-20);
}

.sticker-extraction-card h2 {
  margin: 0;
  color: #111827;
  font-size: var(--fs-20);
}

.sticker-extraction-card p {
  margin: 5px 0 0;
  color: #64748b;
  font-weight: 850;
  line-height: 1.5;
}

.sticker-extraction-progress {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #e2e8f0;
}

.sticker-extraction-progress span {
  display: block;
  width: 8%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), #22c55e);
  transition: width 220ms ease;
}

.sticker-extraction-dialog.is-complete .sticker-extraction-icon {
  background: #111827;
  color: #ffffff;
}

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

.workspace-open-dialog {
  position: fixed;
  inset: 0;
  z-index: 96;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(15, 23, 42, 0.34);
  backdrop-filter: blur(8px);
}

.workspace-open-card {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  width: min(760px, calc(100vw - 48px));
  max-height: calc(100vh - 64px);
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.14);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.24);
}

.workspace-open-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px 14px;
  border-bottom: 1px solid #e2e8f0;
}

.workspace-open-header p {
  margin: 0 0 4px;
  color: #64748b;
  font-size: var(--fs-11);
  font-weight: 950;
}

.workspace-open-header h2 {
  margin: 0;
  color: #0f172a;
  font-size: var(--fs-20);
}

.dialog-close-button {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid #d7e1dd;
  border-radius: 8px;
  background: #ffffff;
  color: #17201c;
}

.workspace-open-toolbar,
.workspace-open-item {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) 72px 160px 72px;
  align-items: center;
  gap: 10px;
}

.workspace-open-toolbar {
  padding: 9px 20px;
  border-bottom: 1px solid #edf2f7;
  background: #f8faf9;
  color: #64748b;
  font-size: var(--fs-11);
  font-weight: 950;
}

.workspace-open-list {
  min-height: 0;
  overflow: auto;
  padding: 8px;
}

.workspace-open-item {
  width: 100%;
  min-height: 58px;
  padding: 9px 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: #17201c;
  font-size: var(--fs-11);
  font-weight: 850;
  text-align: left;
}

.workspace-open-item:hover,
.workspace-open-item:focus-visible {
  border-color: #cbd5e1;
  background: #f1f5f9;
  outline: none;
}

.workspace-open-name {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  column-gap: 9px;
  align-items: center;
  min-width: 0;
}

.workspace-open-name i {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--mint);
  color: var(--accent-dark);
}

.workspace-open-name strong,
.workspace-open-name small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workspace-open-name small {
  color: #64748b;
  font-weight: 800;
}

.workspace-open-load {
  display: inline-grid;
  place-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 8px;
  background: var(--accent);
  color: #ffffff;
  font-weight: 950;
}

.workspace-open-empty {
  display: grid;
  place-items: center;
  min-height: 180px;
  color: #64748b;
  font-weight: 900;
}

[hidden] {
  display: none !important;
}

/* Skywork-like home screen */
body {
  background: #f7f9fc;
}

.commerce-header {
  min-height: 78px;
  padding: 6px 18px;
  grid-template-columns: 116px minmax(260px, 1fr) auto;
  background: linear-gradient(90deg, #edf2f8 0%, #f8fbff 100%);
  color: #172033;
  border-bottom: 1px solid #e1e7ef;
  box-shadow: 0 1px 0 rgba(17, 24, 39, 0.03);
}

.brand-icon {
  width: 30px;
  height: 30px;
  background: linear-gradient(135deg, #2878ff, #20d68b);
  color: #ffffff;
}

.brand-mark strong {
  font-size: var(--fs-21);
  font-weight: 500;
}

.brand-mark small,
.status-pill {
  display: none;
}

.top-menu {
  justify-content: flex-start;
}

.nav-button {
  min-height: 34px;
  padding: 7px 10px;
  background: transparent;
  color: #475569;
  font-size: var(--fs-14);
  font-weight: 500;
}

.nav-button.is-active,
.nav-button:hover {
  background: #ffffff;
  color: #111827;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.06);
}

.login-button {
  min-height: 36px;
  padding: 8px 16px;
  background: #020617;
  color: #ffffff;
  font-size: var(--fs-14);
}

.commerce-layout {
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  padding: 0;
  min-height: calc(100vh - 78px);
  background: #ffffff;
}

.menu-panel {
  display: none;
}

.side-icon-rail {
  position: absolute;
  inset: 0 auto 0 0;
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 18px;
  width: 58px;
  padding: 18px 10px;
  background: #eef3fa;
  border-right: 1px solid #dfe7f0;
}

.rail-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  color: #5b6879;
  font-size: var(--fs-19);
}

.rail-icon.is-active {
  background: #263344;
  color: #ffffff;
}

.rail-icon.bottom {
  margin-top: auto;
}

.side-menu-list {
  display: grid;
  gap: 8px;
}

.side-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 40px;
  padding: 9px 12px;
  border-radius: 8px;
  background: transparent;
  color: #334155;
  font-size: var(--fs-14);
  font-weight: 500;
  text-align: left;
}

.side-menu-item.is-active,
.side-menu-item:hover {
  background: #ffffff;
  color: #0f172a;
}

.template-rail {
  display: block;
  min-width: 0;
  padding: 0 28px 36px;
  overflow: auto;
  background:
    linear-gradient(#eef2f8 1px, transparent 1px),
    linear-gradient(90deg, #eef2f8 1px, transparent 1px),
    #ffffff;
  background-size: 84px 84px;
}

.home-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(420px, 1fr) minmax(360px, 440px);
  grid-auto-rows: auto;
  align-items: start;
  column-gap: 46px;
  row-gap: 14px;
  width: 100%;
  max-width: 1280px;
  min-height: 500px;
  margin: 0 auto;
  padding: 72px 42px 64px;
  background: transparent;
  text-align: left;
}

.home-hero h1 {
  position: relative;
  grid-column: 1;
  z-index: 0;
  margin: 92px 0 0;
  padding: 58px 34px;
  color: #1f2937;
  font-size: var(--fs-34);
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
}

.home-hero h1::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: -1;
  width: min(560px, calc(100% + 18px));
  height: 230px;
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.62) 50%, rgba(255, 255, 255, 0.86) 100%),
    url("/samples/back.webp") center / cover no-repeat;
  box-shadow: 0 22px 48px rgba(15, 23, 42, 0.1);
  transform: translate(-50%, -50%);
}

.home-hero h1 span {
  color: #ff5a66;
}

.prompt-panel {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: start;
  width: 100%;
  max-width: none;
  margin: 30px 0 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 22px 46px rgba(15, 23, 42, 0.12);
}

.prompt-tabs,
.prompt-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
}

.prompt-tabs {
  justify-content: flex-start;
  min-height: 48px;
  border-bottom: 1px solid #e5eaf1;
  background: #f8fafc;
  color: #64748b;
  font-size: var(--fs-14);
}

.prompt-tabs span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #0f172a;
  font-size: var(--fs-15);
  font-weight: 800;
}

.prompt-tabs small {
  margin-left: auto;
  color: #94a3b8;
  font-size: var(--fs-12);
  font-weight: 700;
}

.home-file-drop {
  position: relative;
  display: block;
  min-height: 260px;
  margin: 14px;
  padding: 0;
  border: 1px dashed #b9c6d5;
  border-radius: 8px;
  background: #ffffff;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease;
}

.home-file-drop:hover {
  border-color: #0f8f72;
  background: #f9fffd;
}

.home-file-drop::before {
  content: "이미지 파일을 선택하세요";
  position: absolute;
  inset: 46px 24px auto;
  color: #0f172a;
  font-size: var(--fs-20);
  font-weight: 900;
}

.home-file-drop::after {
  content: "클릭하거나 이 창으로 드래그하면 스티커 제작하기로 이동합니다.";
  position: absolute;
  inset: 82px 38px auto;
  color: #64748b;
  font-size: var(--fs-14);
  line-height: 1.5;
}

.home-file-drop input[type="file"] {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  opacity: 0;
  pointer-events: none;
}

.prompt-actions {
  flex-wrap: wrap;
  min-height: 58px;
  padding: 12px 14px 14px;
  border-top: 1px solid #eef2f7;
  background: #fbfcfe;
}

.hidden-settings {
  display: none !important;
}

.round-tool,
.tool-button,
.prompt-actions select {
  min-height: 36px;
  border-radius: 8px;
  border: 1px solid #e7edf4;
  background: #ffffff;
  color: #334155;
}

.round-tool {
  width: 36px;
  padding: 0;
  font-size: var(--fs-18);
}

.tool-button {
  padding: 7px 12px;
}

.prompt-actions select {
  width: auto;
  min-width: 100px;
  padding: 6px 10px;
}

.mini-range {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #64748b;
  font-size: var(--fs-12);
  font-weight: 500;
}

.mini-range input {
  width: 92px;
}

.send-button {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-left: auto;
  border-radius: 8px;
  background: #d1d5db;
  color: #ffffff;
  font-size: var(--fs-17);
}

.profile-section {
  width: 100%;
  max-width: 1260px;
  margin: 22px auto 0;
}

.profile-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(280px, 0.75fr);
  gap: 18px;
  align-items: center;
  padding: 22px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 42px rgba(17, 24, 39, 0.08);
}

.profile-avatar-wrap {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  overflow: hidden;
  border-radius: 8px;
  background: #111827;
  color: #ffffff;
  font-size: var(--fs-28);
  font-weight: 900;
}

.profile-avatar-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-main h2 {
  margin: 0;
  color: #111827;
  font-size: var(--fs-24);
}

.profile-main p:not(.eyebrow) {
  margin: 7px 0 0;
  color: #4b5563;
  font-size: var(--fs-14);
}

.profile-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.profile-badges span {
  border-radius: 8px;
  padding: 6px 10px;
  background: #f3f4f6;
  color: #111827;
  font-weight: 900;
}

.profile-badges span:first-child {
  background: #fff4cf;
  color: #7a5600;
}

.profile-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.profile-stats article {
  min-height: 84px;
  padding: 14px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #f9fafb;
}

.profile-stats strong,
.profile-stats span {
  display: block;
}

.profile-stats strong {
  color: #111827;
  font-size: var(--fs-24);
}

.profile-stats span {
  margin-top: 4px;
  color: #64748b;
  font-weight: 800;
}

.profile-form,
.commerce-panel {
  width: 100%;
  max-width: 1260px;
  margin: 16px auto 0;
  padding: 22px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 42px rgba(17, 24, 39, 0.06);
}

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

.profile-form-wide {
  grid-column: 1 / -1;
}

.profile-form-actions,
.panel-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.profile-form-actions .primary-button,
.panel-actions .primary-button {
  width: auto;
}

.panel-heading {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 16px;
}

.panel-heading h2 {
  margin: 0;
  color: #111827;
  font-size: var(--fs-24);
}

.panel-heading p {
  margin: 6px 0 0;
  color: #64748b;
  font-size: var(--fs-14);
  line-height: 1.5;
}

.template-actions button,
.cart-remove-button {
  min-height: 32px;
  border-radius: 8px;
  padding: 7px 10px;
  border: 1px solid #d6dfdb;
  background: #f0f5f2;
  color: #111827;
  font-weight: 900;
}

.template-actions .template-delete-button {
  border-color: #fecdd3;
  background: #fff1f2;
  color: #be123c;
}

.template-actions button:hover {
  background: var(--accent);
  color: #ffffff;
}

.cart-list,
.order-history-list,
.admin-list {
  display: grid;
  gap: 10px;
}

.cart-sender-panel {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto auto minmax(240px, 0.95fr);
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
  padding: 14px;
  border: 1px solid #dbe7e2;
  border-radius: 8px;
  background: #ffffff;
}

.cart-sender-panel strong {
  display: block;
  color: #111827;
  font-size: var(--fs-15);
}

.cart-sender-panel p {
  margin: 4px 0 0;
  color: #64748b;
  line-height: 1.4;
}

.cart-sender-panel label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 7px 10px;
  border: 1px solid #e6ebf2;
  border-radius: 8px;
  background: #f7faf9;
  color: #111827;
  font-weight: 900;
}

.cart-sender-panel input {
  accent-color: var(--accent);
}

.cart-sender-info {
  display: grid;
  gap: 4px;
  padding: 9px 11px;
  border-radius: 8px;
  background: #f8fafc;
  color: #334155;
  min-width: 0;
}

.cart-sender-info span,
.cart-sender-info small {
  overflow-wrap: anywhere;
}

.cart-sender-info span {
  font-weight: 900;
}

.cart-sender-info small {
  color: #64748b;
}

.cart-pricing-panel {
  display: grid;
  grid-template-columns: minmax(220px, 320px) minmax(0, 1fr);
  gap: 12px;
  align-items: end;
  margin-bottom: 14px;
  padding: 14px;
  border: 1px solid #dbe7e2;
  border-radius: 8px;
  background: #f7fbf9;
}

.cart-pricing-panel label {
  display: grid;
  gap: 7px;
  color: #334155;
  font-weight: 900;
}

.cart-pricing-panel select {
  min-height: 38px;
  border: 1px solid #d7e1dd;
  border-radius: 8px;
  padding: 7px 10px;
  background: #ffffff;
  color: #111827;
  font-weight: 800;
}

.price-summary {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  min-height: 54px;
  padding: 10px 12px;
  border: 1px solid #e6ebf2;
  border-radius: 8px;
  background: #ffffff;
}

.price-summary div {
  display: grid;
  gap: 4px;
}

.price-summary span {
  color: #64748b;
}

.price-summary strong {
  color: #111827;
  font-size: var(--fs-16);
}

.checkout-panel {
  display: grid;
  gap: 18px;
}

.production-options-layout,
.checkout-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.88fr) minmax(380px, 1.12fr);
  gap: 18px;
  align-items: start;
}

.production-preview-card,
.production-option-card,
.checkout-summary-card,
.order-complete-card {
  display: grid;
  gap: 14px;
  border: 1px solid #dbe7e2;
  border-radius: 8px;
  background: #ffffff;
  padding: 16px;
}

.production-preview-card img {
  width: 100%;
  max-height: 520px;
  object-fit: contain;
  background:
    linear-gradient(45deg, #f5f7f6 25%, transparent 25%),
    linear-gradient(-45deg, #f5f7f6 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #f5f7f6 75%),
    linear-gradient(-45deg, transparent 75%, #f5f7f6 75%);
  background-size: 18px 18px;
  background-position: 0 0, 0 9px, 9px -9px, -9px 0;
  border: 1px solid #e5eaf1;
  border-radius: 8px;
}

.production-preview-card strong,
.production-preview-card span,
.checkout-item strong,
.checkout-item span {
  display: block;
}

.production-preview-card span,
.checkout-item span {
  color: #5f6b66;
}

.production-option-card label,
.checkout-form label {
  display: grid;
  gap: 6px;
  color: #39443f;
  font-weight: 800;
}

.production-option-card select,
.production-option-card input,
.production-option-card textarea,
.checkout-form input,
.checkout-form textarea,
.checkout-form select {
  width: 100%;
  border: 1px solid #d7e1dd;
  border-radius: 8px;
  background: #ffffff;
  padding: 10px 11px;
  font: inherit;
}

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

.cart-suggestion-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 12px 0;
}

.cart-suggestion-grid article {
  border: 1px solid #e5eaf1;
  border-radius: 8px;
  background: #f8fbfa;
  padding: 12px;
  font-weight: 800;
  color: #27312d;
}

.checkout-form {
  display: grid;
  gap: 14px;
}

.checkout-form section {
  display: grid;
  gap: 12px;
  border: 1px solid #dbe7e2;
  border-radius: 8px;
  background: #ffffff;
  padding: 16px;
}

.checkout-form h3 {
  margin: 0;
  font-size: var(--fs-16);
}

.checkout-field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  align-items: end;
}

.checkout-field-grid .is-wide {
  grid-column: 1 / -1;
}

.checkout-sender-mode {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.checkout-sender-mode label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #e5eaf1;
  border-radius: 8px;
  padding: 8px 10px;
  background: #f8fbfa;
}

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

.checkout-item {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  border: 1px solid #e5eaf1;
  border-radius: 8px;
  padding: 8px;
}

.checkout-item img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #e5eaf1;
}

.order-complete-card {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}

.order-complete-card > i {
  font-size: 4rem;
  color: var(--accent);
}

.cart-item {
  position: relative;
  display: block;
  padding: 0 0 0 46px;
  border: 1px solid #c7d7e8;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.08);
}

.cart-select-field {
  position: absolute;
  top: 18px;
  left: 14px;
  z-index: 2;
  display: grid;
  place-items: center;
}

.cart-select-input {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}

.cart-thumb-button {
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
}

.cart-item img {
  width: 92px;
  height: 74px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid #e5e7eb;
  background: #ffffff;
}

.cart-thumb-button:hover img {
  border-color: var(--accent);
}

.cart-collapsible {
  display: block;
}

.cart-collapsible summary,
.order-history-card summary {
  cursor: pointer;
  list-style: none;
}

.cart-collapsible summary::-webkit-details-marker,
.order-history-card summary::-webkit-details-marker {
  display: none;
}

.cart-summary-head {
  min-height: 70px;
  padding: 14px 16px 14px 0;
}

.cart-expanded-content {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) 120px auto;
  gap: 12px;
  align-items: center;
  padding: 0 14px 14px 0;
}

.cart-item-main {
  min-width: 0;
}

.cart-item-main strong,
.cart-item-main small,
.cart-item-main a {
  display: block;
}

.cart-item-main strong {
  color: #111827;
  font-size: var(--fs-16);
}

.cart-item-main small {
  margin-top: 4px;
  color: #64748b;
}

.cart-item-main a {
  margin-top: 8px;
  color: var(--accent-dark);
  font-weight: 900;
  text-decoration: none;
}

.cart-detail {
  margin-top: 8px;
  color: #475569;
}

.cart-detail summary {
  cursor: pointer;
  color: var(--accent-dark);
  font-weight: 900;
}

.cart-detail p {
  margin: 8px 0;
  line-height: 1.45;
}

.cart-detail div {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 8px;
}

.cart-detail dt {
  color: #64748b;
  font-weight: 900;
}

.cart-detail dd {
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
}

.cart-item-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 8px;
}

.cart-item-actions button,
.template-detail-actions button,
.product-type-edit-button {
  min-height: 32px;
  border-radius: 8px;
  padding: 7px 10px;
  border: 1px solid #d6dfdb;
  background: #f0f5f2;
  color: #111827;
  font-weight: 900;
}

.cart-item-actions button:hover,
.template-detail-actions button:hover,
.product-type-edit-button:hover {
  border-color: var(--accent);
  background: var(--accent);
  color: #ffffff;
}

.quantity-field {
  gap: 6px;
}

.quantity-field input {
  width: 100%;
}

.cart-remove-button {
  background: #fff0f1;
  color: var(--danger);
  border-color: #efc4c9;
}

.order-history-card {
  display: block;
  padding: 16px;
  border: 1px solid #c7d7e8;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.08);
}

.order-history-card[open] {
  display: grid;
  gap: 14px;
}

.order-history-head,
.order-history-items div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.order-expanded-content {
  display: grid;
  gap: 14px;
}

.order-history-head strong {
  display: block;
  color: #0f3f7a;
  font-size: var(--fs-18);
}

.order-history-head small,
.order-history-shipping {
  color: #64748b;
}

.order-history-items {
  display: grid;
  gap: 6px;
}

.order-detail-section {
  display: grid;
  gap: 9px;
}

.order-detail-section h3 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
  margin: 0;
  padding-bottom: 6px;
  border-bottom: 1px solid #9eb7d3;
  color: #0f3f7a;
  font-size: var(--fs-15);
}

.order-detail-section h3 span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.order-detail-section h3 small {
  color: #475569;
  font-size: var(--fs-12);
  font-weight: 900;
}

.order-detail-section h3 i {
  color: #245b9c;
  font-size: var(--fs-12);
}

.order-info-table {
  display: grid;
  border-top: 1px solid #e2e8f0;
  border-left: 1px solid #e2e8f0;
}

.order-info-table div {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  min-height: 36px;
  border-right: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
}

.order-info-table dt,
.order-info-table dd {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 8px 10px;
}

.order-info-table dt {
  justify-content: center;
  background: #f1f5f9;
  color: #334155;
  font-weight: 950;
}

.order-info-table dd {
  color: #334155;
  overflow-wrap: anywhere;
}

.order-payment-grid,
.order-address-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.order-payment-grid article,
.order-address-grid article {
  min-width: 0;
  padding: 12px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
}

.order-payment-grid article span {
  display: block;
  color: #64748b;
  font-weight: 900;
}

.order-payment-grid article strong {
  display: block;
  margin-top: 6px;
  color: #111827;
  font-size: var(--fs-16);
}

.order-payment-grid article.is-total {
  border-color: #f4b4be;
  background: #fff5f6;
}

.order-payment-grid article.is-total strong {
  color: #d7263d;
}

.order-address-grid h4 {
  margin: 0 0 8px;
  color: #111827;
  font-size: var(--fs-14);
}

.order-address-grid p {
  margin: 4px 0;
  color: #475569;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.order-progress {
  display: grid;
  grid-template-columns: repeat(8, minmax(80px, 1fr));
  gap: 10px;
  overflow-x: auto;
  padding: 10px 0 2px;
}

.order-progress-step {
  position: relative;
  display: grid;
  gap: 6px;
  justify-items: center;
  min-width: 72px;
  text-align: center;
  color: #94a3b8;
}

.order-progress-step::before {
  content: "";
  width: 42px;
  height: 24px;
  border-radius: 8px;
  background: #cbd5e1;
}

.order-progress-step::after {
  content: "";
  position: absolute;
  top: 11px;
  left: calc(50% + 25px);
  width: calc(100% - 36px);
  height: 2px;
  background: #cbd5e1;
}

.order-progress-step:last-child::after {
  display: none;
}

.order-progress-step span {
  color: inherit;
  font-weight: 950;
}

.order-progress-step small {
  color: #64748b;
  line-height: 1.25;
}

.order-progress-step.is-done,
.order-progress-step.is-current {
  color: #0f74bd;
}

.order-progress-step.is-done::before,
.order-progress-step.is-done::after,
.order-progress-step.is-current::before {
  background: #0f8fd0;
}

.order-progress-step.is-current::before {
  box-shadow: 0 0 0 4px rgba(15, 143, 208, 0.14);
}

.order-progress.is-canceled .order-progress-step::before,
.order-progress.is-canceled .order-progress-step::after {
  background: #ef4444;
}

.order-image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
}

.order-image-grid article {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.order-image-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  border: 1px dashed #ef4444;
  border-radius: 8px;
  background: #ffffff;
}

.order-image-grid strong {
  color: #111827;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.order-image-grid span {
  color: #64748b;
  font-weight: 900;
}

.order-line-item img {
  width: 54px;
  height: 44px;
  object-fit: cover;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #ffffff;
}

.order-line-item span {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.order-detail {
  padding-top: 10px;
  border-top: 1px solid #e6ebf2;
}

.order-detail summary {
  cursor: pointer;
  color: var(--accent-dark);
  font-weight: 900;
}

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

.order-detail-grid section {
  min-width: 0;
  padding: 12px;
  border: 1px solid #e6ebf2;
  border-radius: 8px;
  background: #ffffff;
}

.order-detail-grid h4 {
  margin: 0 0 8px;
  color: #111827;
  font-size: var(--fs-14);
}

.order-detail-grid p {
  margin: 4px 0;
  color: #475569;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.order-detail-grid strong {
  display: block;
  margin-top: 8px;
  color: #111827;
  font-size: var(--fs-16);
}

.order-status {
  min-width: 78px;
  border-radius: 8px;
  padding: 7px 10px;
  background: #e8f7f2;
  color: var(--accent-dark);
  font-weight: 900;
  text-align: center;
}

.order-status.canceled {
  background: #fff0f1;
  color: var(--danger);
}

.order-status.completed {
  background: #eef2ff;
  color: #334155;
}

.template-detail-dialog {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(15, 23, 42, 0.54);
}

.template-detail-dialog[hidden] {
  display: none;
}

.template-detail-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(260px, 0.92fr) minmax(300px, 1fr);
  gap: 22px;
  width: min(920px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  padding: 22px;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 32px 90px rgba(15, 23, 42, 0.24);
}

.template-detail-card > img {
  width: 100%;
  min-height: 280px;
  max-height: 520px;
  object-fit: contain;
  border: 1px solid #e6ebf2;
  border-radius: 8px;
  background: #f8fafc;
}

.template-detail-card h2 {
  margin: 0 0 14px;
  color: #111827;
  font-size: var(--fs-24);
}

.template-detail-card dl {
  display: grid;
  gap: 7px;
  margin: 0 0 14px;
}

.template-detail-card dl div {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 10px;
}

.template-detail-card dt {
  color: #64748b;
  font-weight: 900;
}

.template-detail-card dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.template-detail-card p:not(.eyebrow) {
  margin: 0 0 16px;
  color: #475569;
  line-height: 1.6;
}

.template-detail-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 8px;
  background: #111827;
  color: #ffffff;
}

.template-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-summary-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.admin-summary-grid article {
  min-height: 86px;
  padding: 14px;
  border-radius: 8px;
  background: #111827;
  color: #ffffff;
}

.admin-summary-grid strong,
.admin-summary-grid span {
  display: block;
}

.admin-summary-grid strong {
  font-size: var(--fs-24);
}

.admin-summary-grid span {
  margin-top: 4px;
  color: #d1d5db;
  font-weight: 800;
}

.admin-panel-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.admin-panel-grid article {
  min-width: 0;
}

.admin-panel-grid h3 {
  margin: 0 0 10px;
  color: #111827;
  font-size: var(--fs-17);
}

.product-type-form {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}

.product-type-form label {
  display: grid;
  gap: 5px;
  color: #334155;
  font-weight: 900;
}

.product-type-form input,
.product-type-form textarea {
  min-height: 36px;
  border: 1px solid #d7e1dd;
  border-radius: 8px;
  padding: 7px 10px;
  background: #ffffff;
  color: #111827;
}

.product-type-form textarea {
  min-height: 72px;
  resize: vertical;
}

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

.product-type-form .check-field {
  justify-content: flex-start;
  padding: 0 10px;
}

.product-type-form button {
  min-height: 38px;
  border-radius: 8px;
  border: 0;
  background: var(--accent);
  color: #ffffff;
  font-weight: 900;
}

.admin-row {
  display: grid;
  gap: 7px;
  padding: 12px;
  border: 1px solid #e6ebf2;
  border-radius: 8px;
  background: #fbfdfc;
}

.admin-row strong,
.admin-row small,
.admin-row span {
  overflow-wrap: anywhere;
}

.admin-row small {
  color: #64748b;
}

.admin-order-row select {
  width: 100%;
}

.admin-pdf-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.admin-pdf-link {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 5px 8px;
  border: 1px solid #d7e1dd;
  border-radius: 8px;
  background: #ffffff;
  color: #0f8f72;
  font-weight: 900;
  text-decoration: none;
}

.admin-pdf-link:hover {
  border-color: var(--accent);
  background: #edfdf7;
}

.product-type-row {
  grid-template-columns: minmax(0, 1fr);
}

.saved-panel,
.order-panel {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.section-heading {
  margin: 0 0 12px;
}

.section-heading h2 {
  color: #111827;
  font-size: var(--fs-20);
  font-weight: 700;
}

.section-heading p {
  margin: 8px 0 0;
  color: #64748b;
  font-size: var(--fs-14);
}

.template-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(260px, 1fr));
  gap: 14px;
}

.template-item,
.order-item {
  grid-template-columns: 1fr;
  align-items: start;
  min-height: 118px;
  padding: 0;
  overflow: hidden;
  border: 1px solid #e6ebf2;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.template-item img,
.order-item img {
  width: 100%;
  height: 118px;
  border: 0;
  border-radius: 0;
}

.template-meta,
.order-meta {
  padding: 10px 12px;
}

.order-panel {
  margin-top: 32px;
  padding-bottom: 30px;
}

.prompt-board-section {
  width: 100%;
  max-width: 1260px;
  margin: 54px auto 0;
  padding: 58px 22px 28px;
  border-radius: 0;
  background: #ffffff;
  color: #111827;
}

.prompt-board-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  justify-items: center;
  margin-bottom: 38px;
  text-align: center;
}

.prompt-board-section .eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  margin-bottom: 18px;
  border-radius: 8px;
  padding: 4px 12px;
  background: #fff4cf;
  color: #d69b00;
  font-size: var(--fs-12);
  letter-spacing: 0;
  text-transform: none;
}

.prompt-title-row {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.prompt-board-header h2 {
  margin: 0;
  color: #f1b600;
  font-size: var(--fs-36);
  font-weight: 900;
  line-height: 1.15;
}

.prompt-board-header p {
  max-width: 700px;
  margin: 14px auto 0;
  color: #374151;
  font-size: var(--fs-17);
  line-height: 1.55;
}

.prompt-add-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: auto;
  min-height: 44px;
  margin-top: 22px;
  padding: 0 20px;
  border: 1px solid #111827;
  border-radius: 8px;
  background: #111827;
  color: #ffffff;
  font-size: var(--fs-15);
  font-weight: 950;
  flex: 0 0 auto;
  box-shadow: 0 14px 30px rgba(17, 24, 39, 0.16);
}

.prompt-add-button:hover {
  background: #f1b600;
  color: #111827;
  border-color: #f1b600;
  transform: translateY(-1px);
}

.prompt-add-button i {
  font-size: var(--fs-17);
}

.prompt-submit-form {
  display: grid;
  gap: 12px;
  margin-bottom: 22px;
  padding: 16px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 16px 38px rgba(17, 24, 39, 0.08);
}

.prompt-field-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 260px);
  gap: 12px;
}

.prompt-submit-form label {
  display: grid;
  gap: 7px;
  color: #374151;
  font-size: var(--fs-13);
  font-weight: 800;
}

.prompt-submit-form input,
.prompt-submit-form select,
.prompt-submit-form textarea {
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: #ffffff;
  color: #111827;
}

.prompt-submit-form input,
.prompt-submit-form select {
  min-height: 42px;
  padding: 9px 11px;
}

.prompt-submit-form textarea {
  min-height: 120px;
  padding: 11px;
  resize: vertical;
}

.prompt-image-field input {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  opacity: 0;
  pointer-events: none;
}

.prompt-image-preview {
  display: grid;
  place-items: center;
  min-height: 180px;
  padding: 22px;
  border: 1px dashed #515761;
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(17, 24, 39, 0.06) 1px, transparent 1px),
    linear-gradient(rgba(17, 24, 39, 0.06) 1px, transparent 1px),
    #f9fafb;
  background-position: center;
  background-size: 22px 22px, 22px 22px, cover;
  color: #4b5563;
  text-align: center;
  cursor: pointer;
}

.prompt-image-preview i {
  color: #ffd166;
  font-size: var(--fs-30);
}

.prompt-image-preview strong,
.prompt-image-preview small {
  display: block;
}

.prompt-image-preview.has-image {
  align-content: end;
  justify-items: start;
  min-height: 260px;
  background-size: cover;
  box-shadow: inset 0 -110px 80px rgba(0, 0, 0, 0.62);
  text-align: left;
}

.prompt-form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.best-check {
  display: inline-flex !important;
  grid-auto-flow: column;
  align-items: center;
  justify-content: start;
  gap: 8px !important;
  color: #ffd166 !important;
}

.prompt-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 8px;
  gap: 16px;
  align-items: stretch;
}

.prompt-gallery-groups {
  grid-template-columns: 1fr;
  grid-auto-rows: auto;
}

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

.prompt-list-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.prompt-list-title h3 {
  margin: 0;
  color: #111827;
  font-size: var(--fs-18);
}

.prompt-list-title span {
  color: #6b7280;
  font-size: var(--fs-13);
  font-weight: 800;
}

.prompt-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(260px, 1fr));
  gap: 14px;
}

.prompt-card {
  position: relative;
  display: grid;
  grid-row: span 17;
  grid-template-rows: minmax(0, 1fr) auto;
  min-height: 0;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 36px rgba(17, 24, 39, 0.12);
  transform: translateY(0);
  transition:
    box-shadow 180ms ease,
    transform 180ms ease;
}

.prompt-card.is-wide {
  grid-column: span 2;
  grid-row: span 18;
}

.prompt-card.is-tall {
  grid-row: span 23;
}

.prompt-card.is-compact {
  grid-row: span 12;
}

.prompt-card:hover {
  box-shadow: 0 28px 54px rgba(17, 24, 39, 0.18);
  transform: translateY(-5px);
}

.prompt-card.is-best-card {
  border-color: #f1b600;
}

.prompt-gallery-groups .prompt-card,
.prompt-card-grid .prompt-card {
  grid-row: auto;
  min-height: 420px;
}

.prompt-board-section.is-home-mode .prompt-card {
  grid-template-rows: minmax(0, 1fr);
}

.prompt-board-section.is-home-mode .prompt-card-body {
  display: none;
}

.prompt-card-preview {
  position: relative;
  display: block;
  width: 100%;
  min-height: 100%;
  overflow: hidden;
  border: 0;
  padding: 0;
  background:
    linear-gradient(90deg, rgba(17, 24, 39, 0.05) 1px, transparent 1px),
    linear-gradient(rgba(17, 24, 39, 0.05) 1px, transparent 1px),
    #f3f4f6;
  background-size: 24px 24px;
  color: #ffffff;
  text-align: left;
  cursor: pointer;
}

.prompt-card-preview img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 210px;
  object-fit: cover;
  transform: scale(1);
  transition: transform 320ms ease;
}

.prompt-card:hover .prompt-card-preview img {
  transform: scale(1.045);
}

.prompt-card-gradient {
  position: absolute;
  inset: 42% 0 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.72));
  pointer-events: none;
}

.prompt-card-overlay {
  position: absolute;
  right: 16px;
  bottom: 15px;
  left: 16px;
  z-index: 1;
  display: grid;
  gap: 4px;
  padding-right: 50px;
}

.prompt-card-overlay strong {
  color: #ffffff;
  font-size: var(--fs-18);
  line-height: 1.2;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.45);
}

.prompt-card-overlay small {
  color: rgba(255, 255, 255, 0.86);
  font-size: var(--fs-12);
  font-weight: 800;
}

.prompt-card-arrow {
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 2;
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: #111111;
  transition:
    background 180ms ease,
    transform 180ms ease;
}

.prompt-card:hover .prompt-card-arrow {
  background: #f1b600;
  transform: translate(3px, -3px);
}

.prompt-card-preview .prompt-rank-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
}

.prompt-card-body {
  display: flex;
  min-height: 0;
  flex-direction: column;
  gap: 11px;
  padding: 15px;
  color: #111827;
}

.prompt-card-top,
.prompt-card-meta,
.prompt-card-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.prompt-card-top {
  justify-content: space-between;
}

.prompt-card-top small,
.prompt-card-meta {
  color: #6b7280;
  font-size: var(--fs-12);
}

.prompt-rank-badge {
  padding: 5px 8px;
  border-radius: 8px;
  font-size: var(--fs-11);
  font-weight: 900;
}

.prompt-rank-badge.is-best {
  background: #f1b600;
  color: #111111;
}

.prompt-rank-badge.is-liked {
  background: #ec4899;
  color: #ffffff;
}

.prompt-rank-badge.is-new {
  background: #0f8f72;
  color: #ffffff;
}

.prompt-card h3 {
  margin: 0;
  color: #111827;
  font-size: var(--fs-18);
  line-height: 1.3;
}

.prompt-card p {
  margin: 0;
  color: #4b5563;
  font-size: var(--fs-14);
  line-height: 1.62;
}

.prompt-card-actions {
  margin-top: auto;
}

.prompt-card-actions button {
  min-height: 36px;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: var(--fs-13);
  font-weight: 900;
}

.prompt-card-actions .copy-prompt-button {
  flex: 1 1 130px;
  background: #ffffff;
  color: #111111;
}

.like-prompt-button {
  background: #f3f4f6;
  color: #111827;
}

.like-prompt-button.is-liked {
  background: #ec4899;
}

.best-toggle-button {
  background: #f1b600;
  color: #111111;
}

.has-prompt-dialog {
  overflow: hidden;
}

.prompt-detail-dialog {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 34px;
  background: rgba(17, 24, 39, 0.72);
  backdrop-filter: blur(4px);
}

.prompt-detail-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(320px, 1.18fr) minmax(320px, 0.82fr);
  gap: 28px;
  width: min(1150px, 100%);
  max-height: calc(100vh - 68px);
  overflow: auto;
  border-radius: 8px;
  padding: 32px;
  background: #ffffff;
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.34);
}

.prompt-detail-close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #202020;
  color: #ffffff;
}

.prompt-detail-image-panel {
  display: grid;
  place-items: center;
  min-height: 520px;
  overflow: hidden;
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(17, 24, 39, 0.05) 1px, transparent 1px),
    linear-gradient(rgba(17, 24, 39, 0.05) 1px, transparent 1px),
    #f7f7f7;
  background-size: 24px 24px;
}

.prompt-detail-image-panel img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 620px;
  object-fit: contain;
}

.prompt-detail-copy-panel {
  display: flex;
  min-height: 0;
  flex-direction: column;
  gap: 20px;
  border-radius: 8px;
  padding: 34px;
  background: #f7f8fa;
}

.prompt-detail-kicker {
  width: fit-content;
  border-radius: 8px;
  padding: 5px 10px;
  background: #fff4cf;
  color: #b78300;
  font-size: var(--fs-12);
  font-weight: 900;
}

.prompt-detail-copy-panel h2 {
  margin: 0;
  color: #111827;
  font-size: var(--fs-28);
  line-height: 1.2;
}

.prompt-detail-prompt {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 22px;
  background: #ffffff;
}

.prompt-detail-prompt small {
  display: block;
  margin-bottom: 12px;
  color: #7c8594;
  font-size: var(--fs-12);
  font-weight: 900;
}

.prompt-detail-prompt p {
  margin: 0;
  color: #1f2937;
  font-size: var(--fs-16);
  line-height: 1.65;
  white-space: pre-wrap;
}

.prompt-detail-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.prompt-detail-actions button {
  min-height: 42px;
  border-radius: 8px;
  padding: 10px 16px;
  font-size: var(--fs-14);
  font-weight: 900;
}

.prompt-detail-actions button[hidden] {
  display: none;
}

.prompt-gemini-button {
  background: #f1b600;
  color: #111111;
}

.prompt-make-button {
  background: #111827;
  color: #ffffff;
}

.prompt-detail-like-button {
  background: #fdf2f8;
  color: #be185d;
  border: 1px solid #f9a8d4;
}

.prompt-detail-like-button.is-liked {
  background: #ec4899;
  color: #ffffff;
  border-color: #ec4899;
}

.prompt-detail-best-button {
  flex: 1 0 100%;
  background: #fff4cf;
  color: #7a5600;
  border: 1px solid #f1b600;
}

@keyframes promptCardIn {
  from {
    opacity: 0;
    transform: translateY(22px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .prompt-card {
    animation: promptCardIn 520ms ease both;
    animation-delay: var(--motion-delay, 0ms);
  }
}

.site-footer {
  width: 100%;
  max-width: 1280px;
  margin: 48px auto 0;
  padding: 30px 0 36px;
  border-top: 1px solid #e5eaf1;
  color: #64748b;
}

.footer-main {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  gap: 24px;
  align-items: start;
}

.footer-main strong {
  color: #0f172a;
  font-size: var(--fs-19);
  font-weight: 900;
}

.footer-main p {
  max-width: 560px;
  margin: 10px 0 0;
  color: #64748b;
  line-height: 1.6;
}

.footer-main nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 18px;
  min-width: 320px;
}

.footer-main a {
  color: #334155;
  font-size: var(--fs-14);
  font-weight: 800;
  text-decoration: none;
}

.footer-main a:hover {
  color: #0f8f72;
}

.footer-info {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid #eef2f7;
  font-size: var(--fs-13);
}

.footer-copy {
  margin: 16px 0 0;
  color: #94a3b8;
  font-size: var(--fs-12);
}

@media (max-width: 1280px) {
  .commerce-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .home-hero {
    grid-template-columns: minmax(380px, 1fr) minmax(340px, 420px);
    column-gap: 30px;
  }

  .template-rail {
    display: block;
  }

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

  .prompt-gallery,
  .prompt-card-grid {
    grid-template-columns: repeat(2, minmax(240px, 1fr));
  }
}

@media (max-width: 980px) {
  .commerce-header {
    grid-template-columns: 1fr;
  }

  .top-menu,
  .account-area {
    justify-content: flex-start;
  }

  .commerce-layout,
  .workspace,
  .profile-card,
  .profile-stats,
  .profile-form-grid,
  .cart-sender-panel,
  .cart-pricing-panel,
  .production-options-layout,
  .checkout-layout,
  .checkout-field-grid,
  .cart-suggestion-grid,
  .order-payment-grid,
  .order-address-grid,
  .order-detail-grid,
  .template-detail-card,
  .admin-summary-grid,
  .admin-panel-grid {
    grid-template-columns: 1fr;
  }

  .panel-heading,
  .cart-item {
    grid-template-columns: 1fr;
  }

  .panel-heading {
    display: grid;
  }

  .template-rail {
    padding: 0 12px 28px;
  }

  .home-hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 34px 0 28px;
    text-align: center;
  }

  .home-hero h1,
  .prompt-panel {
    grid-column: 1;
  }

  .home-hero h1 {
    margin: 28px 0 8px;
    padding: 46px 18px;
  }

  .home-hero h1::before {
    width: min(520px, calc(100% + 8px));
    height: 205px;
  }

  .prompt-panel {
    grid-row: auto;
    max-width: 560px;
    margin: 12px auto 0;
  }

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

  .footer-main nav {
    justify-content: flex-start;
    min-width: 0;
  }

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

  .prompt-board-section {
    padding: 42px 14px 18px;
  }

  .prompt-board-header,
  .prompt-field-row,
  .prompt-gallery,
  .prompt-card-grid {
    grid-template-columns: 1fr;
  }

  .prompt-add-button {
    width: 100%;
    min-height: 42px;
  }

  .prompt-card.is-wide {
    grid-column: span 1;
  }

  .prompt-detail-dialog {
    padding: 14px;
  }

  .prompt-detail-card {
    grid-template-columns: 1fr;
    gap: 18px;
    max-height: calc(100vh - 28px);
    padding: 18px;
  }

  .prompt-detail-image-panel {
    min-height: 320px;
  }

  .prompt-detail-copy-panel {
    padding: 22px;
  }

  .sidebar {
    max-height: none;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .stage {
    grid-template-rows: auto auto auto minmax(0, 1fr);
  }

  .stage-toolbar {
    top: var(--commerce-header-height);
    padding-right: 0;
  }

  .editor-command-menu {
    grid-template-columns: 1fr;
  }

  .editor-command-group.is-file,
  .editor-command-group.is-preflight,
  .editor-command-group.is-shapes,
  .editor-command-group.is-edit,
  .editor-command-group.is-view,
  .editor-command-group.is-print,
  .editor-command-group.is-order {
    grid-column: auto;
  }

  .editor-flow-bar {
    grid-template-columns: 1fr;
    padding-right: 0;
  }

  .method-tab-bar {
    grid-template-columns: 1fr;
    padding-right: 0;
  }

  .method-refresh-button {
    width: 100%;
  }

  .editor-flow-actions {
    justify-content: flex-start;
  }

  .order-progress {
    grid-template-columns: repeat(8, 96px);
  }

  .floating-tool-tray {
    position: relative;
    top: auto;
    right: auto;
    width: 100%;
    max-height: none;
  }

  .canvas-frame {
    min-height: 70vh;
  }
}

@media (max-width: 620px) {
  .commerce-layout {
    padding: 0;
  }

  .sample-grid,
  .field-grid,
  .button-row,
  .order-form,
  .address-row,
  .product-type-grid,
  .cart-expanded-content {
    grid-template-columns: 1fr;
  }

  .cart-item {
    padding-left: 42px;
  }

  .order-info-table div {
    grid-template-columns: 1fr;
  }

  .order-info-table dt {
    justify-content: flex-start;
  }

  .status-chip,
  .status-pill {
    white-space: normal;
  }

  .tray-tabs,
  .tool-cluster,
  .view-mode-grid,
  .color-tool-row,
  .tray-grid.three {
    grid-template-columns: 1fr 1fr;
  }

  .editor-command-menu {
    grid-template-columns: 1fr;
  }

  .editor-flow-steps,
  .editor-flow-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .editor-flow-status {
    order: -1;
  }
}
