:root {
  --bg: #f7f1e7;
  --panel: rgba(255, 252, 246, 0.92);
  --ink: #25201b;
  --muted: #857462;
  --line: rgba(108, 82, 51, 0.14);
  --gold: #b98a45;
  --dark: #2a241f;
  --soft: #fff7ec;
  --danger: #9f463f;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at top right, rgba(221, 191, 142, 0.24), transparent 34%),
    linear-gradient(135deg, #fbf7ef 0%, var(--bg) 48%, #efe3d1 100%);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  letter-spacing: 0;
}

body.admin-locked {
  overflow: hidden;
}

body.admin-auth-checking .sidebar,
body.admin-auth-checking .app {
  visibility: hidden;
}

body.admin-locked .sidebar,
body.admin-locked .app {
  pointer-events: none;
  filter: blur(10px);
}

body.support-mode {
  overflow: hidden;
}

body.support-mode .sidebar,
body.support-mode .app {
  display: none;
}

.admin-login {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: grid;
  place-items: center;
  padding: 28px;
  background:
    radial-gradient(circle at 72% 18%, rgba(208, 161, 103, 0.22), transparent 30%),
    linear-gradient(135deg, rgba(251, 247, 239, 0.96), rgba(239, 227, 209, 0.96));
}

.admin-login.hidden {
  display: none;
}

.admin-login-card {
  width: min(440px, 100%);
  padding: 34px;
  background: rgba(255, 252, 246, 0.96);
  border: 1px solid rgba(137, 111, 78, 0.16);
  border-radius: 10px;
  box-shadow: 0 28px 80px rgba(45, 34, 25, 0.2);
}

.admin-login-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}

.admin-login-brand strong,
.admin-login-brand span {
  display: block;
}

.admin-login-brand strong {
  font-size: 20px;
  font-weight: 900;
}

.admin-login-brand span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.admin-login-title {
  margin-bottom: 24px;
}

.admin-login-title h1 {
  font-size: 34px;
}

.admin-login-title p {
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.6;
}

.admin-login-card label {
  display: grid;
  gap: 9px;
  margin-top: 16px;
  color: #5f5143;
  font-weight: 700;
}

.admin-login-card input {
  width: 100%;
  height: 50px;
  padding: 0 16px;
  color: var(--ink);
  background: #fffaf2;
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: none;
}

.admin-login-card input:focus {
  border-color: rgba(185, 138, 69, 0.55);
  box-shadow: 0 0 0 4px rgba(185, 138, 69, 0.12);
}

.admin-login-error {
  min-height: 22px;
  margin-top: 14px;
  color: var(--danger);
  font-size: 13px;
  font-weight: 700;
}

.admin-login-submit {
  width: 100%;
  height: 52px;
  margin-top: 10px;
}

.support-shell {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: var(--bg);
}

.support-shell iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: var(--bg);
}

.support-entry-note {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  background: rgba(255, 248, 239, 0.72);
  border: 1px solid var(--line);
  border-radius: 8px;
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.sidebar {
  position: fixed;
  top: 20px;
  bottom: 20px;
  left: 20px;
  width: 252px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: rgba(38, 32, 27, 0.94);
  border: 1px solid rgba(229, 201, 151, 0.22);
  border-radius: 8px;
  box-shadow: 0 24px 60px rgba(43, 32, 22, 0.18);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #fff9ef;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  font-weight: 800;
  background: linear-gradient(145deg, #d9ad67, #5d4730);
  border-radius: 50%;
}

.brand-name {
  font-size: 18px;
  font-weight: 800;
}

.brand-sub {
  margin-top: 4px;
  color: rgba(255, 249, 239, 0.62);
  font-size: 12px;
}

.nav {
  display: grid;
  gap: 8px;
  margin-top: 34px;
  padding-right: 4px;
  padding-bottom: 8px;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
}

.nav button {
  height: 42px;
  padding: 0 14px;
  color: rgba(255, 249, 239, 0.72);
  text-align: left;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
}

.nav button.active,
.nav button:hover {
  color: #fff9ef;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(229, 201, 151, 0.18);
}

.nav button.locked {
  color: rgba(255, 249, 239, 0.32);
}

.role-box {
  position: static;
  width: 100%;
  flex: 0 0 auto;
  margin-top: 16px;
  padding: 16px;
  color: #fff9ef;
  text-align: left;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(229, 201, 151, 0.16);
  border-radius: 8px;
}

.role-box:hover {
  background: rgba(255, 255, 255, 0.13);
}

.role-box span,
.role-box strong {
  display: block;
}

.role-box span {
  color: rgba(255, 249, 239, 0.6);
  font-size: 12px;
}

.role-box strong {
  margin-top: 8px;
  font-size: 16px;
}

.app {
  min-width: 980px;
  margin-left: 292px;
  padding: 28px 32px 40px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  font-size: 30px;
}

h2 {
  font-size: 18px;
}

h3 {
  margin-top: 24px;
  font-size: 15px;
}

.topbar p,
.panel p {
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.6;
}

.top-actions,
.filter-row {
  display: flex;
  gap: 10px;
}

.primary,
.ghost,
.danger,
.text-button {
  min-height: 38px;
  padding: 0 16px;
  border-radius: 8px;
}

.primary {
  color: #fff9ef;
  background: var(--dark);
  border: 1px solid var(--dark);
}

.ghost {
  color: #5d4934;
  background: rgba(255, 255, 255, 0.56);
  border: 1px solid var(--line);
}

.link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.danger {
  color: #fff9ef;
  background: var(--danger);
  border: 1px solid var(--danger);
}

.text-button {
  color: var(--gold);
  background: transparent;
  border: 0;
}

button.locked {
  cursor: not-allowed;
  opacity: 0.45;
  filter: grayscale(0.35);
}

.view {
  display: none;
}

.view.active {
  display: block;
  animation: fadeIn 220ms ease-out;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}

.metric,
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 20px 48px rgba(56, 42, 29, 0.08);
}

.metric {
  padding: 20px;
}

.dashboard-card {
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.dashboard-card:hover {
  transform: translateY(-2px);
  border-color: rgba(185, 138, 69, 0.35);
  box-shadow: 0 18px 38px rgba(70, 50, 32, 0.1);
}

.metric span,
.metric em {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
}

.metric strong {
  display: block;
  margin: 12px 0 8px;
  font-size: 28px;
}

.layout-2 {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
  gap: 18px;
}

.panel {
  padding: 22px;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.timeline {
  display: grid;
  gap: 14px;
}

.timeline div {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.timeline div:last-child {
  border-bottom: 0;
}

.timeline b {
  color: var(--gold);
}

.timeline span {
  color: #53483c;
}

#dashboardTimeline div {
  grid-template-columns: minmax(0, 150px) minmax(0, 1fr);
  overflow-wrap: anywhere;
}

.brand-preview {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 18px;
  align-items: center;
}

.brand-preview img {
  width: 100%;
  aspect-ratio: 1.2;
  object-fit: cover;
  border-radius: 8px;
}

.brand-image-placeholder {
  display: grid;
  min-height: 180px;
  place-items: center;
  background: #2a211b;
  color: #f3e4c8;
  font-size: 48px;
  font-weight: 700;
}

.image-fallback:not(.hidden) {
  display: grid;
  place-items: center;
}

table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
}

th,
td {
  padding: 16px 12px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

th {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

td {
  color: #44392e;
}

.tag {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 10px;
  font-size: 12px;
  border-radius: 999px;
}

.tag.on {
  color: #6c4a1f;
  background: #f6e7ce;
}

.tag.off {
  color: #776b5e;
  background: #eee5d8;
}

.segmented {
  display: flex;
  padding: 4px;
  background: #f3eadc;
  border-radius: 8px;
}

.segmented button {
  height: 32px;
  padding: 0 14px;
  color: #6e5d4a;
  background: transparent;
  border: 0;
  border-radius: 6px;
}

.segmented .active {
  color: var(--ink);
  background: #fffaf2;
  box-shadow: 0 6px 16px rgba(67, 49, 31, 0.08);
}

.service-order-subfilters {
  flex-wrap: wrap;
  gap: 4px;
  max-width: 100%;
  margin-bottom: 18px;
}

.service-order-refund-badge {
  display: inline-block;
  max-width: 100%;
  font-size: 12px;
  font-weight: 400;
}

.category-admin {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  padding: 12px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.category-admin span {
  color: var(--muted);
  font-size: 13px;
}

.category-admin button {
  height: 30px;
  padding: 0 12px;
  color: #5d4934;
  background: #fffaf2;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.category-admin button.active {
  color: #fff9ef;
  background: var(--dark);
  border-color: var(--dark);
}

.product-card-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.banner-admin-list {
  display: grid;
  gap: 14px;
}

.banner-admin-card {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 16px;
  background: rgba(255, 248, 239, .72);
  border: 1px solid rgba(99, 75, 48, .12);
  border-radius: 12px;
}

.banner-admin-media {
  display: grid;
  width: 180px;
  height: 88px;
  overflow: hidden;
  place-items: center;
  color: #8b6b46;
  font-weight: 800;
  background: #f3e7d7;
  border-radius: 10px;
}

.banner-admin-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.banner-admin-main {
  display: grid;
  min-width: 0;
  gap: 6px;
}

.banner-admin-main strong {
  color: #261f1a;
  font-size: 18px;
}

.banner-admin-main span {
  color: #7c6b5a;
  font-size: 14px;
}

.banner-admin-actions {
  display: flex;
  gap: 10px;
}

.home-promotion-admin {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.marketing-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.marketing-tabs,
.marketing-actions,
.marketing-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.marketing-tabs {
  padding: 4px;
  background: #eee9e2;
  border: 1px solid rgba(80, 72, 64, .12);
  border-radius: 6px;
}

.marketing-tabs button {
  min-height: 36px;
  padding: 0 14px;
  color: #625c56;
  background: transparent;
  border: 0;
  border-radius: 4px;
}

.marketing-tabs button.active {
  color: #fff;
  background: #2c3431;
}

.marketing-workspace {
  min-height: 280px;
}

.marketing-environment {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  padding: 11px 14px;
  color: #245247;
  background: #e8f1ed;
  border: 1px solid rgba(47, 105, 92, .2);
  border-radius: 6px;
}

.marketing-environment strong {
  flex: 0 0 auto;
}

.marketing-environment span {
  font-size: 13px;
}

.marketing-environment.local {
  color: #7d3c35;
  background: #f8ebe8;
  border-color: rgba(159, 70, 63, .25);
}

.marketing-danger {
  color: var(--danger);
  border-color: rgba(159, 70, 63, .35);
}

.marketing-local-disabled {
  cursor: not-allowed;
  opacity: .5;
}

.marketing-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.marketing-summary-item {
  padding: 16px;
  background: #fff;
  border-left: 3px solid #2f695c;
}

.marketing-summary-item span,
.marketing-summary-item small {
  display: block;
  color: #746d66;
  font-size: 12px;
}

.marketing-summary-item strong {
  display: block;
  margin: 7px 0 3px;
  color: #252321;
  font-size: 25px;
}

.marketing-list {
  display: grid;
  gap: 10px;
}

.marketing-row {
  display: grid;
  grid-template-columns: minmax(220px, 1.5fr) repeat(3, minmax(100px, .7fr)) auto;
  gap: 16px;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px solid rgba(80, 72, 64, .12);
}

.marketing-row:last-child {
  border-bottom: 0;
}

.marketing-row-main {
  display: grid;
  min-width: 0;
  gap: 5px;
}

.marketing-row-main strong {
  overflow: hidden;
  color: #252321;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.marketing-row-main span,
.marketing-row-stat span,
.marketing-note {
  color: #746d66;
  font-size: 12px;
}

.marketing-row-stat {
  display: grid;
  gap: 4px;
}

.marketing-row-stat b {
  font-size: 15px;
}

.marketing-status {
  width: fit-content;
  padding: 3px 8px;
  color: #2f695c;
  background: #e6f0ec;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
}

.marketing-status.disabled,
.marketing-status.ended {
  color: #8e443b;
  background: #f6e8e5;
}

.marketing-channel-group {
  padding: 16px 0;
  border-bottom: 1px solid rgba(80, 72, 64, .12);
}

.marketing-channel-group:last-child {
  border-bottom: 0;
}

.marketing-channel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.marketing-channel-heading h3,
.marketing-channel-heading p {
  margin: 0;
}

.marketing-channel-heading p {
  margin-top: 4px;
  color: #746d66;
  font-size: 12px;
}

.marketing-asset-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.marketing-asset-links a {
  color: #2f695c;
  font-size: 12px;
  font-weight: 700;
}

.marketing-scope-fieldset {
  min-width: 0;
  margin: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.marketing-scope-fieldset legend {
  padding: 0 6px;
  color: var(--muted);
  font-size: 13px;
}

.marketing-scope-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 16px;
  max-height: 220px;
  overflow-y: auto;
}

.marketing-scope-options .checkbox-line {
  min-width: 0;
  color: var(--ink);
}

.marketing-scope-options .checkbox-line span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.marketing-scope-empty {
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 980px) {
  .marketing-toolbar,
  .marketing-channel-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .marketing-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .marketing-row {
    grid-template-columns: 1fr 1fr;
  }

  .marketing-row-main,
  .marketing-card-actions {
    grid-column: 1 / -1;
  }

  .marketing-scope-options {
    grid-template-columns: 1fr;
  }
}

.home-promotion-slot-card {
  min-width: 0;
}

.home-promotion-slot-card .panel-head p {
  margin: 5px 0 0;
  color: #8a7560;
  font-size: 13px;
}

.home-promotion-rules {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 14px;
  background: #fff8ef;
  border: 1px solid rgba(99, 75, 48, .12);
  border-radius: 12px;
}

.home-promotion-rules label {
  display: grid;
  gap: 6px;
  color: #715e4c;
  font-size: 13px;
}

.home-promotion-rules button {
  align-self: end;
}

.home-promotion-list {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.home-promotion-item {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 12px;
  background: rgba(255, 248, 239, .72);
  border: 1px solid rgba(99, 75, 48, .12);
  border-radius: 12px;
}

.home-promotion-thumb {
  width: 150px;
  overflow: hidden;
  background: #ecdfcf;
  border-radius: 9px;
}

.home-promotion-thumb.pet_profile {
  aspect-ratio: 4 / 1;
}

.home-promotion-thumb.brand_story {
  aspect-ratio: 14 / 5;
}

.home-promotion-thumb.shop_mall {
  aspect-ratio: 14 / 5;
}

.home-promotion-capacity {
  display: inline-block;
  margin-right: 12px;
  color: #8a6a51;
  font-size: 13px;
}

.home-promotion-thumb img,
.home-promotion-thumb video,
.home-promotion-editor-preview img,
.home-promotion-editor-preview video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-promotion-item-main {
  display: grid;
  min-width: 0;
  gap: 5px;
}

.home-promotion-item-main span,
.home-promotion-item-main small {
  overflow: hidden;
  color: #7c6b5a;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-promotion-editor-preview video {
  min-height: 180px;
}

@media (max-width: 1180px) {
  .home-promotion-admin {
    grid-template-columns: 1fr;
  }
}

.product-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  background: #fffaf5;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 30px rgba(56, 42, 29, 0.06);
}

.product-card-media {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  background: #f4eadc;
  overflow: hidden;
}

.product-card-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-card-empty {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: var(--muted);
  font-size: 13px;
}

.product-card .tag {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(255, 250, 242, 0.94);
}

.product-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 8px;
  padding: 14px;
}

.product-card-title {
  min-height: 44px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.35;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.product-card-meta {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.product-card-price {
  margin-top: auto;
  color: var(--ink);
  font-size: 20px;
  font-weight: 900;
}

.product-card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 8px;
}

.product-card-actions button {
  height: 36px;
  padding: 0;
  border-radius: 999px;
}

.service-profile-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.service-profile-card {
  overflow: hidden;
  background: #fffaf5;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 30px rgba(56, 42, 29, 0.06);
}

.service-profile-card.retired {
  opacity: .72;
  filter: grayscale(.35);
}

.service-coming-soon-list {
  display: grid;
  gap: 10px;
}

.service-coming-soon-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 16px;
  background: #fffaf5;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.service-coming-soon-row > div:first-child {
  display: grid;
  gap: 5px;
}

.service-coming-soon-row span {
  color: var(--muted);
  font-size: 13px;
}

.service-coming-soon-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.service-profile-media {
  width: 100%;
  height: 150px;
  background: #f4eadc;
  overflow: hidden;
}

.service-profile-media img,
.service-profile-placeholder {
  width: 100%;
  height: 100%;
}

.service-profile-media img {
  display: block;
  object-fit: cover;
}

.service-profile-placeholder {
  display: grid;
  place-items: center;
  color: rgba(72, 55, 38, 0.46);
  font-size: 40px;
  font-weight: 900;
}

.service-profile-placeholder.rose {
  background: linear-gradient(145deg, #fff4ef, #e9c8bf);
}

.service-profile-placeholder.sage {
  background: linear-gradient(145deg, #fbfaf1, #ceddcc);
}

.service-profile-placeholder.gold {
  background: linear-gradient(145deg, #fff7e4, #e7c27c);
}

.service-profile-placeholder.ink {
  color: rgba(255, 248, 237, 0.62);
  background: linear-gradient(145deg, #332c26, #856847);
}

.service-profile-body {
  display: grid;
  gap: 8px;
  padding: 14px;
}

.service-profile-kicker {
  width: fit-content;
  padding: 4px 8px;
  color: #7b5428;
  font-size: 12px;
  font-weight: 800;
  background: #f5e3c6;
  border-radius: 999px;
}

.service-profile-body strong {
  font-size: 18px;
}

.service-profile-body span {
  min-height: 38px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.service-profile-body b {
  font-size: 20px;
}

.service-package-editor-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 8px;
}

.service-package-section-head,
.service-package-editor-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.service-package-section-head {
  margin-top: 8px;
}

.service-package-section-head strong {
  font-size: 17px;
}

.service-package-editor-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.service-package-editor {
  min-width: 0;
  padding: 16px;
  background: rgba(255, 248, 239, 0.72);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.service-package-editor-head,
.service-package-features-head,
.service-package-enabled,
.service-package-feature-row {
  display: flex;
  align-items: center;
}

.service-package-editor-head,
.service-package-features-head {
  justify-content: space-between;
  gap: 12px;
}

.service-package-editor-head strong,
.service-package-editor-head span {
  display: block;
}

.service-package-editor-head span {
  color: var(--muted);
  font-size: 12px;
}

.service-package-enabled {
  grid-template-columns: none;
  gap: 7px;
  white-space: nowrap;
}

.service-package-enabled input {
  width: 18px;
  height: 18px;
  padding: 0;
}

.service-package-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.service-package-features {
  margin-top: 16px;
}

.service-package-ai-config {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.service-package-ai-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.service-package-ai-title span {
  color: var(--muted);
  font-size: 12px;
}

.service-package-features-head > span {
  color: #5f5143;
  font-size: 13px;
  font-weight: 700;
}

.service-package-features-head button {
  min-height: 32px;
  padding: 0 12px;
}

.service-package-feature-list {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.service-package-feature-row {
  gap: 8px;
  min-width: 0;
}

.service-package-feature-row input {
  min-width: 0;
}

.service-package-feature-remove {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  padding: 0;
  color: var(--danger);
  background: #fffaf2;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 22px;
}

.product-empty-state {
  grid-column: 1 / -1;
  padding: 40px 20px;
  color: var(--muted);
  text-align: center;
  background: #fffaf5;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.link-action {
  margin-right: 10px;
  padding: 0;
  color: var(--gold);
  background: transparent;
  border: 0;
}

.link-action:hover {
  color: #6f4a20;
}

.order-list,
.staff-grid,
.tiers {
  display: grid;
  gap: 14px;
}

.wechat-fulfillment-panel {
  margin-bottom: 18px;
}

.wechat-fulfillment-total {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.wechat-fulfillment-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.wechat-fulfillment-summary > div {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.wechat-fulfillment-summary span,
.wechat-fulfillment-item span {
  color: var(--muted);
  font-size: 13px;
}

.wechat-fulfillment-summary strong {
  font-size: 20px;
}

.wechat-fulfillment-list {
  display: grid;
  gap: 10px;
}

.wechat-fulfillment-item {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.wechat-fulfillment-item-main {
  display: grid;
  min-width: 0;
  gap: 6px;
}

.wechat-fulfillment-label {
  display: inline-flex;
  width: fit-content;
  padding: 4px 8px;
  color: #77511f;
  font-size: 12px;
  font-weight: 800;
  background: #f7e5c4;
  border-radius: 4px;
}

.wechat-fulfillment-item.failed_retryable .wechat-fulfillment-label {
  color: #8d2f29;
  background: #ffd9d5;
}

.wechat-fulfillment-item.cancellation_fee_pending .wechat-fulfillment-label,
.wechat-fulfillment-item.manual_review .wechat-fulfillment-label {
  color: #744a17;
  background: #ffe9c7;
}

.wechat-fulfillment-actions {
  display: flex;
  gap: 8px;
}

@media (max-width: 760px) {
  .wechat-fulfillment-summary {
    grid-template-columns: 1fr;
  }

  .wechat-fulfillment-item {
    grid-template-columns: 1fr;
  }

  .wechat-fulfillment-actions {
    justify-content: flex-start;
  }
}

.order-list article,
.staff-grid article,
.tiers div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 18px;
  align-items: center;
  padding: 16px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.order-list article.dispatch-orange {
  background: #fff7e8;
  border-color: rgba(214, 132, 44, 0.34);
}

.order-list article.dispatch-red {
  background: #fff0ee;
  border-color: rgba(159, 70, 63, 0.38);
}

.order-list strong {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.dispatch-warning,
.detail-warning {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 800;
  border-radius: 999px;
}

.dispatch-warning.orange,
.detail-warning.orange {
  color: #8a4e13;
  background: #ffe2b8;
  border: 1px solid rgba(214, 132, 44, 0.28);
}

.dispatch-warning.red,
.detail-warning.red {
  color: #8d2f29;
  background: #ffd1cc;
  border: 1px solid rgba(159, 70, 63, 0.28);
}

.detail-warning {
  margin: 8px 0 0;
}

.order-list span,
.staff-grid span,
.tiers span {
  color: var(--muted);
  font-size: 13px;
}

.order-list .order-card-item {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
}

.order-list .order-empty-card {
  grid-template-columns: 1fr;
}

.order-thumb,
.order-detail-thumb {
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #7c5b35;
  font-weight: 900;
  background: #f4eadc;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.order-thumb {
  width: 82px;
  height: 82px;
}

.order-thumb img,
.order-detail-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.order-card-main {
  display: grid;
  min-width: 0;
  gap: 7px;
}

.order-card-title {
  min-width: 0;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.order-card-status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  min-width: 0;
  white-space: normal;
  overflow-wrap: anywhere;
}

.order-card-meta {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.order-card-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.order-detail-head {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  margin-bottom: 16px;
}

.order-detail-thumb {
  width: 96px;
  height: 96px;
  font-size: 28px;
}

.order-detail-head strong,
.order-detail-head span {
  display: block;
}

.order-detail-head strong {
  color: var(--ink);
  font-size: 18px;
  line-height: 1.4;
}

.order-detail-head span {
  margin-top: 8px;
  color: var(--muted);
}

.assign-box {
  margin-top: 16px;
  padding: 14px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.staff-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.search {
  width: 300px;
  height: 38px;
  padding: 0 14px;
  background: #fffaf2;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.form-grid {
  display: grid;
  gap: 14px;
}

.shipment-methods {
  width: fit-content;
  margin: 18px 0 14px;
}

.shipment-methods button {
  min-width: 112px;
}

.form-grid .full {
  grid-column: 1 / -1;
}

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

input,
textarea {
  width: 100%;
  color: var(--ink);
  background: #fffaf2;
  border: 1px solid var(--line);
  border-radius: 8px;
}

input {
  height: 40px;
  padding: 0 12px;
}

.file-input {
  height: auto;
  padding: 10px 12px;
}

textarea {
  min-height: 130px;
  padding: 12px;
  resize: vertical;
}

.service-layout {
  grid-template-columns: minmax(0, 1fr) 380px;
}

.chat-row {
  width: fit-content;
  max-width: 76%;
  margin-bottom: 14px;
  padding: 12px 14px;
  line-height: 1.5;
  border-radius: 8px;
}

.chat-row.user {
  color: #47392b;
  background: #f6e7cf;
}

.chat-row.agent {
  margin-left: auto;
  color: #fff9ef;
  background: var(--dark);
}

.reply-box {
  margin-top: 24px;
  padding: 16px;
  color: #9a8976;
  background: #fffaf2;
  border: 1px dashed rgba(108, 82, 51, 0.26);
  border-radius: 8px;
}

.action-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.brand-editor {
  display: grid;
  gap: 16px;
}

.upload-preview {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.upload-logo {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  color: #8a6142;
  font-size: 24px;
  font-weight: 800;
  background: #fffaf2;
  border: 1px solid rgba(138, 97, 66, 0.18);
  border-radius: 50%;
}

.legal-admin {
  margin-top: 18px;
}

.legal-panel-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.legal-publish-status {
  margin: 5px 0 0;
  color: #8a7560;
  font-size: 13px;
}

.legal-preview-content p {
  margin: 0 0 14px;
  line-height: 1.8;
  white-space: pre-wrap;
}

.legal-preview-content p:last-child {
  margin-bottom: 0;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(33, 27, 22, 0.38);
}

.modal-backdrop.active {
  display: flex;
}

.modal {
  width: min(620px, 100%);
  max-height: min(760px, 90vh);
  overflow: auto;
  background: #fffaf2;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 30px 80px rgba(31, 24, 18, 0.26);
}

.modal:has(.service-task-table-wrap) {
  width: min(1180px, calc(100vw - 48px));
}

.modal:has(.service-package-editor-grid) {
  width: min(980px, 100%);
}

.service-task-table-wrap {
  margin-top: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.service-task-table-scroll {
  max-height: min(52vh, 520px);
  overflow: auto;
}

.service-task-title {
  padding: 12px 14px;
  font-weight: 800;
  background: var(--soft);
  border-bottom: 1px solid var(--line);
}

.service-task-table {
  width: 100%;
  min-width: 1160px;
  border-collapse: collapse;
}

.service-task-table th,
.service-task-table td {
  padding: 10px 12px;
  text-align: left;
  vertical-align: middle;
  border-bottom: 1px solid var(--line);
}

.service-task-table th {
  font-size: 13px;
  background: #fffdf8;
}

.service-task-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
}

.service-task-table small {
  color: var(--muted);
}

.task-assign-control {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.service-task-media-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  margin-top: 6px;
}

.service-task-media-links a {
  color: #8b6337;
  font-size: 12px;
  font-weight: 700;
}

.service-date-summary {
  color: #785f43;
  font-weight: 700;
}

.service-task-empty {
  padding: 18px;
  color: var(--muted);
}

.modal-head,
.modal-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}

.modal-actions {
  justify-content: flex-end;
  border-top: 1px solid var(--line);
  border-bottom: 0;
}

.modal-close {
  min-height: 34px;
  padding: 0 12px;
  color: #5d4934;
  background: #f3eadc;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.modal-body {
  padding: 20px;
  color: #463a2e;
  line-height: 1.7;
}

.modal-body p + p {
  margin-top: 10px;
}

.role-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.role-options button {
  display: grid;
  gap: 8px;
  min-height: 86px;
  padding: 14px;
  color: var(--ink);
  text-align: left;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.role-options button.active,
.role-options button:hover {
  color: #fff9ef;
  background: var(--dark);
}

.role-options span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.role-options button.active span,
.role-options button:hover span {
  color: rgba(255, 249, 239, 0.72);
}

.log-list,
.detail-list {
  display: grid;
  gap: 10px;
}

.log-list > p,
.detail-list > p {
  margin: 0;
  padding: 14px;
  color: #4c3d31;
  background: rgba(255, 248, 239, 0.76);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.admin-card-list {
  display: grid;
  gap: 12px;
}

.admin-list-card {
  display: grid;
  gap: 8px;
  padding: 16px;
  color: #44382e;
  background: rgba(255, 248, 239, 0.76);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 12px 26px rgba(56, 42, 29, 0.05);
}

.admin-list-card[data-user-id],
.clickable-card,
.order-card-item[data-action] {
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.admin-list-card[data-user-id]:hover,
.clickable-card:hover,
.order-card-item[data-action]:hover {
  transform: translateY(-1px);
  border-color: rgba(185, 138, 69, 0.34);
  box-shadow: 0 16px 34px rgba(56, 42, 29, 0.09);
}

.admin-list-card strong {
  color: var(--ink);
  font-size: 16px;
}

.admin-list-card span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.feedback-panel-head {
  align-items: flex-start;
}

.feedback-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 180px));
  gap: 12px;
  margin-bottom: 16px;
}

.feedback-summary > div {
  display: grid;
  gap: 5px;
  padding: 14px 16px;
  background: rgba(255, 248, 239, 0.76);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.feedback-summary span,
.feedback-card-meta span {
  color: var(--muted);
  font-size: 12px;
}

.feedback-summary strong {
  font-size: 24px;
}

.feedback-filters {
  display: grid;
  grid-template-columns: 150px 150px minmax(220px, 1fr) auto;
  gap: 10px;
  margin-bottom: 18px;
}

.feedback-filters select,
.feedback-filters input {
  min-width: 0;
  height: 42px;
  padding: 0 12px;
  color: var(--ink);
  background: #fffaf2;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.feedback-card {
  gap: 12px;
}

.feedback-card-head,
.feedback-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.feedback-card-head > div {
  display: grid;
  gap: 5px;
}

.feedback-card p {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: #44382e;
  line-height: 1.65;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.feedback-status {
  flex: 0 0 auto;
  padding: 6px 10px;
  color: #7a5b35 !important;
  background: #f6e6c9;
  border-radius: 8px;
}

.feedback-status.processing {
  color: #3d6550 !important;
  background: #e3f0e8;
}

.feedback-status.resolved {
  color: #696159 !important;
  background: #ece8e2;
}

.feedback-detail-content span {
  display: block;
  margin-top: 8px;
  color: #44382e;
  white-space: pre-wrap;
}

.feedback-detail label {
  display: grid;
  gap: 8px;
  color: #4c3d31;
  font-weight: 700;
}

.feedback-detail textarea {
  min-height: 120px;
  padding: 12px;
  resize: vertical;
  color: var(--ink);
  background: #fffaf2;
  border: 1px solid var(--line);
  border-radius: 8px;
}

@media (max-width: 860px) {
  .feedback-filters {
    grid-template-columns: 1fr 1fr;
  }
}

.staff-grid .staff-card {
  grid-template-columns: 52px minmax(0, 1fr);
  align-items: center;
  min-height: 112px;
  gap: 12px;
  padding: 18px;
}

.staff-avatar {
  display: grid;
  width: 52px;
  height: 52px;
  overflow: hidden;
  place-items: center;
  color: #fff9ef;
  font-size: 20px;
  font-weight: 900;
  background: linear-gradient(145deg, #d7ad68, #6d5236);
  border-radius: 50%;
}

.staff-avatar img,
.staff-avatar span {
  width: 100%;
  height: 100%;
}

.staff-avatar img {
  object-fit: cover;
}

.staff-avatar span {
  display: grid;
  place-items: center;
}

.staff-card-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.staff-avatar-upload {
  display: grid;
  gap: 10px;
}

.staff-avatar-picker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  cursor: pointer;
}

.staff-avatar-picker input {
  display: none;
}

.staff-avatar-preview {
  display: grid;
  width: 86px;
  height: 86px;
  margin-right: 14px;
  overflow: hidden;
  place-items: center;
  color: #fff9ef;
  font-size: 28px;
  font-weight: 900;
  background: linear-gradient(145deg, #d7ad68, #6d5236);
  border-radius: 18px;
  box-shadow: 0 12px 26px rgba(72, 52, 34, 0.1);
}

.staff-avatar-preview img,
.staff-avatar-preview span {
  width: 100%;
  height: 100%;
}

.staff-avatar-preview img {
  object-fit: cover;
}

.staff-avatar-preview span {
  display: grid;
  place-items: center;
}

.staff-avatar-picker b {
  color: #6b4d2e;
  font-size: 14px;
}

.staff-form textarea {
  min-height: 120px;
}

.staff-area-field {
  display: grid;
  gap: 12px;
}

.staff-area-field-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.staff-area-field-head small,
.staff-area-field > p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.staff-area-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.staff-area-options label {
  display: flex;
  grid-template-columns: none;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 12px 14px;
  color: #5f4b37;
  background: #fff9f0;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.staff-area-options input {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
}

.staff-area-options span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.staff-posts-admin {
  display: grid;
  gap: 12px;
  margin-top: 8px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.staff-posts-admin-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.staff-posts-admin-head > div {
  display: grid;
  gap: 4px;
}

.staff-posts-admin-head .compact {
  width: auto;
  min-height: 36px;
  padding: 8px 14px;
}

.staff-posts-admin-head span,
.staff-posts-empty,
.staff-post-admin-time {
  color: var(--muted);
  font-size: 12px;
}

.staff-posts-empty {
  margin: 0;
  padding: 16px;
  text-align: center;
  background: var(--soft);
  border-radius: 10px;
}

.staff-post-status {
  display: inline-flex;
  margin-top: 8px;
  padding: 3px 8px;
  color: #276749;
  font-size: 12px;
  font-weight: 700;
  background: #e7f4eb;
  border-radius: 6px;
}

.staff-post-status.hidden {
  color: #975a16;
  background: #fff2da;
}

.staff-posts-admin-list {
  display: grid;
  gap: 12px;
  max-height: 520px;
  overflow-y: auto;
}

.staff-post-admin-item {
  padding: 14px;
  background: rgba(255, 248, 239, .78);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.staff-post-admin-row,
.staff-post-admin-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.staff-post-admin-actions button {
  width: auto;
  min-height: 32px;
  padding: 6px 12px;
}

.staff-post-editor {
  display: grid;
  gap: 14px;
}

.staff-post-editor label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-weight: 700;
}

.staff-post-editor textarea {
  min-height: 100px;
}

.staff-post-editor small {
  color: var(--muted);
  line-height: 1.6;
}

.staff-post-admin-item p {
  margin: 8px 0 0;
  color: var(--ink);
  line-height: 1.65;
  white-space: pre-wrap;
}

.staff-post-admin-media {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.staff-post-admin-media img {
  width: 100%;
  height: 92px;
  object-fit: cover;
  border-radius: 8px;
}

.staff-post-admin-videos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 240px));
  gap: 8px;
  justify-content: start;
  margin-top: 10px;
}

.staff-post-admin-videos video {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 8px;
  background: #211c18;
}

.staff-post-video-preview {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 200px));
  gap: 10px;
  align-items: start;
  min-height: 72px;
  padding: 10px;
  color: var(--muted);
  background: var(--soft);
  border: 1px dashed rgba(108, 82, 51, 0.22);
  border-radius: 8px;
}

.staff-post-video-preview video {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: #211c18;
  border-radius: 8px;
}

.checkbox-line {
  display: flex;
  align-items: center;
  gap: 8px;
}

.checkbox-line input {
  width: auto;
  height: auto;
}

.finance-detail-card {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.finance-detail-card span {
  grid-column: 1 / -1;
}

.finance-detail-card b {
  color: #2f2822;
  font-size: 18px;
}

.user-card-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.product-sort-hint {
  margin: -4px 0 14px;
  color: var(--muted);
  font-size: 13px;
}

.product-card[draggable="true"] {
  cursor: grab;
}

.product-card[draggable="true"]:active {
  cursor: grabbing;
}

.product-card.is-dragging {
  opacity: 0.45;
  transform: scale(0.98);
}

.product-card.is-drop-target {
  border-color: #bd8b48;
  box-shadow: 0 0 0 3px rgba(189, 139, 72, 0.22), 0 14px 30px rgba(56, 42, 29, 0.08);
}

.user-heading,
.user-pagination {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-total-count {
  padding: 5px 10px;
  color: #76572f;
  font-size: 13px;
  font-weight: 800;
  background: #fff7e8;
  border: 1px solid #ead5ad;
  border-radius: 999px;
}

.user-pagination {
  justify-content: center;
  margin-top: 18px;
  color: var(--muted);
}

.user-pagination button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.user-summary-card {
  grid-template-columns: 58px minmax(0, 1fr);
  align-items: center;
}

.user-summary-avatar {
  display: grid;
  width: 58px;
  height: 58px;
  overflow: hidden;
  place-items: center;
  color: #fff9ef;
  font-size: 22px;
  font-weight: 900;
  background: linear-gradient(145deg, #d7ad68, #6d5236);
  border-radius: 10px;
}

.user-summary-avatar img,
.user-summary-avatar span {
  width: 100%;
  height: 100%;
}

.user-summary-avatar img {
  object-fit: cover;
}

.user-summary-avatar span {
  display: grid;
  place-items: center;
}

.admin-card-main {
  display: grid;
  min-width: 0;
  gap: 6px;
}

.chat-log-card {
  padding: 18px;
}

.message-log-list {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

.message-log-card {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  background: #fffaf2;
  border: 1px solid rgba(108, 82, 51, 0.1);
  border-radius: 8px;
}

.message-log-card strong {
  font-size: 13px;
}

.empty-card {
  text-align: center;
}

.user-detail-head {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 12px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.user-detail-head strong,
.user-detail-head span {
  display: block;
}

.user-detail-head span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  overflow-wrap: anywhere;
}

.user-detail-avatar {
  display: grid;
  width: 72px;
  height: 72px;
  overflow: hidden;
  place-items: center;
  background: linear-gradient(135deg, #f6e6c8, #c79a4b);
  border: 1px solid rgba(108, 82, 51, 0.18);
  border-radius: 8px;
  color: #fff;
  font-size: 28px;
  font-weight: 800;
}

.user-detail-avatar img,
.user-detail-avatar span {
  width: 100%;
  height: 100%;
}

.user-detail-avatar img {
  object-fit: cover;
}

.user-detail-avatar span {
  display: grid;
  place-items: center;
}

.upload-hint {
  padding: 10px 12px;
  color: var(--muted);
  font-size: 13px;
  background: var(--soft);
  border: 1px dashed rgba(108, 82, 51, 0.22);
  border-radius: 8px;
}

.image-preview-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.image-preview-grid figure,
.image-empty {
  min-height: 104px;
  margin: 0;
  overflow: hidden;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.image-preview-grid figure {
  position: relative;
  display: grid;
  grid-template-rows: 82px auto;
}

.sortable-image-card {
  cursor: grab;
  user-select: none;
  transition: border-color 150ms ease, box-shadow 150ms ease, opacity 150ms ease, transform 150ms ease;
}

.sortable-image-card:active {
  cursor: grabbing;
}

.sortable-image-card.is-dragging {
  opacity: 0.42;
  transform: scale(0.98);
}

.sortable-image-card.is-drop-target {
  border-color: var(--gold);
  background: #fff0d8;
  box-shadow: 0 0 0 3px rgba(185, 138, 69, 0.2);
}

.product-image-index,
.product-image-cover-badge {
  position: absolute;
  top: 6px;
  z-index: 1;
  display: inline-grid;
  min-width: 24px;
  height: 24px;
  padding: 0 7px;
  place-items: center;
  color: #fff;
  background: rgba(42, 36, 31, 0.82);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  pointer-events: none;
}

.product-image-index {
  left: 6px;
}

.product-image-cover-badge {
  right: 38px;
  background: var(--gold);
}

.product-image-remove {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 2;
  display: inline-grid;
  width: 26px;
  height: 26px;
  padding: 0;
  place-items: center;
  color: #fff;
  background: rgba(150, 55, 45, 0.9);
  border: 0;
  border-radius: 999px;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.product-image-remove:hover {
  background: #96372d;
}

.image-preview-grid img {
  width: 100%;
  height: 82px;
  object-fit: contain;
  background: #fff;
}

.image-preview-grid figcaption {
  padding: 6px;
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-image-drag-handle {
  margin-right: 4px;
  color: var(--gold);
  font-size: 14px;
  font-weight: 900;
}

.image-empty {
  display: grid;
  grid-column: 1 / -1;
  place-items: center;
  color: var(--muted);
  font-size: 13px;
}

.finance-tools {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.finance-tools select {
  min-width: 108px;
  padding: 12px 14px;
  background: #fffaf2;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  font: inherit;
}

.finance-detail-card {
  cursor: pointer;
}

.finance-detail-card:hover {
  border-color: rgba(108, 82, 51, .32);
}

.toast {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 30;
  min-width: 180px;
  padding: 14px 18px;
  color: #fff9ef;
  text-align: center;
  pointer-events: none;
  opacity: 0;
  transform: translateY(10px);
  background: rgba(42, 36, 31, 0.94);
  border-radius: 8px;
  box-shadow: 0 16px 40px rgba(38, 28, 20, 0.18);
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1280px) {
  .product-card-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .service-profile-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1100px) {
  .sidebar {
    position: static;
    width: auto;
    margin: 16px;
  }

  .role-box {
    position: static;
    width: auto;
    margin-top: 18px;
  }

  .app {
    min-width: 0;
    margin-left: 0;
    padding: 12px 16px 32px;
  }

  .metric-grid,
  .layout-2,
  .staff-grid {
    grid-template-columns: 1fr;
  }

  .product-card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .service-profile-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .topbar {
    align-items: stretch;
    flex-direction: column;
  }

  .top-actions {
    width: 100%;
    flex-wrap: wrap;
  }

  .top-actions button {
    width: auto;
    min-width: 0;
  }

  .product-card-grid,
  .service-profile-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service-package-editor-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  #orders .panel-head {
    align-items: stretch;
    flex-direction: column;
  }

  #orders [data-segment="orders"] {
    flex-wrap: wrap;
  }

  .order-list .order-card-item {
    grid-template-columns: 64px minmax(0, 1fr);
    align-items: start;
  }

  .order-list .order-empty-card {
    grid-template-columns: minmax(0, 1fr);
  }

  .order-thumb {
    width: 64px;
    height: 64px;
  }

  .order-card-actions {
    grid-column: 1 / -1;
    flex-wrap: wrap;
    gap: 8px;
  }

  .product-card-grid,
  .service-profile-grid {
    grid-template-columns: 1fr;
  }

  .service-package-fields {
    grid-template-columns: 1fr;
  }
}

select {
  width: 100%;
  height: 40px;
  padding: 0 12px;
  color: var(--ink);
  background: #fffaf2;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.category-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.delete-category {
  width: 26px;
  height: 26px;
  padding: 0;
  color: #8f5a40;
  background: #fffaf2;
  border: 1px solid var(--line);
  border-radius: 50%;
}

.clickable-row {
  cursor: pointer;
}

.clickable-row:hover td {
  background: rgba(255, 247, 236, 0.72);
}

small {
  color: var(--muted);
}

.reply-box {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
}

.reply-box textarea {
  min-height: 74px;
}

.reply-box button {
  align-self: end;
}

.permission-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.permission-grid label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 10px 12px;
  color: var(--ink);
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.permission-grid input {
  width: auto;
  height: auto;
}

.hidden {
  display: none !important;
}

.support-account-layout {
  align-items: start;
}

.wecom-direct-reply-status {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
  padding: 16px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.wecom-direct-reply-status div {
  display: grid;
  gap: 6px;
}

.wecom-direct-reply-status span,
.wecom-direct-reply-status p {
  color: var(--muted);
  font-size: 13px;
}

.wecom-direct-reply-status p {
  grid-column: 1 / -1;
  margin: 0;
}

@media (max-width: 760px) {
  .wecom-direct-reply-status { grid-template-columns: 1fr; }
  .wecom-direct-reply-status p { grid-column: auto; }
}

.account-form {
  display: grid;
  gap: 14px;
  padding: 18px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.account-list {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.account-card,
.empty-account {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.account-card span,
.empty-account {
  color: var(--muted);
  font-size: 13px;
}

.account-card strong,
.account-card span {
  display: block;
}

.account-card span {
  margin-top: 6px;
}

.account-card small {
  display: block;
  margin-top: 8px;
  color: #9a8064;
  font-size: 12px;
}

.clickable-account {
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.clickable-account:hover,
.clickable-account:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(185, 138, 69, 0.42);
  box-shadow: 0 14px 28px rgba(56, 42, 29, 0.08);
  outline: none;
}

.support-account-detail,
.support-password-result {
  display: grid;
  gap: 16px;
}

.support-account-detail .detail-list p {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 16px;
  margin: 0;
}

.support-account-detail .detail-list strong {
  overflow-wrap: anywhere;
}

.password-security-tip {
  margin: 0;
  padding: 12px 14px;
  color: #765b3d;
  font-size: 13px;
  line-height: 1.6;
  background: #fff5e6;
  border: 1px solid rgba(185, 138, 69, 0.22);
  border-radius: 8px;
}

.review-admin-list {
  display: grid;
  gap: 14px;
}

.review-admin-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: start;
  padding: 18px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.review-admin-main {
  display: grid;
  gap: 8px;
}

.review-admin-main strong {
  font-size: 18px;
}

.review-admin-main span,
.review-admin-main p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.review-admin-stars {
  color: #b98235;
  font-weight: 800;
}

.review-admin-stars em {
  color: var(--muted);
  font-style: normal;
  font-weight: 600;
}

.review-admin-actions {
  display: flex;
  gap: 10px;
}

.area-summary {
  display: flex;
  gap: 14px;
  margin-bottom: 18px;
  color: var(--muted);
}

.area-summary span {
  padding: 10px 14px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.area-summary b {
  color: var(--ink);
}

.service-area-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.service-area-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.service-area-card.enabled {
  background: #f4f8f1;
  border-color: #bfd0b5;
}

.service-area-card.disabled {
  opacity: 0.78;
}

.service-area-main {
  display: grid;
  gap: 7px;
}

.service-area-main strong {
  font-size: 17px;
}

.service-area-main small {
  color: var(--muted);
}

.area-status {
  width: fit-content;
  padding: 4px 9px;
  color: #816c58;
  font-size: 12px;
  font-weight: 800;
  background: #eee7df;
  border-radius: 999px;
}

.enabled .area-status {
  color: #42643b;
  background: #dcebd7;
}

.service-area-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.area-enabled-option {
  display: flex;
  align-items: center;
  flex-direction: row;
  gap: 10px;
}

.area-enabled-option input {
  width: auto;
  height: auto;
}

.remote-shipping-rule-list {
  display: grid;
  gap: 12px;
}

.remote-shipping-rule-row {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 140px auto;
  align-items: center;
  gap: 18px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.remote-shipping-rule-row.disabled {
  opacity: 0.68;
}

.remote-shipping-region,
.remote-shipping-fee {
  display: grid;
  gap: 6px;
}

.remote-shipping-region strong {
  font-size: 16px;
}

.remote-shipping-region small,
.remote-shipping-fee small,
.remote-shipping-form-note {
  color: var(--muted);
}

.remote-shipping-fee b {
  font-size: 20px;
}

.remote-shipping-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.remote-shipping-form-note {
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
}

@media (max-width: 900px) {
  .service-area-grid,
  .remote-shipping-rule-row {
    grid-template-columns: 1fr;
  }

  .remote-shipping-actions {
    justify-content: flex-start;
  }
}

.wallet-recharge-panel {
  margin-top: 20px;
}

.wallet-recharge-summary {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.wallet-recharge-summary span {
  padding: 8px 11px;
  color: var(--muted);
  font-size: 13px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.wallet-recharge-summary b {
  color: var(--ink);
}

.wallet-recharge-list {
  display: grid;
  gap: 12px;
}

.wallet-recharge-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wallet-recharge-amount {
  display: grid;
  justify-items: end;
  gap: 5px;
  white-space: nowrap;
}

.wallet-recharge-amount span {
  color: var(--muted);
  font-size: 13px;
}

.wallet-recharge-amount em {
  padding: 4px 9px;
  color: #8a704f;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
  background: #f2e9dc;
  border-radius: 999px;
}

.wallet-recharge-amount em.success {
  color: #42643b;
  background: #dcebd7;
}

@media (max-width: 720px) {
  .wallet-recharge-card {
    align-items: flex-start;
    flex-direction: column;
  }

  .wallet-recharge-amount {
    justify-items: start;
  }
}
.code-input { min-height: 140px; width: 100%; box-sizing: border-box; font-family: Consolas, monospace; font-size: 12px; line-height: 1.5; white-space: pre; }
.sku-editor { display: grid; gap: 16px; padding: 16px; background: var(--soft); border: 1px solid var(--line); border-radius: 8px; }
.sku-editor-head, .sku-editor-group, .product-review-manager-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.sku-editor-head strong, .sku-editor-head span, .product-review-manager-head strong, .product-review-manager-head span { display: block; }
.sku-editor-head span, .product-review-manager-head span { margin-top: 4px; color: var(--muted); font-size: 12px; }
.sku-editor-groups { display: grid; gap: 10px; }
.sku-editor-group { align-items: center; padding: 12px; background: #fff; border: 1px solid var(--line); border-radius: 8px; }
.sku-editor-group > input { width: 150px; flex: 0 0 150px; }
.sku-editor-values { display: flex; flex: 1; flex-wrap: wrap; gap: 8px; align-items: center; }
.sku-editor-values span { display: inline-flex; gap: 4px; align-items: center; }
.sku-editor-values input { width: 100px; }
.sku-editor-values button, .sku-editor-group > button { white-space: nowrap; }
.sku-editor-table-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: 8px; }
.sku-editor-table { width: 100%; min-width: 860px; border-collapse: collapse; }
.sku-editor-table th, .sku-editor-table td { padding: 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.sku-editor-table th { color: var(--muted); font-size: 12px; font-weight: 700; background: #fffaf2; }
.sku-editor-table input:not([type="checkbox"]) { width: 100%; min-width: 90px; box-sizing: border-box; }
.sku-editor-image { display: grid; grid-template-columns: 48px 88px; gap: 6px; align-items: center; }
.sku-editor-image img, .sku-editor-image > span { display: grid; width: 48px; height: 48px; place-items: center; object-fit: cover; color: var(--muted); background: var(--soft); border: 1px solid var(--line); border-radius: 6px; font-size: 10px; }
.sku-editor-image input[type="file"] { width: 88px; font-size: 10px; }
.sku-enabled { display: flex; gap: 6px; align-items: center; white-space: nowrap; }
.product-review-catalog { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.product-review-catalog-card { display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; gap: 12px; align-items: center; width: 100%; padding: 12px; color: var(--ink); text-align: left; background: #fff; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; }
.product-review-catalog-card:hover { border-color: var(--gold); box-shadow: 0 4px 14px rgba(108, 82, 51, 0.1); }
.product-review-catalog-media { display: grid; width: 76px; height: 76px; place-items: center; overflow: hidden; color: var(--muted); background: var(--soft); border-radius: 6px; font-size: 12px; }
.product-review-catalog-media img { width: 100%; height: 100%; object-fit: cover; }
.product-review-catalog-main { display: grid; gap: 6px; min-width: 0; }
.product-review-catalog-main strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.product-review-catalog-main small { color: var(--muted); }
.product-review-catalog-main b { color: var(--gold); }
.product-review-catalog-enter { color: var(--gold); font-size: 12px; white-space: nowrap; }
.product-review-manager-head { justify-content: flex-start; padding: 12px; margin-bottom: 14px; background: var(--soft); border-radius: 8px; }
.product-review-manager-head img { width: 64px; height: 64px; object-fit: cover; border-radius: 6px; }
@media (max-width: 720px) { .sku-editor-group { align-items: stretch; flex-direction: column; } .sku-editor-group > input { width: 100%; flex-basis: auto; } .product-review-catalog-card { grid-template-columns: 64px minmax(0, 1fr); } .product-review-catalog-media { width: 64px; height: 64px; } .product-review-catalog-enter { grid-column: 2; } }
.pet-care-review-head { align-items: flex-start; }
body.pet-care-review-active .app { min-width: 0; }
.pet-care-review-status { display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; align-items: center; padding: 18px 20px; margin: 18px 0; border: 1px solid var(--line); border-left-width: 4px; border-radius: 6px; background: #fff; }
.pet-care-review-status span { color: var(--muted); font-size: 12px; }
.pet-care-review-status strong { font-size: 20px; }
.pet-care-review-status small { grid-column: 2; color: var(--muted); overflow-wrap: anywhere; }
.pet-care-review-status.pending { border-left-color: #a67c3d; }
.pet-care-review-status.approved { border-left-color: #398459; }
.pet-care-review-status.rejected { border-left-color: #b44949; }
.pet-care-rule-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.pet-care-rule-card { min-width: 0; padding: 16px; border: 1px solid var(--line); border-radius: 6px; background: var(--soft); }
.pet-care-rule-card strong { display: block; margin-bottom: 8px; color: var(--ink); }
.pet-care-rule-card p { margin: 0; color: var(--muted); line-height: 1.7; overflow-wrap: anywhere; }
.pet-care-review-form textarea { min-height: 130px; resize: vertical; }
.pet-care-review-actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 18px; }
.pet-care-review-history { display: grid; gap: 12px; }
.pet-care-review-record { padding: 16px; border: 1px solid var(--line); border-left: 4px solid #a67c3d; border-radius: 6px; background: #fff; }
.pet-care-review-record.approved { border-left-color: #398459; }
.pet-care-review-record.rejected { border-left-color: #b44949; }
.pet-care-review-record > div { display: flex; justify-content: space-between; gap: 16px; }
.pet-care-review-record p { margin: 8px 0 0; line-height: 1.6; }
.pet-care-review-record small, .pet-care-review-record span { color: var(--muted); overflow-wrap: anywhere; }
.wecom-switches { display: flex; flex-wrap: wrap; gap: 12px 24px; padding: 16px; background: var(--soft); border-radius: 8px; }
.wecom-switches label { display: flex; gap: 8px; align-items: center; font-weight: 700; }
.wecom-help { margin: 12px 0 0; color: var(--muted); font-size: 13px; }
.wecom-member-list, .wecom-delivery-list { display: grid; gap: 10px; }
.wecom-member-option, .wecom-delivery-item { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: var(--soft); border: 1px solid var(--line); border-radius: 8px; }
.wecom-member-option > span { display: grid; flex: 1; gap: 3px; }
.wecom-member-option small, .wecom-delivery-item small, .wecom-delivery-item span { color: var(--muted); }
.wecom-delivery-item { justify-content: space-between; border-left: 4px solid #a67c3d; }
.wecom-delivery-item.sent { border-left-color: #398459; }
.wecom-delivery-item.failed { border-left-color: #b44949; }
.wecom-delivery-item > div { display: grid; gap: 4px; }
.wecom-delivery-item > div:last-child { justify-items: end; text-align: right; }
@media (max-width: 720px) {
  .wecom-recipient-layout { grid-template-columns: 1fr; }
  .wecom-delivery-item { align-items: flex-start; flex-direction: column; }
  .wecom-delivery-item > div:last-child { justify-items: start; text-align: left; }
  .pet-care-review-head { align-items: stretch; flex-direction: column; }
  .pet-care-review-head button { width: 100%; }
  .pet-care-review-status { grid-template-columns: 1fr; }
  .pet-care-review-status small { grid-column: 1; }
  .pet-care-rule-grid { grid-template-columns: 1fr; }
  .pet-care-review-actions { flex-direction: column-reverse; }
  .pet-care-review-actions button { width: 100%; }
  .pet-care-review-record > div { align-items: flex-start; flex-direction: column; gap: 4px; }
}
.coupon-landing-editor { display:grid; grid-template-columns:minmax(0,1fr) 390px; gap:24px; align-items:start; }
.coupon-landing-status { display:flex; justify-content:space-between; padding:12px 16px; border-radius:12px; background:#f5ede5; }
.coupon-landing-rules { border:1px solid #e6d7c8; border-radius:12px; padding:12px; }
.coupon-landing-rules label { display:flex; align-items:center; gap:10px; margin:6px 0; cursor:grab; }
.coupon-landing-phone { position:relative; aspect-ratio:375/812; border:8px solid #2d251f; border-radius:32px; padding:18px 18px 86px; overflow:hidden; box-shadow:0 16px 36px rgba(68,45,28,.18); }
.coupon-landing-hero { position:absolute; top:0; right:0; bottom:92px; left:0; display:flex; align-items:flex-start; justify-content:center; overflow:hidden; border-radius:10px; background:transparent; }
.coupon-landing-hero img { width:100%; height:auto; max-height:100%; object-fit:contain; }
.coupon-landing-phone h3 { margin:22px 0 6px; font-size:28px; }
.coupon-landing-phone p { line-height:1.6; }
.coupon-landing-ticket { display:grid; gap:6px; margin:20px 0; padding:18px; border-radius:16px; background:#fff; box-shadow:0 8px 22px rgba(80,54,34,.1); }
.coupon-landing-phone > button { position:absolute; right:18px; bottom:22px; left:18px; width:calc(100% - 36px); padding:14px; border:0; border-radius:999px; color:#fff; font-weight:700; }
@media (max-width:900px) { .coupon-landing-editor { grid-template-columns:1fr; } .coupon-landing-preview-wrap { max-width:390px; width:100%; margin:auto; } }
