:root {
  --bg: #f8f6fd;
  --panel: #ffffff;
  --ink: #3f286b;
  --muted: #746b83;
  --line: #e6def1;
  --brand: #7a5bb8;
  --brand-2: #b76b8a;
  --soft: #f0ebfa;
  --warn: #fff4e6;
  --danger: #b84d65;
  --shadow: 0 14px 38px rgba(70, 54, 103, 0.1);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
}

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

button {
  border: 0;
  cursor: pointer;
}

.shell {
  min-height: 100vh;
  padding-bottom: 72px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(248, 246, 253, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.topbar-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-mini-link {
  min-height: 32px;
  padding: 0 12px;
  border-radius: 8px;
  background: var(--brand);
  color: #fff;
  font-weight: 800;
}

.topbar-mini-btn {
  min-height: 32px;
  padding: 0 10px;
  border-radius: 8px;
  background: var(--brand);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.topbar-mini-btn.ghost {
  background: #f0ebfa;
  color: var(--brand);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: linear-gradient(135deg, #8a63bf, #c27390);
  color: white;
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 23px;
}

.brand-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.brand-copy strong {
  color: var(--ink);
  font-size: 21px;
  line-height: 1.18;
  white-space: nowrap;
}

.brand-copy em {
  color: var(--brand-2);
  font-size: 14px;
  font-style: normal;
  font-weight: 700;
  white-space: nowrap;
}

.role-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.brand-value {
  color: #8a6a9f;
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
}

.main {
  max-width: 1180px;
  margin: 0 auto;
  padding: 22px 18px;
}

.nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  background: var(--panel);
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}

.nav button {
  height: 64px;
  background: transparent;
  color: var(--muted);
  font-weight: 700;
}

.nav button.active {
  color: var(--brand);
}

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

.product-filter {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

.product-filter .search {
  width: 100%;
}

.category-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
  gap: 8px;
  overflow: visible;
  padding: 8px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--line);
}

.category-tab {
  width: 100%;
  min-height: 38px;
  padding: 0 8px;
  border-radius: 8px;
  background: var(--brand);
  color: #fff;
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 900;
}

.category-tab:nth-child(2n) {
  background: #f0ebfa;
  color: #3f286b;
}

.category-tab.active {
  color: #fff;
  background: var(--brand);
  border-color: var(--brand);
  box-shadow: 0 4px 12px rgba(70, 54, 103, 0.08);
}

.search {
  min-width: 260px;
  flex: 1;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 14px;
  background: var(--panel);
}

.chip {
  height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--muted);
}

.chip.active {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(235px, 1fr));
  gap: 16px;
}

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.card-body {
  padding: 14px;
}

.product-media {
  aspect-ratio: 1 / 1;
  background: linear-gradient(135deg, #ede7fb, #f8e7f0);
  display: grid;
  place-items: center;
  color: var(--brand);
  font-size: 42px;
  font-weight: 800;
}

.badge-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.badge {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--brand);
  font-size: 12px;
}

.badge.hot {
  background: #f9e9f0;
  color: var(--brand-2);
}

.muted {
  color: var(--muted);
}

.price {
  color: var(--brand-2);
  font-size: 22px;
  font-weight: 800;
}

.product-commerce {
  display: grid;
  gap: 8px;
  margin: 10px 0 12px;
}

.product-price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

.product-price-label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.product-price-row .price {
  line-height: 1.1;
}

.product-shipping-inline {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 6px;
  background: #f4effb;
  color: var(--brand);
  font-size: 12px;
  font-weight: 800;
}

.product-spec-row {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  color: var(--muted);
  font-size: 13px;
}

.product-spec-row span {
  flex: 0 0 auto;
}

.product-spec-row strong {
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.promotion-guide {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid #ead6e3;
  border-radius: 8px;
  background: linear-gradient(90deg, #fff7fb, #f7f1ff);
  color: var(--ink);
}

.promotion-guide strong {
  color: var(--brand-2);
  white-space: nowrap;
}

.promotion-guide small {
  color: var(--muted);
}

.promotion-guide-tags,
.promo-tags {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.promotion-guide-tags span,
.promo-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 6px;
  border: 1px solid #e7b6cc;
  background: #fff3f8;
  color: var(--brand-2);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
}

.promo-tags {
  margin: 0;
}

.detail-promo-tags {
  margin: 2px 0 0;
}

.detail-promo-tags span {
  min-height: 28px;
  padding: 0 10px;
  font-size: 13px;
}

.shipping-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 26px;
  margin: 6px 0 4px;
  padding: 0 9px;
  border-radius: 6px;
  background: #f4effb;
  color: var(--brand);
  font-size: 12px;
  font-weight: 800;
}

.shipping-badge span {
  color: var(--muted);
  font-weight: 700;
}

.shipping-badge strong {
  color: var(--brand);
}

.detail-shipping-badge {
  min-height: 30px;
  margin: 8px 0 6px;
  padding: 0 11px;
  font-size: 13px;
}

.btn-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.order-state-tag {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 11px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #faf7ff;
  color: var(--brand);
  font-size: 13px;
  font-weight: 800;
}

.order-state-tag.done {
  border-color: #cfe3d5;
  background: #f1fbf4;
  color: #287045;
}

.btn {
  min-height: 40px;
  padding: 0 14px;
  border-radius: 8px;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
}

.btn.secondary {
  background: var(--soft);
  color: var(--brand);
}

.btn.ghost {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
}

.btn.danger {
  background: var(--danger);
}

.section {
  margin-top: 22px;
}

.section-title {
  font-size: 20px;
  margin: 0 0 12px;
}

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

.section-head .section-title {
  margin: 0;
}

.detail {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(300px, 0.9fr);
  gap: 18px;
}

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

.detail-actions > .btn-row {
  margin-top: 0;
}

.detail-back {
  min-height: 38px;
  padding: 0 12px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.detail-back span {
  font-size: 24px;
  line-height: 1;
  color: var(--brand);
}

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

.detail-icon-actions button {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--soft);
  color: var(--brand);
  font-weight: 900;
  border: 1px solid var(--line);
}

.detail-media {
  aspect-ratio: 1 / 1;
  min-height: 0;
  border-radius: 8px;
  background: linear-gradient(135deg, #ede7fb, #f8e7f0);
  display: grid;
  place-items: center;
  color: var(--brand);
  font-size: 78px;
  font-weight: 800;
}

.hero-carousel {
  position: relative;
  overflow: hidden;
}

.detail-media > img,
.detail-media > video,
.product-media img,
.product-media video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.detail-media > video {
  background: #000;
}

.clickable-media {
  cursor: pointer;
}

.clickable-media:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.hero-carousel-stage {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  background: #fff;
}

.hero-carousel-stage img,
.hero-carousel-stage video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
}

.hero-carousel-stage video {
  background: #000;
}

.carousel-switch-image {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 5;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--brand);
  font-size: 13px;
  font-weight: 900;
  box-shadow: 0 8px 20px rgba(39, 34, 53, 0.18);
}

.carousel-swipe-layer {
  position: absolute;
  inset: 0 0 96px;
  z-index: 1;
  cursor: grab;
  touch-action: pan-y;
  background: transparent;
}

.carousel-swipe-layer:active {
  cursor: grabbing;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(39, 34, 53, 0.54);
  color: #fff;
  font-size: 26px;
  line-height: 1;
}

.carousel-arrow.left {
  left: 10px;
}

.carousel-arrow.right {
  right: 10px;
}

.carousel-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 12px;
  z-index: 4;
  display: flex;
  justify-content: center;
  gap: 7px;
}

.carousel-dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(39, 34, 53, 0.18);
}

.carousel-dots button.active {
  width: 20px;
  background: var(--brand);
  border-color: var(--brand);
}

.carousel-thumbs {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 28px;
  z-index: 4;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 2px 8px;
  scrollbar-width: none;
}

.carousel-thumbs::-webkit-scrollbar {
  display: none;
}

.carousel-thumb {
  position: relative;
  flex: 0 0 54px;
  width: 54px;
  height: 54px;
  padding: 0;
  overflow: hidden;
  border-radius: 8px;
  border: 2px solid rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 8px 20px rgba(39, 34, 53, 0.16);
}

.carousel-thumb.active {
  border-color: var(--brand);
}

.carousel-thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.carousel-thumb span {
  font-size: 12px;
  color: var(--brand);
  font-weight: 800;
}

.carousel-thumb em {
  position: absolute;
  left: 4px;
  bottom: 4px;
  padding: 2px 5px;
  border-radius: 999px;
  background: rgba(39, 34, 53, 0.72);
  color: #fff;
  font-size: 10px;
  font-style: normal;
}

.detail-panel,
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  box-shadow: var(--shadow);
}

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

.info-item {
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.notice {
  background: var(--warn);
  border: 1px solid #ead4a7;
  color: #6b4d1d;
  border-radius: 8px;
  padding: 12px;
  line-height: 1.65;
}

.receiver-history-field {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 2px 0 14px;
  padding: 12px 14px;
  border: 1px solid #e6d8ee;
  border-radius: 8px;
  background: #fbf7ff;
}

.receiver-history-field button {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 14px;
  background: #fff;
  color: var(--brand);
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
}

.receiver-history-field strong {
  display: block;
  font-size: 15px;
  color: var(--brand);
}

.receiver-history-field span {
  display: block;
  margin-top: 3px;
  font-size: 13px;
  color: var(--muted);
}

.receiver-tip {
  margin: 6px 0 10px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

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

.delivery-choice-row button {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
}

.delivery-choice-row button.active {
  border-color: var(--brand);
  background: var(--soft);
  color: var(--brand);
}

.address-picker-panel {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(28, 24, 20, 0.42);
}

.address-picker-modal {
  width: min(640px, 100%);
  max-height: min(76vh, 720px);
  overflow: auto;
  padding: 18px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.2);
}

.address-picker-list {
  display: grid;
  gap: 10px;
}

.address-picker-item {
  display: grid;
  gap: 7px;
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  text-align: left;
}

.address-picker-item strong {
  font-size: 15px;
  color: var(--ink);
}

.address-picker-item span {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.55;
}

.address-manual-btn {
  width: 100%;
  margin-top: 12px;
}

.list {
  display: grid;
  gap: 12px;
}

.content-share-tip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.content-share-tip h2 {
  margin: 0 0 5px;
  color: var(--ink);
  font-size: 22px;
}

.content-share-tip p {
  margin: 0;
}

.order-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  box-shadow: var(--shadow);
}

.order-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.order-card-head span {
  color: var(--brand);
  font-weight: 800;
}

.customer-order-status {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 9px;
  border-radius: 8px;
  background: #f4effb;
  border: 1px solid #e1d3f1;
  white-space: nowrap;
}

.customer-order-status.has-refund {
  background: #fff3f7;
  border-color: #efb8c9;
  color: var(--brand-2);
}

.order-head-main {
  display: grid;
  gap: 4px;
}

.order-head-main small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.order-goods {
  display: grid;
  gap: 10px;
  padding: 12px 0;
}

.order-goods-item {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 10px;
  align-items: center;
}

.order-goods-info {
  display: grid;
  gap: 4px;
}

.order-goods-price {
  display: grid;
  justify-items: end;
  gap: 2px;
  font-variant-numeric: tabular-nums;
}

.order-goods-price span {
  color: var(--muted);
  font-size: 12px;
  text-decoration: line-through;
}

.refund-customer-card {
  display: grid;
  gap: 12px;
}

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

.refund-customer-steps span {
  background: #f4f0fa;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 6px;
  text-align: center;
  font-size: 12px;
  font-weight: 800;
}

.refund-customer-steps span.active {
  background: var(--soft);
  border-color: #d8c4ec;
  color: var(--brand);
}

.refund-customer-steps span.done {
  background: #f0fbf6;
  border-color: #b8e4ca;
  color: #217848;
}

.refund-customer-steps span.rejected {
  background: #fff1f2;
  border-color: #fecdd3;
  color: #b4233a;
}

.refund-customer-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.refund-customer-info div {
  display: grid;
  gap: 4px;
}

.refund-customer-info span {
  color: var(--muted);
  font-size: 13px;
}

.refund-customer-info strong {
  font-size: 13px;
  overflow-wrap: anywhere;
}

.invoice-card {
  display: grid;
  gap: 12px;
}

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

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

.invoice-info-line {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 12px;
  padding: 11px 12px;
  border-top: 1px solid var(--line);
}

.invoice-info-line:first-child {
  border-top: 0;
}

.invoice-info-line span {
  color: var(--muted);
  font-size: 13px;
}

.invoice-info-line strong {
  font-size: 13px;
  overflow-wrap: anywhere;
}

.invoice-admin-card {
  display: grid;
  gap: 12px;
  padding-bottom: 14px;
}

.invoice-admin-card .invoice-info-page {
  margin: 0 16px;
}

.invoice-admin-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 0 16px;
  flex-wrap: wrap;
}

.invoice-upload-box {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto minmax(170px, auto) auto auto;
  gap: 8px;
  align-items: center;
  padding: 0 16px;
}

.invoice-upload-status {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: #fbf9fe;
  color: var(--muted);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.invoice-upload-status.is-ready {
  border-style: solid;
  border-color: #bfa7dc;
  background: #f4eefb;
  color: var(--brand);
  font-weight: 800;
}

.contact-settings-panel,
.contact-preview-panel {
  max-width: 760px;
}

.contact-preview-panel .invoice-info-page {
  margin: 0;
}

.file-btn {
  position: relative;
  overflow: hidden;
  display: inline-grid;
  place-items: center;
}

.file-btn input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.exchange-summary {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  margin-bottom: 14px;
}

.exchange-summary .product-media {
  width: 96px;
  height: 96px;
}

.exchange-summary h3,
.exchange-summary p {
  margin: 0 0 6px;
}

.invoice-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}

.invoice-info-grid div {
  display: grid;
  gap: 4px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbf9fe;
}

.invoice-info-grid span {
  color: var(--muted);
  font-size: 13px;
}

.invoice-info-grid strong {
  font-size: 13px;
  overflow-wrap: anywhere;
}

.discount-text {
  color: var(--brand-2);
  font-size: 13px;
}

.qty-text {
  color: var(--ink);
  font-size: 13px;
  background: var(--soft);
  width: fit-content;
  padding: 3px 8px;
  border-radius: 999px;
}

.order-summary {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  padding-top: 10px;
  color: var(--muted);
}

.order-summary strong {
  color: var(--ink);
}

.order-summary .refund-amount-tag,
.order-summary .invoiceable-amount-tag {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 8px;
  font-weight: 900;
}

.order-summary .refund-amount-tag {
  background: #fff3f7;
  border: 1px solid #efb8c9;
  color: var(--brand-2);
}

.order-summary .invoiceable-amount-tag {
  background: #f1fbf4;
  border: 1px solid #cfe3d5;
  color: #287045;
}

.order-date-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 8px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

.order-date-grid div {
  display: grid;
  gap: 3px;
}

.order-date-grid span {
  color: var(--muted);
  font-size: 12px;
}

.order-date-grid strong {
  font-size: 13px;
}

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

.profile-tabs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.profile-tabs button {
  min-height: 42px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  font-weight: 900;
}

.profile-tabs button.active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.profile-tabs span {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  margin-left: 6px;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.24);
  font-size: 12px;
}

.profile-tabs button:not(.active) span {
  background: var(--soft);
  color: var(--brand);
}

.profile-points-panel {
  display: grid;
  gap: 12px;
}

.profile-points-panel h3 {
  margin: 0;
}

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

.profile-points-summary div {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbf9fe;
}

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

.profile-points-summary strong {
  color: var(--brand);
  font-size: 20px;
}

.cart-qty {
  display: grid;
  grid-template-columns: 30px 34px 30px;
  gap: 4px;
  align-items: center;
  justify-items: center;
}

.cart-page .order-card {
  box-shadow: none;
}

.cart-goods-item {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.cart-goods-item:last-child {
  border-bottom: 0;
}

.cart-goods-info {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.cart-goods-info strong {
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.cart-goods-info span {
  color: var(--brand);
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.cart-qty button {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--soft);
  color: var(--brand);
  font-weight: 800;
}

.cart-qty span {
  font-weight: 800;
}

.cart-qty .cart-remove {
  grid-column: 1 / 4;
  width: 100%;
  color: var(--danger);
  background: transparent;
  font-size: 12px;
}

.list-item {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
}

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

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

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

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

.field input,
.field select,
.field textarea {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  background: #fff;
}

.field textarea {
  min-height: 92px;
  resize: vertical;
}

.field textarea.article-editor {
  min-height: 260px;
  line-height: 1.8;
}

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

.choice-row label {
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
}

.choice-row input {
  min-height: auto;
}

.article-blocks-editor {
  display: grid;
  gap: 12px;
}

.article-block {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fbf9fe;
  display: grid;
  gap: 10px;
}

.article-block-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.article-block-controls span {
  font-weight: 800;
  color: var(--brand);
  margin-right: auto;
}

.article-block-controls button {
  min-height: 30px;
  padding: 0 10px;
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  border: 1px solid var(--line);
}

.article-block-text {
  width: 100%;
  min-height: 120px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  resize: vertical;
  line-height: 1.8;
}

.admin-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 18px;
}

.admin-main {
  min-width: 0;
}

.admin-menu {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  height: fit-content;
  position: sticky;
  top: 78px;
}

.admin-menu button {
  width: 100%;
  text-align: left;
  height: 40px;
  padding: 0 12px;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
}

.admin-menu button.active {
  background: var(--soft);
  color: var(--brand);
  font-weight: 800;
}

.admin-menu .admin-front-btn {
  background: var(--brand);
  color: #fff;
  font-weight: 800;
  text-align: center;
  margin-bottom: 8px;
}

.mobile-admin {
  display: grid;
  gap: 10px;
  padding-bottom: 72px;
  font-size: 13px;
}

.mobile-admin-hero {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  padding: 12px;
  border-radius: 8px;
  background: #6f4ca5;
  color: #fff;
  box-shadow: var(--shadow);
}

.mobile-admin-hero span {
  font-size: 11px;
  opacity: 0.9;
}

.mobile-admin-hero h2 {
  margin: 2px 0;
  font-size: 18px;
}

.mobile-admin-hero p {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
  opacity: 0.92;
}

.mobile-admin-hero .btn {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
}

.mobile-admin-tabs,
.mobile-status-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

.mobile-status-tabs {
  grid-template-columns: repeat(3, 1fr);
  margin-top: 8px;
}

.mobile-admin-tabs button,
.mobile-status-tabs button {
  min-height: 34px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--muted);
  font-weight: 800;
  font-size: 12px;
  padding: 0 6px;
}

.mobile-admin-tabs button.active,
.mobile-status-tabs button.active {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}

.mobile-admin-panel,
.mobile-order-card,
.mobile-member-card,
.mobile-empty {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px;
  box-shadow: var(--shadow);
}

.mobile-admin-list {
  display: grid;
  gap: 9px;
}

.mobile-order-card {
  display: grid;
  gap: 9px;
}

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

.mobile-order-head div,
.mobile-member-card div,
.mobile-member-profile {
  display: grid;
  gap: 4px;
}

.mobile-order-head span,
.mobile-member-card span,
.mobile-order-meta,
.mobile-empty {
  color: var(--muted);
  font-size: 12px;
}

.mobile-order-head em,
.mobile-member-card em {
  color: var(--brand);
  font-style: normal;
  font-weight: 900;
  font-size: 12px;
}

.mobile-order-goods {
  display: grid;
  gap: 8px;
}

.mobile-order-goods div {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 8px;
  align-items: center;
}

.mobile-order-goods .admin-thumb {
  width: 38px;
  height: 38px;
  flex-basis: 38px;
}

.mobile-order-meta {
  display: grid;
  gap: 4px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.mobile-order-actions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.mobile-member-profile {
  margin: 8px 0 10px;
  padding: 10px;
  background: #fbf9fe;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.mobile-member-profile h2,
.mobile-member-profile p {
  margin: 0;
}

.mobile-member-profile div {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.mobile-member-profile span {
  background: var(--soft);
  color: var(--brand);
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 12px;
  font-weight: 800;
}

.mobile-admin .btn {
  min-height: 34px;
  padding: 0 10px;
  font-size: 12px;
}

.mobile-admin .search,
.mobile-admin input,
.mobile-admin select,
.mobile-admin textarea {
  font-size: 13px;
}

.mobile-admin .refund-admin-head {
  padding: 11px;
}

.mobile-admin .refund-admin-body {
  padding: 11px;
  gap: 10px;
}

.mobile-admin .refund-block h4 {
  font-size: 14px;
}

.mobile-admin .admin-order-goods-item,
.mobile-admin .refund-request-item {
  padding: 8px;
  gap: 8px;
}

.mobile-admin .admin-order-goods-info strong,
.mobile-admin .refund-request-item strong {
  font-size: 13px;
}

.mobile-admin .admin-order-goods-info span,
.mobile-admin .admin-order-goods-total span,
.mobile-admin .refund-request-item span,
.mobile-admin .refund-info-box strong,
.mobile-admin .refund-info-box span,
.mobile-admin .refund-money-box span {
  font-size: 12px;
}

.mobile-admin .refund-money-box strong {
  font-size: 15px;
}

.mobile-admin-logout {
  width: 100%;
}

.table {
  width: 100%;
  border-collapse: collapse;
  background: var(--panel);
  border-radius: 8px;
  overflow: hidden;
}

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

.table th {
  color: var(--muted);
  font-size: 13px;
  background: #fbf9fe;
}

.price-list {
  display: grid;
  gap: 4px;
  min-width: 118px;
  font-variant-numeric: tabular-nums;
}

.price-list span {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  white-space: nowrap;
}

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

.promotion-type-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.promotion-type-tabs button {
  min-height: 38px;
  padding: 0 16px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--muted);
  font-weight: 800;
}

.promotion-type-tabs button.active {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}

.promotion-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  box-shadow: 0 8px 22px rgba(70, 54, 103, 0.06);
}

.promotion-grid {
  display: grid;
  grid-template-columns: minmax(128px, 1.05fr) 112px 92px 96px minmax(180px, 1.2fr) 72px 156px;
  column-gap: 10px;
  row-gap: 8px;
  align-items: center;
  min-width: 0;
}

.promotion-list-head {
  padding: 0 14px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.promotion-rule {
  color: var(--ink);
  font-size: 18px;
  white-space: nowrap;
}

.promotion-chip,
.promotion-date,
.promo-status-tag {
  min-height: 32px;
  padding: 0 10px;
  border-radius: 8px;
  background: #fbf9fe;
  border: 1px solid #eee7f6;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  white-space: nowrap;
  font-weight: 800;
}

.promotion-date {
  color: var(--muted);
  font-weight: 700;
}

.promo-status-tag {
  background: #efe7f6;
  color: var(--brand);
  border-color: #d9cde8;
}

.promotion-card-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  margin: 0;
}

.promotion-card-actions .btn {
  width: 68px;
  min-height: 40px;
  padding: 0;
}

.promo-type-tag,
.promo-scope-tag,
.promo-member-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 10px;
  border-radius: 8px;
  background: #f4effb;
  color: #5f3f8d;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.promo-scope-tag {
  background: #f8edf4;
  color: #8a3f61;
}

.promo-member-tag {
  background: #eef7f2;
  color: #2f7650;
}

.member-metric-grid {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.member-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}

.member-info-grid div {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: #fbf9fe;
  display: grid;
  gap: 5px;
}

.member-info-grid span,
.history-line span {
  color: var(--muted);
  font-size: 13px;
}

.member-info-grid strong,
.history-line strong {
  color: var(--ink);
}

.member-record-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.history-line {
  border-top: 1px solid var(--line);
  padding: 10px 0;
  display: grid;
  gap: 4px;
}

.history-line:first-of-type {
  border-top: 0;
}

.table-scroll {
  overflow-x: auto;
  border-radius: 8px;
}

.table-line {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 8px 0;
}

.admin-order-list {
  display: grid;
  gap: 14px;
}

.admin-order-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.admin-order-card.has-refund {
  border-color: #e08a8a;
  box-shadow: 0 10px 26px rgba(178, 48, 48, 0.12);
}

.admin-order-card.has-refund .admin-order-head {
  background: #fff6f6;
}

.admin-order-card.status-wait-pay {
  border-color: #f0b35a;
}

.admin-order-card.status-wait-pay .admin-order-head {
  background: #fff8ed;
}

.admin-order-card.status-wait-ship {
  border-color: #bfa7dc;
}

.admin-order-card.status-wait-ship .admin-order-head {
  background: #fbf7ff;
}

.admin-order-card.status-shipping {
  border-color: #7ca8d8;
}

.admin-order-card.status-shipping .admin-order-head {
  background: #f2f8ff;
}

.admin-order-card.status-finished {
  border-color: #8cc7a2;
}

.admin-order-card.status-finished .admin-order-head {
  background: #f3fbf6;
}

.admin-order-card.status-closed {
  border-color: #c9c9d1;
  opacity: 0.86;
}

.admin-order-card.status-closed .admin-order-head {
  background: #f6f6f8;
}

.admin-order-card.has-attached-gifts {
  border-color: #d92d20;
  box-shadow: 0 10px 26px rgba(217, 45, 32, 0.12);
}

.admin-order-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  padding: 14px 16px;
  background: #fbf9fe;
  border-bottom: 1px solid var(--line);
}

.admin-order-head > div,
.admin-order-status {
  display: grid;
  gap: 4px;
}

.admin-order-head span,
.admin-order-head small,
.admin-order-foot span,
.admin-order-goods-info span,
.admin-order-goods-total span {
  color: var(--muted);
  font-size: 13px;
}

.admin-order-status {
  text-align: right;
}

.admin-order-status span {
  color: var(--brand);
  font-weight: 900;
  font-size: 15px;
}

.order-status-pill {
  display: inline-block;
  width: fit-content;
  justify-self: end;
  border-radius: 999px;
  padding: 4px 10px;
  background: #efe7f6;
  color: var(--brand) !important;
  border: 1px solid #d9cde8;
}

.status-wait-pay .order-status-pill {
  background: #fff0d8;
  color: #9a5a00 !important;
  border-color: #f0b35a;
}

.status-wait-ship .order-status-pill {
  background: #efe7f6;
  color: #5f3f8d !important;
  border-color: #cdbfe2;
}

.status-shipping .order-status-pill {
  background: #eaf4ff;
  color: #2167a8 !important;
  border-color: #9cc3ec;
}

.status-finished .order-status-pill {
  background: #e9f8ef;
  color: #237447 !important;
  border-color: #9ed4b1;
}

.status-closed .order-status-pill {
  background: #ededf0;
  color: #5f6470 !important;
  border-color: #cacbd3;
}

.refund-alert {
  display: inline-block;
  width: fit-content;
  justify-self: end;
  background: #b42318;
  color: #fff;
  border-radius: 999px;
  padding: 3px 9px;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.gift-alert {
  display: inline-block;
  width: fit-content;
  justify-self: end;
  background: #d92d20;
  color: #fff;
  border-radius: 999px;
  padding: 3px 9px;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.admin-gift-notice {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  padding: 10px 16px;
  border-bottom: 1px solid var(--line);
  background: #fff3f0;
  color: #b42318;
}

.admin-gift-notice span {
  background: #fff;
  border: 1px solid #f2b8b5;
  border-radius: 999px;
  padding: 4px 8px;
  color: #7a271a;
  font-size: 13px;
}

.admin-gift-notice .btn {
  margin-left: auto;
}

.admin-order-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 16px;
  padding: 14px 16px;
}

.admin-order-goods {
  display: grid;
  gap: 10px;
}

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

.admin-order-goods-info {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.admin-order-goods-info strong {
  overflow-wrap: anywhere;
}

.admin-order-goods-total {
  display: grid;
  gap: 4px;
  justify-items: end;
  font-variant-numeric: tabular-nums;
}

.admin-order-side {
  border-left: 1px solid var(--line);
  padding-left: 16px;
  display: grid;
  align-content: space-between;
  gap: 14px;
}

.admin-order-money {
  display: grid;
  gap: 8px;
}

.admin-order-money span {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
}

.admin-order-money span > em {
  flex: 0 0 64px;
  color: var(--muted);
  font-style: normal;
  white-space: nowrap;
}

.admin-order-money strong {
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  min-width: 0;
  text-align: right;
  overflow-wrap: anywhere;
}

.admin-order-money .admin-paid {
  border-top: 1px solid var(--line);
  padding-top: 10px;
  color: var(--ink);
  font-weight: 900;
}

.admin-order-money .admin-paid strong {
  color: var(--brand);
  font-size: 20px;
}

.admin-order-actions {
  display: grid;
  gap: 8px;
}

.admin-inline-input {
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  background: #fff;
}

.global-order-card .admin-order-actions {
  align-content: end;
}

.global-order-card .admin-order-actions .btn {
  width: 100%;
}

.admin-order-foot {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
  padding: 12px 16px 14px;
  border-top: 1px solid var(--line);
  background: #fff;
}

.admin-order-foot div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.admin-order-foot strong {
  font-size: 13px;
  overflow-wrap: anywhere;
}

.point-status {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  font-style: normal;
  font-weight: 900;
  white-space: nowrap;
}

.point-status.pending {
  background: #fff5e6;
  color: #94640f;
}

.point-status.done {
  background: #eef7f2;
  color: #2f7650;
}

.admin-order-note {
  grid-column: 1 / -1;
}

.refund-admin-list {
  display: grid;
  gap: 14px;
}

.refund-admin-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.refund-admin-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  padding: 14px 16px;
  background: #fbf9fe;
  border-bottom: 1px solid var(--line);
}

.refund-admin-head div {
  display: grid;
  gap: 4px;
}

.refund-admin-head span,
.refund-info-box span,
.refund-money-box span,
.refund-request-item span {
  color: var(--muted);
  font-size: 13px;
}

.refund-admin-head em {
  color: var(--brand);
  font-style: normal;
  font-weight: 900;
  text-align: right;
}

.refund-admin-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 16px;
  padding: 14px 16px;
}

.refund-admin-main,
.refund-block,
.refund-order-goods,
.refund-request-goods,
.refund-info-box,
.refund-money-box,
.refund-admin-side,
.refund-admin-actions {
  display: grid;
  gap: 10px;
}

.refund-block h4 {
  margin: 0;
  color: var(--ink);
}

.refund-highlight-block {
  padding: 12px;
  border: 1px solid #efb8c9;
  border-left: 4px solid var(--brand-2);
  border-radius: 8px;
  background: #fff3f7;
}

.refund-highlight-block h4 {
  color: var(--brand-2);
}

.refund-highlight-block .refund-request-item {
  border-color: #efb8c9;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(179, 44, 91, 0.06);
}

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

.refund-request-item .admin-thumb {
  width: 56px;
  height: 56px;
  flex-basis: 56px;
}

.refund-request-item div {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.refund-request-item strong {
  overflow-wrap: anywhere;
}

.refund-request-item > strong {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.refund-admin-side {
  border-left: 1px solid var(--line);
  padding-left: 16px;
  align-content: start;
}

.refund-money-box {
  padding: 12px;
  background: #fbf9fe;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.refund-money-box span,
.refund-info-box div {
  display: grid;
  gap: 4px;
}

.refund-money-box strong {
  color: var(--brand);
  font-size: 18px;
  overflow-wrap: anywhere;
}

.refund-info-box {
  padding-top: 2px;
}

.refund-info-box strong {
  font-size: 13px;
  overflow-wrap: anywhere;
}

.refund-admin-actions .btn {
  width: 100%;
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 13px;
}

.pagination .btn {
  min-height: 36px;
}

.pagination .btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.order-product-search,
.order-selected-list {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 12px;
  background: #fff;
}

.order-product-head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  background: #fbf9fe;
  color: var(--muted);
  font-weight: 800;
  font-size: 13px;
}

.order-search-row {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 10px;
  padding: 12px;
}

.order-search-results {
  border-top: 1px solid var(--line);
}

.order-search-result,
.order-selected-row {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 150px 84px auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border-top: 1px solid var(--line);
}

.order-selected-row {
  grid-template-columns: minmax(220px, 1fr) 150px 90px 120px auto;
}

.order-search-result:first-child,
.order-selected-row:first-child {
  border-top: 0;
}

.order-search-result strong,
.order-search-result span,
.order-selected-row strong,
.order-selected-row span,
.order-price-note,
.order-price-note span {
  display: block;
}

.order-search-result span,
.order-selected-row span,
.order-price-note span {
  color: var(--muted);
  font-size: 13px;
}

.order-price-note {
  color: var(--brand);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.order-qty-input,
.order-price-input {
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px 8px;
}

.order-selected-row label {
  color: var(--muted);
  font-size: 12px;
  display: grid;
  gap: 4px;
}

.empty-order-items {
  padding: 12px;
  margin: 0;
}

.order-price-input[readonly] {
  background: #f7f2fc;
  color: var(--muted);
}

.order-preview {
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fbf9fe;
  display: grid;
  gap: 8px;
}

.order-preview h4,
.order-preview p {
  margin: 0;
}

.order-preview div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 6px;
}

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

.admin-form-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.admin-form-header h2 {
  margin: 0 0 6px;
}

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

.admin-thumb {
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid var(--line);
  background: var(--soft);
}

.admin-thumb.placeholder {
  display: grid;
  place-items: center;
  color: var(--brand);
  font-weight: 800;
}

.product-form-section {
  margin-bottom: 14px;
}

.product-form-section h3 {
  margin: 0 0 12px;
}

.toggle-row {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 14px;
  color: var(--muted);
}

.toggle-row label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.promo-product-list,
.promo-choice-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-content: flex-start;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.promo-product-list label,
.promo-choice-row label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 9px;
  border: 1px solid #d9cde8;
  border-radius: 999px;
  background: #fbf9fe;
  color: var(--ink);
  font-size: 13px;
}

.promo-product-list label span {
  color: var(--muted);
}

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

.media-wide {
  grid-column: 1 / -1;
}

.media-uploader {
  display: grid;
  gap: 8px;
}

.media-uploader label {
  color: var(--muted);
  font-size: 13px;
}

.media-help {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.media-preview {
  min-height: 150px;
  border: 1px dashed #cdbfe2;
  border-radius: 8px;
  background: #fbf9fe;
  display: grid;
  place-items: center;
  color: var(--muted);
  overflow: hidden;
  padding: 8px;
}

.media-empty {
  display: grid;
  min-height: 132px;
  place-items: center;
  color: var(--muted);
  font-weight: 800;
}

.media-managed-single {
  display: grid;
  width: 100%;
  gap: 10px;
}

.media-preview img {
  width: 100%;
  height: 100%;
  max-height: 230px;
  object-fit: cover;
  border-radius: 6px;
}

.media-preview.multi {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  align-items: stretch;
  gap: 8px;
}

.media-preview.multi img {
  height: 126px;
}

.detail-media-item {
  display: grid;
  gap: 8px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  cursor: grab;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.detail-media-item.is-dragging {
  opacity: 0.55;
  cursor: grabbing;
}

.detail-media-item.is-drag-over {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(122, 91, 184, 0.14);
  transform: translateY(-2px);
}

.detail-media-item img {
  width: 100%;
  height: 126px;
  object-fit: cover;
  border-radius: 6px;
}

.drag-handle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  border-radius: 8px;
  background: #f0ebfa;
  color: var(--brand);
  font-size: 12px;
  font-weight: 900;
  user-select: none;
}

.media-item-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
}

.media-item-actions span {
  flex: 1 1 100%;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.media-item-actions .btn {
  min-height: 30px;
  padding: 0 9px;
  font-size: 12px;
}

.image-media {
  position: relative;
  overflow: hidden;
}

.image-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
}

.image-media video,
.media-preview video {
  width: 100%;
  height: 100%;
  max-height: 430px;
  object-fit: contain;
  background: #000;
  border-radius: 6px;
}

.video-badge {
  position: absolute;
  left: 10px;
  top: 10px;
  background: rgba(39, 34, 53, 0.78);
  color: #fff;
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 12px;
}

.detail-image-list {
  display: block;
  margin-top: 18px;
  line-height: 0;
}

.detail-image-list img {
  display: block;
  width: 100%;
  border: 0;
  border-radius: 0;
  margin: 0;
}

.content-cover,
.content-video {
  margin: 14px 0;
}

.content-cover img,
.content-video video {
  width: 100%;
  max-height: 520px;
  object-fit: contain;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
}

.content-video video {
  background: #000;
}

.content-preview-modal {
  width: min(820px, 100%);
}

.content-preview-body {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: #fff;
}

.content-preview-body h1 {
  margin-top: 10px;
  line-height: 1.3;
}

.content-cover-preview {
  min-height: 220px;
}

.overview-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 18px;
  align-items: stretch;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(135deg, #fbf9fe, #ffffff);
  box-shadow: var(--shadow);
}

.overview-hero span,
.overview-list span,
.overview-todo-card span {
  color: var(--muted);
  font-size: 13px;
}

.overview-hero h3 {
  margin: 6px 0 8px;
  color: var(--ink);
  font-size: 24px;
}

.overview-hero p {
  margin: 0;
  color: var(--muted);
}

.overview-hero-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
  gap: 10px;
}

.overview-hero-metrics .metric {
  min-height: 96px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  padding: 14px;
  border: 1px solid #d9cde8;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(92, 64, 126, 0.08);
}

.overview-hero-metrics .metric span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.overview-hero-metrics .metric strong {
  color: var(--brand);
  font-size: 34px;
  line-height: 1;
  letter-spacing: 0;
}

.overview-todo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
}

.overview-todo-grid.compact {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.overview-todo-card {
  text-align: left;
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.overview-todo-card strong {
  color: var(--ink);
  font-size: 28px;
  line-height: 1;
}

.overview-todo-card small {
  color: var(--muted);
  line-height: 1.5;
}

.overview-todo-card.needs-action {
  border-color: #cdbfe2;
  background: #fbf9fe;
}

.overview-todo-card.needs-action strong {
  color: var(--brand);
}

.overview-todo-card.is-passive {
  border-color: #d9cde8;
  background: #fdfbff;
}

.overview-todo-card.is-passive strong {
  color: #5f3f8d;
}

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

.overview-list,
.overview-actions {
  display: grid;
  gap: 10px;
}

.overview-actions .invoice-shortcut {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.overview-actions .invoice-shortcut.has-new {
  border-color: #c65d83;
  color: #8a3f61;
  background: #fff3f8;
}

.invoice-shortcut em {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 0 7px;
  border-radius: 999px;
  background: #c65d83;
  color: #fff;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.overview-list button {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  text-align: left;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
}

.overview-list button:last-child {
  border-bottom: 0;
}

.overview-list button div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.overview-list em {
  color: var(--brand);
  font-style: normal;
  font-weight: 900;
  white-space: nowrap;
}

.content-block-editor {
  display: grid;
  gap: 12px;
}

.content-block-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.content-block-row textarea {
  min-height: 110px;
}

.content-block-row .media-preview {
  min-height: 180px;
}

.content-block-row input[type="file"] {
  grid-column: 1 / -1;
}

.admin-member-list {
  display: grid;
  gap: 14px;
}

.member-admin-tabs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(128px, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.member-admin-tabs button {
  min-height: 58px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbf9fe;
  color: var(--ink);
  display: grid;
  gap: 3px;
  justify-items: start;
}

.member-admin-tabs button.active {
  border-color: var(--brand);
  background: #f0ebfa;
  color: var(--brand);
}

.member-admin-tabs span {
  font-size: 13px;
  font-weight: 800;
}

.member-admin-tabs strong {
  font-size: 20px;
}

.member-toolbar {
  margin-bottom: 0;
}

.member-admin-card {
  padding: 0;
  overflow: hidden;
}

.member-admin-card > .btn-row {
  padding: 0 16px 16px;
}

.category-admin-list {
  display: grid;
  gap: 10px;
}

.category-admin-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbf9fe;
}

.category-admin-row strong {
  color: var(--brand);
}

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

.exchange-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.exchange-card-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 14px;
  background: #fbf9fe;
  border-bottom: 1px solid var(--line);
}

.exchange-card-head div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.exchange-card-head span,
.exchange-info-grid span {
  color: var(--muted);
  font-size: 13px;
}

.exchange-card-head em {
  color: var(--brand);
  font-style: normal;
  font-weight: 900;
  white-space: nowrap;
}

.exchange-card-body {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 14px;
}

.exchange-card-info {
  min-width: 0;
}

.exchange-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px;
}

.exchange-info-grid div {
  display: grid;
  gap: 4px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.exchange-info-grid strong {
  overflow-wrap: anywhere;
  font-size: 13px;
}

.exchange-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.exchange-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

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

.exchange-table th {
  background: #fbf9fe;
  color: var(--muted);
  font-size: 13px;
}

.exchange-table td {
  font-size: 13px;
}

.exchange-table td strong,
.exchange-table td span {
  display: block;
  overflow-wrap: anywhere;
}

.exchange-table td span {
  color: var(--muted);
  margin-top: 3px;
}

.exchange-table .btn.compact {
  min-height: 32px;
  padding: 6px 10px;
  font-size: 12px;
  white-space: nowrap;
}

.exchange-action-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.level-next-tip {
  display: inline-block;
  margin: 4px 0 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #fbf9fe;
  color: var(--brand);
  font-weight: 800;
}

.refund-modal {
  width: min(760px, 100%);
}

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

.refund-select-item div,
.refund-select-item label {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.refund-select-item span,
.refund-total-box span {
  color: var(--muted);
  font-size: 13px;
}

.refund-qty-input {
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px 8px;
}

.refund-total-box {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbf9fe;
}

.refund-total-box strong {
  color: var(--brand);
  font-size: 20px;
}

.customer-logistics-box {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 8px;
  margin: 10px 0;
}

.customer-logistics-box div {
  display: grid;
  gap: 4px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbf9fe;
}

.customer-logistics-box span {
  color: var(--muted);
  font-size: 13px;
}

.customer-logistics-box strong {
  overflow-wrap: anywhere;
}

.link-btn {
  display: inline;
  background: transparent;
  color: var(--brand);
  padding: 0;
  min-height: 0;
  font: inherit;
  font-weight: 900;
  text-decoration: underline;
}

.customer-gift-notice {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  margin: 10px 0;
  padding: 10px;
  border: 1px solid #f2b8b5;
  border-radius: 8px;
  background: #fff3f0;
  color: #b42318;
}

.customer-gift-notice span {
  background: #fff;
  border: 1px solid #f2b8b5;
  border-radius: 999px;
  padding: 4px 8px;
  color: #7a271a;
  font-size: 13px;
}

.exchange-admin-list {
  display: grid;
  gap: 14px;
}

.exchange-admin-card .refund-request-item {
  grid-template-columns: 56px minmax(0, 1fr) 110px;
}

.order-detail-modal {
  width: min(820px, 100%);
}

.sticky-actions {
  position: sticky;
  bottom: 12px;
  z-index: 5;
  justify-content: flex-end;
  background: rgba(248, 246, 253, 0.92);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
}

.footer-admin {
  max-width: 1180px;
  margin: 26px auto 78px;
  padding: 0 18px;
  text-align: center;
}

.footer-admin button {
  background: transparent;
  color: #9a8dae;
  font-size: 13px;
  text-decoration: underline;
}

.phone-preview-backdrop {
  background: rgba(39, 34, 53, 0.62);
}

.phone-preview-shell {
  width: 390px;
  height: 844px;
  max-width: calc(100vw - 26px);
  max-height: calc(100vh - 26px);
  border: 12px solid #272235;
  border-radius: 34px;
  background: #f8f6fd;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.phone-preview-header {
  height: 46px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.phone-preview-header button {
  background: transparent;
  color: var(--brand);
  font-weight: 800;
}

.phone-preview-screen {
  position: relative;
  overflow-y: auto;
  padding: 14px 12px 18px;
}

.phone-preview-screen .main {
  padding: 0;
}

.phone-preview-screen .grid {
  grid-template-columns: 1fr;
}

.phone-preview-screen .category-strip {
  overflow: visible;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 8px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--line);
}

.phone-preview-screen .category-tab {
  width: 100%;
  height: 36px;
  border-radius: 8px;
  background: var(--brand);
  color: #fff;
}

.phone-preview-screen .category-tab:nth-child(4n + 3),
.phone-preview-screen .category-tab:nth-child(4n + 4) {
  background: #f0ebfa;
  color: #3f286b;
}

.phone-preview-screen .category-tab.active {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}

.phone-preview-screen .detail {
  grid-template-columns: 1fr;
  gap: 12px;
}

.phone-preview-shell > .nav {
  position: static;
  border-top: 1px solid var(--line);
}

.phone-preview-screen .footer-admin {
  display: none;
}

.phone-preview-screen .detail-panel,
.phone-preview-screen .panel {
  padding: 13px;
  box-shadow: none;
}

.phone-preview-screen .detail-panel h1 {
  font-size: 22px;
  line-height: 1.25;
  margin: 8px 0;
}

.phone-preview-screen .product-price-row .price {
  font-size: 24px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.phone-preview-screen .btn-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.phone-preview-screen .section-title {
  white-space: nowrap;
}

.phone-preview-screen .btn {
  width: 100%;
}

.phone-preview-screen .detail-media {
  width: 100%;
}

.phone-preview-screen .list-item {
  display: block;
}

.phone-preview-screen .order-card {
  box-shadow: none;
}

.phone-preview-screen .order-card-head {
  align-items: flex-start;
}

.phone-preview-screen .order-card-head strong {
  overflow-wrap: anywhere;
}

.phone-preview-screen .order-goods-item {
  grid-template-columns: 58px minmax(0, 1fr);
  align-items: start;
  row-gap: 8px;
}

.phone-preview-screen .order-goods-info {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
}

.phone-preview-screen .order-goods-info strong,
.phone-preview-screen .order-goods-info span {
  overflow-wrap: anywhere;
}

.phone-preview-screen .order-goods-price {
  grid-column: 1 / 3;
  justify-items: start;
  display: flex;
  gap: 8px;
  align-items: baseline;
  padding-left: 0;
  margin-left: 68px;
}

.phone-preview-screen .order-summary {
  justify-content: flex-start;
  display: grid;
  gap: 5px;
}

.phone-preview-screen .order-actions {
  display: grid;
  grid-template-columns: 1fr;
}

.phone-preview-screen .cart-qty {
  grid-column: 2;
  justify-self: start;
  margin-top: 4px;
}

.phone-preview-screen .cart-goods-item {
  grid-template-columns: 64px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}

.phone-preview-screen .cart-page .cart-qty {
  grid-column: 2;
  display: flex;
  width: 100%;
  justify-content: flex-start;
  flex-wrap: wrap;
}

.phone-preview-screen .cart-page .cart-qty .cart-remove {
  width: auto;
  padding: 0 8px;
}

.phone-preview-screen .detail-actions {
  position: sticky;
  top: 0;
  z-index: 3;
  background: rgba(248, 246, 253, 0.96);
  backdrop-filter: blur(8px);
  padding: 4px 0 10px;
}

.phone-preview-screen .detail-back {
  min-height: 36px;
  padding: 0 11px;
  font-size: 14px;
}

.phone-preview-screen .detail-icon-actions button {
  width: 36px;
  height: 36px;
}

.phone-preview-screen .detail-panel .btn-row {
  margin-top: 14px;
}

.phone-preview-screen .detail-panel .btn-row .btn {
  min-height: 46px;
  font-size: 16px;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(28, 24, 20, 0.45);
  display: grid;
  place-items: center;
  padding: 18px;
}

.modal {
  width: min(760px, 100%);
  max-height: 88vh;
  overflow: auto;
  background: var(--panel);
  border-radius: 8px;
  padding: 18px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.22);
}

.video-modal video {
  width: 100%;
  max-height: 70vh;
  background: #000;
  border-radius: 8px;
}

.payment-modal {
  max-width: 520px;
}

.payment-modal h2 {
  margin-top: 0;
}

.contact-card-modal {
  max-width: 520px;
}

.contact-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.contact-card-head .brand-mark {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
}

.contact-card-head h2 {
  margin: 0 0 4px;
  color: var(--ink);
}

.contact-card-head p {
  margin: 0;
  color: var(--brand-2);
  font-size: 13px;
  font-weight: 800;
}

.contact-info-grid {
  display: grid;
  gap: 9px;
  margin: 12px 0;
}

.contact-info-line {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbf9fe;
}

.contact-info-line span {
  color: var(--muted);
  font-size: 13px;
}

.contact-info-line strong {
  color: var(--brand);
  font-size: 16px;
  overflow-wrap: anywhere;
}

.contact-value-text {
  margin: 10px 0 14px;
  color: #8a6a9f;
  font-size: 13px;
  font-weight: 800;
  text-align: center;
}

.refund-items {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

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

.refund-item span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  margin-top: 4px;
}

.refund-item .admin-thumb {
  width: 56px;
  height: 56px;
  flex-basis: 56px;
}

.refund-item input[type="number"] {
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px 8px;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 82px;
  z-index: 80;
  max-width: min(360px, calc(100vw - 36px));
  background: var(--ink);
  color: #fff;
  padding: 13px 16px;
  border-radius: 8px;
  box-shadow: 0 16px 38px rgba(57, 35, 84, 0.24);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.5;
}

.confirm-modal {
  width: min(480px, calc(100vw - 36px));
  padding: 26px 28px 22px;
  text-align: center;
}

.confirm-icon {
  width: 54px;
  height: 54px;
  margin: 0 auto 14px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #f0ebfa;
  color: var(--brand);
  font-size: 26px;
  font-weight: 900;
}

.confirm-icon.danger {
  background: #fff1f2;
  color: var(--danger);
}

.confirm-modal h2 {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 22px;
}

.confirm-modal p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
}

.confirm-modal .btn-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 20px;
}

.confirm-modal .btn {
  min-height: 44px;
  font-size: 15px;
}

.payment-confirm-info {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 8px 12px;
  margin: 16px 0;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbf9fe;
  text-align: left;
}

.payment-confirm-info span {
  color: var(--muted);
  font-size: 13px;
}

.payment-confirm-info strong {
  color: var(--ink);
  font-size: 14px;
  overflow-wrap: anywhere;
}

.payment-confirm-field {
  margin-top: 12px;
  text-align: left;
}

.payment-confirm-field input {
  width: 100%;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 900;
}

.refund-notice-modal {
  width: min(560px, calc(100vw - 36px));
  padding: 26px 28px 22px;
  text-align: center;
}

.refund-notice-content {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  text-align: left;
}

.refund-notice-content p {
  margin: 0;
  padding: 11px 12px;
  border: 1px solid #eadcf3;
  border-radius: 8px;
  background: #fbf7ff;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.65;
}

.contact-info-grid.compact {
  margin-top: 4px;
}

@media (max-width: 820px) {
  body {
    overflow-x: hidden;
  }

  .detail,
  .admin-layout,
  .form-grid,
  .admin-order-body,
  .admin-order-foot,
  .admin-order-goods-item,
  .refund-admin-body,
  .refund-request-item,
  .order-search-row,
  .order-search-result,
  .order-selected-row,
  .media-admin-grid {
    grid-template-columns: 1fr;
  }

  .admin-order-head,
  .admin-order-status {
    text-align: left;
  }

  .admin-order-side {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding-left: 0;
    padding-top: 14px;
  }

  .refund-admin-side {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding-left: 0;
    padding-top: 14px;
  }

  .admin-order-goods-total,
  .refund-request-item > strong {
    justify-items: start;
    text-align: left;
  }

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

  .admin-form-header {
    display: block;
  }

  .admin-menu {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    max-height: none;
    overflow: visible;
  }

  .admin-main {
    min-width: 0;
  }

  .admin-form-header .btn-row,
  .toolbar,
  .chip-row,
  .btn-row {
    flex-wrap: wrap;
  }

  .admin-form-header .btn-row .btn,
  .toolbar .btn,
  .toolbar select {
    width: 100%;
  }

  .table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .table {
    min-width: 720px;
  }

  .admin-order-card,
  .refund-admin-card,
  .invoice-admin-card,
  .exchange-admin-card {
    overflow: hidden;
  }

  .admin-order-actions,
  .refund-admin-actions,
  .invoice-admin-actions,
  .promotion-card-actions,
  .category-admin-row .btn-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .admin-order-actions .btn,
  .refund-admin-actions .btn,
  .invoice-admin-actions .btn,
  .promotion-card-actions .btn,
  .category-admin-row .btn {
    width: 100%;
  }

  .sticky-actions {
    position: sticky;
    bottom: 0;
    z-index: 20;
    margin-left: -12px;
    margin-right: -12px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.96);
    border-top: 1px solid var(--line);
    backdrop-filter: blur(8px);
  }

  .sticky-actions .btn {
    flex: 1 1 130px;
  }

  .topbar-inner {
    align-items: center;
    flex-direction: row;
    padding: 10px 12px;
    gap: 8px;
  }

  .admin-mini-link {
    display: none;
  }

  .brand {
    min-width: 0;
    gap: 7px;
    font-size: 14px;
  }

  .brand-mark {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    flex: 0 0 28px;
  }

  .brand-copy strong {
    max-width: 150px;
    font-size: 12px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .brand-copy em {
    max-width: 150px;
    font-size: 9px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .topbar-actions {
    margin-left: auto;
    justify-content: flex-end;
    gap: 6px;
    min-width: 0;
  }

  .brand-value {
    display: none;
  }

  .role-pill {
    display: none;
  }

  .topbar-mini-btn {
    min-height: 28px;
    padding: 0 8px;
    border-radius: 8px;
    font-size: 11px;
  }

  .search {
    min-width: 100%;
  }

  .content-share-tip {
    display: grid;
    gap: 10px;
  }

  .content-share-tip h2 {
    font-size: 18px;
  }

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

  .category-tab {
    min-height: 36px;
  }

  .main {
    padding: 14px 12px 132px;
  }

  .shell {
    padding-bottom: 124px;
  }

  .nav {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    padding: 6px 6px calc(28px + env(safe-area-inset-bottom));
    gap: 4px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 -10px 28px rgba(70, 54, 103, 0.1);
  }

  .nav button {
    height: 48px;
    min-width: 0;
    border-radius: 8px;
    font-size: 11px;
    line-height: 1.1;
    font-weight: 800;
    color: #766c84;
    display: grid;
    place-items: center;
    gap: 2px;
    white-space: nowrap;
    overflow: hidden;
  }

  @supports not (padding: max(0px)) {
    .nav {
      padding-bottom: 34px;
    }
  }

  .nav button::before {
    content: "";
    width: 18px;
    height: 18px;
    border-radius: 7px;
    background: #f0ebfa;
    display: block;
  }

  .nav button.active {
    background: #f6f1fb;
    color: var(--brand);
  }

  .nav button.active::before {
    background: var(--brand);
  }

  body:not(.admin-mode) .modal-backdrop {
    align-items: stretch;
    justify-items: stretch;
    padding: 0;
    place-items: stretch;
    background: #fff;
  }

  body:not(.admin-mode) .modal {
    width: 100%;
    max-width: 100%;
    height: 100dvh;
    max-height: 100dvh;
    border-radius: 0;
    padding: 10px;
    box-shadow: none;
    font-size: 12px;
  }

  body:not(.admin-mode) .modal > h2,
  body:not(.admin-mode) .modal .admin-form-header {
    position: sticky;
    top: 0;
    z-index: 3;
    margin: -10px -10px 8px;
    padding: 9px 10px;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid var(--line);
  }

  body:not(.admin-mode) .modal > h2 {
    font-size: 16px;
    line-height: 1.35;
  }

  body:not(.admin-mode) .modal .admin-form-header h2 {
    margin: 0 0 4px;
    font-size: 16px;
  }

  body:not(.admin-mode) .modal .admin-form-header .muted,
  body:not(.admin-mode) .modal .notice,
  body:not(.admin-mode) .modal p {
    font-size: 11px;
    line-height: 1.5;
  }

  body:not(.admin-mode) .modal .notice {
    padding: 8px 9px;
  }

  body:not(.admin-mode) .modal .form-grid {
    gap: 8px;
  }

  body:not(.admin-mode) .modal .field {
    gap: 4px;
  }

  body:not(.admin-mode) .modal .field label {
    font-size: 11px;
  }

  body:not(.admin-mode) .modal .field input,
  body:not(.admin-mode) .modal .field select,
  body:not(.admin-mode) .modal .field textarea {
    min-height: 34px;
    padding: 6px 8px;
    font-size: 12px;
    line-height: 1.35;
  }

  body:not(.admin-mode) .modal .field textarea {
    min-height: 72px;
  }

  body:not(.admin-mode) .modal .btn {
    font-size: 12px;
  }

  body:not(.admin-mode) .contact-card-modal {
    display: grid;
    align-content: start;
  }

  body:not(.admin-mode) .contact-card-head {
    margin-bottom: 10px;
  }

  body:not(.admin-mode) .contact-card-head .brand-mark {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
  }

  body:not(.admin-mode) .contact-card-head h2 {
    font-size: 17px;
  }

  body:not(.admin-mode) .contact-card-head p,
  body:not(.admin-mode) .contact-value-text {
    font-size: 12px;
  }

  body:not(.admin-mode) .contact-info-line {
    grid-template-columns: 70px minmax(0, 1fr);
    padding: 9px 10px;
  }

  body:not(.admin-mode) .contact-info-line span {
    font-size: 11px;
  }

  body:not(.admin-mode) .contact-info-line strong {
    font-size: 14px;
  }

  body:not(.admin-mode) .modal .btn-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  body:not(.admin-mode) .modal .btn-row .btn,
  body:not(.admin-mode) .payment-modal > .btn {
    width: 100%;
    min-height: 36px;
  }

  body:not(.admin-mode) .modal .receiver-history-field {
    align-items: stretch;
    gap: 8px;
    margin: 0 0 8px;
    padding: 8px;
  }

  body:not(.admin-mode) .modal .receiver-history-field strong {
    font-size: 12px;
  }

  body:not(.admin-mode) .modal .receiver-history-field span {
    font-size: 11px;
  }

  body:not(.admin-mode) .modal .receiver-history-field button {
    min-height: 32px;
    font-size: 11px;
    padding: 0 8px;
  }

  body:not(.admin-mode) .modal .address-picker-panel {
    display: block;
    padding: 0;
    background: #fff;
  }

  body:not(.admin-mode) .modal .address-picker-modal {
    width: 100%;
    max-height: none;
    height: 100dvh;
    border-radius: 0;
    padding: 10px;
    box-shadow: none;
  }

  body:not(.admin-mode) .modal .address-picker-item strong {
    font-size: 12px;
  }

  body:not(.admin-mode) .modal .address-picker-item span {
    font-size: 11px;
  }

  body:not(.admin-mode) .modal .receiver-tip {
    font-size: 11px;
    margin: 4px 0 8px;
  }

  body:not(.admin-mode) .modal .exchange-summary {
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 10px;
    margin-bottom: 10px;
  }

  body:not(.admin-mode) .modal .exchange-summary .product-media {
    width: 58px;
    height: 58px;
    font-size: 20px;
  }

  body:not(.admin-mode) .modal .exchange-summary h3 {
    font-size: 13px;
    line-height: 1.3;
    margin: 0 0 4px;
  }

  body:not(.admin-mode) .modal .exchange-summary p {
    margin: 0 0 3px;
  }

  body:not(.admin-mode) .modal .product-form-section {
    padding: 10px;
  }

  body:not(.admin-mode) .modal .product-form-section h3 {
    font-size: 13px;
    margin: 0 0 7px;
  }

  body:not(.admin-mode) .exchange-modal {
    padding-bottom: 78px;
  }

  body:not(.admin-mode) .exchange-modal .exchange-actions {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 6;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin: 0;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.98);
    border-top: 1px solid var(--line);
    box-shadow: 0 -10px 24px rgba(70, 54, 103, 0.08);
  }

  body:not(.admin-mode) .exchange-modal .exchange-actions .btn {
    width: 100%;
    min-height: 38px;
  }

  .detail-panel h1 {
    font-size: 22px;
    line-height: 1.25;
  }

  .product-price-row .price {
    overflow-wrap: anywhere;
  }

  .product-shipping-inline {
    font-size: 11px;
  }

  body.customer-mode .grid {
    gap: 10px;
  }

  body.customer-mode .card {
    border-radius: 8px;
    box-shadow: none;
  }

  body.customer-mode .card-body {
    padding: 10px;
  }

  body.customer-mode .card-body h3 {
    margin: 0 0 5px;
    font-size: 13px;
    line-height: 1.35;
  }

  body.customer-mode .card-body p {
    margin: 4px 0;
    font-size: 11px;
    line-height: 1.45;
  }

  body.customer-mode .card-body .muted {
    font-size: 11px;
  }

  body.customer-mode .badge-row {
    margin-bottom: 6px;
    gap: 4px;
  }

  body.customer-mode .badge {
    height: 19px;
    padding: 0 6px;
    font-size: 10px;
  }

  body.customer-mode .product-commerce {
    gap: 5px;
    margin: 7px 0 9px;
  }

  body.customer-mode .product-price-row {
    gap: 6px;
  }

  body.customer-mode .product-price-label,
  body.customer-mode .product-spec-row,
  body.customer-mode .product-spec-row strong,
  body.customer-mode .promo-tags span {
    font-size: 11px;
  }

  body.customer-mode .product-price-row .price {
    font-size: 18px;
  }

  body.customer-mode .product-shipping-inline {
    min-height: 21px;
    padding: 0 6px;
    font-size: 10px;
  }

  body.customer-mode .card-body .btn {
    min-height: 34px;
    padding: 0 10px;
    font-size: 12px;
  }

  body.customer-mode .section-title {
    font-size: 16px;
    margin-bottom: 8px;
  }

  body.customer-mode .panel h2 {
    margin: 0 0 6px;
    font-size: 16px;
  }

  body.customer-mode .panel p,
  body.customer-mode .panel .notice {
    font-size: 11px;
    line-height: 1.5;
  }

  body.customer-mode .profile-points-panel h3,
  body.customer-mode .profile-points-summary strong {
    font-size: 16px;
  }

  body.customer-mode .profile-points-summary span,
  body.customer-mode .list-item strong,
  body.customer-mode .list-item span,
  body.customer-mode .list-item p {
    font-size: 11px;
    line-height: 1.45;
  }

  body.customer-mode .list-item {
    padding: 10px;
    gap: 8px;
  }

  body.customer-mode .profile-section .panel > .btn {
    min-height: 34px;
    padding: 0 10px;
    font-size: 12px;
  }

  body.customer-mode .profile-section .list.section {
    margin-top: 10px;
    gap: 8px;
  }

  body.customer-mode .exchange-table-wrap {
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
    overflow: visible;
  }

  body.customer-mode .section > .section-title + .exchange-table-wrap {
    margin-top: 6px;
  }

  body.customer-mode .exchange-table {
    min-width: 0;
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 8px;
  }

  body.customer-mode .exchange-table thead {
    display: none;
  }

  body.customer-mode .exchange-table,
  body.customer-mode .exchange-table tbody,
  body.customer-mode .exchange-table tr,
  body.customer-mode .exchange-table td {
    display: block;
  }

  body.customer-mode .exchange-table tr {
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
  }

  body.customer-mode .exchange-table td {
    padding: 6px 0;
    border: 0;
    font-size: 11px;
    line-height: 1.45;
  }

  body.customer-mode .exchange-table td:first-child {
    padding-top: 0;
  }

  body.customer-mode .exchange-table td:first-child strong {
    display: block;
    color: var(--ink);
    font-size: 13px;
    line-height: 1.35;
  }

  body.customer-mode .exchange-table td:first-child span {
    margin-top: 3px;
  }

  body.customer-mode .exchange-table td:nth-child(2),
  body.customer-mode .exchange-table td:nth-child(3) {
    display: inline-flex;
    width: auto;
    margin-right: 8px;
    padding: 3px 7px;
    border-radius: 999px;
    background: #f4effb;
    color: var(--brand);
    font-weight: 800;
  }

  body.customer-mode .exchange-table td:nth-child(2)::before {
    content: "积分 ";
    color: var(--muted);
    font-weight: 700;
  }

  body.customer-mode .exchange-table td:nth-child(3)::before {
    content: "方式 ";
    color: var(--muted);
    font-weight: 700;
  }

  body.customer-mode .exchange-table td:nth-child(4) {
    clear: both;
    margin-top: 5px;
    padding: 8px;
    border-radius: 8px;
    background: #fbf9fe;
  }

  body.customer-mode .exchange-table td:nth-child(4) strong {
    display: block;
    color: var(--brand);
    font-size: 12px;
    margin-bottom: 3px;
  }

  body.customer-mode .exchange-table td:nth-child(4) span,
  body.customer-mode .exchange-table td:nth-child(5) span,
  body.customer-mode .exchange-table td:nth-child(6) span {
    display: block;
    margin-top: 3px;
    color: var(--muted);
    font-size: 11px;
    overflow-wrap: anywhere;
  }

  body.customer-mode .exchange-table td:nth-child(5)::before {
    content: "收货/物流";
    display: block;
    margin-bottom: 3px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 800;
  }

  body.customer-mode .exchange-table td:nth-child(6)::before {
    content: "时间";
    display: block;
    margin-bottom: 3px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 800;
  }

  body.customer-mode .exchange-action-stack {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }

  body.customer-mode .exchange-action-stack .btn,
  body.customer-mode .exchange-action-stack .muted {
    width: 100%;
    min-height: 32px;
    padding: 0 8px;
    font-size: 11px;
    display: grid;
    place-items: center;
  }

  .promotion-guide {
    display: grid;
    gap: 8px;
  }

  .promotion-guide strong,
  .promotion-guide small {
    white-space: normal;
  }

  .detail-panel .btn-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .detail-panel .btn {
    width: 100%;
    min-height: 46px;
  }

  .cart-goods-item {
    grid-template-columns: 64px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
  }

  .cart-page .cart-qty {
    grid-column: 2;
    display: flex;
    justify-content: flex-start;
    flex-wrap: wrap;
    margin-top: 2px;
  }

  .cart-page .cart-qty .cart-remove {
    width: auto;
    padding: 0 8px;
  }

  body.customer-mode .cart-page {
    margin-left: -12px;
    margin-right: -12px;
    border-left: 0;
    border-right: 0;
    border-radius: 0;
    padding: 10px;
    box-shadow: none;
  }

  body.customer-mode .cart-page h2 {
    margin: 0 0 8px;
    font-size: 16px;
  }

  body.customer-mode .cart-goods-item {
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 9px;
    padding: 9px 0;
  }

  body.customer-mode .cart-goods-item .product-media {
    width: 52px;
    height: 52px;
    font-size: 18px;
  }

  body.customer-mode .cart-goods-info {
    gap: 4px;
  }

  body.customer-mode .cart-goods-info strong {
    font-size: 12px;
    line-height: 1.35;
  }

  body.customer-mode .cart-goods-info span {
    font-size: 12px;
  }

  body.customer-mode .cart-page .cart-qty {
    grid-column: 2;
    margin-top: 3px;
    gap: 5px;
  }

  body.customer-mode .cart-qty button {
    width: 28px;
    height: 28px;
    font-size: 14px;
  }

  body.customer-mode .cart-qty span {
    min-width: 28px;
    height: 28px;
    font-size: 12px;
  }

  body.customer-mode .cart-page .btn-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 10px;
  }

  body.customer-mode .cart-page .btn {
    min-height: 36px;
    font-size: 12px;
  }

  .refund-item {
    grid-template-columns: 24px 52px minmax(0, 1fr);
  }

  .refund-item input[type="number"] {
    grid-column: 3;
  }

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

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

  .profile-tabs button {
    min-height: 38px;
    font-size: 13px;
    padding: 0 6px;
  }

  .profile-summary {
    margin-left: -12px;
    margin-right: -12px;
    border-left: 0;
    border-right: 0;
    border-radius: 0;
    padding: 12px 14px;
  }

  .profile-summary h2 {
    margin: 0 0 6px;
    font-size: 18px;
  }

  .profile-summary p {
    margin: 4px 0;
    font-size: 12px;
    line-height: 1.45;
  }

  .profile-summary .btn-row {
    margin-top: 8px;
  }

  .profile-summary .btn {
    min-height: 34px;
    font-size: 12px;
    width: auto;
  }

  .profile-section {
    margin-left: -12px;
    margin-right: -12px;
  }

  .profile-section .profile-tabs {
    position: sticky;
    top: 49px;
    z-index: 4;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding: 8px 12px;
    margin: 0;
    background: rgba(248, 246, 253, 0.98);
    border-bottom: 1px solid var(--line);
  }

  .profile-section .profile-tabs button {
    min-height: 34px;
    font-size: 12px;
    border-radius: 8px;
  }

  .profile-list {
    gap: 8px;
    padding: 10px 8px 0;
  }

  .profile-list .order-card {
    width: 100%;
    border-left: 0;
    border-right: 0;
    border-radius: 0;
    padding: 10px 10px 11px;
    box-shadow: none;
  }

  .profile-list .order-card-head {
    gap: 8px;
    padding-bottom: 8px;
  }

  .profile-list .order-head-main {
    min-width: 0;
  }

  .profile-list .order-head-main strong {
    font-size: 12px;
    line-height: 1.35;
    overflow-wrap: anywhere;
  }

  .profile-list .order-head-main small {
    font-size: 10px;
    line-height: 1.45;
  }

  .profile-list .customer-order-status {
    min-height: 24px;
    padding: 0 7px;
    border-radius: 999px;
    font-size: 11px;
    flex: 0 0 auto;
  }

  .profile-list .order-goods {
    gap: 6px;
    padding: 8px 0;
  }

  .profile-list .order-goods-item {
    grid-template-columns: 52px minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
  }

  .profile-list .order-goods-item .product-media {
    width: 52px;
    height: 52px;
    font-size: 20px;
  }

  .profile-list .order-goods-info {
    min-width: 0;
    gap: 4px;
  }

  .profile-list .order-goods-info strong {
    font-size: 12px;
    line-height: 1.35;
    overflow-wrap: anywhere;
  }

  .profile-list .qty-text {
    font-size: 10px;
    padding: 2px 6px;
  }

  .profile-list .order-goods-price strong {
    font-size: 12px;
  }

  .profile-list .order-summary {
    justify-content: flex-start;
    display: flex;
    gap: 6px 10px;
    padding-top: 8px;
    font-size: 11px;
    line-height: 1.45;
  }

  .profile-list .order-summary strong {
    font-size: 13px;
  }

  .profile-list .customer-logistics-box {
    grid-template-columns: 1fr;
    gap: 5px;
    margin: 8px 0;
  }

  .profile-list .customer-logistics-box div {
    padding: 7px 8px;
  }

  .profile-list .customer-logistics-box span,
  .profile-list .customer-logistics-box strong,
  .profile-list > .order-card > .muted {
    font-size: 11px;
    line-height: 1.45;
  }

  .profile-list .order-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
    margin-top: 8px;
  }

  .profile-list .order-actions .btn,
  .profile-list .order-state-tag {
    width: 100%;
    min-height: 32px;
    padding: 0 8px;
    border-radius: 8px;
    font-size: 11px;
    justify-content: center;
  }

  .profile-points-summary {
    grid-template-columns: 1fr;
  }

  .invoice-info-line {
    grid-template-columns: 88px minmax(0, 1fr);
  }

  .order-detail-modal {
    width: 100%;
    max-width: 100%;
    height: 100dvh;
    max-height: 100dvh;
    border-radius: 0;
    padding: 10px;
  }

  .order-detail-modal .admin-form-header {
    position: sticky;
    top: 0;
    z-index: 2;
    margin: -10px -10px 8px;
    padding: 9px 10px;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid var(--line);
  }

  .order-detail-modal .admin-form-header h2 {
    margin: 0 0 4px;
    font-size: 16px;
  }

  .order-detail-modal .admin-form-header .muted,
  .order-detail-modal p {
    font-size: 11px;
    line-height: 1.5;
  }

  .order-detail-modal .product-form-section {
    padding: 10px;
    box-shadow: none;
  }

  .order-detail-modal .product-form-section h3 {
    margin: 0 0 7px;
    font-size: 13px;
  }

  .order-detail-modal .order-goods-item {
    grid-template-columns: 48px minmax(0, 1fr) auto;
    gap: 7px;
  }

  .order-detail-modal .order-goods-item .product-media {
    width: 48px;
    height: 48px;
    font-size: 18px;
  }

  .order-detail-modal .order-goods-info strong,
  .order-detail-modal .order-goods-price strong,
  .order-detail-modal .invoice-info-line strong {
    font-size: 11px;
  }

  .order-detail-modal .invoice-info-line span,
  .order-detail-modal .order-summary,
  .order-detail-modal .qty-text {
    font-size: 10px;
  }

  .refund-modal {
    width: 100%;
    max-width: 100%;
    height: 100dvh;
    max-height: 100dvh;
    border-radius: 0;
    padding: 10px;
  }

  .refund-modal .admin-form-header {
    position: sticky;
    top: 0;
    z-index: 2;
    margin: -10px -10px 8px;
    padding: 9px 10px;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid var(--line);
  }

  .refund-modal .admin-form-header h2 {
    margin: 0 0 4px;
    font-size: 16px;
  }

  .refund-modal .admin-form-header .muted,
  .refund-modal .notice {
    font-size: 11px;
    line-height: 1.5;
  }

  .refund-modal .notice {
    padding: 9px 10px;
    margin: 8px 0;
  }

  .refund-modal .refund-request-goods {
    display: grid;
    gap: 8px;
  }

  body:not(.admin-mode) .return-modal .refund-request-goods,
  body:not(.admin-mode) .order-detail-modal .refund-request-goods {
    display: grid;
    gap: 8px;
  }

  body:not(.admin-mode) .return-modal .refund-request-item,
  body:not(.admin-mode) .order-detail-modal .refund-request-item {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 8px;
    align-items: start;
    padding: 10px;
  }

  body:not(.admin-mode) .return-modal .refund-request-item .product-media,
  body:not(.admin-mode) .order-detail-modal .refund-request-item .product-media {
    width: 48px;
    height: 48px;
    font-size: 18px;
  }

  body:not(.admin-mode) .return-modal .refund-request-item > strong,
  body:not(.admin-mode) .order-detail-modal .refund-request-item > strong {
    grid-column: 2;
    justify-self: start;
    font-size: 11px;
  }

  body:not(.admin-mode) .return-modal .refund-request-item div strong,
  body:not(.admin-mode) .order-detail-modal .refund-request-item div strong {
    font-size: 12px;
    line-height: 1.35;
  }

  .refund-modal .refund-select-item {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 8px;
    align-items: start;
    padding: 10px;
  }

  .refund-modal .refund-select-item .admin-thumb {
    width: 48px;
    height: 48px;
    flex-basis: 48px;
  }

  .refund-modal .refund-select-info {
    gap: 4px;
  }

  .refund-modal .refund-select-info strong {
    font-size: 12px;
    line-height: 1.35;
    overflow-wrap: anywhere;
  }

  .refund-modal .refund-select-info span,
  .refund-modal .refund-qty-field span {
    font-size: 10px;
  }

  .refund-modal .refund-qty-field {
    grid-column: 1 / -1;
    grid-template-columns: 72px minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--line);
  }

  .refund-modal .refund-qty-input {
    min-height: 34px;
    font-size: 12px;
  }

  .refund-modal .product-form-section {
    padding: 10px;
    box-shadow: none;
  }

  .refund-modal .product-form-section h3 {
    margin: 0 0 7px;
    font-size: 13px;
  }

  .refund-modal .field label,
  .refund-modal .field input,
  .refund-modal .field select,
  .refund-modal .field textarea {
    font-size: 12px;
  }

  .refund-modal .refund-total-box {
    position: sticky;
    bottom: 62px;
    z-index: 3;
    padding: 10px;
    border-radius: 8px;
  }

  .refund-modal .refund-total-box strong {
    font-size: 18px;
  }

  .exchange-summary {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .exchange-summary .product-media {
    width: 72px;
    height: 72px;
  }

  .pagination {
    display: grid;
    grid-template-columns: 1fr;
  }

  .pagination .btn {
    width: 100%;
  }

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

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

  .promotion-list-head {
    display: none;
  }

  .promotion-date {
    grid-column: 1 / -1;
  }

  .promotion-rule {
    font-size: 17px;
  }

  .promotion-card-actions {
    justify-content: center;
    flex-wrap: wrap;
  }

  .order-preview div {
    display: grid;
  }

  .detail-actions {
    position: sticky;
    top: 0;
    z-index: 3;
    background: rgba(248, 246, 253, 0.96);
    backdrop-filter: blur(8px);
    padding: 4px 0 10px;
  }

}

@media (max-width: 820px) {
  body.admin-mode {
    background: #f7f3fb;
    font-size: 13px;
  }

  body.admin-mode .shell {
    padding-bottom: max(16px, env(safe-area-inset-bottom));
  }

  body.admin-mode .topbar {
    z-index: 30;
  }

  body.admin-mode .topbar-inner {
    min-height: 48px;
    padding: 8px 10px;
  }

  body.admin-mode .brand {
    font-size: 13px;
  }

  body.admin-mode .main {
    width: 100%;
    max-width: none;
    padding: 10px 10px 18px;
  }

  body.admin-mode .admin-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  body.admin-mode .admin-menu {
    position: sticky;
    top: 49px;
    z-index: 22;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 7px;
    overflow: visible;
    max-width: 100vw;
    margin: 0 -10px;
    padding: 8px 10px;
    border-width: 0 0 1px;
    border-radius: 0;
    background: rgba(247, 243, 251, 0.98);
    box-shadow: 0 8px 18px rgba(70, 54, 103, 0.08);
  }

  body.admin-mode .admin-menu button {
    width: 100%;
    min-width: 0;
    height: 34px;
    padding: 0 5px;
    border: 1px solid #ded3ed;
    border-radius: 8px;
    background: #fff;
    color: #5e4a7d;
    text-align: center;
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  body.admin-mode .admin-menu button.active {
    border-color: var(--brand);
    background: var(--brand);
    color: #fff;
  }

  body.admin-mode .admin-menu .admin-front-btn {
    margin: 0;
    border-color: #d8c9e8;
    background: #efe7f6;
    color: var(--brand);
  }

  body.admin-mode .admin-main {
    display: grid;
    gap: 10px;
  }

  body.admin-mode .admin-form-header {
    display: grid;
    grid-template-columns: 1fr;
    gap: 9px;
    margin-bottom: 10px;
    padding: 11px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 8px 20px rgba(70, 54, 103, 0.07);
  }

  body.admin-mode .admin-form-header h2 {
    margin: 0 0 3px;
    font-size: 17px;
    line-height: 1.3;
  }

  body.admin-mode .admin-form-header .muted {
    margin: 0;
    font-size: 11px;
    line-height: 1.45;
  }

  body.admin-mode .admin-form-header .btn-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }

  body.admin-mode .admin-form-header .btn-row .btn {
    width: 100%;
  }

  body.admin-mode .panel,
  body.admin-mode .detail-panel,
  body.admin-mode .promotion-card,
  body.admin-mode .refund-admin-card,
  body.admin-mode .invoice-admin-card,
  body.admin-mode .exchange-card,
  body.admin-mode .exchange-admin-card,
  body.admin-mode .member-admin-card,
  body.admin-mode .admin-order-card {
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(70, 54, 103, 0.07);
  }

  body.admin-mode .panel {
    padding: 12px;
  }

  body.admin-mode .section {
    margin-top: 10px;
  }

  body.admin-mode .toolbar {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    margin-bottom: 10px;
  }

  body.admin-mode .toolbar .search,
  body.admin-mode .toolbar input,
  body.admin-mode .toolbar select,
  body.admin-mode .toolbar .btn,
  body.admin-mode .search {
    width: 100%;
    min-width: 0;
  }

  body.admin-mode input,
  body.admin-mode select,
  body.admin-mode textarea,
  body.admin-mode .search,
  body.admin-mode .admin-inline-input {
    min-height: 36px;
    padding: 7px 9px;
    border-radius: 8px;
    font-size: 12px;
  }

  body.admin-mode textarea {
    min-height: 82px;
  }

  body.admin-mode .field {
    gap: 5px;
  }

  body.admin-mode .field label {
    font-size: 12px;
  }

  body.admin-mode .btn,
  body.admin-mode .chip {
    min-height: 34px;
    padding: 7px 10px;
    border-radius: 8px;
    font-size: 12px;
    line-height: 1.25;
  }

  body.admin-mode .btn-row,
  body.admin-mode .chip-row {
    gap: 7px;
  }

  body.admin-mode .chip-row {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 2px;
    -webkit-overflow-scrolling: touch;
  }

  body.admin-mode .chip-row .chip {
    flex: 0 0 auto;
  }

  body.admin-mode .overview-hero {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 12px;
  }

  body.admin-mode .overview-hero span,
  body.admin-mode .overview-list span,
  body.admin-mode .overview-todo-card span {
    font-size: 11px;
  }

  body.admin-mode .overview-hero h3 {
    margin: 4px 0 5px;
    font-size: 18px;
  }

  body.admin-mode .overview-hero p {
    font-size: 11px;
    line-height: 1.5;
  }

  body.admin-mode .overview-hero-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
  }

  body.admin-mode .overview-hero-metrics .metric {
    min-height: 68px;
    gap: 5px;
    padding: 9px 7px;
    text-align: center;
  }

  body.admin-mode .overview-hero-metrics .metric span {
    font-size: 11px;
  }

  body.admin-mode .overview-hero-metrics .metric strong {
    font-size: 22px;
  }

  body.admin-mode .overview-todo-grid,
  body.admin-mode .overview-todo-grid.compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  body.admin-mode .overview-todo-card {
    gap: 5px;
    padding: 10px;
  }

  body.admin-mode .overview-todo-card strong {
    font-size: 22px;
  }

  body.admin-mode .overview-todo-card small {
    font-size: 10px;
    line-height: 1.35;
  }

  body.admin-mode .overview-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  body.admin-mode .overview-grid .panel:first-child {
    display: none;
  }

  body.admin-mode .overview-list button {
    padding: 9px 0;
  }

  body.admin-mode .overview-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  body.admin-mode .overview-actions .btn {
    width: 100%;
  }

  body.admin-mode .member-admin-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
    margin-bottom: 10px;
  }

  body.admin-mode .member-admin-tabs button {
    min-height: 46px;
    padding: 8px;
  }

  body.admin-mode .member-admin-tabs span {
    font-size: 11px;
  }

  body.admin-mode .member-admin-tabs strong {
    font-size: 17px;
  }

  body.admin-mode .member-admin-card > .btn-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 0 12px 12px;
  }

  body.admin-mode .member-info-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 0 12px;
  }

  body.admin-mode .member-info-grid div {
    padding: 8px;
  }

  body.admin-mode .member-search-toolbar {
    grid-template-columns: 1fr 1fr;
  }

  body.admin-mode .member-search-toolbar .search,
  body.admin-mode .member-search-toolbar .muted {
    grid-column: 1 / -1;
  }

  body.admin-mode .admin-order-list,
  body.admin-mode .refund-admin-list,
  body.admin-mode .exchange-list,
  body.admin-mode .exchange-admin-list,
  body.admin-mode .promotion-list,
  body.admin-mode .admin-member-list {
    gap: 10px;
  }

  body.admin-mode .admin-order-head,
  body.admin-mode .refund-admin-head,
  body.admin-mode .exchange-card-head {
    display: grid;
    grid-template-columns: 1fr;
    gap: 7px;
    padding: 11px 12px;
  }

  body.admin-mode .admin-order-head strong,
  body.admin-mode .refund-admin-head strong,
  body.admin-mode .exchange-card-head strong {
    font-size: 13px;
    line-height: 1.35;
    overflow-wrap: anywhere;
  }

  body.admin-mode .admin-order-head span,
  body.admin-mode .admin-order-head small,
  body.admin-mode .admin-order-foot span,
  body.admin-mode .admin-order-goods-info span,
  body.admin-mode .admin-order-goods-total span,
  body.admin-mode .refund-admin-head span,
  body.admin-mode .refund-admin-head small,
  body.admin-mode .exchange-card-head span,
  body.admin-mode .exchange-info-grid span {
    font-size: 10px;
    line-height: 1.35;
  }

  body.admin-mode .admin-order-status {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    text-align: left;
  }

  body.admin-mode .admin-order-status span,
  body.admin-mode .order-status-pill,
  body.admin-mode .refund-alert,
  body.admin-mode .gift-alert {
    justify-self: start;
    font-size: 11px;
    padding: 3px 8px;
  }

  body.admin-mode .admin-order-status small {
    flex-basis: 100%;
    font-size: 10px;
  }

  body.admin-mode .admin-gift-notice {
    padding: 8px 12px;
    font-size: 11px;
  }

  body.admin-mode .admin-gift-notice .btn {
    width: 100%;
    margin-left: 0;
  }

  body.admin-mode .admin-order-body {
    gap: 10px;
    padding: 10px 12px;
  }

  body.admin-mode .admin-order-goods {
    gap: 8px;
  }

  body.admin-mode .admin-order-goods-item {
    grid-template-columns: 50px minmax(0, 1fr);
    gap: 8px;
    padding: 8px;
    align-items: start;
  }

  body.admin-mode .admin-order-goods-item .admin-thumb,
  body.admin-mode .refund-request-item .admin-thumb,
  body.admin-mode .product-media {
    width: 50px;
    height: 50px;
    flex-basis: 50px;
    font-size: 18px;
  }

  body.admin-mode .admin-order-goods-info {
    gap: 3px;
  }

  body.admin-mode .admin-order-goods-info strong {
    font-size: 12px;
    line-height: 1.35;
  }

  body.admin-mode .admin-order-goods-total {
    grid-column: 2;
    justify-items: start;
    text-align: left;
    font-size: 11px;
  }

  body.admin-mode .admin-order-side {
    gap: 10px;
    padding-top: 10px;
  }

  body.admin-mode .admin-order-money {
    gap: 6px;
    padding: 9px;
    border-radius: 8px;
    background: #fbf9fe;
  }

  body.admin-mode .admin-order-money span {
    gap: 8px;
    font-size: 11px;
  }

  body.admin-mode .admin-order-money span > em {
    flex-basis: 58px;
  }

  body.admin-mode .admin-order-money strong {
    font-size: 11px;
  }

  body.admin-mode .admin-order-money .admin-paid {
    padding-top: 7px;
  }

  body.admin-mode .admin-order-money .admin-paid strong {
    font-size: 15px;
  }

  body.admin-mode .admin-order-actions,
  body.admin-mode .refund-admin-actions,
  body.admin-mode .invoice-admin-actions,
  body.admin-mode .promotion-card-actions,
  body.admin-mode .category-admin-row .btn-row,
  body.admin-mode .exchange-action-stack {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }

  body.admin-mode .admin-order-actions .btn,
  body.admin-mode .refund-admin-actions .btn,
  body.admin-mode .invoice-admin-actions .btn,
  body.admin-mode .promotion-card-actions .btn,
  body.admin-mode .category-admin-row .btn,
  body.admin-mode .exchange-action-stack .btn {
    width: 100%;
  }

  body.admin-mode .admin-order-foot {
    grid-template-columns: 1fr;
    gap: 7px;
    padding: 10px 12px;
  }

  body.admin-mode .admin-order-foot div {
    grid-template-columns: 72px minmax(0, 1fr);
    align-items: start;
  }

  body.admin-mode .admin-order-foot strong {
    font-size: 11px;
    line-height: 1.4;
  }

  body.admin-mode .refund-admin-body,
  body.admin-mode .exchange-card-body {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 10px 12px;
  }

  body.admin-mode .refund-request-item,
  body.admin-mode .refund-select-item,
  body.admin-mode .order-goods-item {
    grid-template-columns: 50px minmax(0, 1fr);
    gap: 8px;
    padding: 8px;
  }

  body.admin-mode .refund-request-item > strong,
  body.admin-mode .refund-select-item > strong {
    grid-column: 2;
    justify-self: start;
    font-size: 11px;
  }

  body.admin-mode .exchange-info-grid {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  body.admin-mode .exchange-info-grid div {
    padding: 8px;
  }

  body.admin-mode .invoice-info-page {
    display: grid;
    gap: 7px;
  }

  body.admin-mode .invoice-info-line {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 8px;
    padding: 8px 0;
  }

  body.admin-mode .invoice-upload-box {
    grid-template-columns: 1fr 1fr;
    gap: 7px;
    padding: 0 12px 12px;
  }

  body.admin-mode .invoice-upload-box .admin-inline-input,
  body.admin-mode .invoice-upload-box .invoice-upload-status {
    grid-column: 1 / -1;
  }

  body.admin-mode .invoice-upload-box .btn,
  body.admin-mode .invoice-upload-box .file-btn {
    width: 100%;
  }

  body.admin-mode .invoice-upload-status {
    min-height: 32px;
    font-size: 11px;
  }

  body.admin-mode .table-scroll,
  body.admin-mode .exchange-table-wrap {
    margin-left: -12px;
    margin-right: -12px;
    border-radius: 0;
  }

  body.admin-mode .table,
  body.admin-mode .exchange-table {
    min-width: 640px;
    font-size: 12px;
  }

  body.admin-mode .table th,
  body.admin-mode .table td,
  body.admin-mode .exchange-table th,
  body.admin-mode .exchange-table td {
    padding: 8px;
  }

  body.admin-mode .promotion-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  body.admin-mode .promotion-card {
    gap: 9px;
    padding: 11px;
  }

  body.admin-mode .promotion-rule {
    font-size: 15px;
  }

  body.admin-mode .promotion-chip,
  body.admin-mode .promotion-date {
    font-size: 11px;
  }

  body.admin-mode .category-admin-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 9px;
    padding: 10px;
  }

  body.admin-mode .content-block-row {
    grid-template-columns: 1fr;
    padding: 10px;
  }

  body.admin-mode .content-block-row .media-preview {
    min-height: 140px;
  }

  body.admin-mode .media-admin-grid {
    gap: 9px;
  }

  body.admin-mode .mobile-product-summary {
    padding: 10px;
  }

  body.admin-mode .mobile-product-summary .admin-product-cell {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 9px;
    align-items: center;
  }

  body.admin-mode .mobile-product-summary strong {
    display: block;
    font-size: 13px;
    line-height: 1.35;
    overflow-wrap: anywhere;
  }

  body.admin-mode .mobile-product-summary .muted {
    display: block;
    margin-top: 3px;
    font-size: 11px;
  }

  body.admin-mode .mobile-content-card {
    display: grid;
    gap: 8px;
    padding: 10px;
  }

  body.admin-mode .mobile-content-card .admin-product-cell {
    display: grid;
    grid-template-columns: 50px minmax(0, 1fr);
    gap: 9px;
    align-items: center;
  }

  body.admin-mode .mobile-content-card strong {
    display: block;
    font-size: 13px;
    line-height: 1.35;
    overflow-wrap: anywhere;
  }

  body.admin-mode .mobile-content-card p {
    margin: 0;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.5;
  }

  body.admin-mode .mobile-content-meta {
    display: flex;
    gap: 7px;
    flex-wrap: wrap;
  }

  body.admin-mode .mobile-content-meta span {
    padding: 4px 8px;
    border-radius: 999px;
    background: #f0ebfa;
    color: var(--brand);
    font-size: 10px;
    font-weight: 800;
  }

  body.admin-mode .sticky-actions {
    position: sticky;
    bottom: 0;
    z-index: 24;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin: 10px -12px -12px;
    padding: 9px 12px calc(9px + env(safe-area-inset-bottom));
    border-width: 1px 0 0;
    border-radius: 0;
    background: rgba(255, 255, 255, 0.98);
  }

  body.admin-mode .sticky-actions .btn {
    width: 100%;
  }

  body.admin-mode .modal-backdrop {
    align-items: stretch;
    justify-items: stretch;
    padding: 0;
    place-items: stretch;
  }

  body.admin-mode .modal {
    width: 100%;
    max-width: 100%;
    height: 100dvh;
    max-height: 100dvh;
    border-radius: 0;
    padding: 10px;
    font-size: 12px;
  }

  body.admin-mode .modal .admin-form-header {
    position: sticky;
    top: 0;
    z-index: 4;
    margin: -10px -10px 10px;
    border-radius: 0;
    box-shadow: none;
  }

  body.admin-mode .toast {
    left: 10px;
    right: 10px;
    bottom: 18px;
    max-width: none;
    padding: 12px 14px;
    text-align: center;
    font-size: 13px;
  }

  body.admin-mode .confirm-modal,
  body:not(.admin-mode) .confirm-modal {
    align-self: center;
    justify-self: center;
    width: min(340px, calc(100vw - 28px));
    height: auto;
    max-height: none;
    padding: 22px 18px 18px;
    border-radius: 8px;
    box-shadow: 0 24px 80px rgba(57, 35, 84, 0.24);
  }

  body.admin-mode .confirm-modal h2,
  body:not(.admin-mode) .confirm-modal h2 {
    font-size: 18px;
  }

  body.admin-mode .confirm-modal p,
  body:not(.admin-mode) .confirm-modal p {
    font-size: 13px;
    line-height: 1.65;
  }

  body.admin-mode .confirm-modal .btn,
  body:not(.admin-mode) .confirm-modal .btn {
    min-height: 40px;
    font-size: 13px;
  }
}
