:root {
  --bg: #f3f5f7;
  --surface: #ffffff;
  --surface-soft: #f8fafb;
  --text: #18212b;
  --muted: #697480;
  --line: #dfe4e8;
  --brand: #1769e0;
  --brand-dark: #0f4fae;
  --brand-soft: #eaf2ff;
  --green: #12845b;
  --green-soft: #e4f5ee;
  --amber: #a86805;
  --amber-soft: #fff2d8;
  --red: #c53939;
  --red-soft: #fdeaea;
  --cyan: #177e89;
  --yellow: #f0ad2c;
  --sidebar: #171c22;
  --sidebar-hover: #252c34;
  --shadow: 0 8px 24px rgba(24, 33, 43, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font: 14px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  letter-spacing: 0;
}
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
h1, h2, h3, p { margin-top: 0; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid rgba(23, 105, 224, 0.18);
  outline-offset: 2px;
}

.btn {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 7px 13px;
  background: #fff;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  white-space: nowrap;
  transition: border-color .18s ease, color .18s ease, background .18s ease;
}
.btn:hover { border-color: #99bce9; color: var(--brand); }
.btn.primary { color: #fff; background: var(--brand); border-color: var(--brand); }
.btn.primary:hover { background: var(--brand-dark); }
.btn.ghost { background: var(--surface-soft); }
.btn.large { min-height: 44px; padding-inline: 22px; font-weight: 700; }
#orderForm button[type="submit"],
#orderSubmitConfirm [data-order-confirm="submit"],
#orderSubmitConfirm [data-order-confirm="cancel"] {
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(23, 105, 224, .14);
}
.client-app.fitment-clean .client-main { background: #f4f8fc; }
.client-app.fitment-clean .home-category-sidebar,
.client-app.fitment-clean .reference-account { box-shadow: 0 5px 16px rgba(23, 105, 224, 0.07); }
.client-app.fitment-business .client-main { background: #f1f3f5; }
.client-app.fitment-business .client-header { border-bottom-color: #cfd4da; }
.client-app.fitment-business .home-category-sidebar,
.client-app.fitment-business .reference-account { border-color: #d1d5db; box-shadow: none; }
.text-btn, .table-actions button {
  border: 0;
  padding: 3px 0;
  background: transparent;
  color: var(--brand);
}
.danger-text { color: var(--red) !important; }
.icon-btn, .mobile-menu, .sidebar-toggle {
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  display: grid;
  place-items: center;
  font-size: 19px;
}

.field { min-width: 0; }
.field label { display: block; color: #4f5c68; font-size: 13px; font-weight: 650; margin-bottom: 6px; }
.field input, .field select, .field textarea, .filter-bar input, .filter-bar select,
.store-search input, .catalog-head input, .query-hero input {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--text);
  padding: 9px 11px;
}

.support-settings-page { max-width: 980px; }
.support-setting-previews { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.support-setting-previews article { min-height: 250px; padding: 18px; display: grid; place-items: center; align-content: center; gap: 10px; border: 1px solid var(--line); background: #fff; }
.support-setting-previews img { width: 170px; height: 170px; object-fit: contain; }
.support-setting-previews span { color: var(--muted); font-size: 12px; }
.support-setting-empty { width: 170px; height: 170px; display: grid; place-items: center; color: var(--muted); border: 1px dashed var(--line); background: var(--surface-soft); }
.balance-confirm-summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.balance-confirm-summary > div { padding: 14px; display: grid; gap: 4px; border: 1px solid var(--line); background: var(--surface-soft); }
.balance-confirm-summary span { color: var(--muted); font-size: 12px; }
.balance-confirm-summary strong { font-size: 18px; }
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus, .filter-bar input:focus {
  border-color: #7eaae5;
  outline: 0;
  box-shadow: 0 0 0 3px rgba(23, 105, 224, .1);
}
.checkbox-field { display: flex; align-items: center; gap: 10px; color: #4b5565; font-size: 14px; line-height: 1.6; }
.checkbox-field input { width: 16px; height: 16px; flex: 0 0 auto; }
.image-upload-layout { display: grid; grid-template-columns: 176px minmax(0, 1fr); gap: 14px; align-items: stretch; }
.image-upload-preview { min-height: 118px; overflow: hidden; display: grid; place-items: center; border: 1px dashed #c7ced8; border-radius: 6px; background: #f7f8fa; color: var(--muted); }
.image-upload-preview img { width: 100%; height: 100%; max-height: 180px; object-fit: cover; }
.image-upload-controls { min-width: 0; display: grid; align-content: center; gap: 9px; }
.image-upload-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.image-file-button { position: relative; overflow: hidden; cursor: pointer; }
.image-file-button input { position: absolute; width: 1px !important; height: 1px; min-height: 0 !important; opacity: 0; pointer-events: none; }
.image-upload-controls > small { color: var(--muted); line-height: 1.5; }
.image-upload-field.is-uploading { opacity: .68; pointer-events: none; }
.image-gallery-field { display: grid; gap: 10px; }
.product-detail-upload { padding: 16px; border: 1px solid #b7cff0; border-radius: 6px; background: #f4f8fe; scroll-margin: 28px; }
.product-detail-upload.is-focused { box-shadow: 0 0 0 3px rgba(23, 105, 224, .12); }
.image-gallery-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.image-gallery-heading > div { display: grid; gap: 3px; }
.image-gallery-heading strong { color: #243244; font-size: 15px; }
.image-gallery-heading span { color: var(--muted); font-size: 12px; }
.image-gallery-count { flex: 0 0 auto; padding: 3px 7px; border: 1px solid #c9d9ef; border-radius: 4px; background: #fff; color: #4e6789 !important; }
.image-gallery-actions .primary { min-height: 40px; }
.image-gallery-field > small { color: var(--muted); line-height: 1.5; }
.image-gallery-field.is-uploading { opacity: .68; pointer-events: none; }
.image-gallery-preview { min-height: 112px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; padding: 10px; border: 1px dashed #c7ced8; border-radius: 6px; background: #f7f8fa; color: var(--muted); }
.image-gallery-preview > span { grid-column: 1 / -1; align-self: center; text-align: center; }
.image-gallery-preview figure { position: relative; min-width: 0; margin: 0; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: #fff; }
.image-gallery-preview img { display: block; width: 100%; height: 112px; object-fit: contain; background: #f2f4f7; }
.image-gallery-preview figcaption { padding: 5px 7px; color: var(--muted); font-size: 11px; text-align: center; }
.image-gallery-preview button { position: absolute; top: 5px; right: 5px; width: 26px; height: 26px; border: 0; border-radius: 50%; background: rgba(28, 35, 43, .82); color: #fff; font-size: 18px; line-height: 1; cursor: pointer; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.product-editor-section { display: flex; align-items: baseline; gap: 10px; margin-top: 4px; padding-top: 14px; border-top: 1px solid var(--line); }
.product-editor-section:first-of-type { margin-top: 0; padding-top: 0; border-top: 0; }
.product-editor-section strong { color: #243244; font-size: 16px; }
.product-editor-section span { color: var(--muted); font-size: 12px; }
.order-parameter-editor { display: grid; gap: 8px; }
.order-parameter-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.order-parameter-heading label { margin: 0; }
.order-parameter-editor > small { color: var(--muted); line-height: 1.5; }
.order-parameter-table { width: 100%; min-width: 1040px; border-collapse: collapse; }
.order-parameter-table th, .order-parameter-table td { padding: 8px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.order-parameter-table th { background: var(--surface-soft); color: #5d6873; font-size: 12px; white-space: nowrap; }
.order-parameter-table input, .order-parameter-table select { width: 100%; min-width: 105px; min-height: 36px; padding: 7px 9px; border: 1px solid #cfd6dd; border-radius: 4px; background: #fff; color: var(--text); }
.order-parameter-table button { border: 0; background: transparent; color: var(--red); cursor: pointer; }
.required-mark { margin-left: 3px; color: var(--red); }
.order-parameter-field small { display: block; margin-top: 5px; color: var(--muted); line-height: 1.45; }
.product-id-readonly input { color: #667085; background: #f5f7fa; cursor: not-allowed; }
.full { grid-column: 1 / -1; }
.subtle { color: var(--muted); font-size: 12px; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }

.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; margin-right: 5px; }
.badge.success { color: #0f6d4b; background: var(--green-soft); }
.badge.warning { color: #875604; background: var(--amber-soft); }
.badge.danger { color: #a72e2e; background: var(--red-soft); }

/* Client */
.client-header {
  height: 68px;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
}
.client-head-inner { max-width: 1220px; height: 100%; margin: 0 auto; padding: 0 20px; display: flex; align-items: center; gap: 30px; }
.client-brand { display: flex; align-items: center; gap: 9px; font-size: 18px; font-weight: 800; flex-shrink: 0; }
.client-brand img { width: 36px; height: 36px; border-radius: 6px; }
.client-nav { display: flex; align-items: stretch; height: 100%; gap: 4px; }
.client-nav a { min-width: 78px; padding: 0 13px; display: grid; place-items: center; color: #4e5965; border-bottom: 2px solid transparent; }
.client-nav a:hover, .client-nav a.active { color: var(--brand); border-bottom-color: var(--brand); }
.client-account { margin-left: auto; display: flex; align-items: center; gap: 15px; white-space: nowrap; }
.client-account > a:first-child { color: #465360; font-weight: 700; }
.admin-entry { border-left: 1px solid var(--line); padding-left: 15px; color: var(--brand); font-weight: 700; }
.mobile-menu { display: none; }
.client-main { min-height: calc(100vh - 68px); }
.notice-strip { max-width: 1220px; margin: 14px auto 0; padding: 10px 18px; display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; border: 1px solid #f0d08f; background: #fff9e9; border-radius: 6px; color: #6f520e; }
.notice-strip > span { background: var(--yellow); color: #231b08; padding: 2px 7px; border-radius: 4px; font-size: 12px; font-weight: 800; }
.notice-strip div { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.notice-strip a { color: var(--brand); }
.banner-rail { max-width: 1220px; margin: 14px auto 0; display: grid; grid-template-columns: minmax(0, 2fr) minmax(240px, 1fr); grid-auto-rows: 118px; gap: 10px; }
.banner-rail a { position: relative; overflow: hidden; border-radius: 6px; background-color: #203445; background-size: cover; background-position: center; }
.banner-rail a:first-child { grid-row: span 2; }
.banner-rail span { position: absolute; left: 16px; bottom: 14px; max-width: calc(100% - 32px); padding: 5px 9px; border-radius: 4px; background: rgba(17, 28, 38, .82); color: #fff; font-weight: 700; }
.store-hero {
  max-width: 1220px;
  min-height: 360px;
  margin: 14px auto 0;
  padding: 54px 58px;
  background: #172b3c;
  color: #fff;
  border-radius: 8px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 36px;
  align-items: center;
  overflow: hidden;
}
.hero-copy h1 { margin: 10px 0 12px; font-size: 40px; line-height: 1.15; letter-spacing: 0; }
.hero-copy > p { max-width: 640px; color: #c8d7e4; font-size: 17px; }
.eyebrow { color: #85b7f3; font-size: 12px; font-weight: 800; letter-spacing: 0; }
.store-search { max-width: 610px; display: grid; grid-template-columns: 1fr 88px; margin-top: 24px; }
.store-search input { border-radius: 6px 0 0 6px; min-height: 48px; border-color: #fff; }
.store-search button, .catalog-head form button, .query-hero form button {
  border: 1px solid var(--yellow); background: var(--yellow); color: #1d2024; border-radius: 0 6px 6px 0; font-weight: 800;
}
.hero-points { display: flex; flex-wrap: wrap; gap: 9px 18px; margin-top: 20px; color: #b9c9d7; }
.hero-points span::before { content: "✓"; color: #5bd7a7; margin-right: 6px; }
.hero-status { background: #fff; color: var(--text); border-radius: 8px; padding: 24px; display: grid; grid-template-columns: 72px 1fr; gap: 17px; align-items: center; box-shadow: 0 18px 40px rgba(0, 0, 0, .24); }
.hero-status img { width: 72px; border-radius: 8px; }
.hero-status span, .hero-status small { display: block; color: var(--muted); }
.hero-status strong { display: block; margin: 4px 0; font-size: 18px; }
.account-shortcuts { max-width: 1220px; margin: 14px auto 0; padding: 16px 18px; display: grid; grid-template-columns: minmax(230px, 1.6fr) repeat(8, minmax(72px, .7fr)); gap: 6px; align-items: stretch; background: #fff; border: 1px solid var(--line); border-radius: 6px; }
.account-shortcuts > div { display: grid; align-content: center; border-right: 1px solid var(--line); }
.account-shortcuts > div span, .account-shortcuts > div strong { display: block; }
.account-shortcuts > div span { color: var(--muted); font-size: 12px; }
.account-shortcuts > a { min-height: 50px; display: grid; place-items: center; border-radius: 5px; color: #4c5965; }
.account-shortcuts > a:hover { color: var(--brand); background: var(--brand-soft); }
.store-section { max-width: 1220px; margin: 42px auto; padding: 0 20px; }
.catalog-section { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 24px; align-items: start; }
.catalog-navigation { position: sticky; top: 82px; min-width: 0; }
.catalog-results { min-width: 0; }
.catalog-pagination { margin-top: 18px; justify-content: flex-end; }
.clone-pagination { display: flex; align-items: center; justify-content: flex-end; gap: 8px; color: #606a76; font-size: 12px; }
.clone-pagination button,
.clone-pagination select,
.clone-pagination input { height: 30px; border: 1px solid var(--line); border-radius: 3px; color: #606a76; background: #fff; }
.clone-pagination button { min-width: 30px; padding: 0 9px; }
.clone-pagination button.active { color: #fff; border-color: var(--brand); background: var(--brand); }
.clone-pagination button:disabled { color: #b6bec8; background: #f4f6f8; cursor: not-allowed; }
.clone-pagination input { width: 48px; padding: 0 5px; text-align: center; }
.clone-pagination select { padding: 0 8px; }
.category-rail { display: grid; grid-template-columns: 1fr; border: 1px solid var(--line); background: #fff; border-radius: 6px; overflow: hidden; margin: 0; }
.category-rail button { min-width: 0; min-height: 46px; padding: 7px 11px; display: grid; grid-template-columns: 24px minmax(0, 1fr); grid-template-areas: "icon name" "icon count"; align-items: center; column-gap: 9px; border: 0; border-bottom: 1px solid var(--line); background: #fff; text-align: left; }
.category-rail button:last-child { border-bottom: 0; }
.category-rail button:hover, .category-rail button.active { background: var(--brand-soft); color: var(--brand); }
.category-rail b, .category-rail small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.category-rail .home-category-icon { grid-area: icon; width: 24px; height: 24px; border-radius: 5px; font-size: 11px; }
.category-rail b { grid-area: name; min-width: 0; align-self: end; font-size: 14px; line-height: 18px; }
.category-rail small { grid-area: count; min-width: 0; margin-top: 0; align-self: start; color: var(--muted); font-size: 11px; line-height: 14px; }
.subcategory-rail { display: grid; gap: 5px; margin: 10px 0 0; padding: 10px; border: 1px solid var(--line); background: #fff; }
.subcategory-rail button { min-height: 34px; padding: 6px 13px; border: 1px solid var(--line); border-radius: 4px; background: #fff; color: var(--text); }
.subcategory-rail button:hover, .subcategory-rail button.active { border-color: var(--brand); background: var(--brand-soft); color: var(--brand); }
.subcategory-rail small { margin-left: 4px; color: var(--muted); }
.category-child { padding-left: 24px !important; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 18px; }
.section-head h2 { font-size: 24px; margin-bottom: 3px; }
.section-head p { color: var(--muted); margin: 0; }
.section-head > a { color: var(--brand); }
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.product-card { min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; transition: transform .18s ease, box-shadow .18s ease; }
.product-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.product-visual { height: 170px; display: grid; place-items: center; align-content: center; gap: 6px; overflow: hidden; color: #fff; }
.product-visual.has-image { height: 150px; min-height: 0; display: grid; place-items: center; background: #f5f7fa; }
.product-visual img { display: block; width: 100%; height: 100%; object-fit: contain; background: #f5f7fa; }
.product-visual > span { font-size: 36px; font-weight: 850; }
.product-visual > small { opacity: .82; }
.tone-0 { background: #1c6e8c; } .tone-1 { background: #206a5d; } .tone-2 { background: #c17728; } .tone-3 { background: #5751a6; } .tone-4 { background: #b54848; }
.product-card-body { padding: 15px; }
.product-meta { display: flex; justify-content: space-between; gap: 10px; color: var(--muted); font-size: 12px; }
.product-title { display: block; min-height: 48px; margin: 8px 0 5px; font-size: 16px; font-weight: 750; }
.product-card p { height: 42px; color: var(--muted); font-size: 13px; margin-bottom: 12px; overflow: hidden; }
.product-bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 11px; border-top: 1px solid var(--line); }
.product-bottom strong { color: var(--red); font-size: 21px; }
.buy-link { color: var(--brand); font-weight: 700; }
.catalog-results .product-grid { gap: 12px; }
@media (min-width: 641px) {
  .catalog-results .product-visual,
  .catalog-results .product-visual.has-image { height: 100px; }
  .catalog-results .product-visual.has-image { position: relative; }
  .catalog-results .product-visual.has-image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
    object-fit: contain;
  }
  .catalog-results .product-card-body { padding: 8px 10px; }
  .catalog-results .product-meta { font-size: 11px; }
  .catalog-results .product-title {
    min-height: 34px;
    margin: 4px 0 1px;
    display: -webkit-box;
    overflow: hidden;
    font-size: 14px;
    line-height: 17px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }
  .catalog-results .product-no { font-size: 11px; }
  .catalog-results .product-card p {
    height: 16px;
    margin: 2px 0 5px;
    overflow: hidden;
    font-size: 12px;
    line-height: 16px;
    white-space: nowrap;
    text-overflow: ellipsis;
  }
  .catalog-results .product-bottom { padding-top: 5px; }
  .catalog-results .product-bottom strong { font-size: 18px; }
}
.product-card.is-unavailable .product-visual,
.compact-product.is-unavailable .product-visual { opacity: .72; }
.product-card.is-unavailable .buy-link,
.compact-product.is-unavailable em { color: var(--muted); }
.process-band { max-width: 1220px; margin: 52px auto; padding: 26px 28px; background: #fff; border: 1px solid var(--line); border-radius: 6px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.process-band > div { display: grid; grid-template-columns: 40px 1fr; column-gap: 12px; padding: 0 20px; border-right: 1px solid var(--line); }
.process-band > div:last-child { border-right: 0; }
.process-band b { grid-row: 1 / 3; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: var(--brand-soft); color: var(--brand); }
.process-band strong, .process-band span { display: block; }
.process-band span { color: var(--muted); font-size: 12px; }
.client-footer { margin-top: 58px; background: #20252b; color: #d4d8dc; }
.footer-inner { max-width: 1220px; margin: auto; padding: 36px 20px; display: grid; grid-template-columns: 2fr repeat(3, minmax(0, 1fr)); gap: 38px; }
.footer-inner strong { color: #fff; }
.footer-inner p { margin: 7px 0; color: #aeb6be; }
.footer-inner a:hover, .copyright a:hover { color: #fff; text-decoration: underline; }
.footer-service-button { padding: 0; border: 0; background: transparent; color: #aeb6be; cursor: pointer; }
.footer-service-button:hover { color: #fff; text-decoration: underline; }
.copyright { border-top: 1px solid #353c43; padding: 14px 20px; text-align: center; color: #8e989f; }

.catalog-head { max-width: 1220px; margin: 0 auto; padding: 48px 20px 26px; display: flex; justify-content: space-between; align-items: flex-end; gap: 28px; }
.catalog-head h1 { margin: 7px 0 0; font-size: 34px; }
.catalog-head form { width: min(500px, 100%); display: grid; grid-template-columns: 1fr 80px; }
.catalog-head input { border-radius: 6px 0 0 6px; }
.catalog-section { margin-top: 0; }
.product-detail { max-width: 1220px; margin: 30px auto; padding: 0 20px; display: grid; grid-template-columns: 460px minmax(0, 1fr); gap: 44px; }
.detail-media { min-width: 0; }
.product-visual.large { width: 100%; height: 430px; border-radius: 8px; }
.product-visual.large.has-image { height: 360px; max-height: none; }
.product-visual.large > span { font-size: 66px; }
.detail-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.detail-badges span { padding: 5px 9px; background: #fff; border: 1px solid var(--line); border-radius: 4px; color: var(--muted); font-size: 12px; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 7px; color: var(--muted); font-size: 12px; margin-bottom: 20px; }
.detail-main h1 { font-size: 30px; margin-bottom: 10px; }
.detail-description { color: var(--muted); font-size: 15px; }
.detail-price { display: flex; align-items: baseline; gap: 8px; background: #fff3ed; padding: 16px; border-left: 3px solid var(--red); margin: 20px 0; }
.detail-price small, .detail-price span { color: var(--muted); }
.detail-price strong { color: var(--red); font-size: 29px; }
.product-spec { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0 0 22px; border: 1px solid var(--line); border-radius: 6px; }
.product-spec div { padding: 10px 12px; display: grid; grid-template-columns: 80px 1fr; gap: 8px; border-bottom: 1px solid var(--line); }
.product-spec div:nth-last-child(-n+2) { border-bottom: 0; }
.product-spec dt { color: var(--muted); }
.product-spec dd { margin: 0; }
.purchase-form { background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 20px; display: grid; gap: 14px; }
.package-quantity-control { width: min(100%, 520px); display: grid; grid-template-columns: 42px minmax(90px, 1fr) 42px auto; align-items: stretch; }
.package-quantity-control button { min-width: 0; height: 44px; padding: 0; border: 1px solid #d9dee7; background: #f7f8fa; color: #4d5664; font-size: 22px; line-height: 1; }
.package-quantity-control button:first-child { border-radius: 5px 0 0 5px; }
.package-quantity-control button:nth-of-type(2) { border-radius: 0; }
.package-quantity-control button:hover { color: var(--red); background: #fff5f4; }
.package-quantity-control input { min-width: 0; height: 44px; border-width: 1px 0; border-radius: 0; text-align: center; font-weight: 700; }
.package-quantity-control span { min-width: 130px; height: 44px; padding: 0 15px; display: flex; align-items: center; border: 1px solid #d9dee7; border-left: 0; border-radius: 0 5px 5px 0; color: #e14242; background: #fafafa; font-weight: 700; white-space: nowrap; }
.package-quantity-field small b { color: var(--red); }
.purchase-total { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 4px; }
.purchase-total span { color: var(--muted); }
.detail-info { background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 24px; }
.detail-copy { max-width: 820px; color: #4f5963; }
.product-auth-entry { margin: 4px 0 22px; padding: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 1fr) 190px; gap: 28px; align-items: center; }
.product-auth-content h3 { margin: 0 0 8px; font-size: 20px; }
.product-auth-content p { max-width: 680px; margin: 0 0 15px; color: #4f5963; line-height: 1.7; }
.product-auth-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; }
.product-auth-open { min-height: 42px; }
.product-auth-address, .product-auth-inline-link { max-width: 100%; color: var(--brand); overflow-wrap: anywhere; text-decoration: underline; text-underline-offset: 3px; }
.product-auth-address:hover, .product-auth-inline-link:hover { color: var(--red); }
.product-auth-qr { display: grid; justify-items: center; gap: 8px; color: var(--muted); font-size: 12px; text-align: center; }
.product-auth-qr img { display: block; width: 168px; height: 168px; border: 1px solid var(--line); background: #fff; }
.product-auth-qr:hover { color: var(--brand); }
.product-detail-gallery { display: grid; gap: 14px; margin-top: 20px; }
.product-detail-gallery img { display: block; width: 100%; height: auto; border-radius: 6px; background: #f5f7fa; }
.query-hero { background: #172b3c; color: #fff; padding: 62px 20px; text-align: center; }
.query-hero h1 { font-size: 34px; margin: 9px 0; }
.query-hero p { color: #c4d1dc; }
.query-hero form { width: min(660px, 100%); margin: 24px auto 0; display: grid; grid-template-columns: 1fr 106px; }
.query-hero input { min-height: 48px; border-radius: 6px 0 0 6px; }
.query-results { min-height: 300px; }
.order-result-list { display: grid; gap: 14px; }
.order-result { border: 1px solid var(--line); background: #fff; border-radius: 6px; padding: 18px; }
.order-result-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding-bottom: 13px; border-bottom: 1px solid var(--line); }
.order-result-head strong, .order-result-head span { display: block; }
.order-result-head span { color: var(--muted); font-size: 12px; }
.order-result-grid { display: grid; grid-template-columns: 1.2fr 1fr 1.5fr 1fr; gap: 24px; padding: 16px 0; }
.order-result-grid > div { min-width: 0; }
.order-result-grid small, .order-result-grid b, .order-result-grid span { display: block; overflow-wrap: anywhere; }
.order-result-grid small { color: var(--muted); margin-bottom: 5px; }
.order-result-grid span { color: var(--muted); font-size: 12px; margin-top: 4px; }
.progress-breakdown { display: flex; flex-wrap: wrap; gap: 6px 12px; margin-top: 8px; }
.progress-breakdown span { display: inline-flex; align-items: center; gap: 4px; margin-top: 0; }
.progress-breakdown b { color: var(--text); }
.order-result-actions { display: flex; justify-content: flex-end; gap: 8px; }
.public-order-table { min-width: 1220px; }
.public-order-table th, .public-order-table td { height: 50px; padding: 6px 9px; }
.public-order-table td { vertical-align: middle; }
.public-order-table td:nth-child(2) { max-width: 190px; }
.public-order-table td:nth-child(5) { min-width: 220px; }
.public-order-table .order-param-summary { text-align: left; }
.public-order-progress { min-width: 205px; }
.public-order-progress .progress { height: 6px; margin-bottom: 4px; }
.public-order-progress small { display: block; margin-top: 1px; color: var(--muted); line-height: 1.35; }
.public-order-actions { min-width: 76px; }
.account-head { display: flex; justify-content: space-between; gap: 20px; align-items: flex-end; margin-bottom: 24px; }
.account-head h1 { font-size: 32px; margin: 7px 0; }
.help-layout { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 40px; align-items: start; }
.help-nav { position: sticky; top: 92px; border: 1px solid var(--line); background: #fff; border-radius: 6px; padding: 8px; }
.help-nav a { display: block; padding: 10px 12px; border-radius: 4px; }
.help-nav a:hover { background: var(--brand-soft); color: var(--brand); }
.help-content { background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 32px; }
.help-content section { padding: 10px 0 26px; margin-bottom: 20px; border-bottom: 1px solid var(--line); }
.help-content section:last-child { border-bottom: 0; }
.help-content h1 { font-size: 32px; margin-top: 7px; }
.help-content li { margin: 8px 0; }
.help-content details { border-top: 1px solid var(--line); padding: 12px 0; }
.help-content summary { cursor: pointer; font-weight: 700; }
.service-cta { margin-bottom: 12px; }
.legal-page { max-width: 960px; }
.legal-page > header { padding: 32px; border: 1px solid var(--line); border-bottom: 0; border-radius: 6px 6px 0 0; background: #eef5ff; }
.legal-page > header h1 { margin: 8px 0; font-size: 32px; }
.legal-page > header p { max-width: 720px; margin-bottom: 8px; color: #506071; }
.legal-page > header small { color: var(--muted); }
.legal-content { padding: 10px 32px 20px; border: 1px solid var(--line); background: #fff; }
.legal-content section { padding: 22px 0; border-bottom: 1px solid var(--line); }
.legal-content section:last-child { border-bottom: 0; }
.legal-content h2 { margin-bottom: 8px; font-size: 18px; }
.legal-content p { margin: 0; color: #4f5c68; }
.legal-content a, .legal-contact a, .legal-consent a { color: var(--brand); text-decoration: underline; }
.legal-contact { display: flex; justify-content: space-between; gap: 18px; padding: 18px 32px; border: 1px solid var(--line); border-top: 0; border-radius: 0 0 6px 6px; background: var(--surface-soft); }

/* Admin */
.admin-shell { min-height: 100vh; display: grid; grid-template-columns: 232px minmax(0, 1fr); }
.admin-sidebar { position: sticky; top: 0; height: 100vh; overflow-y: auto; background: var(--sidebar); color: #cbd1d6; }
.admin-brand { height: 68px; display: flex; align-items: center; gap: 10px; padding: 0 18px; border-bottom: 1px solid #2e353c; color: #fff; }
.admin-brand img { width: 36px; height: 36px; border-radius: 6px; }
.admin-brand strong, .admin-brand span { display: block; max-width: 148px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.admin-brand span { color: #8f99a2; font-size: 11px; }
.admin-sidebar nav { padding: 10px; }
.admin-nav-group { margin-bottom: 8px; }
.admin-nav-label { padding: 9px 11px 5px; color: #75808a; font-size: 11px; }
.admin-nav-group a { display: flex; align-items: center; gap: 11px; min-height: 39px; padding: 8px 11px; border-radius: 5px; color: #bdc5cc; }
.admin-nav-group a > span { width: 19px; height: 19px; display: grid; place-items: center; background: #30373e; border-radius: 4px; font-size: 11px; color: #aab5bf; }
.admin-nav-group a:hover, .admin-nav-group a.active { background: var(--sidebar-hover); color: #fff; }
.admin-nav-group a.active { box-shadow: inset 3px 0 var(--brand); }
.admin-nav-group a.active > span { color: #fff; background: var(--brand); }
.sidebar-foot { padding: 14px 18px 20px; display: grid; gap: 11px; border-top: 1px solid #2e353c; font-size: 12px; }
.sidebar-foot > a { color: #9ebfea; }
.sidebar-foot > a.runtime-badge {
  min-height: 34px;
  padding: 7px 12px;
  display: flex;
  align-items: center;
  gap: 7px;
  border-radius: 999px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}
.runtime-badge::before { content: ""; width: 6px; height: 6px; flex: 0 0 6px; border-radius: 50%; background: currentColor; }
.runtime-badge span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.runtime-badge i { margin-left: auto; font-size: 18px; line-height: 1; font-style: normal; }
.runtime-badge.success { color: #0f6d4b; background: var(--green-soft); }
.runtime-badge.warning { color: #875604; background: var(--amber-soft); }
.runtime-badge.danger { color: #a72e2e; background: var(--red-soft); }
.runtime-badge:hover { filter: brightness(.96); transform: translateY(-1px); }
.runtime-badge:focus-visible { outline: 2px solid #6da5eb; outline-offset: 2px; }
.admin-main { min-width: 0; }
.admin-top { height: 68px; position: sticky; top: 0; z-index: 15; display: flex; align-items: center; gap: 14px; padding: 0 24px; background: rgba(255, 255, 255, .96); border-bottom: 1px solid var(--line); }
.admin-top h1 { margin: 0; font-size: 20px; }
.admin-top p { margin: 1px 0 0; color: var(--muted); font-size: 12px; }
.admin-top-actions { margin-left: auto; display: flex; gap: 8px; }
.admin-top-recharge { min-height: 34px; padding: 0 10px; display: inline-flex; align-items: center; gap: 7px; border: 1px solid #d7e3f2; border-radius: 4px; color: #1769e0; background: #f4f8fe; font-size: 12px; font-weight: 700; text-decoration: none; }
.admin-top-recharge:hover { border-color: #99bdea; background: #eaf3ff; }
.admin-top-recharge b { min-width: 18px; height: 18px; padding: 0 5px; display: inline-grid; place-items: center; border-radius: 9px; color: #fff; background: #e45656; font-size: 10px; }
.sidebar-toggle { display: none; }
.admin-content { padding: 22px 24px 40px; max-width: 1640px; }
.admin-recharge-alert { margin: 0 0 16px; padding: 13px 15px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border: 1px solid #f0cf91; border-left: 4px solid #d89018; border-radius: 6px; color: #664a17; background: #fff8e8; }
.admin-recharge-alert[hidden] { display: none; }
.admin-recharge-alert > div { min-width: 0; }
.admin-recharge-alert strong { display: block; color: #7b5208; font-size: 15px; }
.admin-recharge-alert p { margin: 4px 0 0; line-height: 1.5; }
.admin-recharge-alert .btn { flex: 0 0 auto; }
.admin-panel { min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 18px; }
.panel-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; margin-bottom: 16px; }
.panel-head h2 { font-size: 17px; margin: 0 0 2px; }
.panel-head p { color: var(--muted); margin: 0; font-size: 12px; }
.panel-head > a { color: var(--brand); }
.panel-actions, .table-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.metric-grid { display: grid; grid-template-columns: repeat(6, minmax(130px, 1fr)); gap: 14px; margin-bottom: 16px; }
.metric-card { min-width: 0; padding: 17px; background: #fff; border: 1px solid var(--line); border-radius: 6px; border-top: 3px solid var(--brand); }
.metric-card-link { color: inherit; text-decoration: none; }
.metric-card-link:hover { border-color: #a9c9f2; box-shadow: 0 5px 16px rgba(23, 105, 224, .09); }
.metric-card:nth-child(2) { border-top-color: var(--yellow); }
.metric-card:nth-child(3) { border-top-color: var(--green); }
.metric-card:nth-child(4) { border-top-color: var(--cyan); }
.metric-card:nth-child(5) { border-top-color: #775da8; }
.metric-card span, .metric-card small, .metric-card strong { display: block; }
.metric-card span { color: var(--muted); font-size: 12px; }
.metric-card strong { margin: 6px 0 3px; font-size: 25px; }
.metric-card small { color: var(--muted); }
.analytics-dashboard { margin-bottom: 16px; padding: 20px; color: #eef3f7; background: #2b3139; border: 1px solid #363e48; border-radius: 6px; box-shadow: 0 10px 28px rgba(25, 32, 40, .13); }
.analytics-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
.analytics-head > div:first-child > span { color: #7eb8ff; font-size: 12px; font-weight: 700; }
.analytics-head h2 { margin: 2px 0 2px; font-size: 20px; }
.analytics-head p { margin: 0; color: #aeb8c3; font-size: 12px; }
.analytics-range { display: flex; flex: 0 0 auto; overflow: auto; border: 1px solid #515b68; border-radius: 5px; background: #343b45; scrollbar-width: thin; }
.analytics-range button { min-width: 72px; height: 38px; border: 0; border-right: 1px solid #515b68; padding: 0 13px; color: #d2d9e0; background: transparent; white-space: nowrap; }
.analytics-range button:last-child { border-right: 0; }
.analytics-range button:hover { color: #fff; background: #3e4752; }
.analytics-range button.active { color: #fff; background: #2e8bea; font-weight: 700; }
.analytics-summary { display: grid; grid-template-columns: repeat(4, minmax(140px, 1fr)); gap: 12px; margin-bottom: 14px; }
.analytics-summary article { min-width: 0; min-height: 106px; padding: 15px; display: grid; align-content: center; gap: 4px; border: 1px solid rgba(255, 255, 255, .08); border-left: 4px solid #4d9bea; border-radius: 5px; background: #353c46; }
.analytics-summary article.profit { border-left-color: #35b982; }
.analytics-summary article.recharge { border-left-color: #e1ad36; }
.analytics-summary article.refund { border-left-color: #e16f61; }
.analytics-summary article.orders { border-left-color: #3ab1bd; }
.analytics-summary article.members { border-left-color: #ef9847; }
.analytics-summary article.products { border-left-color: #7b93d2; }
.analytics-summary article.stations { border-left-color: #a07bc7; }
.analytics-summary span { color: #b7c0ca; font-size: 12px; }
.analytics-summary strong { min-width: 0; overflow: hidden; color: #fff; font-size: 24px; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }
.analytics-summary small { color: #8793a0; }
.analytics-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.analytics-panel { min-width: 0; min-height: 320px; padding: 17px; border: 1px solid #48515d; border-radius: 5px; background: #343b45; }
.analytics-panel.analytics-trend { grid-column: span 2; min-height: 340px; }
.analytics-panel-head { min-width: 0; display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 14px; }
.analytics-panel-head h3 { margin: 0 0 2px; color: #f6f8fa; font-size: 16px; }
.analytics-panel-head p { margin: 0; color: #9da8b4; font-size: 12px; }
.analytics-panel-head > span { flex: 0 0 auto; color: #7eb8ff; font-size: 18px; font-weight: 750; }
.analytics-trend-svg { width: 100%; height: 270px; display: block; overflow: visible; }
.analytics-grid-line { stroke: #4d5662; stroke-width: 1; }
.analytics-axis-text { fill: #9ca8b4; font-size: 11px; }
.analytics-area { fill: rgba(58, 145, 234, .13); }
.analytics-line { fill: none; stroke: #5babf2; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.analytics-line-dot { fill: #f4f9ff; stroke: #2e8bea; stroke-width: 3; }
.analytics-order-bar { fill: rgba(62, 184, 137, .45); }
.analytics-status-body { min-height: 225px; display: grid; grid-template-columns: minmax(150px, .8fr) minmax(180px, 1.2fr); align-items: center; gap: 20px; }
.analytics-donut { width: min(190px, 100%); aspect-ratio: 1; margin: auto; display: grid; place-items: center; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08), 0 8px 20px rgba(0, 0, 0, .16); }
.analytics-donut > div { width: 58%; aspect-ratio: 1; display: grid; place-items: center; align-content: center; border-radius: 50%; background: #343b45; box-shadow: 0 0 0 1px rgba(255, 255, 255, .08); }
.analytics-donut strong { color: #fff; font-size: 28px; line-height: 1; }
.analytics-donut span { color: #9ca8b4; font-size: 12px; }
.analytics-legend { min-width: 0; display: grid; gap: 8px; }
.analytics-legend > div { display: grid; grid-template-columns: 9px minmax(0, 1fr) auto; align-items: center; gap: 9px; }
.analytics-legend i { width: 9px; height: 9px; border-radius: 2px; }
.analytics-legend span { min-width: 0; overflow: hidden; color: #c5cdd5; text-overflow: ellipsis; white-space: nowrap; }
.analytics-legend b { color: #fff; font-size: 13px; }
.analytics-muted { color: #9ca8b4 !important; }
.analytics-ranking { margin: 0; padding: 0; list-style: none; display: grid; gap: 14px; }
.analytics-ranking li { min-width: 0; display: grid; grid-template-columns: 27px minmax(0, 1fr); align-items: center; gap: 10px; }
.analytics-rank { width: 27px; height: 27px; display: grid; place-items: center; color: #c1cad3; border: 1px solid #59636f; border-radius: 4px; font-size: 12px; font-weight: 750; }
.analytics-rank.top-1 { color: #fff4c6; border-color: #b68d26; background: #77601f; }
.analytics-rank.top-2 { color: #edf1f4; border-color: #7d8893; background: #59636c; }
.analytics-rank.top-3 { color: #ffe1c8; border-color: #a26c43; background: #754a2e; }
.analytics-ranking li > div { min-width: 0; display: grid; gap: 6px; }
.analytics-ranking li > div > span { min-width: 0; display: flex; justify-content: space-between; gap: 12px; }
.analytics-ranking b { min-width: 0; overflow: hidden; color: #eaf0f5; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.analytics-ranking em { flex: 0 0 auto; color: #b8c2cc; font-style: normal; font-size: 12px; }
.analytics-ranking i { height: 6px; overflow: hidden; border-radius: 3px; background: #454e59; }
.analytics-ranking i span { height: 100%; display: block; border-radius: inherit; background: #4b9bea; }
.analytics-empty { min-height: 210px; display: grid; place-items: center; align-content: center; gap: 5px; text-align: center; color: #9ca8b4; }
.analytics-empty strong { color: #dce3e9; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); gap: 16px; }
.dashboard-grid .wide { grid-column: span 1; }
.runtime-card { display: grid; gap: 9px; }
.runtime-card > strong { font-size: 30px; }
.runtime-card > strong small { color: var(--muted); font-size: 14px; }
.runtime-card p { margin: 0; }
.connection-list { display: grid; }
.connection-list > div { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.connection-list > div:last-child { border-bottom: 0; }
.table-scroll { overflow: auto; border: 1px solid var(--line); border-radius: 6px; }
.floating-order-scrollbar {
  position: fixed;
  bottom: 0;
  z-index: 14;
  height: 18px;
  display: none;
  overflow-x: auto;
  overflow-y: hidden;
  border: 1px solid #c9ced6;
  background: #fff;
  box-shadow: 0 -2px 7px rgb(24 35 49 / 14%);
  scrollbar-color: #8d9299 #e8eaed;
}
.floating-order-scrollbar.is-visible { display: block; }
.floating-order-scrollbar-track { height: 1px; }
.data-table { width: 100%; min-width: 960px; border-collapse: collapse; }
.data-table th, .data-table td { height: 38px; padding: 5px 9px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; line-height: 1.35; white-space: nowrap; }
.data-table th { background: var(--surface-soft); color: #5d6873; font-size: 12px; white-space: nowrap; }
.data-table.resizable-table th,
.clone-table.resizable-table th { position: relative; }
.column-resize-handle { position: absolute; top: 0; right: -3px; width: 7px; height: 100%; cursor: col-resize; touch-action: none; z-index: 3; }
.column-resize-handle::after { content: ""; position: absolute; top: 6px; bottom: 6px; left: 3px; width: 1px; background: #c8d0da; }
.column-resize-handle:hover::after,
.resizing-table-column .column-resize-handle::after { background: var(--brand); }
.resizing-table-column { cursor: col-resize; user-select: none; }
.data-table td > b, .data-table td > small { display: block; }
.data-table td > small { color: var(--muted); margin-top: 3px; }
.reseller-appid-cell { min-width: 190px; }
.reseller-appid-cell code { display: inline-block; margin-right: 8px; white-space: nowrap; }
.data-table tr:last-child td { border-bottom: 0; }
.order-table { min-width: 1260px; }
.table-actions { min-width: 130px; flex-wrap: nowrap; gap: 5px 10px; }
.progress { width: 100%; max-width: 220px; height: 7px; background: #e4e8eb; border-radius: 999px; overflow: hidden; margin: 4px 0; }
.progress span { display: block; height: 100%; background: var(--brand); border-radius: inherit; }
.progress.large { height: 11px; max-width: none; }
.filter-bar { display: grid; grid-template-columns: 170px minmax(220px, 420px) auto auto; gap: 9px; margin-bottom: 14px; align-items: center; }
.product-cell { display: grid; grid-template-columns: 36px minmax(150px, 1fr); gap: 8px; align-items: center; }
.product-cell .product-visual { width: 36px; height: 36px; min-height: 0; border-radius: 4px; }
.product-cell .product-visual span { font-size: 15px; }
.product-cell .product-visual small { display: none; }
.product-cell b, .product-cell small { display: block; }
.product-cell small { color: var(--muted); }
.admin-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.admin-two > .full { grid-column: 1 / -1; }
.integration-block dl { margin: 0 0 16px; }
.integration-block dl > div { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.integration-block dt { color: var(--muted); }
.integration-block dd { margin: 0; overflow-wrap: anywhere; }
.secret-box { margin-top: 14px; padding: 13px; display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; border: 1px solid #9fd3bc; background: var(--green-soft); border-radius: 6px; }
.secret-box code { overflow-wrap: anywhere; }
.notice-admin-list { display: grid; }
.notice-admin-list > div { display: grid; grid-template-columns: 1fr auto; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.notice-admin-list > div:last-child { border-bottom: 0; }
.notice-admin-list p { margin: 4px 0; color: var(--muted); }
.notice-admin-list small { color: var(--muted); }
.notice-admin-list > div > div:last-child { display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
.announcement-list { display: grid; gap: 12px; }
.announcement-list article { padding: 20px; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.announcement-list article > div { display: flex; justify-content: space-between; gap: 18px; color: var(--muted); font-size: 12px; }
.announcement-list article > div span { color: var(--brand); font-weight: 700; }
.announcement-list h2 { margin: 10px 0 5px; font-size: 18px; }
.announcement-list p { margin: 0; color: #56616c; white-space: pre-wrap; }
.auth-page { max-width: 1100px; margin: 54px auto; padding: 0 20px; display: grid; grid-template-columns: minmax(0, .8fr) minmax(540px, 1.2fr); gap: 42px; align-items: start; }
.auth-intro { padding: 36px 6px; }
.auth-intro h1 { margin: 10px 0; font-size: 35px; }
.auth-intro p, .auth-intro li { color: var(--muted); }
.auth-intro ul { padding-left: 20px; }
.auth-forms { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.auth-forms form, .member-form { display: grid; gap: 14px; padding: 22px; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.auth-forms h2 { margin-bottom: 2px; font-size: 19px; }
.captcha-field { display: grid; grid-template-columns: minmax(0, 1fr) 150px 36px; gap: 8px; align-items: center; }
.captcha-field img { width: 150px; height: 46px; border: 1px solid var(--line); border-radius: 6px; background: #f4f6f8; }
.legal-consent { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 8px; align-items: start; color: var(--muted); font-size: 12px; }
.legal-consent input { width: 16px; height: 16px; margin: 2px 0 0; }
.admin-login-page { min-height: 100vh; padding: 32px 18px; display: grid; place-items: center; background: #eef2f4; }
.admin-login-panel { width: min(100%, 420px); padding: 30px; border: 1px solid #d6dde2; border-top: 4px solid var(--brand); border-radius: 6px; background: #fff; box-shadow: var(--shadow); }
.admin-login-brand { display: flex; align-items: center; gap: 11px; margin-bottom: 34px; }
.admin-login-brand img { width: 42px; height: 42px; object-fit: contain; }
.admin-login-brand strong, .admin-login-brand span { display: block; }
.admin-login-brand strong { font-size: 18px; }
.admin-login-brand span { color: var(--muted); font-size: 12px; }
.admin-login-heading { margin-bottom: 22px; }
.admin-login-heading span { color: var(--brand); font-size: 12px; font-weight: 700; }
.admin-login-heading h1 { margin: 4px 0 0; font-size: 26px; }
.admin-login-panel form { display: grid; gap: 16px; }
.admin-login-panel form .btn { min-height: 44px; margin-top: 2px; }
.admin-login-error { padding: 10px 12px; border: 1px solid #efb5b5; border-radius: 6px; color: var(--red); background: var(--red-soft); }
.admin-login-back { display: block; margin-top: 20px; color: var(--muted); text-align: center; font-size: 12px; }
.auth-gate { max-width: 620px; padding: 54px 30px; text-align: center; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.auth-gate p { color: var(--muted); }
.member-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 24px; }
.member-metrics > div { padding: 18px; border: 1px solid var(--line); border-top: 3px solid var(--brand); border-radius: 6px; background: #fff; }
.member-metrics > div:nth-child(2) { border-top-color: var(--green); }
.member-metrics > div:nth-child(3) { border-top-color: var(--yellow); }
.member-metrics > div:nth-child(4) { border-top-color: var(--cyan); }
.member-metrics span, .member-metrics strong, .member-metrics a { display: block; }
.member-metrics span { color: var(--muted); font-size: 12px; }
.member-metrics strong { margin: 5px 0; font-size: 22px; }
.member-metrics a { color: var(--brand); font-size: 12px; }
.member-finance-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 20px; }
.member-finance-summary > div { min-width: 0; padding: 16px; border: 1px solid var(--line); border-top: 3px solid var(--brand); border-radius: 6px; background: #fff; }
.member-finance-summary span, .member-finance-summary strong { display: block; }
.member-finance-summary span { color: var(--muted); font-size: 12px; }
.member-finance-summary strong { margin-top: 5px; font-size: 20px; overflow-wrap: anywhere; }
.money-in { color: var(--green); }
.money-out { color: var(--red); }
.narrow-page { max-width: 760px; }
.narrow-page .section-head > strong { font-size: 24px; }
.payment-closed { padding: 36px 22px; border: 1px solid var(--line); background: #fff; text-align: center; }
.payment-closed h2 { margin: 0 0 8px; }
.payment-closed p { margin: 0 0 20px; color: var(--muted); }
.manual-payment { display: grid; grid-template-columns: minmax(180px, 240px) 1fr; gap: 24px; align-items: center; padding: 22px; margin-bottom: 16px; border: 1px solid var(--line); background: #fff; }
.manual-payment img { display: block; width: 100%; max-height: 260px; object-fit: contain; }
.manual-payment h2 { margin: 6px 0; }
.manual-payment p { margin: 6px 0; color: var(--muted); }
.manual-payment span { display: block; color: var(--muted); }
.wechat-payment-order { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 28px; align-items: center; padding: 24px; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.wechat-payment-qr { width: 280px; height: 280px; padding: 10px; border: 1px solid var(--line); object-fit: contain; background: #fff; }
.wechat-payment-meta { min-width: 0; }
.wechat-payment-meta > span { color: var(--green); font-weight: 700; }
.wechat-payment-meta > strong { display: block; margin: 8px 0 14px; font-size: 32px; }
.wechat-payment-meta p { margin: 6px 0; color: var(--muted); overflow-wrap: anywhere; }
.wechat-payment-result { min-height: 220px; display: grid; place-items: center; align-content: center; gap: 8px; padding: 24px; background: var(--surface-soft); text-align: center; }
.wechat-payment-result strong { font-size: 22px; }
.wechat-payment-result p { margin: 0; color: var(--muted); }
.wechat-payment-result.success strong { color: var(--green); }
.payment-external { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 16px; padding: 18px 20px; border: 1px solid var(--line); border-left: 4px solid #1677ff; border-radius: 6px; background: #fff; }
.payment-external strong { display: block; }
.payment-external p { margin: 5px 0 0; color: var(--muted); }
.payment-external small { display: block; margin-top: 6px; color: var(--muted); }
.payment-inline-form { display: grid; grid-template-columns: minmax(150px, 220px) auto; gap: 8px; align-items: center; }
.payment-inline-form input { width: 100%; min-height: 40px; padding: 0 12px; border: 1px solid var(--line); border-radius: 4px; background: #fff; }
.payment-inline-form small { grid-column: 1 / -1; margin: 0; }
.staff-recharge-page { max-width: 880px; }
.staff-recharge-heading { margin-bottom: 18px; }
.staff-recharge-heading h1 { margin: 6px 0 8px; font-size: 32px; }
.staff-recharge-heading p { margin: 0; color: var(--muted); }
.staff-recharge-lookup { max-width: 620px; }
.staff-recharge-member { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 18px 20px; margin-bottom: 16px; border: 1px solid #a9c9ef; border-left: 4px solid var(--brand); background: #f7fbff; }
.staff-recharge-member span, .staff-payment-title span { display: block; color: var(--muted); font-size: 12px; }
.staff-recharge-member strong { display: block; margin: 4px 0; font-size: 20px; }
.staff-recharge-member p { margin: 0; color: #4b5563; }
.staff-payment-grid { display: grid; gap: 14px; }
.staff-payment-panel { border: 1px solid var(--line); background: #fff; }
.staff-payment-title { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.staff-payment-title h2 { margin: 3px 0 0; font-size: 18px; }
.staff-payment-panel .member-form { border: 0; margin: 0; }
.staff-payment-order { padding: 20px; text-align: center; }
.staff-payment-order > p { margin: 12px 0 4px; }
.staff-payment-order > small { display: block; color: var(--muted); overflow-wrap: anywhere; }
.staff-payment-order .wechat-payment-qr { margin: 0 auto 8px; }
.staff-payment-order .payment-actions { justify-content: center; margin-top: 16px; }
.alipay-payment-order .payment-actions { margin-top: 0; justify-content: flex-end; }
.payment-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.payment-mode { display: flex; flex-wrap: wrap; gap: 8px; }
.payment-mode label { min-width: 130px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 5px; background: var(--surface-soft); cursor: pointer; }
.payment-mode input { width: auto; margin-right: 6px; }
.form-note { margin: -4px 0 0; color: var(--muted); font-size: 12px; }
.recharge-fee-preview { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; overflow: hidden; border: 1px solid var(--line); background: var(--line); }
.recharge-fee-preview > * { display: grid; gap: 4px; min-height: 62px; align-content: center; padding: 10px 14px; background: #fff; color: var(--muted); }
.recharge-fee-preview b { color: var(--ink); }
.recharge-fee-preview strong { color: var(--danger); font-size: 16px; }
.withdrawal-page > .member-form { margin-bottom: 20px; }
.withdrawal-fee-preview { display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; padding: 14px; border: 1px solid var(--line); background: #fff; }
.withdrawal-fee-preview span { color: var(--muted); }
.withdrawal-fee-preview b, .withdrawal-fee-preview strong { text-align: right; }
.withdrawal-history { margin-top: 20px; padding: 0; }
.withdrawal-history .section-head { padding: 16px 0 10px; }
.detail-title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.detail-title-row h1 { margin-right: auto; }
.level-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.level-grid article { padding: 20px; border: 1px solid var(--line); border-top: 3px solid var(--brand); border-radius: 6px; background: #fff; }
.level-grid article:nth-child(2) { border-top-color: var(--yellow); }
.level-grid article:nth-child(3) { border-top-color: var(--green); }
.level-grid h2 { margin-bottom: 6px; font-size: 19px; }
.level-grid p { margin: 0; color: var(--muted); }
.upgrade-form { max-width: 620px; }
.service-dock { position: fixed; right: 16px; top: 42%; z-index: 30; display: grid; min-width: 96px; border: 1px solid var(--line); border-radius: 6px; overflow: visible; box-shadow: var(--shadow); }
.service-dock a, .service-dock button { width: 100%; min-height: 48px; padding: 0 12px; border: 0; border-bottom: 1px solid var(--line); background: #fff; color: #53606c; font-size: 13px; display: flex; align-items: center; justify-content: center; gap: 7px; white-space: nowrap; }
.service-dock-actions { display: grid; overflow: hidden; border-radius: inherit; }
.service-method-icon { width: 24px; height: 24px; flex: 0 0 24px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: #55ace0; font-size: 11px; font-weight: 800; }
.service-dock-actions > button:nth-child(3) .service-method-icon { background: #68758c; }
.service-dock-actions > button:last-child .service-method-icon { background: #7c8794; }
.service-qr-popover { position: absolute; right: calc(100% + 12px); top: 50%; width: 236px; padding: 14px; transform: translateY(-50%); border: 1px solid #d8dee6; border-radius: 6px; background: #fff; box-shadow: 0 15px 35px rgba(31, 42, 56, .18); }
.service-qr-popover[hidden] { display: none; }
.service-qr-popover::after { content: ""; position: absolute; right: -7px; top: 50%; width: 12px; height: 12px; transform: translateY(-50%) rotate(45deg); border-top: 1px solid #d8dee6; border-right: 1px solid #d8dee6; background: #fff; }
.service-qr-card { display: grid; justify-items: center; gap: 8px; text-align: center; }
.service-qr-card img, .service-qr-empty { width: min(260px, 70vw); aspect-ratio: 1; object-fit: contain; border: 1px solid #e1e5ea; background: #f7f8fa; }
.service-qr-card.compact img, .service-qr-card.compact .service-qr-empty { width: 206px; }
.service-qr-empty { display: grid; place-items: center; color: var(--muted); }
.service-qr-card strong { font-size: 16px; }
.service-qr-card span { color: var(--muted); }
.service-qr-card a { width: auto; min-height: 0; padding: 4px 0; border: 0; color: var(--brand); background: transparent; }
.service-status { width: 8px; height: 8px; flex: 0 0 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgba(27, 127, 83, .12); }
.service-dock > :last-child { border-bottom: 0; }
.service-dock a:hover, .service-dock button:hover { color: var(--brand); background: var(--brand-soft); }
.record-summary { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.record-summary div { padding: 13px; border: 1px solid var(--line); border-radius: 5px; background: var(--surface-soft); }
.record-summary dt { color: var(--muted); font-size: 12px; }
.record-summary dd { margin: 4px 0 0; font-size: 22px; font-weight: 800; }
.supplier-auth .auth-intro { align-self: stretch; }
.supplier-portal { display: grid; gap: 16px; }
.supplier-summary { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.supplier-portal .data-table small { display: block; margin-top: 4px; color: var(--muted); }
.supplier-portal .data-table td { vertical-align: top; }
.money-in { color: var(--green); font-weight: 700; }
.money-out { color: var(--red); font-weight: 700; }
.control-list { display: grid; gap: 14px; }
.control-list article { border: 1px solid var(--line); border-radius: 6px; padding: 17px; background: var(--surface-soft); }
.control-list article.task-disabled { opacity: .72; }
.task-filter { display: grid; grid-template-columns: minmax(260px, 1fr) 180px auto auto; gap: 10px; margin-bottom: 14px; }
.task-filter input, .task-filter select { min-height: 40px; border: 1px solid var(--line); border-radius: 6px; background: #fff; padding: 8px 11px; }
.task-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.control-head { display: flex; justify-content: space-between; gap: 18px; align-items: flex-start; }
.control-head h3 { margin: 8px 0 2px; }
.control-head p { margin: 0; color: var(--muted); font-size: 12px; }
.control-source { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 15px 0 0; }
.control-source > div { min-width: 0; padding: 11px 12px; border: 1px solid var(--line); border-radius: 5px; background: #fff; }
.control-source dt { color: var(--muted); font-size: 12px; }
.control-source dd { min-width: 0; margin: 4px 0 0; color: var(--ink); font-weight: 700; overflow-wrap: anywhere; }
.control-source small { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; font-weight: 400; }
.control-metrics { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin: 16px 0; }
.control-metrics > div { background: #fff; border: 1px solid var(--line); padding: 10px; border-radius: 5px; }
.control-metrics span, .control-metrics strong { display: block; }
.control-metrics span { color: var(--muted); font-size: 12px; }
.control-metrics strong { margin-top: 4px; overflow-wrap: anywhere; }
.control-rule { color: var(--muted); margin: 11px 0 0; font-size: 12px; }
.control-task-table { min-width: 1630px; }
.control-task-table th, .control-task-table td { height: 48px; padding: 5px 8px; }
.control-task-table td { vertical-align: middle; }
.control-task-table th:first-child, .control-task-table td:first-child { width: 44px; min-width: 44px; max-width: 44px; text-align: center; }
.control-task-table tr.task-disabled { opacity: .68; }
.control-number-pair { display: inline-flex; align-items: center; gap: 6px; }
.control-number-pair i { color: var(--muted); font-style: normal; }
.control-number-pair strong { color: #1677c8; }
.control-counts { display: grid; grid-template-columns: repeat(3, auto); gap: 8px; }
.control-counts b:nth-child(2) { color: #1677c8; }
.control-counts b:nth-child(3) { color: #b45309; }
.control-task-table td > small { margin-top: 2px; }
.control-task-actions { min-width: 205px; flex-wrap: nowrap; }
.control-task-actions button { white-space: nowrap; }
.tracker-batch-actions, .control-batch-actions { align-items: center; }
.tracker-batch-actions button:first-child, .control-batch-actions button:first-child { background: #8bc0ef; }
.tracker-batch-actions button.selection-ready, .control-batch-actions button.selection-ready { background: #1769e0; box-shadow: 0 2px 7px rgba(23, 105, 224, .25); }
.tracker-batch-actions > span, .control-batch-actions > span { margin-left: auto; color: var(--muted); font-size: 12px; }
.selection-column { width: 44px; min-width: 44px; text-align: center; }
.timeline { display: grid; }
.timeline > div { position: relative; display: grid; grid-template-columns: 18px 1fr; gap: 9px; padding: 0 0 15px; }
.timeline > div::before { content: ""; position: absolute; left: 6px; top: 13px; bottom: 0; width: 1px; background: var(--line); }
.timeline > div:last-child::before { display: none; }
.timeline-dot { width: 13px; height: 13px; border: 3px solid var(--brand-soft); background: var(--brand); border-radius: 50%; margin-top: 3px; z-index: 1; }
.timeline-dot.success { background: var(--green); border-color: var(--green-soft); }
.timeline-dot.warning { background: var(--amber); border-color: var(--amber-soft); }
.timeline-dot.danger { background: var(--red); border-color: var(--red-soft); }
.timeline b, .timeline p, .timeline small { display: block; }
.timeline p { margin: 1px 0; }
.timeline small { color: var(--muted); }
.screen-head { padding: 26px 28px; margin-bottom: 16px; background: #172b3c; color: #fff; border-radius: 6px; display: flex; justify-content: space-between; align-items: flex-end; }
.screen-head h1 { margin: 8px 0 4px; }
.screen-head p { color: #bdcad5; margin: 0; }
.screen-clock { font-size: 16px; color: #d6e1e9; }
.screen-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 16px; }
.screen-metrics > div { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--cyan); padding: 16px; border-radius: 6px; }
.screen-metrics span, .screen-metrics strong { display: block; }
.screen-metrics span { color: var(--muted); }
.screen-metrics strong { font-size: 28px; margin-top: 5px; }
.screen-metrics .metric-warning { border-left-color: #d97706; background: #fffaf0; }
.screen-filter { display: grid; grid-template-columns: 150px 190px minmax(220px, 1fr) 140px auto auto; gap: 10px; align-items: center; margin-bottom: 16px; padding: 14px; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.screen-filter input, .screen-filter select { width: 100%; min-width: 0; }
.screen-entry-meta { margin: 5px 0; color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.screen-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(300px, .5fr); gap: 16px; }
.big-bars { display: grid; gap: 18px; }
.big-bars > div > div:first-child { display: flex; justify-content: space-between; gap: 20px; }
.big-bars small { color: var(--muted); }

body.modal-open { overflow: hidden; }
.modal-backdrop { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 20px; background: rgba(12, 18, 24, .55); overscroll-behavior: contain; }
.modal-card { width: min(760px, 100%); max-height: calc(100vh - 40px); overflow: auto; overscroll-behavior: contain; background: #fff; border-radius: 8px; box-shadow: 0 24px 80px rgba(0, 0, 0, .24); outline: none; }
.modal-card:has(#productForm) { width: min(1100px, 100%); }
.modal-card:has(#upstreamProductSelectionForm) { width: min(1180px, 100%); }
.modal-card:has(#categoryProductAssignmentForm) { width: min(900px, 100%); }
.modal-card:has(.member-orders-dialog) { width: min(1280px, 100%); }
.modal-card:has(#subjectForm) { width: min(680px, 100%); }
.modal-head { position: sticky; top: 0; z-index: 2; display: flex; justify-content: space-between; gap: 20px; padding: 18px 20px; background: #fff; border-bottom: 1px solid var(--line); }
.modal-head h2 { margin: 0; font-size: 18px; }
.modal-head p { margin: 2px 0 0; color: var(--muted); font-size: 12px; }
.modal-body { padding: 20px; }
.modal-form { display: grid; gap: 14px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; padding-top: 4px; }
.order-submit-confirm-card { width: min(480px, 100%); }
.order-submit-summary { margin: 0; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.order-submit-summary div { min-height: 46px; padding: 10px 12px; display: grid; grid-template-columns: 92px minmax(0, 1fr); align-items: center; gap: 12px; }
.order-submit-summary div + div { border-top: 1px solid var(--line); }
.order-submit-summary dt { color: var(--muted); }
.order-submit-summary dd { min-width: 0; margin: 0; overflow-wrap: anywhere; font-weight: 700; text-align: right; }
.order-submit-summary div:last-child dd { color: var(--red); font-size: 18px; }
.order-submit-notice { margin: 14px 0 16px; color: var(--muted); font-size: 13px; line-height: 1.65; }
#upstreamChannelForm .modal-actions { position: sticky; bottom: -20px; z-index: 1; margin: 0 -20px -20px; padding: 14px 20px 20px; border-top: 1px solid var(--line); background: #fff; }
.upstream-channel-wizard { gap: 18px; }
.upstream-wizard-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid #dce4ee; background: #f8fafc; }
.upstream-wizard-steps span { min-height: 52px; display: flex; align-items: center; justify-content: center; gap: 8px; color: #718096; font-weight: 700; }
.upstream-wizard-steps span + span { border-left: 1px solid #dce4ee; }
.upstream-wizard-steps b { width: 24px; height: 24px; display: grid; place-items: center; border: 1px solid #b8c4d2; border-radius: 50%; font-size: 12px; }
.upstream-wizard-steps .current { color: #1769e0; background: #eef5ff; }
.upstream-wizard-steps .current b { border-color: #1769e0; color: #fff; background: #1769e0; }
.upstream-wizard-steps .done { color: #147a4d; }
.upstream-wizard-steps .done b { border-color: #147a4d; color: #fff; background: #147a4d; }
.upstream-wizard-steps.compact { margin-bottom: 2px; }
.upstream-wizard-note { display: grid; gap: 5px; padding: 13px 15px; border-left: 4px solid #1769e0; background: #f4f8fd; }
.upstream-wizard-note span { color: var(--muted); line-height: 1.65; }
.upstream-channel-advanced { border: 1px solid var(--line); }
.upstream-channel-advanced > summary { padding: 12px 14px; cursor: pointer; color: #536172; font-weight: 700; background: #f8fafc; }
.upstream-channel-advanced[open] > summary { border-bottom: 1px solid var(--line); }
.upstream-channel-advanced > .form-grid { padding: 14px; }
.upstream-diagnosis { display: grid; gap: 18px; }
.upstream-diagnosis-head { display: grid; grid-template-columns: 42px 1fr; gap: 12px; align-items: start; }
.upstream-diagnosis-head > span { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: #d97706; font-size: 22px; font-weight: 800; }
.upstream-diagnosis h3 { margin: 0 0 5px; font-size: 18px; }
.upstream-diagnosis p { margin: 0; color: var(--muted); line-height: 1.65; }
.upstream-diagnosis ol { margin: 0; padding-left: 24px; display: grid; gap: 10px; line-height: 1.65; }
.upstream-diagnosis details { border: 1px solid var(--line); background: #f8fafc; }
.upstream-diagnosis details summary { padding: 10px 12px; cursor: pointer; color: var(--muted); }
.upstream-diagnosis details code { display: block; padding: 0 12px 12px; color: #8f2d2d; white-space: normal; overflow-wrap: anywhere; }
.upstream-product-selection-form { min-height: 420px; }
.upstream-product-picker-tools { display: grid; grid-template-columns: minmax(260px, 1fr) auto auto; gap: 14px; align-items: end; }
.upstream-product-picker-tools .field { margin: 0; }
.upstream-product-picker-actions { display: flex; gap: 8px; padding-bottom: 1px; }
.upstream-product-selection-count { min-width: 126px; padding: 10px 12px; border: 1px solid var(--line); background: var(--surface-soft); text-align: center; }
.upstream-product-selection-count strong { color: #1769e0; font-size: 20px; }
.upstream-product-selection-count span { color: var(--muted); font-size: 12px; }
.upstream-product-picker-table { max-height: min(55vh, 560px); border: 1px solid var(--line); }
.upstream-product-picker-table thead { position: sticky; top: 0; z-index: 1; background: #f7f9fc; }
.upstream-product-picker-table td { vertical-align: middle; }
.upstream-product-picker-table input[type="checkbox"] { width: 17px; height: 17px; }
.upstream-product-picker-table .upstream-product-parameters { min-width: 180px; max-width: 280px; white-space: normal; line-height: 1.5; }
.upstream-product-result-bar, .upstream-product-pagination { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.upstream-product-result-bar { color: var(--muted); font-size: 13px; }
.upstream-product-result-bar label { display: flex; align-items: center; gap: 7px; }
.upstream-product-result-bar select { min-width: 76px; }
.upstream-product-pagination { justify-content: center; }
.upstream-product-pagination span { min-width: 110px; color: var(--muted); text-align: center; }
.upstream-product-status { display: inline-block; font-weight: 700; }
.upstream-product-status.is-online { color: #14804a; }
.upstream-product-status.is-offline { color: #9a3412; }
.upstream-product-selection-form > .modal-actions { position: sticky; bottom: -20px; z-index: 2; margin: 0 -20px -20px; padding: 14px 20px 20px; border-top: 1px solid var(--line); background: #fff; }
.summary-line { display: flex; justify-content: space-between; gap: 14px; padding: 12px; background: var(--surface-soft); border: 1px solid var(--line); border-radius: 6px; }
.category-product-assignment-tools { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: end; }
.category-product-assignment-tools .field { margin: 0; }
.category-product-assignment-list { max-height: min(54vh, 520px); overflow: auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid var(--line); background: #fff; }
.category-product-assignment-row { min-width: 0; display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 10px; align-items: start; padding: 11px 12px; border-bottom: 1px solid var(--line); cursor: pointer; }
.category-product-assignment-row:nth-child(odd) { border-right: 1px solid var(--line); }
.category-product-assignment-row:hover { background: #f7faff; }
.category-product-assignment-row.is-current { background: #f4f8fd; cursor: default; }
.category-product-assignment-row input { width: 17px; height: 17px; margin-top: 2px; }
.category-product-assignment-row span { min-width: 0; display: grid; gap: 4px; }
.category-product-assignment-row b, .category-product-assignment-row small { overflow-wrap: anywhere; }
.category-product-assignment-row small, .category-product-assignment-help { color: var(--muted); line-height: 1.5; }
.bulk-order-format { display: grid; gap: 7px; padding: 12px; border: 1px solid #dbe5f2; border-radius: 6px; background: #f8fbff; }
.bulk-order-format strong { color: #1f3347; }
.bulk-order-format code { display: block; padding: 9px 10px; border-radius: 5px; background: #fff; color: #d63b32; white-space: normal; overflow-wrap: anywhere; }
.bulk-order-format span, .bulk-order-form small { color: var(--muted); line-height: 1.5; }
.bulk-order-tools { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.bulk-order-tools .image-file-button { margin: 0; }
.bulk-order-result { display: grid; gap: 16px; }
.bulk-order-summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.bulk-order-summary div { padding: 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface-soft); }
.bulk-order-summary span, .bulk-order-summary strong { display: block; }
.bulk-order-summary span { color: var(--muted); font-size: 12px; }
.bulk-order-summary strong { margin-top: 4px; font-size: 22px; }
.bulk-order-result h3 { margin: 0 0 8px; font-size: 15px; }
.bulk-order-result ul { margin: 0; padding-left: 20px; color: #4f5963; line-height: 1.65; }
.qr-wrap { display: grid; place-items: center; gap: 18px; text-align: center; }
.qr-wrap img { display: block; width: min(340px, 100%); height: auto; max-height: 58vh; object-fit: contain; border: 1px solid var(--line); padding: 12px; border-radius: 6px; }
.qr-wrap p { margin: 10px 0 2px; }
.qr-wrap small { color: var(--muted); }
.qr-wrap.authorization-info-only { min-height: 280px; }
.authorization-subject-card { width: min(620px, 100%); padding: 20px; border: 1px solid var(--line); background: #fff; text-align: left; }
.authorization-subject-name { padding: 12px 14px; border-left: 4px solid #2e7d5a; background: #edf8f2; color: #174c38; }
.authorization-subject-hint { padding-top: 12px; border-top: 1px solid var(--line); color: var(--muted); line-height: 1.7; }

@media (max-width: 640px) {
  .upstream-wizard-steps { grid-template-columns: 1fr; }
  .upstream-wizard-steps span + span { border-left: 0; border-top: 1px solid #dce4ee; }
  .upstream-product-picker-tools { grid-template-columns: 1fr; align-items: stretch; }
  .upstream-product-picker-actions { flex-wrap: wrap; }
  .upstream-product-selection-count { text-align: left; }
  .manual-payment { grid-template-columns: 1fr; }
  .manual-payment img { width: min(260px, 100%); margin: 0 auto; }
  .recharge-fee-preview { grid-template-columns: 1fr; }
  .wechat-payment-order { grid-template-columns: 1fr; padding: 18px; }
  .wechat-payment-qr { width: min(280px, 100%); height: auto; aspect-ratio: 1; margin: 0 auto; }
  .payment-external { align-items: stretch; flex-direction: column; }
  .payment-inline-form { grid-template-columns: 1fr; }
  .payment-inline-form small { grid-column: auto; }
  .staff-recharge-member, .staff-payment-title { align-items: stretch; flex-direction: column; }
  .alipay-payment-order .payment-actions { justify-content: flex-start; }
  .screen-filter { grid-template-columns: 1fr 1fr; }
  .upstream-self-service-guide { grid-template-columns: 1fr; }
}
.toast { position: fixed; right: 22px; bottom: 22px; z-index: 80; max-width: min(420px, calc(100vw - 30px)); background: #20262d; color: #fff; padding: 12px 15px; border-radius: 6px; box-shadow: var(--shadow); display: none; }
.toast.show { display: block; }
.toast.error { background: var(--red); }
.empty { min-height: 130px; padding: 28px; border: 1px dashed #c9d0d6; border-radius: 6px; background: var(--surface-soft); display: grid; place-items: center; align-content: center; gap: 12px; text-align: center; color: var(--muted); }
.loading-page { min-height: 100vh; display: grid; place-items: center; color: var(--muted); }
.loading-page.error { color: var(--red); }
.is-busy { cursor: progress; }

@media (max-width: 1280px) {
  .client-head-inner, .store-hero, .notice-strip, .banner-rail, .process-band { margin-left: 20px; margin-right: 20px; }
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .metric-grid { grid-template-columns: repeat(3, minmax(150px, 1fr)); }
  .analytics-summary { grid-template-columns: repeat(4, minmax(120px, 1fr)); }
  .control-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 980px) {
  .client-header { height: 60px; }
  .client-head-inner { margin: 0; padding: 0 14px; gap: 12px; }
  .client-nav { display: none; position: absolute; left: 0; right: 0; top: 60px; height: auto; padding: 8px 14px; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .client-nav-open .client-nav { display: grid; }
  .client-nav a { min-height: 42px; display: flex; border: 0; border-radius: 5px; }
  .client-nav a.active { background: var(--brand-soft); }
  .client-account { margin-left: auto; gap: 9px; }
  .client-account > a:first-child { display: none; }
  .admin-entry { padding-left: 0; border-left: 0; font-size: 12px; }
  .mobile-menu { display: grid; }
  .store-hero { grid-template-columns: 1fr; padding: 40px; gap: 26px; }
  .banner-rail { grid-template-columns: 1fr 1fr; grid-auto-rows: 110px; }
  .hero-status { max-width: 440px; }
  .category-rail { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .catalog-section { grid-template-columns: 1fr; }
  .catalog-navigation { position: static; }
  .subcategory-rail { display: flex; flex-wrap: wrap; }
  .category-rail button:nth-child(3n) { border-right: 0; }
  .category-rail button { border-bottom: 1px solid var(--line); }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .account-shortcuts { margin-left: 20px; margin-right: 20px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .account-shortcuts > div { grid-column: 1 / -1; border-right: 0; border-bottom: 1px solid var(--line); padding-bottom: 10px; }
  .auth-page { grid-template-columns: 1fr; }
  .auth-intro { padding: 0; }
  .member-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .level-grid { grid-template-columns: 1fr; }
  .service-dock { top: auto; right: 12px; bottom: calc(14px + env(safe-area-inset-bottom)); min-width: 96px; }
  .service-dock > :not(:first-child) { display: none; }
  .process-band { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 0; }
  .process-band > div:nth-child(2) { border-right: 0; }
  .product-detail { grid-template-columns: 1fr; }
  .product-visual.large { height: 360px; }
  .product-visual.large.has-image { height: 360px; }
  .order-result-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-shell { grid-template-columns: 1fr; }
  .admin-sidebar { position: fixed; left: -248px; top: 0; width: 232px; z-index: 40; transition: left .2s ease; box-shadow: 8px 0 24px rgba(0, 0, 0, .2); }
  .sidebar-open .admin-sidebar { left: 0; }
  .sidebar-toggle { display: grid; }
  .admin-top { position: sticky; padding: 0 14px; }
  .admin-content { padding: 16px; }
  .dashboard-grid, .admin-two, .screen-grid { grid-template-columns: 1fr; }
  .analytics-head { align-items: stretch; flex-direction: column; }
  .analytics-range { align-self: flex-start; max-width: 100%; }
  .analytics-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .analytics-grid { grid-template-columns: 1fr; }
  .analytics-panel.analytics-trend { grid-column: auto; }
  .admin-two > .full { grid-column: auto; }
  .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .screen-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .service-dock { position: static; width: calc(100% - 20px); min-width: 0; margin: 0 10px 10px; box-shadow: none; }
  .support-chat-panel { bottom: 10px; }
  .client-brand span { max-width: 130px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
  .notice-strip { margin: 10px; grid-template-columns: auto 1fr; }
  .banner-rail { margin: 10px; grid-template-columns: 1fr; grid-auto-rows: 140px; }
  .banner-rail a:first-child { grid-row: auto; }
  .notice-strip a { display: none; }
  .store-hero { margin: 10px; min-height: 0; padding: 30px 20px; border-radius: 6px; }
  .hero-copy h1 { font-size: 30px; }
  .hero-copy > p { font-size: 14px; }
  .hero-status { grid-template-columns: 58px 1fr; padding: 17px; }
  .hero-status img { width: 58px; }
  .store-section { margin: 28px auto; padding: 0 12px; }
  .account-shortcuts { margin: 10px; padding: 10px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .account-shortcuts > a { min-height: 44px; font-size: 12px; }
  .auth-page { margin: 30px auto; padding: 0 12px; gap: 22px; }
  .auth-intro h1 { font-size: 28px; }
  .auth-forms { grid-template-columns: 1fr; }
  .captcha-field { grid-template-columns: minmax(0, 1fr) 118px 36px; }
  .captcha-field img { width: 118px; }
  .task-filter { grid-template-columns: 1fr; }
  .task-actions { justify-content: flex-start; }
  .member-metrics { grid-template-columns: 1fr 1fr; gap: 8px; }
  .detail-title-row { align-items: stretch; flex-direction: column; }
  .category-rail { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .category-rail button:nth-child(3n) { border-right: 1px solid var(--line); }
  .category-rail button:nth-child(2n) { border-right: 0; }
  .product-grid { grid-template-columns: 1fr; }
  .column-choice-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-card { display: grid; grid-template-columns: 128px minmax(0, 1fr); }
  .product-card > a { min-height: 176px; display: block; }
  .product-card > a .product-visual { height: 100%; min-height: 176px; }
  .product-card p { height: 39px; }
  .product-title { min-height: 0; }
  .process-band { margin: 30px 12px; padding: 20px 12px; grid-template-columns: 1fr; }
  .process-band > div { border-right: 0; border-bottom: 1px solid var(--line); padding: 12px; }
  .process-band > div:last-child { border-bottom: 0; }
  .footer-inner { grid-template-columns: 1fr; gap: 20px; padding: 28px 16px; }
  .catalog-head { padding: 30px 12px 20px; display: grid; }
  .catalog-head h1 { font-size: 29px; }
  .product-detail { margin: 18px auto; padding: 0 12px; gap: 24px; }
  .product-visual.large { height: 300px; }
  .product-visual.large.has-image { height: 300px; }
  .detail-main h1 { font-size: 25px; }
  .product-spec { grid-template-columns: 1fr; }
  .product-spec div { border-bottom: 1px solid var(--line) !important; }
  .product-spec div:last-child { border-bottom: 0 !important; }
  .purchase-total { align-items: stretch; flex-direction: column; }
  .product-auth-entry { grid-template-columns: 1fr; gap: 18px; }
  .product-auth-actions { align-items: stretch; flex-direction: column; }
  .product-auth-open { width: 100%; }
  .query-hero { padding: 42px 12px; }
  .query-hero h1 { font-size: 27px; }
  .query-hero form { grid-template-columns: 1fr; gap: 8px; }
  .query-hero input, .query-hero form button { border-radius: 6px; min-height: 46px; }
  .order-result-grid { grid-template-columns: 1fr; gap: 14px; }
  .order-result-actions { justify-content: stretch; flex-wrap: wrap; }
  .order-result-actions .btn { flex: 1; }
  .account-head { align-items: flex-start; flex-direction: column; }
  .help-layout { grid-template-columns: 1fr; gap: 16px; }
  .help-nav { position: static; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px; overflow: visible; }
  .help-nav a { min-width: 0; padding: 10px 6px; text-align: center; white-space: normal; }
  .help-content { padding: 20px; }
  .legal-page > header, .legal-content, .legal-contact { padding-left: 20px; padding-right: 20px; }
  .legal-page > header h1 { font-size: 27px; }
  .legal-contact { align-items: flex-start; flex-direction: column; }
  .admin-top { height: auto; min-height: 62px; flex-wrap: wrap; padding-block: 10px; }
  .admin-top p { display: none; }
  .admin-top-actions { width: 100%; margin-left: 50px; }
  .admin-top-actions .btn { flex: 1; }
  .admin-content { padding: 12px; }
  .metric-grid, .screen-metrics { grid-template-columns: 1fr 1fr; gap: 9px; }
  .analytics-dashboard { padding: 13px; }
  .analytics-range { width: 100%; }
  .analytics-range button { min-width: 68px; flex: 1 0 auto; }
  .analytics-summary { gap: 8px; }
  .analytics-summary article { min-height: 94px; padding: 12px; }
  .analytics-summary strong { font-size: 20px; }
  .analytics-panel { min-height: 0; padding: 13px; }
  .analytics-trend-svg { height: 230px; }
  .analytics-status-body { grid-template-columns: 1fr; gap: 15px; }
  .analytics-donut { width: 160px; }
  .metric-card, .screen-metrics > div { padding: 13px; }
  .metric-card strong, .screen-metrics strong { font-size: 22px; }
  .panel-head { align-items: stretch; flex-direction: column; }
  .panel-actions { width: 100%; }
  .panel-actions .btn { flex: 1; }
  .filter-bar { grid-template-columns: 1fr 1fr; }
  .filter-bar input { grid-column: 1 / -1; }
  .form-grid { grid-template-columns: 1fr; }
  .full { grid-column: auto; }
  .control-head { flex-direction: column; }
  .control-source { grid-template-columns: 1fr; }
  .control-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .screen-head { align-items: flex-start; flex-direction: column; gap: 14px; padding: 20px; }
  .secret-box { grid-template-columns: 1fr; }
  .modal-backdrop { padding: 0; align-items: end; }
  .modal-card { max-height: 92vh; border-radius: 8px 8px 0 0; }
  .order-submit-confirm .modal-actions { display: grid; grid-template-columns: 1fr 1.35fr; }
  .order-submit-confirm .modal-actions .btn { min-height: 48px; }
  .subject-credential-ready { align-items: flex-start; flex-direction: column; gap: 2px; }
  .subject-simple-form > .modal-actions { position: static; bottom: auto; flex-wrap: wrap; }
  .subject-simple-form > .modal-actions .primary { order: -1; flex: 1 0 100%; }
  .subject-simple-form > .modal-actions .btn:not(.primary) { flex: 1; }
  .toast { right: 15px; bottom: 15px; }
  body.modal-open .toast { bottom: calc(92vh + 6px); }
}

/* Reference-compatible commerce shell. The branding and artwork stay original. */
.client-app { background: #eef1ff; }
.client-header { height: 88px; position: relative; background: #fff; border-bottom-color: #f1c8c8; box-shadow: 0 2px 7px rgba(37, 48, 88, .07); }
.client-head-inner { width: min(1300px, calc(100% - 40px)); max-width: none; padding: 0; gap: 28px; }
.client-brand { min-width: 190px; color: #dd4b50; font-size: 19px; }
.client-brand img { width: 48px; height: 48px; border-radius: 8px; }
.client-nav { gap: 8px; }
.client-nav a { min-width: 88px; padding: 0 14px; color: #202020; font-size: 17px; font-weight: 700; border-bottom-width: 3px; }
.client-nav a:hover, .client-nav a.active { color: #df5156; border-bottom-color: #df5156; }
.header-search { width: 220px; height: 38px; margin-left: auto; display: grid; grid-template-columns: 1fr 40px; }
.header-search input { min-width: 0; border: 1px solid #eb7d80; border-right: 0; border-radius: 6px 0 0 6px; padding: 0 11px; color: #4f5562; }
.header-search button { border: 1px solid #eb7d80; border-left: 0; border-radius: 0 6px 6px 0; background: #fff; color: #e45559; font-size: 24px; }
.client-main { min-height: calc(100vh - 88px); }
.mobile-home-head, .mobile-home-tools, .mobile-bottom-nav { display: none; }
.reference-home { width: min(1300px, calc(100% - 40px)); margin: 16px auto 0; padding-bottom: 18px; }
.reference-top { height: 285px; display: grid; grid-template-columns: minmax(0, 2.03fr) minmax(340px, 1fr); gap: 14px; }
.banner-carousel { position: relative; min-width: 0; min-height: 0; overflow: hidden; border: 1px solid #e8eaff; border-radius: 8px; background: #eef1f6; }
.banner-slides { position: absolute; inset: 0; }
.banner-slides > a { position: absolute; inset: 0; display: block; opacity: 0; pointer-events: none; transition: opacity .35s ease; }
.banner-slides > a.active { opacity: 1; pointer-events: auto; }
.banner-slides > a img { width: 100%; height: 100%; display: block; object-fit: contain; }
.banner-slides > a span { position: absolute; left: 22px; bottom: 20px; max-width: calc(100% - 44px); padding: 7px 11px; border-radius: 4px; background: rgba(20, 27, 36, .78); color: #fff; font-size: 15px; font-weight: 700; }
.banner-arrow { position: absolute; z-index: 2; top: 50%; width: 36px; height: 44px; margin-top: -22px; border: 0; background: rgba(20, 27, 36, .56); color: #fff; font-size: 28px; line-height: 1; }
.banner-arrow.previous { left: 12px; }
.banner-arrow.next { right: 12px; }
.banner-dots { position: absolute; z-index: 2; left: 50%; bottom: 14px; display: flex; gap: 7px; transform: translateX(-50%); }
.banner-dots button { width: 22px; height: 4px; padding: 0; border: 0; border-radius: 2px; background: rgba(255, 255, 255, .62); }
.banner-dots button.active { background: #fff; }
.reference-banner { position: relative; overflow: hidden; background: #fff; border-radius: 8px; border: 1px solid #e8eaff; }
.banner-brand { position: absolute; left: 27px; top: 22px; z-index: 2; display: flex; align-items: center; gap: 8px; color: #d94f55; font-size: 16px; }
.banner-brand img { width: 32px; height: 32px; border-radius: 6px; }
.banner-copy { position: relative; z-index: 2; height: 100%; display: grid; place-items: center; align-content: center; padding: 42px 54px 28px; text-align: center; }
.banner-copy > span { color: #7180a4; font-weight: 700; }
.banner-copy h1 { margin: 8px 0 11px; color: #11151d; font-size: 32px; line-height: 1.2; font-weight: 900; }
.banner-copy p { padding: 10px 24px; border: 1px solid #eef0f4; border-radius: 26px; background: #fff; color: #5b6069; box-shadow: 0 5px 20px rgba(31, 39, 62, .07); }
.banner-copy > div { display: flex; flex-wrap: wrap; justify-content: center; gap: 9px; }
.banner-copy b { min-width: 86px; padding: 9px 12px; border: 1px solid #e4e7ee; border-radius: 7px; color: #46536c; background: #fff; font-size: 13px; }
.banner-copy b:nth-child(2) { color: #197c69; }
.banner-copy b:nth-child(3) { color: #d45459; }
.banner-copy b:nth-child(4) { color: #7b5bab; }
.banner-ribbon { position: absolute; left: -5%; right: -5%; bottom: -90px; height: 145px; background: #e34e53; transform: rotate(5deg); opacity: .96; }
.banner-ribbon::after { content: ""; position: absolute; left: 15%; right: -5%; top: -20px; height: 24px; background: #ffd8da; }
.reference-account { display: grid; grid-template-rows: 124px 1fr; gap: 12px; min-width: 0; }
.account-member-card, .account-grid { background: #fff; border-radius: 8px; border: 1px solid #eaebf8; }
.account-member-card { min-width: 0; padding: 18px 20px; display: grid; grid-template-columns: 68px minmax(0, 1fr) auto; align-items: center; gap: 16px; }
.account-member-card > img { width: 66px; height: 66px; border-radius: 50%; border: 1px solid #eceef4; object-fit: cover; }
.account-member-copy { min-width: 0; margin: 0; display: grid; gap: 7px; }
.account-member-copy div { min-width: 0; display: flex; align-items: baseline; }
.account-member-copy dt { flex: none; color: #4c5462; }
.account-member-copy dd { min-width: 0; margin: 0; overflow: hidden; color: #111827; font-weight: 700; white-space: nowrap; text-overflow: ellipsis; }
.account-member-copy dd a { margin-left: 6px; padding: 2px 8px; border-radius: 11px; color: #1485e5; background: #edf6ff; font-size: 12px; font-weight: 500; }
.account-member-copy > strong, .account-member-copy > span { display: block; }
.account-member-copy > strong { color: #343b47; }
.account-member-copy > span { color: #8d95a3; font-size: 12px; line-height: 1.5; }
.account-member-actions { display: grid; gap: 8px; }
.account-member-actions a, .account-member-actions button { min-width: 80px; min-height: 32px; padding: 0 10px; display: flex; align-items: center; justify-content: center; border: 1px solid #d8dce3; border-radius: 5px; color: #4d5664; background: #fff; font-size: 13px; white-space: nowrap; }
.account-member-actions a.primary { border-color: #ef5358; color: #fff; background: #ef5358; }
.account-member-actions a:hover, .account-member-actions button:hover { border-color: #ef5358; color: #e3494e; }
.account-member-actions a.primary:hover { color: #fff; background: #e3494e; }
.account-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(70px, 1fr)); padding: 11px 12px 8px; }
.account-grid a, .account-grid button { min-width: 0; padding: 0; border: 0; display: grid; place-items: center; align-content: center; gap: 2px; color: #566175; background: transparent; font-size: 12px; border-radius: 5px; }
.account-grid a:hover, .account-grid button:hover { background: #f4f6ff; color: #dc4d52; }
.account-grid b { width: 30px; height: 30px; display: grid; place-items: center; color: #fff; background: #5b9ee8; border-radius: 7px; font-size: 13px; }
.account-grid a:nth-child(2) b { background: #55bc91; }
.account-grid a:nth-child(3) b { background: #efa844; }
.account-grid a:nth-child(4) b { background: #d39c4b; }
.account-grid a:nth-child(5) b { background: #7184d8; }
.account-grid a:nth-child(6) b { background: #d86c8c; }
.account-grid a:nth-child(7) b { background: #6fafa8; }
.account-grid a:nth-child(8) b { background: #7d879b; }
.reference-notice { min-height: 50px; margin-top: 14px; padding: 0 22px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px; background: #fff; border: 1px solid #e5e7f5; border-radius: 6px; }
.reference-notice strong { color: #4998de; font-size: 16px; padding-right: 18px; border-right: 1px solid #dfe2ea; }
.reference-notice .notice-marquee { min-width: 0; overflow: hidden; white-space: nowrap; color: #505867; }
.reference-notice .notice-marquee i { display: inline-block; padding-left: 100%; font-style: normal; animation: notice-scroll 18s linear infinite; }
.reference-notice:hover .notice-marquee i { animation-play-state: paused; }
@keyframes notice-scroll { from { transform: translateX(0); } to { transform: translateX(-100%); } }
.reference-notice a { color: #9aa0ad; }
.reference-recommend { height: 170px; margin-top: 14px; display: grid; grid-template-columns: 170px minmax(0, 1fr); overflow: hidden; border-radius: 7px; background: #fff; border: 1px solid #e9e9f4; }
.recommend-title { display: grid; align-content: center; justify-items: center; background: #ffd9e0; color: #cf4458; }
.recommend-title h2 { margin: 0; font-size: 23px; }
.recommend-title p { margin: 5px 0 14px; }
.home-flash-countdown { display: flex; align-items: center; gap: 4px; }
.home-flash-countdown span { min-width: 27px; height: 25px; padding: 0 4px; display: grid; place-items: center; border-radius: 3px; color: #fff; background: #cf4458; font: 700 12px/1 ui-monospace, SFMono-Regular, Menlo, monospace; }
.home-flash-countdown i { color: #cf4458; font-style: normal; font-weight: 800; }
.recommend-title a { padding: 7px 18px; color: #fff; background: #e95058; border-radius: 20px; font-size: 12px; }
.recommend-list { min-width: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); overflow: hidden; }
.compact-product { min-width: 0; padding: 18px 10px; display: grid; grid-template-columns: 64px minmax(0, 1fr); align-items: center; gap: 10px; border-right: 1px solid #edf0f3; }
.compact-product .product-visual { width: 64px; height: 76px; min-height: 0; border-radius: 3px; }
.compact-product .product-visual span { font-size: 18px; }
.compact-product .product-visual small { font-size: 10px; }
.compact-product div span, .compact-product div strong { display: block; }
.compact-product div span { height: 42px; overflow: hidden; color: #404858; line-height: 21px; }
.compact-product div strong { margin-top: 8px; color: #e24d59; font-size: 17px; }
.compact-product em { display: none; }
.home-flash-qr { min-width: 0; padding: 14px 28px; display: flex; align-items: center; justify-content: center; gap: 22px; }
.home-flash-qr img { width: 132px; height: 132px; object-fit: contain; border: 1px solid #e1e5eb; background: #fff; }
.home-flash-qr > div { display: grid; gap: 7px; }
.home-flash-qr strong { color: #2f3945; font-size: 18px; }
.home-flash-qr span { color: #8a939e; font-size: 12px; }
.home-catalog-layout { margin-top: 16px; display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 14px; align-items: start; }
.home-category-sidebar { position: sticky; top: 104px; min-width: 0; overflow: hidden; border: 1px solid #e1e5eb; border-radius: 7px; background: #fff; }
.home-category-sidebar button { width: 100%; min-width: 0; border: 0; text-align: left; }
.home-category-all { height: 46px; padding: 0 13px; display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #fff; background: #e9555b; font-size: 15px; }
.home-category-all:hover, .home-category-all.active { background: #d9474e; }
.home-category-all b { min-width: 28px; height: 22px; padding: 0 6px; display: grid; place-items: center; border-radius: 11px; background: rgba(255, 255, 255, .2); font-size: 11px; }
.home-category-group + .home-category-group { border-top: 1px solid #edf0f3; }
.home-category-root { min-height: 44px; padding: 0 12px 0 10px; display: grid; grid-template-columns: 24px minmax(0, 1fr) auto 14px; align-items: center; gap: 8px; color: #39424d; background: #fff; font-weight: 700; }
.home-category-root:hover, .home-category-root.active { color: #d9474e; background: #fff2f3; }
.home-category-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.home-category-icon { width: 24px; height: 24px; display: grid; place-items: center; overflow: hidden; border-radius: 5px; color: #fff; background: #707b88; font-size: 11px; font-weight: 800; }
.home-category-icon img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.home-category-icon.tone-douyin { background: #20242a; }
.home-category-icon.tone-wechat { background: #23a76a; }
.home-category-icon.tone-kuaishou { background: #ff6a2a; }
.home-category-icon.tone-xiaohongshu { background: #e83f4f; }
.home-category-icon.tone-tech { background: #3976c5; }
.home-category-root small { color: #9aa1aa; font-size: 11px; font-weight: 400; }
.home-category-root i { color: #9ca3ad; font-size: 19px; font-style: normal; transform: rotate(0); transition: transform .18s ease; }
.home-category-group.open .home-category-root i { transform: rotate(90deg); }
.home-category-children { padding: 3px 0 5px; display: grid; background: #f8f9fb; }
.home-category-child-group { min-width: 0; display: grid; }
.home-category-children .home-category-child-group > button { min-height: 32px; padding: 5px 13px 5px 26px; display: flex; align-items: center; justify-content: space-between; gap: 8px; color: #606a76; background: transparent; }
.home-category-grandchildren { display: grid; padding: 1px 0 4px; }
.home-category-grandchildren > button { min-height: 28px; padding: 4px 13px 4px 39px; display: flex; align-items: center; justify-content: space-between; gap: 8px; color: #7a838e; background: transparent; font-size: 12px; }
.home-category-children button:hover, .home-category-children button.active { color: #d9474e; background: #fff; }
.home-category-children button span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.home-category-children button small { color: #a0a7b0; font-size: 11px; }
.home-catalog-results { min-width: 0; }
.home-catalog-results > header { height: 54px; padding: 0 3px 0 2px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.home-catalog-results > header > div { min-width: 0; display: flex; align-items: baseline; gap: 10px; }
.home-catalog-results > header h2 { margin: 0; color: #26313d; font-size: 20px; }
.home-catalog-results > header span, .home-catalog-results > header a { color: #8c95a1; font-size: 12px; white-space: nowrap; }
.home-catalog-results > header a:hover { color: #d9474e; }
.home-category-section:first-of-type { margin-top: 0; }
.category-admin-icon { width: 34px; height: 34px; display: grid; place-items: center; overflow: hidden; border-radius: 6px; background: #f2f4f7; }
.category-admin-icon > img { width: 100%; height: 100%; object-fit: contain; }
.category-admin-icon .home-category-icon { width: 30px; height: 30px; }
.home-product-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.home-product-card { min-width: 0; overflow: hidden; border: 1px solid #e4e7ec; border-radius: 6px; background: #fff; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.home-product-card:hover { transform: translateY(-2px); border-color: #efb5b8; box-shadow: 0 7px 18px rgba(42, 53, 72, .09); }
.home-product-card.is-unavailable { opacity: .7; }
.home-product-image { min-width: 0; display: block; aspect-ratio: 1 / 1; overflow: hidden; border-bottom: 1px solid #edf0f3; background: #f7f8fa; }
.home-product-image .product-visual { width: 100%; height: 100%; min-height: 0; border-radius: 0; }
.home-product-image .product-visual img { width: 100%; height: 100%; object-fit: contain; }
.home-product-body { min-width: 0; padding: 10px 11px 12px; }
.home-product-name { min-height: 40px; display: -webkit-box; overflow: hidden; color: #252d36; font-size: 14px; font-weight: 700; line-height: 20px; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.home-product-name:hover { color: #d9474e; }
.home-product-stock { margin-top: 5px; display: block; overflow: hidden; color: #9aa1aa; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.home-product-price { margin-top: 7px; display: flex; align-items: baseline; gap: 4px; color: #ef4f56; }
.home-product-price strong { font-size: 17px; }
.home-product-price span { font-size: 11px; }
.reference-category { margin-top: 24px; }
.reference-category-head { height: 45px; display: flex; align-items: center; justify-content: space-between; }
.reference-category-head h2 { margin: 0; padding-left: 15px; border-left: 5px solid #ee5960; font-size: 23px; }
.reference-category-head a { color: #7c8493; }
.reference-category-head a span { font-size: 19px; }
.reference-category-products { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.reference-category-card { min-width: 0; height: 96px; padding: 14px; display: grid; grid-template-columns: 75px minmax(0, 1fr); align-items: center; gap: 12px; background: #fff; border-radius: 8px; border: 1px solid #e6e8f2; }
.reference-category-card .product-visual { width: 75px; height: 64px; border-radius: 4px; }
.reference-category-card .product-visual span { font-size: 19px; }
.reference-category-card .product-visual small { display: none; }
.reference-category-card strong, .reference-category-card span { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.reference-category-card strong { color: #323946; }
.reference-category-card span { margin-top: 6px; color: #969da9; font-size: 12px; }
.reference-runtime { margin-top: 28px; padding: 18px 24px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)) auto; align-items: center; gap: 24px; background: #fff; border: 1px solid #e4e6f0; border-radius: 7px; }
.reference-runtime span, .reference-runtime strong { display: block; }
.reference-runtime span { color: #929aa8; font-size: 12px; }
.reference-runtime strong { margin-top: 3px; }
.reference-runtime a { padding: 9px 17px; color: #fff; background: #df5156; border-radius: 5px; }
.platform-name { font-weight: 800; }
.platform-video { color: #18a66a; }
.platform-douyin { color: #151515; }
.platform-kuaishou { color: #f07b22; }
.platform-xiaohongshu { color: #e83c46; }
.platform-other { color: #2476c9; }
.execution-cell .execution-value { display: block; white-space: nowrap; font-size: 12px; font-weight: 600; line-height: 1.65; color: #6f7785; }
.execution-cell .execution-result { color: #1f2937; }
.execution-cell .execution-queue { display: block; white-space: nowrap; color: #2563eb; font-size: 11px; font-weight: 600; }
.execution-cell .execution-value.is-positive { color: #0f766e; }
.execution-cell .execution-value.is-negative { color: #c2410c; }
.execution-cell .drop-hint, .progress-drop-hint, .refund-line { color: #b45309; }
.progress-drop-hint { grid-column: 1 / -1; font-size: 12px; }
.amount-cell .refund-line { display: block; margin-top: 4px; }
.column-choice-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.column-choice-grid label, .toggle-line { min-width: 0; display: flex; align-items: center; gap: 8px; }
.column-choice-grid input, .toggle-line input { width: 16px; height: 16px; flex: 0 0 auto; }
.destructive-warning { margin: 0; padding: 12px 14px; border-left: 3px solid #db3b3b; background: #fff4f4; color: #8b2424; }
.member-order-summary { margin-bottom: 14px; display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; }
.member-order-summary strong { margin-left: auto; }
.member-order-filter { margin-bottom: 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.my-orders-page .query-list { gap: 12px; }
.my-orders-page .public-order-table-scroll { margin-inline: auto; }
@media (min-width: 1180px) {
  .store-section.my-orders-page {
    width: calc(100% - 40px);
    max-width: 1800px;
  }
}
@media (min-width: 1440px) {
  .my-orders-page .public-order-table-scroll { overflow-x: clip; }
  .my-orders-page .public-order-table {
    width: 100%;
    min-width: 0;
    table-layout: fixed;
  }
  .my-orders-page .public-order-table th,
  .my-orders-page .public-order-table td { padding-inline: 7px; }
  .my-orders-page .public-order-table th:nth-child(1) { width: 11%; }
  .my-orders-page .public-order-table th:nth-child(2) { width: 15%; }
  .my-orders-page .public-order-table th:nth-child(3) { width: 13%; }
  .my-orders-page .public-order-table th:nth-child(4) { width: 8%; }
  .my-orders-page .public-order-table th:nth-child(5) { width: 17%; }
  .my-orders-page .public-order-table th:nth-child(6) { width: 13%; }
  .my-orders-page .public-order-table th:nth-child(7) { width: 8%; }
  .my-orders-page .public-order-table th:nth-child(8) { width: 8%; }
  .my-orders-page .public-order-table th:nth-child(9) { width: 7%; }
  .my-orders-page .public-order-table td:nth-child(2) { max-width: none; }
  .my-orders-page .public-order-table td:nth-child(5),
  .my-orders-page .public-order-progress,
  .my-orders-page .public-order-actions { min-width: 0; }
  .my-orders-page .public-order-actions {
    align-items: stretch;
    flex-direction: column;
  }
  .my-orders-page .public-order-actions button { width: 100%; }
}
.public-order-filter { padding: 10px 12px; border: 1px solid #e5e9ef; border-radius: 6px; background: #fff; }
.member-order-filter > span { margin-right: auto; font-weight: 700; }
.member-order-filter select, .member-order-filter input { min-height: 38px; border: 1px solid var(--line); border-radius: 5px; padding: 0 10px; background: #fff; }
.member-detail-tabs { margin-bottom: 15px; display: flex; gap: 4px; border-bottom: 1px solid #e4e8ed; }
.member-detail-tabs button { min-width: 110px; height: 40px; padding: 0 16px; border: 0; border-bottom: 3px solid transparent; color: #68727e; background: transparent; font-weight: 700; }
.member-detail-tabs button.active { border-bottom-color: #1769e0; color: #1769e0; }
.member-detail-quick { margin: -3px 0 14px; display: flex; flex-wrap: wrap; gap: 8px; }
.member-detail-quick button { min-width: 62px; height: 32px; padding: 0 12px; border: 1px solid #d7dde5; border-radius: 4px; color: #5f6975; background: #fff; }
.member-detail-quick button.active { border-color: #1769e0; color: #fff; background: #1769e0; }
.member-ledger-table { max-height: min(520px, 58vh); }
.member-ledger-table .data-table { min-width: 940px; }
.docking-direction-guide { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.docking-direction-guide > div { padding-left: 14px; border-left: 3px solid #1769e0; }
.docking-direction-guide strong { font-size: 16px; }
.docking-direction-guide p { margin: 7px 0 0; color: var(--muted); line-height: 1.75; }
.upstream-self-service-guide { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin: 0 0 16px; border: 1px solid var(--line); background: var(--line); }
.upstream-self-service-guide > div { min-height: 82px; padding: 13px; display: grid; grid-template-columns: 30px 1fr; align-content: center; column-gap: 9px; background: #fff; }
.upstream-self-service-guide b { grid-row: span 2; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: #1769e0; }
.upstream-self-service-guide span { font-weight: 700; }
.upstream-self-service-guide small { margin-top: 3px; color: var(--muted); line-height: 1.4; }
.member-metrics.compact { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* Reference-compatible admin shell. */
.admin-shell { width: 100%; grid-template-columns: 195px minmax(0, 1fr); background: #fff; }
.admin-sidebar { background: #252525; color: #c9c9c9; }
.admin-brand { height: 51px; padding: 0 18px; border-bottom-color: #383838; }
.admin-brand img { width: 32px; height: 32px; border-radius: 2px; }
.admin-brand strong { font-size: 13px; }
.admin-brand span { display: none; }
.admin-sidebar nav { padding: 7px 0; }
.admin-nav-group { margin: 0; }
.admin-nav-parent { width: 100%; min-height: 52px; padding: 0 20px; border: 0; border-radius: 0; display: flex; align-items: center; gap: 13px; background: transparent; color: #c7c7c7; text-align: left; }
.admin-nav-parent > span { width: 20px; height: 20px; display: grid; place-items: center; color: #a7a7a7; font-size: 11px; }
.admin-nav-parent i { margin-left: auto; color: #818181; font-style: normal; transition: transform .16s ease; }
.admin-nav-group.open .admin-nav-parent i { transform: rotate(180deg); }
.admin-nav-parent:hover, .admin-nav-parent.active { color: #fff; background: #303030; }
.admin-nav-children { display: none; background: #202020; }
.admin-nav-group.open .admin-nav-children { display: block; }
.admin-nav-children a { min-height: 46px; padding: 0 20px 0 72px; display: flex; align-items: center; color: #b8b8b8; }
.admin-nav-children a:hover, .admin-nav-children a.active { color: #efcdae; background: #1f2d3d; }
.admin-nav-children a.active { box-shadow: none; }
.sidebar-foot { border-top-color: #383838; }
.admin-top { height: 51px; padding: 0 17px; background: #fff; }
.admin-breadcrumb { display: flex; align-items: center; gap: 11px; color: #60636a; }
.admin-breadcrumb i { color: #c5c7cb; font-style: normal; }
.admin-breadcrumb b { color: #b6bac1; font-weight: 400; }
.admin-top-actions { gap: 5px; }
.top-icon-button { width: 34px; height: 34px; display: grid; place-items: center; border: 0; background: #fff; color: #747a84; font-size: 18px; }
.top-icon-button:hover { color: var(--brand); background: #f5f7fa; }
.top-text-button { min-height: 34px; padding: 0 10px; border: 0; background: #fff; color: #747a84; }
.top-text-button:hover { color: var(--red); background: var(--red-soft); }
.admin-main,
.admin-top,
.admin-content,
.admin-panel { width: 100%; }
.admin-main { max-width: 100%; }
.admin-shell > .admin-main { justify-self: stretch; }
.admin-content { max-width: none; padding: 20px 22px 36px; background: #fff; }
.admin-panel { border-color: #e3e5e8; border-radius: 2px; box-shadow: none; }
.admin-panel > .notice-bar {
  margin-bottom: 16px;
  padding: 11px 14px;
  border-left: 3px solid #2f7de1;
  background: #f4f8fd;
  color: #42536a;
  line-height: 1.65;
}
.admin-panel .table-scroll { width: 100%; max-width: 100%; }
.admin-panel .data-table { min-width: 960px; }
.admin-panel .panel-head > div { min-width: 0; }
.admin-panel .panel-head > .btn { flex: 0 0 auto; }
.license-device-list { display: grid; gap: 6px; }
.license-device-list > div { display: flex; align-items: center; gap: 8px; }
.license-device-list > div > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.license-device-list > div > small { margin: 0; flex: 0 0 auto; }
.order-workbench { padding: 0; border: 0; }
.reference-order-filters { display: grid; gap: 17px; margin-bottom: 18px; }
.filter-row { display: grid; gap: 10px; }
.filter-row.primary-row { grid-template-columns: repeat(4, minmax(150px, 1fr)) minmax(180px, 1fr); }
.filter-row.secondary-row { grid-template-columns: repeat(5, minmax(140px, 1fr)) 70px 70px; }
.reference-order-filters input, .reference-order-filters select { width: 100%; min-width: 0; height: 33px; padding: 0 13px; border: 1px solid #dfe3e8; border-radius: 3px; background: #fff; color: #6f7580; }
.filter-search, .filter-reset { height: 33px; border: 0; border-radius: 3px; color: #fff; background: #409eff; }
.filter-reset { color: #606266; background: #f3f5f7; border: 1px solid #dcdfe6; }
.reference-batch-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.reference-batch-actions button { min-width: 80px; height: 33px; border: 0; border-radius: 3px; background: #8bc0ef; color: #fff; }
.reference-batch-actions button:first-child { background: #409eff; }
.reference-batch-actions button[data-requires-selection].selection-ready { background: #1769e0; box-shadow: 0 2px 7px rgba(23, 105, 224, .25); }
.table-scroll { border-color: #e5e7ea; border-radius: 0; }
.reference-order-table { min-width: 1660px; table-layout: auto; font-size: 12px; }
.reference-order-table th, .reference-order-table td { height: 38px; padding: 5px 8px; text-align: center; vertical-align: middle; border-right: 1px solid #e8eaed; }
.reference-order-table th { height: 39px; background: #eef0f4; color: #444951; font-size: 12px; }
.reference-order-table td small { max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.reference-order-table td > b,
.reference-order-table td > small { display: inline; margin: 0 0 0 5px; }
.reference-order-table td > b:first-child,
.reference-order-table td > small:first-child { margin-left: 0; }
.reference-order-table .order-param { color: #52a5df; }
.reference-order-table .order-parameter-cell { width: 170px; max-width: 170px; }
.reference-order-table .order-parameter-cell small { display: block; margin: 2px 0 0; }
.reference-order-table .execution-cell .execution-value { display: inline-block; margin: 0 6px 0 0; font-size: 12px; font-weight: 600; line-height: 1.5; vertical-align: middle; }
.order-assignee-edit { max-width: 180px; padding: 0; border: 0; background: transparent; color: inherit; font: inherit; line-height: 1.45; cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: middle; }
.order-param-summary { width: 100%; max-width: 154px; padding: 0; border: 0; background: transparent; color: #409eff; font: inherit; line-height: 1.45; cursor: pointer; text-align: center; }
.order-param-summary span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.order-param-summary small { color: #8a95a3; font-size: 11px; }
.order-param-summary:hover span, .order-target-link:hover span { text-decoration: underline; }
.order-target-link { margin-top: 6px; padding: 0; border: 0; background: transparent; color: #409eff; font: inherit; text-align: left; cursor: pointer; }
.order-target-link span, .order-target-link small { display: block; overflow-wrap: anywhere; }
.order-target-link small { color: #8a95a3; }
.order-parameter-modal { display: grid; gap: 16px; }
.order-parameter-modal table { width: 100%; border-collapse: collapse; border: 1px solid #e5e9ef; }
.order-parameter-modal th, .order-parameter-modal td { padding: 10px 12px; border-bottom: 1px solid #e5e9ef; text-align: left; vertical-align: top; }
.order-parameter-modal th { width: 150px; color: #66717d; background: #f8fafc; font-weight: 700; }
.order-parameter-modal td { color: #1f2937; overflow-wrap: anywhere; }
.settings-subsection { margin-top: 8px; padding: 14px; border: 1px solid #e5e9ef; border-radius: 6px; background: #f8fafc; }
.settings-subsection h3 { margin: 0 0 6px; font-size: 15px; }
.settings-subsection p { margin: 0 0 12px; color: #66717d; line-height: 1.6; }
.order-inline-select { min-width: 86px; min-height: 30px; padding: 3px 22px 3px 8px; border: 1px solid #d5dbe4; border-radius: 4px; background-color: #fff; font-size: 12px; font-weight: 700; cursor: pointer; }
.order-inline-select.success { border-color: #a7dfc8; background-color: #e8f8f1; color: #087c55; }
.order-inline-select.warning { border-color: #f1d7a2; background-color: #fff6df; color: #956100; }
.order-inline-select.danger { border-color: #efbec2; background-color: #fff0f1; color: #b73540; }
.order-inline-select.status-payment-required { border-color: #cfd5df; background-color: #f6f8fb; color: #475467; }
.order-inline-select.status-paid { border-color: #8bd3e6; background-color: #e6f8fd; color: #0e7490; }
.order-inline-select.status-pending-confirm { border-color: #f4b46d; background-color: #fff1df; color: #b45309; }
.order-inline-select.status-pending-auth { border-color: #d7be55; background-color: #fff7c2; color: #7a5700; }
.order-inline-select.status-processing { border-color: #9dbcf8; background-color: #eef5ff; color: #1d4ed8; }
.order-inline-select.status-delivered { border-color: #8bd6a8; background-color: #e9f9ee; color: #15803d; }
.order-inline-select.status-partial-refund { border-color: #c7b5f5; background-color: #f3efff; color: #6d28d9; }
.order-inline-select.status-cancelled { border-color: #b8c0cc; background-color: #f2f4f7; color: #344054; }
.order-inline-select.status-refunded { border-color: #ee9da8; background-color: #fff0f2; color: #be123c; }
.reference-order-table .order-authorization-cell { width: 148px; min-width: 148px; max-width: 148px; padding-inline: 5px; }
.order-authorization-stack { display: grid; grid-template-rows: 28px 24px; gap: 0; width: 100%; min-width: 0; overflow: hidden; border: 1px solid #d5dbe4; border-radius: 5px; background: #fff; }
.order-authorization-stack > .order-inline-select { width: 100%; min-width: 0; min-height: 28px; padding: 2px 20px 2px 8px; border: 0; border-bottom: 1px solid #e4e7ec; border-radius: 0; }
.order-authorization-stack.is-data-monitor { grid-template-rows: 28px 24px; }
.data-monitor-auth { display: flex; align-items: center; justify-content: center; border-bottom: 1px solid #e4e7ec; background: #e8f8f1; color: #087c55; font-size: 12px; font-weight: 700; }
.reference-order-table .order-authorization-subject { display: grid; grid-template-columns: 46px minmax(0, 1fr); align-items: center; gap: 4px; width: 100%; max-width: none; margin: 0; padding: 3px 6px; overflow: hidden; color: #667085; font-size: 11px; line-height: 18px; text-align: left; white-space: nowrap; }
.order-authorization-subject span { min-width: 0; }
.order-authorization-subject b { min-width: 0; overflow: hidden; color: #344054; font-size: 11px; font-weight: 700; text-align: right; text-overflow: ellipsis; white-space: nowrap; }
.order-authorization-subject.is-empty b { color: #98a2b3; font-weight: 500; }
.field-action-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.field-action-head label { margin: 0; }
.adgroup-import-list { max-height: 340px; overflow: auto; border: 1px solid #dfe4ec; background: #f8fafc; }
.adgroup-import-list > p { margin: 0; padding: 16px; color: #687386; }
.adgroup-import-option { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; align-items: center; gap: 10px; min-height: 58px; padding: 9px 12px; border-bottom: 1px solid #e5e9ef; background: #fff; cursor: pointer; }
.adgroup-import-option:last-child { border-bottom: 0; }
.adgroup-import-option input { width: 17px; height: 17px; margin: 0; }
.adgroup-import-option span { min-width: 0; }
.adgroup-import-option b, .adgroup-import-option small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adgroup-import-option small { margin-top: 3px; color: #707b8c; }
.adgroup-import-option.is-invalid { background: #fff8f7; cursor: not-allowed; }
.adgroup-import-option.is-invalid b { color: #9d3c36; }
.adgroup-import-option.is-invalid .field-error { color: #bd4038; white-space: normal; }
.order-assignee-edit { color: #1677c8; }
.order-assignee-edit:hover, .order-assignee-edit:focus-visible { text-decoration: underline; }
.order-assignee-edit.is-empty { color: #8a929c; }
.reference-order-table .order-remark-cell { width: 230px; min-width: 230px; max-width: 230px; }
.order-remark-edit { display: grid; width: 100%; max-width: none; max-height: none; gap: 1px; padding: 0; overflow: visible; border: 0; background: transparent; color: #475467; font: inherit; line-height: 17px; text-align: left; white-space: normal; overflow-wrap: anywhere; cursor: pointer; }
.order-remark-edit span, .order-remark-edit strong { display: block; min-width: 0; overflow: visible; text-overflow: clip; white-space: normal; overflow-wrap: anywhere; }
.order-remark-edit strong { color: #344054; font-weight: 600; }
.order-remark-edit:hover, .order-remark-edit:focus-visible { color: #1677c8; text-decoration: underline; }
.order-remark-edit.is-empty { color: #8a929c; }
.table-actions .refund-action { color: #b42318; font-weight: 700; }
.reference-order-table .amount-cell { color: #df5c65; font-weight: 700; }
.reference-order-table .table-actions { min-width: 170px; justify-content: center; }
.compact-order-view .reference-order-table th, .compact-order-view .reference-order-table td { height: 32px; padding-block: 1px; }
.compact-order-view .reference-order-table .order-inline-select { min-height: 26px; padding-block: 1px; }
.compact-order-view .reference-order-table .order-authorization-stack { grid-template-rows: 25px 21px; }
.compact-order-view .reference-order-table .order-authorization-stack > .order-inline-select { min-height: 25px; }
.compact-order-view .reference-order-table .order-authorization-subject { padding-block: 1px; line-height: 17px; }

@media (max-width: 1100px) {
  .client-header { height: 66px; }
  .client-head-inner { width: 100%; padding: 0 16px; }
  .client-brand { min-width: 0; }
  .client-brand img { width: 40px; height: 40px; }
  .client-nav { top: 66px; }
  .header-search { display: none; }
  .reference-home { width: calc(100% - 24px); margin-top: 12px; }
  .reference-top { height: auto; grid-template-columns: 1fr; }
  .reference-banner { min-height: 320px; }
  .banner-carousel { min-height: 320px; }
  .reference-account { grid-template-rows: 132px 160px; }
  .reference-category-products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .home-catalog-layout { grid-template-columns: 205px minmax(0, 1fr); }
  .home-product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .admin-shell { width: 100%; grid-template-columns: minmax(0, 1fr); }
  .admin-sidebar { left: -210px; width: 195px; }
  .sidebar-open .admin-sidebar { left: 0; }
  .filter-row.primary-row, .filter-row.secondary-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .home-catalog-layout { grid-template-columns: 185px minmax(0, 1fr); }
  .home-product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .supplier-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .client-app { background: #fff; }
  .client-header { display: none; }
  .client-main { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
  .reference-home { width: 100%; margin-top: 0; padding: 0 14px 20px; }
  .mobile-home-head { display: grid; gap: 15px; padding: 20px 4px 14px; }
  .mobile-home-head h1 { margin: 0; text-align: center; font-size: 22px; }
  .mobile-home-head form { height: 48px; display: grid; grid-template-columns: 44px minmax(0, 1fr); align-items: center; border-radius: 8px; background: #f5f6fa; }
  .mobile-home-head form button { height: 100%; padding: 0; border: 0; background: transparent; color: #151b27; font-size: 28px; }
  .mobile-home-head input { height: 100%; min-width: 0; padding: 0 14px 0 0; border: 0; background: transparent; font-size: 16px; }
  .reference-top { display: block; }
  .reference-top > .reference-banner, .reference-top > .banner-carousel { width: 100%; min-height: 0; height: auto; aspect-ratio: 16 / 6.8; }
  .reference-account { display: none; }
  .mobile-home-tools { margin: 16px 0 4px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
  .mobile-home-tools a, .mobile-home-tools button { min-width: 0; padding: 0; border: 0; display: grid; justify-items: center; gap: 7px; background: transparent; color: #646d78; font-size: 12px; }
  .mobile-home-tools b { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: #eda51c; font-size: 16px; }
  .mobile-home-tools a:nth-child(2) b { background: #e95d2b; }
  .mobile-home-tools a:nth-child(3) b { background: #13b873; }
  .mobile-home-tools button b { background: #19a8d8; }
  .mobile-home-tools a:nth-child(5) b { background: #e85a77; }
  .mobile-home-tools span { width: 100%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; text-align: center; }
  .image-upload-layout { grid-template-columns: 1fr; }
  .image-gallery-preview { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .banner-brand { left: 18px; top: 16px; }
  .banner-copy { padding: 54px 18px 24px; }
  .banner-copy h1 { font-size: 27px; }
  .banner-copy p { padding: 8px 13px; font-size: 12px; }
  .banner-copy b { min-width: 72px; padding: 7px 8px; font-size: 11px; }
  .reference-account { grid-template-rows: auto 178px; }
  .account-member-card { padding: 15px; grid-template-columns: 58px minmax(0, 1fr) auto; gap: 11px; }
  .account-member-card > img { width: 56px; height: 56px; }
  .account-member-actions a { min-width: 70px; padding-inline: 8px; font-size: 12px; }
  .account-grid { grid-template-columns: repeat(4, 1fr); }
  .supplier-summary { grid-template-columns: 1fr; }
  .package-quantity-control { grid-template-columns: 38px minmax(70px, 1fr) 38px; }
  .package-quantity-control button { height: 42px; }
  .package-quantity-control input { height: 42px; }
  .package-quantity-control span { grid-column: 1 / -1; min-width: 0; height: 38px; justify-content: center; border-left: 1px solid #d9dee7; border-top: 0; border-radius: 0 0 5px 5px; }
  .reference-notice { min-height: 42px; margin-top: 14px; padding: 0 10px; grid-template-columns: auto 1fr; gap: 10px; }
  .reference-notice strong { padding-right: 10px; font-size: 14px; }
  .reference-notice a { display: none; }
  .reference-recommend { display: none; }
  .reference-recommend.home-flash { height: auto; min-height: 118px; display: block; overflow: visible; border: 0; background: transparent; }
  .home-flash .recommend-title { min-height: 40px; display: flex; align-items: center; justify-content: space-between; background: transparent; }
  .home-flash .recommend-title h2 { font-size: 18px; }
  .home-flash .recommend-title p { margin: 0; }
  .home-flash .recommend-title a { display: none; }
  .home-flash .recommend-list { margin: 0 -14px; padding: 0 14px 8px; display: flex; overflow-x: auto; gap: 10px; scrollbar-width: none; }
  .home-flash .recommend-list::-webkit-scrollbar { display: none; }
  .home-flash .compact-product { width: 210px; min-width: 210px; padding: 9px; border: 1px solid #e8ebef; border-radius: 5px; background: #fff; }
  .home-flash .home-flash-qr { padding: 10px 0 2px; justify-content: flex-start; }
  .home-flash .home-flash-qr img { width: 102px; height: 102px; }
  .home-catalog-layout { margin-top: 16px; display: block; }
  .home-category-sidebar { position: static; display: flex; align-items: center; gap: 7px; overflow-x: auto; overflow-y: hidden; padding: 0 0 8px; border: 0; border-radius: 0; background: transparent; scrollbar-width: none; }
  .home-category-sidebar::-webkit-scrollbar { display: none; }
  .home-category-all { width: auto; min-width: 88px; height: 36px; padding: 0 12px; flex: 0 0 auto; border-radius: 18px; font-size: 13px; }
  .home-category-all b { display: none; }
  .home-category-group { flex: 0 0 auto; display: flex; align-items: center; gap: 7px; border: 0 !important; }
  .home-category-root { width: auto !important; min-width: 94px !important; min-height: 36px; height: 36px; padding: 0 12px 0 8px; grid-template-columns: 22px auto; gap: 6px; border: 1px solid #e1e5eb !important; border-radius: 18px; background: #fff; font-size: 13px; font-weight: 600; text-align: center !important; }
  .home-category-icon { width: 22px; height: 22px; border-radius: 50%; font-size: 10px; }
  .home-category-root small, .home-category-root i { display: none; }
  .home-category-root.active { border-color: #ef8f94 !important; background: #fff1f2; }
  .home-category-children { padding: 0; display: flex; align-items: center; gap: 7px; background: transparent; }
  .home-category-child-group { display: flex; align-items: center; gap: 7px; }
  .home-category-children .home-category-child-group > button, .home-category-grandchildren > button { width: auto; min-width: 76px; min-height: 36px; padding: 0 12px; flex: 0 0 auto; border: 1px solid #e1e5eb; border-radius: 18px; background: #fff; font-size: 12px; }
  .home-category-grandchildren { padding: 0; display: flex; align-items: center; gap: 7px; }
  .home-category-children button.active { border-color: #ef8f94; background: #fff1f2; }
  .home-category-children button small { display: none; }
  .home-catalog-results > header { height: 42px; }
  .home-catalog-results > header h2 { font-size: 18px; }
  .home-catalog-results > header a { display: none; }
  .home-product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 8px; }
  .home-product-card { border: 0; border-radius: 4px; box-shadow: none; }
  .home-product-card:hover { transform: none; box-shadow: none; }
  .home-product-body { padding: 7px 2px 9px; }
  .home-product-name { min-height: 36px; font-size: 13px; line-height: 18px; text-align: center; }
  .home-product-stock { margin-top: 3px; text-align: center; font-size: 11px; }
  .home-product-price { margin-top: 4px; justify-content: center; }
  .home-product-price strong { font-size: 14px; }
  .reference-category { margin-top: 18px; }
  .reference-category-head { height: 40px; }
  .reference-category-head h2 { padding-left: 10px; border-left-width: 4px; font-size: 18px; }
  .reference-category-head a { font-size: 13px; }
  .reference-category-products { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px 8px; }
  .reference-category-card { height: auto; padding: 3px; display: block; border: 0; overflow: hidden; background: transparent; }
  .reference-category-card .product-visual { width: 100%; height: auto; min-height: 0; aspect-ratio: 1 / 1; border-radius: 4px; }
  .reference-category-card .product-visual.has-image { display: grid; place-items: center; background: #f7f8fa; }
  .reference-category-card .product-visual img { width: 100%; height: 100%; object-fit: contain; }
  .reference-category-card > div { min-width: 0; }
  .reference-category-card strong { min-height: 36px; margin-top: 7px; display: -webkit-box; overflow: hidden; white-space: normal; text-align: center; font-size: 13px; line-height: 18px; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .reference-category-card > div span { display: none; }
  .reference-runtime { grid-template-columns: 1fr 1fr; gap: 12px; }
  .reference-runtime a { grid-column: 1 / -1; text-align: center; }
  .client-footer { display: none; }
  .mobile-bottom-nav { position: fixed; z-index: 35; left: 0; right: 0; bottom: 0; height: calc(64px + env(safe-area-inset-bottom)); padding: 5px 8px env(safe-area-inset-bottom); display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 1px solid #e3e6eb; background: rgba(255, 255, 255, .98); box-shadow: 0 -2px 10px rgba(30, 40, 60, .08); }
  .mobile-bottom-nav a, .mobile-bottom-nav button { min-width: 0; padding: 0; border: 0; display: grid; place-items: center; align-content: center; gap: 2px; background: transparent; color: #121820; font-size: 12px; }
  .mobile-bottom-nav b { width: 28px; height: 28px; display: grid; place-items: center; border: 2px solid currentColor; border-radius: 50%; font-size: 11px; }
  .mobile-bottom-nav a.active { color: #e84248; }
  .service-dock { position: fixed; right: 14px; bottom: calc(76px + env(safe-area-inset-bottom)); width: auto; min-width: 54px; margin: 0; border: 0; border-radius: 50%; box-shadow: 0 5px 18px rgba(31, 45, 65, .22); }
  .service-dock.mobile-secondary { display: none; }
  .service-dock button:first-child { width: 54px; height: 54px; min-height: 54px; padding: 0; border: 0; border-radius: 50%; background: #ef8b00; color: #fff; }
  .service-dock button:first-child > span:not(.service-status), .service-dock button:first-child > b { display: none; }
  .service-dock button:first-child::after { content: "询"; font-size: 17px; font-weight: 800; }
  .support-chat-panel { bottom: calc(72px + env(safe-area-inset-bottom)); }
  .filter-row.primary-row, .filter-row.secondary-row { grid-template-columns: 1fr; }
  .admin-top { height: 52px; min-height: 52px; flex-wrap: nowrap; padding: 0 12px; overflow: hidden; }
  .admin-breadcrumb { min-width: 0; flex: 1 1 auto; gap: 6px; overflow: hidden; font-size: 12px; white-space: nowrap; }
  .admin-breadcrumb span,
  .admin-breadcrumb b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .admin-breadcrumb span:first-child, .admin-breadcrumb i:first-of-type { display: none; }
  .admin-top-actions { width: auto; margin-left: auto; flex: 0 0 auto; }
  .admin-top-recharge { max-width: 84px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .top-icon-button { width: 30px; height: 30px; }
  .admin-content { padding: 12px; }
  .panel-head { align-items: stretch; flex-direction: column; gap: 10px; }
  .panel-head > .btn { align-self: flex-start; }
}

/* Built-in customer service. */
.service-status.offline { background: #a8afb8; box-shadow: 0 0 0 3px rgba(130, 140, 151, .12); }
.service-status.online { background: var(--green); box-shadow: 0 0 0 3px rgba(27, 127, 83, .12); }
.service-dock button > b { min-width: 18px; height: 18px; padding: 0 5px; display: inline-grid; place-items: center; border-radius: 9px; color: #fff; background: var(--red); font-size: 10px; }

.support-chat-panel {
  position: fixed;
  right: 126px;
  bottom: 20px;
  z-index: 38;
  width: 370px;
  height: min(560px, calc(100vh - 40px));
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto auto;
  overflow: hidden;
  border: 1px solid #d8dde3;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 16px 45px rgba(27, 36, 45, .2);
}
.support-chat-panel > header { min-height: 66px; padding: 12px 14px; display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #fff; background: #1769e0; }
.support-chat-panel > header > div { min-width: 0; display: flex; align-items: center; gap: 10px; }
.support-chat-panel > header strong, .support-chat-panel > header small { display: block; }
.support-chat-panel > header small { margin-top: 3px; color: rgba(255, 255, 255, .78); font-size: 11px; }
.support-chat-panel > header .service-status { border: 2px solid rgba(255, 255, 255, .8); box-shadow: none; }
.support-chat-panel > header button { width: 34px; height: 34px; flex: 0 0 34px; border: 0; color: #fff; background: rgba(0, 0, 0, .12); font-size: 22px; line-height: 1; }
.support-chat-messages, .support-thread-messages { min-height: 0; overflow-y: auto; overscroll-behavior: contain; background: #f4f6f8; }
.support-chat-messages { padding: 16px 14px; }
.support-chat-empty { min-height: 100%; padding: 28px 20px; display: grid; place-items: center; align-content: center; gap: 7px; color: #66727d; text-align: center; }
.support-chat-empty strong { color: #39434c; font-size: 14px; }
.support-chat-empty span { font-size: 12px; }
.support-message { max-width: 86%; margin-bottom: 14px; display: grid; gap: 4px; }
.support-message.own { margin-left: auto; justify-items: end; }
.support-message.other { margin-right: auto; justify-items: start; }
.support-message > div { display: flex; align-items: center; gap: 7px; color: #8a929a; font-size: 10px; }
.support-message > div b { color: #66717b; font-size: 11px; }
.support-message p { max-width: 100%; margin: 0; padding: 9px 11px; border: 1px solid #e0e4e8; border-radius: 5px; background: #fff; color: #323a42; line-height: 1.55; overflow-wrap: anywhere; white-space: pre-wrap; }
.support-message.own p { border-color: #1769e0; color: #fff; background: #1769e0; }
.support-chat-faq-bar { padding: 9px 12px; display: grid; gap: 7px; border-top: 1px solid #e8edf2; background: #fff; }
.support-chat-faq-bar > span { color: #7a8490; font-size: 11px; font-weight: 700; }
.support-chat-faq-bar > div { display: flex; gap: 7px; overflow-x: auto; scrollbar-width: thin; }
.support-chat-faq-bar button { min-height: 30px; max-width: 180px; flex: 0 0 auto; padding: 4px 10px; overflow: hidden; border: 1px solid #d8e5f6; border-radius: 15px; color: #1769e0; background: #f5f9ff; text-overflow: ellipsis; white-space: nowrap; }
.support-chat-compose, .support-reply-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 9px; align-items: end; padding: 11px 12px; border-top: 1px solid #e1e5e9; background: #fff; }
.support-chat-compose textarea, .support-reply-form textarea { width: 100%; min-width: 0; min-height: 64px; max-height: 130px; padding: 9px 10px; resize: vertical; border: 1px solid #d8dde3; border-radius: 4px; background: #fff; line-height: 1.5; }
.support-chat-compose button { min-width: 72px; min-height: 46px; padding: 0 14px; border: 0; border-radius: 4px; color: #fff; background: #1769e0; font-weight: 700; }
.support-chat-panel > footer { min-height: 34px; padding: 8px 12px; border-top: 1px solid #edf0f2; color: #8a929a; background: #fff; text-align: center; font-size: 11px; }
.support-chat-panel > footer a { margin-left: 5px; color: #1769e0; }
.support-contact-methods { display: flex; align-items: center; justify-content: center; gap: 8px; }
.support-contact-methods button { min-height: 28px; padding: 3px 9px; border: 1px solid #cfd9e8; border-radius: 4px; color: #1769e0; background: #f4f8fe; }

.admin-nav-unread { min-width: 18px; height: 18px; margin-left: auto; padding: 0 5px; display: inline-grid; place-items: center; border-radius: 9px; color: #fff; background: #e45656; font-size: 10px; }
.support-admin-panel { width: 100%; max-width: 100%; min-width: 0; min-height: 560px; height: calc(100vh - 108px); overflow: hidden; border: 1px solid #e2e5e9; background: #fff; }
.support-admin-toolbar { min-height: 67px; padding: 12px 18px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid #e6e9ed; }
.support-admin-toolbar > div:first-child { min-width: 0; flex: 1 1 auto; }
.support-admin-toolbar h2 { margin: 0; font-size: 17px; }
.support-admin-toolbar p { margin: 3px 0 0; color: #9097a0; font-size: 12px; }
.support-operator-control { display: flex; align-items: center; gap: 10px; color: #707780; font-size: 12px; }
.support-operator-toggle { min-width: 76px; height: 32px; padding: 0 11px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid #d5d9de; border-radius: 4px; color: #707780; background: #f7f8f9; }
.support-operator-toggle i { width: 8px; height: 8px; border-radius: 50%; background: #a6adb5; }
.support-operator-toggle.online { border-color: #9dd1b9; color: #167248; background: #edf8f3; }
.support-operator-toggle.online i { background: #1b8b58; }
.support-admin-workbench { width: 100%; max-width: 100%; min-width: 0; height: calc(100% - 67px); display: grid; grid-template-columns: 330px minmax(0, 1fr); overflow: hidden; }
.support-conversation-pane { min-width: 0; display: grid; grid-template-rows: auto auto minmax(0, 1fr); border-right: 1px solid #e5e8ec; background: #fff; }
.support-conversation-pane form { margin: 13px; display: grid; grid-template-columns: minmax(0, 1fr) 36px; border: 1px solid #dfe3e8; }
.support-conversation-pane form input { min-width: 0; height: 36px; padding: 0 10px; border: 0; outline: 0; }
.support-conversation-pane form button { width: 36px; border: 0; color: #6f7780; background: #f5f6f7; font-size: 18px; }
.support-conversation-pane nav { padding: 0 13px 11px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-bottom: 1px solid #eaedf0; }
.support-conversation-pane nav button { min-width: 0; height: 34px; padding: 0 5px; border: 0; border-bottom: 2px solid transparent; color: #676f78; background: #fff; font-size: 12px; white-space: nowrap; }
.support-conversation-pane nav button.active { color: #1769e0; border-bottom-color: #1769e0; }
.support-conversation-pane nav b { min-width: 16px; height: 16px; margin-left: 3px; padding: 0 4px; display: inline-grid; place-items: center; border-radius: 8px; color: #fff; background: #e45656; font-size: 9px; }
.support-conversation-list { min-height: 0; overflow-y: auto; }
.support-conversation { position: relative; width: 100%; min-height: 76px; padding: 12px 14px; display: grid; grid-template-columns: 38px minmax(0, 1fr); align-items: center; gap: 10px; border: 0; border-bottom: 1px solid #edf0f2; color: #3a424a; background: #fff; text-align: left; }
.support-conversation:hover, .support-conversation.active { background: #edf5ff; }
.support-conversation.active { box-shadow: inset 3px 0 #1769e0; }
.support-avatar { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; color: #1769e0; background: #deebff; font-weight: 700; }
.support-conversation-copy { min-width: 0; display: grid; gap: 6px; }
.support-conversation-copy > span { min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.support-conversation-copy strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.support-conversation-copy time { flex: 0 0 auto; color: #a0a6ad; font-size: 9px; }
.support-conversation-copy small { overflow: hidden; color: #858d95; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.support-unread { position: absolute; right: 10px; bottom: 8px; min-width: 18px; height: 18px; padding: 0 5px; display: grid; place-items: center; border-radius: 9px; color: #fff; background: #e45656; font-size: 10px; }
.support-list-empty { padding: 38px 15px; color: #9aa1a9; text-align: center; font-size: 12px; }
.support-thread-pane { width: 100%; max-width: 100%; min-width: 0; min-height: 0; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; overflow: hidden; background: #f6f7f8; }
.support-thread-head { width: 100%; max-width: 100%; min-width: 0; min-height: 64px; padding: 10px 16px; display: flex; align-items: center; justify-content: space-between; gap: 15px; overflow: hidden; border-bottom: 1px solid #e4e7eb; background: #fff; }
.support-thread-head > div { min-width: 0; }
.support-thread-head > div:first-child { flex: 1 1 auto; overflow: hidden; }
.support-thread-head > div:last-child { flex: 0 0 auto; }
.support-thread-head > div:first-child strong, .support-thread-head > div:first-child span { display: block; }
.support-thread-head > div:first-child span { margin-top: 3px; color: #9097a0; font-size: 11px; }
.support-thread-head > div:last-child { display: flex; align-items: center; gap: 9px; }
.support-thread-messages { width: 100%; max-width: 100%; padding: 18px 20px; }
.support-thread-messages .support-message { min-width: 0; max-width: 70%; }
.support-reply-form { width: 100%; max-width: 100%; min-width: 0; min-height: 132px; grid-template-columns: minmax(0, 1fr) 92px; gap: 12px; align-items: stretch; overflow: hidden; }
.support-reply-form textarea { width: 100%; max-width: 100%; min-height: 92px; resize: vertical; }
.support-send-button { min-width: 92px; height: 92px; padding: 0 18px; border: 0; border-radius: 6px; color: #fff; background: #1769e0; font-size: 17px; font-weight: 800; cursor: pointer; }
.support-send-button:hover { background: #0f5fcf; }
.support-status-link { padding: 0; border: 0; color: #7c8794; background: transparent; font-size: 12px; cursor: pointer; }
.support-status-link:hover { color: #1769e0; }
.support-reply-form.ended { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "input send" "note note"; }
.support-reply-form.ended textarea { grid-area: input; }
.support-reply-form.ended .support-send-button { grid-area: send; }
.support-reopen-note { grid-area: note; color: #909399; font-size: 12px; line-height: 1.4; }
.support-thread-placeholder { min-height: 100%; display: grid; place-items: center; align-content: center; gap: 7px; color: #9299a1; text-align: center; }
.support-thread-placeholder strong { color: #59626b; font-size: 15px; }
.support-thread-placeholder span { font-size: 12px; }

.member-api-page { display: grid; gap: 18px; }
.member-api-empty, .member-api-card, .member-api-guide { padding: 24px; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.member-api-empty { min-height: 230px; place-items: center; align-content: center; gap: 10px; text-align: center; }
.member-api-empty p { max-width: 620px; color: var(--muted); }
.member-api-card { display: grid; gap: 18px; }
.member-api-status, .member-api-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.member-api-status small { color: var(--muted); }
.member-api-card dl { margin: 0; display: grid; gap: 10px; }
.member-api-card dl > div { padding: 13px 14px; display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 12px; border: 1px solid #e3e7ec; background: #f8fafb; }
.member-api-card dt { color: var(--muted); }
.member-api-card dd { min-width: 0; margin: 0; display: flex; align-items: center; gap: 12px; }
.member-api-card code { min-width: 0; overflow-wrap: anywhere; }
.member-api-secret { padding: 15px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border: 1px solid #f0cc7b; background: #fff9e9; }
.member-api-secret > div { min-width: 0; display: grid; gap: 5px; }
.member-api-secret strong { overflow-wrap: anywhere; }
.member-api-secret small { color: #80631b; }
.member-api-secret.masked { border-color: #dfe4e8; background: #f7f8fa; }
.member-api-secret.masked small { color: var(--muted); }
.member-api-guide { display: grid; gap: 9px; }
.member-api-guide h2 { margin-bottom: 0; font-size: 19px; }
.member-api-guide > p { color: var(--muted); }
.member-api-guide > div { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 12px; padding: 9px 0; border-top: 1px solid #edf0f2; }
.support-settings-form .image-upload-field { grid-column: 1 / -1; }
.support-faq-editor-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.support-faq-edit-row { margin-top: 10px; padding: 12px; display: grid; grid-template-columns: minmax(180px, .8fr) minmax(260px, 1.4fr) 34px; gap: 10px; align-items: end; border: 1px solid var(--line); background: #f8fafc; }
.support-faq-edit-row .field { margin: 0; }
.support-faq-view { display: grid; gap: 10px; }
.support-faq-view details { padding: 12px 14px; border: 1px solid var(--line); border-radius: 5px; background: #fff; }
.support-faq-view summary { cursor: pointer; font-weight: 700; }
.support-faq-view p { margin: 10px 0 0; color: var(--muted); white-space: pre-wrap; line-height: 1.75; }

.purchase-login { margin-top: 18px; padding: 20px; border: 1px solid #e2e6ec; background: #f7f9fb; text-align: center; }
.purchase-login p { margin: 0 0 14px; color: #65707c; }
.purchase-login.unavailable { border-color: #f0d5a7; background: #fff9ee; }
.reference-partners { margin-top: 16px; }
.reference-partners .reference-category-head > span { color: #8c95a1; font-size: 13px; }
.partner-carousel { max-width: 100%; overflow: hidden; }
.partner-track { width: max-content; display: flex; animation: partner-carousel-scroll var(--partner-duration, 60s) linear infinite; animation-delay: var(--partner-delay, 0s); will-change: transform; }
.partner-carousel:hover .partner-track, .partner-carousel:focus-within .partner-track { animation-play-state: paused; }
.partner-set { padding-right: 8px; display: grid; grid-auto-flow: column; grid-auto-columns: 180px; grid-template-rows: repeat(2, 52px); gap: 8px; }
.partner-set > a, .partner-set > div { min-width: 0; height: 52px; padding: 8px 10px; display: flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid #e3e7ec; border-radius: 6px; background: #fff; color: #38414b; }
.partner-set > a:hover { border-color: #efb5b8; color: #d9474e; }
.partner-set img { width: 32px; height: 32px; flex: 0 0 auto; object-fit: contain; }
.partner-set span, .partner-set strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@keyframes partner-carousel-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .partner-track { animation: none; } }
.control-metrics.six { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.control-metrics.five { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.subject-list, .tracker-grid { display: grid; gap: 14px; }
.subject-list > article, .tracker-grid > article { min-width: 0; padding: 16px; border: 1px solid #dfe4ea; border-radius: 6px; background: #fafbfc; }
.subject-list article > header, .tracker-grid article > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.subject-list header > div:last-child, .tracker-grid header > div:last-child { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.subject-list h3, .tracker-grid h3 { margin: 7px 0 3px; font-size: 17px; }
.subject-list header p, .tracker-grid header p { margin: 0; color: #7b8590; }
.subject-workflow { margin: 0 0 14px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.subject-workflow > div { min-width: 0; padding: 12px 13px; display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 2px 9px; align-items: center; border: 1px solid #dde7f2; border-radius: 6px; background: #f7fbff; }
.subject-workflow b { width: 26px; height: 26px; display: inline-flex; align-items: center; justify-content: center; grid-row: span 2; border-radius: 50%; color: #fff; background: #2878d0; font-size: 13px; }
.subject-workflow span { min-width: 0; color: #25384c; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.subject-workflow small { min-width: 0; color: #708090; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.subject-operation-note { margin: -4px 0 14px; padding: 11px 14px; display: flex; align-items: flex-start; gap: 10px; border: 1px solid #dfe8f2; border-radius: 6px; background: #fbfdff; color: #536171; line-height: 1.6; }
.subject-operation-note strong { flex: 0 0 auto; color: #24384d; }
.subject-operation-note span { min-width: 0; }
.global-control-reminder { margin: 0 0 16px; padding: 13px 15px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border: 1px solid #cfe3d7; border-left: 4px solid #2c8b59; border-radius: 6px; background: #f2fbf6; color: #43584b; }
.global-control-reminder > div { min-width: 0; display: grid; gap: 4px; }
.global-control-reminder strong { color: #1f5338; font-size: 15px; }
.global-control-reminder span { line-height: 1.55; }
.global-control-reminder.warning { border-color: #ead59c; border-left-color: #c28712; background: #fff9e9; color: #755919; }
.global-control-reminder.warning strong { color: #805d0b; }
.global-control-reminder.critical { border-color: #efb8b8; border-left-color: #cf4545; background: #fff2f2; color: #833838; }
.global-control-reminder.critical strong { color: #a52e2e; }
.global-control-reminder .btn { flex: 0 0 auto; }
.global-control-panel { align-items: center; }
.global-control-panel strong { max-width: 36%; }
.subject-current-step { margin: 12px 0 10px; padding: 10px 12px; display: flex; gap: 10px; align-items: flex-start; border: 1px solid #cfe0f4; border-left: 4px solid #2878d0; border-radius: 6px; background: #f5f9ff; color: #33465c; line-height: 1.55; }
.subject-current-step strong { flex: 0 0 auto; color: #175da8; }
.subject-current-step span { min-width: 0; }
.subject-step-row { margin: 0 0 12px; display: flex; flex-wrap: wrap; gap: 8px; }
.subject-step { min-height: 30px; padding: 5px 10px 5px 6px; display: inline-flex; align-items: center; gap: 6px; border: 1px solid #dfe6ef; border-radius: 999px; color: #68788a; background: #fff; font-size: 12px; font-weight: 700; }
.subject-step b { width: 20px; height: 20px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: #dfe7f2; color: #536273; font-size: 11px; }
.subject-step.done { border-color: #c7ead8; color: #1f7a4d; background: #f1fbf6; }
.subject-step.done b { background: #28a264; color: #fff; }
.subject-step.current { border-color: #b9d2f1; color: #175da8; background: #eef6ff; }
.subject-step.current b { background: #2878d0; color: #fff; }
.subject-step.locked { color: #97a2ae; background: #f8fafc; }
.subject-redirect-alert { margin: 0 0 14px; padding: 13px 14px; display: flex; align-items: center; justify-content: space-between; gap: 14px; border: 1px solid #f3b8b8; border-left: 4px solid #d64f4f; border-radius: 6px; background: #fff4f4; color: #7b2d2d; line-height: 1.6; }
.subject-redirect-alert strong { display: block; color: #9b2d2d; font-size: 15px; }
.subject-redirect-alert p { margin: 4px 0 0; }
.subject-redirect-alert b { color: #24384d; overflow-wrap: anywhere; }
.subject-redirect-alert .btn { flex: 0 0 auto; }
.subject-meta { margin: 14px 0; display: flex; flex-wrap: wrap; gap: 8px 18px; color: #65717d; font-size: 12px; }
.subject-oauth-guide { padding: 15px 17px; border: 1px solid #b8d7f5; border-left: 4px solid #2878d0; border-radius: 6px; background: #f3f8fd; }
.subject-oauth-guide strong { display: block; margin-bottom: 6px; color: #175da8; font-size: 15px; }
.subject-oauth-guide p { margin: 0 0 5px; line-height: 1.65; color: #2c3d50; }
.subject-oauth-guide span { color: #637385; font-size: 12px; }
.subject-simple-form { gap: 12px; }
.subject-form-section { padding-bottom: 14px; display: grid; gap: 12px; border-bottom: 1px solid #e6eaf0; }
.subject-form-section-head { display: flex; align-items: center; gap: 10px; }
.subject-form-section-head > b { width: 26px; height: 26px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; color: #fff; background: #2878d0; font-size: 13px; }
.subject-form-section-head > div { min-width: 0; display: grid; gap: 2px; }
.subject-form-section-head strong { color: #263748; font-size: 15px; }
.subject-form-section-head small { color: #7a8794; line-height: 1.45; }
.subject-form-fields { gap: 10px 12px; }
.subject-credential-ready { padding: 10px 12px; display: flex; align-items: center; gap: 9px; border-left: 3px solid #2b9964; background: #f3faf6; color: #52675a; }
.subject-credential-ready span { color: #1e754a; font-weight: 700; }
.subject-credential-ready small { color: #66776d; }
.subject-token-editor, .subject-form-options { border: 1px solid #dfe5ec; border-radius: 6px; background: #fafbfd; }
.subject-token-editor summary, .subject-form-options summary { padding: 11px 13px; cursor: pointer; color: #445465; font-weight: 700; }
.subject-token-editor[open] summary, .subject-form-options[open] summary { border-bottom: 1px solid #e3e8ee; }
.subject-token-editor > .form-grid { padding: 12px; gap: 10px; }
.subject-form-options > .checkbox-field { margin: 12px 12px 4px; }
.subject-form-options > small { margin: 0 12px 12px; display: block; color: #7b8793; }
.subject-shared-credential-option { margin: 12px 0; padding: 10px 12px; border: 1px solid #ead9a8; background: #fffaf0; color: #6d5727; }
.subject-simple-form > .modal-actions { position: sticky; bottom: -20px; z-index: 1; margin: 0 -20px -20px; padding: 12px 20px; border-top: 1px solid #e6eaf0; background: #fff; }
.technical-token-fields { border: 1px solid #dfe4ea; border-radius: 6px; background: #fafbfc; }
.technical-token-fields summary { padding: 12px 14px; cursor: pointer; color: #5b6876; font-weight: 700; }
.technical-token-fields[open] summary { border-bottom: 1px solid #e4e8ed; }
.technical-token-fields > .form-grid { padding: 14px; }
.tracker-quick-guide, .tracker-order-note { padding: 14px 16px; display: grid; gap: 5px; border-radius: 6px; }
.tracker-quick-guide { border: 1px solid #b9d8c8; border-left: 4px solid #168354; background: #f2faf6; }
.tracker-quick-guide strong { color: #126743; font-size: 15px; }
.tracker-quick-guide span, .tracker-order-note span { color: #5f6d68; font-size: 13px; line-height: 1.65; }
.tracker-order-note { border: 1px solid #d9e2ec; background: #f7f9fb; }
.tracker-order-note strong { color: #344556; }
.tracker-simple-form textarea { min-height: 92px; resize: vertical; line-height: 1.6; }
.tracker-technical-settings { margin-top: 2px; }
.tracker-technical-settings summary { list-style-position: inside; }
.inline-error { margin: 10px 0; padding: 9px 11px; border-left: 3px solid #d64f4f; color: #a33b3b; background: #fff2f2; overflow-wrap: anywhere; }
.tracker-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tracker-grid article > footer { margin-top: 12px; display: flex; justify-content: space-between; gap: 12px; color: #6f7984; font-size: 12px; }
.admin-stack { display: grid; gap: 16px; }
.plain-note { display: grid; gap: 8px; padding: 4px 0; color: var(--muted); line-height: 1.7; }
.plain-note p { margin: 0; }
.tracker-secondary-metrics { margin: 12px 0 4px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.tracker-secondary-metrics span { min-width: 0; padding: 9px 11px; display: flex; align-items: center; justify-content: space-between; gap: 8px; border: 1px solid #e1e6eb; border-radius: 5px; color: #69747f; background: #fff; font-size: 12px; }
.tracker-secondary-metrics b { color: #26313c; font-size: 15px; }
.tracker-onboarding { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 24px; }
.tracker-onboarding h2 { margin: 0 0 7px; font-size: 20px; }
.tracker-onboarding p { margin: 0; color: #65717d; line-height: 1.65; }
.tracker-onboarding ol { margin: 0; padding: 0; display: flex; gap: 18px; list-style: none; }
.tracker-onboarding li { min-width: 112px; display: grid; grid-template-columns: 26px minmax(0, 1fr); align-items: center; gap: 8px; color: #52606d; font-size: 12px; }
.tracker-onboarding li b { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: #3e6f9f; }
.monitoring-summary { min-height: 78px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid #dfe4ea; background: #fff; }
.monitoring-summary > div { padding: 13px 20px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-right: 1px solid #e5e9ed; }
.monitoring-summary > div:last-child { border-right: 0; }
.monitoring-summary span { color: #697580; font-size: 13px; }
.monitoring-summary strong { color: #25313c; font-size: 25px; }
.monitoring-summary .has-warning strong { color: #b75027; }
.tracker-grid.simplified { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tracker-grid.simplified > article { padding: 18px; background: #fff; }
.tracker-grid.simplified > article.has-error { border-color: #dfb27f; }
.tracker-grid.simplified article > header > div:first-child { min-width: 0; }
.tracker-kind { margin-left: 8px; color: #647280; font-size: 12px; font-weight: 700; }
.tracker-card header p { max-width: 100%; display: flex; align-items: center; gap: 10px; overflow: hidden; }
.tracker-card header p::first-line { text-overflow: ellipsis; }
.tracker-card header p a { flex: 0 0 auto; color: #2467ad; font-size: 12px; }
.tracker-card-actions {
  flex: 0 0 auto;
  min-width: 264px;
  display: grid !important;
  grid-template-columns: 128px 72px 72px;
  align-items: start;
  justify-content: end !important;
  gap: 7px;
}
.tracker-card-actions .btn { min-height: 34px; padding-left: 12px; padding-right: 12px; white-space: nowrap; }
.tracker-primary-data { margin-top: 17px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid #dfe5eb; }
.tracker-primary-data > div { min-width: 0; padding: 12px; border-right: 1px solid #e4e8ec; background: #f8fafb; }
.tracker-primary-data > div:last-child { border-right: 0; }
.tracker-primary-data span, .tracker-primary-data strong { display: block; }
.tracker-primary-data span { color: #6d7984; font-size: 12px; }
.tracker-primary-data strong { margin-top: 5px; overflow-wrap: anywhere; color: #202c37; font-size: 20px; }
.tracker-no-orders { margin-top: 12px; padding: 9px 11px; color: #6a7580; background: #f5f7f9; font-size: 12px; }
.tracker-error-help { margin-top: 12px; padding: 11px 13px; border-left: 4px solid #c26c32; background: #fff7ee; }
.tracker-error-help > strong { display: block; color: #994f22; font-size: 13px; }
.tracker-error-help details { margin-top: 7px; color: #7a6658; font-size: 12px; }
.tracker-error-help summary { cursor: pointer; }
.tracker-error-help p { margin: 7px 0 0; overflow-wrap: anywhere; line-height: 1.55; }
.tracker-empty { grid-column: 1 / -1; min-height: 210px; display: grid; place-items: center; align-content: center; gap: 10px; border: 1px dashed #cfd7df; background: #fafbfc; text-align: center; }
.tracker-empty strong { font-size: 18px; }
.tracker-empty p { margin: 0; color: #6b7681; }
.tracker-table { min-width: 1450px; }
.tracker-table th, .tracker-table td { height: 54px; padding: 7px 9px; vertical-align: middle; }
.tracker-table th:first-child, .tracker-table td:first-child { width: 44px; min-width: 44px; max-width: 44px; text-align: center; }
.tracker-table td:nth-child(2) { min-width: 96px; }
.tracker-table td:nth-child(3) { min-width: 125px; }
.tracker-target-cell { min-width: 230px; max-width: 310px; }
.tracker-target-cell > b, .tracker-target-cell > small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tracker-target-cell a { margin-left: 6px; color: #1769e0; }
.tracker-inline-metrics { min-width: 245px; display: flex; flex-wrap: wrap; gap: 4px 10px; }
.tracker-inline-metrics b { color: #475569; font-size: 12px; white-space: nowrap; }
.tracker-table-actions { min-width: 205px; flex-wrap: nowrap; }
.tracker-table-actions button { white-space: nowrap; }
.tracker-row-error-state td { background: #fffdf8; }
.tracker-row-error { max-width: 290px; margin-top: 3px; display: block; overflow: hidden; color: #a65522; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }

@media (max-width: 980px) {
  .partner-set { grid-auto-columns: 160px; }
  .control-metrics.six, .control-metrics.five { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tracker-grid { grid-template-columns: 1fr; }
  .tracker-onboarding { grid-template-columns: 1fr auto; }
  .tracker-onboarding ol { grid-column: 1 / -1; grid-row: 2; }
  .tracker-grid.simplified { grid-template-columns: 1fr; }
  .service-dock > .service-dock-actions { display: grid; }
  .service-dock-actions > button { display: none; }
  .service-dock-actions > button:first-child { display: flex; }
  .service-qr-popover { display: none; }
  .support-chat-panel { right: 12px; bottom: 76px; height: min(560px, calc(100vh - 98px)); }
  .support-admin-panel { height: calc(100vh - 90px); }
  .support-admin-workbench { grid-template-columns: 290px minmax(0, 1fr); }
}

@media (max-width: 700px) {
  .reference-partners { margin-top: 12px; }
  .reference-partners .reference-category-head > span { font-size: 11px; }
  .partner-set { grid-auto-columns: 142px; }
  .control-metrics.six, .control-metrics.five { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .subject-workflow { grid-template-columns: 1fr; }
  .global-control-reminder, .global-control-panel, .admin-recharge-alert { align-items: stretch; flex-direction: column; }
  .admin-top-recharge { padding: 0 8px; }
  .global-control-panel strong { max-width: none; }
  .subject-redirect-alert { align-items: stretch; flex-direction: column; }
  .subject-list article > header, .tracker-grid article > header { flex-direction: column; }
  .subject-list header > div:last-child, .tracker-grid header > div:last-child { justify-content: flex-start; }
  .tracker-secondary-metrics { grid-template-columns: 1fr; }
  .tracker-onboarding { grid-template-columns: 1fr; }
  .tracker-onboarding ol { grid-column: auto; grid-row: auto; display: grid; grid-template-columns: 1fr; gap: 8px; }
  .tracker-onboarding .btn { width: 100%; }
  .monitoring-summary { grid-template-columns: 1fr; }
  .monitoring-summary > div { border-right: 0; border-bottom: 1px solid #e5e9ed; }
  .monitoring-summary > div:last-child { border-bottom: 0; }
  .tracker-card-actions { width: 100%; min-width: 0; grid-template-columns: 128px 72px 72px; justify-content: flex-start !important; }
  .tracker-primary-data { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tracker-primary-data > div:nth-child(2) { border-right: 0; }
  .tracker-primary-data > div:nth-child(-n+2) { border-bottom: 1px solid #e4e8ec; }
  .support-chat-panel { right: 10px; bottom: 74px; width: calc(100% - 20px); height: min(540px, calc(100vh - 94px)); }
  .support-admin-panel { height: auto; min-height: calc(100vh - 78px); overflow: visible; }
  .support-admin-toolbar { align-items: flex-start; }
  .support-admin-workbench { height: auto; min-height: calc(100vh - 145px); grid-template-columns: 1fr; grid-template-rows: minmax(260px, 42vh) minmax(420px, 58vh); }
  .support-conversation-pane { border-right: 0; border-bottom: 1px solid #e5e8ec; }
  .support-thread-messages .support-message { max-width: 88%; }
  .support-thread-head { align-items: flex-start; }
  .support-thread-head > div:last-child { align-items: flex-end; flex-direction: column; }
  .support-faq-edit-row, .docking-direction-guide { grid-template-columns: 1fr; }
  .support-faq-edit-row > .icon-btn { justify-self: end; }
  .member-order-filter { align-items: stretch; flex-direction: column; }
  .member-order-filter > span { margin-right: 0; }
}

@media (max-width: 640px) {
  .category-product-assignment-tools, .category-product-assignment-list { grid-template-columns: 1fr; }
  .category-product-assignment-row:nth-child(odd) { border-right: 0; }
  .mobile-home-tools { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 14px; }
  .mobile-home-tools a:nth-child(5) b { background: #7a74d5; }
  .mobile-home-tools a:nth-child(6) b { background: #e85a77; }
  .service-dock > :not(:first-child) { display: grid; }
  .service-dock-actions { border-radius: 50%; }
  .member-api-empty, .member-api-card, .member-api-guide { padding: 17px; }
  .member-api-status, .member-api-actions, .member-api-secret { align-items: stretch; flex-direction: column; }
  .member-api-card dl > div, .member-api-guide > div { grid-template-columns: 1fr; gap: 5px; }
  .member-api-card dd { align-items: flex-start; flex-direction: column; }
  .support-contact-methods { flex-wrap: wrap; }
  .support-setting-previews, .balance-confirm-summary { grid-template-columns: 1fr; }
  .subject-simple-form > .modal-actions {
    position: static;
    bottom: auto;
    margin: 0 -20px;
    flex-wrap: nowrap;
  }
  .subject-simple-form > .modal-actions .btn { min-width: 0; padding-inline: 8px; white-space: nowrap; }
  .subject-simple-form > .modal-actions .primary { order: initial; flex: 1.4 1 0; }
  .subject-simple-form > .modal-actions .btn:not(.primary) { flex: 1 1 0; }
}

/* 20260724 support workbench fixed-height layout */
.support-admin-panel {
  height: calc(100vh - 108px) !important;
  max-height: calc(100vh - 108px) !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
}
.support-admin-toolbar { flex: 0 0 auto !important; }
.support-admin-workbench {
  flex: 1 1 auto !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: 100% !important;
  display: grid !important;
  grid-template-columns: 330px minmax(0, 1fr) !important;
  overflow: hidden !important;
}
.support-conversation-pane {
  height: 100% !important;
  min-height: 0 !important;
  overflow: hidden !important;
}
.support-conversation-list {
  height: 100% !important;
  min-height: 0 !important;
  overflow-y: auto !important;
  overscroll-behavior: contain !important;
  scrollbar-width: thin;
}
.support-conversation.active {
  background: #edf5ff !important;
  box-shadow: inset 4px 0 #1769e0 !important;
}
.support-thread-pane {
  height: 100% !important;
  max-height: 100% !important;
  min-height: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
}
.support-thread-head { flex: 0 0 auto !important; }
.support-thread-messages {
  flex: 1 1 auto !important;
  height: auto !important;
  min-height: 0 !important;
  overflow-y: auto !important;
  padding-bottom: 18px !important;
}
.support-reply-form {
  position: static !important;
  flex: 0 0 auto !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  z-index: 1 !important;
}

.douyin-source-test .inline-form-row {
  display: grid;
  grid-template-columns: 160px minmax(220px, 1fr) auto;
  gap: 10px;
  align-items: center;
}
.source-test-result { margin-top: 10px; }
.source-test-success,
.source-test-error {
  border-radius: 6px;
  padding: 10px 12px;
}
.source-test-success {
  background: #eefaf4;
  border: 1px solid #b8e8cb;
  color: #166534;
}
.source-test-success p {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin: 6px 0;
}
.source-test-error {
  background: #fff1f2;
  border: 1px solid #fecdd3;
  color: #be123c;
}

@media (max-width: 760px) {
  .douyin-source-test .inline-form-row { grid-template-columns: 1fr; }
}

.stop-ratio-panel .notice-bar {
  margin-bottom: 16px;
  border-left: 3px solid #2f7de1;
  background: #f4f8fd;
  color: #42536a;
  padding: 11px 14px;
}
.stop-ratio-table input {
  box-sizing: border-box;
  width: 100%;
  min-width: 110px;
  height: 38px;
  border: 1px solid #d8e0ea;
  padding: 0 10px;
}
.stop-ratio-panel .form-actions {
  display: flex;
  justify-content: flex-end;
  padding-top: 16px;
}
.discovery-errors {
  margin: 0 0 16px;
  border: 1px solid #f0c8c8;
  background: #fff7f7;
  padding: 12px 14px;
}
.discovery-errors h3 { margin: 0 0 8px; font-size: 15px; }
.discovery-errors p {
  display: flex;
  gap: 12px;
  margin: 6px 0;
  color: #a23b3b;
}
.discovery-errors b { min-width: 120px; color: #6f2c2c; }
