/* Inter supplies Latin text and numbers; Chinese uses the system sans-serif. */
@font-face {
  font-family: "Inter";
  src: url("assets/fonts/InterVariable.woff2?v=1") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

/* Unified visual layer for the storefront, account center, dialogs, and admin tools. */
:root {
  --ui-bg: #130f16;
  --ui-bg-deep: #0e0b11;
  --ui-panel: rgba(25, 18, 29, 0.9);
  --ui-panel-soft: rgba(255, 245, 250, 0.045);
  --ui-panel-strong: rgba(34, 23, 39, 0.96);
  --ui-border: rgba(255, 232, 245, 0.17);
  --ui-border-strong: rgba(244, 164, 195, 0.48);
  --ui-text: #fff8fc;
  --ui-muted: #c7b8c4;
  --ui-subtle: #a792a2;
  --ui-accent: #e98db3;
  --ui-accent-bright: #f3b0ca;
  --ui-accent-soft: rgba(219, 102, 151, 0.16);
  --ui-gold: #e5c77d;
  --ui-success: #a8e0c4;
  --ui-shadow: 0 18px 48px rgba(5, 2, 8, 0.3);
}

html { background: var(--ui-bg-deep); scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body,
body:not(.auth-page-open),
body.auth-page-open {
  min-width: 0;
  color: var(--ui-text);
  background-color: var(--ui-bg);
  background-image:
    linear-gradient(180deg, rgba(14, 10, 16, 0.54), rgba(19, 13, 22, 0.72)),
    url("assets/shanqiu-background-clean.jpg");
  background-position: center top;
  background-size: cover;
  background-attachment: fixed;
}

body::selection { background: rgba(235, 141, 179, 0.35); color: #fff; }

.account-card:not(.signed-in) {
  background: rgba(24, 17, 29, 0.94);
  box-shadow: var(--ui-shadow);
}
.account-card:not(.signed-in) h1 { color: var(--ui-text); }
.account-card:not(.signed-in) .account-lede,
.account-card:not(.signed-in) .field-hint,
.account-card:not(.signed-in) .account-switch { color: var(--ui-muted); }
.account-card:not(.signed-in) .account-form input:not([type="checkbox"]) {
  border-color: var(--ui-border);
  border-radius: 7px;
  background: rgba(255, 245, 250, 0.065);
  color: var(--ui-text);
  color-scheme: dark;
}
.account-card:not(.signed-in) .account-form input:focus-visible {
  border-color: var(--ui-border-strong);
  outline-color: rgba(233, 141, 179, 0.2);
}
.account-card:not(.signed-in) .text-button { color: var(--ui-accent-bright); }
.account-card:not(.signed-in) .account-feedback { color: #ffc0d3; }
.account-card:not(.signed-in) .account-submit { background: var(--ui-accent); color: #2b1723; }
.account-card:not(.signed-in) .account-submit:hover { background: var(--ui-accent-bright); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 72px;
  padding: 0 max(24px, calc((100vw - 1180px) / 2));
  grid-template-columns: auto minmax(190px, 1fr) minmax(210px, 290px) auto;
  gap: 26px;
  border-bottom: 1px solid var(--ui-border);
  background: rgba(17, 12, 21, 0.84);
  box-shadow: 0 6px 24px rgba(5, 2, 8, 0.2);
  backdrop-filter: blur(18px);
}

.brand { gap: 11px; }
.brand-mark,
.account-brand {
  border: 1px solid rgba(255, 225, 239, 0.36);
  border-radius: 9px;
  background: #a64d77;
  box-shadow: 0 8px 22px rgba(166, 77, 119, 0.28);
}
.brand-mark { width: 46px; height: 38px; font-size: 17px; }
.brand-divider { background: rgba(255, 238, 247, 0.32); }
.brand-domain { color: var(--ui-text); font-size: 15px; letter-spacing: 0.1px; }

.main-nav { justify-content: center; gap: 34px; color: var(--ui-muted); }
.main-nav a { position: relative; font-weight: 600; }
.main-nav a::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  background: var(--ui-accent);
  content: "";
  opacity: 0;
  transform: scaleX(0.5);
  transition: opacity 160ms ease, transform 160ms ease;
}
.main-nav a:hover,
.main-nav a.active { color: var(--ui-accent-bright); }
.main-nav a.active::after { opacity: 1; transform: scaleX(1); }

.header-search input {
  min-height: 40px;
  border: 1px solid var(--ui-border);
  border-radius: 999px;
  background: rgba(255, 245, 250, 0.055);
  color: var(--ui-text);
  font-size: 13px;
}
.header-search input::placeholder { color: var(--ui-subtle); }
.header-search input:focus-visible { border-color: var(--ui-border-strong); box-shadow: 0 0 0 3px rgba(233, 141, 179, 0.12); }
.account-button {
  min-height: 40px;
  border-color: var(--ui-border);
  border-radius: 7px;
  background: rgba(255, 245, 250, 0.055);
  color: var(--ui-text);
}
.account-button:hover,
.account-button:focus-visible { border-color: var(--ui-border-strong); background: var(--ui-accent-soft); }

.home-shell { width: min(1180px, calc(100% - 48px)); padding: 28px 0 56px; }
.home-announcement,
.home-info-panel,
.plan-card,
.account-profile,
.account-sidebar,
.account-content {
  border: 1px solid var(--ui-border);
  border-radius: 8px;
  background: var(--ui-panel);
  box-shadow: var(--ui-shadow);
  backdrop-filter: blur(16px);
}
.home-announcement { overflow: hidden; }
.home-section-heading,
.home-panel-heading {
  min-height: 58px;
  border-bottom: 1px solid rgba(255, 232, 245, 0.11);
  background: rgba(255, 245, 250, 0.035);
}
.home-section-heading { padding: 0 20px; }
.home-panel-heading { padding: 10px 20px; }
.home-heading-icon { color: var(--ui-accent-bright); }
.home-section-heading h1,
.home-panel-heading h2 { color: var(--ui-text); font-size: 16px; letter-spacing: 0; }
.home-announcement-copy { padding: 18px 20px 16px; white-space: pre-wrap; overflow-wrap: anywhere; }
.home-announcement-copy p,
.announcement-rules li { color: #f3e6ee; font-size: 13px; line-height: 1.72; }
.home-announcement-copy p { margin-bottom: 8px; }
.announcement-rules li { margin: 5px 0; }
.announcement-rules li::before { background: #3988e8; }
.admin-announcement-section .admin-section-content { display: grid; gap: 14px; padding: 0; }
.admin-announcement-intro { margin: 0; color: #9aa3b2; font-size: 13px; }
.admin-announcement-form { margin: 0; }
.admin-announcement-heading-editor {
  box-sizing: border-box;
  width: 100%;
  min-height: 44px;
  padding: 11px 12px;
  border: 1px solid var(--ui-border);
  border-radius: 7px;
  background: rgba(10, 14, 24, 0.7);
  color: var(--ui-text);
  font: inherit;
  font-size: 15px;
  line-height: 1.45;
  outline: none;
  overflow-wrap: anywhere;
}
.admin-announcement-heading-editor:focus { border-color: var(--ui-border-strong); outline: 2px solid rgba(233, 141, 179, 0.16); outline-offset: 1px; }
.admin-announcement-heading-editor:empty::before { color: #8b93a3; content: attr(data-placeholder); pointer-events: none; }
.admin-announcement-form fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.admin-announcement-form fieldset:disabled { opacity: 0.6; }
.admin-announcement-layout { display: grid; grid-template-columns: minmax(220px, 1.05fr) minmax(220px, 1fr); gap: 18px; align-items: start; }
.admin-announcement-editor { display: grid; gap: 9px; min-width: 0; padding: 16px; border: 1px solid rgba(255, 232, 245, 0.12); border-radius: 12px; background: rgba(10, 14, 24, 0.26); }
.admin-announcement-editor label,
.admin-announcement-label label { font-size: 13px; color: #c7cddb; }
.admin-announcement-editor input,
.admin-announcement-editor textarea,
.admin-announcement-content-editor { box-sizing: border-box; width: 100%; border-radius: 9px; border: 1px solid rgba(255, 255, 255, 0.16); background: rgba(10, 14, 24, 0.7); color: #f3f5f9; font-size: 14px; padding: 11px 12px; }
.admin-announcement-editor input { min-height: 44px; }
.admin-announcement-editor textarea { min-height: 300px; line-height: 1.65; }
.admin-announcement-toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 2px; }
.announcement-format-button,
.announcement-color-control { min-height: 34px; border: 1px solid rgba(255, 232, 245, 0.16); border-radius: 8px; background: rgba(255,255,255,.05); color: var(--ui-muted); font-size: 12px; }
.announcement-format-button { padding: 0 11px; cursor: pointer; }
.announcement-format-button:hover { border-color: var(--ui-border-strong); background: var(--ui-accent-soft); color: var(--ui-text); }
.announcement-color-control { display: inline-flex; align-items: center; gap: 7px; padding: 0 8px; }
.announcement-color-control input { width: 24px; height: 24px; min-height: 0; padding: 0; border: 0; background: transparent; cursor: pointer; }
.admin-announcement-content-editor { min-height: 300px; line-height: 1.8; white-space: pre-wrap; overflow-wrap: anywhere; outline: none; overflow-y: auto; }
.admin-announcement-content-editor:focus { outline: 2px solid rgba(57,136,232,.65); outline-offset: 1px; }
.admin-announcement-content-editor:empty::before { color: #8b93a3; content: attr(data-placeholder); pointer-events: none; }
.admin-announcement-content-editor p { margin: 0 0 12px; }
.admin-announcement-content-editor ol,
.admin-announcement-preview-content ol { margin: 8px 0 14px; padding-left: 24px; }
.admin-announcement-preview-content { white-space: pre-wrap; overflow-wrap: anywhere; }
.admin-announcement-preview-content p { margin: 0 0 12px; }
.admin-announcement-editor input:focus,
.admin-announcement-editor textarea:focus,
.admin-announcement-content-editor:focus { outline: 2px solid rgba(57, 136, 232, 0.65); outline-offset: 1px; }
.admin-announcement-label { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.admin-announcement-label span { font-size: 12px; color: #8b93a3; }
.admin-announcement-actions { display: flex; align-items: center; gap: 12px; margin-top: 4px; }
.admin-announcement-actions span { font-size: 12px; color: #8b93a3; }
.admin-announcement-preview { min-width: 0; min-height: 388px; margin: 0; border-radius: 14px; border: 1px solid rgba(255, 255, 255, 0.14); background: linear-gradient(160deg, rgba(28, 20, 40, 0.92), rgba(15, 16, 30, 0.94)); padding: 18px 20px; }
.admin-announcement-preview-label { margin: 0 0 6px; font-size: 12px; letter-spacing: 0.08em; color: #8b93a3; text-transform: uppercase; }
.admin-announcement-preview h2 { margin: 0 0 10px; color: #ffffff; font-size: 24px; line-height: 1.25; }
.admin-announcement-preview .home-announcement-copy { padding: 0; }
.admin-announcement-feedback.is-error { color: #ff8a8a; }
.account-feedback { margin: 10px 0 0; }
@media (max-width: 560px) {
  .admin-announcement-layout { grid-template-columns: 1fr; }
}

.home-info-grid { gap: 16px; margin-top: 16px; }
.home-info-panel { min-height: 270px; }
.home-panel-link { color: var(--ui-accent-bright); font-size: 12px; }
.public-order-stats { gap: 11px; padding: 15px 20px 12px; }
.public-order-stats article {
  padding: 13px 14px;
  border: 1px solid rgba(255, 232, 245, 0.11);
  border-radius: 7px;
  background: var(--ui-panel-soft);
}
.public-order-stats span { color: var(--ui-subtle); font-size: 11px; }
.public-order-stats strong { color: var(--ui-accent-bright); font-size: 24px; }
.public-feed-heading { padding: 4px 20px 8px; }
.public-feed-heading strong { color: var(--ui-text); font-size: 12px; }
.public-feed-heading span { color: var(--ui-subtle); font-size: 11px; }
.public-feed-window { padding: 0 20px 12px; }
.public-feed-row { border-color: rgba(255, 232, 245, 0.1); }
.public-feed-buyer { color: var(--ui-accent-bright); }
.public-feed-product { color: var(--ui-muted); }

.service-list { padding: 8px 20px 14px; }
.service-list article { grid-template-columns: 38px minmax(0, 1fr); gap: 13px; padding: 15px 0; border-color: rgba(255, 232, 245, 0.1); }
.service-step {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid rgba(233, 141, 179, 0.34);
  border-radius: 7px;
  background: var(--ui-accent-soft);
  color: var(--ui-accent-bright);
  font-size: 11px;
  font-weight: 700;
}
.service-list h3 { color: var(--ui-text); font-size: 13px; }
.service-list p { color: var(--ui-muted); font-size: 12px; line-height: 1.65; }

.catalog { padding: 54px 0 0; }
.catalog-heading { margin-bottom: 22px; }
.catalog-heading h2 { color: var(--ui-text); font-size: 29px; }
.catalog-heading .lede { color: var(--ui-muted); font-size: 13px; }
.catalog-tools { min-height: 44px; margin-bottom: 15px; }
.catalog-filter {
  min-height: 34px;
  border-color: var(--ui-border);
  border-radius: 999px;
  background: rgba(25, 18, 29, 0.72);
  color: var(--ui-muted);
  font-size: 12px;
}
.catalog-filter:hover { border-color: var(--ui-border-strong); color: var(--ui-text); }
.catalog-filter.active { border-color: var(--ui-border-strong); background: var(--ui-accent-soft); color: var(--ui-accent-bright); }
.catalog-count { color: var(--ui-subtle); font-size: 11px; }
.plan-grid { gap: 16px; }
.plan-card {
  min-height: 346px;
  padding: 0 17px 17px;
  border-radius: 8px;
  background: rgba(25, 18, 29, 0.9);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}
.plan-card:hover { border-color: var(--ui-border-strong); box-shadow: 0 20px 48px rgba(5, 2, 8, 0.4); transform: translateY(-3px); }
.plan-card.selected { border-color: var(--ui-accent); box-shadow: 0 0 0 1px rgba(233, 141, 179, 0.22), 0 20px 48px rgba(5, 2, 8, 0.38); }
.plan-art {
  min-height: 192px;
  margin: 0 -17px 16px;
  border-bottom: 1px solid rgba(255, 232, 245, 0.1);
  background: rgba(255, 245, 250, 0.04) !important;
}
.plan-art:hover { background: rgba(233, 141, 179, 0.08) !important; transform: none; }
.plan-gpt-icon { width: min(58%, 148px); filter: drop-shadow(0 10px 20px rgba(224, 120, 167, 0.18)); }
.plan-card h3 { margin-bottom: 8px; color: var(--ui-text); font-size: 15px; }
.plan-card h3.plan-title-plus { font-size: 13px !important; line-height: 1.38; white-space: nowrap; }
.plan-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.plan-manual-note { min-height: 22px; align-items: center; color: #8b6a23; font-size: 11px; font-weight: 600; line-height: 1.4; }
.plan-tag {
  display: inline-flex;
  min-height: 22px;
  align-items: center;
  padding: 0 7px;
  border: 1px solid rgba(255, 232, 245, 0.14);
  border-radius: 999px;
  background: rgba(255, 245, 250, 0.045);
  color: var(--ui-muted);
  font-size: 10px;
}
.plan-tag:first-child { border-color: rgba(168, 224, 196, 0.28); color: var(--ui-success); }
.plan-manual-note .plan-tag:first-child {
  border-color: rgba(231, 203, 130, 0.38);
  background: rgba(231, 203, 130, 0.1);
  color: #f0dca7;
}
.price-row { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding-top: 22px; }
.price-amount { display: inline-flex; align-items: baseline; gap: 4px; min-width: 0; }
.plan-sold-count { flex: 0 0 auto; color: var(--ui-text); font-size: 14px; font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }
.price-currency { color: var(--ui-accent-bright); font-size: 15px; }
.price-value { color: var(--ui-text); font-size: 29px; }
.plan-action {
  min-height: 40px;
  margin-top: 16px;
  border: 1px solid var(--ui-border-strong);
  border-radius: 7px;
  background: var(--ui-accent-soft);
  color: var(--ui-accent-bright);
  font-size: 12px;
}
.plan-action:hover,
.selected .plan-action { border-color: var(--ui-accent); background: var(--ui-accent); color: #2b1723; }
.plan-action:disabled,
.plan-action:disabled:hover { cursor: not-allowed; border-color: var(--ui-border); background: var(--ui-panel-soft); color: var(--ui-muted); opacity: 0.78; box-shadow: none; }

.site-footer { min-height: 62px; border-top-color: var(--ui-border); background: rgba(14, 10, 17, 0.86); color: var(--ui-subtle); font-size: 12px; }

/* Auth and account center */
.account-page-shell { width: min(1240px, calc(100% - 48px)); padding: 28px 0 56px; }
.account-page-topline { min-height: 34px; }
.account-back { color: var(--ui-accent-bright); font-size: 16px; line-height: 1.4; }
.account-back:hover { color: #ffd7e7; }
.account-card:not(.signed-in) { width: min(510px, 100%); margin-top: 20px; padding: 42px 46px 36px; border-color: var(--ui-border); border-radius: 10px; background: rgba(24, 17, 29, 0.92); box-shadow: var(--ui-shadow); }
.account-card.signed-in { width: 100%; }
.account-brand { width: 86px; height: 56px; }
.account-card h1 { color: var(--ui-text); font-size: 30px; }
.account-lede { color: var(--ui-muted); font-size: 13px; }
.account-card .account-form > label,
.account-card #account-confirm-wrap > label { color: #f2e5ed; font-size: 13px; }
.account-card .account-form input:not([type="checkbox"]),
.account-card .admin-search input,
.admin-note-input {
  min-height: 46px;
  border-color: var(--ui-border);
  border-radius: 7px;
  background: rgba(255, 245, 250, 0.065);
  color: var(--ui-text);
}
.account-card .account-form input:not([type="checkbox"]):focus-visible,
.account-card .admin-search input:focus-visible,
.admin-note-input:focus-visible { border-color: var(--ui-border-strong); outline-color: rgba(233, 141, 179, 0.2); }
.account-card .account-submit { min-height: 48px; border-radius: 7px; background: var(--ui-accent); color: #2b1723; }
.account-card .account-submit:hover { background: var(--ui-accent-bright); }
.account-switch { color: var(--ui-muted); }
.text-button { color: var(--ui-accent-bright); }
.text-button:hover { color: #ffd7e7; }

.account-profile { display: grid; grid-template-columns: auto minmax(0, 130px) minmax(390px, 1fr) auto; align-items: center; column-gap: 14px; min-height: 122px; margin-bottom: 18px; padding: 22px 26px; }
.account-profile-mark { border-color: rgba(233, 141, 179, 0.34); background: var(--ui-accent-soft); color: var(--ui-accent-bright); }
.account-profile-copy .account-section-label { color: var(--ui-subtle); }
.account-profile-copy strong { color: var(--ui-text); font-size: 23px; }
.account-email-card {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(220px, 1.1fr);
  align-items: center;
  gap: 9px 24px;
  min-width: 0;
  width: min(100%, 735px);
  justify-self: start;
  margin: 0;
  padding: 4px 0 4px 18px;
  border: 0;
  border-left: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.account-email-copy label { display: block; color: var(--ui-text); font-size: 16px; font-weight: 700; }
.account-email-copy p { margin: 5px 0 0; color: var(--ui-muted); font-size: 13px; line-height: 1.5; }
.account-email-copy { width: max-content; max-width: 100%; justify-self: end; }
.account-email-controls { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 9px; }
.account-email-controls input { width: 100%; min-height: 44px; padding: 0 13px; border: 1px solid var(--ui-border); border-radius: 7px; outline: 0; background: rgba(17, 11, 21, 0.42); color: var(--ui-text); font: inherit; font-size: 14px; }
.account-email-controls input:focus-visible { border-color: var(--ui-border-strong); box-shadow: 0 0 0 3px var(--ui-accent-soft); }
.account-email-controls .button { min-height: 44px; padding: 0 16px; font-size: 14px; }
.account-profile .account-logout { min-height: 44px; padding: 0 16px; border-radius: 7px; font-size: 14px; font-weight: 600; }
.account-email-feedback { grid-column: 2; margin: 0; color: var(--ui-muted); font-size: 13px; }
.account-email-feedback[data-state="success"] { color: #9bd1b1; }
.account-email-feedback[data-state="error"] { color: #ff9da7; }
.account-email-feedback[hidden] { display: none; }
.account-profile .account-email-feedback { grid-column: 2; }
.account-workspace { grid-template-columns: 224px minmax(0, 1fr); gap: 18px; }
.account-sidebar,
.account-content { border-color: var(--ui-border); background: var(--ui-panel); }
.account-sidebar { gap: 5px; padding: 9px; }
.account-nav-item { min-height: 45px; border-radius: 7px; color: var(--ui-muted); font-size: 13px; }
.account-nav-item:hover { border-color: var(--ui-border); background: var(--ui-panel-soft); color: var(--ui-text); }
.account-nav-item.active { border-color: rgba(233, 141, 179, 0.24); background: var(--ui-accent-soft); color: var(--ui-accent-bright); }
.account-nav-item#admin-open.active { border-color: rgba(229, 199, 125, 0.28); background: rgba(229, 199, 125, 0.12); color: var(--ui-gold); }
.account-content { min-height: 380px; padding: 26px 28px; }
.account-history-heading { margin-bottom: 16px; }
.account-history-heading .account-section-label { color: var(--ui-text); font-size: 15px; }
.account-orders-title { margin: 2px 0 3px; color: var(--ui-text); font-size: 24px; line-height: 1.25; }
.account-orders-lede { margin: 0; color: var(--ui-muted); font-size: 13px; }
.account-refresh { color: var(--ui-accent-bright); }
.account-orders-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 17px 0 16px; }
.account-orders-stat { display: grid; gap: 7px; min-height: 74px; padding: 13px 15px; border: 1px solid var(--ui-border); border-radius: 8px; background: var(--ui-panel-soft); }
.account-orders-stat span { color: var(--ui-muted); font-size: 11px; }
.account-orders-stat strong { color: var(--ui-text); font-size: 22px; line-height: 1; }
#product-page-price-note.is-limited-offer { color: var(--ui-gold); font-size: 13px; line-height: 1.6; white-space: pre-line; }
.account-order-list { max-height: none; overflow: visible; border: 0; }
.account-order-pagination { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 14px 0 0; padding-top: 14px; border-top: 1px solid var(--ui-border); }
.account-order-pagination[hidden] { display: none; }
.account-order-pagination > span { flex: 1 1 auto; color: var(--ui-muted); text-align: center; font-variant-numeric: tabular-nums; }
.account-order-pagination .button { min-height: 38px; padding-inline: 15px; font-size: 13px; }
.account-order-pagination .button:disabled { opacity: .42; cursor: default; }
.account-order-row { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 18px; margin-bottom: 10px; padding: 17px 18px; border: 1px solid var(--ui-border); border-radius: 8px; background: var(--ui-panel-soft); }
.account-order-row:last-child { margin-bottom: 0; }
.account-order-heading { color: var(--ui-text); font-size: 15px; }
.account-order-side { display: flex; align-items: center; justify-content: flex-end; gap: 16px; min-width: 0; }
.account-order-amount { color: var(--ui-accent-bright); font-size: 17px; white-space: nowrap; }
.account-order-number,
.account-history-empty { color: var(--ui-subtle); font-size: 12px; }
.account-order-number-row { margin-top: 8px; }
.account-order-date { margin: 7px 0 0; color: var(--ui-subtle); font-size: 11px; }
.account-order-status { display: inline-flex; width: fit-content; min-height: 23px; align-items: center; margin: 9px 0 0; padding: 0 8px; border: 1px solid rgba(240, 160, 193, 0.25); border-radius: 999px; background: rgba(199, 91, 138, 0.12); color: var(--ui-accent-bright); font-size: 11px; }
.account-order-status[data-state="pending"] { border-color: rgba(231, 203, 130, 0.32); background: rgba(231, 203, 130, 0.1); color: var(--ui-gold); }
.account-order-status[data-state="expired"], .account-order-status[data-state="closed"], .account-order-status[data-state="refunded"] { border-color: rgba(255, 255, 255, 0.14); background: rgba(255, 255, 255, 0.05); color: var(--ui-subtle); }
.account-order-open { align-self: auto; min-height: 36px; margin-top: 0; border-radius: 7px; white-space: nowrap; }
.account-order-detail-panel { min-width: 0; }
.account-order-detail-topline { margin: 0 0 19px; }
.account-order-detail-hero { display: flex; align-items: end; justify-content: space-between; gap: 18px; padding-bottom: 18px; border-bottom: 1px solid var(--ui-border); }
.account-order-detail-hero h2 { margin: 2px 0 8px; color: var(--ui-text); font-size: 25px; line-height: 1.25; }
.account-order-detail-number-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; color: var(--ui-muted); font-size: 12px; }
.account-order-detail-number-row .button { min-height: 29px; padding-inline: 9px; font-size: 11px; }
.account-order-detail-status { display: inline-flex; min-height: 29px; align-items: center; padding: 0 11px; border: 1px solid rgba(112, 204, 165, 0.3); border-radius: 999px; background: rgba(112, 204, 165, 0.1); color: #9de0c0; font-size: 12px; white-space: nowrap; }
.account-order-detail-status[data-state="pending"] { border-color: rgba(231, 203, 130, 0.34); background: rgba(231, 203, 130, 0.1); color: var(--ui-gold); }
.account-order-detail-status[data-state="expired"], .account-order-detail-status[data-state="closed"], .account-order-detail-status[data-state="refunded"] { border-color: rgba(255, 255, 255, 0.16); background: rgba(255, 255, 255, 0.05); color: var(--ui-subtle); }
.account-order-detail-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(230px, 0.7fr); gap: 12px; margin-top: 15px; }
.account-order-detail-card { min-width: 0; padding: 17px 18px; border: 1px solid var(--ui-border); border-radius: 8px; background: var(--ui-panel-soft); }
.account-order-detail-card h3, .account-order-detail-voucher h3 { margin: 0 0 14px; color: var(--ui-text); font-size: 15px; }
.account-order-detail-card dl { display: grid; gap: 11px; margin: 0; }
.account-order-detail-card dl div { display: flex; justify-content: space-between; gap: 14px; }
.account-order-detail-card dt { color: var(--ui-subtle); font-size: 12px; }
.account-order-detail-card dd { margin: 0; color: var(--ui-text); font-size: 12px; text-align: right; overflow-wrap: anywhere; }
.account-order-detail-amount-label { margin: 0 0 7px; color: var(--ui-subtle); font-size: 12px; }
.account-order-detail-amount { display: block; color: var(--ui-accent-bright); font-size: 27px; line-height: 1; }
.account-order-detail-payment { margin: 13px 0 0; color: var(--ui-muted); font-size: 12px; }
.account-order-detail-voucher { display: grid; grid-template-columns: minmax(0, 1fr) minmax(180px, 0.75fr) auto; align-items: center; gap: 15px; margin-top: 12px; padding: 17px 18px; border: 1px solid rgba(112, 204, 165, 0.28); border-radius: 8px; background: rgba(112, 204, 165, 0.07); }
.account-order-detail-voucher p { margin: 0; color: var(--ui-muted); font-size: 12px; line-height: 1.55; }
.account-order-detail-voucher code { display: block; padding: 10px 11px; border: 1px solid var(--ui-border); border-radius: 6px; background: rgba(15, 12, 18, 0.45); color: var(--ui-text); font-size: 12px; overflow-wrap: anywhere; }
.account-order-detail-actions { display: flex; flex-wrap: wrap; gap: 7px; }
.account-order-detail-actions .button { min-height: 35px; white-space: nowrap; }
.account-order-detail-footer { display: flex; justify-content: flex-end; margin-top: 14px; }

.agent-panel h2,
.share-panel h2,
.account-service-panel h2 { color: var(--ui-text); font-size: 21px; }
.agent-panel > .field-hint,
.account-content .field-hint { color: var(--ui-muted); font-size: 12px; line-height: 1.65; }
.agent-tier-grid { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr) minmax(0, 1.15fr); gap: 12px; margin: 18px 0 25px; align-items: start; }
.agent-tier-card,
.service-record,
.share-summary-grid > div,
.share-disabled-state,
.admin-share-tools,
.admin-order-filter,
.admin-agent-history { border-color: var(--ui-border); border-radius: 8px; background: var(--ui-panel-soft); }
.agent-tier-card { display: grid; grid-template-rows: auto auto minmax(0, 1fr) auto; min-width: 0; min-height: 236px; padding: 16px 15px 14px; overflow: hidden; }
.agent-tier-card.tier-basic { min-height: 228px; padding: 12px 12px 10px; background: linear-gradient(145deg, rgba(255, 255, 255, 0.025), rgba(199, 91, 138, 0.028)); }
.agent-tier-card.tier-basic h3 { font-size: 14px; }
.agent-tier-card.tier-basic .agent-tier-fee strong { font-size: 14px; }
.agent-tier-card.tier-basic .agent-tier-fee del { font-size: 12px; }
.agent-tier-card.tier-basic .agent-tier-description { font-size: 11px; }
.agent-tier-card.tier-basic .agent-price-list { margin: 10px 0 12px; font-size: 11px; gap: 10px; line-height: 1.55; }
.agent-tier-card.tier-basic .agent-price-value { font-size: 12px; }
.agent-tier-card.tier-basic .agent-tier-state { font-size: 11px; }
.agent-tier-card.tier-intermediate { min-height: 270px; background: linear-gradient(145deg, rgba(199, 91, 138, 0.075), rgba(229, 199, 125, 0.045)); }
.agent-tier-card.tier-intermediate { padding: 16px 15px 14px; }
.agent-tier-card.tier-intermediate .agent-price-list { gap: 12px; line-height: 1.55; }
.agent-tier-card.tier-intermediate h3 { font-size: 15px; }
.agent-tier-card.tier-intermediate .agent-tier-fee strong { font-size: 15px; }
.agent-tier-card.tier-intermediate .agent-tier-fee del { font-size: 13px; }
.agent-tier-card.tier-intermediate .agent-tier-description { font-size: 11.5px; }
.agent-tier-card.tier-intermediate .agent-price-value { font-size: 12.5px; }
.agent-tier-card.tier-intermediate .agent-tier-state { font-size: 11.5px; }
.agent-tier-card.tier-advanced { min-height: 320px; padding: 21px 19px 19px; background: linear-gradient(145deg, rgba(229, 199, 125, 0.16), rgba(199, 91, 138, 0.13)); }
.agent-tier-card.tier-advanced .agent-price-list { gap: 14px; line-height: 1.55; }
.agent-tier-card.is-recommended { border-color: rgba(229, 199, 125, 0.62); box-shadow: inset 0 0 0 1px rgba(229, 199, 125, 0.12), 0 8px 22px rgba(229, 199, 125, 0.08); }
.agent-tier-card.current { border-color: rgba(229, 199, 125, 0.64); background: rgba(229, 199, 125, 0.1); }
.agent-tier-card.tier-advanced.current { background: linear-gradient(145deg, rgba(229, 199, 125, 0.22), rgba(199, 91, 138, 0.16)); box-shadow: inset 0 0 0 1px rgba(229, 199, 125, 0.2), 0 10px 28px rgba(229, 199, 125, 0.13); }
.agent-tier-card h3 { color: var(--ui-text); font-size: 16px; }
.agent-tier-card-heading h3,
.agent-tier-description,
.agent-tier-state { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.agent-tier-card-heading span,
.agent-tier-state { color: var(--ui-gold); }
.agent-tier-card-heading { align-items: center; padding-bottom: 12px; border-bottom: 1px solid var(--ui-border); }
.agent-tier-card-heading span { white-space: nowrap; font-size: 12px; }
.agent-tier-fee { display: inline-flex; align-items: baseline; gap: 7px; }
.agent-tier-fee strong { color: var(--ui-gold); font-size: 16px; font-weight: 700; }
.agent-tier-fee del { color: var(--ui-subtle); font-size: 14px; font-weight: 600; }
.agent-tier-description { min-height: 20px; margin: 10px 0 0; color: var(--ui-muted); font-size: 12px; line-height: 1.5; }
.agent-tier-card.is-recommended .agent-tier-description { color: var(--ui-gold); font-weight: 600; }
.agent-price-list { display: grid; gap: 9px; align-content: space-between; margin: 15px 0 17px; color: var(--ui-muted); font-size: 12px; line-height: 1.45; }
.agent-price-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 10px; min-width: 0; }
.agent-price-name { min-width: 0; overflow: hidden; overflow-wrap: normal; text-overflow: ellipsis; white-space: nowrap; }
.agent-price-value { color: var(--ui-text); font-size: 13px; font-weight: 600; white-space: nowrap; }
.agent-tier-state { padding-top: 11px; border-top: 1px solid var(--ui-border); font-size: 12px; }
.agent-redeem-form { padding-top: 18px; border-color: var(--ui-border); }
.agent-redeem-form > label,
.admin-agent-form > label { color: var(--ui-muted); font-size: 12px; }
.agent-redeem-row input,
.admin-agent-form input,
.admin-agent-form select,
.service-form input,
.service-form select,
.service-form textarea,
.share-filter-fields input {
  border-color: var(--ui-border);
  border-radius: 7px;
  background: rgba(255, 245, 250, 0.06);
  color: var(--ui-text);
}
.agent-redeem-row input:focus-visible,
.admin-agent-form input:focus-visible,
.admin-agent-form select:focus-visible,
.service-form input:focus-visible,
.service-form select:focus-visible,
.service-form textarea:focus-visible,
.share-filter-fields input:focus-visible { border-color: var(--ui-border-strong); outline-color: rgba(233, 141, 179, 0.18); }
.button,
.button-primary,
.button-secondary,
.button-dark { min-height: 40px; border-radius: 7px; }
.button-primary { background: var(--ui-accent); color: #2b1723; }
.button-primary:hover { background: var(--ui-accent-bright); }
.button-secondary { border-color: var(--ui-border); background: var(--ui-panel-soft); color: var(--ui-text); }
.button-secondary:hover { border-color: var(--ui-border-strong); background: var(--ui-accent-soft); }
.button-dark { background: #a84f7a; color: #fff8fc; }
.button-dark:hover { background: #c16391; }

.service-form { gap: 12px 16px; margin-top: 20px; }
.service-form > label { color: var(--ui-muted); font-size: 12px; }
.service-form input,
.service-form select,
.service-form textarea { font-size: 13px; }
.session-help,
.account-content .session-help,
.redemption-hint.session-help {
  display: grid;
  gap: 4px;
  margin: 2px 0 0;
  padding: 12px 14px;
  border: 1px solid rgba(233, 141, 179, 0.28);
  border-left: 3px solid var(--ui-accent);
  border-radius: 8px;
  background: linear-gradient(110deg, rgba(219, 102, 151, 0.13), rgba(255, 245, 250, 0.045));
  color: var(--ui-text);
  font-size: 14px;
  line-height: 1.7;
}
.session-help strong { color: var(--ui-accent-bright); font-size: 14px; font-weight: 700; }
.session-help a { color: #ffd0e1; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.session-help a:hover { color: #fff; }
.recharge-form > .session-help { grid-column: 1; }
.redemption-form .session-help { margin: 2px 0 0; }
.recharge-check-actions {
  grid-column: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin-top: 2px;
}
.recharge-check-actions .button { min-width: 118px; }
.recharge-check-actions #standalone-clear-session {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.045);
  color: var(--ui-muted);
}
.recharge-check-actions #standalone-clear-session:hover {
  border-color: var(--ui-border-strong);
  background: var(--ui-panel-soft);
  color: var(--ui-text);
}
.support-invoice-fields { display: grid; grid-column: 1 / -1; grid-template-columns: 145px minmax(0, 1fr); align-items: center; gap: 12px 16px; margin: 3px 0 3px; padding: 16px 18px; border: 1px solid rgba(229, 199, 125, 0.22); border-radius: 8px; background: rgba(229, 199, 125, 0.055); }
.support-invoice-heading { grid-column: 1 / -1; margin: 0 0 2px; color: var(--ui-gold); font-size: 13px; font-weight: 700; }
.support-invoice-fields label { color: var(--ui-muted); font-size: 12px; font-weight: 700; }
.support-invoice-fields input { min-width: 0; width: 100%; }
#support-ticket-form > label[for="support-body"] { align-self: start; margin-top: 10px; }
#support-body { min-height: 148px; resize: vertical; }
.service-inline-result,
.redemption-check { border-color: rgba(229, 199, 125, 0.48); border-radius: 8px; background: rgba(229, 199, 125, 0.09); }
.service-list-block { margin-top: 30px; padding-top: 22px; border-color: var(--ui-border); }
.service-record { padding: 15px; }
.service-record strong { color: var(--ui-text); font-size: 14px; }
.service-record span,
.service-record p { color: var(--ui-muted); font-size: 12px; }
.service-record .service-record-status-message { color: var(--ui-text); font-size: 14px; font-weight: 600; line-height: 1.6; }
.support-message { border-color: var(--ui-border); background: rgba(255, 245, 250, 0.035); }
.support-message.is-reply { border-left-color: var(--ui-accent); background: var(--ui-accent-soft); }

.share-link-card { margin: 18px 0; padding: 16px; border-color: rgba(229, 199, 125, 0.38); border-radius: 8px; background: rgba(229, 199, 125, 0.085); }
.share-card-label { color: var(--ui-gold); }
.share-link-copy code { color: var(--ui-text); }
.share-filter { margin-bottom: 20px; }
.share-filter h3,
.share-orders-block h3 { color: var(--ui-text); font-size: 16px; }
.share-summary-grid { gap: 11px; margin-bottom: 26px; }
.share-summary-grid > div { padding: 14px; }
.share-summary-grid span { color: var(--ui-subtle); font-size: 11px; }
.share-summary-grid strong { color: var(--ui-accent-bright); font-size: 22px; }
.share-product-block { gap: 12px; margin-bottom: 26px; }
.share-product-block h3, .share-product-block h4 { color: var(--ui-text); font-size: 16px; }
.share-product-grid { gap: 11px; }
.share-product-grid > div { border-color: var(--ui-border); border-radius: 8px; background: var(--ui-panel-soft); }
.share-product-grid span, .share-product-grid small { color: var(--ui-muted); font-size: 12px; }
.share-product-grid strong { color: var(--ui-accent-bright); font-size: 23px; }
.share-order-row { padding: 13px 0; border-color: var(--ui-border); font-size: 12px; }
.share-order-row strong { color: var(--ui-text); font-size: 13px; }

.admin-dashboard { border-color: var(--ui-border); }
.admin-announcement-section { margin-bottom: 0; }
.admin-dashboard h2,
.admin-dashboard h3,
.admin-dashboard h4 { color: var(--ui-text); }
.admin-agent-codes,
.admin-support-section { border-color: var(--ui-border); }
.admin-agent-form { gap: 10px; margin-top: 16px; }
.admin-search { gap: 10px; margin-bottom: 13px; }
.admin-search .button,
.admin-pagination .button,
.admin-account-detail .admin-recovery-reset { border-color: var(--ui-border); background: var(--ui-panel-soft); color: var(--ui-accent-bright); }
.admin-search .button:hover,
.admin-pagination .button:hover,
.admin-account-detail .admin-recovery-reset:hover { border-color: var(--ui-border-strong); background: var(--ui-accent-soft); }
.admin-account-list,
.admin-order-list,
.admin-agent-list { border-color: var(--ui-border); }
.admin-agent-pagination { margin: 0; padding: 13px 12px 12px; border-top: 1px solid var(--ui-border); }
.admin-agent-pagination[hidden] { display: none; }
.admin-agent-pagination > span { text-align: center; font-variant-numeric: tabular-nums; }
.admin-agent-pagination .button:disabled { opacity: .42; cursor: default; }
.admin-account-row,
.admin-order-row,
.admin-agent-row { border-color: var(--ui-border); }
.admin-account-row { padding: 13px 9px; border-radius: 6px; }
.admin-account-row:hover { background: var(--ui-panel-soft); }
.admin-account-row[aria-pressed="true"] { background: var(--ui-accent-soft); box-shadow: inset 3px 0 var(--ui-accent); }
.admin-account-row strong,
.admin-order-row strong,
.admin-agent-row strong { color: var(--ui-text); }
.admin-account-row span,
.admin-order-row span,
.admin-agent-row span { color: var(--ui-muted); }
.admin-account-detail { border-color: var(--ui-border); }
.admin-note-label { color: var(--ui-muted); }
.admin-order-filter { padding: 15px; }
.admin-support-ticket.is-pending { border-color: rgba(229, 199, 125, 0.5); background: rgba(229, 199, 125, 0.09); }
.admin-support-ticket-status,
.admin-support-ticket-note { color: var(--ui-gold) !important; }

.recharge-membership-dialog {
  box-sizing: border-box;
  width: min(880px, calc(100% - 32px));
  max-width: none;
  max-height: calc(100dvh - 16px);
  overflow: auto;
  padding: 14px 24px 18px;
  border: 1px solid rgba(229, 199, 125, .46);
  border-radius: 14px;
  background: #211720;
  color: #f7eff2;
  box-shadow: 0 28px 90px rgba(4, 2, 7, .62);
}
.recharge-membership-dialog::backdrop { background: rgba(7, 4, 10, .78); backdrop-filter: blur(5px); }
.recharge-membership-dialog-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 8px; }
.recharge-membership-dialog-heading h2 { margin: 0; color: #fff3da; font-size: 19px; font-weight: 700; }
.recharge-membership-dialog .icon-button { flex: 0 0 40px; width: 40px; height: 40px; font-size: 26px; }
.recharge-membership-offer .agent-tier-card.tier-advanced {
  display: grid;
  grid-template-rows: auto auto;
  min-height: 0;
  padding: 18px 20px;
  border: 1px solid rgba(229, 199, 125, .45);
  border-radius: 12px;
  background: linear-gradient(125deg, rgba(68, 53, 39, .8), rgba(36, 24, 35, .95) 65%);
  box-shadow: inset 0 1px 0 rgba(255, 233, 182, .12), 0 12px 30px rgba(0, 0, 0, .12);
}
.recharge-membership-offer .agent-tier-card-heading { align-items: center; gap: 8px; padding: 0; border: 0; }
.recharge-membership-offer .membership-card-identity { display: grid; gap: 0; }
body.auth-page-open .recharge-membership-offer .agent-tier-card h3 { margin: 0; color: #fff3da; font-size: 30px; font-weight: 700; line-height: 1.3; white-space: normal; }
.recharge-membership-offer .agent-tier-fee { display: grid; grid-template-columns: auto auto; align-items: baseline; column-gap: 10px; row-gap: 3px; margin-left: auto; text-align: right; }
.recharge-membership-offer .membership-fee-caption { grid-column: 1 / -1; color: #d0bd98; font-size: 14px; }
.recharge-membership-offer .agent-tier-fee strong { color: #f2d58e; font-size: 36px; font-weight: 700; line-height: 1.15; font-variant-numeric: tabular-nums; }
.recharge-membership-offer .agent-tier-fee del { color: #a99b9e; font-size: 16px; }
.recharge-membership-offer .agent-tier-card.tier-advanced .agent-price-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 14px 0 0; }
.recharge-membership-offer .agent-price-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px; min-height: 46px; padding: 8px 12px; border: 1px solid rgba(232, 208, 162, .13); border-radius: 8px; background: rgba(14, 10, 17, .24); }
.recharge-membership-offer .agent-price-name { color: #f7eff2; font-size: 16px; font-weight: 600; line-height: 1.35; white-space: normal; overflow-wrap: anywhere; }
.recharge-membership-offer .membership-price-caption { display: none; }
.recharge-membership-offer .agent-price-value { color: #f1d6a2; font-size: 22px; font-weight: 700; line-height: 1.2; font-variant-numeric: tabular-nums; }
.recharge-membership-contact { margin: 12px 0 0; padding-top: 10px; border-top: 1px solid rgba(229, 199, 125, .2); color: #e8d8bd; text-align: center; }
.recharge-membership-contact strong { color: #f2d58e; font-weight: 700; }
@media (max-width: 700px) {
  .recharge-membership-dialog { width: calc(100% - 16px); padding: 10px 12px 12px; }
  .recharge-membership-dialog-heading h2 { font-size: 17px; }
  .recharge-membership-offer .agent-tier-card.tier-advanced { padding: 12px; }
  body.auth-page-open .recharge-membership-offer .agent-tier-card h3 { font-size: 20px; }
  .recharge-membership-offer .agent-tier-fee strong { font-size: 24px; }
  .recharge-membership-offer .agent-tier-card.tier-advanced .agent-price-list { gap: 5px; margin-top: 10px; }
  .recharge-membership-offer .agent-price-list li { min-height: 34px; padding: 5px 8px; }
  .recharge-membership-offer .agent-price-name { font-size: 13px; }
  .recharge-membership-offer .agent-price-value { font-size: 17px; }
  .recharge-membership-contact.membership-purchase-contact { gap: 4px 8px; margin-top: 8px; padding-top: 7px; font-size: 14px; }
}
@media (max-width: 540px) {
  .recharge-membership-offer .agent-tier-card.tier-advanced .agent-price-list { grid-template-columns: minmax(0, 1fr); }
}
@media (max-height: 500px) {
  .recharge-membership-dialog { padding: 6px 12px 8px; }
  .recharge-membership-dialog-heading { margin-bottom: 4px; }
  .recharge-membership-offer .agent-tier-card.tier-advanced { padding: 8px; }
  body.auth-page-open .recharge-membership-offer .agent-tier-card h3 { font-size: 20px; }
  .recharge-membership-offer .agent-tier-fee strong { font-size: 24px; }
  .recharge-membership-offer .agent-tier-card.tier-advanced .agent-price-list { gap: 4px; margin-top: 6px; }
  .recharge-membership-offer .agent-price-list li { min-height: 29px; padding: 3px 7px; }
  .recharge-membership-offer .agent-price-name { font-size: 13px; }
  .recharge-membership-offer .agent-price-value { font-size: 17px; }
  .recharge-membership-contact.membership-purchase-contact { gap: 4px 8px; margin-top: 6px; padding-top: 5px; font-size: 14px; }
}
@media (min-width: 541px) and (max-height: 380px) {
  .recharge-membership-offer .agent-tier-fee { display: flex; align-items: baseline; gap: 8px; }
  .recharge-membership-dialog .icon-button { flex-basis: 36px; width: 36px; height: 36px; }
}

.info-dialog,
.recovery-code-dialog {
  border-color: var(--ui-border-strong);
  border-radius: 10px;
  background: var(--ui-panel-strong);
  color: var(--ui-text);
  box-shadow: 0 28px 90px rgba(4, 2, 7, 0.6);
}
.info-dialog::backdrop,
.recovery-code-dialog::backdrop { background: rgba(7, 4, 10, 0.76); backdrop-filter: blur(5px); }
.dialog-heading { margin-bottom: 17px; }
.dialog-plan { color: var(--ui-accent-bright); font-size: 18px; }
.dialog-note,
.product-detail-intro,
.product-detail-audience,
.product-detail-support { color: var(--ui-muted); font-size: 13px; line-height: 1.75; }
.product-detail { margin-top: 20px; padding-top: 18px; border-color: var(--ui-border); }
.product-detail h3 { font-size: 19px; }
.product-detail-section h4 { color: var(--ui-text); font-size: 14px; }
.product-detail ul,
.product-detail ol { color: var(--ui-muted); font-size: 13px; line-height: 1.7; }
.product-detail-price { border-color: rgba(233, 141, 179, 0.32); border-radius: 8px; background: var(--ui-accent-soft); }
.product-detail-price strong { color: var(--ui-accent-bright); font-size: 23px; }
.product-detail-notice { border-color: rgba(229, 199, 125, 0.62); border-radius: 8px; background: rgba(229, 199, 125, 0.1); }
.product-detail-notice strong { color: var(--ui-gold); font-size: 13px; }
.product-detail-notice ul { color: #f0dfbd; }
.dialog-actions { margin-top: 22px; padding-top: 16px; border-color: var(--ui-border); background: var(--ui-panel-strong); }
.order-result { border-color: var(--ui-border); border-radius: 8px; background: var(--ui-panel-soft); }
.voucher-block { border-color: rgba(233, 141, 179, 0.34); border-radius: 8px; background: var(--ui-accent-soft); }
.voucher-block code,
.redemption-form textarea { border-color: var(--ui-border); border-radius: 7px; background: rgba(12, 9, 14, 0.72); color: var(--ui-text); }
.copy-button { border-color: var(--ui-border-strong); border-radius: 7px; background: var(--ui-panel-soft); color: var(--ui-accent-bright); }
.copy-button:hover { background: var(--ui-accent-soft); }

/* Keep long details and sticky actions inside the dialog on narrow screens. */
.info-dialog {
  box-sizing: border-box;
  max-width: min(720px, calc(100% - 24px));
  overflow-x: hidden;
  overflow-y: auto;
}
.info-dialog > *,
.info-dialog .product-detail,
.info-dialog .order-result,
.info-dialog .redemption-form,
.info-dialog .product-detail-section,
.info-dialog .product-detail-notice { box-sizing: border-box; min-width: 0; max-width: 100%; }
.info-dialog code,
.info-dialog p,
.info-dialog li,
.info-dialog dd { overflow-wrap: anywhere; word-break: break-word; }
.dialog-actions { box-sizing: border-box; width: calc(100% + 36px); max-width: none; }

@media (max-width: 900px) {
  .site-header { grid-template-columns: auto 1fr auto; gap: 16px; }
  .main-nav { justify-content: flex-start; gap: 22px; }
  .header-search { grid-column: 2; grid-row: 2; }
  .site-header { grid-template-rows: 42px 36px; height: auto; padding-top: 8px; padding-bottom: 8px; }
  .brand { grid-column: 1; grid-row: 1; }
  .account-button { grid-column: 3; grid-row: 1; }
  .main-nav { grid-column: 1 / 3; grid-row: 2; }
  .header-search { grid-column: 3; grid-row: 2; width: min(32vw, 220px); }
  .home-shell { width: min(100% - 32px, 720px); }
  .plan-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
  body,
  body:not(.auth-page-open),
  body.auth-page-open { background-attachment: scroll; }
  .site-header { grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; }
  .brand { grid-column: 1; grid-row: 1; }
  .account-button { grid-column: 2; grid-row: 1; max-width: 150px; }
  .main-nav { grid-column: 1; grid-row: 2; justify-content: flex-start; gap: 20px; }
  .header-search { grid-column: 2; grid-row: 2; width: min(43vw, 190px); }
  .home-shell { width: calc(100% - 28px); padding-top: 18px; }
  .home-section-heading,
  .home-panel-heading { padding-right: 15px; padding-left: 15px; }
  .home-announcement-copy { padding: 15px; }
  .home-announcement-copy p,
  .announcement-rules li { font-size: 12px; }
  .home-info-grid { grid-template-columns: 1fr; gap: 12px; }
  .catalog { padding-top: 38px; }
  .catalog-heading h2 { font-size: 24px; }
  .catalog-heading .lede { font-size: 12px; }
  .catalog-tools { align-items: flex-start; flex-direction: column; gap: 9px; }
  .plan-grid { gap: 11px; }
  .plan-card { min-height: 310px; padding-right: 12px; padding-left: 12px; }
  .plan-art { min-height: 155px; margin-right: -12px; margin-left: -12px; }
  .plan-gpt-icon { width: min(62%, 125px); }
  .plan-card h3 { font-size: 13px; }
  .price-value { font-size: 24px; }
  .account-page-shell { width: calc(100% - 28px); padding-top: 18px; }
  .account-card:not(.signed-in) { padding: 32px 22px 28px; }
  .account-profile { grid-template-columns: auto minmax(0, 1fr) auto; align-items: start; padding: 17px; }
  .account-profile .account-logout { margin-left: auto; }
  .account-profile .account-email-card { grid-column: 2 / -1; grid-template-columns: minmax(0, 1fr); gap: 9px; margin-top: 13px; padding: 13px 0 0; border-left: 0; border-top: 1px solid rgba(255, 232, 245, 0.13); }
  .account-email-copy { width: auto; justify-self: stretch; }
  .account-email-controls { grid-template-columns: minmax(0, 1fr) auto; }
  .account-profile .account-email-feedback { grid-column: 1; }
  .account-workspace { grid-template-columns: 1fr; gap: 12px; }
  .account-sidebar { display: flex; gap: 5px; overflow-x: auto; padding: 6px; }
  .account-nav-item { flex: 0 0 auto; width: auto; min-height: 39px; padding: 0 12px; white-space: nowrap; }
  .account-content { padding: 19px 16px; }
  .agent-tier-grid { grid-template-columns: 1fr; align-items: stretch; }
  .admin-dashboard-layout.has-selection { grid-template-columns: 1fr; gap: 15px; }
  .admin-account-detail { padding: 18px 0 0; border-top: 1px solid var(--ui-border); border-left: 0; }
  .share-filter-fields { grid-template-columns: 1fr 1fr; }
  .share-filter-fields .button { width: 100%; }
  .share-summary-grid { grid-template-columns: 1fr 1fr; }
  .share-order-row { grid-template-columns: 1fr 1fr; gap: 6px 12px; }
  .service-form { grid-template-columns: 1fr; }
  .support-invoice-fields { grid-column: 1; grid-template-columns: 1fr; gap: 7px; padding: 14px; }
  .support-invoice-heading { grid-column: 1; margin-bottom: 2px; }
  #support-ticket-form > label[for="support-body"] { margin-top: 4px; }
  .service-form > .button,
  .service-inline-result { grid-column: 1; }
  .service-form > .button { width: 100%; }
  .mailbox-fields { grid-column: 1; }
  .info-dialog { width: min(620px, calc(100% - 20px)); padding: 18px; }
  .info-dialog { max-width: calc(100% - 20px); }
  .dialog-actions {
    width: calc(100% + 36px);
    max-width: none;
    margin-right: -18px;
    margin-left: -18px;
    padding-right: 18px;
    padding-left: 18px;
  }
  .dialog-actions .button { min-width: 0; }
}

/* Refined partner dashboard: clearer hierarchy with a quieter premium finish. */
.share-panel {
  position: relative;
  overflow: hidden;
  border-color: rgba(255, 232, 245, 0.2);
  background:
    linear-gradient(135deg, rgba(39, 24, 38, 0.72), rgba(18, 12, 22, 0.92) 58%),
    var(--ui-panel);
  box-shadow: 0 20px 52px rgba(5, 2, 8, 0.28);
}
.share-panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: linear-gradient(90deg, var(--ui-accent), rgba(229, 199, 125, 0.82), transparent 82%);
  opacity: 0.9;
}
.share-panel > .account-history-heading {
  align-items: flex-start;
  margin: 0 0 14px;
  padding: 4px 0 17px;
  border-bottom: 1px solid rgba(255, 232, 245, 0.12);
}
.share-panel #account-share-title {
  color: var(--ui-text);
  font-size: 27px;
  font-weight: 700;
  letter-spacing: 0;
}
.share-panel .account-refresh {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(243, 176, 202, 0.22);
  border-radius: 8px;
  background: rgba(243, 176, 202, 0.06);
  color: var(--ui-accent-bright);
  font-size: 21px;
}
.share-panel .account-refresh:hover {
  border-color: var(--ui-border-strong);
  background: var(--ui-accent-soft);
}
#share-disabled-state:not([hidden]) { display: grid; gap: 20px; }
#share-disabled-state[hidden] { display: none; }
.share-disabled-banner { margin: 0; padding: 17px; border: 1px dashed var(--ui-border); border-radius: 8px; background: var(--ui-panel-soft); }
.share-disabled-banner strong { display: block; color: var(--ui-text); font-size: 15px; }
.share-disabled-banner p { margin: 6px 0 0; color: var(--ui-muted); font-size: 13px; line-height: 1.65; }
.share-disabled-copy { display: grid; max-width: 100%; border-top: 1px solid var(--ui-border); }
.share-explainer-row { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 20px; padding: 16px 4px; border-bottom: 1px solid var(--ui-border); }
.share-explainer-row h3 { margin: 0; color: var(--ui-accent-bright); font-size: 14px; line-height: 1.7; }
.share-explainer-row p { margin: 0; color: var(--ui-muted); font-size: 14px; line-height: 1.75; }
.share-explainer-row p + p { margin-top: 6px; }
.share-explainer-row p strong { color: var(--ui-text); font-weight: 700; }
.share-disabled-copy .share-disabled-note { margin: 0; padding: 13px 4px 0; color: var(--ui-subtle); font-size: 12px; line-height: 1.7; }
.share-panel > #share-description {
  max-width: 760px;
  margin: 0 0 22px;
  padding: 11px 14px;
  border-left: 2px solid rgba(229, 199, 125, 0.72);
  border-radius: 0 6px 6px 0;
  background: rgba(229, 199, 125, 0.055);
  color: var(--ui-muted);
  line-height: 1.7;
}
#share-enabled-content:not([hidden]) {
  display: grid;
  gap: 20px;
}
.share-link-card {
  align-items: center;
  margin: 0;
  padding: 17px 18px;
  border-color: rgba(229, 199, 125, 0.38);
  border-radius: 8px;
  background: linear-gradient(120deg, rgba(229, 199, 125, 0.11), rgba(229, 199, 125, 0.035));
}
.share-link-copy { gap: 8px; }
.share-card-label {
  color: var(--ui-gold);
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.share-link-copy code { font-size: 13px; line-height: 1.65; }
.share-link-actions { gap: 7px; }
.share-link-actions .button {
  min-height: 38px;
  border-radius: 7px;
  border-color: rgba(255, 232, 245, 0.22);
  background: rgba(255, 245, 250, 0.045);
}
.share-link-actions .button:hover {
  border-color: var(--ui-border-strong);
  background: var(--ui-accent-soft);
}
.share-filter,
.share-product-block,
.share-orders-block { gap: 12px; margin: 0; }
.share-filter {
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 232, 245, 0.1);
}
.share-filter-heading,
.share-product-block .account-history-heading,
.share-orders-block .account-history-heading {
  min-height: 25px;
  margin: 0;
}
.share-filter-heading h3,
.share-product-block h3,
.share-orders-block h3 {
  color: var(--ui-text);
  font-size: 16px;
  font-weight: 700;
}
.share-filter-heading .field-hint,
.share-product-block .field-hint,
.share-orders-block .field-hint {
  color: var(--ui-subtle);
  font-size: 11px;
}
.share-filter-fields { gap: 10px; }
.share-filter-fields label { gap: 6px; color: var(--ui-subtle); font-size: 11px; font-weight: 600; }
.share-filter-fields input {
  min-height: 42px;
  border-radius: 7px;
  border-color: rgba(255, 232, 245, 0.19);
  background: rgba(9, 7, 12, 0.28);
}
.share-filter-fields .button { min-height: 42px; border-radius: 7px; }
.share-summary-grid,
.share-product-grid { gap: 10px; margin: 0; }
.share-summary-grid > div,
.share-product-grid > div {
  position: relative;
  overflow: hidden;
  border-color: rgba(255, 232, 245, 0.16);
  border-radius: 8px;
  background: rgba(255, 245, 250, 0.035);
}
.share-summary-grid > div::before,
.share-product-grid > div::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: var(--ui-accent);
  opacity: 0.58;
}
.share-summary-grid > div { min-height: 78px; padding: 15px; }
.share-summary-grid span,
.share-product-grid span { color: var(--ui-subtle); font-size: 11px; }
.share-summary-grid strong,
.share-product-grid strong { color: var(--ui-accent-bright); font-variant-numeric: tabular-nums; }
.share-summary-grid strong { font-size: 24px; }
.share-product-grid > div { min-height: 61px; padding: 13px 14px; }
.share-product-grid span { line-height: 1.4; }
.share-product-grid strong { font-size: 22px; }
.share-product-grid small { color: var(--ui-subtle); }
.share-orders-block {
  padding-top: 2px;
  border-top: 1px solid rgba(255, 232, 245, 0.1);
}
.share-order-list { gap: 0; }
.share-order-row {
  padding: 13px 6px;
  border-color: rgba(255, 232, 245, 0.1);
}
.share-order-row:first-child { border-top: 1px solid rgba(255, 232, 245, 0.1); }
.share-panel > .account-feedback { margin-top: 2px; color: var(--ui-accent-bright); }

@media (max-width: 700px) {
  .share-panel > .account-history-heading { padding-bottom: 14px; }
  .share-panel #account-share-title { font-size: 24px; }
  .share-link-card { padding: 15px; }
  .share-summary-grid > div { min-height: 70px; }
  .share-filter-fields { gap: 8px; }
  .agent-tier-card { min-height: 0; }
  .agent-tier-card.tier-basic,
  .agent-tier-card.tier-intermediate,
  .agent-tier-card.tier-advanced { min-height: 0; padding: 16px 15px 14px; }
  .agent-tier-fee { gap: 5px; }
  .agent-tier-fee strong { font-size: 15px; }
  .agent-tier-fee del { font-size: 13px; }
  .agent-price-list { gap: 8px; }
  .agent-price-list li { grid-template-columns: minmax(0, 1fr) auto; }
  .agent-price-name { overflow: visible; text-overflow: clip; white-space: normal; overflow-wrap: anywhere; }
  .share-explainer-row { grid-template-columns: minmax(0, 1fr); gap: 5px; padding: 13px 2px; }
}

@media (max-width: 430px) {
  .site-header { padding-right: 12px; padding-left: 12px; }
  .brand-domain { font-size: 12px; }
  .main-nav { font-size: 12px; }
  .header-search { width: 43vw; }
  .account-button { max-width: 126px; padding-right: 9px; padding-left: 9px; font-size: 12px; }
  .plan-grid { grid-template-columns: 1fr; }
  .plan-card { min-height: 330px; }
  .plan-art { min-height: 170px; }
  .share-summary-grid { grid-template-columns: 1fr 1fr; }
  .share-order-row { grid-template-columns: 1fr; }
  .dialog-actions { grid-template-columns: minmax(0, 1fr); width: calc(100% + 36px); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; }
}

/* Admin workspace */
.account-page-shell.admin-mode { width: min(1240px, calc(100% - 48px)); }
.account-page-shell.admin-mode .account-card.signed-in { padding: 0; border: 0; background: transparent; box-shadow: none; backdrop-filter: none; }
.account-workspace.admin-mode { grid-template-columns: 224px minmax(0, 1fr); gap: 18px; }
.account-workspace.admin-mode .account-sidebar {
  display: grid;
  gap: 5px;
  padding: 9px;
}
.account-workspace.admin-mode .account-nav-item { width: 100%; min-width: 0; justify-content: flex-start; }
.account-workspace.admin-mode .account-content { padding: 24px; }
.admin-dashboard { display: flex; flex-direction: column; gap: 16px; }
.admin-withdrawals-section,
.admin-announcement-section,
.admin-agent-codes,
.admin-support-section,
.admin-user-management {
  min-width: 0;
  margin: 0;
  padding: 18px 20px;
  border: 1px solid var(--ui-border);
  border-radius: 9px;
  background: rgba(25, 18, 29, 0.82);
}
.admin-agent-codes .account-history-heading,
.admin-support-section .account-history-heading,
.admin-user-management .account-history-heading { margin: 0 0 10px; }
.admin-agent-codes h3,
.admin-support-section h3,
.admin-user-management h3 { margin: 0; font-size: 17px; }
.admin-agent-codes > .field-hint,
.admin-user-management .account-history-heading > .field-hint { margin: 0; }
.admin-agent-form { grid-template-columns: auto minmax(220px, 1fr) auto minmax(100px, 130px) auto; gap: 10px; margin: 14px 0; }
.admin-agent-form > label { margin: 0; }
.admin-agent-form input,
.admin-agent-form select { min-height: 42px; }
.admin-agent-form .button { min-height: 42px; white-space: nowrap; }
.admin-agent-history { margin-top: 12px; overflow: hidden; }
.admin-agent-history-toggle { min-height: 42px; padding: 0 13px; }
.admin-support-section .service-record-list { gap: 10px; }
.admin-support-section .service-record { padding: 14px 15px; }
.admin-user-management .account-section-label { margin: 0 0 3px; color: var(--ui-subtle); font-size: 11px; }
.admin-user-management .account-history-heading { align-items: end; }
.admin-dashboard-layout { gap: 18px; margin-top: 12px; }
.admin-dashboard-layout.has-selection { grid-template-columns: minmax(300px, 0.68fr) minmax(0, 1.32fr); align-items: start; }
.admin-search { margin-bottom: 12px; }
.admin-search input { min-height: 44px !important; }
.admin-search .button { min-height: 44px; padding-inline: 17px; }
.admin-dashboard-layout:not(.has-selection) .admin-account-list {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr));
  gap: 8px;
  border: 0;
}
.admin-account-row { min-height: 94px; align-content: start; gap: 5px; padding: 12px 14px; border: 1px solid var(--ui-border); border-radius: 7px; background: var(--ui-panel-soft); }
.admin-account-row:hover { border-color: var(--ui-border-strong); background: rgba(255, 245, 250, 0.075); }
.admin-account-row[aria-pressed="true"] { border-color: var(--ui-border-strong); background: var(--ui-accent-soft); box-shadow: inset 3px 0 var(--ui-accent); }
.admin-account-activity { display: block; }
.admin-account-identity { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; min-width: 0; }
.admin-account-email { min-width: 0; overflow-wrap: anywhere; }
.admin-account-row .admin-account-tier { flex: 0 0 auto; white-space: nowrap; }
.admin-dashboard-layout.has-selection .admin-account-list { max-height: min(62vh, 620px); overflow: auto; padding: 4px; border: 1px solid var(--ui-border); border-radius: 7px; }
.admin-dashboard-layout.has-selection .admin-account-row { min-height: 94px; }
.admin-account-row strong { font-size: 14px; }
.admin-account-row span { font-size: 12px; }
.admin-pagination { margin-top: 12px; font-size: 12px; }
.admin-account-detail { padding: 18px; border: 1px solid var(--ui-border); border-radius: 8px; background: var(--ui-panel-soft); }
.admin-account-detail > h3 { margin: 0 0 5px; font-size: 18px; }
.admin-account-detail > .field-hint { margin: 0 0 12px; }
.admin-note-label { margin-top: 14px; font-size: 13px; }
.admin-note-input { min-height: 78px; }
.admin-note-save { margin-right: 8px; }
.admin-order-filter { margin-top: 16px; }
.admin-order-groups { gap: 14px; }
.admin-order-group { padding: 13px; border: 1px solid var(--ui-border); border-radius: 7px; background: rgba(255, 245, 250, 0.025); }

@media (max-width: 900px) {
  .admin-agent-form { grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); }
  .admin-agent-form .button { grid-column: 1 / -1; justify-self: start; }
}

@media (max-width: 700px) {
  .account-page-shell.admin-mode { width: calc(100% - 28px); }
  .account-workspace.admin-mode { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .account-workspace.admin-mode .account-sidebar { flex-wrap: nowrap; overflow-x: auto; }
  .account-workspace.admin-mode .account-nav-item { min-width: max-content; }
  .account-workspace.admin-mode .account-content { padding: 16px 13px; }
  .admin-dashboard { gap: 12px; }
  .admin-withdrawals-section,
  .admin-announcement-section,
  .admin-agent-codes,
  .admin-support-section,
  .admin-user-management { padding: 15px 13px; }
  .admin-agent-form { grid-template-columns: minmax(0, 1fr); gap: 7px; }
  .admin-agent-form .button { grid-column: auto; justify-self: stretch; }
  .admin-user-management .account-history-heading { align-items: flex-start; flex-direction: column; gap: 5px; }
  .admin-dashboard-layout.has-selection { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .admin-dashboard-layout.has-selection .admin-account-list { max-height: 40vh; }
  .admin-account-detail { padding: 15px 12px; border-top: 1px solid var(--ui-border); }
  .admin-dashboard-layout:not(.has-selection) .admin-account-list { grid-template-columns: minmax(0, 1fr); }
  .admin-pagination { flex-wrap: wrap; }
  .admin-pagination .button { min-height: 36px; }
  .admin-order-filter-fields { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .admin-order-filter-fields .button { min-height: 38px; }
}

/* Referral data is presented as a quiet monthly reconciliation view. */
.share-panel {
  border-color: rgba(255, 232, 245, 0.13);
  border-radius: 8px;
  background: rgba(22, 19, 25, 0.96);
  box-shadow: 0 12px 32px rgba(5, 2, 8, 0.16);
}
.share-panel::before { display: none; }
.share-panel > .account-history-heading {
  align-items: center;
  margin: 0 0 10px;
  padding: 0 0 12px;
  border-bottom: 1px solid var(--ui-border);
}
.share-panel #account-share-title { color: var(--ui-text); font-size: 21px; font-weight: 700; }
.share-panel .account-refresh { border-color: var(--ui-border); background: transparent; color: var(--ui-muted); }
.share-panel > #share-description {
  max-width: 760px;
  margin: 0 0 17px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ui-muted);
  font-size: 12px;
  line-height: 1.65;
}
#share-enabled-content:not([hidden]) { display: grid; gap: 20px; }
.share-link-card,
.admin-share-linkbox {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  margin: 0;
  padding: 12px 0;
  border: 0;
  border-top: 1px solid var(--ui-border);
  border-bottom: 1px solid var(--ui-border);
  border-radius: 0;
  background: transparent;
}
.share-link-copy { gap: 5px; }
.share-card-label { color: var(--ui-muted); font-size: 11px; font-weight: 600; letter-spacing: 0; text-transform: none; }
.share-link-copy code,
.admin-share-link { color: var(--ui-text); font-size: 12px; line-height: 1.55; overflow-wrap: anywhere; }
.share-link-actions,
.admin-share-actions { gap: 7px; }
.share-link-actions .button,
.admin-share-actions .button {
  min-height: 35px;
  border-color: var(--ui-border);
  border-radius: 6px;
  background: transparent;
  color: var(--ui-text);
}
.share-link-actions .button:hover,
.admin-share-actions .button:hover { border-color: var(--ui-border-strong); background: var(--ui-panel-soft); }
.share-filter {
  gap: 10px;
  margin: 0;
  padding: 0 0 15px;
  border: 0;
  border-bottom: 1px solid var(--ui-border);
  border-radius: 0;
  background: transparent;
}
.share-filter-heading,
.share-product-block .account-history-heading,
.share-orders-block .account-history-heading { min-height: 24px; margin: 0; }
.share-filter-heading h3,
.share-product-block h3,
.share-product-block h4,
.share-orders-block h3,
.share-orders-block h4 { margin: 0; color: var(--ui-text); font-size: 14px; font-weight: 600; }
.share-filter-heading .field-hint,
.share-product-block .field-hint,
.share-orders-block .field-hint { margin: 0; color: var(--ui-muted); font-size: 11px; }
.share-filter-fields { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto auto; gap: 9px; }
.share-filter-fields label { gap: 5px; color: var(--ui-muted); font-size: 11px; font-weight: 600; }
.share-filter-fields input {
  min-height: 38px;
  border-color: var(--ui-border);
  border-radius: 6px;
  background: rgba(255, 245, 250, 0.045);
  color: var(--ui-text);
}
.share-filter-fields .button { min-height: 38px; border-radius: 6px; }
.share-summary-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  border-top: 1px solid var(--ui-border);
  border-bottom: 1px solid var(--ui-border);
  border-radius: 0;
  background: transparent;
}
.share-summary-grid > div {
  min-height: 68px;
  gap: 6px;
  padding: 11px 14px;
  border: 0;
  border-right: 1px solid var(--ui-border);
  border-radius: 0;
  background: transparent;
}
.share-summary-grid > div:last-child { border-right: 0; }
.share-summary-grid > div::before { display: none; }
.share-summary-grid span { color: var(--ui-muted); font-size: 11px; }
.share-summary-grid strong { color: var(--ui-text); font-size: 19px; font-weight: 600; font-variant-numeric: tabular-nums; }
.share-accounting-note {
  margin: -9px 0 0;
  padding-left: 10px;
  border-left: 2px solid rgba(233, 141, 179, 0.48);
  color: var(--ui-muted);
  font-size: 11px;
  line-height: 1.7;
}
.share-product-block,
.share-orders-block { display: grid; gap: 8px; margin: 0; }
.share-product-block .account-history-heading,
.share-orders-block .account-history-heading { padding-bottom: 8px; border-bottom: 1px solid var(--ui-border); }
.share-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 22px; }
.share-product-grid > div {
  min-height: 42px;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 8px;
  padding: 7px 2px;
  border: 0;
  border-bottom: 1px solid var(--ui-border);
  border-radius: 0;
  background: transparent;
}
.share-product-grid > div::before { display: none; }
.share-product-grid span { color: var(--ui-muted); font-size: 12px; }
.share-product-grid strong { color: var(--ui-text); font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
.share-product-grid small { justify-self: start; color: var(--ui-muted); font-size: 11px; }
.share-order-list { gap: 0; }
.share-order-head,
.share-order-row {
  display: grid;
  grid-template-columns: minmax(72px, 0.8fr) minmax(115px, 1.3fr) minmax(90px, 0.8fr) minmax(112px, 1.1fr) minmax(112px, 0.9fr);
  align-items: center;
  gap: 8px;
}
.share-order-head {
  padding: 8px 8px;
  border-bottom: 1px solid var(--ui-border);
  color: var(--ui-muted);
  font-size: 10px;
  font-weight: 600;
}
.share-order-row {
  padding: 10px 8px;
  border-color: var(--ui-border);
  color: var(--ui-muted);
  font-size: 11px;
}
.share-order-row:first-child { border-top: 0; }
.share-order-row:hover { background: rgba(255, 245, 250, 0.025); }
.share-order-row strong { color: var(--ui-text); font-size: 12px; font-weight: 600; }
.share-order-row span { min-width: 0; }
.share-order-row span:nth-of-type(2) { color: var(--ui-text); font-variant-numeric: tabular-nums; }
.admin-share-tools { gap: 10px; margin: 16px 0 18px; padding: 0; border: 0; border-radius: 0; background: transparent; }
.admin-share-tools-heading { padding-bottom: 8px; border-bottom: 1px solid var(--ui-border); }
.admin-share-tools-heading strong { color: var(--ui-text); font-size: 14px; }
.admin-share-state { color: var(--ui-muted); font-size: 11px; font-weight: 600; }
.admin-share-tools > .field-hint { margin: 0; color: var(--ui-muted); font-size: 11px; line-height: 1.65; }
.admin-share-report { gap: 12px; margin-top: 4px; padding-top: 14px; border-top-color: var(--ui-border); }
.admin-share-report .share-filter { margin: 0; }
.admin-share-report > h4 { margin: 2px 0 -4px; color: var(--ui-text); font-size: 14px; font-weight: 600; }
.admin-share-report .share-accounting-note { margin-top: -7px; }
.admin-share-report .share-order-list { border-top: 0; }

@media (max-width: 900px) {
  .share-order-head { display: none; }
  .share-order-row { grid-template-columns: 1fr 1fr; gap: 9px 12px; padding: 12px 4px; }
  .share-order-row > * { display: grid; grid-template-columns: 58px minmax(0, 1fr); gap: 8px; align-items: baseline; }
  .share-order-row > *::before { content: attr(data-label); color: var(--ui-muted); font-size: 10px; font-weight: 600; }
}
@media (max-width: 760px) {
  .share-link-card,
  .admin-share-linkbox { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .share-link-actions,
  .admin-share-actions { width: auto; }
  .share-link-actions .button { flex: 0 0 auto; }
  .share-filter-fields { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .share-filter-fields .button { width: 100%; }
}
@media (max-width: 620px) {
  .share-summary-grid { grid-template-columns: 1fr 1fr; }
  .share-summary-grid > div { min-height: 62px; border-bottom: 1px solid var(--ui-border); }
  .share-summary-grid > div:nth-child(2) { border-right: 0; }
  .share-summary-grid > div:nth-child(3),
  .share-summary-grid > div:nth-child(4) { border-bottom: 0; }
  .share-product-grid { grid-template-columns: minmax(0, 1fr); }
  .share-order-row { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 420px) {
  .share-filter-heading { align-items: flex-start; flex-direction: column; gap: 4px; }
  .share-filter-fields { gap: 8px; }
  .share-filter-fields .button { min-width: 0; padding-inline: 8px; font-size: 11px; }
  .share-order-row > * { grid-template-columns: 58px minmax(0, 1fr); }
  .admin-share-tools-heading { align-items: flex-start; }
}

/* After removing the public order widgets, bring the catalog into the first screen. */
.home-shell { padding-top: 24px; padding-bottom: 48px; }
.catalog {
  margin-top: 0;
  padding-top: 30px;
  padding-bottom: 0;
}
.catalog-heading { align-items: center; margin-bottom: 17px; }
.catalog-tools { margin-bottom: 13px; }
body:not(.auth-page-open) .catalog { margin-top: 0; padding-top: 30px; padding-bottom: 0; }

@media (max-width: 700px) {
  .home-shell { padding-top: 16px; padding-bottom: 36px; }
  .catalog { margin-top: 0; padding-top: 22px; }
  body:not(.auth-page-open) .catalog { padding-top: 22px; }
  .catalog-heading { margin-bottom: 14px; }
}

.product-page[hidden] { display: none; }
.product-page-shell { width: min(1120px, calc(100% - 48px)); margin: 0 auto; padding: 25px 0 58px; }
.product-breadcrumb { display: flex; align-items: center; gap: 9px; color: var(--ui-subtle); font-size: 13px; }
.product-breadcrumb a { color: var(--ui-muted); text-decoration: none; }
.product-breadcrumb a:hover { color: var(--ui-accent-bright); }
.product-page-hero { display: grid; grid-template-columns: minmax(260px, 0.88fr) minmax(0, 1.12fr); gap: 42px; align-items: start; margin-top: 22px; }
.product-page-art { display: grid; min-height: 360px; aspect-ratio: 1 / 0.9; place-items: center; border: 1px solid rgba(255, 229, 243, 0.13); border-radius: 8px; background: linear-gradient(145deg, rgba(199, 91, 138, 0.25), rgba(37, 23, 40, 0.84) 67%, rgba(231, 203, 130, 0.08)); }
.product-page-art img { display: block; width: min(64%, 250px); height: auto; filter: drop-shadow(0 12px 24px rgba(224, 120, 167, 0.18)); }
.product-page-summary { min-width: 0; }
.product-page-summary h1 { margin: 0 0 13px; color: var(--ui-text); font-size: 31px; line-height: 1.25; }
.product-page-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 23px; }
.product-page-tag { display: inline-flex; min-height: 28px; align-items: center; padding: 0 11px; border: 1px solid rgba(240, 160, 193, 0.26); border-radius: 999px; background: rgba(199, 91, 138, 0.12); color: #f0b5cf; font-size: 12px; font-weight: 600; }
.product-page-tag.is-stock { border-color: rgba(112, 204, 165, 0.34); background: rgba(112, 204, 165, 0.1); color: #9de0c0; }
.product-page-tag.is-delivery { border-color: rgba(231, 203, 130, 0.34); background: rgba(231, 203, 130, 0.1); color: #ecd9a4; }
.product-page-intro h2,
.product-page-section h2 { position: relative; margin: 0 0 15px; padding-bottom: 11px; border-bottom: 1px solid rgba(255, 229, 243, 0.12); color: var(--ui-text); font-size: 18px; }
.product-page-intro h2::after,
.product-page-section h2::after { position: absolute; bottom: -1px; left: 0; width: 54px; height: 2px; background: var(--ui-accent-bright); content: ""; }
.product-page-intro p,
.product-page-aftercare p { margin: 0; color: var(--ui-muted); font-size: 15px; line-height: 1.7; }
.product-page-purchase-notice { margin-top: 26px; }
.product-page-purchase-notice[hidden] { display: none !important; }
.product-page-price { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 20px; padding: 15px 0; border-top: 1px solid rgba(255, 229, 243, 0.1); border-bottom: 1px solid rgba(255, 229, 243, 0.1); }
.product-page-price > div { display: grid; gap: 5px; }
.product-page-price span { color: var(--ui-text); font-size: 14px; font-weight: 700; }
.product-page-price small { color: var(--ui-subtle); font-size: 12px; }
.product-page-price strong { color: var(--ui-accent-bright); font-size: 31px; line-height: 1; }
.product-page-features { display: grid; gap: 9px; margin: 16px 0 20px; padding: 0; list-style: none; }
.product-page-features li { position: relative; padding-left: 22px; color: var(--ui-muted); font-size: 14px; line-height: 1.6; }
.product-page-features li::before { position: absolute; top: 0.48em; left: 2px; width: 8px; height: 8px; border-radius: 50%; background: var(--ui-accent-bright); content: ""; }
.product-page-buy { width: min(100%, 280px); min-height: 47px; font-size: 15px; }
.product-page-buy:disabled { cursor: not-allowed; opacity: 0.56; }
.product-page-purchase-actions.has-member-offer { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; max-width: 576px; }
.product-page-purchase-actions.has-member-offer > .button { width: 100%; min-width: 0; min-height: 56px; margin: 0; padding: 12px; font-family: var(--font-ui); font-size: 20px; font-weight: 700 !important; line-height: 1.4; }
.product-page-member-buy { display: inline-flex; align-items: center; justify-content: center; gap: 0; border: 1px solid #e2bc68; border-radius: 7px; background: linear-gradient(115deg, #f3d895, #d8ae54); color: #382710; box-shadow: inset 0 1px 0 rgba(255, 247, 214, .5); transition: filter .18s, box-shadow .18s; }
.product-page-member-buy[hidden] { display: none; }
.product-page-member-buy:hover { filter: brightness(1.07); box-shadow: 0 4px 18px rgba(221, 177, 84, .17); }
.product-page-member-buy:focus-visible { outline: 2px solid #f5dc9e; outline-offset: 4px; }
.membership-heading-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 12px; }
.membership-go-shopping { display: inline-flex; align-items: center; gap: 12px; min-height: 40px; padding: 9px 17px; white-space: nowrap; }
.membership-go-shopping[hidden] { display: none; }
.membership-purchase-contact { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; color: var(--ui-muted); font-size: 16px; line-height: 1.7; }
.membership-purchase-contact strong { color: var(--ui-gold); overflow-wrap: anywhere; }
.membership-purchase-contact .membership-wechat-copy { flex: 0 0 auto; min-height: 34px; padding: 6px 12px; font-size: 14px; }
#agent-panel-description { margin: 14px 0 18px; padding: 16px 18px; border: 1px solid var(--ui-border); border-radius: 8px; background: rgba(255,255,255,.025); }
.recharge-membership-contact.membership-purchase-contact { justify-content: center; }
@media (max-width: 600px) {
  .product-page-purchase-actions.has-member-offer { gap: 12px; }
  .product-page-purchase-actions.has-member-offer > .button { min-height: 68px; padding: 9px 7px; font-size: 18px; }
  .product-page-member-buy { flex-direction: column; }
  .membership-heading-actions { gap: 9px; }
}
.product-page-order-note { min-height: 19px; margin: 9px 0 0; color: var(--ui-subtle); font-size: 12px; }
.product-page-order-note { font-size: 14px; line-height: 1.5; }
.product-page-sections { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px; margin-top: 43px; padding-top: 27px; border-top: 1px solid rgba(255, 229, 243, 0.12); }
.product-page-section ol { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; counter-reset: delivery-step; }
.product-page-section ol li { position: relative; min-height: 28px; padding: 2px 0 0 42px; color: var(--ui-muted); font-size: 14px; line-height: 1.7; counter-increment: delivery-step; }
.product-page-section ol li::before { position: absolute; top: 0; left: 0; display: grid; width: 27px; height: 27px; place-items: center; border: 1px solid rgba(240, 160, 193, 0.38); border-radius: 50%; background: rgba(199, 91, 138, 0.13); color: var(--ui-accent-bright); content: counter(delivery-step); font-size: 12px; font-weight: 700; }
.product-page-aftercare { padding-left: 0; border-left: 0; }
.product-page-aftercare p { display: grid; gap: 14px; font-size: 14px; white-space: pre-wrap; }
.product-page-aftercare p > span { min-height: 28px; line-height: 1.7; }

@media (max-width: 760px) {
  .product-page-shell { width: calc(100% - 32px); padding: 18px 0 38px; }
  .product-page-hero { grid-template-columns: minmax(0, 1fr); gap: 23px; margin-top: 17px; }
  .product-page-art { min-height: 0; width: 100%; max-height: 290px; aspect-ratio: 1.35 / 1; }
  .product-page-art img { width: min(48%, 180px); }
  .product-page-summary h1 { font-size: 25px; }
  .product-page-tags { gap: 7px; margin-bottom: 19px; }
  .product-page-intro p,
  .product-page-aftercare p { font-size: 14px; line-height: 1.7; }
  .product-page-sections { grid-template-columns: minmax(0, 1fr); gap: 27px; margin-top: 29px; padding-top: 22px; }
  .product-page-aftercare { padding: 22px 0 0; border-top: 1px solid rgba(255, 229, 243, 0.12); border-left: 0; }
  .product-page-buy { width: 100%; }
}

@media (max-width: 700px) {
  .account-orders-title { font-size: 22px; }
  .account-orders-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
  .account-orders-stat { min-height: 66px; padding: 11px 10px; }
  .account-orders-stat span { font-size: 10px; }
  .account-orders-stat strong { font-size: 19px; }
  .account-order-row { grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 15px; }
  .account-order-side { justify-content: flex-start; }
  .account-order-detail-hero { align-items: flex-start; flex-direction: column; gap: 11px; }
  .account-order-detail-grid { grid-template-columns: minmax(0, 1fr); }
  .account-order-detail-voucher { grid-template-columns: minmax(0, 1fr); }
  .account-order-detail-actions { justify-content: flex-start; }
}

/* Keep every account refresh control visually consistent and give feedback while it works. */
.account-refresh,
.share-panel .account-refresh {
  display: inline-grid;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(243, 176, 202, 0.3);
  border-radius: 9px;
  background: rgba(243, 176, 202, 0.075);
  color: var(--ui-accent-bright);
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease, transform 160ms ease;
}
.account-refresh svg { width: 18px; height: 18px; transition: transform 220ms ease; }
.account-refresh:hover:not(:disabled) {
  border-color: var(--ui-border-strong);
  background: var(--ui-accent-soft);
  color: #ffd7e7;
  transform: translateY(-1px);
}
.account-refresh:focus-visible { outline: 2px solid rgba(243, 176, 202, 0.58); outline-offset: 2px; }
.account-refresh:disabled { cursor: wait; opacity: 0.7; }
.account-refresh.is-loading svg { animation: account-refresh-spin 760ms linear infinite; }
@keyframes account-refresh-spin { to { transform: rotate(360deg); } }

/* The paid-order handoff keeps the voucher prominent and the two next steps equal. */
.voucher-block {
  gap: 12px;
  padding: 16px;
  border-color: rgba(243, 176, 202, 0.34);
  background: rgba(219, 102, 151, 0.11);
}
.voucher-block code {
  min-height: 48px;
  display: flex;
  align-items: center;
  padding: 12px 14px;
  font-size: 16px;
  line-height: 1.45;
}
.voucher-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.voucher-actions .copy-button,
.voucher-actions .button {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  font-size: 14px;
  font-weight: 700;
}
.checkout-recipient {
  display: grid;
  gap: 7px;
  margin: 0 0 16px;
  padding: 14px 16px;
  border: 1px solid var(--ui-border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.045);
}
.checkout-recipient label { color: var(--ui-text); font-size: 14px; font-weight: 700; }
.checkout-recipient input {
  width: 100%;
  min-height: 44px;
  box-sizing: border-box;
  padding: 0 13px;
  border: 1px solid var(--ui-border);
  border-radius: 8px;
  outline: 0;
  background: rgba(17, 11, 21, 0.42);
  color: var(--ui-text);
  font: inherit;
  font-size: 14px;
}
.checkout-recipient input:focus-visible { border-color: var(--ui-border-strong); box-shadow: 0 0 0 3px var(--ui-accent-soft); }
.checkout-recipient p { margin: 0; color: var(--ui-muted); font-size: 12px; line-height: 1.55; }
.dialog-actions.order-voucher-ready {
  display: none;
}

/* Recharge confirmation: keep the result readable and prevent the checkbox
   text from being squeezed by the generic form-control width rule. */
.redemption-check {
  box-sizing: border-box;
  display: grid;
  gap: 16px;
  width: 100%;
  padding: 21px 22px;
  border-color: rgba(229, 199, 125, 0.48);
  border-radius: 10px;
  background: linear-gradient(145deg, rgba(229, 199, 125, 0.12), rgba(255, 255, 255, 0.035));
}
.redemption-check-title {
  margin: 0;
  color: var(--ui-text);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
}
.redemption-check-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px 13px;
  margin: 0;
}
.redemption-check-list > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 7px;
  min-width: 0;
  min-height: 76px;
  box-sizing: border-box;
  padding: 12px 14px;
  border: 1px solid rgba(255, 229, 243, 0.13);
  border-radius: 8px;
  background: rgba(12, 8, 15, 0.28);
}
.redemption-check-list dt {
  color: var(--ui-muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}
.redemption-check-list dd {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px 9px;
  min-width: 0;
  margin: 0;
  color: var(--ui-text);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.redemption-check-list dd > span:first-child:not(.check-status) {
  min-width: 0;
  overflow-wrap: anywhere;
}
.check-status {
  display: inline-flex;
  min-height: 25px;
  align-items: center;
  margin-left: 0;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}
.check-reason {
  flex-basis: 100%;
  margin-top: 0;
  color: var(--ui-subtle);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
}
.redemption-check .consent-row {
  display: flex;
  grid-column: 1 / -1;
  align-items: center;
  gap: 12px;
  min-width: 0;
  margin: 0;
  padding: 14px 16px;
  border: 1px solid rgba(233, 141, 179, 0.27);
  border-radius: 8px;
  background: rgba(233, 141, 179, 0.09);
  color: var(--ui-text);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.55;
}
.redemption-check .consent-row input[type="checkbox"] {
  flex: 0 0 20px;
  width: 20px;
  min-width: 20px;
  height: 20px;
  min-height: 20px;
  margin: 0;
  padding: 0;
  accent-color: var(--ui-accent);
}
.redemption-check .consent-row > span { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }

.redemption-direct-help,
.redemption-direct-label,
.redemption-check[data-recharge-mode="direct"] .redemption-check-list > :not(.redemption-target-plan),
.redemption-check[data-recharge-mode="direct"] :is(.redemption-verified-label, .check-status, .check-reason),
.redemption-check[data-recharge-mode="direct"] ~ .recharge-retry-hint {
  display: none;
}
.redemption-check[data-recharge-mode="direct"] .redemption-check-list { grid-template-columns: minmax(0, 1fr); }
.redemption-check[data-recharge-mode="direct"] .redemption-target-plan { min-height: 0; }
.redemption-check[data-recharge-mode="direct"] .redemption-target-plan dd { font-size: 17px; }
.redemption-check[data-recharge-mode="direct"] .redemption-direct-label { display: inline; }
.redemption-check[data-recharge-mode="direct"] .redemption-direct-help {
  display: block;
  margin: 0;
  color: var(--ui-muted);
  font-size: 14px;
  line-height: 1.55;
}

@media (max-width: 620px) {
  .redemption-check { padding: 17px 15px; }
  .redemption-check-list { grid-template-columns: minmax(0, 1fr); }
  .redemption-check .consent-row { align-items: flex-start; font-size: 13px; }
}

.button.is-checking-credential {
  display: inline-flex;
  min-width: 174px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  cursor: wait;
}
.button.is-checking-credential:disabled { opacity: 0.86; }
.button.is-checking-credential::before {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  content: "";
  animation: recharge-check-spin 700ms linear infinite;
}
@keyframes recharge-check-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .button.is-checking-credential::before { animation-duration: 1800ms; }
}

/* Admin sections use native disclosure controls and a dedicated account detail view. */
.admin-dashboard { gap: 14px; }
.admin-section {
  min-width: 0;
  overflow: hidden;
  margin: 0;
  border: 1px solid rgba(255, 229, 243, 0.16);
  border-radius: 10px;
  background: rgba(25, 18, 29, 0.84);
  box-shadow: 0 8px 24px rgba(5, 2, 8, 0.12);
}
.admin-section[open] { border-color: rgba(243, 176, 202, 0.24); }
.admin-announcement-section { margin-bottom: 0; }
.admin-section-summary {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 15px 20px;
  background: transparent;
  color: var(--ui-text);
  cursor: pointer;
  list-style: none;
}
.admin-section-summary::-webkit-details-marker { display: none; }
.admin-section-summary::after {
  width: 10px;
  height: 10px;
  flex: 0 0 10px;
  border-right: 2px solid var(--ui-accent-bright);
  border-bottom: 2px solid var(--ui-accent-bright);
  content: "";
  transform: rotate(45deg) translateY(-3px);
  transition: transform 180ms ease;
}
.admin-section[open] > .admin-section-summary::after { transform: rotate(225deg) translate(-2px, -1px); }
.admin-section-summary:hover,
.admin-section-summary:active,
.admin-section[open] > .admin-section-summary { background: transparent; }
.admin-section-summary:focus-visible { outline: 2px solid var(--ui-accent-bright); outline-offset: -3px; }
.admin-section-heading { display: grid; gap: 4px; min-width: 0; }
.admin-section-heading .account-section-label { margin: 0; color: var(--ui-gold); font-size: 13px; font-weight: 700; }
.admin-section-title { color: var(--ui-text); font-size: 22px; font-weight: 700; line-height: 1.25; }
.admin-section-hint { min-width: 0; color: var(--ui-muted); font-size: 14px; line-height: 1.5; text-align: right; }
.admin-section-content { padding: 0 20px 20px; }
.admin-section-content > .field-hint,
.admin-section-toolbar > .field-hint,
.admin-user-description { color: var(--ui-muted); font-size: 14px; line-height: 1.6; }
.admin-section-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.admin-section-toolbar > .field-hint { margin: 0; }
.admin-agent-codes .admin-section-toolbar { align-items: center; justify-content: flex-end; flex-direction: row; margin-bottom: 0; }
.admin-refresh-button {
  display: inline-flex;
  min-height: 42px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 14px;
  border-color: rgba(243, 176, 202, 0.32);
  background: rgba(243, 176, 202, 0.075);
  color: var(--ui-accent-bright);
  font-size: 14px;
  font-weight: 700;
}
.admin-refresh-button svg { width: 17px; height: 17px; flex: 0 0 17px; }
.admin-refresh-button:hover:not(:disabled) { border-color: var(--ui-border-strong); background: var(--ui-accent-soft); }
.admin-refresh-button:disabled { cursor: wait; opacity: 0.78; }
.admin-refresh-button.is-loading svg { animation: account-refresh-spin 760ms linear infinite; }
.admin-agent-form { margin-top: 14px; }
.admin-agent-codes .admin-agent-form { margin-top: 12px; }
.admin-agent-form > label { color: var(--ui-muted); font-size: 14px; font-weight: 700; }
.admin-agent-form input,
.admin-agent-form select { min-height: 48px; font-size: 15px; }
.admin-agent-form .button { min-height: 48px; font-size: 15px; }
.admin-agent-history-toggle { min-height: 52px; padding: 0 16px; font-size: 15px; }
.admin-agent-count { color: var(--ui-muted); font-size: 14px; font-weight: 600; }
.admin-agent-row { grid-template-columns: minmax(130px, .7fr) minmax(250px, 1.5fr) minmax(190px, 1fr) minmax(150px, .8fr); align-items: center; gap: 14px; padding: 14px 16px; font-size: 14px; line-height: 1.5; }
.admin-agent-row strong { font-size: 15px; }
.admin-agent-code-cell { display: grid; grid-template-columns: minmax(0, 1fr) 58px; width: 100%; max-width: 286px; min-width: 0; align-items: center; gap: 8px; }
.admin-agent-code-cell code { min-width: 0; overflow-wrap: anywhere; color: var(--ui-text); font-family: Consolas, "Courier New", monospace; font-size: 13px; }
.admin-agent-copy { box-sizing: border-box; width: 58px; min-height: 34px; justify-self: end; padding: 0 6px; font-size: 13px; white-space: nowrap; }
.admin-support-toolbar { margin-bottom: 12px; }
.admin-support-section .service-record-list { gap: 11px; }
.admin-support-section .service-record { gap: 8px; padding: 17px 18px; border-color: var(--ui-border); border-radius: 8px; background: var(--ui-panel-soft); }
.admin-support-ticket-heading strong { font-size: 17px; }
.admin-support-ticket > span,
.admin-support-ticket > p,
.admin-support-ticket-note { font-size: 14px; line-height: 1.6; }
.admin-support-ticket-status { font-size: 14px; }
.admin-support-ticket .service-record-actions .button { min-height: 40px; padding-inline: 15px; font-size: 14px; }
.admin-user-description { margin: 0 0 14px; }
.admin-user-management { overflow-anchor: none; }
.admin-dashboard-layout { display: block; margin-top: 0; }
.admin-dashboard-layout { overflow-anchor: none; }
.admin-dashboard-layout.has-selection { display: block; }
.admin-search { gap: 10px; margin-bottom: 14px; }
.admin-search input { min-height: 48px !important; font-size: 15px; }
.admin-search .button { min-height: 48px; font-size: 15px; }
.admin-search-field { position: relative; min-width: 0; }
.account-card .admin-search-field input { width: 100%; padding-inline-end: 44px; }
.admin-search-field input::-webkit-search-cancel-button { display: none; }
#admin-search-clear {
  position: absolute; inset: 0 3px 0 auto; width: 42px; padding: 0;
  border: 0; border-radius: 6px; background: transparent; color: var(--ui-muted);
  font-size: 24px; line-height: 1; cursor: pointer;
}
#admin-search-clear:not([hidden]) { display: grid; place-items: center; }
#admin-search-clear:hover, #admin-search-clear:focus-visible { color: var(--ui-text); }
.admin-dashboard-layout:not(.has-selection) .admin-account-list { --admin-account-min-width: 340px; grid-template-columns: repeat(auto-fill, minmax(min(100%, var(--admin-account-min-width)), 1fr)); gap: 10px; }
.admin-account-row { min-height: 86px; gap: 7px; padding: 15px 17px; border-radius: 8px; }
.admin-account-row strong { font-size: 16px; }
.admin-account-row span { font-size: 14px; line-height: 1.55; }
.admin-account-tier { color: var(--ui-gold) !important; }
.admin-pagination { align-items: center; gap: 12px; font-size: 14px; }
.admin-requests-pagination { margin: 18px 0 0; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, 0.1); }
.admin-requests-pagination [aria-live] { text-align: center; font-variant-numeric: tabular-nums; }
.admin-requests-pagination .button:disabled { opacity: 0.4; cursor: default; }
.admin-requests-pagination[hidden] { display: none; }
.recharge-task-pagination { margin: 12px 0 0; padding: 12px 2px 0; border-top: 1px solid var(--ui-border); }
.recharge-task-pagination[hidden] { display: none; }
.recharge-task-pagination > span { text-align: center; font-variant-numeric: tabular-nums; }

.station-settings { margin: 24px 0; padding: 26px; border: 1px solid rgba(220,184,112,.32); border-radius: 14px; background: linear-gradient(125deg, rgba(194,151,67,.08), rgba(255,255,255,.025) 65%); }
.station-settings-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 20px; color: var(--ui-text); font-size: 24px; font-weight: 700; line-height: 1.4; }
.station-membership-tools { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: 14px; margin-bottom: 16px; }
.station-membership-supply { display: flex; align-items: center; gap: 10px; min-width: 0; margin: 0; padding: 14px; border: 1px solid rgba(229,199,125,.48); border-radius: 8px; background: linear-gradient(120deg, rgba(188,144,53,.14), rgba(36,26,36,.35)); }
.station-membership-supply-identity { flex: 0 0 auto; }
.station-settings .station-membership-tools h4 { font-size: 16px; white-space: nowrap; }
.station-membership-supply-price { display: flex; align-items: baseline; gap: 5px; color: var(--ui-gold); white-space: nowrap; }
.station-membership-supply-price strong { color: #ffe3a0; font-size: 24px; line-height: 1.2; }
.station-membership-supply-price > span { font-size: 14px; }
.station-membership-supply-contact { display: flex; align-items: center; gap: 8px; margin-left: auto; color: var(--ui-muted); font-size: 14px; line-height: 1.5; white-space: nowrap; }
.station-membership-supply-contact strong { color: #ffe3a0; font-size: 17px; }
.station-membership-supply-contact .button { min-height: 36px; padding: 6px 10px; font-size: 14px; white-space: nowrap; }
.station-membership-contact-form { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; min-width: 0; margin: 0; padding: 14px; border: 1px solid var(--ui-border); border-radius: 8px; background: rgba(12,9,16,.28); }
.station-membership-contact-form .station-domain-controls { flex: 1; align-items: center; gap: 10px; min-width: 0; margin: 0; }
.station-membership-contact-form .station-domain-label { gap: 0; }
.station-membership-tools .station-domain-controls .button { flex: 0 0 auto; min-height: 38px; padding: 7px 12px; font-size: 14px; white-space: nowrap; }
.station-membership-wechat-input { box-sizing: border-box; width: 100%; min-width: 0; min-height: 38px; padding: 8px 10px; border: 1px solid var(--ui-border-strong); border-radius: 6px; background: rgba(255,255,255,.04); color: var(--ui-text); font: inherit; font-size: 15px; }
.station-membership-contact-form .account-feedback { flex-basis: 100%; }
.station-membership-contact-form button[type="submit"] { min-width: 110px; }
.station-membership-contact-form button[data-save-state="saving"] { opacity: .85; }
.station-membership-contact-form button[data-save-state="saved"] { background: #286d50; border-color: #82d4a9; color: #effff5; box-shadow: 0 0 0 1px rgba(130,212,169,.16); }
.station-settings .station-membership-contact-form .account-feedback { margin: 0; padding: 8px 10px; border: 1px solid rgba(255,151,171,.4); border-radius: 6px; background: rgba(142,37,63,.15); color: #ffc2cf; font-size: 14px; line-height: 1.6; }
@media (max-width: 1200px) {
  .station-membership-tools { grid-template-columns: minmax(0, 1fr); gap: 10px; }
}
.station-settings-badge { display: inline-flex; align-items: center; width: fit-content; padding: 6px 11px; border: 1px solid rgba(220,184,112,.32); border-radius: 5px; background: rgba(220,184,112,.07); color: var(--ui-gold); font-size: 13px; font-weight: 600; white-space: nowrap; }
.station-domain-panel, .station-price-panel { margin: 0; padding: 23px; border: 1px solid var(--ui-border); border-radius: 10px; background: rgba(12,9,16,.28); }
.station-settings h4 { margin: 0; color: var(--ui-text); font-size: 19px; font-weight: 700; line-height: 1.5; }
.station-settings .station-panel-copy { margin: 12px 0; color: var(--ui-muted); font-size: 14px; line-height: 1.9; }
.station-domain-controls { display: flex; align-items: end; gap: 14px; margin: 20px 0 14px; }
.station-domain-label { display: grid; flex: 1; min-width: 0; gap: 10px; color: var(--ui-text); font-size: 15px; font-weight: 600; }
.station-domain-field { display: flex; align-items: center; min-width: 0; border: 1px solid var(--ui-border-strong); border-radius: 7px; background: rgba(255,255,255,.04); }
.station-domain-field input { width: 100%; min-width: 0; min-height: 50px; padding: 12px 15px; border: 0 !important; background: transparent !important; color: var(--ui-text); font: inherit; font-size: 17px; }
.station-domain-suffix { flex: 0 0 auto; padding: 0 15px; color: var(--ui-muted); font-size: 16px; font-weight: 600; }
.station-domain-controls .button, .station-price-form > .button { min-height: 50px; padding-inline: 24px; font-size: 16px; font-weight: 600; }
.station-settings .station-domain-preview { margin: 14px 0; color: var(--ui-gold); overflow-wrap: anywhere; font-size: 16px; line-height: 1.7; }
.station-price-panel { margin-top: 20px; }
.station-price-summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; cursor: pointer; list-style: none; }
.station-price-summary::-webkit-details-marker { display: none; }
.station-price-summary > span { display: flex; align-items: center; gap: 18px; color: var(--ui-muted); font-size: 14px; }
.station-price-summary > span::after { content: ""; width: 8px; height: 8px; flex: 0 0 auto; border-right: 2px solid var(--ui-gold); border-bottom: 2px solid var(--ui-gold); transform: rotate(45deg); transition: transform .18s ease; }
.station-price-panel[open] .station-price-summary > span::after { transform: rotate(225deg); }
.station-price-form { margin-top: 20px; padding-top: 6px; border-top: 1px solid var(--ui-border); }
.station-price-table-wrap { min-width: 0; margin: 22px 0; overflow-x: auto; border: 1px solid var(--ui-border-strong); border-radius: 9px; }
.station-price-scroll-hint { display: none; }
@media (max-width: 1100px) {
  .station-price-scroll-hint { display: block; margin: 18px 0 -10px; color: var(--ui-muted); font-size: 13px; line-height: 1.6; }
}
.station-price-table-wrap:focus-visible { outline: 2px solid var(--ui-gold); outline-offset: 3px; }
.station-price-table { width: 100%; min-width: 900px; border-collapse: collapse; table-layout: fixed; background: rgba(255,255,255,.02); }
.station-price-table th, .station-price-table td { padding: 20px 16px; border-bottom: 1px solid var(--ui-border); text-align: center; vertical-align: middle; line-height: 1.6; }
.station-price-table thead th { padding-block: 16px; background: rgba(255,255,255,.04); color: var(--ui-muted); font-size: 14px; font-weight: 600; white-space: nowrap; }
.station-price-table th:first-child { width: 30%; text-align: left; }
.station-price-table th:nth-child(4) { width: 17%; }
.station-price-table tbody tr:last-child > * { border-bottom: 0; }
.station-price-table tbody tr:hover { background: rgba(255,255,255,.025); }
.station-price-product-name { display: block; color: var(--ui-text); font-size: 16px; font-weight: 700; overflow-wrap: anywhere; }
.station-price-product .station-settings-badge { margin-top: 8px; padding: 3px 8px; font-size: 12px; }
.station-price-money { color: var(--ui-text); font-size: 18px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.station-price-edit input { box-sizing: border-box; width: 100%; min-width: 0; min-height: 46px; padding: 10px 12px; border: 1px solid var(--ui-border-strong); border-radius: 6px; background: rgba(255,255,255,.04); color: var(--ui-text); font: inherit; font-size: 17px; text-align: center; font-variant-numeric: tabular-nums; }
.station-price-edit input::placeholder { color: var(--ui-muted); opacity: 1; }
.station-price-profit { color: var(--ui-gold); font-size: 18px; font-weight: 600; font-variant-numeric: tabular-nums; }
.station-price-reset { padding: 8px 10px; border: 1px solid var(--ui-border); border-radius: 6px; background: transparent; color: var(--ui-muted); font: inherit; font-size: 14px; white-space: nowrap; cursor: pointer; }
.station-price-reset:hover { border-color: var(--ui-border-strong); background: rgba(255,255,255,.04); color: var(--ui-text); }
.station-settings .account-feedback { margin: 16px 0 0; font-size: 15px; line-height: 1.8; }
@media (max-width: 680px) {
  .station-settings { padding: 18px 14px; margin-block: 20px; }
  .station-settings-heading { font-size: 22px; }
  .station-membership-supply, .station-membership-contact-form { padding: 12px; gap: 10px; }
  .station-membership-supply { flex-wrap: wrap; }
  .station-membership-supply-price { margin-left: auto; }
  .station-membership-supply-contact { flex-basis: 100%; margin-left: 0; gap: 7px; }
  .station-membership-supply-price strong { font-size: 24px; }
  .station-membership-contact-form h4 { width: 100%; }
  .station-membership-contact-form .station-domain-controls { flex-direction: row; }
  .station-domain-panel, .station-price-panel { padding: 18px 14px; }
  .station-domain-controls { flex-direction: column; align-items: stretch; }
  .station-domain-suffix { padding-inline: 10px; font-size: 14px; }
  .station-price-summary { align-items: start; flex-direction: column; gap: 9px; }
  .station-price-summary > span { justify-content: space-between; width: 100%; }
}
.admin-pagination .button { min-height: 42px; padding-inline: 16px; font-size: 14px; }
.admin-account-detail {
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.admin-detail-toolbar { margin: 0 0 16px; }
.admin-detail-back { min-height: 42px; padding-inline: 14px; font-size: 14px; }
.admin-account-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, .8fr);
  align-items: center;
  gap: 24px;
  margin-bottom: 20px;
  padding: 24px;
  border: 1px solid rgba(243, 176, 202, 0.24);
  border-radius: 10px;
  background: linear-gradient(115deg, rgba(243, 176, 202, 0.11), rgba(229, 199, 125, 0.055) 66%, rgba(255, 255, 255, 0.025));
}
.admin-account-hero-copy .account-section-label { margin: 0 0 7px; color: var(--ui-gold); font-size: 13px; font-weight: 700; }
.admin-account-hero-title { display: flex; align-items: center; flex-wrap: wrap; gap: 11px; }
.admin-account-hero-title h2 { margin: 0; color: var(--ui-text); font-size: 30px; line-height: 1.2; overflow-wrap: anywhere; }
.admin-account-hero-tier { display: inline-flex; min-height: 28px; align-items: center; padding: 3px 11px; border: 1px solid rgba(229, 199, 125, 0.35); border-radius: 999px; background: rgba(229, 199, 125, 0.1); color: var(--ui-gold); font-size: 13px; font-weight: 700; }
.admin-account-hero-email { margin: 8px 0 0; color: var(--ui-muted); font-size: 15px; overflow-wrap: anywhere; }
.admin-account-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.admin-account-facts > div { display: grid; gap: 6px; min-width: 0; padding: 12px; border: 1px solid rgba(255, 229, 243, 0.12); border-radius: 7px; background: rgba(16, 11, 19, 0.35); }
.admin-account-facts span { color: var(--ui-subtle); font-size: 12px; }
.admin-account-facts strong { color: var(--ui-text); font-size: 14px; line-height: 1.4; overflow-wrap: anywhere; }
.admin-note-label { margin-top: 8px; color: var(--ui-muted); font-size: 15px; font-weight: 700; }
.admin-note-input { min-height: 100px; font-size: 15px; line-height: 1.6; }
.admin-note-save,
.admin-account-detail .admin-recovery-reset { min-height: 44px; padding-inline: 16px; font-size: 14px; }
.admin-account-detail .admin-share-tools { margin-top: 22px; }
.admin-account-detail .admin-order-filter { margin-top: 20px; }
.admin-account-detail > h4 { margin-top: 22px; font-size: 18px; }
.admin-order-group { padding: 16px; border-radius: 8px; }
.admin-order-group-heading h4 { font-size: 16px; }
.admin-order-group-count,
.admin-order-row span { font-size: 14px; line-height: 1.55; }
.admin-order-row { gap: 7px; padding: 14px 12px; }
.admin-order-row strong { font-size: 15px; }
.admin-account-detail[data-share-enabled="false"] .admin-order-groups {
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
}
.admin-account-detail[data-share-enabled="false"] .admin-order-group {
  padding: 0;
  overflow: hidden;
}
.admin-account-detail[data-share-enabled="false"] .admin-order-group-heading {
  padding: 14px 16px 12px;
  border-bottom: 1px solid var(--ui-border);
}
.admin-account-detail[data-share-enabled="false"] .admin-order-row {
  grid-template-columns: minmax(175px, 1.1fr) minmax(0, 1.45fr) minmax(0, 1.4fr) max-content;
  align-items: center;
  column-gap: 16px;
  padding: 15px 16px;
  min-width: 0;
}
.admin-account-detail[data-share-enabled="false"] .admin-order-row > * { min-width: 0; }
.admin-account-detail[data-share-enabled="false"] .admin-order-number,
.admin-account-detail[data-share-enabled="false"] .admin-order-date {
  white-space: nowrap;
}
.admin-account-detail[data-share-enabled="false"] .admin-order-number {
  overflow: hidden;
  text-overflow: ellipsis;
}
.admin-account-detail[data-share-enabled="false"] .admin-order-date { text-align: right; }
.admin-detail-loading { padding: 30px 0; color: var(--ui-muted); font-size: 16px; }
.admin-dashboard > .account-feedback { font-size: 14px; }

/* Keep non-share users' order records scannable without hiding identifiers. */
.admin-account-detail[data-share-enabled="false"] .admin-order-list {
  overflow-x: auto;
  scrollbar-width: thin;
}
.admin-account-detail[data-share-enabled="false"] .admin-order-row {
  min-width: 930px;
  grid-template-columns: minmax(235px, 1.05fr) minmax(250px, 1.25fr) minmax(245px, 1.15fr) max-content;
  column-gap: 16px;
}
.admin-account-detail[data-share-enabled="false"] .admin-order-row strong,
.admin-account-detail[data-share-enabled="false"] .admin-order-number {
  white-space: nowrap;
  overflow: visible;
  overflow-wrap: normal;
  text-overflow: clip;
}
.admin-account-detail[data-share-enabled="false"] .admin-order-date {
  white-space: nowrap;
}

/* 未开通推广分站的代理也使用统一的四列表头，避免商品数据没有字段说明。 */
.admin-account-detail[data-share-enabled="false"] .admin-order-list {
  overflow: hidden;
  border: 1px solid var(--ui-border);
  border-radius: 7px;
}
.admin-account-detail[data-share-enabled="false"] .admin-order-head,
.admin-account-detail[data-share-enabled="false"] .admin-order-row {
  display: grid;
  grid-template-columns: minmax(150px, 1.35fr) minmax(100px, .8fr) minmax(150px, 1.2fr) minmax(120px, 1fr);
  gap: 10px;
  align-items: center;
  min-width: 0;
}
.admin-account-detail[data-share-enabled="false"] .admin-order-head {
  padding: 11px 13px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--ui-muted);
  font-size: 12px;
}
.admin-account-detail[data-share-enabled="false"] .admin-order-row {
  padding: 12px 13px;
  border-top: 1px solid var(--ui-border);
  color: var(--ui-muted);
  font-size: 12px;
}
.admin-account-detail[data-share-enabled="false"] .admin-order-row:first-of-type { border-top: 0; }
.admin-account-detail[data-share-enabled="false"] .admin-order-row strong {
  min-width: 0;
  color: var(--ui-text);
  font-size: 13px;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.admin-account-detail[data-share-enabled="false"] .admin-order-row span {
  min-width: 0;
  overflow-wrap: anywhere;
}

@media (max-width: 800px) {
  .admin-account-hero { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 1050px) {
  .admin-account-detail[data-share-enabled="false"] .admin-order-row {
    grid-template-columns: minmax(155px, 1fr) minmax(0, 1.35fr) minmax(0, 1.25fr) max-content;
    column-gap: 12px;
    padding-inline: 14px;
  }
}

.admin-account-card { position: relative; min-width: 0; }
.admin-account-card .admin-account-row { width: 100%; }
.admin-account-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 3px 9px; min-width: 0; padding-right: 76px; }
.admin-account-title > strong { min-width: 0; overflow-wrap: anywhere; }
.admin-account-note { min-width: 0; color: var(--ui-gold); font-size: 13px !important; font-weight: 500; overflow-wrap: anywhere; }
.admin-account-pin {
  position: absolute;
  top: 12px;
  right: 13px;
  z-index: 1;
  min-width: 58px;
  min-height: 30px;
  padding: 4px 8px;
  border: 1px solid var(--ui-border-strong);
  border-radius: 6px;
  background: rgba(25, 17, 27, 0.82);
  color: var(--ui-muted);
  font: inherit;
  font-size: 12px;
  line-height: 1.2;
  cursor: pointer;
}
.admin-account-pin:hover { border-color: var(--ui-accent); color: var(--ui-accent-bright); }
.admin-account-pin[data-pinned="true"] {
  border-color: rgba(233, 190, 104, 0.58);
  background: rgba(233, 190, 104, 0.13);
  color: var(--ui-gold);
}
.admin-account-pin:disabled { cursor: wait; opacity: 0.65; }

.admin-site-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--ui-border);
  border-radius: 9px;
  background: linear-gradient(105deg, rgba(42, 28, 41, .86), rgba(24, 18, 29, .92) 52%, rgba(31, 24, 34, .88));
  box-shadow: 0 8px 22px rgba(5, 2, 8, .12);
}
.admin-site-metric {
  appearance: none;
  display: grid;
  align-content: center;
  gap: 8px;
  min-width: 0;
  min-height: 88px;
  padding: 14px 24px;
  border: 0;
  color: inherit;
  background: transparent;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.admin-site-views {
  cursor: default;
}
.admin-site-users:hover,
.admin-site-members:hover { background: rgba(255, 245, 250, .035); }
.admin-site-users:focus-visible,
.admin-site-members:focus-visible { position: relative; z-index: 1; outline: 2px solid var(--ui-accent-bright); outline-offset: -4px; }
.admin-site-metric-details {
  min-width: 0;
  padding: 17px 20px;
  border: 1px solid var(--ui-border);
  border-radius: 9px;
  background: rgba(25, 18, 29, .9);
}
.admin-site-metric-details-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.admin-site-metric-details-heading > div { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px 14px; min-width: 0; }
.admin-site-metric-details-heading h2 { margin: 0; color: var(--ui-text); font-size: 18px; font-weight: 700; }
.admin-site-metric-details-heading span { color: var(--ui-muted); font-size: 14px; }
.admin-site-metric-details-close { display: grid; width: 34px; height: 34px; flex: 0 0 34px; place-items: center; border: 1px solid var(--ui-border); border-radius: 6px; background: var(--ui-panel-soft); color: var(--ui-muted); font-size: 23px; line-height: 1; cursor: pointer; }
.admin-site-metric-details-close:hover { border-color: var(--ui-border-strong); color: var(--ui-text); }
.admin-site-metric-details-list { display: grid; gap: 7px; }
.admin-site-metric-detail-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 112px 148px; align-items: center; gap: 14px; width: 100%; min-width: 0; padding: 12px 14px; border: 1px solid var(--ui-border); border-radius: 7px; background: rgba(255, 245, 250, .025); color: inherit; font: inherit; text-align: left; cursor: pointer; transition: border-color 150ms ease, background-color 150ms ease, transform 150ms ease; }
.admin-site-metric-detail-row:hover { border-color: var(--ui-border-strong); background: rgba(255, 245, 250, .065); }
.admin-site-metric-detail-row:active { transform: translateY(1px); }
.admin-site-metric-detail-row:focus-visible { outline: 2px solid var(--ui-accent-bright); outline-offset: 2px; }
.admin-site-metric-detail-identity { display: grid; gap: 3px; min-width: 0; }
.admin-site-metric-detail-identity strong { overflow: hidden; color: var(--ui-text); font-size: 15px; text-overflow: ellipsis; white-space: nowrap; }
.admin-site-metric-detail-identity span,
.admin-site-metric-detail-row time { overflow: hidden; color: var(--ui-muted); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.admin-site-metric-detail-status { color: var(--ui-gold); font-size: 13px; font-weight: 600; white-space: nowrap; }
.admin-site-metric-detail-source { min-width: 0; align-self: center; justify-self: stretch; text-align: left; color: var(--ui-muted); font-size: 14px; line-height: 1.6; overflow-wrap: anywhere; }
.admin-account-hero-source { margin: 12px 0 0; color: var(--ui-gold); font-size: 14px; line-height: 1.6; overflow-wrap: anywhere; }
.admin-site-metric-details-empty { margin: 6px 0; color: var(--ui-muted); font-size: 14px; }
.admin-site-metric-details-empty.is-error { color: var(--ui-danger, #f29ab7); }
}
.admin-site-metric + .admin-site-metric { border-left: 1px solid rgba(255, 232, 245, .14); }
.admin-site-metric > span { color: var(--ui-muted); font-size: 18px; font-weight: 600; line-height: 1.35; }
.admin-site-metric > strong { color: var(--ui-text); font-size: 28px; font-variant-numeric: tabular-nums; font-weight: 780; line-height: 1.1; }
.admin-site-views > strong { color: var(--ui-gold); }
.admin-site-users > strong { color: var(--ui-success); }
.admin-site-members > strong { color: var(--ui-accent-bright); }

.admin-earnings-overview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  overflow: hidden;
  border: 1px solid var(--ui-border);
  border-radius: 9px;
  background: linear-gradient(105deg, rgba(42, 28, 41, 0.94), rgba(24, 18, 29, 0.94) 52%, rgba(31, 24, 34, 0.94));
  box-shadow: 0 10px 28px rgba(5, 2, 8, 0.16);
}
.admin-earnings-metric {
  appearance: none;
  display: grid;
  align-content: center;
  gap: 10px;
  min-width: 0;
  min-height: 118px;
  padding: 19px 26px;
  border: 0;
  color: inherit;
  background: transparent;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.admin-earnings-metric + .admin-earnings-metric { border-left: 1px solid rgba(255, 232, 245, 0.14); }
.admin-earnings-metric:hover { background: rgba(255, 245, 250, 0.035); }
.admin-earnings-metric:focus-visible { position: relative; z-index: 1; outline: 2px solid var(--ui-accent-bright); outline-offset: -4px; }
.admin-earnings-metric > span { color: var(--ui-muted); font-size: 18px; font-weight: 600; line-height: 1.35; }
.admin-earnings-metric > strong {
  overflow: hidden;
  color: var(--ui-text);
  font-size: 32px;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.admin-earnings-expected > strong { color: var(--ui-gold); }
.admin-earnings-today > strong { color: var(--ui-success); }
.admin-earnings-total > strong { color: var(--ui-accent-bright); }
.admin-earnings-details {
  min-width: 0;
  padding: 19px 21px;
  border: 1px solid var(--ui-border);
  border-radius: 9px;
  background: rgba(25, 18, 29, 0.9);
}
.admin-earnings-details-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 13px; }
.admin-earnings-details-heading > div { display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px 16px; min-width: 0; }
.admin-earnings-details-heading h2 { margin: 0; color: var(--ui-text); font-size: 19px; font-weight: 700; }
.admin-earnings-details-heading span { color: var(--ui-muted); font-size: 14px; font-variant-numeric: tabular-nums; }
.admin-earnings-details-close { display: grid; width: 38px; height: 38px; flex: 0 0 38px; place-items: center; border: 1px solid var(--ui-border); border-radius: 6px; background: var(--ui-panel-soft); color: var(--ui-muted); font-size: 25px; line-height: 1; cursor: pointer; }
.admin-earnings-details-close:hover { border-color: var(--ui-border-strong); color: var(--ui-text); }
.admin-earnings-order-list { display: grid; gap: 9px; }
.admin-earnings-day { overflow: hidden; border: 1px solid var(--ui-border); border-radius: 7px; background: rgba(255, 245, 250, 0.025); }
.admin-earnings-day > summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto 10px;
  align-items: center;
  gap: 14px;
  min-height: 56px;
  padding: 11px 16px;
  color: var(--ui-text);
  list-style: none;
  cursor: pointer;
}
.admin-earnings-day > summary::-webkit-details-marker { display: none; }
.admin-earnings-day > summary::after {
  width: 8px;
  height: 8px;
  border-right: 1.5px solid var(--ui-accent-bright);
  border-bottom: 1.5px solid var(--ui-accent-bright);
  content: "";
  transform: rotate(45deg) translateY(-2px);
  transition: transform 160ms ease;
}
.admin-earnings-day[open] > summary { border-bottom: 1px solid rgba(255, 232, 245, 0.12); }
.admin-earnings-day[open] > summary::after { transform: rotate(225deg) translate(-1px, -1px); }
.admin-earnings-day > summary:hover { background: rgba(255, 245, 250, 0.04); }
.admin-earnings-day > summary:focus-visible { outline: 2px solid var(--ui-accent-bright); outline-offset: -3px; }
.admin-earnings-day > summary strong:first-child { font-size: 15px; }
.admin-earnings-day > summary span { color: var(--ui-muted); font-size: 13px; }
.admin-earnings-day > summary strong:nth-child(3) { color: var(--ui-success); font-size: 16px; font-variant-numeric: tabular-nums; }
.admin-earnings-day-orders { display: grid; gap: 8px; padding: 10px; }
.admin-earnings-order {
  display: grid;
  grid-template-columns: minmax(180px, 1.15fr) minmax(170px, 1fr) minmax(110px, .65fr) minmax(120px, .7fr);
  align-items: center;
  gap: 9px 17px;
  min-width: 0;
  padding: 13px 15px;
  border: 1px solid rgba(255, 232, 245, 0.12);
  border-radius: 7px;
  background: rgba(255, 245, 250, 0.035);
}
.admin-earnings-order-identity { display: grid; gap: 4px; min-width: 0; }
.admin-earnings-order-identity strong { overflow-wrap: anywhere; color: var(--ui-text); font-size: 15px; font-variant-numeric: tabular-nums; }
.admin-earnings-order-identity span { overflow-wrap: anywhere; color: var(--ui-muted); font-size: 14px; }
.admin-earnings-order-date { color: var(--ui-muted); font-size: 12px; }
.admin-earnings-order-identity .admin-earnings-order-source { color: var(--ui-accent-bright); }
.admin-earnings-order-product { min-width: 0; color: var(--ui-text); font-size: 14px; line-height: 1.45; }
.admin-earnings-order-paid,
.admin-earnings-order-profit { font-size: 15px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.admin-earnings-order-profit { color: var(--ui-success); font-weight: 700; }
.admin-earnings-order-calculation { grid-column: 1 / span 3; margin: 0; color: var(--ui-muted); font-size: 14px; line-height: 1.5; }
.admin-earnings-order-date { grid-column: 4; grid-row: 2; text-align: right; }
.admin-earnings-order-voucher { display: flex; grid-column: 1 / -1; flex-wrap: wrap; align-items: center; gap: 10px 14px; min-width: 0; margin-top: 3px; padding: 12px 0 0; border-top: 1px solid var(--ui-border); }
.admin-order-voucher-reveal, .admin-order-voucher-copy { min-height: 38px; padding: 7px 14px; font-size: 13px; white-space: nowrap; }
.admin-order-voucher-reveal, .admin-order-voucher-copy { flex: 0 0 auto; }
.admin-order-voucher-code { display: block; flex: 0 1 auto; width: fit-content; min-width: 0; max-width: 100%; padding: 9px 12px; overflow-wrap: anywhere; border: 1px solid rgba(226, 189, 104, .22); border-radius: 5px; background: rgba(226, 189, 104, .07); color: var(--ui-gold); font-family: var(--font-ui); font-size: 14px; font-weight: 700; line-height: 1.5; user-select: all; }
.admin-order-voucher-code[hidden] { display: none; }
.admin-order-voucher-copy[hidden] { display: none; }
.admin-order-voucher-feedback { flex-basis: 100%; color: var(--ui-muted); font-size: 12px; line-height: 1.5; }
.admin-order-voucher-feedback:empty { display: none; }
.admin-earnings-empty { margin: 0; padding: 22px 14px; color: var(--ui-muted); text-align: center; }
.admin-earnings-empty.is-error { color: #ffc0d3; }

@media (max-width: 700px) {
  .admin-section-summary { min-height: 68px; gap: 10px; padding: 13px 14px; }
  .admin-section-title { font-size: 19px; }
  .admin-section-hint { display: none; }
  .admin-section-content { padding: 0 13px 15px; }
  .admin-section-toolbar { align-items: flex-start; flex-direction: column; }
  .admin-refresh-button { min-height: 42px; }
  .admin-agent-row { grid-template-columns: minmax(0, 1fr); gap: 5px; }
  .admin-agent-code-cell { flex-wrap: wrap; }
  .admin-support-ticket-heading { align-items: flex-start; flex-direction: column; }
  .admin-account-facts { grid-template-columns: minmax(0, 1fr); }
  .admin-account-hero { gap: 18px; padding: 19px 16px; }
  .admin-account-hero-title h2 { font-size: 25px; }
  .admin-pagination .button { min-height: 40px; }
  .admin-account-detail[data-share-enabled="false"] .admin-order-row {
    min-width: 930px;
    grid-template-columns: minmax(235px, 1.05fr) minmax(250px, 1.25fr) minmax(245px, 1.15fr) max-content;
    column-gap: 12px;
  }
  .admin-account-detail[data-share-enabled="false"] .admin-order-row { padding: 14px; }
  .admin-account-detail[data-share-enabled="false"] .admin-order-number,
  .admin-account-detail[data-share-enabled="false"] .admin-order-date {
    text-align: left;
  }
  .admin-earnings-order { grid-template-columns: minmax(0, 1fr) auto; gap: 10px 14px; padding: 12px; }
  .admin-earnings-order-product { grid-column: 1; }
  
  .admin-earnings-order-paid,
  .admin-earnings-order-profit { text-align: right; }
  .admin-earnings-order-calculation { grid-column: 1 / -1; }
  .admin-earnings-order-date { grid-column: 1 / -1; grid-row: auto; text-align: left; }
  .admin-earnings-order-voucher { flex-wrap: nowrap; gap: 6px; overflow: visible; padding-top: 10px; }
  .admin-order-voucher-reveal, .admin-order-voucher-copy { min-height: 36px; padding: 5px 4px; font-size: 12px; }
  .admin-order-voucher-code { flex: 0 1 auto; width: fit-content; max-width: 100%; padding: 7px 8px; font-size: 13px; }
  .admin-order-voucher-feedback { display: none; }
  .admin-earnings-day > summary { gap: 9px; min-height: 52px; padding: 10px 12px; }
  .admin-earnings-day > summary strong:first-child { font-size: 13px; }
  .admin-earnings-day > summary span { font-size: 12px; }
  .admin-earnings-day > summary strong:nth-child(3) { font-size: 14px; }
}

@media (max-width: 620px) {
  .admin-site-metric { min-height: 76px; gap: 6px; padding: 11px 13px; }
  .admin-site-metric > span { font-size: 15px; }
  .admin-site-metric > strong { font-size: 22px; }
  .admin-site-metric-details { padding: 14px; }
  .admin-site-metric-detail-row { grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; padding: 9px 10px; }
  .admin-site-metric-detail-status { grid-column: 2; grid-row: 1; }
  .admin-site-metric-detail-source { grid-column: 1 / -1; grid-row: 2; }
  .admin-site-metric-detail-row time { grid-column: 1 / -1; grid-row: 3; }
  .admin-earnings-metric { min-height: 94px; gap: 7px; padding: 14px 11px; }
  .admin-earnings-metric > span { font-size: 15px; }
  .admin-earnings-metric > strong { font-size: 20px; }
}
@media (max-width: 480px) {
  .admin-site-metrics { grid-template-columns: minmax(0, 1fr); }
  .admin-site-metric { grid-template-columns: minmax(0, 1fr) auto; align-items: center; min-height: 55px; gap: 12px; padding: 9px 15px; }
  .admin-site-metric + .admin-site-metric { border-top: 1px solid rgba(255, 232, 245, .14); border-left: 0; }
  .admin-site-metric > span { font-size: 14px; }
  .admin-site-metric > strong { font-size: 20px; }
  .admin-earnings-overview { grid-template-columns: minmax(0, 1fr); }
  .admin-earnings-metric { grid-template-columns: minmax(86px, 0.7fr) minmax(0, 1fr); align-items: center; min-height: 68px; gap: 12px; padding: 11px 17px; }
  .admin-earnings-metric + .admin-earnings-metric { border-top: 1px solid rgba(255, 232, 245, 0.14); border-left: 0; }
  .admin-earnings-metric > span { font-size: 14px; }
  .admin-earnings-metric > strong { font-size: 21px; text-align: right; }
}

@media (max-width: 900px) {
  .admin-account-detail[data-share-enabled="false"] .admin-order-head { display: none; }
  .admin-account-detail[data-share-enabled="false"] .admin-order-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 16px;
    min-width: 0;
    padding: 14px;
  }
  .admin-account-detail[data-share-enabled="false"] .admin-order-row > * {
    display: grid;
    grid-template-columns: 66px minmax(0, 1fr);
    gap: 8px;
    align-items: baseline;
  }
  .admin-account-detail[data-share-enabled="false"] .admin-order-row > *::before {
    content: attr(data-label);
    color: var(--ui-muted);
    font-size: 11px;
    font-weight: 600;
  }
}

@media (max-width: 620px) {
  .admin-account-detail[data-share-enabled="false"] .admin-order-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }
}

body:not(.auth-page-open) .home-announcement-content {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(300px, 0.9fr);
  align-items: stretch;
  gap: 18px;
  padding: 16px 18px 18px;
}
body:not(.auth-page-open) .home-announcement-content .home-announcement-copy {
  min-width: 0;
  padding: 0;
}
body:not(.auth-page-open) .home-purchase-flow {
  min-width: 0;
  padding: 15px 16px 13px;
  border: 1px solid rgba(255, 229, 243, 0.14);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(240, 160, 193, 0.09), rgba(255, 255, 255, 0.025) 58%);
}
body:not(.auth-page-open) .home-purchase-flow-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}
body:not(.auth-page-open) .home-purchase-flow-heading > div > span {
  display: block;
  margin-bottom: 3px;
  color: #e59ab8;
  font-size: 10px;
  font-weight: 700;
}
body:not(.auth-page-open) .home-purchase-flow-heading h2 {
  margin: 0;
  color: #fff5fa;
  font-size: 17px;
  line-height: 1.3;
}
body:not(.auth-page-open) .home-flow-count {
  flex: 0 0 auto;
  padding: 5px 9px;
  border: 1px solid rgba(229, 199, 125, 0.24);
  border-radius: 999px;
  background: rgba(229, 199, 125, 0.08);
  color: #ead8a8;
  font-size: 11px;
  font-weight: 600;
}
body:not(.auth-page-open) .home-purchase-steps {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}
body:not(.auth-page-open) .home-purchase-steps li {
  position: relative;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 49px;
  margin: 0;
  padding: 5px 0;
}
body:not(.auth-page-open) .home-purchase-steps li:not(:last-child)::after {
  position: absolute;
  top: calc(50% + 13px);
  bottom: -3px;
  left: 14px;
  width: 1px;
  background: linear-gradient(rgba(240, 160, 193, 0.35), rgba(240, 160, 193, 0.08));
  content: "";
}
body:not(.auth-page-open) .home-flow-number {
  z-index: 1;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid rgba(240, 160, 193, 0.3);
  border-radius: 50%;
  background: #271722;
  color: #f2a8c5;
  font-size: 11px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
body:not(.auth-page-open) .home-purchase-steps li > div { display: grid; gap: 2px; min-width: 0; }
body:not(.auth-page-open) .home-purchase-steps strong {
  color: #fff3f8;
  font-size: 14px;
  line-height: 1.35;
}
body:not(.auth-page-open) .home-purchase-steps small {
  color: #cdbbc6;
  font-size: 12px;
  line-height: 1.4;
}

/* Partner reporting: consistent sections, legible data, and calmer surfaces. */
.share-panel {
  overflow: visible;
  min-width: 0;
  border-color: rgba(255, 232, 245, 0.14);
  border-radius: 8px;
  background: var(--ui-panel);
  box-shadow: 0 12px 30px rgba(5, 2, 8, 0.14);
}
.share-panel::before { display: none; }
.share-panel > .account-history-heading {
  align-items: center;
  margin: 0 0 17px;
  padding: 2px 0 14px;
  border-bottom: 1px solid var(--ui-border);
}
.share-panel #account-share-title { font-size: 24px; line-height: 1.3; }
#share-enabled-content:not([hidden]) { display: grid; gap: 18px; }
#share-enabled-content > * { min-width: 0; max-width: 100%; }
.share-link-card {
  min-width: 0;
  padding: 15px 16px;
  border: 1px solid var(--ui-border);
  border-radius: 8px;
  background: var(--ui-panel-soft);
}
.share-link-copy { min-width: 0; gap: 6px; }
.share-card-label { color: var(--ui-muted); font-size: 12px; font-weight: 600; letter-spacing: 0; }
.share-link-copy code,
.admin-share-link { color: var(--ui-text); font-size: 13px; line-height: 1.55; overflow-wrap: anywhere; }
.share-link-actions,
.admin-share-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.share-link-actions .button,
.admin-share-actions .button {
  display: inline-flex;
  box-sizing: border-box;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding-inline: 14px;
  border-radius: 7px;
  line-height: 1;
  text-align: center;
}
.share-filter {
  gap: 13px;
  margin: 0;
  padding: 15px 16px 16px;
  border: 1px solid var(--ui-border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
}
.share-summary-grid > button.share-summary-card-action {
  display: grid;
  min-width: 0;
  min-height: 82px;
  align-content: center;
  gap: 8px;
  padding: 14px 15px;
  border: 1px solid var(--ui-border);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.025);
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 150ms ease, background 150ms ease, transform 150ms ease;
}
.share-summary-grid > button.share-summary-card-action:hover {
  border-color: var(--ui-border-strong);
  background: var(--ui-accent-soft);
  transform: translateY(-1px);
}
.share-summary-grid > button.share-summary-card-action:focus-visible {
  outline: 2px solid var(--ui-accent-bright);
  outline-offset: 2px;
}
.share-filter-heading,
.share-product-block .account-history-heading,
.share-orders-block .account-history-heading { align-items: center; min-height: 25px; margin: 0; }
.share-filter-heading h3,
.share-product-block h3,
.share-product-block h4,
.share-orders-block h3,
.share-orders-block h4,
.admin-share-report > h4 { margin: 0; color: var(--ui-text); font-size: 16px; font-weight: 600; line-height: 1.4; }
.share-filter-heading .field-hint,
.share-product-block .field-hint,
.share-orders-block .field-hint { margin: 0; color: var(--ui-muted); font-size: 12px; }
.share-filter-fields { min-width: 0; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto auto; align-items: end; gap: 10px; }
.share-filter-fields label { min-width: 0; gap: 6px; color: var(--ui-muted); font-size: 12px; font-weight: 600; }
.share-filter-fields input {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  min-width: 0;
  min-height: 42px;
  border: 1px solid var(--ui-border);
  border-radius: 7px;
  background: rgba(10, 8, 12, 0.24);
  color: var(--ui-text);
}
.share-filter-fields .button { min-height: 42px; padding-inline: 13px; border-radius: 7px; white-space: nowrap; }
.share-category-filter { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.share-category-filter label { color: var(--ui-text); font-size: 15px; font-weight: 600; line-height: 1.35; }
.share-category-filter select,
.admin-share-category-filter select {
  width: 140px;
  min-width: 140px;
  box-sizing: border-box;
  min-height: 38px;
  padding: 0 36px 0 10px;
  border: 1px solid var(--ui-border);
  border-radius: 7px;
  background-color: rgba(10, 8, 12, 0.24);
  background-image: linear-gradient(45deg, transparent 50%, var(--ui-muted) 50%), linear-gradient(135deg, var(--ui-muted) 50%, transparent 50%);
  background-position: calc(100% - 21px) 50%, calc(100% - 16px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  color: var(--ui-text);
  font: inherit;
  text-align: center;
  text-align-last: center;
  color-scheme: dark;
  appearance: none;
  cursor: pointer;
}
.share-filter-heading .field-hint,
.share-product-block .field-hint,
.share-orders-block .field-hint { max-width: 60%; text-align: right; white-space: normal; }
.share-summary-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  border: 0;
  background: transparent;
}
.share-summary-grid > div {
  min-width: 0;
  min-height: 82px;
  align-content: center;
  gap: 8px;
  padding: 14px 15px;
  border: 1px solid var(--ui-border);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.025);
}
.share-summary-grid > div::before { display: none; }
.share-summary-grid span { color: var(--ui-muted); font-size: 12px; }
.share-summary-grid strong { color: var(--ui-text); font-size: 23px; font-weight: 700; font-variant-numeric: tabular-nums; }
.share-summary-grid > div:last-child strong { color: var(--ui-accent-bright); }
.share-product-block,
.share-orders-block { display: grid; gap: 10px; margin: 0; }
.share-product-block .account-history-heading,
.share-orders-block .account-history-heading { padding: 0 0 10px; border-bottom: 1px solid var(--ui-border); }
.share-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 22px; }
.share-product-grid > div {
  min-width: 0;
  min-height: 48px;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  padding: 8px 2px;
  border: 0;
  border-bottom: 1px solid var(--ui-border);
  border-radius: 0;
  background: transparent;
}
.share-product-grid > div::before { display: none; }
.share-product-grid span { color: var(--ui-text); font-size: 13px; line-height: 1.45; }
.share-product-grid strong { color: var(--ui-text); font-size: 17px; font-weight: 700; font-variant-numeric: tabular-nums; }
.share-product-grid small { grid-column: 3; justify-self: start; color: var(--ui-muted); font-size: 12px; }
.share-orders-block { padding-top: 3px; border-top: 0; }
.share-order-list { overflow: hidden; border: 1px solid var(--ui-border); border-radius: 7px; }
.share-order-head,
.share-order-row {
  grid-template-columns: minmax(76px, 0.8fr) minmax(140px, 1.5fr) minmax(100px, 0.9fr) minmax(112px, 1fr) minmax(120px, 1fr);
  gap: 10px;
}
.share-order-head { padding: 11px 13px; background: rgba(255, 255, 255, 0.035); color: var(--ui-muted); font-size: 12px; }
.share-order-row { padding: 12px 13px; border-color: var(--ui-border); color: var(--ui-muted); font-size: 12px; }
.share-order-row:first-child { border-top: 0; }
.share-order-row strong { color: var(--ui-text); font-size: 13px; font-weight: 600; }
.share-order-row span { min-width: 0; overflow-wrap: anywhere; }
.share-panel > .account-feedback { margin: 0; color: var(--ui-accent-bright); }

/* Promotion guide: keep ownership, calculation, and payout rules scannable. */
.share-disabled-copy {
  overflow: hidden;
  border: 1px solid rgba(255, 232, 245, 0.14);
  border-radius: 10px;
  background: rgba(255, 245, 250, 0.025);
}
.share-disabled-copy .share-explainer-row {
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  margin: 0;
  padding: 18px 19px;
  border-bottom: 1px solid rgba(255, 232, 245, 0.12);
}
.share-disabled-copy .share-explainer-row:last-of-type { border-bottom: 0; }
.share-explainer-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(229, 199, 125, 0.46);
  border-radius: 8px;
  background: rgba(229, 199, 125, 0.1);
  color: var(--ui-gold);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
}
.share-disabled-copy .share-explainer-row h3 { margin: 1px 0 6px; font-size: 15px; }
.share-disabled-copy .share-explainer-row p { font-size: 13px; line-height: 1.75; }
.share-disabled-copy .share-disabled-note { border-top: 1px solid rgba(255, 232, 245, 0.12); padding: 13px 19px 15px; }
.share-guide {
  padding: 0 2px;
  border: 0;
  background: transparent;
}
.share-guide-heading {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 36px;
  padding: 4px 0;
  list-style: none;
  cursor: pointer;
}
.share-guide-heading::-webkit-details-marker { display: none; }
.share-guide-heading:focus-visible { outline: 2px solid var(--ui-accent); outline-offset: 4px; border-radius: 4px; }
.share-guide-heading > strong { color: var(--ui-muted); font-size: 14px; font-weight: 600; white-space: nowrap; }
.share-guide-overview { color: var(--ui-muted); font-size: 13px; line-height: 1.6; }
.share-guide-toggle { display: inline-flex; align-items: center; gap: 10px; margin-left: auto; color: var(--ui-muted); font-size: 13px; white-space: nowrap; }
.share-guide-toggle::before { content: "查看说明"; }
.share-guide-toggle::after { content: ""; width: 6px; height: 6px; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: rotate(45deg); }
.share-guide[open] .share-guide-toggle::before { content: "收起说明"; }
.share-guide[open] .share-guide-toggle::after { transform: rotate(225deg); }
.share-guide-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 8px; padding: 16px 0 4px; border-top: 1px solid var(--ui-border); }
.share-guide-grid article { min-width: 0; padding: 0 18px; border-right: 1px solid var(--ui-border); }
.share-guide-grid article:first-child { padding-left: 0; }
.share-guide-grid article:last-child { padding-right: 0; border-right: 0; }
.share-guide-grid h4 { margin: 0 0 7px; color: var(--ui-text); font-size: 14px; font-weight: 600; }
.share-guide-grid p { margin: 0; color: var(--ui-muted); font-size: 13px; line-height: 1.75; }
#share-station-settings > .station-settings { margin: 8px 0 12px; }
@media (max-width: 700px) {
  .share-guide-heading { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 5px 12px; }
  .share-guide-overview { grid-column: 1 / -1; grid-row: 2; font-size: 12px; }
  .share-guide-toggle { grid-column: 2; grid-row: 1; }
  .share-guide-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .share-guide-grid article, .share-guide-grid article:first-child, .share-guide-grid article:last-child { padding: 0; border: 0; }
  .share-disabled-copy .share-explainer-row { padding: 16px 15px; }
}

/* Station owner user reports use the same spacious, framed hierarchy as the shop report. */
.admin-share-report {
  display: grid;
  gap: 22px;
  min-width: 0;
  margin: 8px 0 0;
  padding: 24px;
  border: 1px solid rgba(220, 184, 112, .34);
  border-radius: 14px;
  background: linear-gradient(125deg, rgba(194, 151, 67, .08), rgba(255, 255, 255, .025) 65%);
}
.admin-share-report > .admin-share-main {
  display: grid;
  gap: 20px;
  min-width: 0;
}
.admin-share-report > .admin-share-main > :is(.share-filter, .admin-share-category-filter, .share-summary-grid, .admin-share-profit-panel, .share-product-block, .admin-share-orders) {
  min-width: 0;
}
.admin-share-report > .admin-share-main > :is(.share-filter, .admin-share-category-filter, .admin-share-profit-panel, .share-product-block, .admin-share-orders) {
  margin: 0;
  padding: 20px;
  border: 1px solid var(--ui-border);
  border-radius: 11px;
  background: rgba(15, 11, 18, .28);
}
.admin-share-report .share-filter {
  display: grid;
  gap: 18px;
}
.admin-share-report .share-filter-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 18px;
  min-height: 0;
  margin: 0;
  padding: 0 0 16px;
  border-bottom: 1px solid var(--ui-border);
}
.admin-share-report .share-filter-heading h4 {
  margin: 0;
  color: var(--ui-text);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.35;
}
.admin-share-report .share-filter-heading .admin-order-filter-summary {
  color: var(--ui-muted);
  font-size: 13px;
}
.admin-share-report .share-filter-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto auto;
  align-items: end;
  gap: 12px;
}
.admin-share-report .share-filter-fields label {
  display: grid;
  gap: 8px;
  min-width: 0;
  color: var(--ui-muted);
  font-size: 13px;
  font-weight: 600;
}
.admin-share-report .share-filter-fields :is(input, .button) {
  min-height: 48px;
  border-radius: 7px;
}
.admin-share-report .share-filter-fields .button { padding-inline: 17px; }
.admin-share-report .share-filter-fields button[type="submit"] {
  border-color: rgba(233, 141, 179, .45);
  background: var(--ui-accent-soft);
  color: var(--ui-accent-bright);
}
.admin-share-report .admin-share-category-filter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.admin-share-report .admin-share-category-filter > span {
  color: var(--ui-text);
  font-size: 16px;
  font-weight: 600;
}
.admin-share-report .admin-share-category-filter select {
  min-width: 190px;
  min-height: 44px;
  padding-inline: 14px 36px;
  font-size: 15px;
}
.admin-share-report .share-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}
.admin-share-report .share-summary-grid > :is(div, button.share-summary-card-action) {
  display: grid;
  align-content: center;
  gap: 12px;
  min-width: 0;
  min-height: 112px;
  padding: 20px;
  border: 1px solid var(--ui-border);
  border-radius: 10px;
  background: rgba(255, 255, 255, .025);
}
.admin-share-report .share-summary-grid > :is(div, button)::before { display: none; }
.admin-share-report .share-summary-grid span { color: var(--ui-muted); font-size: 14px; line-height: 1.5; }
.admin-share-report .share-summary-grid strong {
  color: var(--ui-text);
  font-size: 29px;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}
.admin-share-report .share-summary-grid > :last-child strong { color: var(--ui-accent-bright); }
.admin-share-report .share-summary-grid > button.share-summary-card-action:hover {
  border-color: var(--ui-border-strong);
  background: var(--ui-accent-soft);
}
.admin-share-report .admin-share-profit-panel {
  display: grid;
  gap: 18px;
}
.admin-share-report .admin-share-profit-panel > .account-history-heading,
.admin-share-report .share-product-block > .account-history-heading {
  min-height: 0;
  margin: 0;
  padding: 0 0 16px;
  border-bottom: 1px solid var(--ui-border);
}
.admin-share-report .admin-share-profit-panel h4,
.admin-share-report .share-product-block h4,
.admin-share-report .admin-share-orders > summary strong {
  margin: 0;
  color: var(--ui-text);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.45;
}
.admin-share-report .share-profit-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.admin-share-report .share-profit-grid > div {
  min-height: 92px;
  padding: 18px;
  border-radius: 9px;
  background: rgba(255, 255, 255, .025);
}
.admin-share-report .share-profit-grid span { font-size: 14px; }
.admin-share-report .share-profit-grid strong { font-size: 25px; }
.admin-share-report .share-product-block {
  display: grid;
  gap: 18px;
}
.admin-share-report .share-product-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 28px;
  margin: 0;
}
.admin-share-report .share-product-grid > div {
  min-height: 58px;
  padding: 14px 0;
  border-bottom: 1px solid var(--ui-border);
}
.admin-share-report .share-product-grid span { color: var(--ui-text); font-size: 15px; line-height: 1.6; }
.admin-share-report .share-product-grid strong { color: var(--ui-gold); font-size: 22px; }
.admin-share-report .admin-share-orders {
  display: grid;
  gap: 14px;
}
.admin-share-report .admin-share-orders > summary {
  min-height: 0;
  padding: 0 0 16px;
  border-bottom: 1px solid var(--ui-border);
}
.admin-share-report .admin-share-orders > summary strong { min-width: 0; overflow-wrap: anywhere; }
.admin-share-report .admin-share-orders > summary span { min-width: 0; text-align: right; }
.admin-share-report .admin-share-orders .share-order-list {
  width: 100%;
  min-width: 0;
  margin-top: 0;
  border-top: 0;
}
.admin-share-report > .admin-share-drilldown {
  display: grid;
  gap: 18px;
  min-width: 0;
  padding: 4px;
}
.admin-share-report > .admin-share-drilldown .admin-share-drilldown-heading {
  padding: 0 0 16px;
  border-bottom: 1px solid var(--ui-border);
}
.admin-share-report > .admin-share-drilldown .admin-share-drilldown-heading h4 {
  font-size: 22px;
  font-weight: 700;
}
.admin-share-report > .admin-share-drilldown .admin-share-detail-list,
.admin-share-report > .admin-share-drilldown .admin-share-deal-customer {
  border-color: var(--ui-border-strong);
  border-radius: 10px;
  background: rgba(15, 11, 18, .28);
}
.admin-share-report > .admin-share-drilldown .admin-share-detail-head { padding: 14px 16px; font-size: 13px; }
.admin-share-report > .admin-share-drilldown .admin-share-detail-row { padding: 16px; font-size: 14px; }
.admin-share-report > .admin-share-drilldown .admin-share-deal-groups { gap: 14px; }
.admin-share-report > .admin-share-drilldown .admin-share-deal-customer-heading { padding: 16px; }
.admin-share-report > .admin-share-drilldown .admin-share-deal-order-list { margin: 0 16px 16px; }

@media (max-width: 1000px) {
  .admin-share-report .share-filter-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-share-report .share-filter-fields .button { width: 100%; }
  .admin-share-report .share-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-share-report .share-order-head { display: none; }
  .admin-share-report .share-order-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 16px;
    min-width: 0;
  }
  .admin-share-report .share-order-row > * {
    display: grid;
    grid-template-columns: 66px minmax(0, 1fr);
    gap: 8px;
    min-width: 0;
    align-items: baseline;
  }
  .admin-share-report .share-order-row > *::before {
    content: attr(data-label);
    color: var(--ui-muted);
    font-size: 12px;
    font-weight: 600;
  }
}
@media (max-width: 620px) {
  .admin-share-report { gap: 18px; padding: 14px 12px; }
  .admin-share-report > .admin-share-main { gap: 16px; }
  .admin-share-report > .admin-share-main > :is(.share-filter, .admin-share-category-filter, .admin-share-profit-panel, .share-product-block, .admin-share-orders) { padding: 16px; }
  .admin-share-report .share-filter { gap: 15px; }
  .admin-share-report .share-filter-heading h4 { font-size: 20px; }
  .admin-share-report .share-filter-fields { gap: 10px; }
  .admin-share-report .share-filter-fields label { grid-column: 1 / -1; }
  .admin-share-report .admin-share-category-filter { align-items: stretch; flex-direction: column; gap: 10px; }
  .admin-share-report .admin-share-category-filter select { width: 100%; min-width: 0; }
  .admin-share-report .share-summary-grid { gap: 10px; }
  .admin-share-report .share-summary-grid > :is(div, button.share-summary-card-action) { min-height: 100px; padding: 16px 12px; }
  .admin-share-report .share-summary-grid strong { font-size: 25px; }
  .admin-share-report .admin-share-profit-panel h4,
  .admin-share-report .share-product-block h4,
  .admin-share-report .admin-share-orders > summary strong { font-size: 18px; }
  .admin-share-report .share-profit-grid { grid-template-columns: minmax(0, 1fr); }
  .admin-share-report .share-product-grid { grid-template-columns: minmax(0, 1fr); }
  .admin-share-report .share-order-row { grid-template-columns: minmax(0, 1fr); padding: 16px 12px; }
  .admin-share-report .admin-share-orders > summary { flex-wrap: wrap; }
  .admin-share-report > .admin-share-drilldown { padding: 0; }
  .admin-share-report > .admin-share-drilldown .admin-share-drilldown-heading { align-items: flex-start; flex-direction: column; gap: 6px; }
}

.admin-share-tools {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px 18px;
  margin: 20px 0 18px;
  padding: 17px 0 0;
  border: 0;
  border-top: 1px solid var(--ui-border);
  border-radius: 0;
  background: transparent;
}
.admin-share-tools-heading { align-items: center; min-width: 0; gap: 11px; padding: 0; border: 0; }
.admin-share-tools-heading strong { color: var(--ui-text); font-size: 16px; font-weight: 600; }
.admin-share-state { padding: 4px 9px; border: 1px solid rgba(119, 204, 164, 0.24); border-radius: 999px; background: rgba(119, 204, 164, 0.08); color: #a8dfc4; font-size: 12px; font-weight: 600; }
.admin-share-actions { align-items: center; }
.admin-share-linkbox,
.admin-share-report { grid-column: 1 / -1; }
.admin-share-linkbox { padding: 13px 15px; border: 1px solid var(--ui-border); border-radius: 8px; background: var(--ui-panel-soft); }
.admin-share-report { display: grid; gap: 16px; margin: 0; padding: 0; border: 0; }
.admin-share-report .share-filter { margin: 0; }
.admin-share-report > h4 { padding: 0 0 10px; border-bottom: 1px solid var(--ui-border); }
.admin-share-report .share-order-list { border-top: 1px solid var(--ui-border); }
.admin-share-category-filter { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.admin-share-category-filter > span { color: var(--ui-text); font-size: 15px; font-weight: 600; line-height: 1.35; }
.admin-share-category-filter select { min-height: 38px; }
.admin-share-orders { border-top: 1px solid var(--ui-border); }
.admin-share-orders > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 54px;
  color: var(--ui-text);
  cursor: pointer;
  list-style: none;
}
.admin-share-orders > summary::-webkit-details-marker { display: none; }
.admin-share-orders > summary::after {
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border-right: 1.5px solid var(--ui-accent-bright);
  border-bottom: 1.5px solid var(--ui-accent-bright);
  content: "";
  transform: rotate(45deg) translateY(-2px);
  transition: transform 150ms ease;
}
.admin-share-orders[open] > summary::after { transform: rotate(225deg) translate(-2px, -1px); }
.admin-share-orders > summary strong { font-size: 15px; font-weight: 600; }
.admin-share-orders > summary span { margin-left: auto; color: var(--ui-muted); font-size: 13px; }
.admin-share-orders .share-order-list { margin-top: 10px; border-top: 0; }
.admin-personal-orders { margin-top: 18px; border-top: 1px solid var(--ui-border); }
.admin-personal-orders > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 54px;
  color: var(--ui-text);
  cursor: pointer;
  list-style: none;
}
.admin-personal-orders > summary::-webkit-details-marker { display: none; }
.admin-personal-orders > summary::after {
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border-right: 1.5px solid var(--ui-accent-bright);
  border-bottom: 1.5px solid var(--ui-accent-bright);
  content: "";
  transform: rotate(45deg) translateY(-2px);
  transition: transform 150ms ease;
}
.admin-personal-orders[open] > summary::after { transform: rotate(225deg) translate(-2px, -1px); }
.admin-personal-orders > summary strong { font-size: 15px; font-weight: 600; }
.admin-personal-orders > summary span { margin-left: auto; color: var(--ui-muted); font-size: 13px; }
.admin-personal-orders > h4 { margin: 0 0 10px; color: var(--ui-text); font-size: 16px; }

/* 站长推广报表：统一标题层级，并收紧垂直节奏。 */
.admin-share-tools { gap: 10px 16px; margin: 16px 0 14px; padding-top: 13px; }
.admin-share-tools-heading strong,
.admin-share-report .share-filter-heading h4,
.admin-share-report .share-product-block h4,
.admin-share-orders > summary strong,
.admin-personal-orders > summary strong,
.admin-personal-orders > h4 {
  font-size: 15px;
  line-height: 1.35;
  font-weight: 600;
}
.admin-share-report .share-filter-heading h4,
.admin-share-report .share-product-block h4 { margin: 0; }
.admin-share-report { gap: 16px; }
.admin-share-report .share-filter { gap: 10px; padding: 8px 14px 13px; }
.admin-share-report .share-filter-fields input { padding-inline: 15px; letter-spacing: 0; }
.admin-account-detail[data-share-enabled="false"] .admin-order-filter {
  display: grid;
  gap: 13px;
  margin: 0;
  padding: 15px 16px 16px;
  border: 1px solid var(--ui-border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
}
.admin-account-detail[data-share-enabled="false"] .admin-order-filter-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 25px;
  margin: 0;
}
.admin-account-detail[data-share-enabled="false"] .admin-order-filter-heading h4 {
  margin: 0;
  color: var(--ui-text);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
}
.admin-account-detail[data-share-enabled="false"] .admin-order-filter-summary {
  margin: 0;
  color: var(--ui-muted);
  font-size: 12px;
}
.admin-account-detail[data-share-enabled="false"] .admin-order-filter-fields {
  min-width: 0;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto auto;
  align-items: end;
  gap: 10px;
}
.admin-account-detail[data-share-enabled="false"] .admin-order-filter-fields label {
  min-width: 0;
  gap: 6px;
  color: var(--ui-muted);
  font-size: 12px;
  font-weight: 600;
}
.admin-account-detail[data-share-enabled="false"] .admin-order-filter-fields input {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  min-width: 0;
  min-height: 42px;
  padding-inline: 15px;
  border: 1px solid var(--ui-border);
  border-radius: 7px;
  background: rgba(10, 8, 12, 0.24);
  color: var(--ui-text);
}
.admin-account-detail[data-share-enabled="false"] .admin-order-filter-fields .button {
  min-height: 42px;
  padding-inline: 13px;
  border-radius: 7px;
  white-space: nowrap;
}
@media (max-width: 760px) {
  .admin-account-detail[data-share-enabled="false"] .admin-order-filter-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .admin-account-detail[data-share-enabled="false"] .admin-order-filter-fields .button {
    width: 100%;
  }
}
.admin-share-category-filter select { min-height: 36px; }
.admin-share-report .share-summary-grid > div { min-height: 72px; padding: 12px 14px; }
.admin-share-report .share-summary-grid > button.share-summary-card-action { min-height: 72px; padding: 12px 14px; }
.admin-share-report .share-product-grid > div { min-height: 42px; padding: 6px 2px; }
.admin-share-orders > summary,
.admin-personal-orders > summary { min-height: 48px; }
.admin-personal-orders { margin-top: 14px; }

/* 本人订单与来源客户订单使用同一张紧凑表格，保留商品、金额、状态和时间。 */
.admin-personal-order-list {
  overflow: hidden;
  border: 1px solid var(--ui-border);
  border-radius: 7px;
}
.admin-personal-order-head,
.admin-personal-order-row {
  display: grid;
  grid-template-columns: minmax(150px, 1.35fr) minmax(100px, .8fr) minmax(150px, 1.2fr) minmax(120px, 1fr);
  gap: 10px;
  align-items: center;
}
.admin-personal-order-head {
  padding: 11px 13px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--ui-muted);
  font-size: 12px;
}
.admin-personal-order-row {
  padding: 12px 13px;
  border-top: 1px solid var(--ui-border);
  color: var(--ui-muted);
  font-size: 12px;
}
.admin-personal-order-row:first-of-type { border-top: 0; }
.admin-personal-order-row strong {
  min-width: 0;
  color: var(--ui-text);
  font-size: 13px;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.admin-personal-order-row span { min-width: 0; overflow-wrap: anywhere; }

.admin-share-drilldown { display: grid; gap: 12px; min-width: 0; }
.admin-share-drilldown[hidden] { display: none; }
.admin-share-drilldown-back { justify-self: start; min-height: 38px; padding-inline: 13px; }
.admin-share-drilldown-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--ui-border);
}
.admin-share-drilldown-heading h4 { margin: 0; color: var(--ui-text); font-size: 16px; line-height: 1.4; }
.admin-share-drilldown-heading > span,
.admin-share-drilldown-count,
.admin-share-detail-limit { color: var(--ui-muted); font-size: 12px; }
.admin-share-drilldown-count { margin: 0; }
.admin-share-detail-list { overflow: hidden; border: 1px solid var(--ui-border); border-radius: 7px; }
.admin-share-detail-head,
.admin-share-detail-row {
  display: grid;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.admin-share-registered-row,
.admin-share-registered-list > .admin-share-detail-head {
  grid-template-columns: minmax(125px, .9fr) minmax(170px, 1.3fr) minmax(100px, .75fr) minmax(145px, 1fr);
}
.admin-share-customer-orders-link {
  justify-self: start; min-width: 0; padding: 0; border: 0; background: transparent;
  color: var(--ui-accent-bright); font: inherit; font-weight: 700; text-align: left;
  text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 3px;
  overflow-wrap: anywhere; cursor: pointer;
}
.admin-share-customer-orders-link:hover,
.admin-share-customer-orders-link:focus-visible { color: var(--ui-text); text-decoration-color: currentColor; }
.admin-share-customer-orders-list > .admin-share-detail-head,
.admin-share-customer-order-row { grid-template-columns: minmax(190px, 1.2fr) minmax(170px, 1.2fr) minmax(110px, .7fr) minmax(160px, 1.1fr) minmax(145px, 1fr); }
.admin-share-customer-order-row strong { overflow-wrap: anywhere; }
.admin-share-deal-order-row,
.admin-share-deal-order-list > .admin-share-detail-head {
  grid-template-columns: minmax(155px, 1.25fr) minmax(100px, .75fr) minmax(145px, 1.1fr) minmax(140px, 1fr);
}
.admin-share-detail-head { padding: 10px 12px; background: rgba(255, 255, 255, 0.035); color: var(--ui-muted); font-size: 12px; }
.admin-share-detail-row { padding: 11px 12px; border-top: 1px solid var(--ui-border); color: var(--ui-muted); font-size: 12px; }
.admin-share-detail-row:first-of-type { border-top: 0; }
.admin-share-detail-row > * { min-width: 0; overflow-wrap: anywhere; }
.admin-share-detail-row strong { color: var(--ui-text); font-size: 13px; font-weight: 600; }
.admin-share-deal-groups { display: grid; gap: 12px; }
.admin-share-deal-customer { display: grid; gap: 0; overflow: hidden; border: 1px solid var(--ui-border); border-radius: 7px; background: rgba(255, 255, 255, 0.018); }
.admin-share-deal-customer-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; }
.admin-share-deal-customer-identity { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-width: 0; }
.admin-share-deal-customer-identity strong { color: var(--ui-text); font-size: 14px; }
.admin-share-deal-customer-tier { padding: 3px 8px; border: 1px solid var(--ui-border); border-radius: 999px; color: var(--ui-muted); font-size: 11px; white-space: nowrap; }
.admin-share-deal-customer-heading > span { color: var(--ui-muted); font-size: 12px; text-align: right; overflow-wrap: anywhere; }
.admin-share-deal-order-list { margin: 0 12px 12px; }
.admin-share-detail-limit { margin: 0; }

/* 代理端与站长端共享推广报表的版式，保留代理端自己的刷新与筛选操作。 */
.share-panel > .account-history-heading {
  margin-bottom: 13px;
  padding: 0 0 12px;
}
.share-panel {
  background: transparent;
  box-shadow: none;
}
.account-workspace.share-mode .account-content {
  background: var(--ui-panel-soft);
  box-shadow: none;
}
.share-panel #account-share-title {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
}
#share-enabled-content:not([hidden]) { gap: 12px; }
.share-agent-report-main { display: grid; gap: 16px; min-width: 0; }
.share-link-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  margin: 0;
  padding: 13px 15px;
  background: var(--ui-panel-soft);
}
.share-card-label { display: none; }
.share-link-copy { gap: 0; }
.share-filter { gap: 10px; padding: 8px 14px 13px; }
.share-filter-heading h3,
.share-product-block h3,
.share-orders-block h3 { font-size: 15px; line-height: 1.35; }
.share-product-block .field-hint,
.share-orders-block .field-hint { display: none; }
.share-product-grid small { display: none; }
.share-product-grid > div { min-height: 42px; padding: 6px 2px; }
.share-orders-block .account-history-heading { min-height: 48px; padding: 0 0 10px; }

@media (max-width: 900px) {
  .share-order-head { display: none; }
  .share-order-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; padding: 14px; }
  .share-order-row > * { display: grid; grid-template-columns: 66px minmax(0, 1fr); gap: 8px; align-items: baseline; }
  .share-order-row > *::before { content: attr(data-label); color: var(--ui-muted); font-size: 11px; font-weight: 600; }
  .admin-personal-order-head { display: none; }
  .admin-personal-order-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; padding: 14px; }
  .admin-personal-order-row > * { display: grid; grid-template-columns: 66px minmax(0, 1fr); gap: 8px; align-items: baseline; }
  .admin-personal-order-row > *::before { content: attr(data-label); color: var(--ui-muted); font-size: 11px; font-weight: 600; }
  .admin-share-detail-head { display: none; }
  .admin-share-registered-row,
  .admin-share-deal-order-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 14px; padding: 13px; }
  .admin-share-detail-row > * { display: grid; grid-template-columns: 66px minmax(0, 1fr); gap: 8px; align-items: baseline; }
  .admin-share-detail-row > *::before { content: attr(data-label); color: var(--ui-muted); font-size: 11px; font-weight: 600; }
  .admin-share-deal-customer-heading { align-items: flex-start; flex-direction: column; gap: 5px; }
  .admin-share-deal-customer-heading > span { text-align: left; }
}
@media (max-width: 760px) {
  .share-link-card { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .share-filter-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .share-filter-fields .button { width: 100%; }
  .admin-share-tools { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .admin-share-tools-heading,
  .admin-share-tools > .admin-share-actions { grid-column: 1; }
  .admin-share-tools > .admin-share-actions { justify-content: flex-start; }
}
@media (max-width: 620px) {
  .share-panel #account-share-title { font-size: 22px; }
  .share-link-card { padding: 14px; }
  .share-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .share-summary-grid > div { min-height: 74px; border-bottom: 1px solid var(--ui-border); }
  .share-summary-grid > div:nth-child(2) { border-right: 1px solid var(--ui-border); }
  .share-summary-grid > div:nth-child(3),
  .share-summary-grid > div:nth-child(4) { border-bottom: 1px solid var(--ui-border); }
  .share-product-grid { grid-template-columns: minmax(0, 1fr); }
  .share-order-row { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .admin-personal-order-row { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .admin-share-registered-row,
  .admin-share-deal-order-row { grid-template-columns: minmax(0, 1fr); gap: 9px; }
  .share-link-actions .button { flex: 1 1 120px; }
}
@media (max-width: 420px) {
  .share-filter-heading,
  .share-product-block .account-history-heading,
  .share-orders-block .account-history-heading { align-items: flex-start; flex-direction: column; gap: 4px; }
  .share-filter-fields { gap: 8px; }
  .share-filter-fields .button { min-height: 40px; padding-inline: 7px; font-size: 12px; }
  .share-summary-grid > div { padding: 12px; }
  .share-summary-grid strong { font-size: 21px; }
  .share-order-row > * { grid-template-columns: 62px minmax(0, 1fr); }
  .admin-personal-order-row > * { grid-template-columns: 62px minmax(0, 1fr); }
  .admin-share-tools-heading { align-items: flex-start; }
}

@media (max-width: 900px) {
  body:not(.auth-page-open) .home-announcement-content { grid-template-columns: minmax(0, 1fr) minmax(260px, 0.82fr); gap: 14px; }
}
@media (max-width: 700px) {
  body:not(.auth-page-open) .home-announcement-content { grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 14px; }
  body:not(.auth-page-open) .home-purchase-flow { padding: 14px; }
  body:not(.auth-page-open) .home-purchase-flow-heading { margin-bottom: 11px; }
  body:not(.auth-page-open) .home-purchase-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  body:not(.auth-page-open) .home-purchase-steps li:first-child:nth-last-child(5) { grid-column: 1 / -1; }
  body:not(.auth-page-open) .home-purchase-steps li {
    grid-template-columns: 27px minmax(0, 1fr);
    align-items: start;
    gap: 8px;
    min-height: 72px;
    padding: 10px 8px;
    border: 1px solid rgba(255, 229, 243, 0.1);
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.025);
  }
  body:not(.auth-page-open) .home-purchase-steps li::after { display: none; }
  body:not(.auth-page-open) .home-flow-number { width: 26px; height: 26px; }
  body:not(.auth-page-open) .home-purchase-steps strong { font-size: 13px; }
  body:not(.auth-page-open) .home-purchase-steps small { font-size: 11px; }
}

/* Compact order tables for users without a referral site. */
.admin-account-detail[data-share-enabled="false"] .admin-order-list {
  overflow: hidden;
  border: 1px solid var(--ui-border);
  border-radius: 7px;
}
.admin-account-detail[data-share-enabled="false"] .admin-order-head,
.admin-account-detail[data-share-enabled="false"] .admin-order-row {
  display: grid;
  grid-template-columns: minmax(150px, 1.35fr) minmax(100px, .8fr) minmax(150px, 1.2fr) minmax(120px, 1fr);
  gap: 10px;
  align-items: center;
  min-width: 0;
}
.admin-account-detail[data-share-enabled="false"] .admin-order-head {
  padding: 11px 13px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--ui-muted);
  font-size: 12px;
}
.admin-account-detail[data-share-enabled="false"] .admin-order-row {
  padding: 12px 14px;
  border-top: 1px solid var(--ui-border);
  color: var(--ui-muted);
  font-size: 12px;
}
.admin-account-detail[data-share-enabled="false"] .admin-order-row:first-of-type { border-top: 0; }
.admin-account-detail[data-share-enabled="false"] .admin-order-row strong {
  min-width: 0;
  color: var(--ui-text);
  font-size: 13px;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.admin-account-detail[data-share-enabled="false"] .admin-order-row span {
  min-width: 0;
  font-size: 12px;
  line-height: 1.35;
  overflow-wrap: normal;
}
.admin-account-detail[data-share-enabled="false"] .admin-order-date {
  white-space: nowrap;
}
@media (max-width: 700px) {
  .admin-account-detail[data-share-enabled="false"] .admin-order-list {
    overflow: hidden;
  }
}
@media (max-width: 900px) {
  .admin-account-detail[data-share-enabled="false"] .admin-order-head { display: none; }
  .admin-account-detail[data-share-enabled="false"] .admin-order-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 16px;
    padding: 14px;
  }
  .admin-account-detail[data-share-enabled="false"] .admin-order-row > * {
    display: grid;
    grid-template-columns: 66px minmax(0, 1fr);
    gap: 8px;
    align-items: baseline;
  }
  .admin-account-detail[data-share-enabled="false"] .admin-order-row > *::before {
    content: attr(data-label);
    color: var(--ui-muted);
    font-size: 11px;
    font-weight: 600;
  }
}
@media (max-width: 620px) {
  .admin-account-detail[data-share-enabled="false"] .admin-order-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }
}
.turnstile-slot:not([hidden]) {
  display: block;
  min-height: 65px;
  margin: 10px 0 4px;
  overflow: hidden;
}
.account-card .turnstile-slot:not([hidden]) {
  display: flex;
  justify-content: center;
}
.service-form .turnstile-slot:not([hidden]) {
  display: flex;
  grid-column: 1 / -1;
  justify-content: center;
}
#support-ticket-form .turnstile-slot:not([hidden]) {
  grid-column: 2;
  justify-content: flex-start;
}
.turnstile-slot > iframe { max-width: 100%; }
.info-dialog .turnstile-slot:not([hidden]) {
  display: flex;
  justify-content: center;
}
.account-verification-feedback:not([hidden]),
.order-verification-feedback:not([hidden]) {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 10px 0 16px;
  color: var(--ui-accent-bright);
  font-size: 14px;
  text-align: center;
}
.account-verification-feedback > span,
.order-verification-feedback > span { min-width: 0; overflow-wrap: anywhere; line-height: 1.55; }
.ticket-verification-feedback:not([hidden]) {
  display: flex;
  grid-column: 2;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  color: var(--ui-accent-bright);
  font-size: 14px;
  line-height: 1.6;
  text-align: left;
}

@media (max-width: 700px) {
  #support-ticket-form .turnstile-slot:not([hidden]),
  #support-ticket-form .ticket-verification-feedback:not([hidden]) {
    grid-column: 1;
    justify-content: flex-start;
  }
}
.share-profit-panel { display: grid; gap: 12px; margin: 8px 0 0; }
.share-profit-panel > .account-history-heading {
  align-items: center;
  min-height: 28px;
  margin: 0;
  padding: 0;
  border: 0;
}
.share-profit-panel h3,
.share-profit-panel h4 { margin: 0; color: var(--ui-text); font-size: 15px; font-weight: 600; }
.share-profit-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.share-profit-grid > div { display: grid; gap: 7px; min-width: 0; min-height: 70px; padding: 12px 14px; border: 1px solid var(--ui-border); border-radius: 7px; background: var(--ui-panel-soft); }
.share-profit-grid span { color: var(--ui-muted); font-size: 12px; }
.share-profit-grid strong { color: var(--ui-accent-bright); font-size: 21px; font-weight: 700; font-variant-numeric: tabular-nums; }
.share-profit-note { margin: 0; color: var(--ui-muted); font-size: 12px; line-height: 1.6; }
.checkout-price-summary {
  display: grid;
  gap: 12px;
  margin: 15px 0;
  padding: 19px 20px;
  border: 1px solid var(--ui-border);
  border-radius: 8px;
  background: var(--ui-panel-soft);
}
.checkout-price-summary[hidden],
.checkout-price-summary > [hidden] { display: none; }
.checkout-price-summary > div { display: flex; align-items: center; justify-content: space-between; gap: 18px; color: var(--ui-muted); font-size: 15px; line-height: 1.5; }
.checkout-price-summary > div:first-child { color: var(--ui-text); }
.checkout-price-summary strong { color: var(--ui-text); font-size: 16px; font-weight: 600; font-variant-numeric: tabular-nums; }
.checkout-price-summary .checkout-price-total { margin-top: 3px; padding-top: 14px; border-top: 1px solid var(--ui-border); color: var(--ui-text); font-size: 16px; font-weight: 700; }
.checkout-price-summary .checkout-price-total strong { color: var(--ui-accent-bright); font-size: 25px; font-weight: 700; }
@media (max-width: 520px) {
  .checkout-price-summary { gap: 10px; padding: 16px; }
  .checkout-price-summary > div { font-size: 14px; }
  .checkout-price-summary strong { font-size: 15px; }
  .checkout-price-summary .checkout-price-total strong { font-size: 22px; }
}
.share-order-head,
.share-order-row { grid-template-columns: minmax(90px,.8fr) minmax(130px,1.15fr) minmax(90px,.65fr) minmax(95px,.75fr) minmax(105px,.85fr) minmax(125px,1fr); }
.share-order-profit { color: var(--ui-accent-bright) !important; font-weight: 600; font-variant-numeric: tabular-nums; }
@media (max-width: 760px) {
  .share-profit-grid { grid-template-columns: minmax(0, 1fr); }
}

/* Keep the current premium membership card while restoring the earlier site UI. */
.home-announcement-heading-copy { display: grid; gap: 2px; min-width: 0; }
.home-announcement-kicker { color: #c7b3c0; font-size: 11px; font-weight: 600; letter-spacing: .08em; line-height: 1.2; text-transform: uppercase; }
body:not(.auth-page-open) .home-section-heading h1 { color: #fff5fa; font-size: 18px; font-weight: 700; line-height: 1.25; }
body:not(.auth-page-open) .home-announcement .announcement-megaphone { width: 22px; height: 22px; flex: 0 0 22px; color: #f0a0c1; }
#agent-panel .membership-center-lede { margin: 8px 0 0; color: var(--ui-muted); font-size: 14px; line-height: 1.6; }
#agent-tier-cards { grid-template-columns: minmax(0, 1fr); margin: 16px 0 24px; }
#agent-tier-cards .tier-advanced { position: relative; display: grid; grid-template-rows: auto auto; min-height: 0; padding: 30px 30px 24px; border-radius: 14px; border-color: rgba(229, 199, 125, .45); background: linear-gradient(125deg, rgba(68, 53, 39, .8), rgba(36, 24, 35, .95) 65%); box-shadow: inset 0 1px 0 rgba(255, 233, 182, .12), 0 12px 30px rgba(0, 0, 0, .12); }
#agent-tier-cards .agent-tier-card-heading { align-items: center; flex-wrap: wrap; gap: 20px; padding: 0; border: 0; }
#agent-tier-cards .membership-card-identity { display: grid; gap: 0; }
#agent-tier-cards .membership-card-eyebrow { color: #c9b58a; font-size: 14px; letter-spacing: 2px; }
body.auth-page-open #agent-tier-cards h3 { overflow: visible; margin: 0; color: #fff3da; font-size: 28px; font-weight: 700; line-height: 1.4; white-space: normal; letter-spacing: 1px; }
#agent-tier-cards .agent-tier-fee { display: grid; grid-template-columns: auto auto; align-items: baseline; column-gap: 10px; row-gap: 3px; margin-left: auto; text-align: right; }
#agent-tier-cards .membership-fee-caption { grid-column: 1 / -1; color: #d0bd98; font-size: 14px; letter-spacing: 1px; }
#agent-tier-cards .agent-tier-fee strong { color: #f2d58e; font-size: 40px; font-weight: 700; line-height: 1.15; font-variant-numeric: tabular-nums; }
#agent-tier-cards .agent-tier-fee del { color: #a99b9e; font-size: 16px; }
#agent-tier-cards .agent-tier-description { min-height: 0; margin: 16px 0 0; color: #cfbf9f; font-size: 14px; font-weight: 600; white-space: normal; }
#agent-tier-cards .agent-price-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 20px 0 0; }
#agent-tier-cards .agent-price-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-content: space-between; align-items: baseline; gap: 17px 10px; min-height: 112px; padding: 20px; border: 1px solid rgba(232, 208, 162, .13); border-radius: 10px; background: rgba(14, 10, 17, .24); }
#agent-tier-cards .agent-price-name { grid-column: 1 / -1; overflow: visible; color: #f7eff2; font-size: 18px; font-weight: 600; line-height: 1.5; white-space: normal; text-overflow: clip; }
#agent-tier-cards .membership-price-caption { color: #bdaeab; font-size: 14px; line-height: 1.5; }
#agent-tier-cards .agent-price-value { flex-shrink: 0; color: #f1d6a2; font-size: 26px; font-weight: 600; line-height: 1.2; font-variant-numeric: tabular-nums; }
#agent-tier-cards .agent-tier-state { justify-self: start; margin: 0; padding: 5px 11px; border: 1px solid rgba(229, 199, 125, .24); border-radius: 20px; color: #e1c888; background: rgba(229, 199, 125, .06); font-size: 14px; line-height: 1.5; }
#agent-panel .agent-redeem-form { gap: 13px; margin: 16px 0 0; padding: 18px 24px; border: 1px solid var(--ui-border); border-radius: 12px; background: rgba(255, 245, 250, .025); }
#agent-panel .membership-redeem-heading { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; }
#agent-panel .membership-redeem-heading label { color: var(--ui-text); font-size: 17px; font-weight: 600; }
#agent-panel .membership-redeem-heading span { color: var(--ui-subtle); font-size: 14px; }
#agent-panel #agent-panel-description { margin: 0; color: var(--ui-muted); font-size: 14px; line-height: 1.8; }
#agent-panel #agent-panel-description strong { color: #edcfa0; font-weight: 600; }
#agent-panel .agent-redeem-row { gap: 12px; }
#agent-panel .agent-redeem-row input { min-height: 48px; padding: 0 14px; font-size: 14px; }
#agent-panel .agent-redeem-row .button { min-height: 48px; padding: 0 24px; font-size: 15px; font-weight: 600; }
@media (max-width: 700px) {
  #agent-tier-cards { margin: 14px 0 20px; }
  #agent-tier-cards .tier-advanced { padding: 22px 18px 18px; }
  body.auth-page-open #agent-tier-cards h3 { font-size: 24px; }
  #agent-tier-cards .agent-tier-fee strong { font-size: 34px; }
  #agent-tier-cards .agent-price-list { grid-template-columns: minmax(0, 1fr); gap: 12px; margin: 16px 0 0; }
  #agent-tier-cards .agent-price-list li { min-height: 106px; padding: 18px; gap: 14px 10px; }
  #agent-tier-cards .agent-price-name { font-size: 17px; }
  #agent-tier-cards .agent-price-value { font-size: 25px; }
  #agent-panel .agent-redeem-form { margin-top: 14px; padding: 18px 16px; }
  #agent-panel .agent-redeem-row { grid-template-columns: minmax(0, 1fr); }
  #agent-panel .agent-redeem-row .button { width: 100%; }
}

/* One sans-serif family across pages, controls, dialogs and rich-text content. */
html, body, body *, body *::before, body *::after {
  font-family: var(--font-ui) !important;
}

/* Keep account navigation labels clear and consistent. */
.account-workspace .account-nav-item {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
}
@media (max-width: 700px) {
  .account-workspace .account-nav-item { font-size: 15px; }
}

/* Improve readability of the order summary labels without changing the card layout. */
.account-orders-stat span {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
}
@media (max-width: 700px) {
  .account-orders-stat span { font-size: 13px; }
}

/* Make referral report metric labels readable while keeping values prominent. */
.share-summary-grid span,
.share-profit-grid span {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
}

.service-form > label {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
}

#account-recharge-panel > .field-hint {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.65;
}

.account-profile-copy strong {
  font-size: 26px;
  font-weight: 700;
  line-height: 1.25;
}
@media (max-width: 700px) {
  .account-profile-copy strong { font-size: 22px; }
}

/* The announcement editor is the only visible panel, so let it use the full row. */
.admin-announcement-layout {
  grid-template-columns: minmax(0, 1fr);
}

/* The purchase-flow column is no longer present; let the announcement copy fill the card. */
body:not(.auth-page-open) .home-announcement-content {
  grid-template-columns: minmax(0, 1fr);
}

/* Structured announcement layout: clear groups, readable body copy, and restrained emphasis. */
body:not(.auth-page-open) #home-announcement-copy,
.admin-announcement-preview-content {
  padding: 0;
  color: #eee4eb;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.78;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
body:not(.auth-page-open) #home-announcement-copy h3,
.admin-announcement-preview-content h3 {
  display: block;
  margin: 18px 0 7px;
  padding: 8px 12px;
  border-left: 3px solid var(--ui-accent);
  border-radius: 0 7px 7px 0;
  background: linear-gradient(90deg, rgba(219, 102, 151, 0.14), transparent 78%);
  color: #fff7fb;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.38;
}
body:not(.auth-page-open) #home-announcement-copy h3:first-child,
.admin-announcement-preview-content h3:first-child { margin-top: 0; }
body:not(.auth-page-open) #home-announcement-copy p,
.admin-announcement-preview-content p {
  margin: 0 0 12px;
  color: #e7dce4;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.78;
}
body:not(.auth-page-open) #home-announcement-copy strong,
body:not(.auth-page-open) #home-announcement-copy b,
.admin-announcement-preview-content strong,
.admin-announcement-preview-content b {
  color: #fff6f9;
  font-weight: 700;
}
body:not(.auth-page-open) #home-announcement-copy h3:empty,
body:not(.auth-page-open) #home-announcement-copy h3 span:empty,
.admin-announcement-preview-content h3:empty,
.admin-announcement-preview-content h3 span:empty { display: none; }
body:not(.auth-page-open) #home-announcement-copy .announcement-rules,
.admin-announcement-preview-content .announcement-rules { margin: 6px 0 14px; }

body:not(.auth-page-open) .home-announcement {
  border-color: #e7e8eb;
  background: #fff;
  box-shadow: 0 12px 32px rgba(16, 24, 40, 0.09);
  backdrop-filter: none;
}
body:not(.auth-page-open) .home-announcement .home-section-heading {
  border-bottom-color: #ececef;
  background: #fff;
}
body:not(.auth-page-open) .home-announcement .home-section-heading h1 { color: #24262b; }
body:not(.auth-page-open) .home-announcement .home-heading-icon { color: #c73d4f; }
body:not(.auth-page-open) #home-announcement-copy,
.admin-announcement-preview-content { color: #555960; }
body:not(.auth-page-open) #home-announcement-copy h3,
.admin-announcement-preview-content h3 {
  border-left-color: #cf4353;
  background: linear-gradient(90deg, #fff0f1, rgba(255, 255, 255, 0) 82%);
  color: #34363b;
}
body:not(.auth-page-open) #home-announcement-copy p,
.admin-announcement-preview-content p { color: #555960; }
body:not(.auth-page-open) #home-announcement-copy strong,
body:not(.auth-page-open) #home-announcement-copy b,
.admin-announcement-preview-content strong,
.admin-announcement-preview-content b { color: #c73d4f; }
body:not(.auth-page-open) #home-announcement-copy h3 strong,
body:not(.auth-page-open) #home-announcement-copy h3 b,
.admin-announcement-preview-content h3 strong,
.admin-announcement-preview-content h3 b { color: #34363b; }

/* The editor only exposes controls that map directly to the homepage appearance. */
.admin-announcement-layout { grid-template-columns: minmax(0, 1.08fr) minmax(320px, .92fr); }
.admin-announcement-preview {
  align-self: stretch;
  min-height: 0;
  border-color: #e7e8eb;
  background: #fff;
  box-shadow: 0 8px 24px rgba(16, 24, 40, 0.08);
}
.admin-announcement-preview-content { min-height: 260px; }
.admin-announcement-preview-label { color: #767a82; letter-spacing: 0; }
.admin-announcement-preview h2 { color: #24262b; font-size: 18px; }

/* Improve readability of the recharge form's labels and input guidance. */
#account-recharge-panel > .recharge-form,
#account-recharge-panel > .recharge-form + .service-list-block {
  width: 100%;
  max-width: none;
}
.recharge-form > label {
  font-size: 15px;
  line-height: 1.45;
}
.recharge-form input,
.recharge-form textarea { font-size: 15px; }
.recharge-form input::placeholder,
.recharge-form textarea::placeholder { font-size: 14px; }
.recharge-form .credential-mode-static { font-size: 15px; }
.recharge-form > .session-help,
.recharge-form > .session-help strong { font-size: 15px; }
.recharge-form > .recharge-retry-hint {
  max-width: 100%;
  margin-top: 0;
  font-size: 14px;
  line-height: 1.6;
}
@media (max-width: 700px) {
  .recharge-form > label { font-size: 14px; }
  .recharge-form input,
  .recharge-form textarea { font-size: 14px; }
  .recharge-form input::placeholder,
  .recharge-form textarea::placeholder { font-size: 13px; }
  .recharge-form .credential-mode-static { font-size: 14px; }
  .recharge-form > .session-help,
  .recharge-form > .session-help strong { font-size: 14px; }
  .recharge-form > .recharge-retry-hint { font-size: 14px; }
}

/* Match the announcement card to the dark reference layout. */
body:not(.auth-page-open) .home-announcement {
  border-color: var(--ui-border);
  background: var(--ui-panel);
  box-shadow: var(--ui-shadow);
  backdrop-filter: blur(16px);
}
body:not(.auth-page-open) .home-announcement .home-section-heading {
  border-bottom-color: rgba(255, 232, 245, 0.11);
  background: rgba(255, 245, 250, 0.035);
}
body:not(.auth-page-open) .home-announcement .home-section-heading h1 { color: var(--ui-text); }
body:not(.auth-page-open) .home-announcement .home-heading-icon { color: var(--ui-accent-bright); }
body:not(.auth-page-open) #home-announcement-copy,
.admin-announcement-preview-content {
  color: #f0e7ed;
  font-size: 17px;
  line-height: 1.7;
}
body:not(.auth-page-open) #home-announcement-copy h3,
.admin-announcement-preview-content h3 {
  margin: 18px 0 8px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #fff7fb;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.4;
}
body:not(.auth-page-open) #home-announcement-copy h3:first-child,
.admin-announcement-preview-content h3:first-child { margin-top: 2px; }
body:not(.auth-page-open) #home-announcement-copy p,
.admin-announcement-preview-content p {
  margin: 0 0 13px;
  color: #eadfe7;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.7;
}
body:not(.auth-page-open) #home-announcement-copy strong,
body:not(.auth-page-open) #home-announcement-copy b,
.admin-announcement-preview-content strong,
.admin-announcement-preview-content b {
  color: #fff7fb;
  font-weight: 700;
}
body:not(.auth-page-open) #home-announcement-copy h3 strong,
body:not(.auth-page-open) #home-announcement-copy h3 b,
.admin-announcement-preview-content h3 strong,
.admin-announcement-preview-content h3 b { color: #fff7fb; }
.admin-announcement-preview {
  border-color: var(--ui-border);
  background: linear-gradient(160deg, rgba(28, 20, 40, 0.92), rgba(15, 16, 30, 0.94));
  box-shadow: var(--ui-shadow);
}
.admin-announcement-preview-label { color: var(--ui-subtle); }
.admin-announcement-preview h2 { color: var(--ui-text); }

@media (max-width: 700px) {
  body:not(.auth-page-open) #home-announcement-copy,
  .admin-announcement-preview-content { font-size: 16px; }
  body:not(.auth-page-open) #home-announcement-copy h3,
  .admin-announcement-preview-content h3 { font-size: 18px; }
  body:not(.auth-page-open) #home-announcement-copy p,
  .admin-announcement-preview-content p { font-size: 16px; }
}

/* The announcement editor uses the full available admin column. */
.admin-announcement-layout { grid-template-columns: minmax(0, 1fr); }

/* Keep saved paragraph blocks from gaining browser-default vertical gaps. */
.admin-announcement-content-editor {
  line-height: 1.55;
}
.admin-announcement-content-editor p {
  margin: 0 0 8px;
  line-height: 1.55;
}
.admin-announcement-content-editor h3 {
  margin: 12px 0 4px;
  color: #fff7fb;
  font-size: 16px;
  line-height: 1.35;
}
.admin-announcement-content-editor > :first-child { margin-top: 0; }
body:not(.auth-page-open) #home-announcement-copy,
body:not(.auth-page-open) #home-announcement-copy p,
body:not(.auth-page-open) #home-announcement-copy li,
.admin-announcement-content-editor,
.admin-announcement-content-editor p,
.admin-announcement-content-editor li,
.admin-announcement-preview-content,
.admin-announcement-preview-content p,
.admin-announcement-preview-content li {
  font-weight: 600;
}
body:not(.auth-page-open) #home-announcement-copy :is(strong, b),
.admin-announcement-content-editor :is(strong, b),
.admin-announcement-preview-content :is(strong, b) {
  font-weight: 700;
}
.admin-announcement-toolbar { gap: 7px; }
.announcement-format-button,
.announcement-color-control { min-height: 36px; }
.admin-announcement-selection-status { margin: 0; color: #a792a2; font-size: 12px; }

/* Compact rich-text toolbar inspired by the supplied editor reference. */
.admin-announcement-toolbar {
  min-height: 42px;
  gap: 4px;
  padding: 4px 6px;
  border: 1px solid rgba(221, 229, 239, .2);
  border-radius: 8px 8px 0 0;
  background: #30343a;
}
.announcement-tool,
.announcement-html-toggle {
  display: inline-flex;
  flex: 0 0 auto;
  min-width: 30px;
  height: 30px;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
  border: 1px solid transparent;
  border-radius: 5px;
  background: transparent;
  color: #e4e7eb;
  font: inherit;
  font-size: 15px;
  cursor: pointer;
}
.announcement-tool:hover,
.announcement-html-toggle:hover,
.announcement-tool[aria-pressed="true"],
.announcement-html-toggle[aria-pressed="true"] {
  border-color: rgba(255,255,255,.14);
  background: rgba(255,255,255,.1);
  color: #fff;
}
.announcement-tool-code { font-family: Consolas, monospace; font-size: 13px; }
.announcement-tool-divider { width: 1px; height: 20px; margin: 0 3px; background: rgba(255,255,255,.16); }
.announcement-toolbar-spacer { flex: 1 1 auto; }
.admin-announcement-toolbar .announcement-color-control {
  display: inline-flex;
  width: 30px;
  min-width: 30px;
  height: 30px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 5px;
  background: transparent;
  color: #f4f5f6;
  font-size: 15px;
  text-decoration: underline;
  text-decoration-color: #d95362;
  text-decoration-thickness: 2px;
  cursor: pointer;
}
.announcement-color-control input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.admin-announcement-toolbar .announcement-size-control {
  width: 62px;
  height: 30px;
  padding: 0 4px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 5px;
  background: #30343a;
  color: #e4e7eb;
  font-size: 12px;
}
.announcement-html-toggle { min-width: 72px; font-size: 12px; }
.admin-announcement-content-editor,
.admin-announcement-html-editor,
.admin-announcement-preview-content {
  box-sizing: border-box;
  width: 100%;
  min-height: 300px;
  padding: 16px 18px;
  border: 1px solid rgba(221, 229, 239, .2);
  border-top: 0;
  border-radius: 0 0 8px 8px;
  background: rgba(10, 14, 24, .7);
  color: #f7f2ec;
}
.admin-announcement-content-editor { overflow: auto; }
.admin-announcement-html-editor {
  resize: vertical;
  outline: none;
  font: 13px/1.65 Consolas, "Microsoft YaHei", monospace;
  white-space: pre-wrap;
}
.admin-announcement-content-editor[hidden],
.admin-announcement-html-editor[hidden],
.admin-announcement-preview-content[hidden] { display: none; }
.admin-announcement-preview-content { overflow-wrap: anywhere; }
.admin-announcement-preview-content :is(img) { max-width: 100%; height: auto; }
.admin-announcement-preview-content table { width: 100%; border-collapse: collapse; }
.admin-announcement-preview-content :is(th, td) { padding: 8px 10px; border: 1px solid #d8dbe0; text-align: left; }
.admin-announcement-content-editor table { border-collapse: collapse; }
.admin-announcement-content-editor :is(th, td) { min-width: 72px; padding: 6px 8px; border: 1px solid rgba(255,255,255,.24); }
.admin-announcement-content-editor blockquote { margin: 10px 0; padding: 7px 12px; border-left: 3px solid #c73d4f; background: rgba(199,61,79,.08); }
.admin-announcement-content-editor pre { overflow: auto; padding: 10px 12px; border-radius: 5px; background: rgba(0,0,0,.22); font: 13px/1.6 Consolas, monospace; }
.admin-announcement-content-editor :is(a) { color: #d46a77; text-decoration: underline; }
.admin-announcement-content-editor img { max-width: 100%; height: auto; }
@media (max-width: 700px) {
  .admin-announcement-toolbar { gap: 2px; padding: 4px; }
  .announcement-tool { min-width: 27px; height: 29px; padding-inline: 4px; }
  .announcement-tool-divider { margin-inline: 1px; }
  .announcement-html-toggle { min-width: 62px; padding-inline: 4px; font-size: 11px; }
}
@media (max-width: 760px) {
  .admin-announcement-layout { grid-template-columns: 1fr; }
}

/* A more compact homepage announcement leaves room for products above the fold. */
body:not(.auth-page-open) .home-announcement .home-section-heading {
  min-height: 40px;
  padding: 0 18px;
  justify-content: space-between;
}
body:not(.auth-page-open) .announcement-heading-label {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
}
body:not(.auth-page-open) .announcement-guide-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  min-height: 30px;
  padding: 0 10px;
  border-color: var(--ui-border-strong);
  border-radius: 6px;
  color: var(--ui-text);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.25;
  text-decoration: none;
  white-space: nowrap;
}
body:not(.auth-page-open) .announcement-guide-link svg { width: 15px; height: 15px; flex: 0 0 auto; }
body:not(.auth-page-open) .home-announcement .home-section-heading h1 {
  font-size: 16px;
  line-height: 1.25;
}
body:not(.auth-page-open) .home-announcement .announcement-megaphone {
  width: 19px;
  height: 19px;
  flex-basis: 19px;
}
body:not(.auth-page-open) .home-announcement-content {
  padding: 10px 18px 12px;
}
body:not(.auth-page-open) #home-announcement-copy,
body:not(.auth-page-open) #home-announcement-copy p,
body:not(.auth-page-open) #home-announcement-copy li {
  font-size: 15px;
  line-height: 1.5;
}
body:not(.auth-page-open) #home-announcement-copy p { margin: 0 0 6px; }
body:not(.auth-page-open) #home-announcement-copy h3 {
  margin: 12px 0 5px;
  font-size: 17px;
  line-height: 1.4;
}
body:not(.auth-page-open) #home-announcement-copy > :first-child { margin-top: 0; }
body:not(.auth-page-open) #home-announcement-copy > :last-child { margin-bottom: 0; }
@media (max-width: 700px) {
  body:not(.auth-page-open) .announcement-heading-label { gap: 8px; }
  body:not(.auth-page-open) .announcement-guide-link { min-height: 28px; gap: 4px; padding-inline: 7px; font-size: 16px; }
  body:not(.auth-page-open) .announcement-guide-link svg { width: 14px; height: 14px; }
  body:not(.auth-page-open) .home-announcement .home-section-heading { padding: 0 13px; }
  body:not(.auth-page-open) .home-announcement-content { padding: 10px 13px 12px; }
}

/* Keep the product catalog on the full available row. */
.home-catalog-layout { display: block; }
.home-catalog-layout .catalog { min-width: 0; }
body:not(.auth-page-open) .plan-card[data-plan-id^="codex-"]:where(:not(.plan-appointment)) h3,
body.auth-page-open .plan-card[data-plan-id^="codex-"]:where(:not(.plan-appointment)) h3 { overflow: hidden; font-size: 13.5px !important; text-overflow: clip; white-space: nowrap; }
@media (max-width: 700px) {
  .plan-card[data-plan-id^="codex-"] { grid-column: 1 / -1; }
  body:not(.auth-page-open) .plan-card[data-plan-id^="codex-"]:where(:not(.plan-appointment)) h3,
  body.auth-page-open .plan-card[data-plan-id^="codex-"]:where(:not(.plan-appointment)) h3 { font-size: 13px !important; }
}
#catalog-tier[data-tier="advanced"] {
  border: 2px solid #ffe28a;
  outline: 1px solid rgba(255, 232, 164, .42);
  outline-offset: 2px;
  background: linear-gradient(135deg, rgba(255, 233, 153, .28), rgba(177, 117, 25, .2));
  color: #fff0ad;
  font-size: 15px;
  font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255, 251, 222, .3), 0 0 18px rgba(255, 198, 57, .38);
  text-shadow: 0 0 11px rgba(255, 218, 105, .55);
}

.agent-badge[data-tier="owner"],
.agent-badge[data-tier="advanced"] {
  display: inline-flex;
  justify-content: center;
  width: max-content;
  min-width: 84px;
  max-width: 100%;
  min-height: 36px;
  padding: 0 12px;
  border: 2px solid #ffd84d;
  border-radius: 4px !important;
  outline: 1px solid rgba(255, 240, 166, .78);
  outline-offset: 2px;
  background: linear-gradient(135deg, rgba(112, 77, 17, .48), rgba(55, 38, 13, .78));
  color: #fff0a3;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1;
  white-space: nowrap;
  box-shadow: inset 0 1px 0 rgba(255, 250, 210, .34), 0 0 0 1px rgba(255, 207, 56, .36), 0 0 22px rgba(255, 197, 34, .56);
  text-shadow: 0 0 9px rgba(255, 224, 105, .5);
}

#account-agent-badge[data-tier="owner"],
#account-agent-badge[data-tier="advanced"],
#agent-panel-badge[data-tier="owner"],
#agent-panel-badge[data-tier="advanced"] {
  border-radius: 4px !important;
}

#account-link[data-tier="advanced"] {
  border: 1px solid rgba(255, 218, 112, .92);
  background: linear-gradient(135deg, rgba(255, 222, 128, .2), rgba(151, 100, 28, .16));
  color: #ffe28a;
  font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255, 247, 209, .2), 0 0 13px rgba(231, 179, 56, .24);
  text-shadow: 0 0 9px rgba(255, 216, 111, .34);
}
#account-link[data-tier="advanced"]:hover,
#account-link[data-tier="advanced"]:focus-visible {
  border-color: #ffe28a;
  background: linear-gradient(135deg, rgba(255, 225, 139, .28), rgba(171, 116, 31, .22));
}

#account-link[data-tier="owner"] {
  border: 1px solid #fff0a3;
  background: linear-gradient(135deg, #8a641b 0%, #d8ad3e 34%, #9b7123 66%, #f4d66f 100%);
  color: #fffbe8;
  font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255, 255, 235, .72), inset 0 -1px 0 rgba(92, 57, 7, .35), 0 0 0 1px rgba(255, 220, 104, .42), 0 0 22px rgba(255, 199, 52, .62);
  text-shadow: 0 1px 2px rgba(69, 41, 2, .78), 0 0 10px rgba(255, 249, 194, .62);
}
#account-link[data-tier="owner"]:hover,
#account-link[data-tier="owner"]:focus-visible {
  border-color: #fff8d3;
  background: linear-gradient(135deg, #a7791b 0%, #f0ca54 36%, #b68525 68%, #ffe88d 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 245, .88), 0 0 0 1px rgba(255, 232, 141, .62), 0 0 28px rgba(255, 199, 52, .82);
}

#account-link[data-tier="advanced"],
#account-link[data-tier="owner"] {
  border: 2px solid #ffd84d;
  border-color: #ffd84d !important;
  border-top-color: #ffd84d !important;
  border-right-color: #ffd84d !important;
  border-bottom-color: #ffd84d !important;
  border-left-color: #ffd84d !important;
  outline: 1px solid rgba(255, 240, 166, .78);
  outline-offset: 2px;
  background: linear-gradient(135deg, rgba(112, 77, 17, .48), rgba(55, 38, 13, .78)) !important;
  color: #fff0a3 !important;
  font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255, 250, 210, .34), 0 0 0 1px rgba(255, 207, 56, .36), 0 0 22px rgba(255, 197, 34, .56);
  text-shadow: 0 0 9px rgba(255, 224, 105, .5);
}
#account-link[data-tier="advanced"]:hover,
#account-link[data-tier="advanced"]:focus-visible,
#account-link[data-tier="owner"]:hover,
#account-link[data-tier="owner"]:focus-visible {
  border-color: #fff3ad !important;
  outline-color: #ffe68b;
  background: linear-gradient(135deg, rgba(153, 109, 22, .64), rgba(78, 54, 13, .86)) !important;
  color: #fff7d2 !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 230, .52), 0 0 0 1px rgba(255, 223, 105, .58), 0 0 28px rgba(255, 197, 34, .76);
}

#catalog-tier[data-tier="owner"] {
  border: 2px solid #ffe28a;
  outline: 1px solid rgba(255, 232, 164, .42);
  outline-offset: 2px;
  background: linear-gradient(135deg, rgba(255, 233, 153, .28), rgba(177, 117, 25, .2));
  color: #fff0ad;
  font-size: 15px;
  font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255, 251, 222, .3), 0 0 18px rgba(255, 198, 57, .38);
  text-shadow: 0 0 11px rgba(255, 218, 105, .55);
}

.admin-agent-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(170px, .48fr) auto;
  align-items: end;
  gap: 16px;
  margin: 18px 0 20px;
  padding: 20px;
  border: 1px solid rgba(239, 171, 198, .22);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(255, 255, 255, .045), rgba(238, 139, 179, .035));
}
.admin-agent-field { display: grid; min-width: 0; gap: 9px; }
.admin-agent-field > label { color: var(--ui-muted); font-size: 14px; font-weight: 700; }
.admin-agent-field input,
.admin-agent-field select { min-height: 54px; padding: 0 15px; font-size: 16px; }
.admin-agent-form > .button { min-height: 54px; padding: 0 24px; border-radius: 6px; font-size: 16px; font-weight: 700; box-shadow: 0 5px 16px rgba(219, 107, 158, .2); }
.agent-code-result {
  margin: 18px 0 22px;
  padding: 19px 20px 20px;
  border: 1px solid rgba(239, 171, 198, .28);
  border-left: 3px solid #e99ac0;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(233, 154, 192, .08), rgba(255, 255, 255, .025));
}
.agent-code-result-heading { display: flex; align-items: baseline; gap: 12px; margin-bottom: 12px; }
.agent-code-result-heading strong { color: var(--ui-text); font-size: 17px; font-weight: 700; }
.agent-code-result-heading span { color: var(--ui-muted); font-size: 13px; line-height: 1.5; }
.agent-code-result-list { display: grid; gap: 8px; }
.agent-code-result-row { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 9px 10px; border: 1px solid rgba(240, 160, 193, .28); border-radius: 6px; background: rgba(199, 91, 138, .08); }
.agent-code-result-row code { min-width: 0; flex: 1 1 auto; overflow-wrap: anywhere; color: var(--ui-text); font: 600 15px/1.45 ui-monospace, Consolas, monospace; }
.agent-code-result-copy { flex: 0 0 auto; min-height: 34px; padding-inline: 12px; font-size: 13px; }

.share-withdrawal-panel { display: grid; gap: 14px; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--ui-border); }
.share-withdrawal-balances { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.share-withdrawal-balances > div { display: grid; gap: 5px; min-width: 0; padding: 12px 14px; border: 1px solid var(--ui-border); border-radius: 7px; background: var(--ui-panel-soft); }
.share-withdrawal-balances span { color: var(--ui-muted); font-size: 13px; }
.share-withdrawal-balances strong { color: var(--ui-text); font-size: 19px; font-variant-numeric: tabular-nums; }
.share-withdrawal-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: end; }
.share-withdrawal-form label, .admin-withdrawal-note-label { display: grid; min-width: 0; gap: 6px; color: var(--ui-muted); font-size: 13px; font-weight: 600; }
.share-withdrawal-form input, .share-withdrawal-form select, .admin-withdrawal-note-label input { width: 100%; min-height: 44px; padding: 0 12px; border: 1px solid var(--ui-border); border-radius: 6px; background: var(--ui-panel-soft); color: var(--ui-text); font: inherit; }
.share-withdrawal-form > .button { min-height: 44px; }
.share-withdrawal-list, .admin-withdrawal-list { display: grid; gap: 9px; }
.share-withdrawal-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 5px 12px; align-items: center; padding: 12px 14px; border: 1px solid var(--ui-border); border-radius: 7px; background: var(--ui-panel-soft); }
.share-withdrawal-row > div { display: grid; gap: 3px; }
.share-withdrawal-row strong { color: var(--ui-text); font-size: 16px; font-variant-numeric: tabular-nums; }
.share-withdrawal-row meta, .share-withdrawal-row span { color: var(--ui-muted); font-size: 12px; }
.share-withdrawal-status { justify-self: end; padding: 4px 8px; border: 1px solid var(--ui-border); border-radius: 999px; color: var(--ui-muted); font-size: 12px; white-space: nowrap; }
.share-withdrawal-status[data-status="pending"], .share-withdrawal-status[data-status="approved"] { color: var(--ui-accent-bright); }
.share-withdrawal-status[data-status="paid"] { color: #53866a; }
.share-withdrawal-status[data-status="rejected"] { color: #aa4b55; }
.share-withdrawal-note { grid-column: 1 / -1; margin: 0; color: var(--ui-muted); font-size: 12px; line-height: 1.6; }
.share-withdrawal-empty { margin: 0; }
.admin-withdrawals-section { margin-top: 0; }
.admin-withdrawal-filter { display: flex; align-items: center; gap: 9px; color: var(--ui-muted); font-size: 13px; }
.admin-withdrawal-filter select { min-height: 40px; padding: 0 32px 0 10px; border: 1px solid var(--ui-border); border-radius: 6px; background: var(--ui-panel-soft); color: var(--ui-text); }
.admin-withdrawal-row { display: grid; gap: 9px; padding: 14px; border: 1px solid var(--ui-border); border-radius: 7px; background: var(--ui-panel-soft); }
.admin-withdrawal-heading { display: flex; align-items: center; gap: 12px; }
.admin-withdrawal-heading > strong:first-child { color: var(--ui-text); }
.admin-withdrawal-amount { margin-left: auto; color: var(--ui-accent-bright); font-size: 18px; font-variant-numeric: tabular-nums; }
.admin-withdrawal-recipient, .admin-withdrawal-saved-note { margin: 0; color: var(--ui-text); font-size: 14px; overflow-wrap: anywhere; }
.admin-withdrawal-row > .field-hint { margin: 0; }
.admin-withdrawal-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.admin-withdrawal-actions .button { min-height: 40px; }
.admin-withdrawal-saved-note { color: var(--ui-muted); font-size: 12px; }

@media (max-width: 700px) {
  .share-withdrawal-form { grid-template-columns: minmax(0, 1fr); }
  .share-withdrawal-balances { gap: 6px; }
  .share-withdrawal-balances > div { padding: 10px 8px; }
  .share-withdrawal-balances span { font-size: 12px; }
  .share-withdrawal-balances strong { font-size: 16px; }
  .admin-withdrawal-filter { width: 100%; justify-content: space-between; }
  .admin-withdrawal-heading { flex-wrap: wrap; gap: 8px; }
  .admin-withdrawal-amount { margin-left: auto; }
}

@media (max-width: 700px) {
  .admin-agent-form { grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 16px; }
  .admin-agent-form > .button { width: 100%; }
  .agent-code-result { padding: 16px; }
  .agent-code-result-heading { align-items: flex-start; flex-direction: column; gap: 4px; }
}

/* Premium withdrawal review panel: keep each review layer visually distinct. */
.admin-section-heading { display: flex; align-items: center; gap: 10px; }
.admin-ticket-badge {
  display: inline-flex;
  flex: 0 0 25px;
  align-items: center;
  justify-content: center;
  width: 25px;
  min-width: 25px;
  height: 25px;
  padding: 0;
  border: 1px solid rgba(255, 215, 137, 0.72);
  border-radius: 50%;
  background: #e6bd6a;
  color: #2d1b0e;
  box-shadow: 0 2px 8px rgba(230, 189, 106, 0.22);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}
.admin-ticket-badge[hidden] { display: none; }
#admin-ticket-badge { margin-left: auto; }
.account-nav-with-badge { justify-content: space-between; gap: 8px; }
.account-nav-badge {
  display: inline-flex;
  flex: 0 0 25px;
  align-items: center;
  justify-content: center;
  width: 25px;
  min-width: 25px;
  height: 25px;
  padding: 0;
  border: 1px solid rgba(255, 215, 137, 0.72);
  border-radius: 50%;
  background: #e6bd6a;
  color: #2d1b0e;
  box-shadow: 0 2px 8px rgba(230, 189, 106, 0.22);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}
.account-nav-badge[hidden] { display: none; }
.admin-support-policy { margin: 0; color: var(--ui-muted); font-size: 14px; line-height: 1.6; }
.admin-support-toolbar { justify-content: space-between; }
.admin-support-ticket .service-record-actions { flex-wrap: wrap; gap: 9px; padding-top: 12px; border-top: 1px solid var(--ui-border); }
.admin-review-dialog {
  width: min(520px, calc(100% - 28px));
  padding: 24px;
  border: 1px solid rgba(240, 160, 193, 0.28);
  border-radius: 12px;
  background: var(--ui-panel-strong);
  color: var(--ui-text);
  box-shadow: 0 24px 70px rgba(5, 2, 8, 0.52);
}
.admin-review-dialog::backdrop { background: rgba(7, 4, 10, 0.74); backdrop-filter: blur(5px); }
.recharge-result-dialog h2 { color: #f6dc9a; line-height: 1.5; }
.recharge-result-dialog { width: min(560px, calc(100% - 32px)); padding: 30px 34px 24px; }
.recharge-result-dialog .admin-review-dialog-heading { align-items: center; }
.recharge-result-dialog .admin-review-dialog-heading h2 { font-size: 23px; line-height: 1.4; }
.recharge-result-dialog .admin-review-dialog-description { overflow-wrap: anywhere; }
.recharge-result-refresh-note { margin: 17px 0 0; padding-top: 15px; border-top: 1px solid var(--ui-border); color: var(--ui-muted); font-size: 14px; line-height: 1.6; }
.recharge-result-dialog .admin-review-dialog-actions { display: flex; justify-content: flex-end; }
.recharge-result-dialog .admin-review-dialog-actions { margin-top: 18px; padding-top: 16px; }
.recharge-result-dialog #recharge-result-confirm { min-width: 112px; min-height: 44px; }
.admin-review-dialog-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.admin-review-dialog-kicker { margin: 0 0 5px; color: var(--ui-gold); font-size: 12px; font-weight: 700; letter-spacing: .04em; }
.admin-review-dialog h2 { margin: 0; color: var(--ui-text); font-size: 20px; }
.admin-review-dialog .icon-button { flex: 0 0 40px; width: 40px; height: 40px; margin: -5px -5px 0 0; font-size: 25px; }
.admin-review-dialog-description { margin: 16px 0 18px; color: var(--ui-muted); font-size: 14px; line-height: 1.65; }
.admin-review-dialog-field { display: grid; gap: 7px; margin-top: 14px; }
.admin-review-dialog-field label { color: var(--ui-text); font-size: 13px; font-weight: 700; }
.admin-review-dialog-field input,
.admin-review-dialog-field textarea { width: 100%; box-sizing: border-box; border: 1px solid var(--ui-border); border-radius: 7px; background: var(--ui-panel-soft); color: var(--ui-text); font: inherit; font-size: 14px; line-height: 1.6; }
.admin-review-dialog-field input { min-height: 44px; padding: 0 12px; }
.admin-review-dialog-field textarea { min-height: 108px; padding: 11px 12px; resize: vertical; }
.admin-review-dialog-field input:focus,
.admin-review-dialog-field textarea:focus { border-color: var(--ui-accent-bright); outline: 2px solid rgba(240, 160, 193, 0.18); outline-offset: 1px; }
.admin-review-dialog-feedback { margin: 10px 0 0; color: #ff9da8; font-size: 13px; }
.admin-review-dialog-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--ui-border); }
@media (max-width: 560px) {
  .admin-review-dialog { padding: 19px 16px; }
  .recharge-result-dialog { width: calc(100% - 32px); padding: 24px 21px 20px; }
  .recharge-result-dialog .admin-review-dialog-heading h2 { font-size: 20px; }
  .recharge-result-dialog .admin-review-dialog-description { margin-top: 20px; font-size: 14px; }
  .recharge-result-refresh-note { margin-top: 14px; padding-top: 13px; font-size: 14px; }
  .recharge-result-dialog .admin-review-dialog-actions { display: flex; }
  .admin-review-dialog-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .admin-review-dialog-actions .button { min-width: 0; }
}
.admin-withdrawals-section {
  overflow: hidden;
  padding: 0;
  border-color: rgba(240, 160, 193, 0.25);
  background: linear-gradient(145deg, rgba(31, 20, 36, 0.94), rgba(21, 14, 25, 0.94));
  box-shadow: 0 14px 34px rgba(5, 2, 8, 0.18), inset 0 1px rgba(255, 255, 255, 0.035);
}
.admin-withdrawals-section[open] { border-color: rgba(240, 160, 193, 0.42); }
.admin-withdrawals-section > .admin-section-summary {
  min-height: 112px;
  padding: 33px 40px;
  background: transparent;
}
.admin-withdrawals-section .admin-section-heading { display: flex; align-items: center; gap: 10px; }
.admin-withdrawals-section[open] > .admin-section-summary { border-bottom: 1px solid rgba(255, 229, 243, 0.16); }
.admin-withdrawals-section > .admin-section-content { padding: 18px 40px 30px; }
.admin-withdrawals-section .admin-section-toolbar {
  min-height: 58px;
  margin-bottom: 16px;
  padding: 9px 12px;
  border: 1px solid rgba(255, 229, 243, 0.14);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.035);
}
.admin-withdrawals-section .admin-withdrawal-filter { gap: 10px; color: var(--ui-subtle); font-size: 14px; font-weight: 700; }
.admin-withdrawals-section .admin-withdrawal-filter select {
  min-width: 128px;
  min-height: 40px;
  padding: 0 32px 0 12px;
  border-color: rgba(240, 160, 193, 0.28);
  border-radius: 8px;
  background: rgba(12, 8, 15, 0.48);
  color: var(--ui-text);
}
.admin-withdrawals-section .admin-refresh-button { min-height: 40px; border-radius: 8px; }
.admin-withdrawals-section .admin-withdrawal-list { gap: 12px; }
.admin-withdrawals-section .admin-withdrawal-row {
  position: relative;
  gap: 12px;
  padding: 17px 18px 18px;
  border-color: rgba(255, 229, 243, 0.2);
  border-radius: 10px;
  background: linear-gradient(145deg, rgba(42, 31, 45, 0.82), rgba(25, 18, 29, 0.76));
  box-shadow: 0 7px 18px rgba(5, 2, 8, 0.12);
}
.admin-withdrawals-section .admin-withdrawal-row:has(.share-withdrawal-status[data-status="pending"]) { border-left: 3px solid #f0c978; }
.admin-withdrawals-section .admin-withdrawal-row:has(.share-withdrawal-status[data-status="approved"]) { border-left: 3px solid #e6a9c5; }
.admin-withdrawals-section .admin-withdrawal-row:has(.share-withdrawal-status[data-status="paid"]) { border-left: 3px solid #86d4ae; }
.admin-withdrawals-section .admin-withdrawal-row:has(.share-withdrawal-status[data-status="rejected"]) { border-left: 3px solid #d77b90; }
.admin-withdrawals-section .admin-withdrawal-heading {
  gap: 12px;
  min-height: 30px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 229, 243, 0.12);
}
.admin-withdrawals-section .admin-withdrawal-heading > strong:first-child { font-size: 16px; font-weight: 700; }
.admin-withdrawals-section .admin-withdrawal-amount { font-size: 21px; font-weight: 700; }
.admin-withdrawals-section .share-withdrawal-status { padding: 5px 10px; border-color: rgba(255, 229, 243, 0.22); font-weight: 700; }
.admin-withdrawals-section .share-withdrawal-status[data-status="paid"] { color: #a1dfbe; border-color: rgba(134, 212, 174, 0.35); background: rgba(134, 212, 174, 0.08); }
.admin-withdrawals-section .share-withdrawal-status[data-status="rejected"] { color: #efacbb; border-color: rgba(215, 123, 144, 0.35); background: rgba(215, 123, 144, 0.08); }
.admin-withdrawals-section .admin-withdrawal-recipient {
  margin: 0;
  padding: 10px 12px;
  border: 1px solid rgba(255, 229, 243, 0.12);
  border-radius: 8px;
  background: rgba(11, 7, 14, 0.25);
  line-height: 1.55;
}
.admin-withdrawals-section .admin-withdrawal-row > .field-hint { padding-left: 2px; font-size: 12px; }
.admin-withdrawals-section .admin-withdrawal-note-label {
  gap: 8px;
  padding-top: 2px;
  color: var(--ui-subtle);
  font-size: 13px;
}
.admin-withdrawals-section .admin-withdrawal-note-label input {
  min-height: 46px;
  padding: 0 13px;
  border-color: rgba(255, 229, 243, 0.2);
  border-radius: 8px;
  background: rgba(11, 7, 14, 0.34);
}
.admin-withdrawals-section .admin-withdrawal-actions {
  gap: 9px;
  padding-top: 3px;
  border-top: 1px solid rgba(255, 229, 243, 0.1);
}
.admin-withdrawals-section .admin-withdrawal-actions .button { min-height: 40px; border-radius: 8px; font-weight: 700; }

@media (max-width: 700px) {
  .admin-withdrawals-section > .admin-section-summary { min-height: 98px; padding: 28px 26px; }
  .admin-withdrawals-section > .admin-section-content { padding: 14px 26px 24px; }
  .admin-withdrawals-section .admin-section-toolbar { min-height: 0; gap: 10px; margin-bottom: 12px; padding: 10px; }
  .admin-withdrawals-section .admin-withdrawal-row { padding: 14px 13px 15px; }
  .admin-withdrawals-section .admin-withdrawal-amount { font-size: 19px; }
}

/* Final badge sizing override: keep all notification markers equally legible. */
.admin-ticket-badge,
.account-nav-badge {
  flex: 0 0 30px;
  width: 30px;
  min-width: 30px;
  height: 30px;
  box-sizing: border-box;
  border: 2px solid #ffe7a4;
  border-radius: 50%;
  background: #d9aa4d;
  color: #241506;
  box-shadow: 0 0 0 3px rgba(229, 199, 125, 0.12), 0 6px 16px rgba(214, 163, 67, 0.32);
  font-size: 17px;
  font-weight: 700;
  line-height: 1;
  text-shadow: 0 1px rgba(255, 239, 188, 0.28);
}
.share-record-pagination { margin: 16px 0 0; padding: 16px 0 0; }
.share-order-list > .share-record-pagination { margin: 0; padding: 16px; }
@media (max-width: 600px) {
  .share-record-pagination { gap: 8px; font-size: 13px; }
  .share-record-pagination .button { padding-inline: 12px; }
}
.admin-section-heading { gap: 13px; }
.account-nav-with-badge { gap: 11px; }
@media (max-width: 700px) {
  .admin-ticket-badge,
  .account-nav-badge {
    flex-basis: 28px;
    width: 28px;
    min-width: 28px;
    height: 28px;
    font-size: 16px;
  }
}

/* Place account navigation between the profile and the full-width content. */
.account-workspace,
.account-workspace.admin-mode {
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
}
.account-workspace .account-sidebar,
.account-workspace.admin-mode .account-sidebar {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 10px;
  padding: 12px;
  overflow: visible;
}
.account-workspace .account-sidebar > .account-nav-item,
.account-workspace.admin-mode .account-sidebar > .account-nav-item {
  flex: 1 1 0;
  width: auto;
  min-width: 0;
  min-height: 52px;
  justify-content: center;
  gap: 10px;
  padding: 10px 14px;
  text-align: center;
  white-space: nowrap;
}
.account-workspace .account-sidebar > [hidden] { display: none; }
.account-workspace .account-sidebar > .account-shop-nav { flex: 1 1 0; }
.account-workspace .account-sidebar .account-shop-nav > .account-nav-item { width: 100%; }
.account-workspace .account-sidebar > .account-shop-nav[hidden] { display: none; }
@media (max-width: 1100px) {
  .account-workspace .account-sidebar,
  .account-workspace.admin-mode .account-sidebar {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 600px) {
  .account-workspace,
  .account-workspace.admin-mode { gap: 14px; }
  .account-workspace .account-sidebar,
  .account-workspace.admin-mode .account-sidebar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 10px;
  }
  .account-workspace .account-sidebar > .account-shop-nav > .account-nav-item,
  .account-workspace .account-sidebar > .account-nav-item,
  .account-workspace.admin-mode .account-sidebar > .account-nav-item {
    min-height: 48px;
    gap: 8px;
    padding: 10px;
    font-size: 15px;
  }
}

/* Keep account forms inside narrow Android viewports without clipping controls. */
.admin-load-feedback { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; color: var(--ui-muted); font-size: 14px; line-height: 1.6; }
.admin-load-feedback[hidden] { display: none; }
#admin-agent-feedback { margin: 0 0 16px; overflow-wrap: anywhere; }
#account-page :is(.account-content, .admin-dashboard, .admin-section-content, .admin-account-detail, .admin-share-tools, .admin-share-report, .service-panel, .recharge-form, .service-record) { min-width: 0; max-width: 100%; }
#account-page :is(input:not([type="checkbox"]), select, textarea) { min-width: 0; max-width: 100%; }
@media (max-width: 600px) {
  .account-page-shell, .account-page-shell.admin-mode { width: calc(100% - 20px); }
  .account-profile { grid-template-columns: auto minmax(0, 1fr); }
  .account-profile .account-email-card { grid-column: 1 / -1; width: 100%; }
  .account-email-copy { justify-self: start; }
  .account-profile .account-logout { grid-column: 1 / -1; justify-self: start; margin-left: 0; }
  .account-workspace .account-content, .account-workspace.admin-mode .account-content { min-width: 0; padding: 14px 10px; }
  .admin-user-management > .admin-section-content { padding: 0 10px 14px; }
  .admin-account-detail { padding: 12px; }
  .admin-account-hero { padding: 14px; }
  .admin-share-category-filter { flex-wrap: wrap; gap: 8px; }
  .admin-share-category-filter select { flex: 1 1 150px; }
  .admin-agent-form { padding: 12px; }
  .admin-agent-field select { padding-inline: 10px; font-size: 15px; }
  .admin-agent-history-toggle { flex-wrap: wrap; gap: 6px 10px; padding: 12px; }
  .admin-agent-row { padding-inline: 12px; }
  .admin-agent-code-cell { flex-wrap: wrap; }
  .admin-agent-code-cell code { min-width: 0; word-break: break-all; }
  .admin-pagination { flex-wrap: wrap; gap: 8px; }
  .admin-pagination > span { order: -1; flex-basis: 100%; text-align: center; overflow-wrap: anywhere; }
  .admin-share-tools input[type="date"], .share-filter-fields input[type="date"] { width: 100%; min-width: 0; max-width: 100%; box-sizing: border-box; padding-inline: 6px; }
  #account-recharge-panel .recharge-form { width: 100%; padding: 14px; }
  #account-recharge-panel :is(.recharge-inline, .recharge-check-actions) { display: flex; flex-wrap: wrap; gap: 10px; min-width: 0; }
  #account-recharge-panel .recharge-inline > input { flex: 1 1 100%; width: 100%; }
  #account-recharge-panel :is(.recharge-inline, .recharge-check-actions) > .button { flex: 1 1 130px; min-width: 0; white-space: normal; }
  #account-page .service-form :is(input, select, textarea) { font-size: 16px; }
  #account-page :is(.session-help, .service-record, .admin-earnings-order, .admin-share-detail-row) { overflow-wrap: anywhere; }
}
@media (max-width: 360px) {
  .account-email-controls { grid-template-columns: minmax(0, 1fr); }
  .share-filter-fields { grid-template-columns: minmax(0, 1fr); }
  .admin-share-tools .share-filter-fields .button { grid-column: 1; }
}

/* Shop categories use one persistent view, keeping form drafts and filters intact. */
.account-workspace .account-sidebar { position: relative; z-index: 5; }
.account-shop-nav { position: relative; display: flex; flex: 1 1 0; min-width: 0; }
.account-workspace .account-sidebar .account-shop-nav > .account-nav-item {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; min-width: 0; min-height: 52px; padding: 10px 14px; white-space: nowrap;
}
.shop-nav-chevron { width: 15px; height: 15px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.8; transition: transform 160ms ease; }
.shop-nav-chevron[hidden] { display: none; }
[aria-expanded="true"] > .shop-nav-chevron { transform: rotate(180deg); }
#account-share-nav > .shop-nav-chevron:not([hidden]) {
  display: block; flex: 0 0 16px; width: 16px; height: 16px;
  transform: rotate(0deg); transform-origin: center; transition: transform 200ms ease;
}
#account-share-nav[aria-expanded="true"] > .shop-nav-chevron { transform: rotate(180deg); }
.account-shop-menu {
  position: absolute; top: calc(100% + 10px); left: 0; z-index: 20;
  width: max-content; min-width: 220px; max-width: calc(100vw - 40px); padding: 8px;
  border: 1px solid rgba(244, 164, 195, .28); border-radius: 12px;
  background: #211824; box-shadow: 0 16px 40px rgba(0, 0, 0, .48);
  animation: shop-menu-in 150ms ease-out;
}
.account-shop-menu::before { content: ""; position: absolute; inset: -12px 0 auto; height: 12px; }
.account-shop-menu[hidden], #share-enabled-content [data-shop-content][hidden],
#share-report-main[hidden], #share-drilldown[hidden], .shop-section-caption[hidden] { display: none; }
.account-shop-menu > button {
  display: flex; align-items: center; gap: 14px; width: 100%; min-height: 64px;
  border: 1px solid transparent; border-radius: 7px; padding: 11px 14px;
  background: transparent; color: var(--ui-muted); text-align: left; cursor: pointer;
}
.account-shop-menu > button + button { margin-top: 3px; }
.account-shop-menu > button > svg { width: 22px; height: 22px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.account-shop-menu > button > span { display: grid; gap: 5px; font-size: 16px; font-weight: 700; line-height: 1.4; }
.account-shop-menu small { color: var(--ui-subtle); font-size: 12px; font-weight: 600; }
.account-shop-menu > button:is(:hover, :focus-visible, [aria-current="page"]) { color: var(--ui-text); background: var(--ui-accent-soft); border-color: rgba(244, 164, 195, .22); }
.account-shop-menu > button:focus-visible { outline: 2px solid var(--ui-accent); outline-offset: -2px; }
.account-shop-menu > button[aria-current="page"] > svg { color: var(--ui-accent-bright); }
.account-admin-menu { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; width: min(440px, calc(100vw - 32px)); min-width: 0; }
.account-admin-menu > button { min-width: 0; min-height: 72px; gap: 10px; padding-inline: 10px; }
.account-admin-menu > button + button { margin-top: 0; }
.account-admin-menu > button > span { min-width: 0; }
.account-admin-menu .admin-category-copy { display: grid; min-width: 0; gap: 4px; }
.account-admin-menu .admin-category-title { display: flex; align-items: center; gap: 8px; min-width: 0; color: inherit; font-size: 18px; font-weight: 700; line-height: 1.25; }
.account-admin-menu > button small { white-space: normal !important; line-height: 1.35; }
.account-admin-menu > button[aria-current="page"] { color: var(--ui-text); border-color: rgba(244, 164, 195, .28); background: var(--ui-accent-soft); }
.account-admin-menu > button[aria-current="page"] > span { color: var(--ui-text); }
.account-admin-nav > .admin-nav-item[aria-expanded="true"] { border-color: var(--ui-border-strong); }
.account-workspace .account-sidebar > .account-admin-nav { flex-grow: 1.2; }
.account-workspace .account-sidebar #admin-open {
  justify-content: center; gap: 8px; padding-inline: 10px;
}
#admin-open > span:first-child { flex: 0 0 auto; white-space: nowrap; }
#admin-open > #admin-ticket-badge {
  flex: 0 0 auto; width: auto; min-width: 26px; height: 26px; margin: 0; padding: 0 4px;
  font-size: 16px; font-variant-numeric: tabular-nums;
}
#admin-open > .shop-nav-chevron {
  display: block; flex: 0 0 16px; width: 16px; height: 16px;
  transform-origin: center; transition: transform 200ms ease;
}
#admin-open[aria-expanded="true"] > .shop-nav-chevron { transform: rotate(180deg); }
@media (max-width: 600px) {
  .account-workspace .account-sidebar #admin-open { gap: 6px; padding-inline: 6px; }
  #admin-open > #admin-ticket-badge { min-width: 24px; height: 24px; font-size: 15px; }
  #admin-open > .shop-nav-chevron { flex-basis: 14px; width: 14px; height: 14px; }
}
@media (max-width: 360px) {
  .account-workspace .account-sidebar #admin-open { gap: 5px; font-size: 16px !important; }
}
@media (prefers-reduced-motion: reduce) {
  #admin-open > .shop-nav-chevron { transition: none; }
}
#admin-dashboard .admin-section-summary { display: none; }
.account-admin-menu .admin-category-badge {
  flex: 0 0 auto !important; width: auto; min-width: 23px; height: 23px; margin: 0;
  padding: 0 5px; border: 2px solid #d8a94f; border-radius: 999px;
  outline: none;
  background: #d8a94f; color: #21170b; box-shadow: none;
  font-size: 12px; font-weight: 800; line-height: 1; text-shadow: none;
}
#admin-dashboard .admin-category-heading { min-height: 58px; align-items: center; margin-bottom: 16px; }
#admin-dashboard .admin-category-heading h2 { margin: 0; font-size: 24px; line-height: 1.3; }
#admin-dashboard .admin-category-heading .field-hint { margin: 4px 0 0; }
#admin-dashboard .admin-category-heading.is-compact { min-height: 40px; margin-bottom: 12px; }
.admin-station-date-filter > div:first-child { gap: 0; }
#admin-dashboard .admin-category-overview { display: grid; gap: 14px; }
#admin-dashboard .admin-category-overview > .admin-section[hidden],
#admin-dashboard > [data-admin-content][hidden] { display: none; }
#admin-dashboard .admin-category-overview > .admin-earnings-details[hidden] { display: none; }
#account-share-panel > .account-history-heading > div { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 16px; }
.shop-section-caption { padding-left: 16px; border-left: 1px solid var(--ui-border); color: var(--ui-muted); font-size: 15px; font-weight: 600; line-height: 1.5; }
#share-report-main > :is(.share-profit-panel, .share-withdrawal-panel):not([hidden]) { margin-top: 0; border-top: 0; padding-top: 0; }
@keyframes shop-menu-in { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 1100px) {
  .account-shop-menu { left: auto; right: 0; }
  .account-admin-menu { left: 0; right: auto; }
}
@media (max-width: 600px) {
  .account-workspace .account-sidebar .account-shop-nav > .account-nav-item { min-height: 48px; padding: 10px; font-size: 15px; gap: 8px; }
  .account-shop-menu { left: 0; right: auto; }
  .account-admin-menu { width: min(440px, calc(100vw - 32px)); gap: 4px; }
  .account-admin-menu > button { gap: 8px; padding: 10px 6px; }
  .account-admin-menu > button > svg { width: 19px; height: 19px; }
  .account-admin-menu .admin-category-title { gap: 5px; font-size: 16px; }
  .account-admin-menu > button small { font-size: 12px; }
  #admin-dashboard .admin-category-heading { min-height: 52px; margin-bottom: 12px; }
  #admin-dashboard .admin-category-heading h2 { font-size: 21px; }
}
@media (prefers-reduced-motion: reduce) {
  .account-shop-menu { animation: none; }
  .shop-nav-chevron, #account-share-nav > .shop-nav-chevron:not([hidden]) { transition: none; }
}

/* Shared type scale keeps the same full, modern sans-serif style in every view. */
:root {
  --type-body: 15px;
  --type-caption: 14px;
  --type-section: 18px;
  --type-title: 24px;
  --type-announcement: 16px;
  --type-weight-body: 600;
  --type-weight-heading: 600;
}
body { font-size: var(--type-body); font-weight: var(--type-weight-body); font-optical-sizing: auto; }
body :is(h1, h2, h3, h4, h5, h6):not([data-announcement-surface] *):not([data-announcement-title]) { font-weight: var(--type-weight-heading) !important; }
body :is(button, summary, .button) { font-weight: 600 !important; }
body :is(input, select, textarea) { font-weight: var(--type-weight-body); }
body :is(label, dt, th) { font-weight: var(--type-weight-heading); }
body :is(strong, b) { font-weight: 700; }
body :is(.main-nav a, .account-nav-item, .catalog-filter),
body .account-shop-menu > button > span {
  font-size: 18px !important;
  font-weight: 600 !important;
  letter-spacing: normal;
}
/* Keep the account identity and tier label visually aligned with the main navigation. */
body :is(.account-button, #catalog-tier) {
  font-family: inherit !important;
  font-size: 18px !important;
  font-weight: 600 !important;
}
.account-shop-menu small { white-space: nowrap; font-weight: 600; }
@media (max-width: 360px) {
  .account-workspace .account-sidebar .account-shop-nav > .account-nav-item { gap: 4px; padding-inline: 6px; }
}

/* Explanations and placeholders follow the same typeface and readable size as body copy. */
body :is(input, textarea)::placeholder {
  font-family: var(--font-ui) !important;
  font-size: var(--type-caption);
  font-weight: var(--type-weight-body);
  opacity: 1;
}
body :is(.field-hint, .membership-center-lede, .account-lede, .account-orders-lede,
  .account-email-copy p, .account-switch, .account-history-empty, .account-feedback,
  .admin-load-feedback, .shop-section-caption, .share-guide-overview,
  .share-profit-note, .share-withdrawal-policy, .service-record-status-message) {
  font-size: var(--type-caption) !important;
  font-weight: var(--type-weight-body);
  line-height: 1.6;
}
body :is(.account-form, .service-form, .share-withdrawal-form, .admin-agent-form,
  .integration-form, .admin-review-dialog-field) label,
body .membership-redeem-heading label {
  font-size: var(--type-body);
  font-weight: var(--type-weight-heading);
}
body .account-email-copy label { font-size: var(--type-section); font-weight: var(--type-weight-heading); }
body .account-history-heading h2 { font-size: var(--type-title); }
body .account-history-heading h3 { font-size: var(--type-section); }
body :is(.button, .text-button, .plan-action, .account-logout) { font-size: var(--type-body); }
body .account-shop-menu small { font-size: 13px; font-weight: var(--type-weight-body); }
body .account-shop-menu > button > span { font-weight: var(--type-weight-heading); }
body :is(.account-order-heading, .service-record-heading, .admin-share-detail-row strong) {
  font-size: var(--type-body);
  font-weight: var(--type-weight-heading);
}
body :is(.account-order-date, .account-order-number, .service-record-meta,
  .share-withdrawal-note, .admin-support-policy, .admin-review-dialog-description) {
  font-size: var(--type-caption);
  font-weight: var(--type-weight-body);
}
/* Announcement body uses the same semibold style as navigation and other copy. */
body:not(.auth-page-open) #home-announcement-copy,
body:not(.auth-page-open) #home-announcement-copy :is(p, li),
.admin-announcement-content-editor,
.admin-announcement-content-editor :is(p, li),
.admin-announcement-preview-content,
.admin-announcement-preview-content :is(p, li) {
  font-weight: var(--type-weight-body);
}
body:not(.auth-page-open) #home-announcement-copy,
body:not(.auth-page-open) #home-announcement-copy :is(p, li),
.admin-announcement-content-editor,
.admin-announcement-content-editor :is(p, li),
.admin-announcement-preview-content,
.admin-announcement-preview-content :is(p, li) {
  font-size: var(--type-announcement);
  line-height: 1.55;
}
body:not(.auth-page-open) #home-announcement-copy h3,
.admin-announcement-content-editor h3,
.admin-announcement-preview-content h3 {
  font-size: var(--type-section);
  font-weight: var(--type-weight-heading);
}
@media (max-width: 600px) {
  body :is(input, select, textarea) { font-size: 16px; }
}

/* Order/customer reports share the shop settings' framed, spacious hierarchy. */
#share-report-main:has(> .share-summary-grid:not([hidden])) {
  gap: 24px; padding: 26px; margin-top: 8px;
  border: 1px solid rgba(220, 184, 112, .32); border-radius: 14px;
  background: linear-gradient(125deg, rgba(194, 151, 67, .08), rgba(255, 255, 255, .025) 65%);
}
#share-report-main:has(> .share-summary-grid:not([hidden])) > .share-filter,
#share-report-main > :is(.share-product-block, .share-orders-block) {
  min-width: 0; margin: 0; padding: 22px;
  border: 1px solid var(--ui-border); border-radius: 11px;
  background: rgba(15, 11, 18, .28);
}
#share-report-main:has(> .share-summary-grid:not([hidden])) .share-filter { gap: 20px; }
#share-report-main:has(> .share-summary-grid:not([hidden])) .share-filter-heading {
  flex-wrap: wrap; align-items: baseline; gap: 8px 20px;
}
#share-report-main:has(> .share-summary-grid:not([hidden])) .share-filter-heading h3 {
  font-size: 24px; line-height: 1.4;
}
#share-report-main:has(> .share-summary-grid:not([hidden])) .share-filter-fields {
  gap: 12px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto auto;
}
#share-report-main:has(> .share-summary-grid:not([hidden])) .share-filter-fields label {
  gap: 9px; font-size: 14px;
}
#share-report-main:has(> .share-summary-grid:not([hidden])) .share-filter-fields :is(input, .button) {
  min-height: 48px; border-radius: 7px; font-size: 15px;
}
#share-report-main:has(> .share-summary-grid:not([hidden])) .share-filter-fields .button { padding-inline: 18px; }
#share-report-main:has(> .share-summary-grid:not([hidden])) .share-filter-fields button[type="submit"] {
  border-color: rgba(233, 141, 179, .45); background: var(--ui-accent-soft); color: var(--ui-accent-bright);
}
#share-report-main:has(> .share-summary-grid:not([hidden])) > .share-category-filter { gap: 16px; }
#share-report-main:has(> .share-summary-grid:not([hidden])) .share-category-filter label { font-size: 16px; }
#share-report-main:has(> .share-summary-grid:not([hidden])) .share-category-filter select {
  min-width: 180px; min-height: 44px; padding-inline: 14px 36px; font-size: 15px;
}
#share-report-main > .share-summary-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px;
  margin: 0; border: 0; background: transparent;
}
#share-report-main > .share-summary-grid > :is(div, button.share-summary-card-action) {
  display: grid; align-content: center; gap: 12px; min-width: 0;
  min-height: 116px; padding: 20px;
  border: 1px solid var(--ui-border); border-radius: 10px;
  background: rgba(255, 255, 255, .025);
}
#share-report-main > .share-summary-grid > :is(div, button)::before { display: none; }
#share-report-main > .share-summary-grid span { color: var(--ui-muted); font-size: 14px; line-height: 1.5; }
#share-report-main > .share-summary-grid strong {
  color: var(--ui-text); font-size: 30px; line-height: 1.2; font-variant-numeric: tabular-nums;
}
#share-report-main > .share-summary-grid > :last-child strong { color: var(--ui-accent-bright); }
#share-report-main > .share-summary-grid > button.share-summary-card-action:hover {
  border-color: var(--ui-border-strong); background: var(--ui-accent-soft);
}
#share-report-main > :is(.share-product-block, .share-orders-block) { gap: 18px; }
#share-report-main > :is(.share-product-block, .share-orders-block) > .account-history-heading {
  min-height: 0; margin: 0; padding: 0 0 18px; border-bottom: 1px solid var(--ui-border);
}
#share-report-main > :is(.share-product-block, .share-orders-block) h3 { font-size: 20px; line-height: 1.5; }
#share-product-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; }
#share-product-summary > div {
  min-height: 58px; padding: 14px 0; gap: 12px;
  grid-template-columns: minmax(0, 1fr) auto;
}
#share-product-summary > div:nth-last-child(-n+2) { border-bottom: 0; }
#share-product-summary > div:nth-last-child(2):nth-child(even) { border-bottom: 1px solid var(--ui-border); }
#share-product-summary span { color: var(--ui-text); font-size: 15px; line-height: 1.6; overflow-wrap: anywhere; }
#share-product-summary strong { color: var(--ui-gold); font-size: 22px; line-height: 1.4; }
#share-order-list { min-width: 0; border-radius: 8px; background: rgba(255, 255, 255, .015); }
#share-order-list .share-order-head { padding: 16px; font-size: 13px; }
#share-order-list .share-order-row { padding: 18px 16px; font-size: 14px; }
#share-order-list .share-order-row > * { min-width: 0; overflow-wrap: anywhere; }
#share-order-list .share-order-row strong { font-size: 15px; }
#share-order-list .account-history-empty {
  display: grid; place-items: center; min-height: 108px; margin: 0; padding: 24px; text-align: center;
}
#share-order-list .admin-pagination { padding: 16px; }
@media (max-width: 1000px) {
  #share-report-main:has(> .share-summary-grid:not([hidden])) .share-filter-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  #share-report-main > .share-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #share-order-list .share-order-head { display: none; }
  #share-order-list .share-order-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  #share-order-list .share-order-row > * {
    display: grid; grid-template-columns: 66px minmax(0, 1fr); gap: 8px; align-items: baseline;
  }
  #share-order-list .share-order-row > *::before {
    content: attr(data-label); color: var(--ui-muted); font-size: 12px; font-weight: 600;
  }
}
@media (max-width: 620px) {
  #share-report-main:has(> .share-summary-grid:not([hidden])) { padding: 16px 12px; gap: 20px; }
  #share-report-main:has(> .share-summary-grid:not([hidden])) > .share-filter,
  #share-report-main > :is(.share-product-block, .share-orders-block) { padding: 16px; }
  #share-report-main:has(> .share-summary-grid:not([hidden])) .share-filter-heading h3 { font-size: 22px; }
  #share-report-main:has(> .share-summary-grid:not([hidden])) .share-category-filter select { min-width: 0; max-width: 65%; }
  #share-report-main > .share-summary-grid { gap: 10px; }
  #share-report-main > .share-summary-grid > :is(div, button.share-summary-card-action) { min-height: 104px; padding: 16px 12px; }
  #share-report-main > .share-summary-grid strong { font-size: 26px; }
  #share-report-main > :is(.share-product-block, .share-orders-block) h3 { font-size: 18px; }
  #share-product-summary { grid-template-columns: minmax(0, 1fr); }
  #share-product-summary > div:nth-last-child(2) { border-bottom: 1px solid var(--ui-border); }
  #share-product-summary span { font-size: 14px; }
  #share-order-list .share-order-row { grid-template-columns: minmax(0, 1fr); padding: 16px 12px; }
  #share-order-list .admin-pagination { padding: 12px 8px; gap: 8px; }
}
@media (max-width: 380px) {
  #share-report-main:has(> .share-summary-grid:not([hidden])) .share-filter-fields label { grid-column: 1 / -1; }
}

/* One readable date control for shop reports and every dynamically built admin filter. */
.share-filter-fields:has(input[type="date"]) > .button { min-height: 54px !important; }
body input[type="date"] {
  box-sizing: border-box; width: 100%; min-width: 0; max-width: 100%;
  min-height: 54px !important; padding: 12px 16px !important;
  border: 1px solid var(--ui-border); border-radius: 8px;
  background: rgba(255, 245, 250, .045); color: var(--ui-text);
  font-family: var(--font-ui) !important; font-size: 18px !important;
  font-weight: 600 !important; line-height: 1.5;
  letter-spacing: .02em; word-spacing: normal; font-variant-numeric: tabular-nums;
  color-scheme: dark; cursor: pointer;
  transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}
body input[type="date"]:hover { border-color: var(--ui-border-strong); background: rgba(255, 245, 250, .065); }
body input[type="date"]:focus-visible {
  outline: 2px solid rgba(233, 141, 179, .38); outline-offset: 2px;
  border-color: var(--ui-accent); box-shadow: 0 0 0 3px rgba(233, 141, 179, .08);
}
body input[type="date"]::-webkit-datetime-edit { padding: 0; font: inherit; }
body input[type="date"]::-webkit-datetime-edit-fields-wrapper { padding: 0; }
body input[type="date"]::-webkit-datetime-edit-year-field,
body input[type="date"]::-webkit-datetime-edit-month-field,
body input[type="date"]::-webkit-datetime-edit-day-field {
  padding: 2px 3px; font: inherit; border-radius: 3px;
}
body input[type="date"]::-webkit-datetime-edit-text { padding: 0 4px; color: var(--ui-muted); font: inherit; }
body input[type="date"]::-webkit-calendar-picker-indicator {
  flex: 0 0 auto; width: 21px; height: 21px; margin: 0 0 0 10px; padding: 3px;
  opacity: .85; cursor: pointer;
}
@media (max-width: 600px) {
  .share-filter-fields:has(input[type="date"]) { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .share-filter-fields > label:has(input[type="date"]) { grid-column: 1 / -1; }
  body input[type="date"] { padding: 12px !important; }
  body input[type="date"]::-webkit-datetime-edit-year-field,
  body input[type="date"]::-webkit-datetime-edit-month-field,
  body input[type="date"]::-webkit-datetime-edit-day-field { padding-inline: 2px; }
  body input[type="date"]::-webkit-datetime-edit-text { padding-inline: 2px; }
  body input[type="date"]::-webkit-calendar-picker-indicator { margin-left: 6px; padding: 2px; }
}

/* Final outer frame override for station owner user reports. */
.admin-share-report {
  gap: 22px;
  margin: 8px 0 0;
  padding: 24px;
  border: 1px solid rgba(220, 184, 112, .34);
  border-radius: 14px;
  background: linear-gradient(125deg, rgba(194, 151, 67, .08), rgba(255, 255, 255, .025) 65%);
}
@media (max-width: 620px) {
  .admin-share-report { gap: 18px; padding: 14px 12px; }
}

.admin-station-summary > .admin-section-content { --station-section-gap: 20px; display: grid; gap: var(--station-section-gap); }
.admin-station-date-filter { display: grid; gap: 17px; padding: 20px 22px 0; border: 0; border-radius: 0; background: transparent; }
.admin-station-date-filter > div:first-child { display: grid; gap: 5px; margin-inline: -22px; }
.admin-station-date-filter h3 { margin: 0; color: var(--ui-text); font-size: 19px; font-weight: 700; line-height: 1.4; }
.admin-station-date-filter p { margin: 0; color: var(--ui-muted); font-size: 13px; line-height: 1.6; }
.admin-station-date-controls { display: grid; grid-template-columns: minmax(190px, 1fr) minmax(190px, 1fr) auto auto; align-items: end; gap: 12px; margin-inline: -22px; }
.admin-station-date-controls label { display: grid; gap: 7px; min-width: 0; color: var(--ui-muted); font-size: 13px; font-weight: 600; }
.admin-station-date-controls input { min-width: 0; }
.admin-station-date-controls .button { min-height: 54px; padding-inline: 18px; white-space: nowrap; }
.admin-station-toolbar { display: grid; grid-template-columns: auto minmax(240px, 420px); align-items: center; justify-content: space-between; gap: 14px; margin-block: calc(12px - var(--station-section-gap)); }
.admin-station-search-label { color: var(--ui-text); font-size: 15px; font-weight: 600; }
.admin-station-search-controls { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
.admin-station-search-controls input { min-width: 0; min-height: 44px; padding: 10px 14px; border: 1px solid var(--ui-border); border-radius: 7px; background: rgba(10, 8, 12, .24); color: var(--ui-text); }
.admin-station-search-controls .button { min-height: 44px; }
.admin-station-scroll-hint { display: none; margin: -12px 0 0; color: var(--ui-muted); font-size: 12px; line-height: 1.5; }
.admin-station-metrics,
.admin-station-detail-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.admin-station-metrics { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.admin-station-metrics > div,
.admin-station-detail-metrics > div { display: grid; align-content: center; gap: 9px; min-width: 0; min-height: 94px; padding: 17px; border: 1px solid var(--ui-border); border-radius: 9px; background: rgba(255, 255, 255, .025); }
.admin-station-metrics span,
.admin-station-detail-metrics span { color: var(--ui-muted); font-size: 13px; line-height: 1.4; }
.admin-station-metrics span { font-size: 15px; }
.admin-station-metrics strong,
.admin-station-detail-metrics strong { color: var(--ui-text); font-size: 23px; line-height: 1.25; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.admin-station-metrics > div:last-child strong,
.admin-station-detail-metrics > .is-highlight strong { color: var(--ui-accent-bright); }
.admin-station-list { min-width: 0; }
.admin-station-pagination { margin: 14px 0 0; padding: 13px 2px 0; border-top: 1px solid var(--ui-border); }
.admin-station-pagination[hidden] { display: none; }
.admin-station-pagination > span { text-align: center; font-variant-numeric: tabular-nums; }
.admin-station-pagination .button:disabled { opacity: .42; cursor: default; }
.admin-station-table-wrap { min-width: 0; overflow-x: auto; border: 1px solid var(--ui-border-strong); border-radius: 9px; scrollbar-color: rgba(233, 141, 179, .45) rgba(255,255,255,.04); }
.admin-station-table-wrap:focus-visible { outline: 2px solid var(--ui-accent-bright); outline-offset: 3px; }
.admin-station-table { width: 100%; min-width: 1010px; border-collapse: collapse; table-layout: fixed; background: rgba(255, 255, 255, .018); }
.admin-station-table th,
.admin-station-table td { padding: 17px 14px; border-bottom: 1px solid var(--ui-border); text-align: center; vertical-align: middle; line-height: 1.55; }
.admin-station-table thead th { padding-block: 15px; background: rgba(255, 255, 255, .04); color: var(--ui-muted); font-size: 13px; font-weight: 600; white-space: nowrap; }
.admin-station-table thead th:first-child { width: 14%; text-align: left; }
.admin-station-table thead th:nth-child(2) { width: 25%; text-align: center; }
.admin-station-table thead th:nth-child(3) { width: 10%; }
.admin-station-table thead th:nth-child(4),
.admin-station-table thead th:nth-child(5) { width: 10%; }
.admin-station-table thead th:nth-child(6),
.admin-station-table thead th:nth-child(7) { width: 13%; }
.admin-station-table thead th:last-child { width: 12%; }
.admin-station-table tbody tr:last-child > * { border-bottom: 0; }
.admin-station-table tbody tr:hover { background: rgba(255, 255, 255, .025); }
.admin-station-table tbody th { color: var(--ui-text); text-align: left; }
.admin-station-table-identity { min-width: 0; }
.admin-station-table-identity strong { color: var(--ui-text); font-size: 15px; font-weight: 700; overflow-wrap: anywhere; }
.admin-station-status { padding: 4px 9px; border: 1px solid var(--ui-border); border-radius: 999px; color: var(--ui-muted); font-size: 12px; white-space: nowrap; }
.admin-station-status.is-active { border-color: rgba(119, 204, 164, .32); background: rgba(119, 204, 164, .08); color: #a8dfc4; }
.admin-station-domain { min-width: 0; color: var(--ui-muted); font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
.admin-station-table td { color: var(--ui-text); font-size: 14px; }
.admin-station-table .admin-station-domain { display: inline-block; text-align: left; }
.admin-station-table .admin-station-earnings-cell,
.admin-station-table .admin-station-balance-cell { font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.admin-station-table .admin-station-balance-cell { color: var(--ui-accent-bright); }
.admin-station-open { min-height: 38px; padding-inline: 12px; white-space: nowrap; }
.admin-station-detail { display: grid; gap: 18px; min-width: 0; padding: 20px; border: 0; border-radius: 0; background: rgba(15, 11, 18, .28); }
.admin-station-detail[hidden] { display: none; }
.admin-station-detail-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--ui-border); }
.admin-station-detail-heading > div { display: grid; gap: 6px; min-width: 0; }
.admin-station-detail-range { color: var(--ui-muted); font-size: 13px; }
.admin-station-detail-heading h3,
.admin-station-orders-heading h4 { margin: 0; color: var(--ui-text); font-size: 21px; font-weight: 700; line-height: 1.4; }
.admin-station-detail-heading a { color: var(--ui-muted); font-size: 13px; overflow-wrap: anywhere; }
.admin-station-detail-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.admin-station-detail-metrics > div { min-height: 86px; }
.admin-station-detail-metrics > .is-highlight { border-color: rgba(233, 141, 179, .38); background: var(--ui-accent-soft); }
.admin-station-profit-note { padding: 13px 15px; border-left: 3px solid var(--ui-gold); border-radius: 4px; background: rgba(220, 184, 112, .07); color: var(--ui-muted); font-size: 14px; line-height: 1.6; }
.admin-station-orders-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--ui-border); }
.admin-station-orders-heading h4 { font-size: 18px; }
.admin-station-orders-heading > span { color: var(--ui-muted); font-size: 13px; }
.admin-station-order-list { min-width: 0; overflow: hidden; border: 1px solid var(--ui-border); border-radius: 8px; }
.admin-station-order-head,
.admin-station-order-row { display: grid; grid-template-columns: minmax(145px, 1.05fr) minmax(145px, 1.1fr) minmax(110px, .8fr) minmax(150px, 1.1fr) minmax(90px, .7fr) minmax(150px, 1.1fr) minmax(100px, .8fr) minmax(100px, .8fr); gap: 10px; align-items: center; }
.admin-station-order-head { padding: 12px 14px; background: rgba(255, 255, 255, .035); color: var(--ui-muted); font-size: 12px; }
.admin-station-order-row { padding: 14px; border-top: 1px solid var(--ui-border); color: var(--ui-muted); font-size: 12px; }
.admin-station-order-row > * { min-width: 0; overflow-wrap: anywhere; }
.admin-station-order-row strong { color: var(--ui-text); font-size: 13px; font-weight: 600; }
.admin-station-order-pagination { margin-top: 0; }
@media (max-width: 1100px) {
  .admin-station-date-filter > div:first-child { margin-inline: 0; }
  .admin-station-date-controls { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-inline: 0; }
  .admin-station-date-controls .button { width: 100%; }
  .admin-station-scroll-hint { display: block; }
  .admin-station-order-head { display: none; }
  .admin-station-order-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .admin-station-order-row > * { display: grid; grid-template-columns: 80px minmax(0, 1fr); gap: 8px; align-items: baseline; }
  .admin-station-order-row > *::before { content: attr(data-label); color: var(--ui-muted); font-size: 11px; font-weight: 600; }
}
@media (max-width: 1100px) {
  .admin-station-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .admin-station-summary > .admin-section-content { --station-section-gap: 15px; padding-inline: 12px; }
  .admin-station-date-filter { gap: 13px; padding: 16px 13px 0; }
  .admin-station-date-filter h3 { font-size: 18px; }
  .admin-station-date-controls { gap: 10px; }
  .admin-station-date-controls label { grid-column: 1 / -1; }
  .admin-station-date-controls .button { min-height: 48px; }
  .admin-station-toolbar { grid-template-columns: minmax(0, 1fr); align-items: stretch; gap: 8px; }
  .admin-station-search-controls { grid-template-columns: minmax(0, 1fr) auto; }
  .admin-station-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .admin-station-metrics > div { min-height: 82px; padding: 13px; }
  .admin-station-metrics strong { font-size: 19px; }
  .admin-station-open { min-height: 36px; padding-inline: 10px; font-size: 13px; }
  .admin-station-detail { gap: 14px; padding: 14px 11px; }
  .admin-station-detail-heading { align-items: flex-start; }
  .admin-station-detail-heading h3 { font-size: 18px; }
  .admin-station-detail-heading .button { flex: 0 0 auto; min-height: 38px; padding-inline: 10px; }
  .admin-station-detail-metrics { gap: 8px; }
  .admin-station-detail-metrics > div { min-height: 75px; padding: 11px; }
  .admin-station-detail-metrics strong { font-size: 17px; }
  .admin-station-order-row { grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 13px 11px; }
  .admin-station-order-row > * { grid-template-columns: 78px minmax(0, 1fr); }
  .admin-station-order-pagination { gap: 8px; padding-inline: 2px; }
}

/* Shop opening: scoped introduction for accounts without an active shop. */
#share-disabled-state {
  --opening-text: #f5eff1;
  --opening-muted: #c0b6bf;
  --opening-gold: #f0d298;
  display: grid;
  gap: 26px;
  color: var(--opening-text);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-weight: 400;
}
#share-disabled-state[hidden] { display: none; }
#share-disabled-state :is(h3, h4, p) { margin: 0; }
#share-disabled-state :is(h3, h4) { color: var(--opening-text); letter-spacing: .02em; }
#share-disabled-state .shop-opening-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 36px;
  align-items: center;
  padding: 38px;
  border: 1px solid rgba(240, 210, 152, .22);
  border-radius: 18px;
  background: radial-gradient(ellipse at 15% 0%, rgba(157, 90, 114, .2), transparent 65%), linear-gradient(120deg, #261c29, #17131c);
}
#share-disabled-state .shop-opening-eyebrow { display: block; margin-bottom: 17px; color: var(--opening-gold); font-size: 14px; letter-spacing: .14em; font-weight: 600; }
#share-disabled-state .shop-opening-intro h3 { font-size: clamp(28px, 3vw, 42px); line-height: 1.35; font-weight: 600 !important; letter-spacing: .03em; }
#share-disabled-state .shop-opening-intro h3 > span { color: var(--opening-gold); }
#share-disabled-state .shop-opening-intro p { margin-top: 19px; color: var(--opening-muted); font-size: 16px; line-height: 1.9; }
#share-disabled-state .shop-opening-video { display: inline-flex; align-items: center; gap: 15px; margin-top: 22px; color: #eee1e7; font-size: 14px; text-decoration: none; }
#share-disabled-state .shop-opening-video:hover { color: var(--opening-gold); }
#share-disabled-state .shop-opening-contact { min-width: 0; padding: 27px; border: 1px solid rgba(240, 210, 152, .28); border-radius: 14px; background: rgba(255, 255, 255, .035); }
#share-disabled-state .shop-opening-contact-label { color: var(--opening-gold); font-size: 13px; letter-spacing: .08em; }
#share-disabled-state .shop-opening-contact h4 { margin-top: 10px; font-size: 22px; line-height: 1.5; }
#share-disabled-state .shop-opening-contact p { margin-top: 8px; font-size: 14px; color: var(--opening-muted); line-height: 1.7; }
#share-disabled-state .shop-opening-apply { display: flex; width: 100%; justify-content: center; gap: 10px; min-height: 50px; padding: 13px 17px; border: 1px solid #f1d294; border-radius: 8px; background: linear-gradient(110deg, #f4dbab, #dfb774); color: #302219; font-size: 15px; line-height: 1.5; box-shadow: 0 5px 18px rgba(0, 0, 0, .14); transition: filter .18s, transform .18s; }
#share-disabled-state .shop-opening-apply:hover { filter: brightness(1.07); transform: translateY(-1px); }
#share-disabled-state .shop-opening-apply-status { display: block; min-height: 20px; margin-top: 9px; font-size: 12px; line-height: 1.7; color: var(--opening-gold); }
#share-disabled-state .shop-opening-benefits { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--ui-border); border-radius: 12px; background: rgba(255, 255, 255, .02); }
#share-disabled-state .shop-opening-benefits article { display: flex; gap: 16px; align-items: flex-start; min-width: 0; padding: 24px; }
#share-disabled-state .shop-opening-benefits article + article { border-left: 1px solid var(--ui-border); }
#share-disabled-state .shop-opening-number { padding-top: 3px; font-size: 14px; color: var(--opening-gold); font-weight: 600; }
#share-disabled-state .shop-opening-benefits h4 { font-size: 18px; line-height: 1.5; }
#share-disabled-state .shop-opening-benefits p { margin-top: 7px; color: var(--opening-muted); font-size: 14px; line-height: 1.8; }
#share-disabled-state .shop-opening-section-heading { display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px 20px; justify-content: space-between; margin: 7px 0 19px; }
#share-disabled-state .shop-opening-section-heading h3 { font-size: 23px; line-height: 1.5; }
#share-disabled-state .shop-opening-section-heading > span { color: var(--opening-muted); font-size: 13px; }
#share-disabled-state .shop-opening-profit-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
#share-disabled-state .shop-opening-profit-card { display: flex; flex-direction: column; min-width: 0; padding: 26px; border: 1px solid var(--ui-border); border-radius: 12px; background: rgba(255, 255, 255, .025); }
#share-disabled-state .shop-opening-profit-card h4 { font-size: 18px; line-height: 1.6; }
#share-disabled-state .shop-opening-profit-card > p { margin-top: 7px; color: var(--opening-muted); font-size: 14px; line-height: 1.8; }
#share-disabled-state .shop-opening-equation { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 25px 0; }
#share-disabled-state .shop-opening-equation > div { display: grid; gap: 8px; }
#share-disabled-state .shop-opening-equation strong { font-size: clamp(22px, 2.1vw, 32px); line-height: 1.25; font-weight: 600; white-space: nowrap; }
#share-disabled-state .shop-opening-equation span { color: var(--opening-muted); font-size: 13px; }
#share-disabled-state .shop-opening-equation > span { font-size: 22px; font-weight: 600; line-height: 1; }
#share-disabled-state .shop-opening-profit-value strong { color: var(--opening-gold); }
#share-disabled-state .shop-opening-example { display: block; margin-top: auto; color: var(--opening-muted); font-size: 13px; line-height: 1.8; }
#share-disabled-state .shop-opening-member-share { display: flex; gap: 23px; align-items: center; margin: 19px 0 23px; }
#share-disabled-state .shop-opening-member-share > strong { color: var(--opening-gold); font-size: 52px; line-height: 1.25; font-weight: 600; letter-spacing: -.03em; }
#share-disabled-state .shop-opening-member-share > strong span { font-size: 25px; }
#share-disabled-state .shop-opening-member-share > div { display: grid; gap: 8px; }
#share-disabled-state .shop-opening-member-share b { font-size: 17px; font-weight: 600; }
#share-disabled-state .shop-opening-member-share > div > span { color: var(--opening-muted); font-size: 13px; line-height: 1.6; }
#share-disabled-state .shop-opening-settlement { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding: 25px 26px; border: 1px solid var(--ui-border); border-radius: 12px; background: rgba(255,255,255,.025); }
#share-disabled-state .shop-opening-settlement h3 { font-size: 19px; line-height: 1.6; }
#share-disabled-state .shop-opening-settlement p { margin-top: 7px; color: var(--opening-muted); font-size: 14px; line-height: 1.8; }
#share-disabled-state .shop-opening-settlement strong { color: var(--opening-gold); }
#share-disabled-state .shop-opening-settlement ol { display: flex; flex-wrap: wrap; gap: 20px; padding: 0; margin: 0; list-style: none; }
#share-disabled-state .shop-opening-settlement li { display: flex; align-items: center; gap: 9px; font-size: 14px; }
#share-disabled-state .shop-opening-settlement li > span { display: grid; place-items: center; width: 26px; height: 26px; border: 1px solid rgba(240,210,152,.25); border-radius: 50%; color: var(--opening-gold); font-size: 12px; }
#share-disabled-state .shop-opening-rules { border-top: 1px solid var(--ui-border); font-size: 13px; }
#share-disabled-state .shop-opening-rules summary { display: flex; justify-content: space-between; align-items: center; padding: 17px 0; color: var(--opening-muted); cursor: pointer; list-style: none; }
#share-disabled-state .shop-opening-rules summary::-webkit-details-marker { display: none; }
#share-disabled-state .shop-opening-rules-arrow { flex: 0 0 9px; width: 9px; height: 9px; margin-right: 4px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .2s ease; }
#share-disabled-state .shop-opening-rules[open] .shop-opening-rules-arrow { transform: rotate(225deg); }
#share-disabled-state .shop-opening-rules > div { display: grid; gap: 8px; padding-bottom: 8px; color: var(--opening-muted); line-height: 1.9; }
#share-disabled-state :is(a, button, summary):focus-visible { outline: 2px solid var(--opening-gold); outline-offset: 4px; }
@media (max-width: 1050px) {
  #share-disabled-state .shop-opening-hero { gap: 24px; padding: 28px; }
  #share-disabled-state .shop-opening-contact { padding: 22px; }
  #share-disabled-state .shop-opening-benefits article { padding: 20px 16px; gap: 11px; }
}
@media (max-width: 760px) {
  #share-disabled-state { gap: 20px; }
  #share-disabled-state .shop-opening-hero { grid-template-columns: minmax(0, 1fr); padding: 24px 19px; gap: 28px; }
  #share-disabled-state .shop-opening-intro h3 { font-size: 32px; }
  #share-disabled-state .shop-opening-intro p { font-size: 15px; }
  #share-disabled-state .shop-opening-contact { padding: 21px 17px 12px; }
  #share-disabled-state .shop-opening-contact h4 { font-size: 21px; }
  #share-disabled-state .shop-opening-benefits { grid-template-columns: minmax(0, 1fr); }
  #share-disabled-state .shop-opening-benefits article { padding: 20px; gap: 18px; }
  #share-disabled-state .shop-opening-benefits article + article { border-left: 0; border-top: 1px solid var(--ui-border); }
  #share-disabled-state .shop-opening-profit-grid { grid-template-columns: minmax(0, 1fr); gap: 15px; }
  #share-disabled-state .shop-opening-profit-card { padding: 23px 20px; }
  #share-disabled-state .shop-opening-section-heading h3 { font-size: 22px; }
  #share-disabled-state .shop-opening-equation strong { font-size: 27px; }
  #share-disabled-state .shop-opening-settlement { padding: 23px 20px; gap: 20px; }
  #share-disabled-state .shop-opening-settlement ol { width: 100%; justify-content: space-between; gap: 10px; }
  #share-disabled-state .shop-opening-settlement li { gap: 6px; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) { #share-disabled-state :is(.shop-opening-apply, .shop-opening-rules-arrow) { transition: none; } }
#share-disabled-state .shop-opening-apply-steps { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px; margin: 24px 0; padding: 0; list-style: none; }
#share-disabled-state .shop-opening-apply-steps li { display: grid; gap: 8px; font-size: 14px; }
#share-disabled-state .shop-opening-apply-steps li span { color: var(--opening-gold); font-size: 13px; }
#share-disabled-state .shop-opening-apply:disabled { opacity: .8; cursor: default; transform: none; }
#share-disabled-state .shop-opening-apply-status { overflow-wrap: anywhere; }
.admin-section.shop-applications-panel,
.admin-section.admin-appointment-panel {
  container-type: inline-size;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.shop-applications-toolbar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 0 0 16px; margin-bottom: 18px; border-bottom: 1px solid var(--ui-border);
}
.shop-applications-toolbar label { display: flex; align-items: center; gap: 11px; min-width: 0; color: var(--ui-muted); font-size: 14px; }
.shop-applications-toolbar select {
  min-height: 42px; min-width: 0; padding: 0 10px; border: 1px solid #6b4f63; border-radius: 8px;
  background: #2c2130; color: #fff1f7; font: inherit; color-scheme: dark;
}
.shop-applications-toolbar .button { flex: none; min-height: 42px; }
.shop-application-list { display: grid; gap: 16px; }
.shop-application-row {
  --application-card-padding: clamp(16px, 2.4vw, 28px);
  min-width: 0; overflow: hidden; border: 1px solid rgba(234, 201, 222, .21);
  border-radius: 13px; background: #211923;
}
.shop-application-row.is-pending { border-color: rgba(234, 195, 128, .45); }
.shop-application-row-heading {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 15px var(--application-card-padding); border-bottom: 1px solid rgba(234, 201, 222, .16);
  background: linear-gradient(110deg, #372535, #261e29 72%);
}
.shop-application-identity { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; min-width: 0; }
.shop-application-identity strong { color: #fff1f7; font-size: clamp(18px, 2vw, 21px); overflow-wrap: anywhere; }
.shop-application-identity > span { color: #dfc5d8; font-size: 13px; }
.shop-application-state {
  display: inline-flex; align-items: center; gap: 7px; flex: none; padding: 5px 10px;
  border: 1px solid var(--ui-border); border-radius: 6px; color: #e7cbd9; background: #332633; font-size: 13px; white-space: nowrap;
}
.shop-application-state::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.shop-application-state.is-pending { color: #ffe0a8; border-color: #7e623d; background: #3e3023; }
.shop-application-state.is-approved { color: #bae8d0; border-color: #49665a; background: #26352e; }
.shop-application-body {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 20px;
  padding: 19px var(--application-card-padding);
}
.shop-application-meta {
  display: grid; grid-template-columns: minmax(0, 1.25fr) repeat(2, minmax(0, 1fr)); gap: 12px 20px; margin: 0;
}
.shop-application-meta dt { color: #d2bccb; font-size: 13px; line-height: 1.4; }
.shop-application-meta dd { margin: 5px 0 0; color: #fff1f7; font-size: 15px; line-height: 1.45; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.shop-application-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px; }
.shop-application-actions .button { min-height: 42px; padding-inline: 14px; font-size: 14px; }
.shop-application-approve { color: #302219; border-color: #e0bf87; background: #eed0a0; }
.shop-application-approve:hover { color: #302219; background: #f6ddb4; }
.shop-application-result {
  margin: 0; padding: 12px var(--application-card-padding); border-top: 1px solid var(--ui-border);
  color: var(--ui-muted); font-size: 14px; line-height: 1.65; overflow-wrap: anywhere;
}
.shop-application-reject-form { display: grid; gap: 12px; border-top: 1px solid var(--ui-border); padding: 16px var(--application-card-padding) 19px; }
.shop-application-reject-form[hidden] { display: none; }
.shop-application-reject-form label { display: grid; gap: 10px; font-size: 14px; }
.shop-application-reject-form textarea { width: 100%; resize: vertical; min-height: 80px; }
@container (max-width: 780px) {
  .shop-application-body { grid-template-columns: minmax(0, 1fr); gap: 15px; }
  .shop-application-body > .shop-application-actions { padding-top: 13px; border-top: 1px solid var(--ui-border); }
}
@container (max-width: 540px) {
  .shop-applications-toolbar label { flex-wrap: wrap; gap: 5px 8px; }
  .shop-applications-toolbar .button { padding-inline: 10px; }
  .shop-application-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shop-application-meta > div:first-child,
  .shop-application-meta > div:nth-child(2):last-child { grid-column: 1 / -1; }
  .shop-application-body > .shop-application-actions .button { flex: 1 1 auto; }
  #admin-shop-application-pagination { flex-wrap: wrap; gap: 10px; }
}

/* Make product card tags easier to scan without changing their content. */
.plan-tags { gap: 7px; }
.plan-tags .plan-tag {
  min-height: 28px;
  padding: 0 11px;
  font-size: 14px;
  line-height: 1.2;
}
.product-page-tags { gap: 7px; }
.product-page-tag {
  min-height: 28px;
  padding: 0 11px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
}
.product-breadcrumb { font-size: 16px; font-weight: 600; }
.product-page-tag:nth-child(2) {
  border-color: rgba(157, 190, 224, .42);
  background: linear-gradient(135deg, rgba(91, 132, 177, .2), rgba(113, 151, 190, .11));
  color: #bed7ef;
  box-shadow: inset 0 1px 0 rgba(226, 239, 255, .08);
}
.product-page-price small { font-size: 15px; line-height: 1.5; }
.plan-tags .plan-tag:nth-child(2) {
  border-color: rgba(157, 190, 224, .42);
  background: linear-gradient(135deg, rgba(91, 132, 177, .2), rgba(113, 151, 190, .11));
  color: #bed7ef;
  box-shadow: inset 0 1px 0 rgba(226, 239, 255, .08);
}
@media (max-width: 700px) {
  .plan-tags { gap: 5px; }
  .plan-tags .plan-tag { min-height: 26px; padding-inline: 9px; font-size: 13px; }
  .product-page-tags { gap: 5px; }
  .product-page-tag { min-height: 26px; padding-inline: 9px; font-size: 13px; }
  .product-breadcrumb { font-size: 15px; }
}
.admin-station-table thead th { font-size: 15px; }
@media (max-width: 700px) {
  .admin-station-table thead th { font-size: 14px; }
}
/* Supplier workspace: independent source tabs, balances and catalog. */
#admin-ka8-section { padding: 28px; min-width: 0; }
#admin-ka8-section .supply-source-tabs { display: flex; gap: 8px; padding: 6px; margin-bottom: 30px; overflow-x: auto; border: 1px solid var(--ui-border); border-radius: 12px; background: rgba(0,0,0,.12); }
#admin-ka8-section .supply-source-tab { flex: 0 0 auto; min-width: 150px; padding: 14px 26px; border: 1px solid transparent; border-radius: 8px; background: transparent; color: var(--ui-muted); font: inherit; font-size: 17px; font-weight: 600; cursor: pointer; transition: background .18s, color .18s; }
#admin-ka8-section .supply-source-tab:hover { background: rgba(255,255,255,.04); color: var(--ui-text); }
#admin-ka8-section .supply-source-tab.is-active { border-color: rgba(230,198,144,.3); background: rgba(230,198,144,.12); color: #f2d6a4; }
#admin-ka8-section .supply-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
#admin-ka8-section .supply-heading h2 { margin: 0; color: var(--ui-text); font-size: 24px; font-weight: 600; line-height: 1.5; }
#admin-ka8-section .supply-sync { display: flex; align-items: center; gap: 18px; }
#admin-ka8-section .supply-sync > span { color: var(--ui-muted); font-size: 13px; white-space: nowrap; }
#admin-ka8-section .supply-sync > span::before { content: ''; display: inline-block; width: 6px; height: 6px; margin-right: 8px; border-radius: 50%; background: #9fd6bd; vertical-align: middle; }
#admin-ka8-section .supply-sync > span[data-state=pending]::before { background: #edcc91; }
#admin-ka8-section .supply-sync .button { min-height: 38px; padding: 7px 16px; font-size: 14px; }
#admin-ka8-section .supply-overview { display: grid; grid-template-columns: 1.5fr repeat(3,1fr); margin-bottom: 28px; border: 1px solid var(--ui-border); border-radius: 12px; background: rgba(255,255,255,.025); }
#admin-ka8-section .supply-overview > div { display: flex; flex-direction: column; justify-content: center; gap: 13px; min-width: 0; padding: 25px 26px; }
#admin-ka8-section .supply-overview > div + div { border-left: 1px solid var(--ui-border); }
#admin-ka8-section .supply-overview span { color: var(--ui-muted); font-size: 14px; line-height: 1.5; }
#admin-ka8-section .supply-overview strong { color: var(--ui-text); font-size: 29px; font-weight: 600; line-height: 1.25; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
#admin-ka8-section .supply-balance strong { color: #f2d6a4; font-size: 34px; letter-spacing: -.02em; }
#admin-ka8-section .supply-balance strong.is-stale { color: var(--ui-muted); }
#admin-ka8-section .ka8-table-wrap { width: 100%; overflow-x: auto; border: 1px solid var(--ui-border); border-radius: 12px; }
#admin-ka8-section .ka8-table { width: 100%; min-width: 950px; border-collapse: collapse; table-layout: fixed; color: var(--ui-text); font-size: 14px; line-height: 1.6; }
#admin-ka8-section .ka8-table th { padding: 17px 14px; background: rgba(255,255,255,.035); color: var(--ui-muted); font-size: 14px; font-weight: 500; white-space: nowrap; text-align: center; }
#admin-ka8-section .ka8-table td { padding: 23px 14px; vertical-align: middle; text-align: center; border-top: 1px solid var(--ui-border); overflow-wrap: anywhere; }
#admin-ka8-section .ka8-table th:nth-child(1) { width: 21%; text-align: left; padding-left: 22px; }
#admin-ka8-section .ka8-table th:nth-child(2) { width: 14%; }
#admin-ka8-section .ka8-table th:nth-child(3) { width: 10%; }
#admin-ka8-section .ka8-table th:nth-child(4) { width: 10%; }
#admin-ka8-section .ka8-table th:nth-child(5) { width: 12%; }
#admin-ka8-section .ka8-table th:nth-child(6) { width: 9%; }
#admin-ka8-section .ka8-table th:nth-child(7) { width: 24%; }
#admin-ka8-section .ka8-table .supply-product-name { padding-left: 22px; text-align: left; font-size: 15px; font-weight: 600; }
#admin-ka8-section .supply-product-spec { color: var(--ui-muted); }
#admin-ka8-section .supply-price, #admin-ka8-section .supply-sale { font-variant-numeric: tabular-nums; white-space: nowrap; }
#admin-ka8-section .supply-stock-badge, #admin-ka8-section .supply-status-badge { display: inline-flex; align-items: center; justify-content: center; padding: 4px 9px; border-radius: 5px; font-size: 12px; white-space: nowrap; color: #bdc5cf; background: rgba(172,186,206,.08); border: 1px solid rgba(172,186,206,.16); }
#admin-ka8-section .supply-stock-badge[data-state=available], #admin-ka8-section .supply-status-badge[data-state=published] { color: #a4dfc3; background: rgba(108,190,151,.08); border-color: rgba(108,190,151,.22); }
#admin-ka8-section .supply-stock-badge[data-state=empty] { color: #e6b5b4; background: rgba(210,126,123,.08); border-color: rgba(210,126,123,.22); }
#admin-ka8-section .supply-stock-badge[data-state=low], #admin-ka8-section .supply-status-badge[data-state=draft] { color: #e4c58e; background: rgba(228,197,142,.08); border-color: rgba(228,197,142,.2); }
#admin-ka8-section .ka8-sale-input { width: 100%; max-width: 110px; min-width: 0; min-height: 40px; padding: 8px 10px; border: 1px solid var(--ui-border); border-radius: 6px; background: rgba(0,0,0,.1); color: var(--ui-text); font: inherit; text-align: center; }
#admin-ka8-section .supply-row-actions { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 8px; }
#admin-ka8-section .supply-row-actions .button { min-width: 0; min-height: 36px; padding: 7px 12px; font-size: 13px; white-space: nowrap; border-radius: 6px; }
#admin-ka8-section .supply-flow-label { color: var(--ui-muted); font-size: 13px; }
#admin-ka8-section .supply-empty { padding: 65px 20px; color: var(--ui-muted); }
#admin-ka8-section .account-feedback { margin: -6px 0 22px; color: #a4dfc3; line-height: 1.7; font-size: 14px; }
#admin-ka8-section .account-feedback.is-error { color: #ecb0aa; }
#admin-ka8-section .supply-pagination { margin-top: 22px; display: flex; justify-content: flex-end; align-items: center; gap: 18px; }
#admin-ka8-section .supply-pagination > span { color: var(--ui-muted); font-size: 13px; }
#admin-ka8-section :is(button,input):focus-visible { outline: 2px solid #e4c58e; outline-offset: 3px; }
@media (max-width: 1000px) {
  #admin-ka8-section { padding: 22px; }
  #admin-ka8-section .supply-overview > div { padding: 22px 18px; }
  #admin-ka8-section .supply-overview strong { font-size: 26px; }
  #admin-ka8-section .supply-balance strong { font-size: 30px; }
}
@media (max-width: 700px) {
  #admin-ka8-section { padding: 16px 12px; }
  #admin-ka8-section .supply-source-tabs { margin-bottom: 24px; gap: 5px; padding: 5px; }
  #admin-ka8-section .supply-source-tab { flex: 1 0 auto; min-width: 105px; padding: 12px 15px; font-size: 16px; }
  #admin-ka8-section .supply-heading { align-items: flex-start; gap: 12px; margin-bottom: 18px; }
  #admin-ka8-section .supply-heading h2 { font-size: 21px; }
  #admin-ka8-section .supply-sync { flex-direction: column-reverse; align-items: flex-end; gap: 7px; }
  #admin-ka8-section .supply-sync > span { font-size: 11px; }
  #admin-ka8-section .supply-sync .button { min-height: 32px; padding: 4px 13px; font-size: 13px; }
  #admin-ka8-section .supply-overview { grid-template-columns: 1fr 1fr; margin-bottom: 22px; }
  #admin-ka8-section .supply-overview > div { gap: 9px; padding: 19px 16px; }
  #admin-ka8-section .supply-overview > div:nth-child(3) { border-left: 0; }
  #admin-ka8-section .supply-overview > div:nth-child(n+3) { border-top: 1px solid var(--ui-border); }
  #admin-ka8-section .supply-overview span { font-size: 13px; }
  #admin-ka8-section .supply-overview strong { font-size: 25px; }
  #admin-ka8-section .supply-balance strong { font-size: 28px; }
  #admin-ka8-section .ka8-table-wrap { overflow: visible; border: 0; border-radius: 0; }
  #admin-ka8-section .ka8-table, #admin-ka8-section .ka8-table tbody { display: block; min-width: 0; width: 100%; }
  #admin-ka8-section .ka8-table thead { display: none; }
  #admin-ka8-section .ka8-table tr { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 17px 14px; margin-bottom: 14px; padding: 20px 16px; border: 1px solid var(--ui-border); border-radius: 10px; background: rgba(255,255,255,.02); }
  #admin-ka8-section .ka8-table td { display: block; min-width: 0; padding: 0; border: 0; text-align: left; }
  #admin-ka8-section .ka8-table .supply-product-name { grid-column: 1 / -1; padding: 0; font-size: 17px; }
  #admin-ka8-section .supply-product-spec { grid-column: 1 / -1; margin-top: -10px; font-size: 13px; }
  #admin-ka8-section .supply-stock::before { content: '库存'; }
  #admin-ka8-section .supply-price::before { content: '拿货价'; }
  #admin-ka8-section .supply-sale::before { content: '山丘售价'; }
  #admin-ka8-section .supply-product-status::before { content: '状态'; }
  #admin-ka8-section :is(.supply-stock,.supply-price,.supply-sale,.supply-product-status)::before { display: block; margin-bottom: 8px; color: var(--ui-muted); font-size: 12px; font-weight: 400; }
  #admin-ka8-section .supply-product-action { grid-column: 1 / -1; padding-top: 16px; border-top: 1px solid var(--ui-border); }
  #admin-ka8-section .supply-row-actions { justify-content: flex-start; gap: 9px; }
  #admin-ka8-section .supply-row-actions .button { min-height: 39px; padding: 8px 13px; }
  #admin-ka8-section .ka8-sale-input { max-width: 130px; }
  #admin-ka8-section .supply-empty-row { display: block; }
  #admin-ka8-section .ka8-table .supply-empty { padding: 24px 0; }
  #admin-ka8-section .supply-pagination { flex-wrap: wrap; justify-content: space-between; gap: 12px 8px; }
  #admin-ka8-section .supply-pagination > span { order: -1; flex-basis: 100%; text-align: center; }
  #admin-ka8-section .supply-pagination .button { min-height: 38px; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) { #admin-ka8-section .supply-source-tab { transition: none; } }
/* Codex appointment product and booking */
.product-page.is-appointment:not(.is-gemini-service) .product-page-art {
  background: radial-gradient(ellipse at 45% 30%, #283251 0, #1a2335 62%, #151a28 100%) !important;
  border-color: #465278;
}
.plan-appointment .plan-gpt-icon,
.product-page.is-appointment .product-page-art img { filter: none; }
.plan-appointment .plan-tags,
.product-page.is-appointment .product-page-tags { flex-wrap: nowrap; }
.plan-appointment .plan-tags { container: appointment-tags / inline-size; }
.plan-appointment .plan-tags .plan-tag { flex: 0 0 auto; white-space: nowrap; }
@container appointment-tags (max-width: 210px) {
  .plan-appointment .plan-tags .plan-tag { padding-inline: 3px; }
}
.product-page.is-appointment .product-page-sections > .product-page-section { display: none !important; }
.product-page.is-appointment { --appointment-divider: rgba(255, 229, 243, 0.34); }
.product-page.is-appointment .product-page-price {
  border-block-color: var(--appointment-divider);
}
.product-page.is-appointment .product-page-sections {
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  border-top-color: var(--appointment-divider);
}
.appointment-details {
  min-width: 0;
  color: #edf2ff;
  scroll-margin-top: 120px;
}
.appointment-details[hidden], .appointment-panel:not([open]), .appointment-panel [hidden] { display: none !important; }
.appointment-details h2 { margin: 0 0 17px; font-size: clamp(20px, 2vw, 25px); line-height: 1.35; color: #f4f7ff; }
.appointment-details p { margin: 0; color: #edf2ff; font-size: clamp(16px, 1.32vw, 19px); font-weight: 400; line-height: 1.85; overflow-wrap: anywhere; }
.appointment-details p + p { margin-top: 15px; }
.appointment-details p:first-of-type + p { margin-top: 5px; }
.appointment-details strong { font-weight: 700; }
.appointment-details .appointment-warning { color: #ff879e; }
.appointment-details a { color: #8dccff; text-decoration: underline; text-underline-offset: .18em; }
.appointment-details .appointment-warning a { font-weight: 700; }
html:has(.appointment-panel[open]) { overflow: hidden; }
.appointment-panel {
  --appointment-inset: clamp(19px, 4vw, 34px);
  position: fixed; inset: 0; margin: auto;
  width: min(640px, calc(100% - 32px));
  max-width: none;
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  padding: 0;
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid #614555;
  border-radius: 20px;
  background: #211822;
  color: #fff1f7;
  box-shadow: 0 26px 90px rgba(7, 4, 11, .68);
  color-scheme: dark;
}
.appointment-panel::backdrop { background: rgba(10, 6, 13, .76); backdrop-filter: blur(5px); }
.appointment-dialog-header {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 14px;
  padding: 27px var(--appointment-inset) 23px;
  border-bottom: 1px solid #4a3444;
  background: linear-gradient(115deg, #382335, #271c29 76%);
}
.appointment-dialog-header h2 { margin: 0; color: #fff5fa; font-size: clamp(23px, 4vw, 31px); line-height: 1.25; }
.appointment-dialog-header h2:focus { outline: none; }
.appointment-dialog-header p { margin: 6px 0 0; color: #e2c4d6; font-size: 15px; }
.appointment-dialog-header .appointment-close {
  flex: 0 0 44px; width: 44px; height: 44px; padding: 0;
  display: grid; place-items: center; font-size: 24px; line-height: 1;
  color: #fff1f7; background: #402d3e; border: 1px solid #6b4f63; border-radius: 10px;
}
.appointment-dialog-header .appointment-close:hover { background: #54384e; }
.appointment-summary {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  margin: 22px var(--appointment-inset) 0; padding: 14px 17px;
  border: 1px solid #604455; border-radius: 12px; background: #302230;
}
.appointment-summary span { font-size: 16px; font-weight: 700; }
.appointment-summary p { margin: 4px 0 0; color: #dfc6d4; font-size: 14px; line-height: 1.45; }
.appointment-summary strong { color: #ffc1dc; font-size: clamp(28px, 6vw, 36px); line-height: 1.1; white-space: nowrap; }
.appointment-dialog-body { padding: 23px var(--appointment-inset) 28px; }
.appointment-dialog-body:has(> #product-appointment-success:not([hidden])) {
  --appointment-success-gap: 18px;
  padding-block-start: var(--appointment-success-gap);
}
.appointment-login-note { margin: 0; color: #efdae6; font-size: 16px; line-height: 1.6; }
.appointment-panel input:not([type=checkbox]) {
  min-width: 0; width: 100%; box-sizing: border-box; min-height: 48px; padding: 10px 13px; border: 1px solid #75596e;
  border-radius: 9px; background: #19131b; color: #fff5fa; font: inherit; font-size: 16px;
}
.appointment-panel :is(button, input):focus-visible { outline: 2px solid #f9b9dc; outline-offset: 2px; }
.appointment-contact-field { display: grid; gap: 8px; font-weight: 600; }
.appointment-confirmation {
  display: flex; align-items: flex-start; gap: 11px; margin-top: 16px; padding: 12px 14px;
  border: 1px solid #594255; border-radius: 9px; background: #2c212d; color: #f3deeb; font-size: 14px; line-height: 1.6;
}
.appointment-confirmation input { width: 18px; height: 18px; margin: 2px 0 0; flex: none; accent-color: #f1a9cf; }
.appointment-dialog-actions { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; margin-top: 22px; }
.appointment-panel .button { min-height: 48px; padding-inline: 12px; border-radius: 9px; font-size: 15px; }
.appointment-panel .button-primary { color: #271321; background: #efabd0; }
.appointment-panel .button-primary:hover { background: #ffc1e1; }
.appointment-panel .button-secondary { color: #f9e2f0; border: 1px solid #73556c; background: #342735; }
.appointment-panel .button-secondary:hover { background: #49354a; }
.appointment-feedback { margin: 14px 0 0; line-height: 1.65; }
.appointment-feedback:empty { display: none; }
#product-appointment-success h3 { margin: 0; color: #b5ebd5; font-size: 23px; }
#product-appointment-success p { margin: 6px 0 var(--appointment-success-gap); color: #efdae6; line-height: 1.6; }
.appointment-wechat { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 14px 16px; border: 1px solid #6b4f63; border-radius: 11px; background: #302230; }
.appointment-reference { display: flex; align-items: baseline; gap: 4px; white-space: nowrap; }
.appointment-reference > span { color: #f2d7e6; font-size: clamp(16px, 4.1vw, 18px); }
.appointment-reference strong { color: #ffc1dc; font-size: clamp(17px, 4.6vw, 22px); letter-spacing: .03em; user-select: text; }
.appointment-wechat > .button { margin-inline-start: auto; }
.appointment-number { margin-bottom: 10px; }
@media (max-width: 420px) {
  .appointment-wechat { gap: 8px; padding-inline: 12px; }
  .appointment-panel .appointment-wechat > .button { padding-inline: 8px; }
}
@media (prefers-reduced-motion: no-preference) {
  .appointment-panel[open] { animation: appointment-modal-in 180ms ease-out both; }
  @keyframes appointment-modal-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
}
.admin-appointment-toolbar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 0 0 16px; margin-bottom: 18px; border-bottom: 1px solid var(--ui-border);
  color: var(--ui-muted); font-size: 14px;
}
.admin-appointment-toolbar .button { min-height: 40px; }
.admin-appointment-list { display: grid; gap: 16px; }
.admin-appointment-row {
  --appointment-card-padding: clamp(16px, 2.4vw, 28px);
  min-width: 0; overflow: hidden; border: 1px solid rgba(234, 201, 222, .21);
  border-radius: 13px; background: #211923;
}
.admin-appointment-row.is-pending { border-color: rgba(240, 176, 203, .46); }
.admin-appointment-card-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 15px var(--appointment-card-padding); border-bottom: 1px solid rgba(234, 201, 222, .16);
  background: linear-gradient(110deg, #372535, #261e29 72%);
}
.admin-appointment-card-head h3 {
  margin: 0; color: #fff1f7; font-size: clamp(18px, 2vw, 21px);
  line-height: 1.25; font-variant-numeric: tabular-nums; overflow-wrap: anywhere;
}
.admin-appointment-card-head :is(.admin-appointment-status, .admin-appointment-deliver) {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; flex: none;
  min-width: 76px; min-height: 36px; padding: 5px 10px; border-radius: 6px;
  font-size: 13px; line-height: 1.4; font-weight: 600; white-space: nowrap;
}
.admin-appointment-status { border: 1px solid #49665a; color: #bae8d0; background: #26352e; }
.admin-appointment-status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.admin-appointment-card-body {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px;
  align-items: center; padding: 19px var(--appointment-card-padding);
}
.admin-appointment-fields { display: grid; grid-template-columns: 1fr 1.1fr 1.1fr 1.45fr; gap: 12px 20px; margin: 0; }
.admin-appointment-fields > div { min-width: 0; }
.admin-appointment-fields dt { color: #d2bccb; font-size: 13px; line-height: 1.4; }
.admin-appointment-fields dd { margin: 5px 0 0; color: #fff1f7; font-size: 16px; line-height: 1.45; font-weight: 600; overflow-wrap: anywhere; }
.admin-appointment-fields > div:last-child dd { font-size: 14px; font-variant-numeric: tabular-nums; }
.admin-appointment-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px; }
.admin-appointment-actions .button { min-height: 40px; padding-inline: 13px; white-space: nowrap; }
@container (max-width: 860px) {
  .admin-appointment-card-body { grid-template-columns: minmax(0, 1fr); gap: 15px; }
  .admin-appointment-actions { border-top: 1px solid rgba(234, 201, 222, .16); padding-top: 13px; }
}
@container (max-width: 540px) {
  .admin-appointment-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-appointment-actions .button { flex: 1 1 auto; }
}
@media (max-width: 500px) {
  .appointment-dialog-header { padding-block: 19px; }
  .appointment-summary { margin-top: 17px; }
  .appointment-dialog-body { padding-block: 18px 21px; }
  .appointment-dialog-actions { gap: 8px; }
}
/* Remote installation service, scoped to the product and its orders. */
.service-order-panel[hidden] { display: none; }
.service-order-panel { min-width: 0; grid-column: 1 / -1; padding: 28px; margin-top: 22px; border: 1px solid var(--ui-border); border-radius: 12px; background: var(--ui-panel-soft); color: var(--ui-text); }
.service-order-heading { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 22px; }
.service-order-heading h3 { margin: 0; font-size: 22px; line-height: 1.5; }
.service-order-state { display: inline-flex; padding: 6px 12px; border: 1px solid rgba(228,197,142,.3); border-radius: 6px; color: #ecd09f; font-size: 13px; }
.service-contact-card { padding: 20px 23px; border: 1px solid var(--ui-border); border-radius: 9px; background: rgba(255,255,255,.025); }
.service-field-label { display: block; margin-bottom: 10px; color: var(--ui-muted); font-size: 14px; }
.service-contact-line { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.service-contact-line strong { color: #f0d09d; font-size: 29px; font-weight: 600; letter-spacing: .025em; }
.service-contact-hours { margin: 10px 0 0; color: var(--ui-muted); font-size: 14px; }
.service-contact-form { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: end; gap: 18px; margin-top: 24px; }
.service-contact-form label { display: grid; gap: 10px; color: var(--ui-text); font-size: 15px; }
.service-contact-form input { width: 100%; min-height: 46px; padding: 10px 14px; color: var(--ui-text); background: rgba(0,0,0,.14); border: 1px solid var(--ui-border); border-radius: 7px; font: inherit; }
.service-order-panel .button { min-height: 44px; padding: 11px 18px; font-size: 14px; }
.service-form-feedback { margin: 14px 0 0; color: #a4dfc3; font-size: 14px; line-height: 1.8; }
.service-form-feedback:empty { display: none; }
.service-customer-contact { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; padding: 20px 0; }
.service-customer-contact .service-field-label { margin: 0; }
.service-customer-contact strong { overflow-wrap: anywhere; font-size: 16px; }
@media (max-width: 700px) {
 .service-order-panel { padding: 21px 16px; }
 .service-order-heading h3 { font-size: 20px; }
 .service-contact-card { padding: 18px 16px; }
 .service-contact-line { gap: 14px; justify-content: space-between; }
 .service-contact-line strong { font-size: 27px; }
 .service-contact-form { grid-template-columns: minmax(0,1fr); gap: 15px; }
 .service-contact-form .button { width: 100%; }
}
