:root {
  --navy-950: #0d152b;
  --navy-900: #111a33;
  --navy-800: #182442;
  --navy-700: #243354;
  --navy-600: #394a72;
  --ink-900: #172033;
  --ink-700: #46536a;
  --ink-500: #7c879b;
  --paper: #f3f5f7;
  --surface: #ffffff;
  --surface-soft: #f8f9fb;
  --line: #e3e7ed;
  --line-strong: #d2d8e1;
  --gold: #c6a46a;
  --gold-soft: #f2e7d2;
  --teal: #2d8d7f;
  --teal-soft: #dff2ed;
  --danger: #b45353;
  --danger-soft: #f8e5e5;
  --warning: #a87524;
  --warning-soft: #f8edd8;
  --blue: #3a6f9e;
  --blue-soft: #e6f0f8;
  --sidebar-width: 232px;
  --topbar-height: 68px;
  --radius: 8px;
  --shadow: 0 12px 30px rgb(22 32 51 / 7%);
  font-family: "Microsoft YaHei UI", "PingFang SC", "Noto Sans SC", sans-serif;
  color: var(--ink-900);
  background: var(--paper);
}

* {
  box-sizing: border-box;
}

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

body {
  background: var(--paper);
}

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

button {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

[hidden] {
  display: none !important;
}

.eyebrow {
  display: block;
  color: var(--gold);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  line-height: 1.4;
}

.login-screen {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(420px, 1.08fr) minmax(460px, 0.92fr);
  background:
    linear-gradient(120deg, rgb(13 21 43 / 98%), rgb(17 26 51 / 92%)),
    url("/admin/assets/brand-logo.jpg") center / cover;
}

.login-brand-panel {
  min-height: 100vh;
  padding: 54px 64px 48px;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-right: 1px solid rgb(255 255 255 / 10%);
  background:
    radial-gradient(circle at 24% 24%, rgb(198 164 106 / 10%), transparent 26%),
    linear-gradient(145deg, transparent 42%, rgb(255 255 255 / 3%) 42.2%, transparent 42.4%);
}

.login-brand,
.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.login-brand img,
.sidebar-brand img {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid rgb(255 255 255 / 18%);
}

.login-brand strong,
.sidebar-brand strong {
  display: block;
  font-size: 16px;
  letter-spacing: 0.04em;
}

.login-brand span,
.sidebar-brand span {
  display: block;
  margin-top: 4px;
  color: rgb(255 255 255 / 52%);
  font-size: 10px;
  letter-spacing: 0.12em;
}

.login-statement {
  max-width: 620px;
  padding: 48px 0;
}

.login-statement > span {
  display: block;
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.login-statement h1 {
  margin: 22px 0 20px;
  font-size: clamp(46px, 5.8vw, 78px);
  line-height: 1.04;
  letter-spacing: -0.045em;
  font-weight: 700;
}

.login-statement p {
  margin: 0;
  color: rgb(255 255 255 / 64%);
  font-size: 17px;
  line-height: 1.8;
}

.login-facts {
  display: flex;
  gap: 40px;
  padding-top: 28px;
  border-top: 1px solid rgb(255 255 255 / 11%);
}

.login-facts div {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.login-facts b {
  font-family: Georgia, serif;
  font-size: 32px;
  color: var(--gold);
  font-weight: 400;
}

.login-facts span {
  color: rgb(255 255 255 / 47%);
  font-size: 12px;
}

.login-form-panel {
  display: grid;
  place-items: center;
  padding: 40px;
  background:
    linear-gradient(90deg, #f6f7f8, #eef1f4),
    repeating-linear-gradient(0deg, transparent 0 39px, rgb(20 31 54 / 2%) 40px);
}

.login-card {
  width: min(420px, 100%);
  padding: 42px;
  border: 1px solid rgb(255 255 255 / 88%);
  border-radius: 8px;
  background: rgb(255 255 255 / 94%);
  box-shadow: 0 28px 80px rgb(17 26 51 / 12%);
}

.login-card h2 {
  margin: 14px 0 10px;
  font-size: 26px;
  letter-spacing: -0.03em;
}

.login-card > p {
  margin: 0 0 28px;
  color: var(--ink-500);
  font-size: 13px;
  line-height: 1.7;
}

.login-card label,
.form-field {
  display: block;
  margin-bottom: 18px;
}

.login-card label span,
.form-field > span {
  display: block;
  margin-bottom: 8px;
  color: var(--ink-700);
  font-size: 12px;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink-900);
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

input,
select {
  height: 40px;
  padding: 0 12px;
}

textarea {
  min-height: 110px;
  padding: 11px 12px;
  resize: vertical;
  line-height: 1.65;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--navy-600);
  box-shadow: 0 0 0 3px rgb(57 74 114 / 8%);
}

.primary-button,
.secondary-button,
.danger-button,
.ghost-button {
  min-height: 38px;
  padding: 0 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 6px;
  border: 1px solid transparent;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 150ms ease, background 150ms ease, border-color 150ms ease;
}

.primary-button {
  background: var(--navy-900);
  color: #fff;
}

.primary-button:hover {
  background: var(--navy-700);
  transform: translateY(-1px);
}

.secondary-button {
  background: var(--surface);
  border-color: var(--line-strong);
}

.secondary-button:hover,
.ghost-button:hover {
  border-color: var(--navy-600);
}

.danger-button {
  background: var(--danger-soft);
  color: var(--danger);
  border-color: #ebcaca;
}

.ghost-button {
  background: transparent;
  border-color: transparent;
  color: var(--ink-700);
}

.large-button {
  width: 100%;
  height: 44px;
}

.login-card small {
  display: block;
  margin-top: 20px;
  color: var(--ink-500);
  text-align: center;
  font-size: 11px;
}

.form-error {
  min-height: 18px;
  margin: -6px 0 12px !important;
  color: var(--danger) !important;
  font-size: 12px !important;
}

.app-shell {
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 30;
  width: var(--sidebar-width);
  display: flex;
  flex-direction: column;
  color: #fff;
  background:
    linear-gradient(180deg, rgb(255 255 255 / 2%), transparent 20%),
    var(--navy-950);
  border-right: 1px solid rgb(255 255 255 / 6%);
}

.sidebar-brand {
  height: var(--topbar-height);
  padding: 0 20px;
  border-bottom: 1px solid rgb(255 255 255 / 7%);
}

.sidebar-brand img {
  width: 36px;
  height: 36px;
  border-radius: 7px;
}

.sidebar-brand strong {
  font-size: 14px;
}

.sidebar-brand span {
  font-size: 9px;
  letter-spacing: 0.08em;
}

.side-nav {
  flex: 1;
  overflow-y: auto;
  padding: 18px 12px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.side-nav::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.nav-group {
  margin-bottom: 18px;
}

.nav-group-title {
  display: block;
  padding: 0 12px 8px;
  color: rgb(255 255 255 / 31%);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.nav-item {
  width: 100%;
  min-height: 40px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 11px;
  border: 0;
  border-radius: 6px;
  color: rgb(255 255 255 / 62%);
  background: transparent;
  font-size: 13px;
  text-align: left;
  cursor: pointer;
}

.nav-item svg {
  width: 17px;
  height: 17px;
  flex: none;
}

.nav-item:hover {
  color: #fff;
  background: rgb(255 255 255 / 5%);
}

.nav-item.active {
  color: #fff;
  background: linear-gradient(90deg, rgb(198 164 106 / 17%), rgb(255 255 255 / 4%));
  box-shadow: inset 2px 0 var(--gold);
}

.nav-item .nav-count {
  min-width: 22px;
  height: 18px;
  margin-left: auto;
  padding: 0 6px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: var(--gold-soft);
  color: #705a31;
  font-size: 10px;
}

.sidebar-footer {
  margin: 12px;
  padding: 13px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgb(255 255 255 / 8%);
  border-radius: 7px;
  background: rgb(255 255 255 / 3%);
}

.system-dot {
  width: 7px;
  height: 7px;
  flex: none;
  border-radius: 50%;
  background: #65c8a8;
  box-shadow: 0 0 0 4px rgb(101 200 168 / 10%);
}

.sidebar-footer strong {
  display: block;
  font-size: 11px;
}

.sidebar-footer span {
  display: block;
  margin-top: 3px;
  color: rgb(255 255 255 / 37%);
  font-size: 9px;
}

.workspace {
  grid-column: 2;
  min-width: 0;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  height: var(--topbar-height);
  padding: 0 26px;
  display: flex;
  align-items: center;
  gap: 18px;
  border-bottom: 1px solid var(--line);
  background: rgb(255 255 255 / 94%);
  backdrop-filter: blur(12px);
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--ink-500);
  font-size: 12px;
}

.breadcrumb strong {
  color: var(--ink-900);
  font-weight: 700;
}

.breadcrumb b {
  color: var(--line-strong);
  font-weight: 400;
}

.topbar-actions {
  position: relative;
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.global-search {
  width: 290px;
  height: 36px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface-soft);
}

.global-search svg {
  width: 15px;
  color: var(--ink-500);
}

.global-search input {
  height: auto;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  font-size: 12px;
}

.icon-button {
  width: 36px;
  height: 36px;
  padding: 0;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  color: var(--ink-700);
  cursor: pointer;
  text-decoration: none;
}

.icon-button:hover {
  border-color: var(--line-strong);
  background: var(--surface-soft);
}

.icon-button svg {
  width: 17px;
  height: 17px;
}

.sidebar-toggle {
  display: none;
}

.admin-menu {
  height: 46px;
  padding: 0 4px 0 8px;
  display: flex;
  align-items: center;
  gap: 9px;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.admin-avatar {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--navy-700), var(--navy-900));
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.admin-menu strong,
.admin-menu small {
  display: block;
}

.admin-menu strong {
  font-size: 12px;
}

.admin-menu small {
  margin-top: 2px;
  color: var(--ink-500);
  font-size: 9px;
}

.admin-menu > svg {
  width: 14px;
  color: var(--ink-500);
}

.admin-popover {
  position: absolute;
  top: 52px;
  right: 0;
  z-index: 40;
  width: 160px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.admin-popover button {
  width: 100%;
  height: 36px;
  padding: 0 10px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  font-size: 12px;
  text-align: left;
  cursor: pointer;
}

.admin-popover button:hover {
  background: var(--surface-soft);
}

.page-viewport {
  min-height: calc(100vh - var(--topbar-height));
  padding: 26px;
}

.page-head {
  margin-bottom: 21px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.page-head h1 {
  margin: 0;
  font-size: 27px;
  letter-spacing: -0.035em;
}

.page-head p {
  margin: 7px 0 0;
  color: var(--ink-500);
  font-size: 12px;
}

.page-head-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}

.metric-card {
  min-height: 108px;
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.metric-icon {
  width: 48px;
  height: 48px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: linear-gradient(145deg, #f7f8fa, #e9edf1);
  color: var(--navy-700);
}

.metric-icon.gold {
  background: linear-gradient(145deg, #fbf4e7, #ead8b7);
  color: #846a3c;
}

.metric-icon svg {
  width: 21px;
  height: 21px;
}

.metric-copy span {
  display: block;
  color: var(--ink-500);
  font-size: 11px;
}

.metric-copy strong {
  display: block;
  margin: 4px 0 5px;
  font-family: "Bahnschrift", "Microsoft YaHei UI", sans-serif;
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.metric-copy small {
  color: var(--teal);
  font-size: 10px;
}

.metric-copy small.warn {
  color: var(--warning);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(300px, 0.9fr);
  gap: 16px;
  margin-bottom: 16px;
}

.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}

.panel-header {
  min-height: 54px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
}

.panel-header h2 {
  margin: 0;
  font-size: 14px;
}

.panel-header span,
.panel-header p {
  margin: 0;
  color: var(--ink-500);
  font-size: 10px;
}

.panel-body {
  padding: 18px;
}

.chart-wrap {
  position: relative;
  height: 268px;
}

.chart-wrap svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.chart-tooltip {
  position: absolute;
  padding: 7px 9px;
  border-radius: 5px;
  background: var(--navy-900);
  color: #fff;
  font-size: 10px;
  box-shadow: 0 8px 20px rgb(17 26 51 / 22%);
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -100%);
  transition: opacity 150ms ease;
}

.chart-wrap:hover .chart-tooltip {
  opacity: 1;
}

.donut-layout {
  height: 268px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
}

.donut {
  position: relative;
  width: 134px;
  height: 134px;
  flex: none;
  border-radius: 50%;
}

.donut::after {
  content: "";
  position: absolute;
  inset: 34px;
  border-radius: 50%;
  background: #fff;
}

.donut-center {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-content: center;
  text-align: center;
}

.donut-center strong {
  font-size: 21px;
}

.donut-center span {
  color: var(--ink-500);
  font-size: 9px;
}

.legend {
  min-width: 132px;
}

.legend-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  font-size: 11px;
}

.legend-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.legend-row b {
  margin-left: auto;
  font-weight: 700;
}

.bottom-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.85fr);
  gap: 16px;
}

.data-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  white-space: nowrap;
}

.data-table th {
  height: 42px;
  padding: 0 12px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-soft);
  color: var(--ink-500);
  font-size: 10px;
  font-weight: 700;
  text-align: left;
}

.data-table td {
  height: 62px;
  padding: 8px 12px;
  border-bottom: 1px solid #eef1f4;
  color: var(--ink-700);
  font-size: 11px;
  vertical-align: middle;
}

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

.data-table tbody tr:hover {
  background: #fafbfc;
}

.cell-main {
  color: var(--ink-900);
  font-weight: 700;
}

.cell-sub {
  display: block;
  margin-top: 4px;
  color: var(--ink-500);
  font-size: 9px;
}

.product-cell {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 190px;
}

.product-cell img,
.thumb {
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 6px;
  object-fit: cover;
  border: 1px solid var(--line);
  background: #eef1f4;
}

.rank {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--surface-soft);
  color: var(--ink-500);
  font-size: 10px;
}

.rank:first-child {
  background: var(--gold-soft);
  color: #7a5e2d;
}

.money {
  color: var(--ink-900);
  font-family: "Bahnschrift", "Microsoft YaHei UI", sans-serif;
  font-weight: 600;
}

.status {
  min-height: 22px;
  padding: 0 8px;
  display: inline-flex;
  align-items: center;
  border-radius: 4px;
  font-size: 9px;
  font-weight: 700;
  white-space: nowrap;
}

.status.success,
.status.paid,
.status.on_sale,
.status.completed,
.status.approved,
.status.active,
.status.won {
  color: var(--teal);
  background: var(--teal-soft);
}

.status.warning,
.status.pending_payment,
.status.pending_shipment,
.status.pending,
.status.reviewing,
.status.submitted,
.status.new {
  color: var(--warning);
  background: var(--warning-soft);
}

.status.info,
.status.shipped,
.status.reserved,
.status.assigned,
.status.contacted {
  color: var(--blue);
  background: var(--blue-soft);
}

.status.danger,
.status.refunding,
.status.cancelled,
.status.rejected,
.status.sold,
.status.disabled,
.status.hidden,
.status.lost {
  color: var(--danger);
  background: var(--danger-soft);
}

.status.muted,
.status.draft,
.status.off_sale,
.status.ended,
.status.outbid {
  color: var(--ink-500);
  background: #eef1f4;
}

.table-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.text-action {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--blue);
  font-size: 10px;
  cursor: pointer;
}

.text-action.danger {
  color: var(--danger);
}

.toolbar {
  min-height: 58px;
  padding: 9px 12px;
  display: flex;
  align-items: center;
  gap: 9px;
  border-bottom: 1px solid var(--line);
}

.toolbar-search {
  min-width: 220px;
  max-width: 340px;
  flex: 1;
}

.toolbar select {
  width: auto;
  min-width: 118px;
}

.toolbar-spacer {
  flex: 1;
}

.empty-row {
  padding: 54px 20px !important;
  color: var(--ink-500) !important;
  text-align: center;
}

.pagination {
  min-height: 56px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  border-top: 1px solid var(--line);
  color: var(--ink-500);
  font-size: 10px;
}

.pagination button {
  width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #fff;
  cursor: pointer;
}

.pagination button.active {
  border-color: var(--navy-800);
  background: var(--navy-800);
  color: #fff;
}

.loading-state,
.empty-state {
  min-height: 320px;
  display: grid;
  place-content: center;
  justify-items: center;
  color: var(--ink-500);
  font-size: 12px;
}

.loading-state span {
  width: 28px;
  height: 28px;
  border: 2px solid var(--line);
  border-top-color: var(--navy-700);
  border-radius: 50%;
  animation: spin 800ms linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgb(13 21 43 / 32%);
  backdrop-filter: blur(2px);
}

.drawer {
  position: fixed;
  inset: 0 0 0 auto;
  z-index: 70;
  width: min(520px, 94vw);
  display: flex;
  flex-direction: column;
  background: #fff;
  box-shadow: -20px 0 50px rgb(13 21 43 / 14%);
  transform: translateX(104%);
  transition: transform 220ms ease;
}

.drawer.open {
  transform: translateX(0);
}

.drawer.drawer-wide {
  width: min(1280px, 96vw);
}

.drawer.drawer-product-modal {
  inset: 5vh auto auto 50%;
  width: min(1060px, 92vw);
  height: 90vh;
  overflow: hidden;
  border: 1px solid #dce2e7;
  border-radius: 12px;
  box-shadow: 0 32px 90px rgb(10 19 38 / 28%);
  opacity: 0;
  transform: translate(-50%, 18px) scale(0.985);
  transition: transform 180ms ease, opacity 180ms ease;
}

.drawer.drawer-product-modal.open {
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
}

.drawer-product-modal .drawer-header {
  border-radius: 12px 12px 0 0;
}

.drawer-product-modal .drawer-footer {
  border-radius: 0 0 12px 12px;
}

.drawer-header {
  min-height: 78px;
  padding: 17px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.drawer-header span {
  color: var(--gold);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.drawer-header h2 {
  margin: 4px 0 0;
  font-size: 20px;
}

.drawer-body {
  flex: 1;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 20px;
}

.drawer-footer {
  min-height: 68px;
  padding: 13px 20px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  border-top: 1px solid var(--line);
  background: var(--surface-soft);
}

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

.form-field.full {
  grid-column: 1 / -1;
}

.form-section-title {
  margin: 24px 0 14px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  font-weight: 800;
}

.section-table-title,
.section-product-preview {
  display: flex;
  align-items: center;
}

.section-table-title {
  gap: 11px;
}

.section-accent {
  width: 5px;
  height: 36px;
  flex: none;
  border-radius: 999px;
}

.section-product-preview {
  gap: 5px;
}

.section-product-preview img {
  width: 32px;
  height: 32px;
  object-fit: cover;
  border: 1px solid #e6e9ee;
  border-radius: 6px;
  background: #f4f6f8;
}

.section-product-preview span {
  margin-left: 4px;
  color: var(--ink-500);
  font-size: 11px;
}

.table-actions {
  white-space: nowrap;
}

.text-action.danger-text {
  color: #b2483d;
}

.section-picker-block {
  margin-top: 8px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.section-picker-head {
  margin-bottom: 12px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.section-picker-head strong,
.section-picker-head span {
  display: block;
}

.section-picker-head strong {
  color: var(--ink-900);
  font-size: 13px;
}

.section-picker-head span {
  margin-top: 4px;
  color: var(--ink-500);
  font-size: 10px;
  line-height: 1.55;
}

.section-picker-head b {
  flex: none;
  padding: 5px 9px;
  border-radius: 999px;
  background: #f3efe6;
  color: #80602e;
  font-size: 10px;
}

.section-picker-search {
  width: 100%;
  margin-bottom: 10px;
}

.section-product-picker {
  max-height: 360px;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fafbfc;
}

.section-product-option {
  min-height: 62px;
  padding: 9px 11px;
  display: grid;
  grid-template-columns: 18px 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid #e9ecf0;
  cursor: pointer;
}

.section-product-option:last-child {
  border-bottom: 0;
}

.section-product-option:has(input:checked) {
  background: #f7f4ed;
}

.section-product-option input {
  width: 16px;
  height: 16px;
  margin: 0;
  padding: 0;
}

.section-product-option img {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 6px;
  background: #fff;
}

.section-product-option span {
  min-width: 0;
}

.section-product-option strong,
.section-product-option small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.section-product-option strong {
  color: var(--ink-900);
  font-size: 12px;
}

.section-product-option small {
  margin-top: 4px;
  color: var(--ink-500);
  font-size: 10px;
}

.section-product-option em {
  color: var(--ink-500);
  font-size: 9px;
  font-style: normal;
}

.drawer.drawer-product-mode .drawer-body {
  padding: 0;
}

.product-wizard {
  min-height: 100%;
}

.product-wizard-layout {
  min-height: 100%;
  display: grid;
  grid-template-columns: 214px minmax(0, 1fr) 270px;
}

.product-wizard-rail {
  position: relative;
  padding: 28px 18px 24px;
  border-right: 1px solid #e4e8ee;
  background:
    linear-gradient(180deg, rgb(17 26 51 / 3%), transparent 34%),
    #f8f9fb;
}

.product-workflow-intro > span {
  color: var(--gold);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.product-workflow-intro h3 {
  margin: 8px 0 7px;
  color: var(--navy-900);
  font-size: 18px;
}

.product-workflow-intro p {
  margin: 0;
  color: var(--ink-500);
  font-size: 10px;
  line-height: 1.7;
}

.product-step-list {
  margin-top: 24px;
  display: grid;
  gap: 7px;
}

.product-step {
  width: 100%;
  min-height: 57px;
  padding: 9px 10px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.product-step:hover {
  border-color: var(--line);
  background: #fff;
}

.product-step > b {
  width: 27px;
  height: 27px;
  flex: none;
  display: grid;
  place-items: center;
  border: 1px solid #cfd6df;
  border-radius: 50%;
  background: #fff;
  color: var(--ink-500);
  font-size: 9px;
}

.product-step > span {
  min-width: 0;
  display: block;
}

.product-step strong,
.product-step small {
  display: block;
}

.product-step strong {
  color: var(--ink-700);
  font-size: 11px;
}

.product-step small {
  margin-top: 3px;
  color: var(--ink-500);
  font-size: 8px;
  line-height: 1.45;
}

.product-step.is-current {
  border-color: rgb(198 164 106 / 45%);
  background: #fff;
  box-shadow: 0 7px 20px rgb(17 26 51 / 6%);
}

.product-step.is-current > b {
  border-color: var(--navy-900);
  background: var(--navy-900);
  color: #fff;
}

.product-step.is-current strong {
  color: var(--navy-900);
}

.product-step.is-complete > b {
  border-color: var(--teal);
  background: var(--teal-soft);
  color: var(--teal);
}

.product-rail-note {
  margin-top: 22px;
  padding: 13px;
  display: flex;
  align-items: flex-start;
  gap: 9px;
  border: 1px solid #e8dfcd;
  border-radius: 8px;
  background: #fffaf0;
  color: #80683f;
}

.product-rail-note svg {
  flex: none;
}

.product-rail-note strong,
.product-rail-note span {
  display: block;
}

.product-rail-note strong {
  font-size: 10px;
}

.product-rail-note span {
  margin-top: 4px;
  font-size: 8px;
  line-height: 1.55;
}

.product-wizard-main {
  min-width: 0;
  padding: 24px 26px 44px;
  background: #ffffff;
}

.product-step-panel {
  display: none;
} 

.product-step-panel.is-active {
  display: block;
  animation: product-panel-in 180ms ease;
}

@keyframes product-panel-in {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.product-panel-head {
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.product-panel-head > span {
  color: var(--gold);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.15em;
}

.product-panel-head h3 {
  margin: 7px 0 6px;
  color: var(--navy-900);
  font-size: 21px;
}

.product-panel-head p {
  margin: 0;
  color: var(--ink-500);
  font-size: 10px;
  line-height: 1.65;
}

.product-wizard .form-field {
  margin-bottom: 16px;
}

.product-wizard .form-field > span {
  margin-bottom: 7px;
  color: var(--ink-700);
}

.product-wizard .form-field small {
  display: block;
  margin-top: 6px;
  color: var(--ink-500);
  font-size: 8px;
  line-height: 1.5;
}

.input-with-action,
.money-input {
  position: relative;
  display: flex;
  align-items: center;
  gap: 7px;
}

.input-with-action input {
  min-width: 0;
  flex: 1;
}

.input-with-action button {
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: #fff;
  color: var(--navy-700);
  font-size: 10px;
  cursor: pointer;
}

.money-input i {
  position: absolute;
  z-index: 1;
  left: 13px;
  color: var(--ink-500);
  font-size: 12px;
  font-style: normal;
}

.money-input input {
  padding-left: 29px;
}

.battery-control {
  height: 40px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: #fff;
}

.battery-control input[type="range"] {
  height: 20px;
  min-width: 0;
  flex: 1;
  padding: 0;
  border: 0;
  box-shadow: none;
  accent-color: var(--navy-800);
}

.battery-control output {
  width: 48px;
  flex: none;
  color: var(--navy-900);
  font-family: "Bahnschrift", "Microsoft YaHei UI", sans-serif;
  font-size: 16px;
  font-weight: 700;
  text-align: right;
}

.product-guidance-card {
  padding: 14px 16px;
  border-left: 3px solid var(--gold);
  background: #fbf8f2;
}

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

.product-guidance-card strong {
  color: var(--navy-900);
  font-size: 11px;
}

.product-guidance-card span {
  margin-top: 4px;
  color: var(--ink-500);
  font-size: 9px;
  line-height: 1.65;
}

.product-identity-note {
  margin-bottom: 16px;
  padding: 13px 15px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border: 1px solid #e4e8ee;
  border-radius: 8px;
  background: #f8fafc;
  color: var(--navy-700);
}

.product-identity-note svg {
  flex: none;
}

.product-identity-note strong,
.product-identity-note span {
  display: block;
}

.product-identity-note strong {
  font-size: 10px;
}

.product-identity-note span {
  margin-top: 4px;
  color: var(--ink-500);
  font-size: 8px;
  line-height: 1.55;
}

.product-identity-note button {
  margin-top: 7px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--blue);
  font-size: 8px;
  cursor: pointer;
}

.model-combobox {
  position: relative;
}

.model-combobox input {
  padding-right: 42px;
}

.model-combobox-toggle {
  position: absolute;
  top: 1px;
  right: 1px;
  width: 40px;
  height: 38px;
  border: 0;
  border-left: 1px solid var(--line);
  border-radius: 0 5px 5px 0;
  background: #fff;
  color: var(--ink-500);
  font-size: 16px;
  cursor: pointer;
}

.model-options-menu {
  position: absolute;
  top: calc(100% + 5px);
  right: 0;
  left: 0;
  z-index: 45;
  max-height: 280px;
  padding: 5px;
  overflow-y: auto;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 14px 34px rgb(17 26 51 / 16%);
}

.model-option {
  width: 100%;
  min-height: 36px;
  padding: 7px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--ink-900);
  font-size: 11px;
  text-align: left;
  cursor: pointer;
}

.model-option:hover,
.model-option:focus-visible {
  background: #f1f4f8;
}

.model-option small {
  flex: none;
  color: var(--ink-500);
  font-size: 8px;
}

.model-option-empty {
  padding: 18px 12px;
  color: var(--ink-500);
  font-size: 10px;
  text-align: center;
}

.model-option-loading {
  padding: 18px 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--ink-500);
  font-size: 10px;
}

.model-option-loading > span {
  width: 13px;
  height: 13px;
  border: 2px solid #dce2e8;
  border-top-color: var(--navy-700);
  border-radius: 50%;
  animation: model-loading-spin 700ms linear infinite;
}

@keyframes model-loading-spin {
  to {
    transform: rotate(360deg);
  }
}

.product-choice-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.product-custom-input {
  height: 36px;
  margin-top: 8px;
}

.product-choice,
.product-tag-choice {
  min-height: 36px;
  padding: 0 15px;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  background: #fff;
  color: var(--ink-700);
  font-size: 10px;
  cursor: pointer;
}

.product-choice:hover,
.product-tag-choice:hover {
  border-color: #9ca8b8;
}

.product-choice.is-selected,
.product-tag-choice.is-selected {
  border-color: var(--navy-800);
  background: var(--navy-800);
  color: #fff;
  box-shadow: 0 4px 10px rgb(17 26 51 / 10%);
}

.number-stepper {
  height: 40px;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 40px;
}

.number-stepper button,
.number-stepper input {
  height: 40px;
  border: 1px solid var(--line-strong);
  background: #fff;
}

.number-stepper button {
  color: var(--navy-700);
  font-size: 17px;
  cursor: pointer;
}

.number-stepper button:first-child {
  border-radius: 6px 0 0 6px;
}

.number-stepper button:last-child {
  border-radius: 0 6px 6px 0;
}

.number-stepper input {
  z-index: 1;
  border-right: 0;
  border-left: 0;
  border-radius: 0;
  text-align: center;
}

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

.product-status-card {
  min-height: 66px;
  padding: 10px;
  display: flex;
  align-items: flex-start;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  cursor: pointer;
}

.product-status-card input {
  width: 14px;
  height: 14px;
  margin-top: 1px;
  flex: none;
  accent-color: var(--navy-800);
}

.product-status-card strong,
.product-status-card small {
  display: block;
}

.product-status-card strong {
  color: var(--ink-900);
  font-size: 10px;
}

.product-status-card small {
  margin-top: 4px;
  color: var(--ink-500);
  font-size: 7px;
  line-height: 1.45;
}

.product-status-card:has(input:checked) {
  border-color: var(--navy-700);
  background: #f3f6fb;
  box-shadow: inset 0 0 0 1px var(--navy-700);
}

.product-tag-options {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.product-tag-choice {
  min-height: 31px;
  padding: 0 12px;
  border-radius: 5px;
  font-size: 9px;
}

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

.product-switch {
  min-height: 63px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
}

.product-switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.product-switch-track {
  position: relative;
  width: 37px;
  height: 21px;
  flex: none;
  border-radius: 999px;
  background: #d9dfe7;
  transition: background 160ms ease;
}

.product-switch-track::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgb(17 26 51 / 22%);
  transition: transform 160ms ease;
}

.product-switch input:checked + .product-switch-track {
  background: var(--navy-800);
}

.product-switch input:checked + .product-switch-track::after {
  transform: translateX(16px);
}

.product-switch strong,
.product-switch small {
  display: block;
}

.product-switch strong {
  color: var(--ink-900);
  font-size: 11px;
}

.product-unique-sale-note {
  min-height: 64px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #dce7e2;
  border-radius: 9px;
  background: #f4f8f6;
  color: #315f4d;
}

.product-unique-sale-note svg {
  flex: none;
}

.product-unique-sale-note strong,
.product-unique-sale-note span {
  display: block;
}

.product-unique-sale-note strong {
  font-size: 11px;
}

.product-unique-sale-note span {
  margin-top: 4px;
  color: #688078;
  font-size: 8px;
  line-height: 1.5;
}

.product-switch small {
  margin-top: 3px;
  color: var(--ink-500);
  font-size: 8px;
}

.product-media-layout {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 20px;
  margin-bottom: 20px;
}

.product-cover-editor {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 9px;
}

.product-upload-title {
  color: var(--ink-900);
  font-size: 11px;
}

.product-cover-preview {
  width: 150px;
  height: 170px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px dashed var(--line-strong);
  border-radius: 10px;
  background: linear-gradient(145deg, #f8f9fb, #eef1f5);
  color: var(--ink-500);
  font-size: 10px;
}

.product-cover-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-cover-editor > small {
  color: var(--ink-500);
  font-size: 8px;
  line-height: 1.5;
}

.upload-trigger {
  min-height: 34px;
  padding: 0 13px;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}

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

.product-field-head strong,
.product-field-head small {
  display: block;
}

.product-field-head strong {
  color: var(--ink-900);
  font-size: 11px;
}

.product-field-head small {
  margin-top: 4px;
  color: var(--ink-500);
  font-size: 8px;
}

.product-gallery-list {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
}

.product-gallery-item,
.product-gallery-empty {
  position: relative;
  min-height: 102px;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.product-gallery-item img {
  width: 100%;
  height: 102px;
  display: block;
  object-fit: cover;
}

.product-gallery-item button {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 50%;
  background: rgb(13 21 43 / 72%);
  color: #fff;
  cursor: pointer;
}

.product-gallery-item > span {
  position: absolute;
  left: 5px;
  bottom: 5px;
  padding: 2px 6px;
  border-radius: 3px;
  background: var(--gold);
  color: #fff;
  font-size: 8px;
}

.product-gallery-empty {
  grid-column: 1 / -1;
  min-height: 102px;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 4px;
  color: var(--ink-500);
  font-size: 9px;
}

.product-gallery-empty small {
  font-size: 8px;
}

.advanced-field {
  margin-top: 13px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface-soft);
}

.advanced-field summary {
  color: var(--ink-700);
  font-size: 9px;
  cursor: pointer;
}

.advanced-field .form-field {
  margin: 11px 0 0;
}

.product-description-field textarea {
  min-height: 132px;
}

.product-summary {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 20px;
  padding: 18px;
  border: 1px solid #e6dece;
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgb(198 164 106 / 9%), transparent 42%),
    #fffdfa;
}

.product-live-preview {
  margin-top: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f5f6f8;
}

.product-live-preview-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.product-live-preview-head strong,
.product-live-preview-head small {
  display: block;
}

.product-live-preview-head strong {
  color: var(--navy-900);
  font-size: 12px;
}

.product-live-preview-head small {
  margin-top: 4px;
  color: var(--ink-500);
  font-size: 8px;
}

.product-live-preview-head > span {
  color: var(--gold);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.15em;
}

.product-preview-stage {
  margin-top: 14px;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(280px, 1.08fr);
  gap: 16px;
  align-items: start;
}

.product-preview-column {
  min-width: 0;
}

.product-preview-column > span {
  display: block;
  margin-bottom: 8px;
  color: var(--ink-500);
  font-size: 9px;
  font-weight: 700;
}

.admin-product-card-preview {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid #f4eade;
  border-radius: 20px;
  background: #fffdf8;
  box-shadow: 0 6px 16px rgb(121 93 62 / 8%);
}

.admin-product-card-media {
  width: 100%;
  aspect-ratio: 1 / 1;
  min-height: 0;
  flex: none;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 0;
  background: #e9e9e7;
  color: var(--ink-500);
}

.admin-product-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.admin-product-card-copy {
  position: relative;
  min-width: 0;
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
  color: #4b4b4b;
}

.admin-product-card-condition {
  position: absolute;
  top: 12px;
  right: 12px;
  min-width: 54px;
  height: 28px;
  padding: 0 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: #b68b4a;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
}

.admin-product-card-copy > strong {
  display: -webkit-box;
  overflow: hidden;
  color: #202020;
  font-size: 16px;
  line-height: 22px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.admin-product-card-copy > span {
  margin-top: 6px;
  overflow: hidden;
  font-size: 10.5px;
  line-height: 16px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-product-card-services {
  margin-top: 7px;
  display: flex;
  flex-wrap: wrap;
  gap: 3px 7px;
  color: #686052;
  font-size: 8px;
}

.admin-product-card-price {
  margin-top: 18px;
  color: #f66700;
  font-family: "Bahnschrift", "Microsoft YaHei UI", sans-serif;
  font-size: 25px;
  font-weight: 700;
  white-space: nowrap;
}

.admin-product-card-price del {
  margin-left: 4px;
  color: #8b8b8b;
  font-family: inherit;
  font-size: 9px;
  font-weight: 400;
}

.admin-product-card-cta {
  height: 34px;
  margin-top: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 17px;
  background: linear-gradient(90deg, #f66700, #e94c00);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
}

.admin-product-detail-preview {
  width: min(100%, 330px);
  margin: 0 auto;
  overflow: hidden;
  border: 7px solid #111a33;
  border-radius: 30px;
  background: #f4f6f7;
  box-shadow: 0 16px 34px rgb(17 26 51 / 14%);
}

.admin-detail-gallery {
  position: relative;
  height: 185px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #e9ecef;
  color: var(--ink-500);
}

.admin-detail-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.admin-detail-gallery b {
  position: absolute;
  top: 14px;
  left: 12px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgb(255 255 255 / 88%);
  color: var(--navy-900);
  font-size: 21px;
}

.admin-detail-gallery small {
  position: absolute;
  right: 10px;
  bottom: 9px;
  padding: 3px 6px;
  border-radius: 999px;
  background: rgb(17 26 51 / 58%);
  color: #fff;
  font-size: 7px;
}

.admin-detail-summary,
.admin-detail-info,
.admin-detail-description {
  margin: 8px;
  padding: 13px;
  border-radius: 9px;
  background: #fff;
}

.admin-detail-price {
  display: flex;
  align-items: center;
  gap: 7px;
}

.admin-detail-price strong {
  color: #d6531d;
  font-family: "Bahnschrift", "Microsoft YaHei UI", sans-serif;
  font-size: 23px;
}

.admin-detail-price del {
  color: #9aa0a8;
  font-size: 8px;
}

.admin-detail-price span {
  margin-left: auto;
  padding: 4px 7px;
  border-radius: 4px;
  background: var(--teal-soft);
  color: var(--teal);
  font-size: 7px;
  font-weight: 700;
}

.admin-detail-summary h4 {
  margin: 9px 0 5px;
  color: #25314a;
  font-size: 14px;
  line-height: 1.45;
}

.admin-detail-summary p,
.admin-detail-description p {
  margin: 0;
  color: #747d8d;
  font-size: 8px;
  line-height: 1.65;
}

.admin-detail-badges {
  margin-top: 9px;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.admin-detail-badges span {
  padding: 3px 6px;
  border-radius: 3px;
  background: #f2f5f8;
  color: #687384;
  font-size: 7px;
}

.admin-detail-info > strong,
.admin-detail-description > strong {
  display: block;
  margin-bottom: 8px;
  color: #2d374f;
  font-size: 10px;
}

.admin-detail-info > div {
  padding: 6px 0;
  display: flex;
  justify-content: space-between;
  border-top: 1px solid #eef1f4;
  color: #8a93a0;
  font-size: 8px;
}

.admin-detail-info b {
  color: #38445a;
}

.admin-detail-actions {
  height: 46px;
  padding: 5px 8px;
  display: grid;
  grid-template-columns: 42px 1fr 1fr;
  gap: 5px;
  border-top: 1px solid #e4e8ee;
  background: #fff;
}

.admin-detail-actions span,
.admin-detail-actions button {
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 6px;
  font-size: 8px;
}

.admin-detail-actions span {
  color: #667185;
}

.admin-detail-actions button {
  background: #182442;
  color: #fff;
}

.admin-detail-actions button:last-child {
  background: #e85b20;
}

.taxonomy-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 16px;
}

.taxonomy-brand-panel {
  align-self: start;
}

.taxonomy-brand-list {
  max-height: calc(100vh - 230px);
  padding: 10px;
  overflow-y: auto;
  scrollbar-width: none;
}

.taxonomy-brand-list::-webkit-scrollbar {
  display: none;
}

.taxonomy-brand-item {
  width: 100%;
  min-height: 52px;
  padding: 9px 11px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: var(--ink-700);
  text-align: left;
  cursor: pointer;
}

.taxonomy-brand-item:hover {
  background: var(--surface-soft);
}

.taxonomy-brand-item.is-active {
  border-color: #d9dfe8;
  background: #eef2f8;
}

.taxonomy-brand-item strong,
.taxonomy-brand-item small {
  display: block;
}

.taxonomy-brand-item strong {
  color: var(--ink-900);
  font-size: 12px;
}

.taxonomy-brand-item small {
  margin-top: 3px;
  color: var(--ink-500);
  font-size: 8px;
}

.taxonomy-brand-item b {
  color: var(--gold);
  font-size: 18px;
}

.taxonomy-model-panel .panel-header .primary-button {
  min-height: 34px;
  padding: 0 12px;
  font-size: 10px;
}

.taxonomy-model-table td {
  height: 52px;
}

.product-summary-cover {
  height: 170px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 8px;
  background: #eef1f4;
  color: var(--ink-500);
}

.product-summary-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-summary-cover > span {
  display: grid;
  justify-items: center;
  gap: 7px;
}

.product-summary-copy {
  min-width: 0;
  padding: 3px 0;
}

.product-summary-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.product-summary-top > span {
  color: var(--gold);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.product-summary-top b {
  padding: 4px 8px;
  border-radius: 4px;
  background: var(--navy-900);
  color: #fff;
  font-size: 8px;
}

.product-summary h4 {
  margin: 10px 0 7px;
  color: var(--navy-900);
  font-size: 19px;
  line-height: 1.45;
}

.product-summary p {
  margin: 0;
  color: var(--ink-500);
  font-size: 10px;
}

.product-summary-price {
  margin-top: 16px;
  color: #dc5e28;
  font-family: "Bahnschrift", "Microsoft YaHei UI", sans-serif;
  font-size: 26px;
  font-weight: 700;
}

.product-summary-price small {
  margin-left: 9px;
  color: var(--teal);
  font-family: inherit;
  font-size: 9px;
  font-weight: 600;
}

.product-summary-tags {
  margin-top: 13px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.product-summary-tags span {
  padding: 4px 7px;
  border-radius: 4px;
  background: var(--gold-soft);
  color: #745a2d;
  font-size: 8px;
}

.product-publish-checklist {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.product-publish-checklist > div {
  min-height: 54px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid #ecd8d4;
  border-radius: 8px;
  background: #fff8f7;
}

.product-publish-checklist > div.is-ready {
  border-color: #cfe6de;
  background: #f4fbf8;
}

.product-publish-checklist i {
  width: 22px;
  height: 22px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--danger-soft);
  color: var(--danger);
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
}

.product-publish-checklist .is-ready i {
  background: var(--teal-soft);
  color: var(--teal);
}

.product-publish-checklist strong,
.product-publish-checklist small {
  display: block;
}

.product-publish-checklist strong {
  font-size: 10px;
}

.product-publish-checklist small {
  margin-top: 3px;
  color: var(--ink-500);
  font-size: 8px;
}

.product-publish-notice {
  margin-top: 14px;
  padding: 14px 16px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border-radius: 8px;
  background: var(--navy-900);
  color: #fff;
}

.product-publish-notice svg {
  color: var(--gold);
  flex: none;
}

.product-publish-notice strong,
.product-publish-notice span {
  display: block;
}

.product-publish-notice strong {
  font-size: 10px;
}

.product-publish-notice span {
  margin-top: 4px;
  color: rgb(255 255 255 / 58%);
  font-size: 8px;
  line-height: 1.55;
}

.product-footer-spacer {
  flex: 1;
}

.product-publish-button {
  background: linear-gradient(135deg, #182442, #0d152b);
  color: #fff;
  box-shadow: 0 7px 18px rgb(13 21 43 / 16%);
}

.detail-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.detail-line {
  min-height: 42px;
  padding: 9px 0;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid #edf0f3;
  font-size: 11px;
}

.detail-line span {
  color: var(--ink-500);
}

.detail-line strong {
  max-width: 64%;
  text-align: right;
  font-weight: 700;
}

.upload-field {
  display: flex;
  align-items: center;
  gap: 12px;
}

.upload-preview {
  width: 82px;
  height: 82px;
  border: 1px dashed var(--line-strong);
  border-radius: 7px;
  object-fit: cover;
  background: var(--surface-soft);
}

.upload-actions {
  display: grid;
  gap: 7px;
}

.upload-actions small {
  color: var(--ink-500);
  font-size: 9px;
}

.json-editor {
  min-height: 220px;
  font-family: Consolas, "Courier New", monospace;
  font-size: 11px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 34px;
  z-index: 100;
  min-width: 180px;
  max-width: 80vw;
  padding: 11px 16px;
  border-radius: 6px;
  background: var(--navy-900);
  color: #fff;
  box-shadow: 0 12px 34px rgb(17 26 51 / 22%);
  font-size: 12px;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.toast.error {
  background: #742e2e;
}

.quick-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.quick-filter {
  min-height: 34px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: #fff;
  color: var(--ink-700);
  font-size: 11px;
  cursor: pointer;
}

.quick-filter.active {
  border-color: var(--navy-800);
  background: var(--navy-800);
  color: #fff;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.42fr) minmax(0, 1fr);
  gap: 16px;
}

.list-panel {
  padding: 8px;
}

.list-row {
  width: 100%;
  min-height: 58px;
  padding: 10px 11px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.list-row:hover {
  background: var(--surface-soft);
}

.list-row.active {
  background: #eef2f7;
}

.list-row-copy {
  min-width: 0;
  flex: 1;
}

.list-row-copy strong {
  display: block;
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.list-row-copy span {
  display: block;
  margin-top: 4px;
  color: var(--ink-500);
  font-size: 9px;
}

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

.overview-strip div {
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-soft);
}

.overview-strip span {
  display: block;
  color: var(--ink-500);
  font-size: 9px;
}

.overview-strip strong {
  display: block;
  margin-top: 5px;
  font-size: 17px;
}

.modal-note {
  padding: 11px 13px;
  border-left: 2px solid var(--gold);
  background: #fbf8f1;
  color: var(--ink-700);
  font-size: 11px;
  line-height: 1.7;
}

@media (max-width: 1180px) {
  :root {
    --sidebar-width: 210px;
  }

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

  .dashboard-grid,
  .bottom-grid {
    grid-template-columns: 1fr;
  }

  .global-search {
    width: 220px;
  }
}

@media (max-width: 860px) {
  .login-screen {
    grid-template-columns: 1fr;
  }

  .login-brand-panel {
    min-height: 300px;
    padding: 30px;
  }

  .login-statement {
    padding: 28px 0 0;
  }

  .login-statement h1 {
    font-size: 44px;
  }

  .login-facts {
    display: none;
  }

  .login-form-panel {
    padding: 28px 20px;
  }

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

  .sidebar {
    transform: translateX(-104%);
    transition: transform 200ms ease;
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .drawer.drawer-wide {
    width: min(760px, 96vw);
  }

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

  .product-wizard-rail {
    padding: 18px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .product-workflow-intro p,
  .product-rail-note,
  .product-step small {
    display: none;
  }

  .product-step-list {
    margin-top: 14px;
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .product-step {
    min-height: 45px;
    padding: 7px;
    align-items: center;
  }

  .product-step > b {
    width: 23px;
    height: 23px;
  }

  .product-step strong {
    font-size: 9px;
  }

  .product-wizard-main {
    padding: 24px 24px 36px;
  }

  .product-status-options {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

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

  .taxonomy-brand-list {
    max-height: 260px;
  }

  .workspace {
    grid-column: 1;
  }

  .sidebar-toggle {
    display: inline-grid;
  }

  .global-search,
  .breadcrumb {
    display: none;
  }

  .page-viewport {
    padding: 18px;
  }

  .page-head {
    align-items: flex-start;
    flex-direction: column;
  }

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

@media (max-width: 560px) {
  .metric-grid,
  .overview-strip {
    grid-template-columns: 1fr;
  }

  .topbar {
    padding: 0 12px;
  }

  .page-viewport {
    padding: 12px;
  }

  .page-head h1 {
    font-size: 23px;
  }

  .topbar-actions > .icon-button {
    display: none;
  }

  .admin-menu > span:nth-child(2),
  .admin-menu > svg {
    display: none;
  }

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

  .form-field {
    grid-column: 1 !important;
  }

  .drawer.drawer-wide {
    width: 100vw;
  }

  .product-step-list {
    display: flex;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .product-step-list::-webkit-scrollbar {
    display: none;
  }

  .product-step {
    min-width: 112px;
  }

  .product-wizard-main {
    padding: 20px 16px 32px;
  }

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

  .product-switch-grid,
  .product-media-layout,
  .product-summary,
  .product-publish-checklist {
    grid-template-columns: 1fr;
  }

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

  .product-cover-editor {
    align-items: center;
  }

  .product-gallery-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .drawer-footer {
    flex-wrap: wrap;
  }

  .product-footer-spacer {
    display: none;
  }

  .donut-layout {
    flex-direction: column;
  }
}

.settings-sync-state {
  min-height: 36px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid #d7e8df;
  border-radius: 6px;
  background: #f3faf6;
  color: #36745b;
  font-size: 11px;
  font-weight: 700;
}

.settings-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 14px;
}

.settings-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 10px 30px rgb(20 31 54 / 4%);
}

.settings-card.store-card {
  grid-column: 1 / -1;
}

.settings-card-head {
  min-height: 76px;
  padding: 17px 19px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
}

.settings-card-title {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.settings-card-title h2 {
  margin: 0;
  font-size: 15px;
}

.settings-card-title p {
  margin: 4px 0 0;
  color: var(--ink-500);
  font-size: 10px;
}

.settings-card-icon {
  width: 38px;
  height: 38px;
  flex: none;
  display: grid;
  place-items: center;
  border: 1px solid #dfe4e7;
  border-radius: 6px;
  background: #f6f7f8;
  color: var(--navy-700);
}

.settings-brand-preview {
  min-height: 148px;
  padding: 24px 20px;
  display: flex;
  align-items: center;
  gap: 17px;
  background:
    linear-gradient(110deg, #fafbfb, #f5f7f7),
    repeating-linear-gradient(0deg, transparent 0 27px, rgb(20 31 54 / 2%) 28px);
}

.settings-brand-logo {
  width: 72px;
  height: 72px;
  flex: none;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid #e1e5e7;
  border-radius: 8px;
  background: #ffffff;
}

.settings-brand-logo img,
.settings-qr-preview img,
.setting-media-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.settings-brand-preview strong {
  display: block;
  color: var(--ink-900);
  font-size: 20px;
  line-height: 1.25;
}

.settings-brand-preview span:not(.settings-brand-logo) {
  display: block;
  margin-top: 7px;
  color: var(--ink-500);
  font-size: 11px;
  line-height: 1.5;
}

.settings-service-preview {
  min-height: 148px;
  padding: 18px 20px;
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  align-items: center;
  gap: 17px;
}

.settings-qr-preview {
  width: 104px;
  height: 108px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid #e3e7e7;
  border-radius: 6px;
  background: #f7f9f8;
}

.settings-service-details {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.settings-service-details > span {
  display: grid;
  grid-template-columns: 18px 58px minmax(0, 1fr);
  align-items: center;
  gap: 5px;
  color: var(--ink-500);
}

.settings-service-details strong {
  color: var(--ink-500);
  font-size: 9px;
  font-weight: 600;
}

.settings-service-details b {
  color: var(--ink-800);
  font-size: 11px;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.settings-store-preview {
  min-height: 126px;
  padding: 22px 20px;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(300px, 0.7fr);
  gap: 28px;
}

.settings-store-main {
  min-width: 0;
}

.settings-store-eyebrow {
  display: block;
  margin-bottom: 8px;
  color: var(--gold);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.settings-store-main strong {
  display: block;
  font-size: 18px;
}

.settings-store-main > span:last-child {
  display: block;
  margin-top: 9px;
  color: var(--ink-500);
  font-size: 11px;
  line-height: 1.65;
}

.settings-store-meta {
  display: grid;
  gap: 10px;
  align-content: center;
}

.settings-store-meta > div {
  padding-bottom: 9px;
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  gap: 8px;
  border-bottom: 1px solid var(--line);
}

.settings-store-meta > div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.settings-store-meta span {
  color: var(--ink-500);
  font-size: 9px;
}

.settings-store-meta b {
  min-width: 0;
  color: var(--ink-800);
  font-size: 10px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.settings-card-foot {
  min-height: 42px;
  padding: 0 19px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-top: 1px solid var(--line);
  background: var(--surface-soft);
  color: var(--ink-500);
  font-size: 9px;
}

.settings-card-foot time {
  flex: none;
}

.setting-media-editor {
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-soft);
}

.setting-media-preview {
  width: 86px;
  height: 86px;
  flex: none;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid #dde3e3;
  border-radius: 6px;
  background: #ffffff;
  color: var(--ink-400);
}

.qr-editor .setting-media-preview {
  width: 108px;
  height: 122px;
}

.setting-media-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.setting-media-copy strong {
  font-size: 13px;
}

.setting-media-copy span {
  max-width: 44ch;
  color: var(--ink-500);
  font-size: 10px;
  line-height: 1.6;
}

.setting-media-copy .secondary-button {
  margin-top: 5px;
}

.setting-fields {
  margin-top: 20px;
}

.setting-time-range {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 28px minmax(0, 1fr);
  align-items: center;
}

.setting-time-range i {
  color: var(--ink-500);
  font-size: 10px;
  font-style: normal;
  text-align: center;
}

.setting-store-heading {
  margin-bottom: 20px;
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-soft);
}

.setting-store-heading strong,
.setting-store-heading span {
  display: block;
}

.setting-store-heading strong {
  font-size: 13px;
}

.setting-store-heading span {
  margin-top: 4px;
  color: var(--ink-500);
  font-size: 10px;
}

.setting-media-empty {
  display: grid;
  place-items: center;
}

@media (max-width: 960px) {
  .settings-grid {
    grid-template-columns: 1fr;
  }

  .settings-card.store-card {
    grid-column: auto;
  }

  .settings-store-preview {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

@media (max-width: 560px) {
  .settings-brand-preview,
  .setting-media-editor {
    align-items: flex-start;
  }

  .settings-service-preview {
    grid-template-columns: 76px minmax(0, 1fr);
  }

  .settings-qr-preview {
    width: 76px;
    height: 88px;
  }

  .settings-service-details > span {
    grid-template-columns: 18px minmax(0, 1fr);
  }

  .settings-service-details b {
    grid-column: 2;
  }

  .settings-card-foot {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding-top: 10px;
    padding-bottom: 10px;
  }
}

.audit-toolbar {
  margin-bottom: 18px;
  padding: 12px;
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 150px 150px auto;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.audit-toolbar input,
.audit-toolbar select {
  height: 36px;
  background: var(--surface-soft);
}

.audit-count {
  padding: 0 8px;
  color: var(--ink-500);
  font-size: 10px;
  text-align: right;
  white-space: nowrap;
}

.audit-timeline {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.audit-day-head {
  min-height: 34px;
  padding: 0 4px 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.audit-day-head h2 {
  margin: 0;
  color: var(--ink-700);
  font-size: 12px;
}

.audit-day-head span {
  color: var(--ink-500);
  font-size: 9px;
}

.audit-day-list {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 10px 30px rgb(20 31 54 / 4%);
}

.audit-entry {
  min-height: 82px;
  padding: 16px 18px;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  align-items: start;
  gap: 12px;
  border-bottom: 1px solid var(--line);
}

.audit-entry:last-child {
  border-bottom: 0;
}

.audit-entry:hover {
  background: #fbfcfc;
}

.audit-entry-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: #eef2f7;
  color: #53647f;
}

.audit-entry-icon.created {
  background: #edf7f1;
  color: #337454;
}

.audit-entry-icon.deleted {
  background: #fdf0ef;
  color: #a84c43;
}

.audit-entry-icon.reviewed {
  background: #fff7e9;
  color: #9a6a22;
}

.audit-entry-icon.uploaded {
  background: #eef4fb;
  color: #426b96;
}

.audit-entry-copy {
  min-width: 0;
}

.audit-entry-summary {
  min-height: 24px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  color: var(--ink-500);
  font-size: 11px;
  line-height: 1.6;
}

.audit-entry-summary strong {
  color: var(--ink-900);
  font-size: 12px;
}

.audit-entry-summary b {
  max-width: 380px;
  color: var(--ink-800);
  font-size: 11px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.audit-verb {
  padding: 2px 6px;
  border-radius: 4px;
  background: #f0f2f5;
  color: #53647f;
  font-size: 9px;
  font-weight: 700;
}

.audit-verb.created {
  background: #eaf5ef;
  color: #337454;
}

.audit-verb.deleted {
  background: #fcebea;
  color: #a84c43;
}

.audit-verb.reviewed {
  background: #fff3df;
  color: #91611d;
}

.audit-detail-tags {
  margin-top: 8px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.audit-detail-tags > span {
  min-height: 24px;
  padding: 0 8px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid #e4e8ea;
  border-radius: 4px;
  background: #fafbfb;
  color: var(--ink-600);
  font-size: 9px;
}

.audit-detail-tags b {
  color: var(--ink-500);
  font-weight: 600;
}

.audit-entry-meta {
  min-width: 118px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  text-align: right;
}

.audit-entry-meta time {
  color: var(--ink-800);
  font-size: 11px;
  font-weight: 700;
}

.audit-entry-meta span {
  max-width: 150px;
  color: var(--ink-400);
  font-size: 9px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.audit-empty {
  min-height: 260px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px dashed var(--line-strong);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink-500);
}

.audit-empty > span {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #f1f4f5;
}

.audit-empty strong {
  color: var(--ink-800);
  font-size: 13px;
}

.audit-empty p {
  margin: 0;
  font-size: 10px;
}

@media (max-width: 860px) {
  .audit-toolbar {
    grid-template-columns: 1fr 1fr;
  }

  .audit-toolbar input {
    grid-column: 1 / -1;
  }

  .audit-count {
    grid-column: 1 / -1;
    text-align: left;
  }
}

@media (max-width: 560px) {
  .audit-toolbar {
    grid-template-columns: 1fr;
  }

  .audit-toolbar input,
  .audit-count {
    grid-column: auto;
  }

  .audit-entry {
    grid-template-columns: 34px minmax(0, 1fr);
    padding: 14px;
  }

  .audit-entry-meta {
    grid-column: 2;
    align-items: flex-start;
    flex-direction: row;
    gap: 10px;
    text-align: left;
  }
}

.product-wizard {
  --product-control-border: #dce2e8;
  --product-control-bg: #fbfcfd;
}

.product-wizard input:not([type="range"]):not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="hidden"]),
.product-wizard textarea {
  min-height: 44px;
  border-color: var(--product-control-border);
  border-radius: 9px;
  background: var(--product-control-bg);
  color: var(--ink-900);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 85%);
}

.product-wizard input:not([type="range"]):not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="hidden"]):focus,
.product-wizard textarea:focus {
  border-color: #7d90ad;
  background: #fff;
  box-shadow: 0 0 0 3px rgb(57 74 114 / 8%);
}

.product-wizard input[type="number"] {
  appearance: textfield;
}

.product-wizard input[type="number"]::-webkit-inner-spin-button,
.product-wizard input[type="number"]::-webkit-outer-spin-button {
  margin: 0;
  appearance: none;
}

.product-form-intro {
  margin-bottom: 20px;
  padding: 14px 16px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  border: 1px solid #e1e6ea;
  border-radius: 10px;
  background:
    linear-gradient(120deg, rgb(35 61 59 / 6%), transparent 48%),
    #f8faf9;
}

.product-form-intro-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #233d3b;
  color: #fff;
}

.product-form-intro strong,
.product-form-intro span {
  display: block;
}

.product-form-intro strong {
  color: var(--ink-900);
  font-size: 12px;
}

.product-form-intro span {
  margin-top: 4px;
  color: var(--ink-500);
  font-size: 9px;
  line-height: 1.55;
}

.product-form-intro button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--navy-700);
  font-size: 9px;
  font-weight: 700;
  cursor: pointer;
}

.product-identity-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.product-identity-field {
  min-width: 0;
  position: relative;
}

.product-surface-label {
  display: block;
  margin-bottom: 8px;
  color: var(--ink-700);
  font-size: 11px;
  font-weight: 700;
}

.product-surface-label b {
  color: #b6443a;
  font-weight: 700;
}

.brand-picker {
  position: relative;
}

.identity-select-trigger {
  width: 100%;
  min-height: 58px;
  padding: 8px 12px;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--product-control-border);
  border-radius: 9px;
  background: var(--product-control-bg);
  color: var(--ink-500);
  text-align: left;
  cursor: pointer;
}

.identity-select-trigger:hover {
  border-color: #aebbc9;
  background: #fff;
}

.identity-select-trigger.has-value {
  border-color: #c7d1da;
  background: #fff;
}

.brand-picker-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #edf1f2;
  color: var(--navy-800);
  font-size: 14px;
  font-weight: 800;
}

.brand-picker-mark img,
.brand-option-mark img {
  width: 21px;
  height: 21px;
  display: block;
  object-fit: contain;
}

.brand-picker-mark > span,
.brand-option-mark > span {
  display: grid;
  place-items: center;
}

.identity-select-trigger > span:nth-child(2) {
  min-width: 0;
}

.identity-select-trigger small,
.identity-select-trigger strong {
  display: block;
}

.identity-select-trigger small {
  color: var(--ink-400);
  font-size: 8px;
}

.identity-select-trigger strong {
  margin-top: 3px;
  color: var(--ink-900);
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.identity-picker-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  left: 0;
  z-index: 55;
  padding: 7px;
  border: 1px solid #cfd6df;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 20px 48px rgb(17 26 51 / 18%);
}

.identity-picker-search {
  position: relative;
  margin-bottom: 6px;
}

.identity-picker-search svg {
  position: absolute;
  top: 50%;
  left: 11px;
  z-index: 1;
  color: var(--ink-400);
  transform: translateY(-50%);
}

.identity-picker-search input {
  height: 38px;
  padding-left: 34px;
}

.identity-picker-options {
  max-height: 280px;
  overflow-y: auto;
}

.identity-picker-option {
  width: 100%;
  min-height: 48px;
  padding: 7px 9px;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 9px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--ink-700);
  text-align: left;
  cursor: pointer;
}

.identity-picker-option:hover,
.identity-picker-option.is-selected {
  background: #f1f4f3;
}

.brand-option-mark {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: #e6eceb;
  color: #294b45;
  font-size: 11px;
  font-weight: 800;
}

.identity-picker-option strong,
.identity-picker-option small {
  display: block;
}

.identity-picker-option strong {
  color: var(--ink-900);
  font-size: 11px;
}

.identity-picker-option small {
  margin-top: 3px;
  color: var(--ink-400);
  font-size: 8px;
}

.identity-picker-option i {
  color: #3e7b63;
  opacity: 0;
}

.identity-picker-option.is-selected i {
  opacity: 1;
}

.identity-picker-empty {
  padding: 22px 12px;
  color: var(--ink-500);
  font-size: 10px;
  text-align: center;
}

.product-model-combobox > svg {
  position: absolute;
  top: 50%;
  left: 13px;
  z-index: 1;
  color: var(--ink-400);
  transform: translateY(-50%);
}

.product-model-combobox input {
  height: 58px;
  padding-right: 48px;
  padding-left: 38px;
  font-size: 12px;
}

.product-model-combobox .model-combobox-toggle {
  top: 8px;
  right: 7px;
  width: 36px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 7px;
  background: #f0f3f5;
}

.product-model-combobox .model-options-menu {
  top: calc(100% + 6px);
  border-radius: 10px;
  box-shadow: 0 20px 48px rgb(17 26 51 / 18%);
}

.product-device-field {
  margin-bottom: 18px !important;
}

.product-device-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.product-device-card {
  min-height: 68px;
  padding: 11px 12px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--product-control-border);
  border-radius: 9px;
  background: #fff;
  color: var(--ink-500);
  text-align: left;
  cursor: pointer;
}

.product-device-card:hover {
  border-color: #aebbc9;
}

.product-device-card.is-selected {
  border-color: #294b45;
  background: #f3f8f6;
  box-shadow: inset 0 0 0 1px #294b45;
}

.product-device-icon {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: #eef1f4;
  color: var(--navy-700);
}

.product-device-card.is-selected .product-device-icon {
  background: #294b45;
  color: #fff;
}

.product-device-card strong,
.product-device-card small {
  display: block;
}

.product-device-card strong {
  color: var(--ink-900);
  font-size: 11px;
}

.product-device-card small {
  margin-top: 3px;
  color: var(--ink-500);
  font-size: 8px;
}

.product-device-card i {
  color: #3e7b63;
  opacity: 0;
}

.product-device-card.is-selected i {
  opacity: 1;
}

.product-title-block {
  margin-bottom: 16px;
}

.product-title-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.product-title-mode {
  padding: 3px 7px;
  border-radius: 999px;
  background: #f1f3f5;
  color: var(--ink-500);
  font-size: 8px;
  font-weight: 700;
}

.product-title-mode.is-auto {
  background: #eaf4ef;
  color: #39735b;
}

.product-title-editor {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.product-title-editor input {
  height: 48px;
  border-color: var(--product-control-border);
  border-radius: 9px;
  background: #fff;
  font-size: 13px;
  font-weight: 600;
}

.product-title-editor button {
  min-width: 104px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid var(--product-control-border);
  border-radius: 9px;
  background: #f5f7f8;
  color: var(--navy-700);
  font-size: 9px;
  font-weight: 700;
  cursor: pointer;
}

.product-title-editor button:hover {
  border-color: #adbbc7;
  background: #fff;
}

.product-title-meta {
  margin-top: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--ink-400);
  font-size: 8px;
}

.product-identity-note {
  margin-top: 2px;
}

.product-color-editor {
  min-width: 0;
}

.product-color-options {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.product-color-options button {
  min-height: 29px;
  padding: 0 9px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #e0e5e8;
  border-radius: 999px;
  background: #fff;
  color: var(--ink-600);
  font-size: 8px;
  cursor: pointer;
}

.product-color-options button.is-selected {
  border-color: #294b45;
  background: #f3f8f6;
  color: #294b45;
}

.product-color-options i {
  width: 11px;
  height: 11px;
  display: block;
  border: 1px solid rgb(17 26 51 / 14%);
  border-radius: 50%;
  background: var(--swatch);
}

.product-compact-choices {
  gap: 6px;
}

.product-compact-choices .product-choice {
  min-height: 31px;
  padding: 6px 10px;
  border-radius: 7px;
  font-size: 8px;
  line-height: 1.35;
  text-align: left;
}

.product-status-card {
  position: relative;
  padding-right: 30px;
}

.product-status-card > input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.product-status-card::after {
  position: absolute;
  top: 12px;
  right: 11px;
  width: 14px;
  height: 14px;
  display: grid;
  place-items: center;
  border: 1px solid #cbd3dc;
  border-radius: 50%;
  color: transparent;
  content: "✓";
  font-size: 8px;
}

.product-status-card:has(input:checked)::after {
  border-color: #294b45;
  background: #294b45;
  color: #fff;
}

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

.product-lifecycle-card {
  min-width: 0;
  min-height: 86px;
  padding: 11px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  cursor: pointer;
}

.product-lifecycle-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.product-lifecycle-card > i {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #f0f3f5;
  color: var(--ink-500);
  font-size: 8px;
  font-style: normal;
  font-weight: 800;
}

.product-lifecycle-card strong,
.product-lifecycle-card small {
  display: block;
}

.product-lifecycle-card strong {
  color: var(--ink-900);
  font-size: 10px;
}

.product-lifecycle-card small {
  margin-top: 4px;
  color: var(--ink-500);
  font-size: 7px;
  line-height: 1.45;
}

.product-lifecycle-card:has(input:checked) {
  border-color: #294b45;
  background: #f3f8f6;
  box-shadow: inset 0 0 0 1px #294b45;
}

.product-lifecycle-card:has(input:checked) > i {
  background: #294b45;
  color: #fff;
}

.product-lifecycle-hint {
  margin-top: 9px;
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--ink-500);
  font-size: 8px;
  line-height: 1.5;
}

.product-lifecycle-hint svg {
  flex: none;
  color: #4c7665;
}

@media (max-width: 860px) {
  .product-identity-grid {
    grid-template-columns: 1fr;
  }

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

  .product-lifecycle-options {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .product-form-intro {
    grid-template-columns: 36px minmax(0, 1fr);
  }

  .product-form-intro button {
    grid-column: 1 / -1;
    justify-self: start;
  }

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

  .product-title-editor button {
    min-height: 38px;
  }

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

  .product-lifecycle-card {
    min-height: 68px;
    flex-direction: row;
    align-items: center;
  }
}

.product-work-section {
  margin: 0;
  padding: 0;
  overflow: visible;
  border: 0;
  border-top: 1px solid #e6eaed;
  border-radius: 0;
  background: transparent;
}

.product-work-section-head {
  min-height: 46px;
  padding: 11px 0 9px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  border-bottom: 0;
}

.product-work-section-head > span {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #eef2f1;
  color: #315f4d;
  font-size: 8px;
  font-weight: 800;
}

.product-work-section-head strong,
.product-work-section-head small {
  display: block;
}

.product-work-section-head strong {
  color: var(--ink-900);
  font-size: 13px;
}

.product-work-section-head small {
  margin-top: 4px;
  color: var(--ink-500);
  font-size: 9px;
}

.product-work-section-head > button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--navy-700);
  font-size: 9px;
  font-weight: 700;
  cursor: pointer;
}

.product-work-section-body {
  padding: 12px 0 20px;
}

.product-work-section-body > .form-grid:last-child {
  margin-bottom: -14px;
}

.product-work-section .product-identity-grid {
  margin-bottom: 14px;
}

.product-work-section .product-title-block,
.product-work-section .product-device-field {
  margin-bottom: 0 !important;
}

.product-price-primary input {
  height: 46px !important;
  color: var(--navy-900) !important;
  font-family: "Bahnschrift", "Microsoft YaHei UI", sans-serif;
  font-size: 18px !important;
  font-weight: 700;
}

.product-price-primary .money-input i {
  font-size: 16px;
  font-weight: 700;
}

.product-price-reference input {
  height: 42px !important;
  color: var(--ink-500) !important;
  font-size: 14px !important;
}

.lifecycle-section .product-lifecycle-options {
  padding: 4px;
  gap: 5px;
  border-radius: 10px;
  background: #f2f4f5;
}

.lifecycle-section .product-lifecycle-card {
  min-height: 52px;
  padding: 8px;
  flex-direction: row;
  align-items: center;
  gap: 7px;
  border-color: transparent;
  border-radius: 7px;
  background: transparent;
}

.lifecycle-section .product-lifecycle-card small {
  display: none;
}

.lifecycle-section .product-lifecycle-card > i {
  width: 21px;
  height: 21px;
}

.lifecycle-section .product-lifecycle-card strong {
  font-size: 9px;
}

.lifecycle-section .product-lifecycle-card:has(input:checked) {
  border-color: #b9c7c1;
  background: #fff;
  box-shadow: 0 3px 10px rgb(24 48 39 / 8%);
}

.product-preview-rail {
  position: sticky;
  top: 0;
  align-self: start;
  min-width: 0;
  padding: 22px 18px 26px;
  border-left: 1px solid #e2e7ea;
  background: #f7f8f9;
}

.product-preview-rail-head {
  margin-bottom: 12px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
}

.product-preview-rail-head span,
.product-preview-rail-head strong {
  display: block;
}

.product-preview-rail-head span {
  color: var(--gold);
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.product-preview-rail-head strong {
  margin-top: 5px;
  color: var(--ink-900);
  font-size: 12px;
}

.product-preview-rail-head > b {
  color: var(--ink-500);
  font-family: "Bahnschrift", sans-serif;
  font-size: 10px;
}

.product-preview-rail .product-summary {
  padding: 10px;
  grid-template-columns: 1fr;
  gap: 12px;
  border: 1px solid #e1e5e8;
  border-radius: 6px;
  background: #fff;
  box-shadow: none;
}

.product-preview-rail .product-summary-cover {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  border-radius: 7px;
}

.product-preview-rail .product-summary h4 {
  font-size: 12px;
  line-height: 1.5;
}

.product-preview-rail .product-summary p {
  font-size: 9px;
}

.product-preview-rail-note {
  margin-top: 13px;
  padding: 11px;
  display: flex;
  align-items: flex-start;
  gap: 7px;
  border: 1px solid #dce2e7;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.64);
  color: var(--ink-500);
  font-size: 8px;
  line-height: 1.55;
}

.product-preview-rail-note svg {
  flex: none;
  color: #3f735d;
}

@media (max-width: 1180px) {
  .product-wizard-layout {
    grid-template-columns: 214px minmax(0, 1fr);
  }

  .product-preview-rail {
    display: none;
  }
}

.product-wizard-rail {
  padding: 22px 14px;
}

.product-workflow-intro h3 {
  margin: 0;
  font-size: 15px;
}

.product-workflow-intro p {
  display: none;
}

.product-step-list {
  margin-top: 14px;
  gap: 3px;
}

.product-step {
  min-height: 49px;
  padding: 7px 9px;
}

.product-step > b {
  width: 24px;
  height: 24px;
}

.product-step strong {
  font-size: 10px;
}

.product-step small {
  font-size: 7px;
}

.product-panel-head {
  margin-bottom: 12px;
  padding-bottom: 13px;
}

.product-panel-head > span {
  color: var(--ink-500);
  font-size: 8px;
  letter-spacing: 0;
}

.product-panel-head h3 {
  margin: 5px 0 4px;
  font-size: 19px;
}

.product-panel-head p {
  font-size: 10px;
}

.product-wizard input:not([type="range"]):not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="hidden"]),
.product-wizard textarea {
  min-height: 40px;
  border-radius: 6px;
}

.identity-select-trigger,
.product-model-combobox input {
  min-height: 50px;
  height: 50px;
  border-radius: 6px;
}

.product-model-combobox .model-combobox-toggle {
  top: 6px;
  height: 38px;
  border-radius: 5px;
}

.product-device-card {
  min-height: 58px;
  border-radius: 6px;
}

.product-title-editor input {
  height: 42px;
  border-radius: 6px;
}

.product-title-editor button {
  border-radius: 6px;
}

.product-work-section-body .form-grid {
  gap: 0 14px;
}

.product-work-section-body .form-field {
  margin-bottom: 13px;
}

.product-work-section-body .form-field > span {
  margin-bottom: 6px;
  font-size: 10px;
}

.product-preview-rail-head span {
  color: var(--ink-500);
  font-size: 8px;
  letter-spacing: 0;
}

.inquiry-filters {
  flex-wrap: wrap;
}

.toolbar-result {
  color: var(--ink-500);
  font-size: 10px;
  white-space: nowrap;
}

.inquiry-panel {
  margin-top: 12px;
}

.inquiry-panel .toolbar {
  border-bottom: 1px solid var(--line);
}

.inquiry-list {
  display: flex;
  flex-direction: column;
}

.inquiry-row {
  min-height: 86px;
  padding: 14px 16px;
  display: grid;
  grid-template-columns: minmax(150px, 0.85fr) minmax(260px, 1.4fr) minmax(130px, 0.65fr) 78px 82px;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid var(--line);
}

.inquiry-row:last-child {
  border-bottom: 0;
}

.inquiry-row:hover {
  background: #fbfcfc;
}

.inquiry-customer,
.inquiry-product {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.inquiry-avatar {
  width: 34px;
  height: 34px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #e9eeef;
  color: #315f4d;
  font-size: 11px;
  font-weight: 800;
}

.inquiry-avatar.large {
  width: 48px;
  height: 48px;
  font-size: 16px;
}

.inquiry-customer strong,
.inquiry-customer small,
.inquiry-product strong,
.inquiry-product small,
.inquiry-activity strong,
.inquiry-activity span {
  display: block;
}

.inquiry-customer strong,
.inquiry-product strong {
  color: var(--ink-900);
  font-size: 11px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.inquiry-customer small,
.inquiry-product small {
  margin-top: 4px;
  color: var(--ink-500);
  font-size: 9px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.inquiry-product img,
.inquiry-product-empty {
  width: 46px;
  height: 52px;
  flex: none;
  border: 1px solid var(--line);
  border-radius: 6px;
  object-fit: cover;
}

.inquiry-product-empty {
  display: grid;
  place-items: center;
  background: var(--surface-soft);
  color: var(--ink-400);
}

.inquiry-product > div {
  min-width: 0;
}

.inquiry-activity strong {
  color: var(--ink-800);
  font-size: 10px;
}

.inquiry-activity span {
  margin-top: 4px;
  color: var(--ink-500);
  font-size: 8px;
}

.inquiry-empty {
  min-height: 230px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--ink-500);
}

.inquiry-empty > span {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #f0f3f4;
}

.inquiry-empty strong {
  color: var(--ink-800);
  font-size: 12px;
}

.inquiry-empty span:last-child {
  font-size: 9px;
}

.inquiry-detail-head {
  margin-bottom: 14px;
  padding: 15px;
  display: flex;
  align-items: center;
  gap: 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.inquiry-detail-head > div:nth-child(2) {
  min-width: 0;
  flex: 1;
}

.inquiry-detail-head strong,
.inquiry-detail-head span {
  display: block;
}

.inquiry-detail-head strong {
  color: var(--ink-900);
  font-size: 13px;
}

.inquiry-detail-head span {
  margin-top: 4px;
  color: var(--ink-500);
  font-size: 9px;
}

.inquiry-detail-count {
  flex: none;
  text-align: right;
}

.inquiry-detail-count strong {
  color: var(--navy-900);
  font-size: 22px;
}

.inquiry-detail-product {
  margin-bottom: 18px;
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.inquiry-detail-product > img,
.inquiry-detail-product > span {
  width: 62px;
  height: 72px;
  flex: none;
  border-radius: 6px;
  object-fit: cover;
}

.inquiry-detail-product > span {
  display: grid;
  place-items: center;
  background: var(--surface-soft);
  color: var(--ink-400);
}

.inquiry-detail-product > div {
  min-width: 0;
}

.inquiry-detail-product strong,
.inquiry-detail-product small {
  display: block;
}

.inquiry-detail-product strong {
  color: var(--ink-900);
  font-size: 12px;
}

.inquiry-detail-product small {
  margin-top: 5px;
  color: var(--ink-500);
  font-size: 9px;
}

@media (max-width: 1080px) {
  .inquiry-row {
    grid-template-columns: minmax(140px, 0.8fr) minmax(220px, 1.2fr) 105px 72px 72px;
    gap: 10px;
  }
}

@media (max-width: 860px) {
  .inquiry-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 9px 12px;
  }

  .inquiry-product {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .inquiry-activity {
    grid-column: 1;
    grid-row: 3;
  }

  .inquiry-state {
    grid-column: 2;
    grid-row: 1;
  }

  .inquiry-row > .text-action {
    grid-column: 2;
    grid-row: 3;
  }
}

/* Product publishing workspace
   The editor is intentionally a quiet two-pane modal: one task at a time,
   no persistent preview rail, and no decorative dashboard cards. */
.drawer.drawer-product-modal {
  top: 50%;
  right: auto;
  bottom: auto;
  left: 50%;
  width: min(980px, calc(100vw - 72px));
  height: min(820px, calc(100vh - 56px));
  border-color: #d8dde2;
  border-radius: 10px;
  box-shadow: 0 30px 80px rgb(10 18 32 / 28%);
  opacity: 0;
  transform: translate(-50%, -47%) scale(0.99);
}

.drawer.drawer-product-modal.open {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.drawer-backdrop {
  background: rgb(12 19 33 / 42%);
  backdrop-filter: blur(1.5px);
}

.drawer-product-modal .drawer-header {
  min-height: 66px;
  padding: 13px 22px;
  border-radius: 10px 10px 0 0;
  background: #fff;
}

.drawer-product-modal .drawer-header span {
  color: #9a753d;
  font-size: 8px;
  letter-spacing: 0.08em;
}

.drawer-product-modal .drawer-header h2 {
  margin-top: 4px;
  color: #172033;
  font-size: 18px;
  line-height: 1.25;
}

.drawer-product-modal .drawer-body {
  padding: 0;
  background: #f6f7f8;
}

.drawer-product-modal .drawer-footer {
  min-height: 64px;
  padding: 12px 20px;
  border-radius: 0 0 10px 10px;
  background: #fff;
}

.drawer-product-modal .drawer-footer > button {
  min-height: 38px;
  border-radius: 6px;
  font-size: 10px;
}

.product-wizard {
  --product-control-border: #d5dce2;
  --product-control-bg: #fff;
  min-height: 100%;
  color: #263244;
}

.product-wizard-layout {
  min-height: 100%;
  display: grid;
  grid-template-columns: 208px minmax(0, 1fr);
}

.product-wizard-rail {
  min-width: 0;
  padding: 22px 14px 18px;
  display: flex;
  flex-direction: column;
  border-right: 1px solid #e2e6e9;
  background: #f9fafb;
}

.product-workflow-intro {
  padding: 0 8px 17px;
  border-bottom: 1px solid #e4e8eb;
}

.product-workflow-intro > span {
  color: #9a753d;
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.product-workflow-intro h3 {
  margin: 7px 0 4px;
  color: #172033;
  font-size: 16px;
}

.product-workflow-intro p {
  display: block;
  margin: 0;
  color: #7a8492;
  font-size: 8px;
  line-height: 1.55;
}

.product-step-list {
  position: relative;
  margin-top: 12px;
  display: grid;
  gap: 2px;
}

.product-step-list::before {
  position: absolute;
  top: 30px;
  bottom: 30px;
  left: 22px;
  width: 1px;
  background: #dfe4e8;
  content: "";
}

.product-step {
  position: relative;
  z-index: 1;
  min-height: 58px;
  padding: 8px 7px;
  align-items: center;
  gap: 9px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
}

.product-step:hover {
  border-color: #e1e5e9;
  background: #fff;
}

.product-step > b {
  width: 29px;
  height: 29px;
  border-color: #d4dae0;
  background: #f9fafb;
  color: #7f8895;
  font-size: 8px;
}

.product-step > span {
  flex: 1;
}

.product-step strong {
  color: #475366;
  font-size: 10px;
  font-weight: 700;
}

.product-step small {
  margin-top: 3px;
  color: #8b94a0;
  font-size: 7px;
  line-height: 1.4;
}

.product-step > i {
  width: 16px;
  flex: none;
  color: #3f735d;
  font-size: 0;
  font-style: normal;
  opacity: 0;
}

.product-step.is-current {
  border-color: #d8dfe3;
  background: #fff;
  box-shadow: 0 2px 7px rgb(18 29 47 / 5%);
}

.product-step.is-current > b {
  border-color: #1e3048;
  background: #1e3048;
  color: #fff;
}

.product-step.is-current strong {
  color: #172033;
}

.product-step.is-complete > b {
  border-color: #c5ddd3;
  background: #edf6f2;
  color: #3f735d;
}

.product-step.is-complete > i {
  opacity: 1;
}

.product-rail-record {
  margin-top: auto;
  padding: 12px 9px 0;
  border-top: 1px solid #e4e8eb;
}

.product-rail-record span,
.product-rail-record strong,
.product-rail-record small {
  display: block;
}

.product-rail-record span {
  color: #8c95a1;
  font-size: 7px;
  font-weight: 700;
}

.product-rail-record strong {
  margin-top: 5px;
  overflow: hidden;
  color: #2a3546;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-rail-record small {
  margin-top: 3px;
  color: #7b6543;
  font-size: 8px;
}

.product-wizard-main {
  min-width: 0;
  padding: 24px 28px 40px;
  background: #fff;
}

.product-panel-head {
  margin-bottom: 0;
  padding: 0 0 18px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid #e6e9ec;
}

.product-panel-head > div {
  min-width: 0;
}

.product-panel-head > div > span {
  color: #98743c;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.product-panel-head h3 {
  margin: 6px 0 5px;
  color: #172033;
  font-size: 20px;
  line-height: 1.25;
}

.product-panel-head p {
  margin: 0;
  color: #747f8e;
  font-size: 9px;
  line-height: 1.5;
}

.product-panel-head > b {
  flex: none;
  margin-top: 3px;
  padding: 4px 8px;
  border: 1px solid #dce1e5;
  border-radius: 4px;
  background: #f8f9fa;
  color: #77808d;
  font-size: 8px;
  font-weight: 700;
}

.product-work-section {
  border-top: 1px solid #e8ebee;
}

.product-panel-head + .product-work-section {
  border-top: 0;
}

.product-work-section-head {
  min-height: 58px;
  padding: 14px 0 10px;
}

.product-work-section-head strong {
  color: #263244;
  font-size: 12px;
}

.product-work-section-head small {
  margin-top: 4px;
  color: #818b98;
  font-size: 8px;
  line-height: 1.45;
}

.product-work-section-head > button {
  min-height: 28px;
  padding: 0 9px;
  border: 1px solid #dce1e5;
  border-radius: 5px;
  background: #fff;
  color: #526071;
  font-size: 8px;
}

.product-work-section-head > button:hover {
  border-color: #bfc8d1;
  color: #1e3048;
}

.product-work-section-body {
  padding: 4px 0 22px;
}

.product-wizard .form-field {
  margin-bottom: 16px;
}

.product-wizard .form-field > span,
.product-surface-label {
  margin-bottom: 7px;
  color: #485567;
  font-size: 9px;
  font-weight: 700;
}

.product-wizard .form-field small {
  margin-top: 5px;
  color: #8a93a0;
  font-size: 8px;
}

.product-wizard input:not([type="range"]):not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="hidden"]),
.product-wizard textarea {
  min-height: 40px;
  border: 1px solid var(--product-control-border);
  border-radius: 6px;
  background: #fff;
  color: #202b3c;
  box-shadow: none;
  font-size: 10px;
}

.product-wizard input::placeholder,
.product-wizard textarea::placeholder {
  color: #a0a8b2;
  font-size: 9px;
}

.product-wizard input:not([type="range"]):not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="hidden"]):focus,
.product-wizard textarea:focus {
  border-color: #73879f;
  box-shadow: 0 0 0 2px rgb(42 63 89 / 7%);
}

.product-identity-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}

.identity-select-trigger,
.product-model-combobox input {
  height: 48px;
  min-height: 48px;
  border-radius: 6px;
}

.identity-select-trigger {
  grid-template-columns: 34px minmax(0, 1fr) 16px;
  gap: 9px;
  padding: 7px 10px;
  background: #fff;
}

.brand-picker-mark {
  width: 32px;
  height: 32px;
  border: 1px solid #e5e8eb;
  border-radius: 5px;
  background: #f7f8f9;
}

.identity-select-trigger small {
  font-size: 7px;
}

.identity-select-trigger strong {
  margin-top: 2px;
  font-size: 11px;
}

.product-model-combobox input {
  padding-right: 44px;
  padding-left: 36px;
  font-size: 11px;
}

.product-model-combobox > svg {
  left: 12px;
}

.product-model-combobox .model-combobox-toggle {
  top: 6px;
  right: 6px;
  width: 34px;
  height: 36px;
  border: 0;
  border-radius: 5px;
  background: #f3f5f6;
}

.model-options-menu,
.identity-picker-menu {
  border-radius: 6px;
  box-shadow: 0 14px 32px rgb(17 26 51 / 14%);
}

.product-device-field {
  margin-bottom: 0 !important;
}

.product-device-options {
  gap: 8px;
}

.product-device-card {
  min-height: 54px;
  padding: 8px 10px;
  grid-template-columns: 30px minmax(0, 1fr) 14px;
  gap: 8px;
  border-radius: 6px;
}

.product-device-icon {
  width: 29px;
  height: 29px;
  border-radius: 5px;
}

.product-device-card strong {
  font-size: 10px;
}

.product-device-card small {
  margin-top: 2px;
  font-size: 7px;
}

.product-device-card.is-selected {
  border-color: #38546a;
  background: #f5f8f8;
  box-shadow: inset 0 0 0 1px #38546a;
}

.product-title-summary {
  min-height: 62px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid #dfe6e2;
  border-radius: 6px;
  background: #f7faf8;
}

.product-title-summary > div {
  min-width: 0;
}

.product-title-summary span,
.product-title-summary strong {
  display: block;
}

.product-title-summary > div > span {
  color: #72907f;
  font-size: 7px;
  font-weight: 700;
}

.product-title-summary strong {
  margin-top: 5px;
  overflow: hidden;
  color: #263244;
  font-size: 11px;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-title-summary .product-title-mode {
  flex: none;
  padding: 4px 7px;
  border-radius: 4px;
  background: #eef1f2;
  color: #747f8c;
  font-size: 7px;
}

.product-title-summary .product-title-mode.is-auto {
  background: #e9f2ed;
  color: #46715d;
}

.product-title-actions {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
}

.product-title-actions > button,
.product-title-manual {
  min-height: 30px;
  border: 1px solid #dce1e5;
  border-radius: 5px;
  background: #fff;
}

.product-title-actions > button {
  padding: 0 9px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #53606f;
  font-size: 8px;
  cursor: pointer;
}

.product-title-manual {
  padding: 0;
}

.product-title-manual summary {
  min-height: 28px;
  padding: 0 9px;
  display: flex;
  align-items: center;
  color: #53606f;
  font-size: 8px;
  cursor: pointer;
  list-style: none;
}

.product-title-manual summary::-webkit-details-marker {
  display: none;
}

.product-title-manual[open] {
  flex: 1 0 100%;
  padding: 8px;
}

.product-title-manual[open] summary {
  min-height: 24px;
  padding: 0;
}

.product-title-manual input {
  width: 100%;
  margin-top: 5px;
}

.product-title-manual > span {
  margin-top: 4px;
  color: #8d96a1;
  font-size: 7px;
  text-align: right;
}

.product-spec-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 20px;
}

.product-spec-field {
  min-width: 0;
}

.product-choice-row {
  gap: 6px;
}

.product-choice,
.product-tag-choice {
  min-height: 31px;
  padding: 0 12px;
  border-radius: 5px;
  border-color: #d9dfe5;
  color: #566375;
  font-size: 8px;
}

.product-choice.is-selected,
.product-tag-choice.is-selected {
  border-color: #263c55;
  background: #263c55;
  color: #fff;
  box-shadow: none;
}

.product-custom-input {
  height: 34px;
  margin-top: 7px;
}

.product-color-options {
  margin-top: 7px;
  gap: 5px;
}

.product-color-options button {
  min-height: 27px;
  padding: 0 8px;
  border-radius: 4px;
  font-size: 7px;
}

.product-check-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(250px, 0.7fr);
  gap: 22px;
}

.product-condition-field,
.battery-field {
  margin-bottom: 0 !important;
}

.battery-control {
  height: 40px;
  border-radius: 6px;
}

.battery-control input[type="range"] {
  accent-color: #263c55;
}

.battery-control output {
  color: #263244;
  font-size: 14px;
}

.product-price-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) 180px;
  align-items: end;
  gap: 14px;
}

.product-price-grid .form-field {
  min-width: 0;
  margin-bottom: 0;
}

.product-price-primary input {
  height: 44px !important;
  color: #b9511f !important;
  font-size: 17px !important;
}

.product-price-reference input {
  height: 40px !important;
  font-size: 12px !important;
}

.product-single-unit-note {
  height: 44px;
  padding: 0 11px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #e1e6e9;
  border-radius: 6px;
  background: #f8f9fa;
  color: #6b7785;
}

.product-single-unit-note svg {
  flex: none;
  color: #507060;
}

.product-single-unit-note strong,
.product-single-unit-note small {
  display: block;
}

.product-single-unit-note strong {
  color: #425063;
  font-size: 8px;
}

.product-single-unit-note small {
  margin-top: 2px;
  color: #8b94a0;
  font-size: 7px;
}

.product-service-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 0 22px;
}

.product-service-grid .form-field:first-child {
  grid-column: 1 / -1;
}

.product-service-grid .form-field:nth-child(2),
.product-service-grid .form-field:nth-child(3) {
  min-width: 0;
}

.product-compact-choices .product-choice {
  min-height: 29px;
  padding: 6px 9px;
  font-size: 7px;
}

.product-media-layout {
  grid-template-columns: 176px minmax(0, 1fr);
  gap: 24px;
}

.product-cover-editor {
  gap: 7px;
}

.product-cover-preview {
  width: 156px;
  height: 156px;
  border: 1px dashed #ccd4dc;
  border-radius: 6px;
  background: #f7f8f9;
  font-size: 9px;
}

.product-upload-title {
  margin-top: 4px;
  color: #354154;
  font-size: 9px;
}

.upload-trigger {
  min-height: 31px;
  padding: 0 11px;
  border-radius: 5px;
  font-size: 8px;
}

.product-cover-editor > small {
  color: #8b94a0;
  font-size: 7px;
}

.product-field-head strong {
  color: #354154;
  font-size: 10px;
}

.product-field-head small {
  color: #858e99;
  font-size: 8px;
}

.product-gallery-list {
  margin-top: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
}

.product-gallery-item,
.product-gallery-empty {
  min-height: 80px;
  border-radius: 5px;
}

.product-gallery-item img {
  height: 80px;
}

.product-gallery-empty {
  font-size: 8px;
}

.advanced-field {
  margin-top: 10px;
  padding: 8px 10px;
  border-radius: 5px;
  background: #fafbfc;
}

.advanced-field summary {
  font-size: 8px;
}

.product-description-field textarea {
  min-height: 120px;
  line-height: 1.65;
}

.product-review-overview {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr);
  gap: 12px;
  margin-top: 18px;
}

.product-summary {
  min-height: 150px;
  padding: 13px;
  grid-template-columns: 108px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  border-color: #e1e5e8;
  border-radius: 7px;
  background: #fafbfc;
}

.product-summary-cover {
  height: 108px;
  border: 1px solid #e4e7ea;
  border-radius: 5px;
  background: #f0f2f4;
}

.product-summary-top > span {
  color: #8b6a37;
  font-size: 7px;
}

.product-summary-top b {
  padding: 3px 6px;
  border-radius: 3px;
  background: #25384f;
  font-size: 7px;
}

.product-summary h4 {
  margin: 7px 0 5px;
  display: -webkit-box;
  overflow: hidden;
  font-size: 12px;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.product-summary p {
  font-size: 8px;
}

.product-summary-price {
  margin-top: 9px;
  font-size: 20px;
}

.product-summary-tags {
  margin-top: 8px;
}

.product-summary-tags span {
  padding: 3px 5px;
  border-radius: 3px;
  font-size: 7px;
}

.product-publish-checklist {
  margin: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.product-publish-checklist > div {
  min-height: 66px;
  padding: 9px;
  border-radius: 6px;
}

.product-publish-checklist strong {
  font-size: 8px;
}

.product-publish-checklist small {
  font-size: 7px;
  line-height: 1.4;
}

.product-live-preview {
  margin-top: 12px;
  padding: 14px;
  border-color: #e1e5e8;
  border-radius: 7px;
  background: #f8f9fa;
}

.product-live-preview-head strong {
  font-size: 11px;
}

.product-live-preview-head small {
  font-size: 8px;
}

.product-live-preview-head > span {
  color: #7d8792;
  font-size: 7px;
  letter-spacing: 0;
}

.product-preview-stage {
  margin-top: 11px;
  grid-template-columns: minmax(0, 0.9fr) minmax(300px, 1.1fr);
  gap: 14px;
}

.product-preview-column > span {
  margin-bottom: 7px;
  font-size: 8px;
}

.admin-product-card-preview {
  max-width: 330px;
  border-radius: 9px;
  border-color: #e7dfd2;
  box-shadow: 0 3px 10px rgb(64 52 38 / 6%);
}

.admin-product-card-copy {
  padding: 11px 12px 12px;
}

.admin-product-card-copy > strong {
  font-size: 13px;
  line-height: 19px;
}

.admin-product-card-copy > span {
  font-size: 9px;
  line-height: 14px;
}

.admin-product-card-price {
  margin-top: 10px;
  font-size: 21px;
}

.admin-product-card-cta {
  height: 30px;
  font-size: 9px;
}

.admin-product-detail-preview {
  width: min(100%, 300px);
  border-width: 5px;
  border-radius: 24px;
}

.admin-detail-gallery {
  height: 155px;
}

.product-work-section:has(.product-tag-options) {
  margin-top: 12px;
}

.product-tag-options {
  gap: 6px;
}

.product-switch-grid {
  margin-top: 12px;
}

.product-switch {
  min-height: 52px;
  padding: 9px 11px;
  border-radius: 6px;
}

.product-switch-track {
  width: 34px;
  height: 19px;
}

.product-switch-track::after {
  width: 13px;
  height: 13px;
}

.product-switch input:checked + .product-switch-track::after {
  transform: translateX(15px);
}

.product-switch strong {
  font-size: 9px;
}

.product-switch small {
  font-size: 7px;
}

.product-lifecycle-options {
  margin-top: 12px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
}

.product-lifecycle-card {
  min-height: 68px;
  padding: 9px;
  gap: 5px;
  border-radius: 6px;
}

.product-lifecycle-card > i {
  width: 20px;
  height: 20px;
  font-size: 7px;
}

.product-lifecycle-card strong {
  font-size: 8px;
}

.product-lifecycle-card small {
  font-size: 6px;
  line-height: 1.35;
}

.product-publish-notice {
  margin-top: 12px;
  padding: 11px 13px;
  border-radius: 6px;
}

.product-publish-notice strong {
  font-size: 9px;
}

.product-publish-notice span {
  font-size: 7px;
}

.product-publish-button {
  background: #1e3048;
  box-shadow: 0 5px 14px rgb(16 28 46 / 14%);
}

@media (max-width: 1080px) {
  .drawer.drawer-product-modal {
    width: calc(100vw - 36px);
  }

  .product-wizard-main {
    padding-right: 22px;
    padding-left: 22px;
  }

  .product-check-grid,
  .product-review-overview {
    grid-template-columns: 1fr;
  }

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

  .product-single-unit-note {
    grid-column: 1 / -1;
  }
}

@media (max-width: 820px) {
  .drawer.drawer-product-modal {
    width: calc(100vw - 20px);
    height: calc(100vh - 20px);
    border-radius: 8px;
  }

  .drawer-product-modal .drawer-header,
  .drawer-product-modal .drawer-footer {
    border-radius: 8px 8px 0 0;
  }

  .drawer-product-modal .drawer-footer {
    border-radius: 0 0 8px 8px;
  }

  .product-wizard-layout {
    grid-template-columns: 168px minmax(0, 1fr);
  }

  .product-wizard-rail {
    padding: 16px 10px;
  }

  .product-workflow-intro {
    padding-right: 5px;
    padding-left: 5px;
  }

  .product-step {
    min-height: 52px;
  }

  .product-step small {
    display: none;
  }

  .product-identity-grid,
  .product-spec-grid,
  .product-service-grid {
    grid-template-columns: 1fr;
  }

  .product-service-grid .form-field:first-child {
    grid-column: auto;
  }

  .product-media-layout {
    grid-template-columns: 150px minmax(0, 1fr);
  }

  .product-cover-preview {
    width: 132px;
    height: 132px;
  }

  .product-gallery-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .admin-product-detail-preview {
    width: min(100%, 290px);
  }
}

@media (max-width: 600px) {
  .drawer.drawer-product-modal {
    width: 100vw;
    height: 100vh;
    border: 0;
    border-radius: 0;
  }

  .drawer-product-modal .drawer-header {
    min-height: 60px;
    padding: 10px 14px;
    border-radius: 0;
  }

  .drawer-product-modal .drawer-footer {
    min-height: 60px;
    padding: 10px 12px;
    border-radius: 0;
  }

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

  .product-wizard-rail {
    padding: 10px 12px;
    border-right: 0;
    border-bottom: 1px solid #e2e6e9;
  }

  .product-workflow-intro,
  .product-rail-record {
    display: none;
  }

  .product-step-list {
    margin: 0;
    display: flex;
    gap: 4px;
    overflow-x: auto;
  }

  .product-step-list::before {
    display: none;
  }

  .product-step {
    min-width: 112px;
    min-height: 40px;
    padding: 6px 7px;
  }

  .product-step > b {
    width: 24px;
    height: 24px;
  }

  .product-step > i,
  .product-step small {
    display: none;
  }

  .product-wizard-main {
    padding: 18px 14px 30px;
  }

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

  .product-identity-grid,
  .product-device-options,
  .product-price-grid,
  .product-review-overview,
  .product-media-layout,
  .product-switch-grid,
  .product-summary,
  .product-publish-checklist {
    grid-template-columns: 1fr;
  }

  .product-single-unit-note {
    grid-column: auto;
  }

  .product-cover-editor {
    align-items: center;
  }

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

  .product-footer-spacer {
    display: none;
  }
}

/* Data editor controls
   Product attributes use editor-specific controls instead of a stack of
   generic input boxes: property rows, grading cards, gauges and pickers. */
.product-property-editor {
  border-top: 1px solid #edf0f2;
}

.product-property-row {
  min-width: 0;
  padding: 15px 0;
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  align-items: start;
  gap: 24px;
  border-bottom: 1px solid #edf0f2;
}

.product-property-row:first-child {
  border-top: 0;
}

.product-property-row:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.product-property-label {
  padding-top: 6px;
}

.product-property-label strong,
.product-property-label small {
  display: block;
}

.product-property-label strong {
  color: #354154;
  font-size: 9px;
  font-weight: 700;
}

.product-property-label strong b {
  color: #b9511f;
}

.product-property-label small {
  margin-top: 5px;
  color: #8b94a0;
  font-size: 7px;
  line-height: 1.45;
}

.product-property-control {
  min-width: 0;
}

.product-capacity-options {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
}

.product-choice {
  min-height: 36px;
  padding: 0 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  border-radius: 5px;
  background: #fff;
  color: #566375;
  font-size: 9px;
}

.product-choice > i {
  display: grid;
  place-items: center;
  color: transparent;
}

.product-choice.is-selected > i {
  color: #fff;
}

.product-inline-input {
  min-height: 35px;
  margin-top: 7px;
  padding-left: 10px;
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid #d8dee4;
  border-radius: 5px;
  background: #fff;
}

.product-inline-input:focus-within {
  border-color: #7b8ca0;
  box-shadow: 0 0 0 2px rgb(42 63 89 / 6%);
}

.product-inline-input > span {
  flex: none;
  padding-right: 9px;
  border-right: 1px solid #e4e8eb;
  color: #8a94a0;
  font-size: 8px;
}

.product-inline-input > input {
  width: 100%;
  min-height: 33px !important;
  padding: 0 10px 0 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.product-color-editor > input {
  height: 38px;
  border-color: #d8dee4;
  background: #fff;
}

.product-color-options button {
  min-height: 29px;
  padding: 0 9px;
  border-color: #dde2e7;
  border-radius: 5px;
}

.product-color-options button.is-selected {
  border-color: #263c55;
  background: #263c55;
  color: #fff;
}

.product-color-options button.is-selected i {
  border-color: rgb(255 255 255 / 45%);
}

.product-grade-options {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 6px;
}

.product-grade-choice {
  position: relative;
  min-width: 0;
  min-height: 56px;
  padding: 9px 8px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  border: 1px solid #d9dfe5;
  border-radius: 5px;
  background: #fff;
  color: #546173;
  text-align: left;
  cursor: pointer;
}

.product-grade-choice:hover {
  border-color: #aeb9c4;
}

.product-grade-choice strong,
.product-grade-choice small {
  display: block;
}

.product-grade-choice strong {
  color: #354154;
  font-size: 10px;
}

.product-grade-choice small {
  overflow: hidden;
  color: #8a94a0;
  font-size: 7px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-grade-choice > i {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 13px;
  height: 13px;
  display: grid;
  place-items: center;
  border: 1px solid #d6dde4;
  border-radius: 50%;
  color: transparent;
}

.product-grade-choice.is-selected {
  border-color: #38546a;
  background: #f4f8f8;
  box-shadow: inset 0 0 0 1px #38546a;
}

.product-grade-choice.is-selected strong {
  color: #1f3449;
}

.product-grade-choice.is-selected > i {
  border-color: #38546a;
  background: #38546a;
  color: #fff;
}

.product-battery-row {
  align-items: stretch;
}

.product-battery-gauge {
  --battery-level: 90%;
  padding: 13px 14px 11px;
  display: block;
  border: 1px solid #d9dfe5;
  border-radius: 6px;
  background: #fafbfc;
}

.product-battery-readout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.product-battery-readout > span {
  color: #77828f;
  font-size: 8px;
  font-weight: 700;
}

.product-battery-readout > output {
  color: #25384f;
  font-family: "Bahnschrift", "Microsoft YaHei UI", sans-serif;
  font-size: 23px;
  font-weight: 700;
  line-height: 1;
}

.product-battery-gauge > input[type="range"] {
  width: 100%;
  height: 18px;
  margin: 10px 0 0;
  padding: 0;
  appearance: none;
  background: transparent;
  box-shadow: none;
}

.product-battery-gauge > input[type="range"]::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 999px;
  background:
    linear-gradient(90deg, #34586e 0 var(--battery-level), #dde2e6 var(--battery-level) 100%);
}

.product-battery-gauge > input[type="range"]::-webkit-slider-thumb {
  width: 16px;
  height: 16px;
  margin-top: -5px;
  border: 3px solid #fff;
  border-radius: 50%;
  appearance: none;
  background: #263c55;
  box-shadow: 0 1px 4px rgb(17 26 51 / 28%);
}

.product-battery-gauge > input[type="range"]::-moz-range-track {
  height: 6px;
  border-radius: 999px;
  background: #dde2e6;
}

.product-battery-gauge > input[type="range"]::-moz-range-progress {
  height: 6px;
  border-radius: 999px;
  background: #34586e;
}

.product-battery-gauge > input[type="range"]::-moz-range-thumb {
  width: 11px;
  height: 11px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: #263c55;
}

.product-battery-scale {
  margin-top: 2px;
  display: flex;
  justify-content: space-between;
  color: #9aa2ac;
  font-family: "Bahnschrift", sans-serif;
  font-size: 7px;
}

.product-battery-gauge > small {
  display: block;
  margin-top: 7px;
  color: #8c95a0;
  font-size: 7px;
}

.product-pricing-console {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.75fr);
  gap: 12px;
}

.product-pricing-main,
.product-pricing-side {
  min-width: 0;
}

.product-pricing-main {
  padding: 15px;
  border: 1px solid #dce2e7;
  border-radius: 6px;
  background: #f9fafb;
}

.product-price-field,
.product-market-price {
  display: block;
}

.product-price-field > span,
.product-market-price > span {
  display: block;
  color: #667280;
  font-size: 8px;
  font-weight: 700;
}

.product-price-field > div,
.product-market-price > div {
  margin-top: 5px;
  display: flex;
  align-items: baseline;
  gap: 6px;
  border-bottom: 1px solid #cdd5dc;
}

.product-price-field small,
.product-market-price small {
  color: #586576;
  font-family: "Bahnschrift", sans-serif;
  font-size: 13px;
  font-weight: 700;
}

.product-price-field input,
.product-market-price input {
  width: 100%;
  min-height: 44px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  font-family: "Bahnschrift", "Microsoft YaHei UI", sans-serif;
}

.product-price-field input {
  color: #b9511f !important;
  font-size: 30px !important;
  font-weight: 700;
}

.product-market-price input {
  color: #445164 !important;
  font-size: 15px !important;
}

.product-pricing-feedback {
  margin-top: 11px;
  padding: 9px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #e1e5e8;
  border-radius: 5px;
  background: #fff;
  color: #85909c;
}

.product-pricing-feedback svg {
  flex: none;
}

.product-pricing-feedback strong,
.product-pricing-feedback small {
  display: block;
}

.product-pricing-feedback strong {
  color: #5c6878;
  font-size: 8px;
}

.product-pricing-feedback small {
  margin-top: 2px;
  font-size: 7px;
}

.product-pricing-feedback.is-set {
  border-color: #d9e4df;
  background: #f7faf8;
  color: #507060;
}

.product-pricing-feedback.is-ready {
  border-color: #cae1d7;
  background: #eff8f3;
  color: #3f735d;
}

.product-pricing-feedback.is-ready strong,
.product-pricing-feedback.is-set strong {
  color: #315d4b;
}

.product-pricing-side {
  padding: 15px;
  display: flex;
  flex-direction: column;
  border: 1px solid #e1e5e8;
  border-radius: 6px;
  background: #fff;
}

.product-single-unit-note {
  height: auto;
  min-height: 42px;
  margin-top: auto;
  padding: 9px 0 0;
  border: 0;
  border-top: 1px solid #e8ebee;
  border-radius: 0;
  background: transparent;
}

.product-service-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(220px, 0.65fr);
  gap: 26px;
}

.product-warranty-block,
.product-service-options-block {
  grid-column: 1;
}

.product-service-options-block {
  margin-top: 20px;
}

.product-primary-label-block {
  grid-column: 2;
  grid-row: 1 / span 2;
  padding-left: 22px;
  border-left: 1px solid #e7eaed;
}

.product-control-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.product-control-title strong {
  color: #354154;
  font-size: 9px;
}

.product-control-title > span {
  color: #929aa4;
  font-size: 7px;
}

.product-warranty-options {
  position: relative;
  margin-top: 9px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

.product-warranty-options::before {
  position: absolute;
  top: 23px;
  right: 12%;
  left: 12%;
  height: 1px;
  background: #e3e7ea;
  content: "";
}

.product-warranty-choice {
  position: relative;
  z-index: 1;
  min-height: 67px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  border: 1px solid #dce1e6;
  border-radius: 5px;
  background: #fff;
  color: #6f7987;
  cursor: pointer;
}

.product-warranty-choice > strong {
  color: #344255;
  font-family: "Bahnschrift", "Microsoft YaHei UI", sans-serif;
  font-size: 16px;
  line-height: 1;
}

.product-warranty-choice > strong small {
  margin-left: 2px;
  font-family: inherit;
  font-size: 7px;
}

.product-warranty-choice > span {
  font-size: 7px;
}

.product-warranty-choice > i {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 13px;
  height: 13px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: transparent;
}

.product-warranty-choice.is-selected {
  border-color: #38546a;
  background: #f4f7f8;
  box-shadow: inset 0 0 0 1px #38546a;
}

.product-warranty-choice.is-selected > i {
  background: #38546a;
  color: #fff;
}

.product-service-options {
  margin-top: 9px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.product-service-option {
  min-width: 0;
  min-height: 52px;
  padding: 8px;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 14px;
  align-items: center;
  gap: 8px;
  border: 1px solid #dfe4e8;
  border-radius: 5px;
  background: #fff;
  text-align: left;
  cursor: pointer;
}

.product-service-option-icon {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 4px;
  background: #f1f4f4;
  color: #557365;
}

.product-service-option strong,
.product-service-option small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-service-option strong {
  color: #3d4a5b;
  font-size: 8px;
}

.product-service-option small {
  margin-top: 3px;
  color: #8a94a0;
  font-size: 7px;
}

.product-service-option > i {
  width: 14px;
  height: 14px;
  display: grid;
  place-items: center;
  border: 1px solid #d8dee4;
  border-radius: 50%;
  color: transparent;
}

.product-service-option.is-selected {
  border-color: #5b7568;
  background: #f5f9f7;
  box-shadow: inset 0 0 0 1px #5b7568;
}

.product-service-option.is-selected > i {
  border-color: #426b58;
  background: #426b58;
  color: #fff;
}

.product-primary-label-options {
  margin-top: 9px;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.product-primary-label-options button {
  min-height: 29px;
  padding: 0 9px;
  border: 1px solid #dfe4e8;
  border-radius: 4px;
  background: #fff;
  color: #667180;
  font-size: 8px;
  cursor: pointer;
}

.product-primary-label-options button.is-selected {
  border-color: #315b77;
  background: #315b77;
  color: #fff;
}

.product-primary-label-preview {
  margin-top: 18px;
  padding: 12px;
  border: 1px solid #e4e8eb;
  border-radius: 5px;
  background:
    linear-gradient(135deg, rgb(38 60 85 / 4%), transparent 65%),
    #fafbfc;
}

.product-primary-label-preview > span {
  color: #8a94a0;
  font-size: 7px;
}

.product-primary-label-preview > div {
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.product-primary-label-preview b {
  padding: 4px 6px;
  border-radius: 3px;
  background: #315b77;
  color: #fff;
  font-size: 7px;
}

.product-primary-label-preview strong {
  color: #b9511f;
  font-family: "Bahnschrift", "Microsoft YaHei UI", sans-serif;
  font-size: 14px;
}

.product-primary-label-preview > small {
  display: block;
  margin-top: 9px;
  color: #939ba5;
  font-size: 7px;
  line-height: 1.45;
}

.product-cover-editor {
  padding-right: 18px;
  border-right: 1px solid #edf0f2;
}

.product-cover-preview {
  width: 168px;
  height: 168px;
  border-style: solid;
  background:
    linear-gradient(145deg, #fbfcfc, #f1f3f4);
}

.product-cover-meta {
  width: 168px;
  margin-top: 3px;
}

.product-cover-meta strong,
.product-cover-meta small {
  display: block;
}

.product-cover-meta strong {
  color: #354154;
  font-size: 9px;
}

.product-cover-meta small {
  margin-top: 3px;
  color: #8a94a0;
  font-size: 7px;
}

.product-upload-action {
  min-height: 31px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #d7dde3;
  border-radius: 5px;
  background: #fff;
  color: #526071;
  font-size: 8px;
  font-weight: 700;
  cursor: pointer;
}

.product-upload-action:hover {
  border-color: #aebac5;
  color: #263c55;
}

.product-gallery-item > b {
  position: absolute;
  top: 5px;
  left: 5px;
  min-width: 20px;
  height: 18px;
  display: grid;
  place-items: center;
  border-radius: 3px;
  background: rgb(16 28 43 / 72%);
  color: #fff;
  font-family: "Bahnschrift", sans-serif;
  font-size: 7px;
}

.product-description-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.product-description-meta > small {
  margin: 0;
}

.product-description-meta > b {
  color: #929aa4;
  font-size: 7px;
  font-weight: 600;
}

.product-description-meta > b.is-ready {
  color: #3f735d;
}

.product-publish-option-head {
  margin-bottom: 9px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.product-publish-option-head strong {
  color: #354154;
  font-size: 9px;
}

.product-publish-option-head span {
  color: #929aa4;
  font-size: 7px;
}

.product-tag-choice {
  min-height: 31px;
  padding: 0 9px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.product-tag-choice > i {
  width: 13px;
  height: 13px;
  display: grid;
  place-items: center;
  border: 1px solid #d8dee4;
  border-radius: 3px;
  color: transparent;
}

.product-tag-choice.is-selected > i {
  border-color: rgb(255 255 255 / 42%);
  color: #fff;
}

.product-switch-copy {
  flex: 1;
}

.product-switch > em {
  flex: none;
  color: #969ea8;
  font-size: 7px;
  font-style: normal;
}

.product-switch > em::after {
  content: "未展示";
}

.product-switch:has(input:checked) > em {
  color: #3f735d;
}

.product-switch:has(input:checked) > em::after {
  content: "展示中";
}

.product-lifecycle-options {
  padding-top: 1px;
}

.product-lifecycle-card {
  position: relative;
  overflow: hidden;
}

.product-lifecycle-card:has(input:checked)::after {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 2px;
  background: #38546a;
  content: "";
}

@media (max-width: 900px) {
  .product-property-row {
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 16px;
  }

  .product-grade-options {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

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

  .product-warranty-block,
  .product-service-options-block,
  .product-primary-label-block {
    grid-column: 1;
    grid-row: auto;
  }

  .product-primary-label-block {
    padding: 18px 0 0;
    border-top: 1px solid #e7eaed;
    border-left: 0;
  }
}

@media (max-width: 600px) {
  .product-property-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .product-property-label {
    padding-top: 0;
  }

  .product-capacity-options {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .product-grade-options,
  .product-service-options,
  .product-warranty-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .product-cover-editor {
    padding: 0 0 18px;
    border-right: 0;
    border-bottom: 1px solid #edf0f2;
  }
}

/* Compact product form, aligned with the approved centered-step reference. */
.drawer.drawer-product-modal {
  top: 50%;
  left: 50%;
  width: min(860px, calc(100vw - 40px));
  height: min(740px, calc(100vh - 48px));
  border-color: #e1e5e9;
  border-radius: 8px;
  box-shadow: 0 24px 64px rgb(13 21 43 / 22%);
  transform: translate(-50%, -48%) scale(0.99);
}

.drawer.drawer-product-modal.open {
  transform: translate(-50%, -50%) scale(1);
}

.drawer-product-modal .drawer-header {
  position: relative;
  min-height: 58px;
  padding: 10px 18px;
  justify-content: center;
  border-radius: 8px 8px 0 0;
  background: #fff;
}

.drawer-product-modal .drawer-header > div {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  white-space: nowrap;
}

.drawer-product-modal .drawer-header > div > span {
  display: none;
}

.drawer-product-modal .drawer-header h2 {
  margin: 0;
  color: #172033;
  font-size: 17px;
  line-height: 1.3;
}

.drawer-product-modal .drawer-header .icon-button {
  position: absolute;
  right: 14px;
  z-index: 1;
  width: 30px;
  height: 30px;
}

.drawer-product-modal .drawer-body {
  padding: 0;
  background: #fff;
}

.drawer-product-modal .drawer-footer {
  min-height: 58px;
  padding: 9px 18px;
  gap: 8px;
  border-radius: 0 0 8px 8px;
  background: #fff;
}

.drawer-product-modal .drawer-footer > button {
  min-height: 36px;
  padding: 0 15px;
  border-radius: 5px;
  font-size: 12px;
}

.drawer-product-modal .drawer-footer [data-product-next],
.drawer-product-modal .drawer-footer [data-product-publish] {
  min-width: 96px;
  background: #111a33;
  color: #fff;
}

.drawer-product-modal .drawer-footer [data-product-next]:hover,
.drawer-product-modal .drawer-footer [data-product-publish]:hover {
  background: #1d2b48;
}

.product-wizard {
  --product-control-border: #dfe4e9;
  --product-control-bg: #f7f8fa;
  color: #172033;
}

.product-wizard-layout {
  min-height: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

.product-wizard-rail {
  min-width: 0;
  padding: 0 24px;
  display: block;
  border-right: 0;
  border-bottom: 1px solid #e7eaee;
  background: #fff;
}

.product-workflow-intro,
.product-rail-record {
  display: none;
}

.product-step-list {
  position: relative;
  margin: 0;
  display: flex;
  gap: 4px;
}

.product-step-list::before {
  display: none;
}

.product-step {
  position: relative;
  min-width: 0;
  min-height: 48px;
  padding: 0 9px;
  flex: 1;
  align-items: center;
  justify-content: center;
  gap: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  text-align: center;
}

.product-step:hover {
  border-color: transparent;
  background: #fafbfc;
}

.product-step > b,
.product-step > i,
.product-step small {
  display: none;
}

.product-step > span {
  flex: none;
}

.product-step strong {
  color: #6f7885;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.product-step.is-current {
  border-color: transparent;
  background: #fff;
  box-shadow: none;
}

.product-step.is-current::after {
  position: absolute;
  right: 10px;
  bottom: -1px;
  left: 10px;
  height: 2px;
  background: #b18a50;
  content: "";
}

.product-step.is-current strong {
  color: #8d6b39;
  font-weight: 700;
}

.product-step.is-complete strong {
  color: #3f735d;
}

.product-wizard-main {
  min-width: 0;
  padding: 18px 28px 28px;
  background: #fff;
}

.product-panel-head {
  margin-bottom: 12px;
  padding: 0 0 12px;
  align-items: center;
  border-bottom: 1px solid #e7eaee;
}

.product-panel-head > div > span {
  color: #a27e46;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0;
}

.product-panel-head h3 {
  margin: 4px 0 0;
  color: #172033;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
}

.product-work-section {
  border-top-color: #edf0f2;
}

.product-panel-head + .product-work-section {
  border-top: 0;
}

.product-work-section-head {
  min-height: 42px;
  padding: 10px 0 6px;
  align-items: center;
}

.product-work-section-head strong {
  color: #263244;
  font-size: 12px;
}

.product-work-section-head small {
  margin-top: 3px;
  color: #7b8491;
  font-size: 10px;
  line-height: 1.4;
}

.product-work-section-head > button {
  min-height: 28px;
  padding: 0 9px;
  font-size: 10px;
}

.product-work-section-body {
  padding: 2px 0 14px;
}

.product-identity-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-rows: auto auto;
  gap: 12px 18px;
  margin: 0;
}

.product-identity-grid > .product-device-field {
  grid-column: 1;
  grid-row: 1;
  margin: 0 !important;
}

.product-identity-grid > .product-identity-field:nth-child(2) {
  grid-column: 2;
  grid-row: 1;
}

.product-identity-grid > .product-identity-field:nth-child(3) {
  grid-column: 1;
  grid-row: 2;
}

.product-wizard .form-field,
.product-identity-field {
  min-width: 0;
  margin-bottom: 0;
}

.product-wizard .form-field > span,
.product-surface-label {
  margin-bottom: 5px;
  color: #46536a;
  font-size: 11px;
  font-weight: 600;
}

.product-wizard .form-field small {
  margin-top: 4px;
  color: #858e9b;
  font-size: 10px;
}

.product-wizard input:not([type="range"]):not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="hidden"]),
.product-wizard textarea {
  min-height: 40px;
  border-color: #dfe4e9;
  border-radius: 5px;
  background: #f7f8fa;
  color: #172033;
  font-size: 13px;
}

.product-wizard input::placeholder,
.product-wizard textarea::placeholder {
  color: #929aa6;
  font-size: 12px;
}

.product-wizard input:not([type="range"]):not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="hidden"]):focus,
.product-wizard textarea:focus {
  border-color: #9aa9b8;
  background: #fff;
  box-shadow: 0 0 0 2px rgb(17 26 51 / 5%);
}

.product-device-options {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.product-device-card {
  min-width: 0;
  min-height: 40px;
  padding: 0 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #dfe4e9;
  border-radius: 5px;
  background: #fff;
  box-shadow: none;
}

.product-device-card strong {
  color: #46536a;
  font-size: 12px;
  font-weight: 500;
}

.product-device-card > i {
  display: none;
}

.product-device-card.is-selected {
  border-color: #b18a50;
  background: #fffdf9;
  box-shadow: inset 0 0 0 1px #b18a50;
}

.product-device-card.is-selected strong {
  color: #8d6b39;
  font-weight: 700;
}

.identity-select-trigger {
  height: 40px;
  min-height: 40px;
  grid-template-columns: 26px minmax(0, 1fr) 14px;
  gap: 8px;
  padding: 5px 9px;
  border-color: #dfe4e9;
  border-radius: 5px;
  background: #f7f8fa;
  box-shadow: none;
}

.brand-picker-mark {
  width: 25px;
  height: 25px;
  border-radius: 4px;
  background: #fff;
}

.identity-select-trigger small {
  font-size: 9px;
}

.identity-select-trigger strong {
  margin-top: 1px;
  color: #172033;
  font-size: 12px;
}

.product-model-combobox input {
  height: 40px;
  min-height: 40px;
  padding-left: 34px;
  border-radius: 5px;
  background: #f7f8fa;
  font-size: 13px;
}

.product-model-combobox > svg {
  left: 11px;
}

.product-model-combobox .model-combobox-toggle {
  top: 4px;
  right: 4px;
  width: 32px;
  height: 32px;
}

.model-options-menu,
.identity-picker-menu {
  border-radius: 5px;
  box-shadow: 0 12px 28px rgb(13 21 43 / 12%);
}

.product-title-summary {
  min-height: 0;
  padding: 11px 0 2px;
  border: 0;
  border-top: 1px solid #e7eaee;
  border-radius: 0;
  background: transparent;
}

.product-title-summary > div > span {
  color: #747f8e;
  font-size: 10px;
  font-weight: 500;
}

.product-title-summary strong {
  margin-top: 4px;
  color: #263244;
  font-size: 13px;
  line-height: 1.45;
  white-space: normal;
}

.product-title-summary .product-title-mode {
  padding: 3px 7px;
  border-radius: 3px;
  background: #f1f3f5;
  font-size: 10px;
}

.product-title-summary .product-title-mode.is-auto {
  background: #eef4f0;
  color: #3f735d;
}

.product-title-actions {
  margin-top: 6px;
  gap: 6px;
}

.product-title-actions > button,
.product-title-manual {
  min-height: 28px;
  border-color: #e1e5e9;
  border-radius: 4px;
}

.product-title-actions > button,
.product-title-manual summary {
  font-size: 10px;
}

.product-title-manual[open] {
  padding: 7px;
}

.product-title-manual[open] summary {
  min-height: 22px;
}

.product-title-manual input {
  min-height: 36px !important;
}

.product-title-manual > span {
  font-size: 9px;
}

.product-property-label strong,
.product-control-title strong {
  color: #263244;
  font-size: 12px;
}

.product-property-label small,
.product-control-title > span {
  color: #7f8997;
  font-size: 10px;
}

.product-property-row {
  padding: 12px 0;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 18px;
}

.product-choice,
.product-tag-choice,
.product-color-options button {
  min-height: 32px;
  border-radius: 4px;
  font-size: 11px;
}

.product-grade-choice {
  min-height: 54px;
  padding: 8px;
  border-radius: 5px;
}

.product-grade-choice strong {
  font-size: 12px;
}

.product-grade-choice small {
  font-size: 10px;
}

.product-battery-readout > span {
  font-size: 11px;
}

.product-battery-readout > output {
  font-size: 16px;
}

.product-battery-gauge > small {
  font-size: 10px;
}

.product-pricing-console {
  gap: 12px;
}

.product-pricing-main,
.product-pricing-side,
.product-warranty-block,
.product-service-options-block,
.product-primary-label-block {
  border-radius: 5px;
}

.product-price-field > span,
.product-market-price > span {
  font-size: 11px;
}

.product-service-option {
  min-height: 52px;
  padding: 8px;
}

.product-service-option strong {
  font-size: 11px;
}

.product-service-option small {
  font-size: 10px;
}

.product-warranty-choice {
  min-height: 55px;
  padding: 8px;
}

.product-warranty-choice > strong {
  font-size: 15px;
}

.product-warranty-choice > span {
  font-size: 10px;
}

.product-upload-action,
.upload-trigger {
  min-height: 32px;
  font-size: 11px;
}

.product-cover-preview {
  width: 136px;
  height: 136px;
}

.product-cover-meta strong,
.product-field-head strong {
  font-size: 11px;
}

.product-cover-meta small,
.product-field-head small {
  font-size: 10px;
}

.product-gallery-item,
.product-gallery-empty {
  min-height: 72px;
}

.product-gallery-item img {
  height: 72px;
}

.product-description-field textarea {
  min-height: 96px;
  font-size: 12px;
  line-height: 1.6;
}

.product-description-meta > small,
.product-description-meta > b {
  font-size: 10px;
}

.product-review-overview {
  margin-top: 12px;
}

.product-summary {
  min-height: 124px;
  padding: 10px;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 10px;
}

.product-summary-cover {
  height: 88px;
}

.product-summary h4 {
  font-size: 12px;
}

.product-summary p,
.product-summary-tags span {
  font-size: 10px;
}

.product-summary-price {
  margin-top: 6px;
  font-size: 17px;
}

.product-publish-checklist > div {
  min-height: 54px;
  padding: 7px;
}

.product-publish-checklist strong {
  font-size: 10px;
}

.product-publish-checklist small {
  font-size: 9px;
}

.product-live-preview {
  margin-top: 10px;
  padding: 10px;
}

.product-live-preview-head strong {
  font-size: 12px;
}

.product-live-preview-head small {
  font-size: 10px;
}

.product-preview-column > span {
  font-size: 10px;
}

.product-switch {
  min-height: 46px;
  padding: 8px 10px;
}

.product-switch strong,
.product-lifecycle-card strong {
  font-size: 10px;
}

.product-switch small,
.product-lifecycle-card small {
  font-size: 9px;
}

.product-lifecycle-card {
  min-height: 62px;
  padding: 7px;
}

.product-publish-notice {
  margin-top: 10px;
  padding: 9px 11px;
}

.product-publish-notice strong {
  font-size: 11px;
}

.product-publish-notice span {
  font-size: 10px;
}

.drawer-product-modal :focus-visible {
  outline: 2px solid #a27e46;
  outline-offset: 2px;
}

@media (max-width: 720px) {
  .drawer.drawer-product-modal {
    width: calc(100vw - 24px);
    height: calc(100vh - 24px);
  }

  .product-wizard-main {
    padding: 16px 18px 24px;
  }

  .product-wizard-rail {
    padding-right: 14px;
    padding-left: 14px;
  }

  .product-step-list {
    gap: 0;
  }

  .product-step {
    padding: 0 4px;
  }

  .product-step strong {
    font-size: 10px;
  }

  .product-property-row {
    grid-template-columns: 128px minmax(0, 1fr);
    gap: 12px;
  }
}

@media (max-width: 600px) {
  .drawer.drawer-product-modal {
    inset: 0;
    width: 100vw;
    height: 100vh;
    border: 0;
    border-radius: 0;
    transform: translateY(8px);
  }

  .drawer.drawer-product-modal.open {
    transform: translateY(0);
  }

  .drawer-product-modal .drawer-header {
    min-height: 54px;
    padding: 8px 12px;
    border-radius: 0;
  }

  .drawer-product-modal .drawer-header h2 {
    font-size: 16px;
  }

  .drawer-product-modal .drawer-header .icon-button {
    right: 8px;
  }

  .drawer-product-modal .drawer-footer {
    min-height: 58px;
    padding: 8px 10px;
    border-radius: 0;
  }

  .drawer-product-modal .drawer-footer > button {
    min-height: 36px;
    padding: 0 11px;
    font-size: 11px;
  }

  .product-wizard-rail {
    padding: 0 8px;
  }

  .product-step {
    min-width: 0;
    min-height: 44px;
    padding: 0 2px;
  }

  .product-step strong {
    font-size: 9px;
  }

  .product-wizard-main {
    padding: 14px 14px 24px;
  }

  .product-identity-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 11px;
  }

  .product-identity-grid > .product-device-field,
  .product-identity-grid > .product-identity-field:nth-child(2),
  .product-identity-grid > .product-identity-field:nth-child(3) {
    grid-column: 1;
    grid-row: auto;
  }

  .product-property-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

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

  .product-cover-editor {
    align-items: flex-start;
    padding: 0 0 14px;
    border-right: 0;
    border-bottom: 1px solid #edf0f2;
  }

  .product-review-overview,
  .product-preview-stage {
    grid-template-columns: 1fr;
  }

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