:root {
  color-scheme: light;
  --bg: #f4f6f8;
  --surface: #ffffff;
  --surface-alt: #f8fafc;
  --line: #d9e1ea;
  --line-strong: #b8c4d2;
  --text: #17202a;
  --muted: #607084;
  --brand: #155e75;
  --brand-strong: #0f4d5f;
  --green: #137452;
  --amber: #8a5200;
  --red: #b42318;
  --blue: #1d5f9f;
  --purple: #6652a8;
  --focus-ring: #0f4d5f;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
}

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

button {
  cursor: pointer;
}

a {
  color: var(--brand);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

:where(a, button, input, select, textarea, summary):focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

.app-shell {
  display: grid;
  grid-template-columns: 236px minmax(570px, 1fr) 430px;
  min-width: 1240px;
  min-height: 100vh;
}

.catalog-list-shell {
  grid-template-columns: 236px minmax(0, 1fr);
  min-width: 1040px;
}

.catalog-listing-detail-shell {
  grid-template-columns: 236px minmax(0, 1fr) 430px;
  min-width: 1240px;
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 22px 18px;
  border-right: 1px solid var(--line);
  background: #fff;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.brand-link {
  color: var(--text);
}

.brand-link:hover {
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: var(--brand);
  font-size: 13px;
}

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

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--muted);
  font-weight: 700;
}

.nav-item-active {
  color: var(--brand-strong);
  border-color: #b9d8df;
  background: #e6f3f6;
}

.nav-item-inert {
  cursor: default;
  user-select: none;
}

.sidebar-summary {
  margin-top: auto;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-alt);
}

.sidebar-summary strong {
  display: block;
  margin: 6px 0 2px;
  font-size: 24px;
  word-break: keep-all;
}

.sidebar-summary span {
  color: var(--muted);
  font-size: 13px;
}

.workspace {
  min-width: 0;
  padding: 24px;
}

.workspace-header,
.toolbar,
.list-header,
.panel-header,
.panel-actions,
.tab-list,
.calculation-footer {
  display: flex;
  align-items: center;
}

.workspace-header {
  justify-content: space-between;
  margin-bottom: 18px;
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

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

h2 {
  font-size: 18px;
  line-height: 1.3;
}

h3 {
  font-size: 16px;
  line-height: 1.35;
}

h4 {
  font-size: 15px;
  line-height: 1.35;
}

.primary-action,
.secondary-action,
.utility-action,
.icon-button,
.text-action {
  border-radius: 8px;
  border: 1px solid transparent;
}

.primary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 14px;
  color: #fff;
  background: var(--brand);
  font-weight: 800;
}

.primary-action:hover {
  background: var(--brand-strong);
  text-decoration: none;
}

.secondary-action,
.utility-action {
  min-height: 38px;
  padding: 0 12px;
  color: var(--text);
  border-color: var(--line);
  background: #fff;
  font-weight: 700;
}

.utility-action {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 8px;
  white-space: nowrap;
}

.secondary-action:hover,
.utility-action:hover {
  border-color: var(--line-strong);
  background: var(--surface-alt);
}

.toolbar {
  gap: 10px;
  margin-bottom: 18px;
}

.search-box {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 8px;
  height: 42px;
  min-width: 260px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
}

.search-box input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
}

.search-box:focus-within {
  border-color: var(--focus-ring);
  box-shadow: 0 0 0 2px var(--focus-ring);
}

.search-box input:focus-visible {
  outline: 0;
}

.toolbar-meta {
  flex: 0 0 auto;
  margin-left: auto;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.tag-filter-control {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.tag-filter-control select {
  min-width: 128px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-weight: 700;
}

.catalog-area {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.list-header {
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
  border-bottom: 1px solid var(--line);
}

.list-header p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
}

.status-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.status-legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.dot-ready {
  background: var(--green);
}

.dot-review {
  background: var(--amber);
}

.dot-missing {
  background: var(--red);
}

.table-wrap {
  overflow-x: auto;
}

.catalog-table {
  width: 100%;
  min-width: 1180px;
  border-collapse: collapse;
  font-size: 13px;
}

.catalog-toggle-table {
  --catalog-grid-columns: 210px 110px 82px 112px 150px 250px 90px 130px;
  min-width: 1240px;
}

.catalog-toggle-table thead tr {
  display: grid;
  grid-template-columns: var(--catalog-grid-columns);
  gap: 12px;
  background: var(--surface-alt);
}

.screen-index-table {
  min-width: 940px;
}

.screen-index-table th:nth-child(3),
.screen-index-table td:nth-child(3) {
  width: 42%;
}

.screen-index-table th:last-child,
.screen-index-table td:last-child {
  width: 72px;
  text-align: right;
}

.catalog-table th {
  padding: 11px 12px;
  color: var(--muted);
  background: var(--surface-alt);
  text-align: left;
  white-space: nowrap;
  font-size: 12px;
}

.catalog-toggle-table th + th {
  border-left: 1px solid var(--line);
}

.catalog-table td {
  padding: 14px 12px;
  border-top: 1px solid var(--line);
  vertical-align: middle;
}

.catalog-table tbody tr {
  outline: 2px solid transparent;
  outline-offset: -2px;
}

.catalog-table tbody tr:hover {
  background: #f5fbfc;
}

.catalog-table tbody tr.is-selected {
  background: #eaf6f8;
  outline-color: var(--focus-ring);
}

.catalog-table tbody tr.catalog-toggle-row:hover,
.catalog-table tbody tr.catalog-toggle-row.is-selected {
  background: transparent;
}

.catalog-toggle-row > td {
  padding: 0;
}

.catalog-toggle {
  display: block;
}

.catalog-toggle-summary {
  display: grid;
  grid-template-columns: var(--catalog-grid-columns);
  align-items: stretch;
  gap: 12px;
  min-height: 68px;
  padding: 14px 0;
  list-style: none;
}

summary.catalog-toggle-summary {
  cursor: pointer;
}

.catalog-toggle-summary > *,
.linked-listing-row > * {
  display: flex;
  min-width: 0;
  align-items: center;
  padding-right: 12px;
}

.catalog-toggle-summary > :first-child {
  padding-left: 12px;
}

.catalog-toggle-summary > * + *,
.linked-listing-row > * + * {
  padding-left: 12px;
  border-left: 1px solid var(--line);
}

.catalog-toggle-summary::-webkit-details-marker {
  display: none;
}

summary.catalog-toggle-summary:hover {
  background: #f5fbfc;
}

summary.catalog-toggle-summary:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: -2px;
}

.catalog-toggle[open] .catalog-toggle-summary {
  background: #eaf6f8;
}

.catalog-toggle-name {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
}

.catalog-select-link {
  color: var(--text);
}

.catalog-select-link:hover {
  color: var(--brand-strong);
}

.toggle-indicator {
  display: grid;
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--muted);
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
  transition:
    transform 160ms ease,
    color 160ms ease,
    border-color 160ms ease;
}

.catalog-toggle[open] .toggle-indicator {
  color: var(--brand-strong);
  border-color: #9fcbd4;
  transform: rotate(90deg);
}

.catalog-listing-drawer {
  box-sizing: border-box;
  width: 100%;
  padding: 0;
  border-top: 1px solid var(--line);
  background: #fff;
}

.linked-listing-row {
  display: grid;
  grid-template-columns: var(--catalog-grid-columns);
  align-items: stretch;
  gap: 12px;
  min-height: 78px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  font-size: 12px;
}

.linked-listing-row:first-child {
  border-top: 0;
}

.linked-listing-row.is-selected {
  background: #eaf6f8;
  outline: 2px solid var(--focus-ring);
  outline-offset: -2px;
}

.listing-target-sentinel {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.catalog-listing-detail-shell .catalog-listing-drawer,
.catalog-listing-detail-shell [data-listing-panel] {
  display: none;
}

.catalog-listing-detail-shell:not(:has(:target)) #listing-heat-ebay,
.catalog-listing-detail-shell :is(#listing-heat-ebay, #listing-camp-ebay, #listing-hub-qoo10):target {
  display: flex;
  flex-direction: column;
}

.catalog-listing-detail-shell:not(:has(:target)) [data-catalog-row="listing-heat-ebay"] .catalog-listing-drawer,
.catalog-listing-detail-shell:has(#listing-heat-ebay:target) [data-catalog-row="listing-heat-ebay"] .catalog-listing-drawer,
.catalog-listing-detail-shell:has(#listing-camp-ebay:target) [data-catalog-row="listing-camp-ebay"] .catalog-listing-drawer,
.catalog-listing-detail-shell:has(#listing-hub-qoo10:target) [data-catalog-row="listing-hub-qoo10"] .catalog-listing-drawer {
  display: block;
}

.catalog-listing-detail-shell:not(:has(:target)) [data-catalog-row="listing-heat-ebay"] .catalog-toggle-summary,
.catalog-listing-detail-shell:has(#listing-heat-ebay:target) [data-catalog-row="listing-heat-ebay"] .catalog-toggle-summary,
.catalog-listing-detail-shell:has(#listing-camp-ebay:target) [data-catalog-row="listing-camp-ebay"] .catalog-toggle-summary,
.catalog-listing-detail-shell:has(#listing-hub-qoo10:target) [data-catalog-row="listing-hub-qoo10"] .catalog-toggle-summary,
.catalog-listing-detail-shell:not(:has(:target)) [data-listing-row="listing-heat-ebay"],
.catalog-listing-detail-shell:has(#listing-heat-ebay:target) [data-listing-row="listing-heat-ebay"],
.catalog-listing-detail-shell:has(#listing-camp-ebay:target) [data-listing-row="listing-camp-ebay"],
.catalog-listing-detail-shell:has(#listing-hub-qoo10:target) [data-listing-row="listing-hub-qoo10"] {
  background: #eaf6f8;
  outline: 2px solid var(--focus-ring);
  outline-offset: -2px;
}

.catalog-listing-detail-shell:not(:has(:target)) [data-catalog-row="listing-heat-ebay"] .toggle-indicator,
.catalog-listing-detail-shell:has(#listing-heat-ebay:target) [data-catalog-row="listing-heat-ebay"] .toggle-indicator,
.catalog-listing-detail-shell:has(#listing-camp-ebay:target) [data-catalog-row="listing-camp-ebay"] .toggle-indicator,
.catalog-listing-detail-shell:has(#listing-hub-qoo10:target) [data-catalog-row="listing-hub-qoo10"] .toggle-indicator {
  color: var(--brand-strong);
  border-color: #9fcbd4;
  transform: rotate(90deg);
}

.linked-listing-platform {
  grid-column: 1;
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
  padding-left: 46px;
}

.linked-listing-platform::before {
  content: "";
  display: block;
  flex: 0 0 auto;
  width: 12px;
  height: 1px;
  background: var(--line-strong);
}

.linked-listing-platform .listed-platform-chip {
  color: var(--platform-color);
  text-decoration: none;
}

.linked-listing-platform a.listed-platform-chip:hover {
  color: var(--platform-color);
  border-color: var(--platform-color);
  text-decoration: none;
}

.linked-listing-platform a.listed-platform-chip:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

.linked-listing-price {
  grid-column: 2;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  align-items: flex-start;
  font-size: 13px;
  white-space: nowrap;
}

.linked-listing-price strong {
  font-size: 13px;
  line-height: 1.25;
}

.linked-listing-price small,
.catalog-row-note {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.35;
}

.linked-margin-rate,
.linked-margin-amount {
  grid-column: 3;
  align-items: center;
}

.linked-margin-amount {
  grid-column: 4;
}

.margin-control {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 5px;
  align-items: center;
  width: 100%;
  min-width: 0;
}

.margin-control span {
  grid-column: span 2;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
}

.margin-control input {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  height: 30px;
  padding: 0 7px;
  appearance: textfield;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--text);
  font: inherit;
  font-weight: 800;
}

.margin-control input::-webkit-inner-spin-button,
.margin-control input::-webkit-outer-spin-button {
  margin: 0;
  appearance: none;
}

.margin-control small {
  color: var(--muted);
  font-weight: 800;
}

.linked-listing-summary {
  grid-column: 5;
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
}

.linked-listing-detail-actions {
  flex-wrap: wrap;
  align-content: center;
}

.linked-policy-list {
  grid-column: 6;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-content: center;
}

.policy-chip {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  gap: 5px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-alt);
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
}

.policy-chip strong {
  color: var(--text);
}

.linked-listing-date {
  grid-column: 8;
}

.linked-listing-created {
  grid-column: 7;
}

.linked-listing-row a {
  color: var(--brand);
  font-weight: 800;
  line-height: 1.35;
  text-decoration: none;
}

.linked-listing-row a:hover {
  color: var(--brand-strong);
  text-decoration: underline;
}

.catalog-name {
  display: grid;
  gap: 4px;
  min-width: 150px;
}

.catalog-name strong {
  font-size: 14px;
}

.catalog-name span,
.muted-cell {
  color: var(--muted);
  font-size: 12px;
}

.price-cell {
  font-weight: 800;
  white-space: nowrap;
}

.platform-legend-item,
.listed-platform-chip,
.platform-listing-chip,
.listing-state-tag,
.field-status-pill,
.result-sample-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.platform-legend-item {
  padding: 0;
  color: var(--muted);
  background: transparent;
}

.platform-legend-item .dot {
  width: 8px;
  height: 8px;
}

.platform-ebay {
  --platform-color: var(--blue);
  --platform-bg: #eaf2ff;
  --platform-border: #bad2ff;
}

.platform-shopee {
  --platform-color: var(--amber);
  --platform-bg: #fff3df;
  --platform-border: #f2c978;
}

.platform-qoo10 {
  --platform-color: var(--purple);
  --platform-bg: #f2ecff;
  --platform-border: #d8c6ff;
}

.platform-legend-item.platform-ebay .dot,
.platform-legend-item.platform-shopee .dot,
.platform-legend-item.platform-qoo10 .dot {
  background: var(--platform-color);
}

.platform-summary,
.listing-summary-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 150px;
}

.catalog-toggle-summary .listing-summary-chips {
  min-width: 0;
  align-content: center;
  flex-wrap: wrap;
}

.listed-platform-chip,
.platform-listing-chip {
  color: var(--platform-color);
  border: 1px solid var(--platform-border);
  background: var(--platform-bg);
}

.platform-listing-chip.is-empty {
  color: var(--muted);
  border-color: var(--line);
  background: var(--surface-alt);
}

.platform-listing-chip.is-draft {
  color: var(--amber);
  border-color: #e8c075;
  background: #fff8ed;
}

.empty-platform-summary {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.listing-state-tag.is-listed {
  color: var(--green);
  background: #e8f7f1;
}

.listing-state-tag.is-draft {
  color: var(--amber);
  background: #fff3df;
}

.field-status-pill,
.result-sample-tag {
  color: var(--green);
  background: #e8f7f1;
}

.absence-state-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  color: var(--muted);
  background: var(--surface-alt);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.platform-gate-note {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.45;
}

.side-panel {
  display: none;
  position: sticky;
  top: 0;
  align-self: start;
  height: 100dvh;
  min-width: 0;
  overflow: hidden;
  border-left: 1px solid var(--line);
  background: #fff;
}

.side-panel.is-open {
  display: flex;
  flex-direction: column;
}

.panel-header {
  justify-content: space-between;
  gap: 12px;
  padding: 20px 20px 14px;
  border-bottom: 1px solid var(--line);
}

.icon-button {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: var(--muted);
  border-color: var(--line);
  background: #fff;
  font-size: 22px;
  line-height: 1;
}

.panel-actions {
  gap: 10px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
}

.panel-actions .primary-action,
.panel-actions .secondary-action {
  flex: 1;
}

.catalog-detail-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
}

.catalog-detail-actions .secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.catalog-save-action,
.catalog-save-blocked-action {
  grid-column: 1 / -1;
}

.catalog-detail-actions .catalog-save-blocked-action,
.alert-popup.completion-save-alert {
  display: none;
}

.app-shell:has(#completion-save-blocked:target) .catalog-save-action {
  display: none;
}

.app-shell:has(#completion-save-blocked:target) .catalog-save-blocked-action,
.alert-popup.completion-save-alert:target {
  display: grid;
}

.alert-popup.completion-save-alert {
  grid-column: auto;
  margin-bottom: 14px;
}

.tab-list {
  gap: 4px;
  padding: 12px 12px 0;
}

.tab-button {
  flex: 1;
  min-height: 38px;
  border: 0;
  border-bottom: 3px solid transparent;
  color: var(--muted);
  background: transparent;
  font-weight: 800;
}

.tab-button.is-active {
  color: var(--brand-strong);
  border-color: var(--brand);
}

.panel-body {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 18px 20px 24px;
}

.tab-panel {
  display: none;
}

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

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

.field-grid.compact {
  margin-top: 14px;
}

.span-2 {
  grid-column: span 2;
}

.info-block,
.price-summary article,
.platform-card,
.price-management-intro,
.price-management-card,
.platform-listing-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-alt);
}

.info-block {
  display: grid;
  gap: 6px;
  min-height: 78px;
  padding: 13px;
}

.info-block p {
  color: var(--text);
  font-size: 13px;
  line-height: 1.55;
}

.field-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.product-layout {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 14px;
}

.representative-image {
  display: grid;
  width: 160px;
  aspect-ratio: 1;
  place-items: center;
  border: 1px dashed var(--line-strong);
  border-radius: 8px;
  color: var(--muted);
  background:
    linear-gradient(135deg, rgba(21, 94, 117, 0.1), rgba(22, 134, 95, 0.08)),
    #f7fafb;
  font-weight: 800;
}

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

.image-strip span {
  min-height: 75px;
  border: 1px dashed var(--line-strong);
  border-radius: 8px;
  background: #f5f7fa;
}

.text-action {
  justify-self: start;
  min-height: 32px;
  padding: 0;
  color: var(--brand);
  background: transparent;
  font-weight: 800;
}

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

.price-summary article {
  display: grid;
  gap: 6px;
  padding: 13px;
}

.platform-price-grid {
  display: grid;
  gap: 12px;
  margin: 14px 0;
}

.platform-card {
  display: grid;
  gap: 5px;
  padding: 14px;
  background: #fff;
}

.platform-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.platform-card strong {
  font-size: 22px;
}

.platform-card small {
  color: var(--muted);
}

.platform-card.ebay {
  border-left: 4px solid var(--blue);
}

.platform-card.shopee {
  border-left: 4px solid var(--amber);
}

.platform-card.qoo10 {
  border-left: 4px solid var(--purple);
}

.calculation-footer {
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-alt);
}

.calculation-footer span {
  flex-basis: 100%;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.price-management-intro {
  display: grid;
  gap: 7px;
  padding: 13px;
  margin-bottom: 12px;
}

.price-management-intro p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

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

.price-management-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border-left: 4px solid var(--platform-color);
  background: #fff;
}

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

.price-management-head > div {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.price-management-head strong {
  font-size: 18px;
  line-height: 1.25;
}

.price-base-summary {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 6px 10px;
  margin: 0;
  padding: 10px;
  border-radius: 8px;
  background: var(--surface-alt);
  font-size: 12px;
}

.price-base-summary dt {
  color: var(--muted);
  font-weight: 800;
}

.price-base-summary dd {
  min-width: 0;
  margin: 0;
  color: var(--text);
}

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

.price-control {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.price-control:first-child {
  grid-column: span 2;
}

.price-control span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.price-control input,
.price-control select {
  width: 100%;
  min-height: 36px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
}

.price-linked-note,
.manual-override-note {
  padding: 9px 10px;
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.45;
}

.price-linked-note {
  color: #22577a;
  background: #eef7fb;
}

.manual-override-note {
  color: #6f4e13;
  background: #fff7e8;
}

.price-card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.price-card-actions span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.4;
}

.price-apply-action {
  flex: 0 0 auto;
}

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

.platform-listing-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border-left: 4px solid var(--platform-color);
}

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

.platform-listing-head > div {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.platform-name {
  color: var(--platform-color);
  font-size: 12px;
  font-weight: 900;
}

.platform-listing-head strong {
  font-size: 20px;
  line-height: 1.2;
}

.platform-listing-meta {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 6px 10px;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.platform-listing-meta dt {
  font-weight: 800;
}

.platform-listing-meta dd {
  min-width: 0;
  margin: 0;
  color: var(--text);
}

.platform-create-action {
  justify-self: stretch;
}

.dashboard-shell {
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr);
  min-width: 1040px;
  min-height: 100vh;
}

.dashboard-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 22px 18px;
  border-right: 1px solid var(--line);
  background: #fff;
}

.dashboard-workspace {
  min-width: 0;
  padding: 28px;
}

.dashboard-header,
.section-heading,
.session-card,
.auth-actions {
  display: flex;
  align-items: center;
}

.dashboard-header {
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
}

.session-card {
  gap: 10px;
  min-width: 260px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.session-card div {
  display: grid;
  gap: 2px;
}

.session-card span:not(.session-status) {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.session-status {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
}

.auth-preview {
  display: grid;
  gap: 11px;
  margin-top: auto;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-alt);
}

.auth-preview strong {
  font-size: 14px;
}

.auth-note {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.45;
}

.auth-actions {
  gap: 8px;
}

.auth-actions .primary-action,
.auth-actions .secondary-action {
  flex: 1;
  min-width: 0;
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}

.status-card {
  display: grid;
  gap: 7px;
  min-height: 132px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.status-kicker {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.status-card strong {
  font-size: 30px;
  line-height: 1;
}

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

.status-card p,
.info-block p,
.price-management-intro p,
.price-linked-note,
.manual-override-note,
.price-base-summary dd,
.listing-flow-banner h2,
.listing-flow-banner p,
.listing-policy-card span,
.platform-gate-note,
.policy-default-panel p:not(.eyebrow),
.selection-action-bar span,
.alert-popup p,
.alert-popup span,
.review-section p,
.creation-start-copy p:not(.eyebrow),
.sidebar-summary span,
.template-table td,
.screen-index-table td:nth-child(3) {
  overflow-wrap: anywhere;
  word-break: keep-all;
  text-wrap: pretty;
}

.account-entry-page #code-mismatch,
.account-entry-page #code-expired,
.account-entry-page #code-resent {
  display: none;
}

.account-entry-page #code-mismatch:target,
.account-entry-page #code-expired:target,
.account-entry-page #code-resent:target {
  display: grid;
}

.code-feedback-stack {
  display: grid;
  grid-column: 2;
  gap: 12px;
}

.code-feedback-stack .alert-popup,
.code-feedback-stack .policy-default-panel {
  grid-column: auto;
}

.dashboard-section {
  margin-top: 22px;
}

.section-heading {
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.section-note {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  overflow-wrap: anywhere;
  word-break: keep-all;
  text-wrap: pretty;
}

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

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

.workflow-card {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 14px;
  min-height: 214px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
}

.workflow-card:hover {
  border-color: var(--line-strong);
  text-decoration: none;
}

.workflow-card.is-primary {
  border-color: #9fcbd4;
  background: #f3fbfc;
}

.workflow-icon {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 8px;
  color: var(--brand-strong);
  background: #e6f3f6;
  font-weight: 900;
}

.workflow-card p {
  margin-top: 7px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.workflow-card strong,
.coming-soon {
  justify-self: start;
  min-height: 28px;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 900;
}

.workflow-card strong {
  color: var(--brand-strong);
  background: #e8f3f5;
}

.teaser-card {
  min-height: 160px;
}

.teaser-card.is-disabled {
  color: var(--muted);
  background: #f7f9fb;
  cursor: not-allowed;
}

.teaser-card.is-disabled .workflow-icon {
  color: var(--muted);
  background: #eef2f6;
}

.coming-soon {
  color: var(--amber);
  background: #fff3df;
}

.creation-shell {
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr);
  min-width: 1180px;
  min-height: 100vh;
}

.creation-workspace {
  min-width: 0;
  padding: 24px;
}

.creation-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.creation-start,
.creation-review {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.creation-start {
  display: grid;
  grid-template-columns: minmax(220px, 320px) minmax(0, 1fr);
  gap: 20px;
  margin-bottom: 18px;
  padding: 18px;
}

.creation-start-copy {
  display: grid;
  align-content: start;
  gap: 7px;
}

.creation-start-copy p:not(.eyebrow),
.review-section-heading p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

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

.template-mode-grid,
.variation-flow-grid {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.template-choice-card,
.variation-flow-card {
  display: grid;
  gap: 9px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.template-choice-card.is-active,
.variation-flow-card.is-active {
  border-color: #afd4dd;
  background: #f3fbfc;
}

.template-choice-card .option-none-toggle,
.variation-flow-card .option-none-toggle {
  align-items: flex-start;
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.template-choice-card .form-field,
.variation-flow-card .form-field {
  gap: 6px;
}

.template-choice-card p,
.variation-flow-card p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
}

.template-inclusion-list {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 9px 10px;
  border: 1px solid #b9d8df;
  border-radius: 8px;
  background: #eef8fa;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.45;
}

.template-inclusion-list span {
  color: var(--brand-strong);
  font-weight: 900;
}

.flow-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.alert-popup {
  grid-column: 2;
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border: 1px solid #f4c7c2;
  border-radius: 8px;
  color: #9f2d24;
  background: #fff8f7;
  font-size: 12px;
  line-height: 1.45;
}

.alert-popup strong {
  color: #7f221c;
  font-size: 13px;
}

.alert-popup p {
  margin: 0;
  font-weight: 800;
}

.alert-popup span {
  color: var(--muted);
  font-weight: 700;
}

.listing-alert-popup {
  grid-column: auto;
  margin-top: 12px;
}

.form-field {
  display: grid;
  gap: 7px;
  min-width: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  font-weight: 500;
}

.form-field input,
.form-field select {
  min-height: 40px;
  padding: 0 12px;
}

.form-field textarea {
  resize: vertical;
  padding: 11px 12px;
  line-height: 1.55;
}

.form-field small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
}

.creation-review {
  padding: 18px;
}

.review-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-alt);
}

.review-nav a {
  min-height: 30px;
  padding: 7px 10px;
  border-radius: 8px;
  color: var(--brand-strong);
  background: #e8f3f5;
  font-size: 12px;
  font-weight: 900;
}

.review-nav a:hover {
  text-decoration: none;
  background: #d9ecf1;
}

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

.review-section {
  display: grid;
  gap: 14px;
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-alt);
}

.review-section-heading {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.step-badge {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: var(--brand);
  font-size: 12px;
  font-weight: 900;
}

.review-section#section-description,
.review-section#section-product-info,
.review-section#section-variation,
.image-review-section,
#section-save {
  grid-column: span 2;
}

.compact-review-section {
  gap: 10px;
  padding: 13px 16px;
}

.description-meta-grid,
.description-editor-grid {
  display: grid;
  gap: 12px;
}

.description-meta-grid {
  grid-template-columns: minmax(0, 1fr) minmax(180px, 280px);
}

.description-editor-grid {
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
  align-items: start;
}

.description-source-editor {
  display: grid;
  gap: 10px;
}

.source-mode-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.source-mode-button {
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--muted);
  background: transparent;
  font-size: 12px;
  font-weight: 900;
}

.source-mode-button.is-active {
  color: #fff;
  background: var(--brand);
}

.source-editor-field textarea {
  min-height: 214px;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 12px;
}

.source-preview-note {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: #fff;
  color: var(--muted);
  font-size: 12px;
}

.source-preview-note strong {
  color: var(--brand-strong);
}

.description-preview-card {
  display: grid;
  gap: 9px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.description-preview-card div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.description-preview-card strong {
  color: var(--brand-strong);
  font-size: 13px;
}

.description-preview-card span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.description-preview-card .preview-mode-labels {
  justify-content: flex-start;
  flex-wrap: wrap;
}

.preview-mode-labels span {
  padding: 4px 7px;
  border-radius: 7px;
  background: #eef4f6;
}

.description-preview-card pre {
  min-height: 246px;
  margin: 0;
  overflow: auto;
  white-space: pre-wrap;
  color: var(--text);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  line-height: 1.5;
}

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

.option-none-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  font-size: 12px;
  font-weight: 900;
}

.option-add-button {
  min-height: 36px;
  padding: 0 12px;
}

.option-toolbar-note {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.option-builder {
  display: grid;
  gap: 10px;
}

.single-unit-grid {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) minmax(160px, 1fr) minmax(160px, 0.85fr) minmax(160px, 0.9fr);
  gap: 10px;
  align-items: start;
}

.option-group-card {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.option-group-header {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 10px;
  align-items: end;
}

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

.variation-price-grid {
  display: grid;
  grid-template-columns: minmax(120px, 0.85fr) minmax(150px, 0.95fr) minmax(130px, 0.85fr) minmax(120px, 0.75fr) minmax(140px, 0.85fr) auto;
  gap: 8px;
  align-items: start;
}

.option-row-actions {
  display: flex;
  align-items: flex-end;
  min-height: 100%;
}

.option-delete-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 11px;
  border: 1px solid #e5b4ae;
  border-radius: 8px;
  background: #fff7f6;
  color: var(--red);
  font-weight: 800;
  white-space: nowrap;
}

.option-image-picker {
  display: grid;
  gap: 7px;
  min-width: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.option-image-preview {
  min-height: 70px;
}

.option-image-picker .secondary-action {
  min-height: 32px;
}

.option-source-note {
  display: grid;
  gap: 5px;
  padding: 12px;
  border: 1px solid #b9d8df;
  border-radius: 8px;
  background: #eef8fa;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.option-source-note strong {
  color: var(--brand-strong);
}

.image-gallery {
  display: grid;
  gap: 14px;
}

.focused-image-panel {
  display: grid;
  grid-template-columns: minmax(360px, 1.1fr) minmax(260px, 0.9fr);
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.focused-image-meta {
  display: grid;
  align-content: start;
  gap: 9px;
}

.focused-image-meta strong {
  font-size: 20px;
}

.focused-image-meta p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.active-focus-marker {
  justify-self: start;
  padding: 5px 9px;
  border-radius: 8px;
  color: var(--brand-strong);
  background: #e8f3f5;
  font-size: 12px;
  font-weight: 900;
}

.gallery-actions {
  display: grid;
  grid-column: 2;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  align-content: end;
}

.gallery-action {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 38px;
  padding: 0 11px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  color: var(--text);
  background: #fff;
  font-size: 12px;
  font-weight: 900;
}

.gallery-action input[type="file"] {
  width: 0;
  min-width: 0;
  height: 0;
  opacity: 0;
}

.representative-action {
  border-color: #ddbd72;
  color: #704600;
  background: #fff7e3;
}

.upload-action {
  border-style: dashed;
}

.danger-action {
  color: var(--red);
  border-color: #e5b4ae;
  background: #fff7f6;
}

.thumbnail-rail {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.gallery-thumb {
  position: relative;
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  min-height: 92px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
}

.gallery-thumb.is-active {
  border-color: var(--blue);
  box-shadow: inset 0 0 0 2px #c7ddf2;
}

.gallery-thumb.is-selected {
  background: #f3fbf7;
}

.gallery-thumb.is-representative {
  background: #fff9eb;
}

.drag-handle {
  display: grid;
  width: 18px;
  height: 58px;
  place-items: center;
  border-radius: 7px;
  color: var(--muted);
  background: #eef2f6;
  font-size: 11px;
  font-weight: 900;
  cursor: grab;
}

.thumb-order {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--brand);
  font-size: 11px;
  font-weight: 900;
}

.thumb-image {
  min-height: 58px;
  border-radius: 7px;
}

.thumb-label {
  grid-column: 3;
  min-width: 0;
  color: var(--text);
  font-size: 12px;
  font-weight: 900;
}

.thumb-marker {
  position: absolute;
  display: none;
  width: 22px;
  height: 22px;
  place-items: center;
  border: 2px solid #fff;
  border-radius: 50%;
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  box-shadow: 0 4px 10px rgba(23, 32, 42, 0.16);
}

.gallery-thumb.is-selected .save-check-marker,
.gallery-thumb.is-representative .representative-check-marker {
  display: grid;
}

.save-check-marker {
  top: 7px;
  right: 34px;
  background: var(--green);
}

.representative-check-marker {
  top: 7px;
  right: 7px;
  background: var(--amber);
}

.gallery-state-input {
  position: absolute;
  width: 1px;
  min-width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.gallery-rules {
  display: grid;
  gap: 5px;
  padding: 12px;
  border: 1px solid #d7c082;
  border-radius: 8px;
  background: #fffaf0;
}

.gallery-rules span {
  color: #704600;
  font-size: 12px;
  font-weight: 900;
}

.gallery-rules p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.mock-product-image {
  min-height: 130px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background:
    linear-gradient(150deg, rgba(21, 94, 117, 0.2), rgba(29, 95, 159, 0.1)),
    #f8fafc;
}

.focused-preview {
  min-height: 300px;
  border-color: #8fb7c2;
}

.heater-front {
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 255, 255, 0.95) 0 22%, transparent 23%),
    linear-gradient(90deg, transparent 0 34%, rgba(21, 94, 117, 0.24) 35% 65%, transparent 66%),
    linear-gradient(160deg, rgba(22, 134, 95, 0.16), rgba(29, 95, 159, 0.18)),
    #eef5f7;
}

.heater-angle {
  background:
    linear-gradient(115deg, transparent 0 30%, rgba(169, 101, 0, 0.2) 31% 58%, transparent 59%),
    radial-gradient(circle at 64% 35%, rgba(255, 255, 255, 0.9) 0 18%, transparent 19%),
    linear-gradient(160deg, rgba(21, 94, 117, 0.15), rgba(102, 82, 168, 0.16)),
    #f7f8fb;
}

.heater-detail {
  background:
    repeating-linear-gradient(90deg, rgba(23, 32, 42, 0.08) 0 8px, transparent 8px 18px),
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.92) 0 28%, transparent 29%),
    linear-gradient(160deg, rgba(180, 35, 24, 0.08), rgba(21, 94, 117, 0.17)),
    #f8fafc;
}

.heater-package {
  background:
    linear-gradient(90deg, rgba(23, 32, 42, 0.08) 0 38%, transparent 39%),
    linear-gradient(145deg, rgba(102, 82, 168, 0.12), rgba(22, 134, 95, 0.15)),
    #f6f8fb;
}

.cost-field {
  max-width: 280px;
}

.save-state-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.save-state-card {
  display: grid;
  gap: 7px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.save-state-card strong {
  font-size: 14px;
}

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

.save-state-card.is-active {
  border-color: #9fcbd4;
  background: #f0fafc;
  box-shadow: inset 0 0 0 2px #cfe8ee;
}

.completion-rules {
  display: grid;
  gap: 8px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.completion-rules span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.completion-rules ul {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px 14px;
  margin: 0;
  padding-left: 18px;
  font-size: 13px;
}

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

.save-actions .primary-action,
.save-actions .secondary-action {
  min-width: 180px;
}

.completion-return-note {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.primary-action.is-disabled {
  pointer-events: none;
  color: #d8e1e7;
  background: #8ea4b0;
}

.listing-shell {
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr);
  min-width: 1180px;
  min-height: 100vh;
}

.listing-workspace {
  min-width: 0;
  padding: 28px;
}

.listing-header,
.listing-flow-banner,
.platform-flow-grid,
.listing-detail-grid {
  display: grid;
  gap: 16px;
}

.listing-header {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  margin-bottom: 20px;
}

.listing-flow-banner,
.source-summary-panel,
.pre-draft-selection-panel,
.draft-editor-panel,
.listing-image-panel,
.draft-save-panel,
.required-values-panel,
.validation-panel,
.result-panel,
.failure-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.listing-flow-banner p,
.readonly-summary,
.readiness-list {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.required-values-panel .section-heading {
  padding: 18px;
  border-bottom: 1px solid var(--line);
}

.listing-side-panel {
  min-height: 0;
}

.listing-side-panel-body {
  display: grid;
  gap: 14px;
  padding: 16px;
}

.listing-side-section,
.listing-policy-list,
.listing-option-list,
.listing-used-image-list {
  display: grid;
  gap: 12px;
}

.listing-side-section {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-alt);
}

.listing-side-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.listing-side-section-head h3 {
  font-size: 15px;
}

.listing-price-section .price-management-intro {
  padding: 0;
  margin-bottom: 0;
}

.listing-price-section .price-management-card {
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--platform-color);
  border-radius: 8px;
}

.listing-price-section .price-management-head strong {
  font-size: 15px;
}

.listing-price-section .price-base-summary {
  grid-template-columns: 86px minmax(0, 1fr);
  padding: 9px;
}

.listing-price-section .price-control-grid {
  grid-template-columns: 1fr;
  gap: 8px;
}

.listing-price-section .price-control:first-child {
  grid-column: auto;
}

.listing-price-section .price-control input[readonly],
.listing-price-section .price-control select:disabled {
  color: var(--text);
  background: var(--surface);
  opacity: 1;
}

.price-control .price-readonly-value {
  display: flex;
  min-height: 36px;
  align-items: center;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  background: var(--surface);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
}

.listing-option-summary {
  display: grid;
  gap: 4px;
  padding: 10px 0 12px;
  border-bottom: 1px solid var(--line);
}

.listing-option-summary span,
.listing-option-summary small,
.listing-option-rows dt,
.listing-option-rows span,
.listing-policy-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.45;
}

.listing-option-summary strong {
  color: var(--text);
  font-size: 13px;
  line-height: 1.45;
}

.listing-option-rows {
  display: grid;
  margin: 0;
}

.listing-option-rows > div {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 10px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

.listing-option-rows > div:first-child {
  border-top: 0;
}

.listing-option-rows dt {
  align-self: start;
}

.listing-option-rows dd {
  display: grid;
  min-width: 0;
  gap: 2px;
  margin: 0;
}

.listing-option-rows strong {
  color: var(--text);
  font-size: 13px;
  line-height: 1.45;
}

.listing-policy-card {
  display: grid;
  gap: 5px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.listing-policy-card strong {
  font-size: 13px;
  line-height: 1.45;
}

.listing-used-image-card {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.listing-used-image-card .mock-product-image {
  min-height: 70px;
}

.listing-used-image-card > div:last-child {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.listing-used-image-card strong {
  font-size: 13px;
  line-height: 1.35;
}

.listing-used-image-card span,
.listing-used-image-card small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.listing-used-image-card.is-representative {
  border-color: #9fcbd4;
  background: #eef8fa;
}

.platform-page-shell {
  min-width: 1240px;
}

.listing-flow-banner {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  padding: 18px;
  margin-bottom: 14px;
  border-left: 4px solid var(--platform-color);
}

.listing-flow-banner h2 {
  margin: 5px 0 6px;
  font-size: 22px;
}

.listing-stepper {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 18px;
}

.listing-stepper span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-align: center;
}

.listing-stepper .is-complete {
  color: var(--green);
  border-color: #bce3d3;
  background: #edf9f4;
}

.listing-stepper .is-current {
  color: var(--brand-strong);
  border-color: #b9d8df;
  background: #e6f3f6;
}

.platform-flow-grid {
  grid-template-columns: minmax(300px, 0.82fr) minmax(440px, 1.18fr);
  margin-bottom: 18px;
}

.source-summary-panel,
.pre-draft-selection-panel,
.draft-editor-panel,
.listing-image-panel,
.draft-save-panel,
.required-values-panel,
.validation-panel,
.result-panel,
.failure-panel {
  padding: 18px;
}

.source-summary-panel h2,
.pre-draft-selection-panel h2,
.draft-editor-panel h2,
.listing-image-panel h2,
.draft-save-panel h2,
.validation-panel h2,
.result-panel h2,
.failure-panel h2 {
  margin-bottom: 12px;
}

.readonly-summary {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  gap: 9px 12px;
  margin: 0;
}

.readonly-summary dt {
  color: var(--muted);
  font-weight: 900;
}

.readonly-summary dd {
  min-width: 0;
  margin: 0;
  color: var(--text);
}

.readonly-summary a {
  display: inline-block;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

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

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

.platform-page-shell .selection-grid {
  grid-template-columns: minmax(0, 1fr);
}

.platform-page-shell .selection-grid > .span-2 {
  grid-column: 1 / -1;
}

.ebay-category-flow {
  display: grid;
  gap: 12px;
  margin-bottom: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-alt);
}

.category-path {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.category-path strong {
  color: var(--text);
}

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

.category-choice-panel {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.category-choice-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-alt);
}

.choice-tab {
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--muted);
  background: transparent;
  font-size: 12px;
  font-weight: 900;
}

.choice-tab.is-active {
  color: #fff;
  background: var(--brand);
}

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

.category-choice-card {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-alt);
}

.category-choice-card.is-active {
  border-color: #9fcbd4;
  background: #eef8fa;
}

.category-choice-card strong {
  color: var(--text);
  font-size: 14px;
}

.category-choice-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.listing-form-grid .form-field input,
.listing-form-grid .form-field textarea,
.selection-grid .form-field select,
.category-level-grid .form-field select,
.category-choice-card .form-field select {
  background: #fff;
}

.selection-action-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  padding: 12px;
  border-radius: 8px;
  background: var(--surface-alt);
}

.selection-action-bar .primary-action {
  flex: 0 0 auto;
  white-space: nowrap;
}

.selection-path-note {
  overflow-wrap: anywhere;
  word-break: keep-all;
  text-wrap: pretty;
}

.policy-default-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  margin-top: 12px;
  padding: 12px;
  border: 1px solid #b9d8df;
  border-radius: 8px;
  background: #eef8fa;
}

.policy-default-panel h3 {
  margin: 3px 0 5px;
  font-size: 16px;
}

.policy-default-panel p:not(.eyebrow) {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.selection-action-bar span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.45;
}

.draft-review-panel {
  display: grid;
  gap: 16px;
  margin-bottom: 18px;
}

.compact-heading {
  align-items: flex-start;
  padding: 0 0 12px;
  border-bottom: 1px solid var(--line);
}

.listing-image-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.listing-image-card {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-alt);
}

.listing-image-card .mock-product-image {
  min-height: 118px;
}

.listing-image-card strong {
  font-size: 14px;
}

.listing-image-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.listing-image-card.is-representative {
  border-color: #9fcbd4;
  background: #eef8fa;
}

.listing-image-card.is-muted {
  opacity: 0.72;
}

.image-action-row,
.draft-save-panel {
  display: flex;
  align-items: center;
  gap: 10px;
}

.image-action-row {
  justify-content: flex-end;
  margin-top: 12px;
}

.draft-save-panel {
  justify-content: space-between;
  background: #fffaf0;
}

.draft-save-panel p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.listing-detail-grid {
  grid-template-columns: minmax(520px, 1.25fr) minmax(300px, 0.75fr);
}

.required-values-panel {
  grid-row: span 2;
  padding: 0;
  overflow: hidden;
}

.option-value-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.option-value-table th,
.option-value-table td {
  padding: 13px 16px;
  border-top: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.option-value-table th {
  color: var(--muted);
  background: var(--surface-alt);
  font-size: 12px;
}

.readiness-list {
  display: grid;
  gap: 9px;
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}

.readiness-list li {
  padding: 9px 10px;
  border-radius: 8px;
  font-weight: 800;
}

.readiness-list .is-ready {
  color: var(--green);
  background: #e8f7f1;
}

.readiness-list .is-warning {
  color: var(--amber);
  background: #fff3df;
}

.failure-panel {
  border-color: #f4c7c2;
  background: #fff8f7;
}

.platform-connection-shell {
  min-width: 1120px;
}

.platform-connection-workspace {
  display: grid;
  align-content: start;
  gap: 18px;
}

.platform-management-header {
  margin-bottom: 0;
}

.platform-management-header p:not(.eyebrow) {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
  overflow-wrap: anywhere;
  word-break: keep-all;
  text-wrap: pretty;
}

.connection-card-grid {
  display: grid;
  gap: 14px;
}

.connection-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.connection-meta dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

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

.connection-card {
  display: grid;
  gap: 18px;
  min-height: 330px;
  padding: 18px;
  border-left: 4px solid var(--platform-color);
}

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

.connection-card h2 {
  margin: 6px 0 0;
  font-size: 22px;
}

.connection-meta {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 10px 14px;
  margin: 0;
  font-size: 14px;
}

.connection-meta dd {
  min-width: 0;
  margin: 0;
  font-weight: 800;
}

.connection-action-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
}

.template-shell {
  min-width: 1180px;
}

.template-workspace {
  display: grid;
  align-content: start;
  gap: 18px;
}

.template-header {
  margin-bottom: 0;
}

.template-library-card,
.template-assignment-section {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.template-library-grid {
  display: grid;
  gap: 16px;
}

.template-library-card {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.template-assignment-section {
  display: grid;
  gap: 14px;
  overflow-x: auto;
  padding: 18px;
}

.template-library-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.template-table-wrap {
  width: 100%;
  min-width: 0;
  overflow-x: auto;
}

.template-table {
  width: 100%;
  min-width: 920px;
  border-collapse: collapse;
  font-size: 13px;
}

.template-table th,
.template-table td {
  padding: 13px 14px;
  border-top: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

.template-table thead th {
  border-top: 0;
  color: var(--muted);
  background: var(--surface-alt);
  font-size: 12px;
  font-weight: 900;
}

.template-table td:first-child {
  display: grid;
  gap: 4px;
}

.template-table th:first-child,
.template-table td:first-child {
  width: 188px;
  min-width: 188px;
}

.template-table td:first-child strong,
.template-table td:first-child span {
  overflow-wrap: anywhere;
  word-break: keep-all;
}

.template-table td:first-child span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

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

.template-editor-panel {
  display: grid;
  gap: 12px;
  overflow-x: auto;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-alt);
}

.template-editor-panel p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.template-assignment-section > p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.template-platform-list {
  display: grid;
  gap: 7px;
  min-width: 240px;
}

.template-platform-list > span {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  color: var(--text);
  font-weight: 800;
  line-height: 1.45;
}

.template-assignment-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 13px;
}

.template-assignment-table th:first-child,
.template-assignment-table td:first-child {
  width: 92px;
}

.template-assignment-table th:nth-child(2),
.template-assignment-table td:nth-child(2) {
  width: 43%;
}

.template-assignment-table th:nth-child(5),
.template-assignment-table td:nth-child(5) {
  width: 94px;
}

.template-assignment-table th,
.template-assignment-table td {
  padding: 11px 12px;
  border-top: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.template-assignment-table thead th {
  border-top: 0;
  color: var(--muted);
  background: var(--surface);
  font-size: 12px;
  font-weight: 900;
}

.template-select-field {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.template-select-field span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.template-select-field select {
  width: 100%;
  min-width: 0;
  min-height: 38px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  background: var(--surface);
  font-size: 12px;
  font-weight: 800;
}

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

.platform-policy-panels {
  display: grid;
  gap: 10px;
}

.platform-policy-panel {
  display: grid;
  gap: 12px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.platform-policy-panel > div {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.platform-policy-panel strong {
  font-size: 14px;
}

.platform-policy-panel dl {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  gap: 8px 12px;
  margin: 0;
}

.platform-policy-panel dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.platform-policy-panel dd {
  min-width: 0;
  margin: 0;
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
}

.template-format-tabs {
  width: max-content;
  max-width: 100%;
}

.template-token-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.template-token-list span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--brand);
  background: #fff;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  font-weight: 900;
}

.template-render-preview {
  display: grid;
  gap: 9px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.template-render-preview > div {
  display: grid;
  gap: 4px;
}

.template-render-preview strong {
  font-size: 13px;
}

.template-render-preview span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.template-render-preview pre {
  overflow: auto;
  min-height: 112px;
  margin: 0;
  padding: 12px;
  border-radius: 8px;
  color: #263238;
  background: #f8fafc;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  line-height: 1.6;
  white-space: pre-wrap;
}

.template-flow-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.template-flow-step {
  display: grid;
  gap: 7px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.template-flow-step.is-active {
  border-color: var(--brand);
  background: var(--surface-alt);
}

.template-flow-step span {
  display: inline-grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--brand);
  background: var(--surface);
  font-size: 12px;
  font-weight: 900;
}

.template-flow-step strong {
  font-size: 14px;
}

.template-flow-step p {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
}

.connection-meta dd,
.template-flow-step p {
  overflow-wrap: anywhere;
  word-break: keep-all;
  text-wrap: balance;
}

.template-create-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 14px;
  align-items: start;
}

.template-create-layout-wide {
  grid-template-columns: 1fr;
}

.template-create-aside {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-alt);
}

.template-review-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.template-review-list li {
  display: grid;
  gap: 4px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.template-review-list strong {
  font-size: 12px;
}

.template-review-list span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
}

.template-create-layout-wide .template-create-aside {
  grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
  align-items: start;
}

.template-create-layout-wide .template-create-aside h3,
.template-create-layout-wide .template-create-aside .template-editor-actions {
  grid-column: 1 / -1;
}

.order-shell {
  min-width: 1280px;
}

.order-workspace {
  display: grid;
  align-content: start;
  gap: 18px;
}

.order-header {
  margin-bottom: 0;
}

.order-overview {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.order-metric,
.order-list-panel,
.order-detail-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.order-metric {
  display: grid;
  gap: 8px;
  padding: 16px;
}

.order-metric span,
.order-card-head time,
.order-state-row,
.order-destination dt,
.order-line-card dt,
.order-print-scope span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.order-metric strong {
  font-size: 30px;
  line-height: 1;
}

.order-metric p,
.order-card p,
.order-detail-head p,
.order-product-summary,
.shipment-record p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.order-workbench {
  display: grid;
  grid-template-columns: minmax(420px, 0.92fr) minmax(560px, 1.08fr);
  gap: 16px;
  align-items: start;
}

.order-list-panel,
.order-detail-panel {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.order-filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-alt);
}

.order-filter-button {
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--muted);
  background: transparent;
  font-size: 12px;
  font-weight: 900;
}

.order-filter-button.is-active {
  color: #fff;
  background: var(--brand);
}

.order-card-list,
.order-line-list,
.shipment-entry-panel,
.order-line-body,
.order-print-scope {
  display: grid;
  gap: 12px;
}

.order-card {
  display: grid;
  gap: 9px;
  padding: 14px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--platform-color);
  border-radius: 8px;
  background: var(--surface-alt);
}

.order-card.is-selected {
  border-color: #9fcbd4;
  border-left-color: var(--platform-color);
  background: #eef8fa;
  box-shadow: inset 0 0 0 2px #cfe8ee;
}

.order-card-head,
.order-card-main,
.order-state-row,
.order-product-summary,
.order-detail-head,
.order-detail-actions,
.order-bulk-actions,
.order-line-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.order-card-main strong,
.order-amount {
  font-size: 15px;
}

.order-amount {
  color: var(--brand-strong);
  font-weight: 900;
}

.order-product-summary {
  align-items: flex-start;
  justify-content: flex-start;
}

.order-product-summary span {
  flex: 0 0 auto;
  min-height: 24px;
  padding: 3px 7px;
  border-radius: 8px;
  color: var(--brand-strong);
  background: #e8f3f5;
  font-size: 11px;
  font-weight: 900;
}

.order-product-summary strong {
  min-width: 0;
  color: var(--text);
  font-size: 13px;
  overflow-wrap: anywhere;
}

.shipment-state {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 9px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.shipment-state.is-unshipped {
  color: var(--red);
  background: #fff0ee;
}

.shipment-state.is-partial {
  color: var(--amber);
  background: #fff3df;
}

.shipment-state.is-shipped {
  color: var(--green);
  background: #e8f7f1;
}

.order-detail-head {
  align-items: flex-start;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.order-detail-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.order-destination,
.order-line-card dl {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 8px 12px;
  margin: 0;
}

.order-destination dd,
.order-line-card dd {
  min-width: 0;
  margin: 0;
  font-size: 13px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.order-bulk-actions {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-alt);
}

.order-print-scope {
  padding: 12px;
  border: 1px solid #b9d8df;
  border-radius: 8px;
  background: #f3fbfc;
}

.order-print-scope strong {
  color: var(--brand-strong);
  font-size: 14px;
}

.order-print-scope p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.order-check-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-size: 13px;
  font-weight: 900;
}

.order-check-row input {
  width: 16px;
  height: 16px;
  accent-color: var(--brand);
}

.order-line-card {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.order-product-photo {
  min-height: 104px;
}

.shipment-entry-panel {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-alt);
}

.shipment-form-grid {
  display: grid;
  grid-template-columns: minmax(180px, 0.8fr) minmax(220px, 1fr);
  gap: 12px;
}

.shipment-record {
  display: grid;
  gap: 7px;
  padding: 12px;
  border: 1px solid #bce3d3;
  border-radius: 8px;
  background: #f4fbf7;
}

.shipment-record .shipment-state {
  justify-self: start;
}

@media (max-width: 900px) {
  .dashboard-home-page .dashboard-shell,
  .account-exit-page .creation-shell,
  .catalog-create-page .creation-shell,
  .screen-index-page .dashboard-shell {
    display: block;
    min-width: 0;
  }

  .dashboard-home-page .dashboard-sidebar,
  .account-exit-page .sidebar,
  .catalog-create-page .sidebar,
  .screen-index-page .dashboard-sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .dashboard-home-page .dashboard-workspace,
  .account-exit-page .creation-workspace,
  .catalog-create-page .creation-workspace,
  .screen-index-page .dashboard-workspace {
    padding: 18px;
  }

  .dashboard-home-page .dashboard-header,
  .dashboard-home-page .section-heading,
  .account-exit-page .creation-header,
  .catalog-create-page .creation-header,
  .screen-index-page .dashboard-header,
  .screen-index-page .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .dashboard-home-page .session-card,
  .screen-index-page .session-card {
    width: 100%;
    min-width: 0;
  }

  .dashboard-home-page .status-grid,
  .dashboard-home-page .teaser-grid,
  .account-exit-page .creation-start,
  .account-exit-page .start-form,
  .catalog-create-page .creation-start,
  .catalog-create-page .start-form,
  .catalog-create-page .template-mode-grid,
  .catalog-create-page .variation-flow-grid,
  .screen-index-page .status-grid {
    grid-template-columns: 1fr;
  }

  .catalog-create-page .creation-start,
  .catalog-create-page .start-form,
  .catalog-create-page .template-mode-grid,
  .catalog-create-page .template-choice-card,
  .catalog-create-page .form-field,
  .catalog-create-page input,
  .catalog-create-page select {
    min-width: 0;
    max-width: 100%;
  }

  .catalog-create-page .creation-start {
    padding: 12px;
  }

  .catalog-create-page .span-2,
  .catalog-create-page .template-mode-grid,
  .catalog-create-page .flow-action-row,
  .catalog-create-page .alert-popup {
    grid-column: auto;
  }

  .catalog-create-page .flow-action-row {
    align-items: stretch;
    flex-direction: column;
  }

  .catalog-create-page .primary-action,
  .catalog-create-page .secondary-action {
    width: 100%;
    min-width: 0;
    text-align: center;
    word-break: keep-all;
    white-space: normal;
  }

  .catalog-create-page h1,
  .catalog-create-page h2 {
    overflow-wrap: anywhere;
  }

  .dashboard-home-page .session-card {
    justify-content: space-between;
  }

  .account-exit-page .policy-default-panel.span-2 {
    grid-column: auto;
  }

  .screen-index-page .screen-index-table {
    min-width: 0;
    table-layout: fixed;
  }

  .screen-index-page .screen-index-table th:first-child,
  .screen-index-page .screen-index-table td:first-child,
  .screen-index-page .screen-index-table th:nth-child(4),
  .screen-index-page .screen-index-table td:nth-child(4) {
    display: none;
  }

  .screen-index-page .screen-index-table th:nth-child(2),
  .screen-index-page .screen-index-table td:nth-child(2) {
    width: 40%;
  }

  .screen-index-page .screen-index-table th:nth-child(3),
  .screen-index-page .screen-index-table td:nth-child(3) {
    width: auto;
  }

  .screen-index-page .screen-index-table th:last-child,
  .screen-index-page .screen-index-table td:last-child {
    width: 58px;
  }

  .screen-index-page .catalog-name {
    min-width: 0;
  }
}

@media (max-width: 1260px) {
  .app-shell {
    grid-template-columns: 200px minmax(620px, 1fr) 360px;
  }

  .catalog-list-shell {
    grid-template-columns: 200px minmax(0, 1fr);
  }

  .catalog-listing-detail-shell {
    grid-template-columns: 200px minmax(0, 1fr) 360px;
  }

  .dashboard-shell {
    grid-template-columns: 200px minmax(0, 1fr);
  }

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

  .listing-shell {
    grid-template-columns: 200px minmax(0, 1fr);
  }

  .workspace {
    padding: 20px;
  }

  .dashboard-workspace,
  .creation-workspace,
  .listing-workspace {
    padding: 22px;
  }

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

  .creation-start,
  .review-layout,
  .description-meta-grid,
  .description-editor-grid,
  .template-mode-grid,
  .variation-flow-grid,
  .option-group-header,
  .single-unit-grid,
  .variation-price-grid,
  .price-control-grid,
  .focused-image-panel,
  .thumbnail-rail,
  .save-state-grid {
    grid-template-columns: 1fr;
  }

  .price-card-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .price-control-grid > .span-2 {
    grid-column: auto;
  }

  .price-control:first-child {
    grid-column: auto;
  }

  .review-section#section-description,
  .review-section#section-product-info,
  .review-section#section-variation,
  .image-review-section,
  #section-save {
    grid-column: span 1;
  }

  .completion-rules ul {
    grid-template-columns: 1fr;
  }

  .gallery-actions {
    grid-column: 1;
  }

  .alert-popup {
    grid-column: 1;
  }

  .connection-card-grid,
  .platform-flow-grid,
  .listing-detail-grid,
  .order-overview,
  .order-workbench,
  .shipment-form-grid,
  .selection-grid,
  .category-level-grid,
  .listing-image-grid,
  .category-choice-grid,
  .template-flow-steps,
  .template-create-layout,
  .template-form-grid,
  .platform-policy-panel dl {
    grid-template-columns: 1fr;
  }

  .selection-action-bar,
  .draft-save-panel,
  .image-action-row,
  .order-detail-head,
  .order-detail-actions,
  .order-bulk-actions,
  .template-library-head {
    align-items: stretch;
    flex-direction: column;
  }

  .order-line-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .account-entry-page .creation-shell,
  .platform-connection-shell,
  .platform-page-shell,
  .order-shell,
  .template-shell {
    display: block;
    width: 100%;
    min-width: 0;
  }

  .account-entry-page .sidebar,
  .platform-connection-shell .sidebar,
  .platform-page-shell .sidebar,
  .order-shell .sidebar,
  .template-shell .sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .account-entry-page .creation-workspace,
  .platform-connection-workspace,
  .platform-page-shell .listing-workspace,
  .order-workspace,
  .template-shell .listing-workspace {
    width: 100%;
    min-width: 0;
    padding: 18px;
  }

  .account-entry-page .creation-header,
  .platform-management-header,
  .platform-page-shell .listing-header,
  .order-header,
  .template-shell .listing-header,
  .template-library-head {
    align-items: stretch;
    flex-direction: column;
  }

  .template-header h1 {
    overflow-wrap: anywhere;
    word-break: keep-all;
    text-wrap: pretty;
  }

  .account-entry-page .creation-start,
  .account-entry-page .start-form,
  .account-entry-page .policy-default-panel,
  .platform-page-shell .listing-header,
  .platform-page-shell .listing-flow-banner,
  .platform-page-shell .platform-flow-grid,
  .platform-page-shell .selection-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .account-entry-page .creation-start,
  .account-entry-page .start-form,
  .account-entry-page .form-field,
  .account-entry-page input,
  .platform-page-shell .listing-workspace > *,
  .platform-page-shell .source-summary-panel,
  .platform-page-shell .pre-draft-selection-panel,
  .platform-page-shell .selection-grid > *,
  .platform-page-shell .form-field,
  .platform-page-shell select,
  .template-shell .listing-workspace > *,
  .template-library-card,
  .template-table-wrap {
    min-width: 0;
    max-width: 100%;
  }

  .account-entry-page .span-2,
  .account-entry-page .alert-popup,
  .account-entry-page .code-feedback-stack,
  .platform-page-shell .span-2 {
    grid-column: auto;
  }

  .account-entry-page .policy-default-panel,
  .platform-page-shell .selection-action-bar {
    align-items: stretch;
  }

  .account-entry-page .policy-default-panel,
  .platform-page-shell .selection-action-bar {
    grid-template-columns: minmax(0, 1fr);
  }

  .platform-page-shell .selection-action-bar {
    flex-direction: column;
  }

  .account-entry-page .primary-action,
  .account-entry-page .secondary-action,
  .platform-page-shell .listing-header .secondary-action,
  .platform-page-shell .selection-action-bar .primary-action,
  .template-library-head .primary-action {
    width: 100%;
    min-width: 0;
    text-align: center;
  }

  .platform-page-shell .listing-stepper {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .template-library-card {
    padding: 14px;
  }

  .screen-index-page .table-wrap {
    overflow: visible;
  }

  .screen-index-page .screen-index-table {
    display: block;
    width: 100%;
    min-width: 0;
  }

  .screen-index-page .screen-index-table thead {
    display: none;
  }

  .screen-index-page .screen-index-table tbody {
    display: grid;
    gap: 12px;
  }

  .screen-index-page .screen-index-table tbody tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px 12px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
  }

  .screen-index-page .screen-index-table td {
    display: block;
    width: auto;
    min-width: 0;
    padding: 0;
    border: 0;
  }

  .screen-index-page .screen-index-table td:first-child,
  .screen-index-page .screen-index-table td:nth-child(4) {
    display: none;
  }

  .screen-index-page .screen-index-table td:nth-child(2) {
    grid-column: 1;
    grid-row: 1;
  }

  .screen-index-page .screen-index-table td:nth-child(3) {
    grid-column: 1 / -1;
    grid-row: 2;
    overflow-wrap: anywhere;
    word-break: keep-all;
    text-wrap: pretty;
  }

  .screen-index-page .screen-index-table td:last-child {
    grid-column: 2;
    grid-row: 1;
    align-self: start;
    width: auto;
    text-align: right;
  }

  .screen-index-page .screen-index-table .catalog-name {
    min-width: 0;
  }

  .screen-index-page .screen-index-table .catalog-name strong {
    overflow-wrap: anywhere;
    word-break: keep-all;
  }

  .screen-index-page .screen-index-table .catalog-name span {
    overflow-wrap: anywhere;
    word-break: break-word;
  }
}

@media (max-width: 480px) {
  .platform-page-shell .listing-stepper {
    grid-template-columns: minmax(0, 1fr);
  }

  .platform-page-shell .source-summary-panel,
  .platform-page-shell .pre-draft-selection-panel {
    padding: 10px;
  }
}
