:root {
  --brand-primary: #ff2a93;
  --brand-primary-hover: #e41583;
  --brand-primary-rgb: 255, 42, 147;
  --brand-primary-soft: #fff2f8;
  --brand-primary-soft-strong: #ffeaf4;
  --brand-primary-surface: #fff7fb;
  --brand-primary-border: #ffd3e7;
  --brand-primary-bright: #ff55aa;
  --brand-primary-light: #ff8dca;
  --brand-primary-dark-soft: #3b2130;
  --brand-primary-muted-text: #5b3349;
  --brand-primary-border-muted: #eadfe5;
  --brand-gradient-end: #7f4cf3;
  --brand-on-primary: #ffffff;
  --pink: var(--brand-primary);
  --pink-dark: var(--brand-primary-hover);
  --ink: #171717;
  --muted: #6f6f6f;
  --line: #ededed;
  --paper: #ffffff;
  --shadow: 0 14px 34px rgba(0, 0, 0, 0.12);
}

:root[data-skin="blue"] {
  --brand-primary: #2563eb;
  --brand-primary-hover: #1d4ed8;
  --brand-primary-rgb: 37, 99, 235;
  --brand-primary-soft: #eff6ff;
  --brand-primary-soft-strong: #dbeafe;
  --brand-primary-surface: #f8fbff;
  --brand-primary-border: #bfdbfe;
  --brand-primary-bright: #60a5fa;
  --brand-primary-light: #93c5fd;
  --brand-primary-dark-soft: #172a52;
  --brand-primary-muted-text: #25406f;
  --brand-primary-border-muted: #d6e3f8;
  --brand-gradient-end: #0f3a8f;
  --brand-on-primary: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html[data-theme="light"] {
  color-scheme: light;
}

html[data-theme="dark"] {
  color-scheme: dark;
}

body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family:
    "Microsoft YaHei", "PingFang SC", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 1.55;
}

html[data-locale="zh-Hant"] body {
  font-family:
    "Microsoft JhengHei", "PingFang TC", "Noto Sans TC", "Microsoft YaHei", "PingFang SC", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.theme-dark {
  --ink: #f2f2f2;
  --muted: #b8b8b8;
  --line: #3c3c3c;
  --paper: #242424;
  background: #191919;
  color: var(--ink);
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-hero {
  position: relative;
  height: 400px;
  min-height: 400px;
  overflow: hidden;
  color: #fff;
  isolation: isolate;
}

.site-hero::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.46), rgba(0, 0, 0, 0.18) 42%, rgba(0, 0, 0, 0.46)),
    radial-gradient(circle at center, transparent 0 26%, rgba(0, 0, 0, 0.18) 64%);
}

.hero-collage {
  position: absolute;
  inset: 0;
  z-index: -2;
  display: grid;
  grid-template-columns: 1.15fr 0.9fr 1.25fr 1fr 1.05fr 0.85fr;
  grid-template-rows: 134px 132px 134px;
  background: #151515;
}

.hero-collage-item {
  position: relative;
  min-width: 0;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  background: #151515;
}

.hero-collage-item img {
  display: block;
  width: 100%;
  height: 100%;
  min-width: 0;
}

.hero-collage-backdrop {
  position: absolute;
  inset: -12%;
  width: 124% !important;
  height: 124% !important;
  object-fit: cover;
  opacity: .72;
  filter: blur(16px) saturate(.96) brightness(.62);
  transform: scale(1.06);
}

.hero-collage-photo {
  position: relative;
  z-index: 1;
  object-fit: contain;
  filter: saturate(0.92) brightness(0.84);
}

.hero-collage.is-cover-fit .hero-collage-backdrop {
  display: none;
}

.hero-collage.is-cover-fit .hero-collage-photo {
  object-fit: cover;
}

.hero-collage-item:nth-child(1) {
  grid-row: span 2;
}

.hero-collage-item:nth-child(2) {
  grid-column: span 2;
}

.hero-collage-item:nth-child(3) {
  grid-row: span 2;
}

.hero-collage-item:nth-child(6) {
  grid-column: span 2;
}

.hero-collage-item:nth-child(8) {
  grid-column: span 2;
}

/*
 * “完整显示细节”使用独立的规则网格，不能继承铺满裁切模式的
 * 跨行、跨列拼图规则。宽屏为 10 张等宽单排，较窄屏幕为 5 × 2。
 */
.hero-collage.is-detail-fit {
  grid-template-columns: repeat(10, minmax(0, 1fr));
  grid-template-rows: minmax(0, 1fr);
  grid-auto-flow: row;
}

.hero-collage.is-detail-fit > .hero-collage-item,
.hero-collage.is-detail-fit > .hero-collage-item:nth-child(n) {
  grid-column: auto;
  grid-row: auto;
}

.hero-collage.is-detail-fit .hero-collage-backdrop {
  display: none;
}

.hero-collage.is-detail-fit .hero-collage-photo {
  object-fit: cover;
  object-position: center;
  filter: saturate(.98) brightness(.92);
}

@media (max-width: 1600px) {
  .hero-collage.is-detail-fit {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(0, 1fr));
  }

  .hero-collage.is-detail-fit > .hero-collage-item,
  .hero-collage.is-detail-fit > .hero-collage-item:nth-child(n) {
    grid-column: auto;
    grid-row: auto;
  }
}

.hero-banner {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  background: #151515;
}

.hero-banner img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(.92) brightness(.84);
}

.topnav {
  position: fixed;
  top: 0;
  left: 50%;
  z-index: 9999;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 44px;
  width: min(1470px, calc(100% - 52px));
  min-height: 66px;
  margin: 0 auto;
  padding: 0 10px;
  border-radius: 0 0 6px 6px;
  background: rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(8px);
  transform: translateX(-50%);
}

.home-body .topnav {
  width: 100%;
  min-height: 70px;
  padding: 0 max(10px, calc((100% - 1470px) / 2 + 10px));
  border-radius: 0;
  background: rgba(0, 0, 0, 0.48);
  box-shadow: 0 2px 18px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(10px);
}

.logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 80px;
  min-height: 36px;
  border: 3px solid #fff;
  background: var(--pink);
  color: #fff;
  font-size: 24px;
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
}

.nav-links,
.nav-actions {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a,
.nav-item-link,
.nav-item button,
.nav-actions button,
.nav-actions a {
  border: 0;
  background: transparent;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.32);
}

.nav-links a,
.nav-item-link,
.nav-item button {
  position: relative;
  padding: 8px 0;
}

.nav-item {
  position: relative;
}

.nav-item::after {
  position: absolute;
  top: 100%;
  right: -18px;
  left: -18px;
  z-index: 2;
  height: 14px;
  content: "";
}

.nav-item button,
.nav-item-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.nav-item button::after,
.nav-item-link::after {
  width: 0;
  height: 0;
  border-top: 5px solid #fff;
  border-right: 4px solid transparent;
  border-left: 4px solid transparent;
  content: "";
  transform: translateY(1px);
}

.nav-item:hover button::after,
.nav-item:hover .nav-item-link::after,
.nav-item.is-open .nav-item-link::after,
.nav-item.is-open button::after {
  border-top: 0;
  border-bottom: 5px solid #fff;
}

.nav-links > a::after,
.nav-item > .nav-item-link::before,
.nav-item > button::before {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  content: "";
  background: #fff;
  opacity: 0;
  transform: scaleX(0.5);
  transition:
    opacity 160ms ease,
    transform 160ms ease;
}

.nav-item > button::before,
.nav-item > .nav-item-link::before {
  background: #fff;
}

.nav-links > a:hover::after,
.nav-links > a.is-active::after,
.nav-item:hover > .nav-item-link::before,
.nav-item.is-active > .nav-item-link::before,
.nav-item.is-open > .nav-item-link::before,
.nav-item:hover > button::before,
.nav-item.is-active > button::before,
.nav-item.is-open > button::before {
  opacity: 1;
  transform: scaleX(1);
}

.nav-menu {
  position: absolute;
  top: calc(100% + 11px);
  left: 50%;
  z-index: 3;
  display: none;
  width: 174px;
  padding: 0;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.2);
  transform: translateX(-50%);
}

.nav-menu::before {
  position: absolute;
  top: -7px;
  left: 50%;
  width: 12px;
  height: 12px;
  content: "";
  background: rgba(255, 255, 255, 0.97);
  transform: translateX(-50%) rotate(45deg);
}

.nav-menu a {
  display: block;
  color: #222;
  min-height: 44px;
  padding: 12px 14px;
  text-shadow: none;
}

.nav-menu a:hover {
  background: rgba(var(--brand-primary-rgb), 0.08);
  color: var(--pink);
}

.nav-item:hover .nav-menu,
.nav-item.is-open .nav-menu {
  display: block;
}

.nav-actions {
  justify-content: flex-end;
  gap: 18px;
}

.icon-search,
.hero-search button,
.float-tools .float-tool-button {
  position: relative;
}

.icon-search {
  width: 28px;
  height: 28px;
}

.icon-search::before,
.hero-search button::before {
  position: absolute;
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-radius: 999px;
  content: "";
}

.icon-search::before {
  top: 4px;
  left: 3px;
}

.icon-search::after,
.hero-search button::after {
  position: absolute;
  width: 9px;
  height: 2px;
  border-radius: 999px;
  content: "";
  background: currentColor;
  transform-origin: left center;
  transform: rotate(45deg);
}

.icon-search::after {
  top: 19px;
  left: 17px;
}

.menu-btn {
  display: none;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.18);
  padding: 9px;
}

.menu-btn span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: #fff;
}

.hero-center {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  width: min(760px, calc(100% - 32px));
  margin: 130px auto 0;
  text-align: center;
}

.hero-center h1 {
  max-width: 100%;
  margin: 0;
  color: #fff;
  font-size: 38px;
  font-weight: 900;
  line-height: 1.1;
  overflow-wrap: anywhere;
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.42);
}

.hero-center p {
  max-width: 100%;
  margin: 10px 0 30px;
  font-size: 16px;
  font-weight: 600;
  overflow-wrap: anywhere;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.54);
}

.hero-search {
  display: grid;
  grid-template-columns: 1fr 68px;
  width: min(652px, 100%);
  height: 48px;
  border-radius: 6px;
  background: #fff;
  box-shadow: var(--shadow);
}

.hero-search input {
  min-width: 0;
  border: 0;
  border-radius: 6px 0 0 6px;
  color: #222;
  font-size: 16px;
  outline: none;
  padding: 0 20px;
}

.hero-search button {
  border: 0;
  border-radius: 0 6px 6px 0;
  background: #fff;
  color: #000;
}

.hero-search button::before {
  top: 13px;
  left: 19px;
}

.hero-search button::after {
  top: 28px;
  left: 33px;
}

body.theme-dark .hero-search {
  border: 1px solid #3a4048;
  background: #23262b;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.34);
}

body.theme-dark .hero-search input {
  background: #23262b;
  color: #f3f6fb;
}

body.theme-dark .hero-search input::placeholder {
  color: #9aa4b2;
}

body.theme-dark .hero-search button {
  border-left: 1px solid #3a4048;
  background: #2b3037;
  color: #f3f6fb;
}

body.theme-dark .hero-search button:hover {
  background: #353b44;
  color: #fff;
}

.hot-cities {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 13px;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.55);
}

.hot-cities button {
  border: 0;
  background: transparent;
  color: #fff;
  padding: 0;
  text-shadow: inherit;
}

.hot-cities button:hover,
.hot-cities button.is-active {
  color: var(--brand-primary-light);
}

.daily-poetry {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: min(1180px, calc(100% - 48px));
  min-height: 54px;
  margin: 18px auto 0;
  padding: 11px 22px;
  border: 1px solid rgba(var(--brand-primary-rgb), 0.18);
  border-radius: 14px;
  background: linear-gradient(90deg, rgba(var(--brand-primary-rgb), 0.045), rgba(255, 255, 255, 0.86), rgba(var(--brand-primary-rgb), 0.045));
  color: #20202a;
  text-align: center;
}

.daily-poetry blockquote {
  min-width: 0;
  margin: 0;
  font-size: 15px;
  font-style: normal;
  font-weight: 650;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.daily-poetry cite {
  flex: 0 0 auto;
  color: #7c7180;
  font-size: 12px;
  font-style: normal;
  font-weight: 500;
  line-height: 1.6;
  white-space: nowrap;
}

.daily-poetry__cursor {
  display: none;
  width: 2px;
  height: 1.1em;
  margin-left: 2px;
  background: var(--brand-primary);
  vertical-align: -0.12em;
  animation: daily-poetry-cursor 0.72s steps(1, end) infinite;
}

.daily-poetry.is-typing .daily-poetry__cursor {
  display: inline-block;
}

body.theme-dark .daily-poetry {
  border-color: rgba(var(--brand-primary-rgb), 0.26);
  background: linear-gradient(90deg, rgba(var(--brand-primary-rgb), 0.08), rgba(28, 28, 31, 0.9), rgba(var(--brand-primary-rgb), 0.08));
  color: #f2edf2;
}

body.theme-dark .daily-poetry cite {
  color: #bcb1bd;
}

@keyframes daily-poetry-cursor {
  0%, 48% { opacity: 1; }
  49%, 100% { opacity: 0; }
}

.notice-line {
  display: block;
  min-height: 0;
  padding: 16px 24px 15px;
  border-bottom: 0;
  color: #202020;
  text-align: center;
}

.notice-line span {
  flex: none;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.notice-line > .notice-line__label {
  position: relative;
  display: inline-block;
  margin-right: 0;
  padding-left: calc(1.5em + 5px);
  line-height: 1em;
  vertical-align: middle;
}

.notice-line__icon {
  position: absolute;
  top: 50%;
  left: 0;
  display: block;
  width: 1.5em;
  height: 1.5em;
  color: inherit;
  pointer-events: none;
  shape-rendering: geometricPrecision;
  transform: translateY(-50%);
}

.notice-line__icon * {
  vector-effect: non-scaling-stroke;
}

.notice-line p {
  display: inline;
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
  vertical-align: middle;
}

body.theme-dark .notice-line {
  background: transparent;
  color: #eeeeee;
}

.latest {
  width: min(1768px, calc(100% - 48px));
  margin: 0 auto 30px;
}

.home-main--notice-hidden .latest {
  padding-top: 15px;
}

.latest h2 {
  margin: 0 0 15px;
  text-align: center;
  font-size: 16px;
  font-weight: 500;
}

.result-meta {
  margin: 0 0 15px;
  color: var(--muted);
  font-size: var(--fyg-font-small, 12px);
  line-height: 1.6;
  text-align: center;
  overflow-wrap: anywhere;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 20px;
}

.home-ad-layout.has-side-ads {
  display: grid;
  grid-template-columns: 120px minmax(0, 1506px) 120px;
  gap: 14px;
  align-items: start;
  justify-content: center;
}

.home-ad-layout:not(.has-side-ads) {
  max-width: 1506px;
  margin: 0 auto;
}

.home-feed-main {
  grid-column: 2;
  min-width: 0;
}

.home-side-ad {
  position: fixed;
  top: 50%;
  z-index: 30;
  display: block;
  width: 120px;
  max-width: 100%;
  height: 340px;
  overflow: hidden;
  transform: translateY(-50%);
  border: 1px solid #f0f0f0;
  border-radius: 3px;
  background: #fff;
}

.home-side-ad--left {
  grid-column: 1;
  left: max(12px, calc((100vw - 1774px) / 2));
}

.home-side-ad--right {
  grid-column: 3;
  right: max(12px, calc((100vw - 1774px) / 2));
}

.home-side-ad img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-side-ad--empty {
  visibility: hidden;
}

.info-card {
  min-width: 0;
  overflow: hidden;
  border-radius: 4px;
  background: var(--paper);
  box-shadow: 0 0 0 1px var(--line);
  transition:
    box-shadow 160ms ease,
  transform 160ms ease;
}

.info-card a {
  position: relative;
  display: block;
  color: inherit;
  text-decoration: none;
}

.info-card__verified-stamp {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  display: block;
  width: clamp(42px, 18%, 58px);
  height: auto;
  opacity: 0.92;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
  transform: rotate(-8deg);
  transform-origin: center;
  filter:
    drop-shadow(0 0 1px rgba(255, 255, 255, 0.96))
    drop-shadow(0 1px 2px rgba(76, 0, 0, 0.2));
}

@media (max-width: 680px) {
  .info-card__verified-stamp {
    top: 6px;
    right: 6px;
    width: 42px;
  }
}

/* Built-in real-time web customer service (member + administrator). */
.live-chat-page {
  --live-chat-bg: #fff;
  --live-chat-muted-bg: #f7f9fc;
  --live-chat-line: #e3e8ef;
  --live-chat-text: #172033;
  --live-chat-muted: #7a8799;
  display: flex;
  min-width: 0;
  min-height: 0;
  flex-direction: column;
  border: 1px solid var(--live-chat-line);
  border-radius: 12px;
  background: var(--live-chat-bg);
  color: var(--live-chat-text);
  box-shadow: 0 8px 28px rgba(16, 24, 40, 0.05);
  color-scheme: light;
  overflow: hidden;
}

.live-chat-page .sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  border: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}

.live-chat-page--member {
  width: 100%;
  min-height: calc(100dvh - 96px);
  box-sizing: border-box;
}

.live-chat-page--admin {
  padding: 0 !important;
}

.live-chat-heading,
.live-chat-conversation-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--live-chat-line);
}

.live-chat-heading h1 {
  margin: 0;
  color: var(--live-chat-text);
  font-size: 24px;
  line-height: 1.35;
}

.live-chat-heading p,
.live-chat-conversation-heading span {
  display: block;
  margin: 3px 0 0;
  color: var(--live-chat-muted);
  font-size: 12px;
  line-height: 1.6;
}

.live-chat-retention-note {
  display: block;
  flex: 0 0 auto;
  padding: 7px 14px;
  border-bottom: 1px solid var(--live-chat-line);
  background: var(--live-chat-muted-bg);
  color: var(--live-chat-muted);
  font-size: 12px;
  line-height: 1.6;
  text-align: center;
}

.live-chat-heading__actions,
.live-chat-conversation-heading > div:last-child {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

.live-chat-connection {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: #eef2f7;
  color: #667085;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

.live-chat-connection::before {
  width: 7px;
  height: 7px;
  margin-right: 6px;
  border-radius: 50%;
  background: #98a2b3;
  content: "";
}

.live-chat-connection[data-state="online"] {
  background: #eafaf4;
  color: #087a58;
}

.live-chat-connection[data-state="online"]::before {
  background: #20c997;
  box-shadow: 0 0 0 3px rgba(32, 201, 151, 0.13);
}

.live-chat-connection[data-state="error"] {
  background: #fff0f2;
  color: #cc3655;
}

.live-chat-connection[data-state="error"]::before {
  background: #ef476f;
}

.live-chat-heading button,
.live-chat-conversation-heading button,
.live-chat-history,
.live-chat-queue__filter button,
.live-chat-compose button {
  border: 0;
  border-radius: 6px;
  background: var(--pink);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.live-chat-heading button,
.live-chat-conversation-heading button {
  min-height: 32px;
  padding: 0 11px;
}

.live-chat-close {
  background: #fff0f2 !important;
  color: #ce3455 !important;
}

.live-chat-reopen,
[data-live-chat-claim] {
  background: #edf8f3 !important;
  color: #087a58 !important;
}

.live-chat-install-notice {
  margin: 14px 18px 0;
  padding: 11px 14px;
  border: 1px solid #ffd7df;
  border-radius: 7px;
  background: #fff4f6;
  color: #bd2f4d;
  font-size: 13px;
  line-height: 1.55;
}

.live-chat-conversation {
  position: relative;
  display: flex;
  min-height: 0;
  flex: 1 1 auto;
  flex-direction: column;
  background: var(--live-chat-muted-bg);
}

.live-chat-page--member .live-chat-conversation {
  min-height: 420px;
}

.live-chat-messages {
  display: flex;
  min-height: 280px;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 13px;
  padding: 22px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}

.live-chat-empty {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  justify-items: center;
  width: min(88%, 360px);
  color: var(--live-chat-muted);
  text-align: center;
  transform: translate(-50%, -50%);
}

.live-chat-empty[hidden] {
  display: none !important;
}

.live-chat-empty > span {
  margin-bottom: 8px;
  font-size: 34px;
}

.live-chat-empty strong {
  color: var(--live-chat-text);
  font-size: 15px;
  line-height: 1.55;
}

.live-chat-empty p {
  margin: 4px 0 0;
  font-size: 12px;
  line-height: 1.6;
}

.live-chat-message {
  display: flex;
  width: min(78%, 680px);
  flex-direction: column;
  gap: 4px;
}

.live-chat-message.is-own {
  align-self: flex-end;
  align-items: flex-end;
}

.live-chat-message.is-other {
  align-self: flex-start;
  align-items: flex-start;
}

.live-chat-message__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 3px;
  color: var(--live-chat-muted);
  font-size: 12px;
  line-height: 1.6;
}

.live-chat-message__meta strong {
  color: inherit;
  font-size: inherit;
}

.live-chat-message p {
  margin: 0;
  padding: 10px 13px;
  border: 1px solid var(--live-chat-line);
  border-radius: 5px 13px 13px 13px;
  background: #fff;
  color: var(--live-chat-text);
  font-size: 14px;
  line-height: 1.55;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  box-shadow: 0 3px 9px rgba(16, 24, 40, 0.035);
}

.live-chat-message.is-own p {
  border-color: transparent;
  border-radius: 13px 5px 13px 13px;
  background: var(--pink);
  color: #fff;
}

.live-chat-history {
  align-self: center;
  min-height: 30px;
  margin: 10px auto 0;
  padding: 0 12px;
  background: #eef2f7;
  color: #667085;
  font-size: 12px;
}

.live-chat-compose {
  padding: 14px 18px 16px;
  border-top: 1px solid var(--live-chat-line);
  background: var(--live-chat-bg);
}

.live-chat-compose textarea {
  display: block;
  width: 100%;
  min-height: 70px;
  max-height: 180px;
  box-sizing: border-box;
  border: 1px solid #d7dee8;
  border-radius: 8px;
  padding: 10px 12px;
  background: #fff;
  color: var(--live-chat-text);
  font: inherit;
  font-size: 14px;
  line-height: 1.55;
  resize: vertical;
  outline: none;
}

.live-chat-compose textarea:focus {
  border-color: var(--pink);
  box-shadow: 0 0 0 3px rgba(var(--brand-primary-rgb), 0.1);
}

.live-chat-compose__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
}

.live-chat-compose__footer > span {
  color: var(--live-chat-muted);
  font-size: 12px;
  line-height: 1.6;
}

.live-chat-compose__footer > span.is-error {
  color: #d33557;
}

.live-chat-compose button {
  min-width: 92px;
  height: 38px;
  padding: 0 18px;
}

.live-chat-compose button:disabled,
.live-chat-heading button:disabled,
.live-chat-conversation-heading button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.live-chat-admin-layout {
  display: grid;
  min-height: 600px;
  grid-template-columns: 320px minmax(0, 1fr);
}

.live-chat-queue {
  min-width: 0;
  border-right: 1px solid var(--live-chat-line);
  background: var(--live-chat-bg);
}

.live-chat-queue__filter {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) auto;
  gap: 7px;
  padding: 12px;
  border-bottom: 1px solid var(--live-chat-line);
}

.live-chat-queue__filter input,
.live-chat-queue__filter select {
  min-width: 0;
  height: 36px;
  border: 1px solid #d7dee8;
  border-radius: 6px;
  padding: 0 9px;
  background: #fff;
  color: var(--live-chat-text);
  font-size: 13px;
  outline: none;
}

.live-chat-queue__filter button {
  height: 36px;
  padding: 0 12px;
}

.live-chat-session-list {
  display: grid;
  max-height: 540px;
  overflow-y: auto;
}

.live-chat-session {
  position: relative;
  display: grid;
  gap: 5px;
  width: 100%;
  min-width: 0;
  border: 0;
  border-bottom: 1px solid var(--live-chat-line);
  padding: 13px 14px;
  background: transparent;
  color: var(--live-chat-text);
  text-align: left;
  cursor: pointer;
}

.live-chat-session:hover,
.live-chat-session.is-active {
  background: rgba(var(--brand-primary-rgb), 0.07);
}

.live-chat-session.is-active {
  box-shadow: inset 3px 0 0 var(--pink);
}

.live-chat-session > span:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.live-chat-session strong {
  min-width: 0;
  overflow: hidden;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.live-chat-session time,
.live-chat-session > span:nth-child(2) {
  color: var(--live-chat-muted);
  font-size: 12px;
  line-height: 1.6;
}

.live-chat-session > span:nth-child(2) {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.live-chat-session > b {
  position: absolute;
  right: 12px;
  bottom: 10px;
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  padding: 0 5px;
  background: var(--pink);
  color: #fff;
  font-size: 10px;
  line-height: 18px;
  text-align: center;
}

.live-chat-queue__empty {
  margin: 0;
  padding: 32px 12px;
  color: var(--live-chat-muted);
  font-size: 13px;
  text-align: center;
}

.live-chat-queue__empty[hidden] {
  display: none;
}

.live-chat-admin-conversation {
  display: flex;
  min-width: 0;
  min-height: 0;
  flex-direction: column;
}

.live-chat-conversation-heading {
  min-height: 68px;
  box-sizing: border-box;
}

.live-chat-conversation-heading strong {
  color: var(--live-chat-text);
  font-size: 15px;
  line-height: 1.55;
}

body.theme-dark .live-chat-page {
  --live-chat-bg: #20262e;
  --live-chat-muted-bg: #181d23;
  --live-chat-line: #36404c;
  --live-chat-text: #edf3f8;
  --live-chat-muted: #99a8ba;
  color-scheme: dark;
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.25);
}

body.theme-dark .live-chat-compose textarea,
body.theme-dark .live-chat-queue__filter input,
body.theme-dark .live-chat-queue__filter select,
body.theme-dark .live-chat-message.is-other p {
  border-color: #3a4552;
  background: #252d36;
  color: #edf3f8;
}

body.theme-dark .live-chat-history {
  background: #2c3540;
  color: #c4cfdb;
}

body.theme-dark .live-chat-close {
  background: rgba(239, 71, 111, 0.14) !important;
  color: #ff8ba6 !important;
}

body.theme-dark .live-chat-reopen,
body.theme-dark [data-live-chat-claim] {
  background: rgba(32, 201, 151, 0.13) !important;
  color: #75e2bd !important;
}

@media (max-width: 900px) {
  .live-chat-page--member {
    min-height: calc(100dvh - 76px);
  }

  .live-chat-admin-layout {
    min-height: 0;
    grid-template-columns: 1fr;
  }

  .live-chat-queue {
    border-right: 0;
    border-bottom: 1px solid var(--live-chat-line);
  }

  .live-chat-session-list {
    max-height: 230px;
  }

  .live-chat-admin-conversation {
    min-height: 520px;
  }
}

@media (max-width: 680px) {
  .live-chat-page {
    border-radius: 9px;
  }

  .live-chat-heading,
  .live-chat-conversation-heading {
    align-items: flex-start;
    padding: 14px;
  }

  .live-chat-heading {
    flex-direction: column;
  }

  .live-chat-heading h1 {
    font-size: 20px;
  }

  .live-chat-heading__actions {
    width: 100%;
    justify-content: flex-start;
  }

  .live-chat-page--member .live-chat-conversation,
  .live-chat-admin-conversation {
    min-height: 430px;
  }

  .live-chat-messages {
    min-height: 250px;
    padding: 15px 12px;
  }

  .live-chat-message {
    width: min(88%, 520px);
  }

  .live-chat-compose {
    padding: 11px 12px 13px;
  }

  .live-chat-compose__footer {
    align-items: stretch;
    flex-direction: column;
  }

  .live-chat-compose button {
    width: 100%;
  }

  .live-chat-queue__filter {
    grid-template-columns: 88px minmax(0, 1fr);
  }

  .live-chat-queue__filter button {
    grid-column: 1 / -1;
  }
}

.info-card:hover {
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.16);
  transform: translateY(-2px);
}

body.theme-dark .info-card {
  background: #242424;
}

.info-card__image {
  position: relative;
  aspect-ratio: 0.805;
  overflow: hidden;
  background: #e9e9e9;
}

.info-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 220ms ease;
}

.info-card:hover .info-card__image img {
  transform: scale(1.035);
}

.info-card__badge {
  position: absolute;
  top: 10px;
  left: 10px;
  border-radius: 3px;
  background: rgba(var(--brand-primary-rgb), 0.96);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  padding: 4px 7px;
}

.info-card__body {
  padding: 8px 10px 10px;
}

.info-card__body h3 {
  display: flex;
  align-items: center;
  gap: 5px;
  overflow: hidden;
  margin: 7px 0 9px;
  color: #151515;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.info-card__body h3 span {
  flex: none;
  border-radius: 3px;
  background: #ff9800;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  padding: 3px 4px;
}


/* 信息卡片标题类型标签：商家广告 / 投稿 */
.info-card__body h3 .info-card__type {
  flex: none;
  display: inline-grid;
  place-items: center;
  min-width: 32px;
  height: 18px;
  box-sizing: border-box;
  border-radius: 3px;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  line-height: 18px;
  padding: 0 4px;
  text-align: center;
  vertical-align: middle;
  white-space: nowrap;
}

.info-card__body h3 .info-card__type--merchant {
  background: #ff9800;
}

.info-card__body h3 .info-card__type--submission {
  background: var(--brand-primary);
}

.info-card__body h3 .info-card__title-text {
  display: block;
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  padding: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.info-card__meta {
  overflow: hidden;
  margin: 0;
  color: #333;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.theme-dark .info-card__meta {
  color: #f0f0f0;
}

.info-card__meta::before {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 5px;
  border-radius: 999px;
  background: var(--pink);
  content: "";
  vertical-align: middle;
}

.info-card__author {
  overflow: hidden;
  margin: 5px 0 0;
  color: #7d8795;
  font-size: 12px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.theme-dark .info-card__author {
  color: #b9c0ca;
}

.info-card__stats {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow: hidden;
  color: #657282;
  font-size: 12px;
  white-space: nowrap;
}

.info-card__stats span {
  overflow: hidden;
  text-overflow: ellipsis;
}

.post-stat {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-width: 0;
  padding-left: 17px;
  color: inherit;
  vertical-align: middle;
}

.post-stat::before,
.post-stat::after {
  position: absolute;
  content: "";
}

.post-stat-time::before {
  top: 50%;
  left: 0;
  width: 11px;
  height: 11px;
  border: 1.4px solid currentColor;
  border-radius: 50%;
  opacity: 0.92;
  transform: translateY(-50%);
}

.post-stat-time::after {
  top: 50%;
  left: 5px;
  width: 3px;
  height: 4px;
  border-bottom: 1.4px solid currentColor;
  border-left: 1.4px solid currentColor;
  opacity: 0.92;
  transform: translateY(-68%) rotate(-8deg);
  transform-origin: left bottom;
}

.post-stat-views::before {
  top: 50%;
  left: 0;
  width: 13px;
  height: 8px;
  border: 1.4px solid currentColor;
  border-radius: 50% / 58%;
  opacity: 0.92;
  transform: translateY(-50%);
}

.post-stat-views::after {
  top: 50%;
  left: 5px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.92;
  transform: translateY(-50%);
}

.info-card__stats em {
  margin-left: auto;
  border-radius: 2px;
  background: #d8bd00;
  color: #fff;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
  line-height: 1;
  padding: 3px 4px;
}

body.theme-dark .info-card__body h3 {
  color: #f6f6f6;
}

body.theme-dark .info-card__stats {
  color: #b9c0ca;
}

.empty-state {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 42px 20px;
  text-align: center;
}

.empty-state h3,
.empty-state p {
  margin: 0;
}

.empty-state p {
  color: var(--muted);
}

.load-more-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  justify-content: center;
  padding: 44px 0 0;
  color: #7c8794;
  font-size: 13px;
}

.home-pagination__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.home-page-previous {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 96px;
  height: 40px;
  padding: 0 20px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--paper);
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.load-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 150px;
  height: 40px;
  padding: 0 24px;
  border: 0;
  border-radius: 5px;
  background: var(--pink);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(var(--brand-primary-rgb), 0.22);
}

.load-more:hover,
.load-more:focus-visible {
  background: var(--pink-dark);
}

.home-page-previous:hover,
.home-page-previous:focus-visible {
  border-color: var(--pink);
  color: var(--pink-dark);
}

.load-more[aria-disabled="true"] {
  cursor: wait;
  opacity: 0.72;
  pointer-events: none;
}

.home-load-more-loader {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 48px;
  height: 22px;
  color: currentColor;
}

.home-load-more-loader > span {
  display: block;
  width: 3px;
  height: 15px;
  border-radius: 999px;
  background: currentColor;
  animation: home-load-more-bar-bounce 720ms ease-in-out infinite;
  will-change: transform;
}

.home-load-more-loader > span:nth-child(2) {
  animation-delay: -600ms;
}

.home-load-more-loader > span:nth-child(3) {
  animation-delay: -480ms;
}

.home-load-more-loader > span:nth-child(4) {
  animation-delay: -360ms;
}

.home-load-more-loader > span:nth-child(5) {
  animation-delay: -240ms;
}

.home-load-more-loader > span:nth-child(6) {
  animation-delay: -120ms;
}

@keyframes home-load-more-bar-bounce {
  0%,
  100% {
    opacity: .52;
    transform: translateY(4px) scaleY(.72);
  }

  50% {
    opacity: 1;
    transform: translateY(-4px) scaleY(1);
  }
}

.home-pagination.is-loading .home-load-more-status {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  .home-load-more-loader > span {
    animation: none;
    transform: none;
  }

  .home-load-more-loader > span:nth-child(odd) {
    height: 10px;
  }
}

.home-load-more-status {
  min-height: 20px;
  color: var(--muted);
  line-height: 20px;
}

.home-load-more-end {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: var(--muted);
  font-weight: 700;
}

.load-more[hidden] {
  display: none;
}

.national-body {
  background: #f7f7f7;
}

.national-shell {
  width: min(1506px, calc(100% - 48px));
  margin: 0 auto;
  padding: 100px 0 30px;
}

.national-filter {
  margin-bottom: 20px;
  border-radius: 4px;
  background: #fff;
  padding: 18px 20px 16px;
}

.filter-row {
  display: grid;
  grid-template-columns: 62px 1fr;
  gap: 18px;
  align-items: start;
}

.filter-row + .filter-row {
  margin-top: 16px;
  border-top: 1px dashed #ececec;
  padding-top: 14px;
}

.filter-row strong {
  color: #2b3440;
  font-size: 14px;
  line-height: 28px;
}

.filter-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  align-items: center;
}

.filter-links a {
  color: #2d3440;
  line-height: 28px;
  text-decoration: none;
  white-space: nowrap;
}

.filter-links a:hover {
  color: var(--pink);
}

.filter-links a.is-active {
  border-radius: 999px;
  background: var(--pink);
  color: #fff;
  font-weight: 700;
  line-height: 24px;
  padding: 0 10px;
}

.filter-links a.sort-link {
  position: relative;
  padding-right: 13px;
}

.filter-links a.sort-link::after {
  position: absolute;
  top: 50%;
  right: 0;
  width: 0;
  height: 0;
  border-top: 5px solid currentColor;
  border-right: 4px solid transparent;
  border-left: 4px solid transparent;
  content: "";
  transform: translateY(-30%);
}

.filter-links a.sort-link.is-active {
  background: transparent;
  color: var(--pink);
  padding-left: 0;
}

.national-list .card-grid {
  gap: 20px;
}

.national-list .info-card__image {
  aspect-ratio: 0.81;
}

.national-empty {
  margin-top: 20px;
  background: #fff;
}

.loading-bars {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  width: 164px;
  height: 64px;
  margin: 36px auto 0;
}

.loading-bars span {
  width: 8px;
  height: 18px;
  border-radius: 999px;
  background: #e8ebef;
  animation: loadingBars 760ms ease-in-out infinite;
}

.loading-bars.is-active span {
  background: #dfe3e9;
  animation-duration: 520ms;
}

.loading-bars span:nth-child(2) {
  animation-delay: 110ms;
}

.loading-bars span:nth-child(3) {
  animation-delay: 220ms;
}

.loading-bars span:nth-child(4) {
  animation-delay: 330ms;
}

.loading-bars span:nth-child(5) {
  animation-delay: 440ms;
}

body.theme-dark .home-page-previous {
  background: #20242b;
  color: #eef1f5;
}

body.theme-dark .home-load-more-status,
body.theme-dark .home-load-more-end {
  color: #aeb7c4;
}

.pull-refresh-indicator {
  position: fixed;
  top: max(10px, env(safe-area-inset-top));
  left: 50%;
  z-index: 30000;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(var(--brand-primary-rgb), .12);
  border-radius: 999px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 12px 30px rgba(15, 29, 51, .14);
  color: #647080;
  font-size: 13px;
  line-height: 1;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -58px);
  transition: opacity 160ms ease, transform 160ms ease, color 160ms ease, background 160ms ease;
  will-change: transform, opacity;
}

.pull-refresh-indicator.is-visible {
  opacity: 1;
  transform: translate(-50%, var(--pull-refresh-offset, 10px));
}

.pull-refresh-indicator.is-ready,
.pull-refresh-indicator.is-refreshing {
  color: var(--pink);
}

.pull-refresh-indicator.is-refreshing {
  transform: translate(-50%, 12px);
}

.pull-refresh-indicator__bars {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  width: 28px;
  height: 20px;
}

.pull-refresh-indicator__bars i {
  width: 4px;
  height: 10px;
  border-radius: 999px;
  background: #c7ced7;
  animation: loadingBars 760ms ease-in-out infinite;
}

.pull-refresh-indicator__bars i:nth-child(2) {
  animation-delay: 110ms;
}

.pull-refresh-indicator__bars i:nth-child(3) {
  animation-delay: 220ms;
}

.pull-refresh-indicator.is-ready .pull-refresh-indicator__bars i,
.pull-refresh-indicator.is-refreshing .pull-refresh-indicator__bars i {
  background: var(--pink);
}

body.theme-dark .pull-refresh-indicator {
  border-color: rgba(var(--brand-primary-rgb), .18);
  background: rgba(35, 39, 44, .96);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .34);
  color: #c4ceda;
}

body.theme-dark .pull-refresh-indicator__bars i {
  background: #6d7683;
}

body.theme-dark .pull-refresh-indicator.is-ready .pull-refresh-indicator__bars i,
body.theme-dark .pull-refresh-indicator.is-refreshing .pull-refresh-indicator__bars i {
  background: var(--brand-primary-light);
}

.mobile-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 24px 0 0;
  color: #8a8f98;
  font-size: 12px;
}

.mobile-pagination a,
.mobile-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 27px;
  border-radius: 4px;
  background: #eeeeee;
  color: #8a8f98;
  text-decoration: none;
  padding: 0 9px;
}

.mobile-pagination a.is-active {
  background: var(--pink);
  color: #fff;
}

.mobile-pagination span {
  background: transparent;
  padding: 0 4px;
}

.mobile-pagination .next {
  min-width: 54px;
}

.mobile-pagination .is-disabled {
  background: #eeeeee;
  color: #b4b7bd;
}

.mobile-pagination form {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  margin: 0 0 0 2px;
  white-space: nowrap;
}

.mobile-pagination label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.mobile-pagination input {
  width: 54px;
  height: 24px;
  border: 1px solid #eeeeee;
  border-radius: 3px;
  outline: none;
  padding: 0 6px;
}

.mobile-pagination + .loading-bars {
  display: none;
}

.mobile-pagination + .loading-bars.is-active {
  display: flex;
}

@keyframes loadingBars {
  0%,
  100% {
    height: 16px;
    opacity: 0.55;
  }

  50% {
    height: 28px;
    opacity: 1;
  }
}

.site-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 96px;
  padding: 20px;
  background: #303030;
  color: #d4d4d4;
}

.site-footer p {
  margin: 0;
  max-width: 100%;
  font-size: 13px;
  line-height: 1.7;
  text-align: center;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.site-footer__runtime {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 14px;
  color: #aeb3ba;
  font-size: 12px;
  line-height: 1.6;
  text-align: center;
}

.site-footer__runtime output {
  color: inherit;
  font: inherit;
  font-variant-numeric: tabular-nums;
}

.site-footer__analytics {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.site-footer__analytics i {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #34a853;
  box-shadow: 0 0 0 3px rgba(52, 168, 83, 0.16);
}

.home-friend-links {
  width: min(1768px, calc(100% - 48px));
  margin: 0 auto 30px;
  padding: 20px 24px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
}

.home-friend-links ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.home-friend-links li {
  min-width: 0;
}

.home-friend-links a {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: color 160ms ease;
}

.home-friend-links a:hover {
  color: var(--pink);
}

.home-friend-links a:focus-visible {
  border-radius: 3px;
  outline: 2px solid var(--pink);
  outline-offset: 3px;
}

@media (max-width: 680px) {
  .home-friend-links {
    width: calc(100% - 24px);
    margin-bottom: 24px;
    padding: 16px;
    border-radius: 10px;
  }

  .home-friend-links ul {
    gap: 8px 16px;
  }

  .site-footer {
    min-height: 104px;
    padding: 18px 12px calc(18px + env(safe-area-inset-bottom));
  }

  .site-footer__runtime {
    gap: 4px 12px;
  }
}

.detail-body {
  background: #f6f6f6;
}

/* Keep the four public service-entry pages on the Help Center canvas. */
.front-service-body {
  background: #f6f6f6;
}

.detail-nav {
  width: 100%;
  min-height: 70px;
  padding: 0 calc((100% - 1470px) / 2 + 10px);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 2px 9px rgba(0, 0, 0, 0.08);
}

.detail-nav .nav-links a,
.detail-nav .nav-item-link,
.detail-nav .nav-item button,
.detail-nav .nav-actions button,
.detail-nav .nav-actions a {
  color: #111;
  text-shadow: none;
}

.detail-nav .nav-links > a::after,
.detail-nav .nav-item > .nav-item-link::before,
.detail-nav .nav-item > button::before {
  background: var(--pink);
}

.detail-nav .nav-item button::after,
.detail-nav .nav-item-link::after {
  border-top-color: #111;
}

.detail-nav .nav-item:hover button::after,
.detail-nav .nav-item:hover .nav-item-link::after,
.detail-nav .nav-item.is-open .nav-item-link::after,
.detail-nav .nav-item.is-open button::after {
  border-bottom-color: #111;
}

.avatar-btn {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 35%, #fff 0 20%, transparent 21%),
    radial-gradient(circle at 50% 85%, #fff 0 34%, transparent 35%),
    #c9c9c9 !important;
}

.account-avatar-todo-dot {
  position: absolute;
  top: -6px;
  right: -8px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 18px;
  min-width: 18px;
  height: 18px;
  padding: 0;
  border: 1.5px solid #fff;
  border-radius: 5px;
  background: #f5222d;
  color: #fff;
  box-shadow: 0 0 0 1px rgba(245, 34, 45, 0.16);
  font-size: 12px !important;
  font-weight: 800;
  line-height: 1 !important;
  text-align: center;
  white-space: nowrap;
  pointer-events: none;
}

.fyg-dashboard-avatar-link .account-avatar-todo-dot {
  top: -5px;
  right: -7px;
  width: 16px;
  min-width: 16px;
  height: 16px;
  border-radius: 4px;
  font-size: 9px !important;
}

body.theme-dark .avatar-btn .account-avatar-todo-dot {
  border-color: #181818;
  background: #ff3b47;
  color: #fff;
  box-shadow: 0 0 0 1px rgba(255, 77, 88, 0.28);
}

.detail-shell {
  width: min(880px, calc(100% - 32px));
  margin: 0 auto;
  padding: 92px 0 48px;
}

.detail-shell.has-detail-side-ads {
  width: min(1184px, calc(100% - 32px));
}

.detail-shell.has-detail-side-ads > .breadcrumb,
.detail-shell.has-detail-side-ads > .ad-banner {
  width: min(640px, 100%);
  margin-right: auto;
  margin-left: auto;
}

.breadcrumb {
  margin: 0 0 14px;
  color: #5b6472;
}

.breadcrumb a {
  color: #2c5a96;
  text-decoration: none;
}

.detail-region-link {
  color: #2c5a96;
  text-decoration: none;
}

.detail-region-link:hover {
  color: #2c5a96;
  text-decoration: none;
}

.detail-region-sep {
  color: #999;
  padding: 0 2px;
}

.breadcrumb span {
  color: #999;
  padding: 0 5px;
}

.ad-banner {
  position: relative;
  display: block;
  width: min(640px, 100%);
  height: 60px;
  margin-right: auto;
  margin-left: auto;
  overflow: hidden;
  border-radius: 4px;
  color: #fff;
  text-align: center;
  text-decoration: none;
}

.ad-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.05) brightness(0.92);
}

.ad-banner strong {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #ffeb28;
  font-size: 40px;
  font-weight: 900;
  text-shadow:
    0 3px 0 #ff3217,
    0 0 10px rgba(255, 0, 0, 0.75);
}

.detail-ad-layout.has-side-ads {
  display: grid;
  grid-template-columns: 120px minmax(0, 880px) 120px;
  gap: 32px;
  align-items: start;
  justify-content: center;
}

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

.detail-side-ad {
  position: fixed;
  top: 50%;
  z-index: 30;
  display: block;
  width: 120px;
  max-width: 100%;
  height: 340px;
  overflow: hidden;
  transform: translateY(-50%);
  border: 1px solid #eceff3;
  border-radius: 3px;
  background: #fff;
}

.detail-side-ad--left {
  grid-column: 1;
  left: max(12px, calc((100vw - 1184px) / 2));
}

.detail-side-ad--right {
  grid-column: 3;
  right: max(12px, calc((100vw - 1184px) / 2));
}

.detail-side-ad img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-side-ad--empty {
  visibility: hidden;
}

.detail-card,
.post-pager,
.comments-card {
  border-radius: 4px;
  background: #fff;
}

.detail-card {
  --detail-label-width: 5em;
  --detail-label-color: #000;
  --detail-label-size: 16px;
  --detail-label-weight: 800;
  --detail-label-line-height: 1.5;
  margin-top: 20px;
  padding: 24px 20px 50px;
}

.detail-card h1 {
  margin: 0 0 12px;
  font-size: 24px;
  font-weight: 500;
}

.detail-card h1 a {
  color: inherit;
  text-decoration: none;
}

.detail-card h1 a:hover {
  color: inherit;
  text-decoration: none;
}

.detail-author-link {
  color: #0b5fb8;
  text-decoration: none;
}

.detail-author-link:hover {
  color: var(--pink);
  text-decoration: underline;
}

.detail-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 18px;
  color: #5c6a78;
  font-size: 13px;
  line-height: 20px;
}

.detail-meta > span {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  line-height: 20px;
}

.detail-qr-trigger {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 20px;
  margin: 0;
  padding: 0 2px;
  border: 0;
  border-radius: 3px;
  background: transparent;
  color: #0b5fb8;
  font: inherit;
  font-weight: 600;
  line-height: 20px;
  cursor: pointer;
}

.detail-qr-trigger__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
}

.detail-qr-trigger__icon svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.detail-qr-trigger:hover {
  color: var(--pink);
  text-decoration: underline;
}

.detail-qr-trigger:focus-visible {
  outline: 2px solid var(--pink);
  outline-offset: 3px;
}

body.detail-qr-modal-open {
  position: fixed;
  right: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
}

.detail-qr-modal[hidden] {
  display: none !important;
}

.detail-qr-modal {
  position: fixed;
  inset: 0;
  z-index: 13000;
  display: grid;
  place-items: center;
  box-sizing: border-box;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 180ms ease, visibility 180ms ease;
}

.detail-qr-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.detail-qr-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 18, 26, 0.68);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
}

.detail-qr-modal__dialog {
  position: relative;
  z-index: 1;
  box-sizing: border-box;
  width: min(430px, 100%);
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  overflow: auto;
  padding: 26px 24px 22px;
  border: 1px solid rgba(112, 127, 145, 0.22);
  border-radius: 18px;
  background: #fff;
  color: #152235;
  box-shadow: 0 24px 70px rgba(5, 12, 20, 0.28);
  text-align: center;
  transform: translateY(10px) scale(0.985);
  transition: transform 180ms ease;
}

.detail-qr-modal.is-open .detail-qr-modal__dialog {
  transform: translateY(0) scale(1);
}

.detail-qr-modal__close {
  appearance: none;
  position: absolute;
  top: 12px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #f2f5f8;
  color: #526172;
  font-size: 26px;
  font-weight: 300;
  line-height: 1;
  cursor: pointer;
}

.detail-qr-modal__close:hover {
  background: #e8edf2;
  color: var(--pink);
}

.detail-qr-modal__close:focus-visible,
.detail-qr-modal__action:focus-visible {
  outline: 2px solid var(--pink);
  outline-offset: 2px;
}

.detail-qr-modal__header {
  padding: 0 36px;
}

.detail-qr-modal__header h2 {
  margin: 0;
  color: inherit;
  font-size: 22px;
  line-height: 1.4;
}

.detail-qr-modal__header p {
  margin: 7px 0 0;
  color: #6f7d8c;
  font-size: 13px;
  line-height: 1.6;
}

.detail-qr-modal__code {
  display: grid;
  place-items: center;
  box-sizing: border-box;
  width: 288px;
  max-width: 100%;
  margin: 20px auto 14px;
  padding: 8px;
  border: 1px solid #e1e7ed;
  border-radius: 12px;
  background: #fff;
}

.detail-qr-modal__code canvas {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  background: #fff;
}

.detail-qr-modal__code img {
  display: none !important;
}

.detail-qr-modal__code.is-save-preview canvas,
.detail-qr-modal__code.is-save-preview img:not([data-detail-qr-save-image]) {
  display: none !important;
}

.detail-qr-modal__code.is-save-preview {
  width: min(320px, 100%);
  padding: 0;
  overflow: hidden;
}

.detail-qr-modal__code.is-save-preview img[data-detail-qr-save-image] {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  background: #fff;
  -webkit-touch-callout: default;
  -webkit-user-drag: none;
  user-select: auto;
}

.detail-qr-modal__url {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 36px;
  margin: 0;
  padding: 8px 11px;
  overflow-wrap: anywhere;
  border-radius: 8px;
  background: #f4f7fa;
  color: #526172;
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
  -webkit-user-select: all;
  user-select: all;
}

.detail-qr-modal__status {
  min-height: 20px;
  margin: 9px 0;
  color: #718096;
  font-size: 12px;
  line-height: 20px;
}

.detail-qr-modal__status.is-success {
  color: #16834b;
}

.detail-qr-modal__status.is-error {
  color: #d93848;
}

.detail-qr-modal__actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.detail-qr-modal__action {
  appearance: none;
  min-width: 0;
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid #dce3ea;
  border-radius: 9px;
  background: #f4f7fa;
  color: #344255;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  cursor: pointer;
}

.detail-qr-modal__action:hover {
  border-color: var(--brand-primary-border);
  background: var(--brand-primary-soft);
  color: var(--pink-dark);
}

.detail-qr-modal__action.is-primary {
  border-color: var(--pink);
  background: var(--pink);
  color: #fff;
}

.detail-qr-modal__action.is-primary:hover {
  border-color: var(--pink-dark);
  background: var(--pink-dark);
  color: #fff;
}

body.theme-dark .detail-qr-trigger {
  color: #8cc6ff;
}

body.theme-dark .detail-qr-trigger:hover {
  color: var(--brand-primary-light);
}

body.theme-dark .detail-qr-modal__backdrop {
  background: rgba(0, 0, 0, 0.78);
}

body.theme-dark .detail-qr-modal__dialog {
  border-color: #454c55;
  background: #242424;
  color: #f3f6fb;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.58);
}

body.theme-dark .detail-qr-modal__close {
  background: #33383f;
  color: #d8e0ea;
}

body.theme-dark .detail-qr-modal__close:hover {
  background: #414851;
  color: var(--brand-primary-light);
}

body.theme-dark .detail-qr-modal__header p,
body.theme-dark .detail-qr-modal__status {
  color: #aeb8c5;
}

body.theme-dark .detail-qr-modal__status.is-success {
  color: #68dda0;
}

body.theme-dark .detail-qr-modal__status.is-error {
  color: #ff8d99;
}

body.theme-dark .detail-qr-modal__url {
  background: #191b1e;
  color: #cbd4df;
}

body.theme-dark .detail-qr-modal__action {
  border-color: #454c55;
  background: #33383f;
  color: #e8eef6;
}

body.theme-dark .detail-qr-modal__action:hover {
  border-color: var(--brand-primary-light);
  background: var(--brand-primary-dark-soft);
  color: var(--brand-primary-light);
}

body.theme-dark .detail-qr-modal__action.is-primary,
body.theme-dark .detail-qr-modal__action.is-primary:hover {
  border-color: var(--pink);
  background: var(--pink);
  color: #fff;
}

@media (max-width: 680px) {
  .detail-qr-modal {
    padding:
      max(12px, env(safe-area-inset-top))
      max(12px, env(safe-area-inset-right))
      max(12px, env(safe-area-inset-bottom))
      max(12px, env(safe-area-inset-left));
  }

  .detail-qr-modal__dialog {
    width: 100%;
    max-width: 430px;
    max-height: calc(100vh - 24px);
    max-height: calc(100dvh - 24px);
    padding: 22px 16px 16px;
    border-radius: 16px;
  }

  .detail-qr-modal__header {
    padding: 0 34px;
  }

  .detail-qr-modal__header h2 {
    font-size: 20px;
  }

  .detail-qr-modal__code {
    width: min(72vw, 256px);
    margin-top: 16px;
  }

  .detail-qr-modal__actions {
    gap: 7px;
  }

  .detail-qr-modal__action {
    min-height: 44px;
    padding: 7px 5px;
    font-size: 13px;
  }
}

/* 金币不足提示与充值卡/VIP操作教程。 */
body.vip-insufficient-modal-open {
  position: fixed;
  right: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
}

.vip-insufficient-modal[hidden] {
  display: none !important;
}

.vip-insufficient-modal {
  position: fixed;
  inset: 0;
  z-index: 14000;
  display: grid;
  place-items: center;
  box-sizing: border-box;
  padding: 18px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 180ms ease, visibility 180ms ease;
}

.vip-insufficient-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.vip-insufficient-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 18, 28, .7);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
}

.vip-insufficient-modal__dialog {
  position: relative;
  z-index: 1;
  box-sizing: border-box;
  width: min(480px, 100%);
  max-height: calc(100vh - 36px);
  max-height: calc(100dvh - 36px);
  overflow-y: auto;
  padding: 32px 30px 28px;
  border: 1px solid #e6eaf0;
  border-radius: 18px;
  background: #fff;
  color: #172033;
  box-shadow: 0 26px 80px rgba(5, 12, 20, .3);
  text-align: center;
  transform: translateY(12px) scale(.985);
  transition: transform 180ms ease;
}

.vip-insufficient-modal.is-open .vip-insufficient-modal__dialog {
  transform: translateY(0) scale(1);
}

.vip-insufficient-modal__close {
  appearance: none;
  position: absolute;
  top: 12px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #f2f4f7;
  color: #687386;
  font-size: 28px;
  font-weight: 300;
  line-height: 1;
  cursor: pointer;
}

.vip-insufficient-modal__close:hover {
  background: var(--brand-primary-soft-strong);
  color: var(--pink-dark);
}

.vip-insufficient-modal__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 66px;
  height: 66px;
  margin-bottom: 17px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-primary-bright));
  color: #fff;
  font-size: 34px;
  font-weight: 800;
  box-shadow: 0 12px 30px rgba(var(--brand-primary-rgb), .24);
}

.vip-insufficient-modal__dialog h2 {
  margin: 0;
  color: inherit;
  font-size: 25px;
  line-height: 1.35;
}

.vip-insufficient-modal__dialog p {
  margin: 15px 0 0;
  color: #5f6c7d;
  font-size: 15px;
  line-height: 1.85;
}

.vip-insufficient-modal__guide {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  margin-top: 18px;
  border: 1px solid var(--pink);
  border-radius: 9px;
  background: var(--pink);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
}

.vip-insufficient-modal__guide:hover {
  border-color: var(--pink-dark);
  background: var(--pink-dark);
  color: #fff;
}

.vip-insufficient-modal__close:focus-visible,
.vip-insufficient-modal__guide:focus-visible {
  outline: 3px solid rgba(var(--brand-primary-rgb), .32);
  outline-offset: 3px;
}

.vip-insufficient-noscript {
  box-sizing: border-box;
  margin: 16px 30px;
  padding: 15px 18px;
  border: 1px solid var(--brand-primary-border);
  border-radius: 8px;
  background: var(--brand-primary-surface);
  color: var(--brand-primary-hover);
  line-height: 1.8;
  text-align: center;
}

.vip-insufficient-noscript a {
  color: var(--pink-dark);
  font-weight: 800;
}

.recharge-tutorial {
  box-sizing: border-box;
  width: 100%;
  margin: 0 0 28px;
  padding: 26px;
  scroll-margin-top: 74px;
  border: 1px solid #e8edf3;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--brand-primary-surface) 0%, #fff 52%, #f7f9ff 100%);
}

.recharge-tutorial__heading > span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 11px;
  border-radius: 999px;
  background: var(--brand-primary-soft-strong);
  color: var(--pink-dark);
  font-size: 12px;
  font-weight: 800;
}

.recharge-tutorial__heading h2 {
  margin: 10px 0 5px;
  color: #142036;
  font-size: 23px;
  line-height: 1.4;
}

.recharge-tutorial__heading p,
.recharge-tutorial__steps p,
.recharge-tutorial__tip {
  color: #697588;
}

.recharge-tutorial__heading p {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
}

.recharge-tutorial__steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.recharge-tutorial__steps li {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-content: start;
  gap: 12px;
  min-width: 0;
  padding: 20px;
  border: 1px solid #e8edf3;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 9px 26px rgba(45, 57, 75, .055);
}

.recharge-tutorial__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--pink);
  color: #fff;
  font-size: 18px;
  font-weight: 900;
}

.recharge-tutorial__steps h3 {
  margin: 1px 0 7px;
  color: #19253a;
  font-size: 17px;
  line-height: 1.4;
}

.recharge-tutorial__steps p {
  min-height: 78px;
  margin: 0;
  font-size: 13px;
  line-height: 1.75;
}

.recharge-tutorial__steps a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  margin-top: 14px;
  padding: 0 15px;
  border: 1px solid var(--brand-primary-border);
  border-radius: 8px;
  background: var(--brand-primary-soft);
  color: var(--pink-dark);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
  text-align: center;
  text-decoration: none;
}

.recharge-tutorial__steps a:hover {
  border-color: var(--pink);
  background: var(--pink);
  color: #fff;
}

.recharge-tutorial__steps a:focus-visible {
  outline: 3px solid rgba(var(--brand-primary-rgb), .28);
  outline-offset: 2px;
}

.recharge-tutorial__tip {
  margin: 18px 0 0;
  padding: 12px 15px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .72);
  font-size: 13px;
  line-height: 1.7;
}

#recharge-purchase,
#recharge-redeem {
  scroll-margin-top: 72px;
}

body.theme-dark .vip-insufficient-modal__backdrop {
  background: rgba(0, 0, 0, .8);
}

body.theme-dark .vip-insufficient-modal__dialog {
  border-color: #454b55;
  background: #25282d;
  color: #f5f7fb;
  box-shadow: 0 26px 90px rgba(0, 0, 0, .6);
}

body.theme-dark .vip-insufficient-modal__close {
  background: #343940;
  color: #dde3ec;
}

body.theme-dark .vip-insufficient-modal__dialog p {
  color: #b7c0cc;
}

body.theme-dark .recharge-tutorial {
  border-color: #3d434d;
  background: linear-gradient(135deg, #28252a 0%, #24272c 55%, #22262d 100%);
}

body.theme-dark .recharge-tutorial__heading h2,
body.theme-dark .recharge-tutorial__steps h3 {
  color: #f4f6fa;
}

body.theme-dark .recharge-tutorial__heading p,
body.theme-dark .recharge-tutorial__steps p,
body.theme-dark .recharge-tutorial__tip {
  color: #b4bdc9;
}

body.theme-dark .recharge-tutorial__steps li {
  border-color: #3d434d;
  background: #2b2f35;
  box-shadow: none;
}

body.theme-dark .recharge-tutorial__steps a {
  border-color: rgba(var(--brand-primary-rgb), .42);
  background: var(--brand-primary-dark-soft);
  color: var(--brand-primary-light);
}

body.theme-dark .recharge-tutorial__tip {
  background: rgba(19, 21, 25, .55);
}

@media (max-width: 900px) {
  .recharge-tutorial {
    margin-bottom: 20px;
    padding: 18px;
  }

  .recharge-tutorial__heading h2 {
    font-size: 19px;
  }

  .recharge-tutorial__steps {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 17px;
  }

  .recharge-tutorial__steps li {
    padding: 17px;
  }

  .recharge-tutorial__steps p {
    min-height: 0;
  }

  .recharge-tutorial__steps a {
    min-height: 44px;
  }
}

@media (max-width: 680px) {
  .vip-insufficient-modal {
    padding:
      max(12px, env(safe-area-inset-top))
      max(12px, env(safe-area-inset-right))
      max(12px, env(safe-area-inset-bottom))
      max(12px, env(safe-area-inset-left));
  }

  .vip-insufficient-modal__dialog {
    width: 100%;
    max-height: calc(100vh - 24px);
    max-height: calc(100dvh - 24px);
    padding: 28px 18px 20px;
    border-radius: 15px;
  }

  .vip-insufficient-modal__dialog h2 {
    font-size: 22px;
  }

  .vip-insufficient-modal__dialog p {
    font-size: 14px;
  }

  .vip-insufficient-modal__guide {
    min-height: 46px;
  }

  .vip-insufficient-noscript {
    margin: 12px;
  }

  .recharge-tutorial {
    padding: 15px;
    border-radius: 9px;
  }

  .recharge-tutorial__heading h2 {
    font-size: 17px;
  }

  .recharge-tutorial__steps li {
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 10px;
    padding: 14px;
  }

  .recharge-tutorial__number {
    width: 38px;
    height: 38px;
    font-size: 16px;
  }

  .recharge-tutorial__steps a {
    width: 100%;
    box-sizing: border-box;
  }
}

@media (prefers-reduced-motion: reduce) {
  .daily-poetry__cursor {
    display: none !important;
    animation: none !important;
  }

  .vip-insufficient-modal,
  .vip-insufficient-modal__dialog {
    transition: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .detail-qr-modal,
  .detail-qr-modal__dialog {
    transition: none;
  }
}

.merchant-detail-badge {
  display: inline-flex;
  align-items: center;
  height: 20px;
  border-radius: 3px;
  background: #ff9f0a;
  color: #fff;
  padding: 0 6px;
  font-size: 12px;
  font-weight: 700;
}

.merchant-detail-card .vip-box {
  display: none;
}

.profile-list {
  margin: 0;
  font-size: 16px;
}

.profile-list div {
  display: grid;
  grid-template-columns: var(--detail-label-width) minmax(0, 1fr);
  column-gap: 4px;
  align-items: baseline;
  margin: 5px 0;
}

.profile-list dt {
  display: inline-flex;
  align-items: baseline;
  justify-content: flex-start;
  width: var(--detail-label-width);
  color: var(--detail-label-color);
  font-size: var(--detail-label-size);
  font-weight: var(--detail-label-weight);
  line-height: var(--detail-label-line-height);
  text-align: left;
  text-align-last: auto;
  letter-spacing: 0;
  white-space: nowrap;
}

.detail-label-text {
  display: inline-block;
  width: 4em;
  min-width: 4em;
  max-width: 4em;
  text-align: justify;
  text-align-last: justify;
  letter-spacing: 0;
  white-space: nowrap;
}

.detail-label-colon {
  display: inline-block;
  width: 1em;
  text-align: left;
  letter-spacing: 0;
}

.profile-list dd {
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
}

.vip-box {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 62px;
  margin: 22px 0 48px;
  border: 2px dashed var(--pink);
  padding: 12px 26px;
}

.vip-box span {
  color: #333;
  font-size: 13px;
}

.vip-box button {
  min-width: 86px;
  height: 30px;
  border: 0;
  border-radius: 999px;
  background: #e8c66a;
  color: #222;
}

.detail-section {
  margin-top: 20px;
}

.detail-section h2 {
  display: inline-flex;
  align-items: baseline;
  justify-content: flex-start;
  width: var(--detail-label-width);
  margin: 0 0 8px;
  color: var(--detail-label-color);
  font-size: var(--detail-label-size);
  font-weight: var(--detail-label-weight);
  line-height: var(--detail-label-line-height);
  text-align: left;
  text-align-last: auto;
  letter-spacing: 0;
  white-space: nowrap;
}

.private-field-section {
  margin-top: 28px;
}

.private-field-section h2 {
  width: var(--detail-label-width);
  margin: 0 0 20px;
  color: #000;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.5;
  text-align: left;
  text-align-last: auto;
  letter-spacing: 0;
  white-space: nowrap;
}

.private-field-section p {
  margin: 0 0 20px;
  color: #222;
  font-size: 16px;
  line-height: 1.7;
}

.private-field-section .private-access-tip {
  margin: 0 0 20px;
}

.comments-card h2 {
  margin: 0 0 8px;
  font-size: 18px;
}

.detail-gallery {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  align-items: start;
  gap: 18px;
  width: 100%;
  min-width: 0;
  padding-top: 4px;
}

.detail-gallery-item {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 0;
  margin: 0;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
  color: inherit;
  cursor: zoom-in;
  appearance: none;
  -webkit-appearance: none;
}

.detail-gallery-item:focus-visible {
  border-radius: 4px;
  outline: 2px solid var(--pink);
  outline-offset: 4px;
}

.detail-gallery-item img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: min(78vh, 900px);
  max-height: min(78dvh, 900px);
  margin-inline: auto;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
}

.detail-gallery-empty {
  justify-self: stretch;
  margin: 10px 0 4px;
  color: #8b93a0;
  text-align: center;
}

body.detail-lightbox-open {
  position: fixed;
  inset-inline: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.detail-lightbox[hidden] {
  display: none !important;
}

.detail-lightbox {
  position: fixed;
  inset: 0;
  z-index: 40000;
  display: grid;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  color: #fff;
  isolation: isolate;
}

.detail-lightbox-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  padding: 0;
  background: rgba(5, 8, 14, 0.94);
  cursor: zoom-out;
}

.detail-lightbox-panel {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 12px;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  padding:
    max(12px, env(safe-area-inset-top))
    max(12px, env(safe-area-inset-right))
    max(12px, env(safe-area-inset-bottom))
    max(12px, env(safe-area-inset-left));
  pointer-events: none;
}

.detail-lightbox-stage {
  position: relative;
  grid-row: 1;
  display: block;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  padding: 52px 68px 8px;
  pointer-events: auto;
  overscroll-behavior: contain;
  touch-action: pan-y pinch-zoom;
}

.detail-lightbox-canvas {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
}

.detail-lightbox-image {
  display: block;
  flex: 0 0 auto;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  cursor: zoom-in;
  user-select: none;
  -webkit-user-drag: none;
}

.detail-lightbox-stage.is-zoomed {
  overflow: auto;
  padding: 52px 12px 12px;
  touch-action: pan-x pan-y pinch-zoom;
}

.detail-lightbox-stage.is-zoomed .detail-lightbox-canvas {
  width: max-content;
  height: max-content;
  min-width: 100%;
  min-height: 100%;
}

.detail-lightbox-stage.is-zoomed .detail-lightbox-image {
  max-width: none;
  max-height: none;
  cursor: zoom-out;
}

.detail-lightbox-control {
  position: absolute;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  padding: 0;
  background: rgba(15, 20, 30, 0.72);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.28);
  color: #fff;
  font-family: Arial, sans-serif;
  font-size: 38px;
  font-weight: 300;
  line-height: 1;
  pointer-events: auto;
  appearance: none;
  -webkit-appearance: none;
}

.detail-lightbox-control:hover,
.detail-lightbox-control:focus-visible,
.detail-lightbox-toolbar button:hover,
.detail-lightbox-toolbar button:focus-visible {
  border-color: var(--pink);
  background: var(--pink);
  outline: none;
}

.detail-lightbox-control:disabled {
  opacity: 0.25;
  cursor: default;
}

.detail-lightbox-control[hidden] {
  display: none;
}

.detail-lightbox-control:disabled:hover {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(15, 20, 30, 0.72);
}

.detail-lightbox-close {
  top: max(12px, env(safe-area-inset-top));
  right: max(12px, env(safe-area-inset-right));
  font-size: 32px;
}

.detail-lightbox-prev,
.detail-lightbox-next {
  top: 50%;
  transform: translateY(-50%);
}

.detail-lightbox-prev {
  left: max(12px, env(safe-area-inset-left));
}

.detail-lightbox-next {
  right: max(12px, env(safe-area-inset-right));
}

.detail-lightbox-toolbar {
  position: relative;
  z-index: 2;
  grid-row: 2;
  justify-self: center;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 5px 7px 5px 16px;
  background: rgba(15, 20, 30, 0.76);
  color: #fff;
  font-size: 14px;
  pointer-events: auto;
  backdrop-filter: blur(10px);
}

.detail-lightbox-toolbar button {
  min-width: 64px;
  height: 32px;
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  line-height: 30px;
  appearance: none;
  -webkit-appearance: none;
}

@media (max-width: 680px) {
  .detail-gallery {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    justify-items: center;
    gap: 16px;
    overflow: visible;
    padding-top: 4px;
    touch-action: auto;
  }

  .detail-gallery-item {
    min-width: 0;
    padding-inline: 1px;
  }

  .detail-gallery-item img {
    max-height: 70vh;
    max-height: 70dvh;
  }

  .detail-lightbox-panel {
    gap: 8px;
    padding:
      max(8px, env(safe-area-inset-top))
      max(6px, env(safe-area-inset-right))
      max(8px, env(safe-area-inset-bottom))
      max(6px, env(safe-area-inset-left));
  }

  .detail-lightbox-stage {
    padding: 52px 4px 6px;
  }

  .detail-lightbox-stage.is-zoomed {
    padding: 52px 4px 8px;
  }

  .detail-lightbox-control {
    width: 44px;
    height: 44px;
    background: rgba(15, 20, 30, 0.66);
    font-size: 34px;
  }

  .detail-lightbox-close {
    top: max(8px, env(safe-area-inset-top));
    right: max(8px, env(safe-area-inset-right));
    font-size: 30px;
  }

  .detail-lightbox-prev {
    left: max(6px, env(safe-area-inset-left));
  }

  .detail-lightbox-next {
    right: max(6px, env(safe-area-inset-right));
  }

  .detail-lightbox-toolbar {
    min-height: 40px;
    gap: 10px;
    padding: 4px 5px 4px 13px;
  }
}

.rich-content {
  margin-top: 54px;
  font-size: 16px;
  line-height: 1.7;
}

.rich-content p {
  margin: 0 0 12px;
}

.detail-contact-notice {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 22px;
  padding: 14px 16px;
  border: 1px solid #f0d38d;
  border-radius: 8px;
  background: #fffaf0;
  color: #78591d;
  font-size: 14px;
  line-height: 1.7;
  box-sizing: border-box;
}

.detail-contact-notice strong {
  flex: 0 0 auto;
  color: #65450d;
}

.detail-contact-notice span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.safe-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 54px;
  margin-top: 22px;
  border-radius: 4px;
  background: #fafafa;
  color: #7f8792;
  line-height: 1.6;
  padding: 12px 16px;
  text-align: center;
  box-sizing: border-box;
}

.safe-note__icon {
  flex: 0 0 auto;
  color: #f2b21b;
  line-height: 1.6;
}

.safe-note__text {
  min-width: 0;
  overflow-wrap: anywhere;
}

.reaction-row {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 30px;
}

.reaction-btn {
  display: grid;
  width: 60px;
  height: 60px;
  place-items: center;
  border: 1px solid #edf0f4;
  border-radius: 50%;
  background: #fff;
  color: #b8c0cc;
  font-size: 24px;
}

.reaction-btn span {
  margin-top: -12px;
  font-size: 12px;
}

.reaction-btn.is-active {
  border-color: var(--pink);
  color: var(--pink);
}

.post-pager {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 20px;
  padding: 20px;
}

.post-pager a {
  color: #111;
  text-decoration: none;
}

.post-pager a + a {
  border-left: 1px dashed #e4e4e4;
  text-align: right;
}

.post-pager span,
.post-pager strong {
  display: block;
}

.post-pager span {
  color: #777;
  font-size: 13px;
}

.post-pager strong {
  font-weight: 500;
}

.ad-banner--bottom {
  margin-top: 20px;
}

.comments-card {
  margin-top: 20px;
  padding: 18px 20px 20px;
  border-radius: 4px;
  background: #fff;
}

.comments-card h2 {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 16px;
  color: #111;
  font-size: 16px;
  line-height: 1;
  font-weight: 500;
}

.comments-card h2::before {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--pink);
  content: "☻";
  font-size: 16px;
  line-height: 1;
}

.comments-card h2 span {
  color: var(--pink);
  font-size: 12px;
  font-weight: 500;
  padding-left: 4px;
}

.comment-compose {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.comment-login {
  display: grid;
  min-height: 52px;
  place-items: center;
  border-radius: 4px;
  background: #fafafa;
  color: #222;
  margin-top: 12px;
}

.comment-login a {
  color: var(--pink);
  text-decoration: none;
}

.comment-login a:hover {
  text-decoration: underline;
}

.comment-user {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding-top: 0;
}

.comment-user span {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 35%, #fff 0 22%, transparent 23%),
    radial-gradient(circle at 50% 90%, #fff 0 38%, transparent 39%),
    #d7d7d7;
}

.comment-user small {
  max-width: 52px;
  overflow: hidden;
  color: #777;
  font-size: 12px;
  line-height: 1.2;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.comment-box {
  min-width: 0;
}

.comment-box textarea {
  display: block;
  width: 100%;
  height: 88px;
  min-height: 88px;
  max-height: 180px;
  resize: vertical;
  border: 1px solid #e1e4e8;
  border-radius: 4px;
  outline: none;
  padding: 10px 12px;
  background: #fff;
  color: #222;
  font-size: 14px;
  line-height: 1.6;
}

.comment-box textarea:focus {
  border-color: var(--pink);
  box-shadow: 0 0 0 3px rgba(var(--brand-primary-rgb), 0.10);
}

.comment-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
}

.emoji-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #333;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.emoji-btn:hover {
  color: var(--pink);
}

.submit-comment {
  width: 100px;
  height: 36px;
  border: 0;
  border-radius: 4px;
  background: var(--pink);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.submit-comment:hover {
  filter: brightness(0.98);
}

.comment-list {
  display: grid;
  gap: 8px;
  margin: 16px 0 0 66px;
  padding: 0;
  list-style: none;
}

.comment-list li {
  border-radius: 4px;
  background: #fafafa;
  padding: 10px 12px;
  color: #333;
}

@media (max-width: 640px) {
  .comments-card {
    padding: 16px 14px 18px;
  }

  .comments-card-live .comment-compose-form {
    display: grid;
    grid-template-columns: 50px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
  }

  .comment-compose {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 10px;
  }

  .comment-user span,
  .comments-card-live .comment-user-avatar {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
  }

  .comments-card-live .comment-user {
    align-items: center;
    text-align: center;
  }

  .comments-card-live .comment-user small {
    max-width: 48px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .comments-card-live .comment-box textarea {
    min-height: 88px;
  }

  .comments-card-live .comment-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 8px;
  }

  .comment-list {
    margin-left: 0;
  }
}

.publish-shell {
  width: min(880px, calc(100% - 32px));
  margin: 0 auto;
  padding: 100px 0 50px;
}

.publish-card {
  min-height: 590px;
  border-radius: 5px;
  background: #fff;
  padding: 20px 20px 40px;
}

.publish-card--login {
  min-height: 275px;
  padding-bottom: 40px;
}

.publish-card h1 {
  margin: 0 0 20px;
  border-left: 6px solid var(--pink);
  padding: 10px 0 10px 16px;
  font-size: 23px;
  line-height: 1.25;
}

.publish-notice {
  margin: 0 0 30px;
  background: var(--pink);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.7;
  padding: 3px 0;
}

.publish-notice p {
  margin: 0;
}

.publish-notice p::before {
  content: "● ";
}

.publish-login-alert {
  min-height: 44px;
  margin-top: 20px;
  border: 1px solid #f0dfb2;
  border-radius: 3px;
  background: #fff9e6;
  color: #6d5a23;
  line-height: 42px;
  padding: 0 10px;
}

.publish-login-alert a {
  color: inherit;
  text-decoration: none;
}

.publish-login-alert a:hover {
  color: var(--pink);
}

.publish-form {
  display: grid;
  gap: 30px;
  margin: 0;
  padding: 0;
}

.form-row {
  position: relative;
  display: grid;
  gap: 10px;
  padding-left: 10px;
}

.form-row::before {
  position: absolute;
  top: 7px;
  left: -20px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #333;
  content: "";
}

.form-row span {
  color: #111;
  font-size: 16px;
  font-weight: 800;
}

.form-row b {
  color: #f00;
}

.form-row input,
.form-row select,
.form-row textarea {
  width: min(778px, 100%);
  border: 1px solid #d9d9d9;
  border-radius: 0;
  background: #fbfbfb;
  color: #333;
  outline: none;
  padding: 6px;
}

.form-row input,
.form-row select {
  height: 33px;
}

.form-row select {
  width: 150px;
  background: #fff;
}

.form-row textarea {
  min-height: 212px;
  resize: vertical;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  border-color: var(--pink);
  box-shadow: 0 0 0 2px rgba(var(--brand-primary-rgb), 0.12);
}

.form-row small {
  color: #59616b;
  font-size: 12px;
  font-style: italic;
}

.upload-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 92px;
  height: 38px;
  border: 1px solid #cfcfcf;
  background: #fff;
  color: #111;
}

.upload-btn input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.upload-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.upload-preview img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border: 1px solid #ddd;
}

.publish-submit {
  width: 96px;
  height: 42px;
  border: 0;
  border-radius: 3px;
  background: #0088c6;
  color: #fff;
  font-size: 16px;
}

.publish-submit:hover {
  background: #0073a8;
}

.form-result {
  min-height: 20px;
  margin: 0;
  color: var(--pink);
}

body.theme-dark .publish-card {
  background: #242424;
}

body.theme-dark .form-row span {
  color: #f2f2f2;
}

body.theme-dark .form-row input,
body.theme-dark .form-row select,
body.theme-dark .form-row textarea,
body.theme-dark .upload-btn {
  background: #1f1f1f;
  color: #f2f2f2;
  border-color: #3f3f3f;
}

.post-gate-body {
  min-height: 100vh;
}

.post-gate {
  display: grid;
  min-height: 630px;
  place-items: center;
  padding: 70px 16px 0;
}

.gate-card {
  display: grid;
  justify-items: center;
  border: 0;
  background: transparent;
  color: #ffb300;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.7;
  text-decoration: none;
  transform: translateY(-10px);
}

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

.submission-closed-card {
  width: min(100%, 520px);
  gap: 12px;
  padding: 34px 28px;
  border: 0;
  background: transparent;
  color: var(--ink);
  text-align: center;
  transform: none;
}

.submission-closed-card__icon {
  width: 58px;
  height: 58px;
  margin-bottom: 4px;
  padding: 14px;
  border-radius: 50%;
  background: #229ed9;
  fill: #fff;
}

.submission-closed-card strong {
  font-size: 24px;
  line-height: 1.35;
}

.submission-closed-card span {
  color: var(--muted);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.55;
}

.submission-closed-card a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 150px;
  min-height: 42px;
  margin-top: 6px;
  padding: 0 20px;
  border-radius: 999px;
  background: var(--pink);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.55;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(var(--brand-primary-rgb), 0.2);
}

.submission-closed-card a:hover {
  background: var(--pink-dark);
}

.submission-closed-card a:focus-visible {
  outline: 2px solid var(--pink);
  outline-offset: 3px;
}

@media (max-width: 680px) {
  .submission-closed-gate {
    min-height: calc(100vh - 120px);
    min-height: calc(100dvh - 120px);
    padding: 70px 12px 20px;
  }

  .submission-closed-card {
    gap: 10px;
    padding: 28px 18px;
  }

  .submission-closed-card__icon {
    width: 52px;
    height: 52px;
    padding: 13px;
  }

  .submission-closed-card strong {
    font-size: 20px;
  }

  .submission-closed-card span,
  .submission-closed-card a {
    font-size: 14px;
  }

  .submission-closed-card a {
    min-height: 40px;
  }
}

.crown-icon {
  position: relative;
  display: block;
  width: 72px;
  height: 58px;
  margin-bottom: 22px;
  background: #ffb300;
  clip-path: polygon(4% 26%, 26% 42%, 50% 0, 74% 42%, 96% 26%, 84% 100%, 16% 100%);
}

body.theme-dark .post-gate {
  background: #191919;
}

.account-shell {
  display: grid;
  grid-template-columns: 200px 1fr;
  width: min(1200px, calc(100% - 32px));
  min-height: 752px;
  margin: 100px auto 30px;
  overflow: hidden;
  border-radius: 5px;
  background: #fff;
}

.account-sidebar {
  background: #fafafa;
  padding: 20px;
}

.account-profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  height: 128px;
  padding: 0 0 25px;
  border-bottom: 1px solid #e7e7e7;
  box-sizing: border-box;
  text-align: center;
}

.account-avatar {
  position: relative;
  display: block;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 34%, #fff 0 20%, transparent 21%),
    radial-gradient(circle at 50% 86%, #fff 0 35%, transparent 36%),
    #c9c9c9;
  box-sizing: border-box;
}

.account-avatar::after {
  position: absolute;
  right: 1px;
  bottom: 4px;
  z-index: 2;
  width: 14px;
  height: 12px;
  border: 1px solid #7aa6c2;
  border-radius: 2px;
  background: #fff;
  box-sizing: border-box;
  content: "";
}

.account-avatar::before {
  position: absolute;
  right: 5px;
  bottom: 7px;
  z-index: 3;
  width: 5px;
  height: 5px;
  border: 1px solid #7aa6c2;
  border-radius: 50%;
  background: #fff;
  box-sizing: border-box;
  content: "";
}

.account-avatar-form {
  width: 52px;
  height: 52px;
  margin: 0;
}

.account-avatar-upload {
  position: relative;
  display: block;
  width: 52px;
  height: 52px;
  cursor: pointer;
}

.account-avatar-upload input[type="file"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.account-avatar-upload:hover .account-avatar {
  box-shadow: 0 0 0 3px rgba(var(--brand-primary-rgb), 0.12);
}

.account-avatar.has-custom-avatar,
.avatar-btn.has-custom-avatar,
.nav-user-avatar.has-custom-avatar,
.fyg-dashboard-mini-avatar.has-custom-avatar {
  background-image: var(--user-avatar-image) !important;
  background-color: #c9c9c9 !important;
  background-repeat: no-repeat !important;
  background-position: center center !important;
  background-size: cover !important;
}

.avatar-btn.has-custom-avatar,
.fyg-dashboard-mini-avatar.has-custom-avatar {
  border-radius: 50% !important;
}

.avatar-btn.has-custom-avatar::before,
.avatar-btn.has-custom-avatar::after {
  display: none !important;
  content: none !important;
}

[data-avatar-preview] {
  cursor: zoom-in;
}

body.avatar-preview-open {
  overflow: hidden;
}

.avatar-preview-dialog[hidden] {
  display: none !important;
}

.avatar-preview-dialog {
  position: fixed;
  inset: 0;
  z-index: 50000;
  display: grid;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  padding:
    max(18px, env(safe-area-inset-top))
    max(18px, env(safe-area-inset-right))
    max(18px, env(safe-area-inset-bottom))
    max(18px, env(safe-area-inset-left));
  box-sizing: border-box;
  opacity: 0;
  place-items: center;
  transition: opacity 150ms ease;
  isolation: isolate;
}

.avatar-preview-dialog.is-open {
  opacity: 1;
}

.avatar-preview-dialog__backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  border: 0;
  padding: 0;
  background: rgba(5, 8, 14, .92);
  cursor: zoom-out;
}

.avatar-preview-dialog__panel {
  position: relative;
  z-index: 1;
  display: grid;
  width: min(920px, 100%);
  height: min(820px, 100%);
  min-width: 0;
  min-height: 0;
  place-items: center;
  pointer-events: none;
}

.avatar-preview-dialog__image {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  border-radius: 4px;
  object-fit: contain;
  box-shadow: 0 16px 48px rgba(0, 0, 0, .42);
  pointer-events: auto;
  user-select: none;
  -webkit-user-drag: none;
}

.avatar-preview-dialog__close {
  position: fixed;
  top: max(12px, env(safe-area-inset-top));
  right: max(12px, env(safe-area-inset-right));
  z-index: 2;
  display: grid;
  width: 46px;
  height: 46px;
  margin: 0;
  border: 1px solid rgba(255, 255, 255, .34);
  border-radius: 50%;
  padding: 0;
  background: rgba(15, 20, 30, .76);
  color: #fff;
  cursor: pointer;
  place-items: center;
  pointer-events: auto;
  appearance: none;
  -webkit-appearance: none;
}

.avatar-preview-dialog__close svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.avatar-preview-dialog__close:hover,
.avatar-preview-dialog__close:focus-visible {
  border-color: var(--pink);
  outline: none;
  background: var(--pink);
}

@media (max-width: 680px) {
  .avatar-preview-dialog {
    padding:
      max(54px, env(safe-area-inset-top))
      max(10px, env(safe-area-inset-right))
      max(18px, env(safe-area-inset-bottom))
      max(10px, env(safe-area-inset-left));
  }

  .avatar-preview-dialog__panel {
    width: 100%;
    height: 100%;
  }

  .avatar-preview-dialog__close {
    width: 42px;
    height: 42px;
  }
}

.account-profile strong {
  display: block;
  margin: 0;
  color: #111;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.2;
}

.account-menu {
  display: grid;
  gap: 2px;
  margin-top: 42px;
}

.account-menu a {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  border-radius: 4px;
  color: #7f8792;
  font-size: 16px;
  text-decoration: none;
  padding: 0 20px;
}

.account-menu a span {
  width: 14px;
  color: #87909c;
  font-size: 14px;
}

.account-menu a.is-active {
  background: #eeeeee;
  color: #555;
}

.account-menu a.is-active span {
  color: var(--pink);
}

.agency-panel {
  padding: 46px 30px;
}

.referral-box {
  margin-bottom: 28px;
}

.agency-link-card {
  display: grid;
  gap: 12px;
  width: min(760px, 100%);
  margin: 0 0 28px;
  padding: 18px 20px;
  border: 1px solid #e3e8ef;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(15, 23, 42, .04);
  box-sizing: border-box;
}

.agency-link-row {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) 58px;
  align-items: center;
  gap: 10px;
}

.agency-link-row label {
  color: #1f2937;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.agency-link-row input {
  width: 100%;
  height: 34px;
  border: 1px solid #b8c1cc;
  border-radius: 3px;
  padding: 0 10px;
  background: #fff;
  color: #1f2937;
  font-size: 13px;
  box-sizing: border-box;
}

.agency-copy-btn {
  height: 34px;
  border: 1px solid #aeb7c2;
  border-radius: 4px;
  background: #f8fafc;
  color: #1f2937;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.agency-copy-btn:hover,
.agency-copy-btn.is-copied {
  border-color: var(--pink);
  background: var(--pink);
  color: #fff;
}

.agency-copy-btn.is-copy-failed {
  border-color: #d93025;
  color: #d93025;
}

.agency-link-note {
  margin: 2px 0 0 !important;
  color: #8b8f96 !important;
  font-size: 13px !important;
  line-height: 1.6;
}

.referral-box p {
  margin: 0 0 5px;
  font-size: 18px;
}

.referral-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.referral-link span {
  color: #43aee6;
  font-size: 22px;
}

.referral-link button {
  position: relative;
  width: 18px;
  height: 18px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.referral-link button::before,
.referral-link button::after {
  position: absolute;
  width: 9px;
  height: 11px;
  border: 1px solid #111;
  content: "";
}

.referral-link button::before {
  right: 1px;
  bottom: 1px;
  background: #fff;
}

.referral-link button::after {
  top: 1px;
  left: 1px;
}

.referral-link button.is-copied::before,
.referral-link button.is-copied::after {
  border-color: var(--pink);
}

.referral-link button.is-copy-failed::before,
.referral-link button.is-copy-failed::after {
  border-color: #d93025;
}

.referral-box small {
  color: #8b8f96;
  font-size: 14px;
}

.agency-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
  margin: 0 0 34px;
}

.agency-summary article {
  min-height: 92px;
  border: 1px solid #dcdcdc;
  border-radius: 5px;
  padding: 18px;
  background: #fff;
}

.agency-summary strong {
  display: block;
  color: var(--pink);
  font-size: 26px;
  line-height: 1.1;
}

.agency-summary span {
  display: block;
  margin-top: 12px;
  color: #525a64;
  font-weight: 700;
}

.referral-apply-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 110px;
  height: 38px;
  margin-top: 18px;
  padding: 0 22px;
  border-radius: 3px;
  background: var(--pink);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

.referral-apply-link:hover {
  color: #fff;
  filter: brightness(0.98);
}

.agency-table-wrap {
  overflow-x: auto;
  margin-bottom: 50px;
}

.agency-table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
  margin-bottom: 0;
}

.agency-table th {
  height: 40px;
  color: #111;
  font-weight: 800;
  text-align: center;
}

.agency-table td {
  height: 43px;
  border-top: 2px solid #ddd;
  background: #f7f7f7;
  color: #888;
  text-align: center;
}

.agency-rules {
  width: min(880px, 100%);
  margin: 0 auto;
  color: #8a9099;
}

.agency-rules h2 {
  margin: 0 0 30px;
  color: #7d8792;
  font-size: 16px;
}

.agency-rules p {
  margin: 0 0 26px;
  line-height: 1.8;
}

.agency-rules strong {
  color: #111;
}

.agency-footer {
  margin-top: 0;
}

body.theme-dark .account-shell,
body.theme-dark .account-sidebar,
body.theme-dark .agency-table td,
body.theme-dark .agency-summary article {
  background: #242424;
}

body.theme-dark .account-menu a.is-active {
  background: #303030;
}

body.theme-dark .account-menu a,
body.theme-dark .referral-box p,
body.theme-dark .agency-table th,
body.theme-dark .agency-rules strong {
  color: #f2f2f2;
}

.recharge-panel {
  padding: 40px 30px;
}

.wallet-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

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

.wallet-cards article {
  min-height: 114px;
  border: 1px solid #dcdcdc;
  border-radius: 5px;
  padding: 20px;
}

.wallet-cards strong {
  color: #18202a;
  font-size: 30px;
  line-height: 1.1;
}

.wallet-cards .wallet-pink {
  color: var(--pink);
}

.wallet-cards span {
  color: #111;
  font-weight: 700;
  padding-left: 4px;
}

.wallet-cards p {
  margin: 18px 0 0;
  color: #525a64;
}

.wallet-balance-breakdown {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  margin-top: 8px;
  color: #7d8795;
  font-size: 12px;
  line-height: 1.5;
}

.card-buy {
  display: grid;
  justify-content: center;
  gap: 18px;
  margin-top: 72px;
  color: #4f5864;
}

.card-buy p {
  margin: 0 0 18px;
  font-weight: 700;
}

.card-buy div {
  display: grid;
  grid-template-columns: auto 84px;
  gap: 22px;
  align-items: center;
}

.card-buy a,
.card-buy button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  height: 30px;
  border: 0;
  border-radius: 4px;
  background: #1e93ee;
  color: #fff;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.card-buy a:hover {
  background: #1685da;
}

.card-buy button:disabled {
  background: #a9c8df;
  cursor: not-allowed;
  opacity: 0.78;
}

.recharge-form {
  display: grid;
  justify-content: center;
  gap: 38px;
  margin-top: 54px;
}

.recharge-form h1 {
  margin: 0 0 -16px;
  color: #707983;
  font-size: 18px;
  font-weight: 500;
  text-align: center;
}

.recharge-form input {
  width: min(560px, calc(100vw - 80px));
  height: 51px;
  border: 1px solid #dcdcdc;
  border-radius: 4px;
  outline: none;
  padding: 0 14px;
}

.recharge-form input:focus {
  border-color: var(--pink);
  box-shadow: 0 0 0 3px rgba(var(--brand-primary-rgb), 0.12);
}

.recharge-form button {
  width: min(560px, calc(100vw - 80px));
  height: 53px;
  border: 0;
  border-radius: 4px;
  background: var(--pink);
  color: #fff;
  font-size: 18px;
}

.recharge-form p {
  min-height: 20px;
  margin: -24px 0 0;
  color: var(--pink);
  text-align: center;
}

body.theme-dark .wallet-cards article,
body.theme-dark .recharge-form input {
  background: #242424;
  border-color: #3f3f3f;
}

body.theme-dark .wallet-cards strong,
body.theme-dark .wallet-cards span,
body.theme-dark .wallet-cards p,
body.theme-dark .card-buy,
body.theme-dark .recharge-form h1,
body.theme-dark .recharge-form input {
  color: #f2f2f2;
}

.account-vip-panel {
  padding: 40px 30px;
}

.account-vip-stats {
  margin-bottom: 46px;
}

.account-vip-grid {
  display: grid;
  gap: 30px;
}

.account-vip-grid--vip {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.account-vip-grid--merchant {
  grid-template-columns: minmax(240px, 320px);
  justify-content: center;
}

.account-vip-grid--merchant .vip-plan {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 250px;
  border-radius: 4px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.04);
}

.account-vip-grid--merchant .vip-plan h2 {
  width: 100%;
  height: 46px;
  font-size: 15px;
  line-height: 46px;
}

.account-vip-grid--merchant .vip-price {
  --vip-price-size: 27px;
  flex-direction: column;
  gap: 14px;
  justify-content: center;
  width: 100%;
  margin-top: 10px;
}

.account-vip-grid--merchant .vip-price strong {
  font-size: var(--vip-price-size);
  line-height: 1;
}

.account-vip-grid--merchant .vip-price span {
  font-size: var(--vip-price-size);
  line-height: 1;
}

.account-vip-grid--merchant .vip-plan em {
  min-width: 45px;
  height: 22px;
  margin-top: 8px;
  font-size: 12px;
  line-height: 22px;
}

.account-vip-grid--merchant .vip-plan p {
  margin-top: 18px;
  font-size: 13px;
}

.account-vip-grid--merchant .vip-plan hr {
  width: calc(100% - 22px);
  margin: 8px auto;
}

.account-vip-grid--merchant .vip-plan button {
  min-width: 82px;
  height: 30px;
  margin-top: 12px;
  font-size: 14px;
}

@media (max-width: 1180px) {
  .account-vip-grid--vip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .account-vip-grid--merchant .vip-plan button {
    min-width: 110px;
    height: 44px;
    margin-top: 14px;
  }
}

.vip-body {
  background: #fff;
}

.vip-hero {
  position: relative;
  overflow: hidden;
  min-height: 640px;
  padding: 132px 0 90px;
  background:
    radial-gradient(ellipse at 88% 0%, rgba(145, 195, 255, 0.32) 0 26%, transparent 27%),
    radial-gradient(ellipse at 76% 42%, rgba(136, 188, 248, 0.2) 0 28%, transparent 29%),
    linear-gradient(180deg, #eaf7ff 0%, #f4fbff 100%);
}

.vip-hero::before {
  position: absolute;
  top: -180px;
  right: 140px;
  width: 650px;
  height: 650px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.33);
  content: "";
}

.vip-heading {
  position: relative;
  z-index: 1;
  text-align: center;
}

.vip-heading h1 {
  margin: 0 0 14px;
  font-size: 30px;
  font-weight: 500;
}

.vip-heading p {
  margin: 0;
  color: #8d99a8;
}

.vip-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 30px;
  width: min(1510px, calc(100% - 48px));
  margin: 40px auto 0;
}

.vip-plan {
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
  min-height: 378px;
  border-radius: 10px;
  background: #fff;
  text-align: center;
  box-shadow: 0 12px 28px rgba(72, 102, 132, 0.08);
}

.vip-plan h2 {
  width: 100%;
  margin: 0;
  height: 60px;
  color: #fff;
  font-size: 22px;
  font-weight: 700;
  line-height: 60px;
}

/* Public VIP cards: center the title bar and treat the white area as one centered content group. */
.vip-body .vip-grid .vip-plan > h2,
.account-vip-grid--vip .vip-plan > h2 {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
}

.vip-body .vip-plan__body,
.account-vip-grid--vip .vip-plan__body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 0;
  padding: 18px 16px;
}

.vip-body .vip-plan__body .vip-price,
.account-vip-grid--vip .vip-plan__body .vip-price {
  margin-top: 0;
}

.vip-body .vip-plan__body > .vip-upgrade-link,
.account-vip-grid--vip .vip-plan__body > .vip-plan__form {
  margin-bottom: 0;
}

.account-vip-grid--vip .vip-plan__form {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
}

.vip-plan .vip-plan__action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 86px;
  min-height: 36px;
  height: 36px;
  margin: 14px auto 0;
  border: 0;
  border-radius: 999px;
  padding: 0 16px;
  background: var(--pink);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
}

.plan-month h2,
.plan-month button {
  background: #17bdd6;
}

.plan-merchant h2,
.plan-merchant button {
  background: var(--brand-primary);
}

.plan-season h2,
.plan-season button {
  background: #554fa6;
}

.plan-year h2,
.plan-year button {
  background: #7a00e8;
}

.plan-life h2,
.plan-life button {
  background: #d5c74f;
}

.vip-price {
  --vip-price-size: 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  width: 100%;
  margin-top: 22px;
}

.vip-price strong {
  color: #222;
  font-size: var(--vip-price-size);
  line-height: 1;
}

.vip-price span {
  color: #111;
  font-size: var(--vip-price-size);
  font-weight: 700;
  line-height: 1;
}

.vip-plan em {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  height: 24px;
  border-radius: 999px;
  background: #f5f5f5;
  color: #111;
  font-style: normal;
  line-height: 24px;
  padding: 0 10px;
  box-sizing: border-box;
}

.vip-plan p {
  width: 100%;
  margin: 36px 0 0;
  font-size: 15px;
  text-align: center;
}

.vip-plan hr {
  display: none;
}

.vip-plan hr + p {
  margin: 22px 0 0;
}

.vip-plan button {
  min-width: 130px;
  height: 44px;
  margin-top: 20px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  font-size: 16px;
}

.vip-faq {
  width: min(1420px, calc(100% - 48px));
  min-height: 240px;
  margin: 0 auto;
  padding: 42px 0 56px;
}

.vip-faq h2 {
  margin: 0 0 34px;
  text-align: center;
  font-size: 28px;
  font-weight: 500;
}

.vip-faq h3 {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 500;
}

.vip-faq p {
  margin: 0;
  color: #6e7884;
  line-height: 1.8;
}

body.theme-dark.vip-body,
body.theme-dark .vip-faq {
  background: #191919;
}

body.theme-dark .vip-hero {
  background:
    radial-gradient(ellipse at 88% 0%, rgba(75, 100, 136, 0.3) 0 26%, transparent 27%),
    linear-gradient(180deg, #202832 0%, #1b1f24 100%);
}

body.theme-dark .vip-plan {
  background: #242424;
}

body.theme-dark .vip-price strong,
body.theme-dark .vip-price span,
body.theme-dark .vip-plan p,
body.theme-dark .vip-heading h1,
body.theme-dark .vip-faq h2,
body.theme-dark .vip-faq h3 {
  color: #f2f2f2;
}

body.theme-dark .vip-plan em {
  border: 1px solid #3f4a56;
  background: #303844;
  color: #f3f6fb;
}

.records-shell {
  min-height: 752px;
}

.records-panel {
  position: relative;
  min-height: 752px;
  background: #fff;
}

.records-panel > p {
  position: absolute;
  top: 134px;
  left: 50%;
  margin: 0;
  color: #9aa0a8;
  font-size: 20px;
  transform: translateX(-50%);
}

body.theme-dark .records-panel {
  background: #242424;
}

.submissions-panel > p {
  top: 156px;
}

.submission-tabs {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 32px 30px 0;
  color: #111;
}

.submission-tabs button {
  border: 0;
  background: transparent;
  color: #111;
  padding: 0;
}

.submission-tabs button.is-active {
  color: var(--pink);
}

body.theme-dark .submission-tabs,
body.theme-dark .submission-tabs button {
  color: #f2f2f2;
}

body.theme-dark .submission-tabs button.is-active {
  color: var(--pink);
}

.withdraw-panel {
  padding: 30px 30px;
}

.withdraw-plain-panel {
  padding-top: 0;
}

.withdraw-page-title {
  margin: 0 0 28px;
  color: #111827;
  font-size: 16px;
  font-weight: 500;
}

.withdraw-tip {
  margin: 0 0 18px;
  border: 1px solid #c8e7bd;
  border-radius: 3px;
  padding: 14px 16px;
  background: #e0f3d8;
  color: #2f7d32;
  font-size: 14px;
  line-height: 1.8;
}

.withdraw-plain-form {
  display: grid;
  gap: 16px;
  width: min(1180px, 100%);
  margin: 0 auto;
  color: #1f2937;
}

.withdraw-account-form {
  width: min(1080px, 100%);
  margin: 0 auto;
}

.withdraw-plain-form label {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  align-items: center;
  column-gap: 20px;
}

.withdraw-plain-form label > span {
  color: #111827;
  text-align: right;
}

.withdraw-plain-form input,
.withdraw-plain-form select {
  width: 100%;
  height: 34px;
  border: 1px solid #cfd6df;
  border-radius: 0;
  outline: none;
  padding: 0 12px;
  color: #374151;
  background: #fff;
}

.withdraw-plain-form input::placeholder {
  color: #7d8795;
  opacity: 1;
}

.withdraw-plain-form input:focus::placeholder {
  color: transparent;
}

.withdraw-plain-form input[readonly],
.withdraw-plain-form select:disabled {
  background: #f0f1f3;
}

.withdraw-plain-form input:focus,
.withdraw-plain-form select:focus {
  border-color: #8aa4d4;
  box-shadow: 0 0 0 2px rgba(85, 125, 229, .12);
}

.withdraw-plain-form small {
  grid-column: 2;
  margin-top: -8px;
  color: #7d8795;
}

.withdraw-plain-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
  margin-left: 130px;
  color: #7d8795;
  font-size: 13px;
}

.withdraw-plain-actions {
  margin-left: 130px;
}

.withdraw-plain-actions button {
  min-width: 52px;
  height: 34px;
  border: 0;
  border-radius: 3px;
  background: #3f4a70;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.withdraw-plain-actions button:disabled {
  cursor: not-allowed;
  opacity: .55;
}

.withdraw-plain-form .form-result {
  grid-column: 1 / -1;
  margin: 0 0 0 130px;
  text-align: left;
}

.withdraw-plain-form .form-result a {
  color: var(--pink);
  text-decoration: none;
}

.withdraw-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
  width: min(1080px, 100%);
  margin: 0 0 28px;
}

.withdraw-summary article {
  min-height: 92px;
  border: 1px solid #dcdcdc;
  border-radius: 5px;
  padding: 18px;
  background: #fff;
}

.withdraw-summary strong {
  display: block;
  color: var(--pink);
  font-size: 28px;
  line-height: 1.1;
}

.withdraw-summary span {
  display: block;
  margin-top: 12px;
  color: #525a64;
  font-weight: 700;
}

.withdraw-form {
  display: grid;
  gap: 22px;
  width: 620px;
  color: #65707d;
}

.withdraw-form label,
.withdraw-static {
  display: grid;
  grid-template-columns: 92px 380px;
  align-items: start;
  column-gap: 20px;
}

.withdraw-form label span,
.withdraw-static span {
  padding-top: 9px;
  color: #4f5965;
  text-align: right;
}

.withdraw-form input {
  width: 380px;
  height: 38px;
  border: 1px solid #d7d7d7;
  border-radius: 4px;
  outline: none;
  padding: 0 10px;
}

.withdraw-form input:focus {
  border-color: var(--pink);
  box-shadow: 0 0 0 3px rgba(var(--brand-primary-rgb), 0.12);
}

.withdraw-form small {
  grid-column: 2;
  margin-top: 8px;
  color: #8b929c;
}

.withdraw-static p {
  margin: 9px 0 0;
}

.withdraw-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: 120px;
  margin-top: 4px;
}

.withdraw-actions button {
  width: 110px;
  height: 36px;
  border: 0;
  border-radius: 4px;
  background: var(--pink);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
}

.withdraw-actions button:disabled {
  cursor: not-allowed;
  opacity: .55;
}

.withdraw-actions a {
  color: #111;
  text-decoration: none;
}

.withdraw-rules {
  margin-left: 120px;
  margin-top: 0;
  color: #8b929c;
}

.withdraw-rules h2 {
  margin: 0 0 14px;
  color: #7d8792;
  font-size: 15px;
}

.withdraw-rules p {
  margin: 0 0 12px;
}

.withdraw-form .form-result {
  margin-left: 120px;
  margin-top: -6px;
  text-align: left;
}

.withdraw-records {
  margin-top: 34px;
}

.withdraw-records h2 {
  margin: 0 0 16px;
  color: #172033;
  font-size: 18px;
}

.withdraw-records-table-wrap {
  overflow-x: auto;
}

.withdraw-records-table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
}

.withdraw-records-table th,
.withdraw-records-table td {
  height: 42px;
  border-top: 1px solid #e5e7eb;
  padding: 0 12px;
  color: #626c78;
  text-align: center;
  white-space: nowrap;
}

.withdraw-records-table th {
  border-top: 0;
  color: #111;
  font-weight: 800;
}

.withdraw-balance-records {
  margin-top: 30px;
}

.withdraw-balance-table {
  min-width: 1080px;
}

.withdraw-balance-table th,
.withdraw-balance-table td {
  border: 1px solid #edf0f3;
  background: #fff;
}

.withdraw-balance-table th {
  background: #fff;
}

.withdraw-balance-table td {
  height: 46px;
}

.withdraw-balance-type {
  color: #2563eb;
  font-weight: 500;
}

.withdraw-balance-change {
  font-weight: 700;
}

.withdraw-balance-change.is-plus {
  color: #027a48;
}

.withdraw-balance-change.is-minus {
  color: #d92d20;
}

.withdraw-balance-note {
  text-align: left !important;
  white-space: normal !important;
  line-height: 1.55;
}

.withdraw-flow-pager {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 16px;
  color: #7d8795;
  font-size: 13px;
}

.withdraw-flow-pager a,
.withdraw-flow-pager span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 30px;
  padding: 0 10px;
  border-radius: 8px;
  background: #f6f7fa;
  color: #334155;
  text-decoration: none;
  box-sizing: border-box;
}

.withdraw-flow-pager .is-current {
  background: var(--pink);
  color: #fff;
  font-weight: 700;
}

.withdraw-flow-pager .is-disabled {
  color: #a0a8b5;
  cursor: default;
}

.withdraw-flow-pager .fyg-users-pager-total {
  background: transparent;
  color: #7d8795;
  padding: 0;
}

.withdraw-status {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.withdraw-status-pending {
  background: #fff7e6;
  color: #b54708;
}

.withdraw-status-paid {
  background: #ecfdf3;
  color: #027a48;
}

.withdraw-status-rejected {
  background: #fff0f0;
  color: #d92d20;
}

body.theme-dark .withdraw-form,
body.theme-dark .withdraw-summary article,
body.theme-dark .withdraw-records-table td,
body.theme-dark .withdraw-form label span,
body.theme-dark .withdraw-static span,
body.theme-dark .withdraw-actions a,
body.theme-dark .withdraw-form input {
  color: #f2f2f2;
}

body.theme-dark .withdraw-form input {
  background: #242424;
  border-color: #3f3f3f;
}

body.theme-dark .withdraw-summary article,
body.theme-dark .withdraw-records-table td {
  background: #242424;
}

.profile-panel {
  padding: 36px 30px;
}

.profile-form {
  display: grid;
  gap: 14px;
  width: 560px;
  margin-left: 34px;
}

.profile-form + .profile-form {
  margin-top: 28px;
}

.profile-line {
  display: grid;
  grid-template-columns: 90px 380px auto;
  gap: 10px;
  align-items: start;
}

.profile-line span {
  color: #3f4854;
  line-height: 38px;
  text-align: right;
}

.profile-readonly p {
  margin: 0;
  color: #8b929c;
  line-height: 38px;
}

.profile-line input,
.profile-line textarea {
  width: 380px;
  border: 1px solid #d7d7d7;
  border-radius: 4px;
  outline: none;
  padding: 0 10px;
}

.profile-line input {
  height: 38px;
}

.profile-line textarea {
  height: 80px;
  resize: vertical;
  padding-top: 8px;
}

.profile-line input:focus,
.profile-line textarea:focus {
  border-color: var(--pink);
  box-shadow: 0 0 0 3px rgba(var(--brand-primary-rgb), 0.12);
}

/* Hide the contact hint while the field is being edited. If the field stays
   empty, the native placeholder automatically returns when focus leaves. */
.profile-line input[name="contact"]:focus::placeholder {
  color: transparent !important;
  opacity: 0 !important;
}

.profile-line > button,
.profile-form > .profile-line > button:not(.code-btn) {
  width: 110px;
  height: 36px;
  border: 0;
  border-radius: 5px;
  background: var(--pink);
  color: #fff;
  font-weight: 700;
}

.code-line input {
  width: 150px;
}

.code-btn {
  width: auto;
  border: 0;
  background: transparent;
  color: #111;
  text-align: left;
}

.profile-result {
  min-height: 18px;
  margin: -8px 0 0 100px;
  color: var(--pink);
}

body.theme-dark .profile-line span,
body.theme-dark .profile-readonly p,
body.theme-dark .code-btn,
body.theme-dark .profile-line input,
body.theme-dark .profile-line textarea {
  color: #f2f2f2;
}

body.theme-dark .profile-line input,
body.theme-dark .profile-line textarea {
  background: #242424;
  border-color: #3f3f3f;
}

.ticket-panel {
  padding: 50px 58px 30px;
  background: #fff;
}

.ticket-form {
  position: relative;
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  column-gap: 20px;
  row-gap: 24px;
  min-height: 690px;
  color: #424b56;
}

.ticket-form h1 {
  grid-column: 1 / -1;
  margin: 0 0 20px;
  color: #111;
  font-size: 16px;
  line-height: 1.4;
}

.ticket-line {
  display: contents;
}

.ticket-line > span,
.ticket-line > textarea,
.ticket-line > input,
.ticket-type label,
.ticket-upload-list {
  align-self: start;
}

.ticket-line > span {
  padding-top: 7px;
  color: #333;
  text-align: right;
}

.ticket-type {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 28px;
}

.ticket-type > span {
  flex: 0 0 90px;
  padding-top: 0;
}

.ticket-type input {
  margin: 0 2px 0 0;
  vertical-align: -2px;
}

.ticket-content textarea {
  width: min(790px, 100%);
  height: 174px;
  border: 1px solid #d7d7d7;
  border-radius: 4px;
  outline: none;
  padding: 10px 12px;
  resize: vertical;
}

.ticket-email input {
  width: 238px;
  height: 38px;
  border: 1px solid #d7d7d7;
  border-radius: 4px;
  outline: none;
  padding: 0 11px;
}

.ticket-content textarea:focus,
.ticket-email input:focus {
  border-color: var(--pink);
  box-shadow: 0 0 0 3px rgba(var(--brand-primary-rgb), 0.12);
}

.ticket-help {
  grid-column: 2;
  margin: -16px 0 0;
  color: #8a929d;
  font-size: 14px;
}

.ticket-help a {
  color: #222;
}

.ticket-upload-list {
  display: flex;
  gap: 10px;
}

.ticket-upload {
  position: relative;
  display: grid;
  place-items: center;
  width: 100px;
  height: 100px;
  border: 1px dashed #bfbfbf;
  border-radius: 4px;
  background: #fff center / cover no-repeat;
  color: #b8bcc2;
  cursor: pointer;
}

.ticket-upload span {
  color: #b9bec5;
  font-size: 38px;
  line-height: 1;
}

.ticket-upload input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.ticket-upload.has-image {
  border-style: solid;
}

.ticket-submit {
  position: absolute;
  right: 0;
  bottom: 86px;
  display: grid;
  justify-items: center;
  gap: 12px;
}

.ticket-submit button {
  width: 110px;
  height: 36px;
  border: 0;
  border-radius: 5px;
  background: var(--pink);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
}

.ticket-submit small {
  color: #9aa0a8;
}

.ticket-result {
  position: absolute;
  right: 0;
  bottom: 50px;
  margin: 0;
  color: var(--pink);
}

body.theme-dark .ticket-panel,
body.theme-dark .ticket-content textarea,
body.theme-dark .ticket-email input,
body.theme-dark .ticket-upload {
  background-color: #242424;
}

body.theme-dark .ticket-form,
body.theme-dark .ticket-form h1,
body.theme-dark .ticket-line > span,
body.theme-dark .ticket-content textarea,
body.theme-dark .ticket-email input,
body.theme-dark .ticket-help a {
  color: #f2f2f2;
}

body.theme-dark .ticket-content textarea,
body.theme-dark .ticket-email input,
body.theme-dark .ticket-upload {
  border-color: #3f3f3f;
}

.tickets-panel {
  min-height: 752px;
  padding: 38px 30px 30px;
  background: #fff;
}

.tickets-table {
  width: 100%;
}

.tickets-row {
  display: grid;
  grid-template-columns: 1fr 1.35fr 1fr 1.35fr 1fr;
  align-items: center;
}

.tickets-head {
  min-height: 38px;
  border-bottom: 2px solid #dedede;
  color: #101010;
  font-size: 14px;
  font-weight: 800;
  text-align: center;
}

.tickets-data {
  min-height: 42px;
  border-bottom: 1px solid #f0f0f0;
  color: #6f7782;
  text-align: center;
}

.vip-box a,
.vip-upgrade-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 86px;
  height: 30px;
  border-radius: 15px;
  background: #e8c66b;
  color: #111;
  text-decoration: none;
}

.vip-upgrade-link {
  margin: 14px auto 0;
  background: var(--pink);
  color: #fff;
}

.hot-cities a {
  color: #fff;
  text-decoration: none;
}

body.theme-dark .tickets-panel {
  background: #242424;
}

body.theme-dark .tickets-head {
  border-bottom-color: #3f3f3f;
  color: #f2f2f2;
}

.help-shell {
  width: min(880px, calc(100% - 32px));
  margin: 100px auto 50px;
}

.help-card {
  border-radius: 5px;
  background: #fff;
  padding: 20px;
  color: #111;
  font-size: 16px;
  line-height: 1.55;
}

.help-content {
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.help-content img,
.help-content video {
  display: block;
  max-width: 100%;
  height: auto;
}

.help-content pre,
.help-content table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.help-content table {
  border-collapse: collapse;
}

.help-content th,
.help-content td {
  border: 1px solid #e6e8ec;
  padding: 8px 10px;
  text-align: left;
}

.help-card h1,
.help-card h2 {
  display: flex;
  align-items: center;
  min-height: 48px;
  margin: 0 0 22px;
  border-left: 5px solid var(--pink);
  background: #fafafa;
  color: #111;
  font-size: 22px;
  line-height: 1.2;
  padding: 0 0 0 16px;
}

.help-card h2 {
  margin-top: 22px;
}

.help-block {
  margin-bottom: 20px;
}

.help-block p {
  margin: 0 0 6px;
}

.help-card a {
  color: #111;
  text-decoration: underline;
  text-underline-offset: 2px;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.help-gap {
  margin-top: 28px !important;
}

.help-guide h3 {
  margin: 24px 0 6px;
  color: #111;
  font-size: 17px;
  line-height: 1.5;
}

.help-guide h3:first-child {
  margin-top: 0;
}

body.theme-dark .help-card,
body.theme-dark .help-card h1,
body.theme-dark .help-card h2 {
  background: #242424;
  color: #f2f2f2;
}

body.theme-dark .help-card h1,
body.theme-dark .help-card h2 {
  background: #303030;
}

body.theme-dark .help-card a,
body.theme-dark .help-guide h3 {
  color: #f2f2f2;
}

body.theme-dark .help-content th,
body.theme-dark .help-content td {
  border-color: #454545;
}

@media (max-width: 680px) {
  .help-shell {
    width: calc(100% - 24px);
    margin: 74px auto 28px;
  }

  .help-card {
    padding: 16px 14px;
    font-size: 15px;
    line-height: 1.65;
  }

  .help-card h1,
  .help-card h2 {
    min-height: 42px;
    margin-bottom: 16px;
    padding-left: 12px;
    font-size: 19px;
  }

  .help-card h2 {
    margin-top: 18px;
  }

  .help-guide h3 {
    margin-top: 20px;
    font-size: 16px;
  }
}

.login-body {
  min-height: 100vh;
  background: #fff;
  color: #111;
}

.login-home {
  position: fixed;
  top: 20px;
  left: 20px;
  width: 65px;
  height: 65px;
  border-radius: 10px;
  background: #f6f6f6;
}

.login-home::before {
  position: absolute;
  left: 20px;
  top: 24px;
  width: 24px;
  height: 20px;
  background: #9fa3aa;
  clip-path: polygon(50% 0, 100% 42%, 100% 100%, 62% 100%, 62% 62%, 38% 62%, 38% 100%, 0 100%, 0 42%);
  content: "";
}

.login-shell {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 40px 20px;
}

.agency-login-shell {
  min-height: calc(100vh - 96px);
  padding: 96px 20px 40px;
}

.login-card {
  display: grid;
  justify-items: center;
  width: 460px;
  min-height: 420px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
  padding: 78px 70px 58px;
}

.login-card.is-dismissed {
  display: none;
}

.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: none;
  place-items: center;
}

.auth-modal.is-open {
  display: grid;
}

body.auth-modal-open {
  overflow: hidden;
}

.auth-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.32);
}

.auth-modal__card {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  width: 400px;
  min-height: 376px;
  border-radius: 12px;
  background: #fff;
  padding: 62px 40px 38px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.18);
}

#registerModal .auth-modal__card {
  max-height: calc(100vh - 24px);
  overflow-y: auto;
  overscroll-behavior: contain;
}

#forgotPasswordModal .auth-modal__card {
  min-height: 440px;
  max-height: calc(100vh - 24px);
  overflow-y: auto;
  overscroll-behavior: contain;
}

@supports (height: 100dvh) {
  #forgotPasswordModal .auth-modal__card {
    max-height: calc(100dvh - 24px);
  }
}

.forgot-password-modal__form {
  gap: 11px;
}

.forgot-password-modal__title {
  margin: -10px 0 0;
  color: #202a3a;
  font-size: 21px;
  line-height: 1.35;
  text-align: center;
}

.forgot-password-modal__help {
  margin-bottom: 2px;
}

.forgot-password-modal__status {
  min-height: 38px;
  margin: 0;
  color: #7b8492;
  font-size: 12px;
  line-height: 1.55;
}

.forgot-password-modal__status.is-checking {
  color: #7b8492;
}

.forgot-password-modal__status.is-error {
  color: #e33232;
}

.forgot-password-modal__status.is-success {
  color: #17975a;
}

.forgot-password-modal__form .login-field.is-invalid input {
  border-color: #ef4444;
  background: #fff8f8;
}

.forgot-password-modal__form.is-busy input,
.forgot-password-modal__form.is-busy button {
  cursor: wait;
}

.forgot-password-modal__links {
  width: 100%;
}

body.theme-dark .forgot-password-modal__title {
  color: #f2f5f8;
}

body.theme-dark .forgot-password-modal__help,
body.theme-dark .forgot-password-modal__status,
body.theme-dark .forgot-password-modal__status.is-checking {
  color: #aeb8c6;
}

body.theme-dark .forgot-password-modal__status.is-error {
  color: #ff7474;
}

body.theme-dark .forgot-password-modal__status.is-success {
  color: #55d995;
}

body.theme-dark .forgot-password-modal__form .login-field.is-invalid input {
  border-color: #d94a4a;
  background: #2a1e20;
}

@supports (height: 100dvh) {
  #registerModal .auth-modal__card {
    max-height: calc(100dvh - 24px);
  }
}

.auth-modal__form {
  width: 320px;
}

.auth-modal__form .login-field input {
  border-color: transparent;
  background: #e9ecef;
}

.auth-modal__form .login-field input:focus {
  border-color: var(--pink);
  background: #fff;
}

.auth-modal__links {
  align-items: center;
  justify-content: flex-start;
  gap: 18px;
  flex-wrap: nowrap;
  width: 100%;
  margin-top: 14px;
  color: #999;
}

.auth-modal__links a {
  color: var(--pink);
}

.login-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 24px;
  min-width: 53px;
  margin-bottom: 38px;
  border-radius: 3px;
  background: var(--pink);
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
}

.login-form {
  display: grid;
  gap: 10px;
  width: 320px;
}

.login-field {
  position: relative;
  display: block;
}

.login-field input {
  width: 100%;
  height: 45px;
  border: 1px solid #dedede;
  border-radius: 5px;
  outline: none;
  padding: 14.5px 42px 14.5px 34px;
  color: #333;
  font-family: inherit;
  font-size: 14px;
  font-weight: 400;
  line-height: 14px;
}

.login-field input::placeholder {
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  opacity: 1;
}

.login-field.is-valid::after {
  position: absolute;
  z-index: 2;
  right: 14px;
  top: 50%;
  color: #20b86a;
  content: "✓";
  font-size: 19px;
  font-weight: 900;
  line-height: 1;
  pointer-events: none;
  transform: translateY(-50%);
}

.login-field.is-valid input {
  border-color: #20b86a;
  box-shadow: 0 0 0 2px rgba(32, 184, 106, 0.1);
}

.login-field.is-valid input:focus {
  border-color: #20b86a;
  box-shadow: 0 0 0 3px rgba(32, 184, 106, 0.14);
}

.login-form .login-field.is-unavailable input,
.login-form .login-field.is-unavailable input:focus {
  border-color: #c62828;
  background: #fff8f8;
  box-shadow: 0 0 0 3px rgba(198, 40, 40, .14);
}

.login-field input:focus {
  border-color: var(--pink);
  box-shadow: 0 0 0 3px rgba(var(--brand-primary-rgb), 0.12);
}

.login-field span {
  position: absolute;
  display: block;
  left: 12px;
  top: 50%;
  width: 14px;
  height: 14px;
  color: #111;
  font-family: inherit;
  font-size: 14px;
  line-height: 14px;
  pointer-events: none;
  transform: translateY(-50%);
}

.login-user span::before {
  position: absolute;
  left: 3px;
  top: 1px;
  width: 7px;
  height: 7px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  content: "";
}

.login-user span::after {
  position: absolute;
  left: 1px;
  bottom: 0;
  width: 11px;
  height: 6px;
  border: 1.5px solid currentColor;
  border-bottom: 0;
  border-radius: 9px 9px 0 0;
  content: "";
}

.login-mail span::before {
  position: absolute;
  left: 1px;
  top: 3px;
  width: 12px;
  height: 9px;
  border: 1.5px solid currentColor;
  border-radius: 2px;
  content: "";
}

.login-mail span::after {
  position: absolute;
  left: 2px;
  top: 4px;
  width: 10px;
  height: 7px;
  border-left: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(-45deg);
  content: "";
}

.login-password span::before {
  position: absolute;
  left: 1px;
  top: 6px;
  width: 12px;
  height: 8px;
  border: 1.5px solid currentColor;
  border-radius: 2px;
  content: "";
}

.login-password span::after {
  position: absolute;
  left: 3px;
  top: 0;
  width: 8px;
  height: 8px;
  border: 1.5px solid currentColor;
  border-bottom: 0;
  border-radius: 7px 7px 0 0;
  content: "";
}

.login-form button {
  height: 43px;
  margin-top: 2px;
  border: 0;
  border-radius: 6px;
  background: var(--pink);
  color: #fff;
  font-weight: 800;
}

.login-submit-link {
  display: grid;
  place-items: center;
  height: 43px;
  border-radius: 6px;
  background: var(--pink);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
}

.login-help-text {
  margin: 0 0 6px;
  color: #777;
  font-size: 13px;
  line-height: 1.7;
  text-align: center;
}

.login-links {
  display: flex;
  justify-content: space-between;
  margin-top: 2px;
}

.login-links a {
  color: var(--brand-primary);
  text-decoration: none;
}

.login-links.auth-modal__links a {
  color: var(--brand-primary);
  font-weight: 700;
}

.login-links.auth-modal__links a:hover,
.login-links.auth-modal__links a:focus-visible {
  color: var(--brand-primary-hover);
  text-decoration: underline;
}

.login-result {
  min-height: 20px;
  margin: 2px 0 0;
  color: var(--pink);
  text-align: center;
}

.login-result.is-success {
  color: #17975a;
}

.registration-username-status,
.registration-email-status {
  display: block;
  min-width: 0;
  max-width: 100%;
  margin: -4px 2px 0;
  color: #667085;
  font-size: 12px;
  line-height: 1.45;
  text-align: left;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.registration-username-status[hidden],
.registration-email-status[hidden] {
  display: none !important;
}

.registration-username-status.is-success,
.registration-email-status.is-success {
  color: #137a49;
}

.registration-username-status.is-error,
.registration-email-status.is-error {
  color: #c62828;
  font-weight: 700;
}

.registration-username-status.is-checking,
.registration-email-status.is-checking {
  color: #667085;
}

.registration-inline-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 104px;
  gap: 8px;
  align-items: stretch;
  min-width: 0;
}

.registration-inline-row[hidden] {
  display: none !important;
}

.registration-inline-row.is-email-only {
  grid-template-columns: minmax(0, 1fr);
}

.registration-inline-row .login-field {
  min-width: 0;
}

.login-form .registration-inline-action {
  width: 104px;
  height: 45px;
  min-width: 0;
  margin: 0;
  padding: 0 8px;
  white-space: nowrap;
  font-size: 13px;
}

.registration-password-fields {
  display: grid;
  gap: 10px;
  min-width: 0;
  margin: 0;
  border: 0;
  padding: 0;
}

.login-code span::before {
  position: absolute;
  left: 3px;
  top: 0;
  display: block;
  width: 1.5px;
  height: 14px;
  border-radius: 1px;
  background: currentColor;
  box-shadow: 5px 0 0 currentColor;
  content: "";
  transform: skew(-8deg);
  transform-origin: center;
}

.login-code span::after {
  position: absolute;
  left: 0;
  top: 4px;
  display: block;
  width: 14px;
  height: 1.5px;
  border-radius: 1px;
  background: currentColor;
  box-shadow: 0 5px 0 currentColor;
  content: "";
}

.login-form button:disabled,
.registration-password-fields:disabled .login-field input {
  cursor: not-allowed;
  opacity: .58;
}

.registration-password-fields:disabled .login-field input {
  background: #f2f3f5;
}

.login-footer {
  margin-top: 0;
}

body.theme-dark.login-body {
  background: #191919;
}

body.theme-dark .login-card,
body.theme-dark .login-field input {
  background: #242424;
  color: #f2f2f2;
}

body.theme-dark .login-field input {
  border-color: #3f3f3f;
}

body.theme-dark .login-field span {
  color: #f2f2f2;
}

body.theme-dark .login-result.is-success {
  color: #55d995;
}

body.theme-dark .registration-username-status,
body.theme-dark .registration-email-status,
body.theme-dark .registration-username-status.is-checking,
body.theme-dark .registration-email-status.is-checking {
  color: #b8c2cf;
}

body.theme-dark .registration-username-status.is-success,
body.theme-dark .registration-email-status.is-success {
  color: #67e6a6;
}

body.theme-dark .registration-username-status.is-error,
body.theme-dark .registration-email-status.is-error {
  color: #ff8a8a;
}

body.theme-dark .registration-password-fields:disabled .login-field input {
  background: #202020;
}

.admin-shell {
  width: min(1200px, calc(100% - 32px));
  margin: 100px auto 40px;
}

.admin-card {
  border-radius: 5px;
  background: #fff;
  padding: 24px;
}

.admin-card h1 {
  margin: 0 0 20px;
  font-size: 22px;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 28px;
}

.admin-stats article {
  border: 1px solid #e7e7e7;
  border-radius: 5px;
  padding: 20px;
}

.admin-stats strong {
  display: block;
  color: var(--pink);
  font-size: 28px;
}

.admin-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.admin-menu a,
.admin-title-row a,
.admin-form button {
  border-radius: 5px;
  background: var(--pink);
  color: #fff;
  text-decoration: none;
  padding: 10px 16px;
}

.admin-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-table th,
.admin-table td {
  border-bottom: 1px solid #ececec;
  padding: 12px 10px;
  text-align: left;
}

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

.admin-form label {
  display: grid;
  gap: 6px;
  color: #444;
  font-weight: 700;
}

.admin-form input,
.admin-form select,
.admin-form textarea {
  width: 100%;
  border: 1px solid #d7d7d7;
  border-radius: 4px;
  outline: none;
  padding: 10px 12px;
}

.admin-form textarea {
  min-height: 180px;
}

.admin-check {
  display: flex !important;
  grid-template-columns: none;
  align-items: center;
}

.admin-check input {
  width: auto;
}

body.theme-dark .admin-card,
body.theme-dark .admin-form input,
body.theme-dark .admin-form select,
body.theme-dark .admin-form textarea {
  background: #242424;
  color: #f2f2f2;
}

body.theme-dark .admin-table th,
body.theme-dark .admin-table td,
body.theme-dark .admin-stats article,
body.theme-dark .admin-form input,
body.theme-dark .admin-form select,
body.theme-dark .admin-form textarea {
  border-color: #3f3f3f;
}

body.theme-dark.detail-body {
  background: #191919;
}

body.theme-dark.front-service-body {
  background: #191919;
}

body.theme-dark .detail-nav,
body.theme-dark .detail-card,
body.theme-dark .post-pager,
body.theme-dark .comments-card,
body.theme-dark .reaction-btn {
  background: #242424;
  color: #f2f2f2;
}

body.theme-dark .detail-nav .nav-links a,
body.theme-dark .detail-nav .nav-item-link,
body.theme-dark .detail-nav .nav-item button,
body.theme-dark .detail-nav .nav-actions button,
body.theme-dark .post-pager a,
body.theme-dark .comments-card h2,
body.theme-dark .vip-box span {
  color: #f2f2f2;
}

body.theme-dark .safe-note,
body.theme-dark .comment-list li {
  background: #1d1d1d;
}

body.theme-dark.national-body {
  background: #171717;
}

body.theme-dark .national-filter {
  background: #242424;
  border: 1px solid #343434;
  box-shadow: none;
}

body.theme-dark .filter-row + .filter-row {
  border-top-color: #3a3a3a;
}

body.theme-dark .filter-row strong,
body.theme-dark .filter-links a {
  color: #e8eef6;
}

body.theme-dark .filter-links a:hover,
body.theme-dark .filter-links a.sort-link.is-active {
  color: var(--brand-primary-bright);
}

body.theme-dark .filter-links a.is-active {
  background: var(--pink);
  color: #fff;
}

body.theme-dark .filter-links a.sort-link::after {
  border-top-color: currentColor;
}

body.theme-dark .breadcrumb {
  color: #aeb8c5;
}

body.theme-dark .breadcrumb a,
body.theme-dark .detail-region-link {
  color: #78b7ff;
}

body.theme-dark .detail-author-link {
  color: #8cc6ff;
}

body.theme-dark .detail-author-link:hover {
  color: var(--brand-primary-light);
}

body.theme-dark .breadcrumb span,
body.theme-dark .detail-region-sep {
  color: #778391;
}

body.theme-dark .detail-card {
  --detail-label-color: #f3f6fb;
  color: #edf2f7;
}

body.theme-dark .detail-card h1,
body.theme-dark .detail-card h1 a,
body.theme-dark .profile-list dt,
body.theme-dark .profile-list dd,
body.theme-dark .detail-section h2,
body.theme-dark .private-field-section h2,
body.theme-dark .private-field-section p,
body.theme-dark .rich-content,
body.theme-dark .rich-content p {
  color: #f3f6fb;
}

body.theme-dark .detail-meta,
body.theme-dark .detail-meta span,
body.theme-dark .profile-list {
  color: #c8d2df;
}

body.theme-dark .merchant-detail-badge {
  background: #d88912;
  color: #fff;
}

.admin-view-note {
  display: block;
  margin: 10px 0;
  color: #9a6400;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.6;
}

.admin-view-note a {
  color: #9a6400;
  font-weight: 800;
  text-decoration: underline;
}

body.theme-dark .admin-view-note {
  border: 0;
  background: transparent;
  color: #d79a18;
}

body.theme-dark .admin-view-note a {
  color: #d79a18;
}

body.theme-dark .private-access-tip {
  background: rgba(var(--brand-primary-rgb), 0.04);
  color: #edf2f7;
}

body.theme-dark .private-access-tip span {
  color: #edf2f7;
}

body.theme-dark .safe-note {
  border: 1px solid #303844;
  background: #1c2026;
  color: #c7d2e0;
}

body.theme-dark .detail-contact-notice {
  border-color: #695626;
  background: #302a1d;
  color: #ead49c;
}

body.theme-dark .detail-contact-notice strong {
  color: #f4dd9f;
}

body.theme-dark .reaction-btn {
  border-color: #4b5563;
  background: #242424;
  color: #f3f6fb;
}

body.theme-dark .post-pager {
  border: 1px solid #303030;
}

body.theme-dark .post-pager a {
  color: #eef3f8;
}

body.theme-dark .post-pager a + a {
  border-left-color: #555;
}

body.theme-dark .post-pager span {
  color: #a7b2c1;
}

body.theme-dark .comments-card h2,
body.theme-dark .comments-card-live h2 {
  color: #f3f6fb;
}

body.theme-dark .comment-login {
  border: 1px solid #333b46;
  background: #1d2229;
  color: #e7edf5;
}

body.theme-dark .comment-empty {
  color: #aeb8c5;
}

body.theme-dark .comment-user,
body.theme-dark .comment-inline-profile {
  color: #cbd5e1;
}

body.theme-dark .comment-user small,
html[data-theme="dark"] .comment-user small {
  color: #aeb8c5;
}

body.theme-dark .comment-user span,
body.theme-dark .comment-avatar,
body.theme-dark .comment-inline-avatar {
  background: #333b46;
  color: #cbd5e1;
}

body.theme-dark .comment-box textarea,
body.theme-dark .comment-inline-editor textarea {
  border-color: #3f4a56;
  background: #1d2229;
  color: #f3f6fb;
}

body.theme-dark .comment-box textarea::placeholder,
body.theme-dark .comment-inline-editor textarea::placeholder,
body.theme-dark .auth-modal__form .login-field input::placeholder,
body.theme-dark .login-field input::placeholder {
  color: #8792a1;
}

body.theme-dark .emoji-btn,
body.theme-dark .comment-inline-emoji {
  color: var(--brand-primary-bright);
}

body.theme-dark .emoji-btn:hover,
body.theme-dark .comment-inline-emoji:hover {
  background: #331b2a;
}

body.theme-dark .comment-main,
body.theme-dark .comment-item.is-reply .comment-main {
  border-color: #303844;
  background: #1d2229;
  box-shadow: none;
}

body.theme-dark .comment-item:target > .comment-body .comment-main {
  border-color: rgba(var(--brand-primary-rgb), .65);
  background: #2b1d28;
  box-shadow: 0 12px 28px rgba(var(--brand-primary-rgb), .10);
}

body.theme-dark .comment-main p,
body.theme-dark .comment-content,
body.theme-dark .comment-foot strong {
  color: #f3f6fb;
}

body.theme-dark .comment-head,
body.theme-dark .comment-foot,
body.theme-dark .comment-like-count {
  color: #aeb8c5;
}

body.theme-dark .comment-inline-reply-wrap {
  border-top-color: #303844;
  border-bottom-color: #303844;
  background: #242424;
}

body.theme-dark .comment-inline-cancel {
  color: #cbd5e1;
}

body.theme-dark .comment-emoji-picker {
  border-color: #3f4a56;
  background: #242b33;
  box-shadow: 0 14px 28px rgba(0, 0, 0, .36);
}

body.theme-dark .comment-emoji-picker button {
  background: #1d2229;
}

body.theme-dark .comment-emoji-picker button:hover {
  background: #331b2a;
}

body.theme-dark .auth-modal__backdrop {
  background: rgba(0, 0, 0, .68);
}

body.theme-dark .auth-modal__card {
  background: #242424;
  color: #f2f2f2;
  box-shadow: 0 20px 56px rgba(0, 0, 0, .46);
}

body.theme-dark .auth-modal__form .login-field input,
body.theme-dark .login-card .login-field input {
  border-color: #3f3f3f;
  background: #1c1c1c;
  color: #f2f2f2;
}

body.theme-dark .auth-modal__form .login-field input:focus,
body.theme-dark .login-card .login-field input:focus {
  border-color: var(--pink);
  background: #202020;
}

body.theme-dark .login-form .login-field.is-valid input,
body.theme-dark .login-form .login-field.is-valid input:focus {
  border-color: #55d995;
  background: #1d2923;
  box-shadow: 0 0 0 3px rgba(85, 217, 149, .16);
}

body.theme-dark .login-form .login-field.is-unavailable input,
body.theme-dark .login-form .login-field.is-unavailable input:focus {
  border-color: #ff7474;
  background: #2a1e20;
  box-shadow: 0 0 0 3px rgba(255, 116, 116, .16);
}

body.theme-dark .auth-modal__form .login-field span,
body.theme-dark .login-card .login-field span {
  color: #d8dee8;
}

body.theme-dark .auth-modal__links,
body.theme-dark .login-links {
  color: #b8c2cf;
}

body.theme-dark .auth-modal__links a,
body.theme-dark .login-links a {
  color: var(--brand-primary);
}

body.theme-dark .login-card {
  background: #242424;
  color: #f2f2f2;
}

body.theme-dark .topnav {
  background: rgba(26, 26, 26, 0.92);
  box-shadow: 0 2px 16px rgba(0, 0, 0, .28);
}

body.theme-dark .nav-actions button,
body.theme-dark .nav-actions a,
body.theme-dark .icon-search {
  color: #f3f6fb;
  opacity: 1;
  text-shadow: none;
}

body.theme-dark .nav-actions a:hover,
body.theme-dark .nav-actions button:hover,
body.theme-dark .icon-search:hover {
  color: var(--brand-primary-bright);
}

.float-tools {
  position: fixed;
  right: 18px;
  bottom: 48px;
  z-index: 15;
  display: grid;
  gap: 8px;
}

.float-tools .float-tool-button {
  --float-tool-bg: #e9ecef;
  --float-tool-fg: #8e8e8e;
  position: relative;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 5px;
  background: var(--float-tool-bg);
  color: var(--float-tool-fg);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
  transition:
    background 160ms ease,
    opacity 160ms ease,
    transform 160ms ease;
}

.float-tools .float-tool-button::before {
  position: absolute;
  top: 50%;
  right: calc(100% + 8px);
  min-width: 68px;
  height: 27px;
  border-radius: 2px;
  background: #eeeeee;
  color: #9a9a9a;
  content: attr(data-tooltip);
  font-size: 13px;
  font-weight: 400;
  line-height: 27px;
  text-align: center;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translate(4px, -50%);
  transition:
    opacity 150ms ease,
    transform 150ms ease;
}

.float-tools .float-tool-button:hover::before {
  opacity: 1;
  transform: translate(0, -50%);
}

.float-tools .float-tool-button:hover {
  transform: translateY(-1px);
}

.float-tools .float-tool-button.is-primary {
  --float-tool-bg: var(--pink);
  --float-tool-fg: #fff;
  box-shadow: 0 10px 20px rgba(var(--brand-primary-rgb), 0.24);
}

.float-service-menu {
  position: relative;
  display: grid;
}

.float-live-chat-unread-badge {
  position: absolute;
  top: -6px;
  right: -7px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  min-width: 18px;
  height: 18px;
  padding: 0;
  border: 1.5px solid #fff;
  border-radius: 5px;
  background: #f5222d;
  color: #fff;
  box-sizing: border-box;
  box-shadow: 0 0 0 1px rgba(245, 34, 45, 0.16);
  font-size: 10px !important;
  font-weight: 800;
  line-height: 1 !important;
  pointer-events: none;
  text-align: center;
  white-space: nowrap;
}

.float-live-chat-unread-badge[hidden] {
  display: none !important;
}

body.theme-dark .float-live-chat-unread-badge {
  border-color: #20262e;
  background: #ff3b47;
  color: #fff;
  box-shadow: 0 0 0 1px rgba(255, 77, 88, 0.28);
}

.float-service-menu .tool-service::before {
  display: none !important;
  content: none !important;
}

.float-tools .float-tool-button:not([data-tooltip])::before {
  display: none !important;
  content: none !important;
}

.float-service-options {
  position: absolute;
  top: 50%;
  right: calc(100% + 8px);
  z-index: 2;
  display: grid;
  width: max-content;
  gap: 5px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 12px 30px rgba(18, 31, 48, 0.16);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(6px, -50%);
  transition:
    opacity 150ms ease,
    visibility 150ms ease,
    transform 150ms ease;
}

.float-service-options::after {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 100%;
  width: 8px;
  content: "";
}

.float-service-options a {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 112px;
  height: 36px;
  padding: 0 11px;
  border-radius: 5px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition:
    background 150ms ease,
    color 150ms ease;
}

.float-service-options a:hover,
.float-service-options a:focus-visible {
  background: rgba(var(--brand-primary-rgb), 0.1);
  color: var(--pink);
  outline: none;
}

.float-service-options svg {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  fill: currentColor;
}

.float-service-menu.is-open .float-service-options {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(0, -50%);
}

@media (hover: hover) and (pointer: fine) {
  .float-service-menu:hover .float-service-options {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate(0, -50%);
  }
}

body.theme-dark .float-service-options {
  border-color: rgba(255, 255, 255, 0.1);
  background: #252b33;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.42);
}

body.theme-dark .float-service-options a {
  color: #dce5f0;
}

body.theme-dark .float-service-options a:hover,
body.theme-dark .float-service-options a:focus-visible {
  background: rgba(var(--brand-primary-rgb), 0.15);
  color: var(--brand-primary-light);
}

.float-tool-icon {
  display: block;
  width: 24px;
  height: 24px;
  color: var(--float-tool-fg);
  overflow: visible;
  shape-rendering: geometricPrecision;
}

.float-tool-icon * {
  vector-effect: non-scaling-stroke;
}

.tool-theme .float-tool-icon-moon,
body.theme-dark .tool-theme .float-tool-icon-sun {
  display: none;
}

body.theme-dark .tool-theme .float-tool-icon-moon {
  display: block;
}

.float-tools .float-tool-button span,
.float-tools .float-tool-button span::before,
.float-tools .float-tool-button span::after {
  position: absolute;
  content: "";
}

.tool-service span {
  top: 50%;
  left: 50%;
  width: 18px;
  height: 18px;
  border: 2px solid var(--float-tool-fg);
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 46%, var(--float-tool-fg) 0 1.8px, transparent 2px),
    radial-gradient(circle at 65% 46%, var(--float-tool-fg) 0 1.8px, transparent 2px);
  box-shadow:
    -6px 6px 0 -4px var(--float-tool-fg),
    6px 6px 0 -4px var(--float-tool-fg);
  transform: translate(-50%, -50%);
}

.tool-service span::after {
  top: 9px;
  left: 5px;
  width: 9px;
  height: 5px;
  border-bottom: 2px solid var(--float-tool-fg);
  border-radius: 0 0 999px 999px;
}

.tool-service {
  overflow: visible;
}

.tool-vip span {
  top: 50%;
  left: 50%;
  width: 22px;
  height: 18px;
  border-radius: 1px 1px 4px 4px;
  background: var(--float-tool-fg);
  clip-path: polygon(7% 34%, 32% 50%, 50% 15%, 68% 50%, 93% 34%, 83% 88%, 17% 88%);
  transform: translate(-50%, -50%);
}

.tool-theme span {
  top: 50%;
  left: 50%;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--float-tool-fg);
  box-shadow: none;
  transform: translate(-50%, -50%);
}

.tool-theme span::before {
  top: 50%;
  left: 50%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: transparent;
  box-shadow:
    0 -14px 0 -1px var(--float-tool-fg),
    0 14px 0 -1px var(--float-tool-fg),
    14px 0 0 -1px var(--float-tool-fg),
    -14px 0 0 -1px var(--float-tool-fg),
    10px -10px 0 -1px var(--float-tool-fg),
    -10px -10px 0 -1px var(--float-tool-fg),
    10px 10px 0 -1px var(--float-tool-fg),
    -10px 10px 0 -1px var(--float-tool-fg);
  transform: translate(-50%, -50%);
}

.tool-theme span::after {
  display: none;
  top: 0;
  left: 18px;
  width: 8px;
  height: 8px;
  background: var(--float-tool-fg);
  clip-path: polygon(50% 0, 61% 34%, 98% 35%, 68% 56%, 79% 92%, 50% 70%, 21% 92%, 32% 56%, 2% 35%, 39% 34%);
}

.tool-theme {
  overflow: visible;
}

.float-tools .tool-top {
  display: none !important;
  opacity: 0;
  pointer-events: none;
}

.float-tools.is-scrolled .tool-top {
  display: grid !important;
  opacity: 1;
  pointer-events: auto;
}

.tool-top span {
  top: 50%;
  left: 50%;
  width: 15px;
  height: 15px;
  border-top: 2px solid var(--float-tool-fg);
  border-left: 2px solid var(--float-tool-fg);
  transform: translate(-50%, -50%) rotate(45deg);
}

body.theme-dark .float-tools .float-tool-button {
  --float-tool-bg: #2a3038;
  --float-tool-fg: #dce5f0;
  background: var(--float-tool-bg);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.38);
}

body.theme-dark .float-tools .float-tool-button.is-primary {
  --float-tool-bg: var(--pink);
  --float-tool-fg: #fff;
}

body.theme-dark .float-tools .float-tool-button::before {
  background: #2f343b;
  color: #d5dce5;
}

body.theme-dark .tool-theme span {
  top: 50%;
  left: 50%;
  width: 21px;
  height: 21px;
  background: transparent;
  box-shadow: inset -7px -1px 0 0 var(--float-tool-fg);
  transform: translate(-50%, -50%) rotate(-12deg);
}

body.theme-dark .tool-theme span::before {
  display: none;
}

body.theme-dark .tool-theme span::after {
  display: block;
}

.mobile-tabbar {
  display: none;
}

.drawer {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: none;
}

body.site-search-open {
  overflow: hidden;
}

.drawer.is-open {
  display: block;
}

.drawer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.52);
}

.drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(410px, 100%);
  height: 100%;
  overflow-y: auto;
  background: #fff;
  box-shadow: -18px 0 40px rgba(0, 0, 0, 0.22);
  padding: 30px;
  transform: translateX(100%);
  animation: slideIn 180ms ease forwards;
}

body.theme-dark .drawer__panel,
body.theme-dark .drawer__close,
body.theme-dark .mini-form input {
  background: #242424;
  color: #f2f2f2;
}

.drawer__panel h2 {
  margin: 0 0 8px;
}

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

.drawer__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  color: #222;
  font-size: 24px;
  line-height: 1;
}

.mini-form {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.mini-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.mini-form input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 4px;
  outline: none;
  padding: 11px 12px;
}

.mini-form input:focus {
  border-color: var(--pink);
  box-shadow: 0 0 0 3px rgba(var(--brand-primary-rgb), 0.13);
}

.mini-form button {
  border: 0;
  border-radius: 4px;
  background: var(--pink);
  color: #fff;
  font-weight: 800;
  padding: 11px 14px;
}

@keyframes slideIn {
  to {
    transform: translateX(0);
  }
}

@media (max-width: 1180px) {
  .home-ad-layout.has-side-ads,
  .detail-ad-layout.has-side-ads {
    display: block;
  }

  .home-side-ad,
  .detail-side-ad {
    display: none;
  }

  .detail-shell.has-detail-side-ads {
    width: min(880px, calc(100% - 32px));
  }

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

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

  .nav-links,
  .nav-actions {
    gap: 16px;
  }
}

@media (max-width: 900px) {
  .site-hero {
    min-height: 430px;
  }

  .topnav {
    grid-template-columns: auto auto;
    width: min(100% - 28px, 1480px);
  }

  .home-body .topnav {
    width: 100%;
    padding: 0 14px;
  }

  .menu-btn {
    display: block;
    justify-self: end;
  }

  .nav-links,
  .nav-actions {
    grid-column: 1 / -1;
    display: none;
    width: 100%;
    border-top: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(0, 0, 0, 0.34);
    padding: 12px;
  }

  .nav-links.is-open,
  .nav-actions.is-open {
    display: flex;
    flex-wrap: wrap;
  }

  .nav-item {
    width: 100%;
  }

  .nav-menu {
    position: static;
    display: none;
    width: 100%;
    margin-top: 6px;
    background: rgba(255, 255, 255, 0.95);
    transform: none;
  }

  .nav-menu::before {
    display: none;
  }

  .nav-item.is-open .nav-menu {
    display: block;
  }

  .hero-center {
    margin-top: 112px;
  }

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

/* 注册协议：先确认条款，再进入既有注册流程。 */
body.registration-agreement-open {
  overflow: hidden !important;
}

.registration-agreement[hidden] {
  display: none !important;
}

.registration-agreement {
  --agreement-surface: #fff;
  --agreement-surface-muted: #f8fafc;
  --agreement-heading: #172033;
  --agreement-text: #344054;
  --agreement-muted: #667085;
  --agreement-border: #eaecf0;
  position: fixed;
  inset: 0;
  z-index: 70000;
  display: none;
  place-items: center;
  padding:
    max(20px, env(safe-area-inset-top))
    max(20px, env(safe-area-inset-right))
    max(20px, env(safe-area-inset-bottom))
    max(20px, env(safe-area-inset-left));
  color: var(--agreement-text);
  font-size: 14px;
  line-height: 1.75;
  touch-action: none;
}

.registration-agreement.is-open {
  display: grid;
}

.registration-agreement__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(16, 24, 40, .56);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.registration-agreement__dialog {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  width: min(720px, calc(100vw - 40px));
  height: min(640px, calc(100vh - 40px));
  max-height: calc(100vh - 40px);
  overflow: hidden;
  border: 1px solid rgba(17, 24, 39, .06);
  border-radius: 16px;
  outline: none;
  background: var(--agreement-surface);
  box-shadow: 0 24px 64px rgba(16, 24, 40, .22);
  color-scheme: light;
  touch-action: auto;
}

@supports (height: 100dvh) {
  .registration-agreement__dialog {
    height: min(640px, calc(100dvh - 40px));
    max-height: calc(100dvh - 40px);
  }
}

.registration-agreement__header {
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--agreement-border);
  background: var(--agreement-surface);
}

.registration-agreement__header h2 {
  margin: 0;
  color: var(--agreement-heading);
  font-size: 20px;
  font-weight: 750;
  line-height: 1.35;
  text-align: center;
}

.registration-agreement__body {
  min-height: 0;
  overflow: auto;
  padding: 20px 24px 24px;
  background: var(--agreement-surface);
  color: var(--agreement-text);
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-color: #b7bec8 transparent;
  scrollbar-width: thin;
  touch-action: pan-y;
}

.registration-agreement__body::-webkit-scrollbar {
  width: 8px;
}

.registration-agreement__body::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  border-radius: 999px;
  background: #b7bec8;
  background-clip: padding-box;
}

.registration-agreement__body h3 {
  margin: 0 0 16px;
  color: var(--agreement-heading);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
}

.registration-agreement__body section {
  margin-top: 18px;
}

.registration-agreement__body h4 {
  margin: 0 0 8px;
  color: var(--agreement-heading);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.55;
}

.registration-agreement__body p {
  margin: 0 0 10px;
}

.registration-agreement__body ol {
  margin: 0;
  padding-left: 1.45em;
  list-style-position: outside;
}

.registration-agreement__body li {
  margin: 0 0 9px;
}

.registration-agreement__footer {
  padding: 16px 24px 20px;
  border-top: 1px solid var(--agreement-border);
  background: var(--agreement-surface);
}

.registration-agreement__status {
  margin: 0 0 10px;
  color: var(--agreement-muted);
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
}

.registration-agreement__status.is-error,
.registration-agreement__noscript {
  color: #c62828;
}

.registration-agreement__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.registration-agreement__actions button {
  min-width: 120px;
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: 7px;
  padding: 0 22px;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: background-color .16s ease, border-color .16s ease, color .16s ease, box-shadow .16s ease;
}

.registration-agreement__accept {
  border-color: var(--pink) !important;
  background: var(--pink);
  color: #fff;
  box-shadow: 0 7px 18px rgba(var(--brand-primary-rgb), .2);
}

.registration-agreement__accept:hover,
.registration-agreement__accept:focus-visible {
  border-color: var(--pink-dark) !important;
  background: var(--pink-dark);
}

.registration-agreement__decline {
  border-color: #d0d5dd !important;
  background: #f3f5f8;
  color: #253044;
}

.registration-agreement__decline:hover,
.registration-agreement__decline:focus-visible {
  border-color: #c3cad4 !important;
  background: #e8ecf2;
}

.registration-agreement__actions button:focus-visible,
.registration-agreement__dialog:focus-visible,
.registration-agreement__body:focus-visible {
  outline: 3px solid rgba(var(--brand-primary-rgb), .24);
  outline-offset: 2px;
}

.registration-agreement__actions button:disabled {
  cursor: wait;
  opacity: .62;
}

.registration-agreement__noscript {
  margin: 8px 0 0;
  text-align: center;
}

.registration-agreement-pending [data-registration-gated] {
  pointer-events: none;
  user-select: none;
}

body.theme-dark .registration-agreement {
  --agreement-surface: #20262e;
  --agreement-surface-muted: #242b34;
  --agreement-heading: #f4f7fb;
  --agreement-text: #d6dde7;
  --agreement-muted: #aeb8c6;
  --agreement-border: #3b4654;
}

body.theme-dark .registration-agreement__backdrop {
  background: rgba(0, 0, 0, .7);
}

body.theme-dark .registration-agreement__dialog {
  border-color: var(--agreement-border);
  background: var(--agreement-surface);
  color: var(--agreement-text);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .55);
  color-scheme: dark;
}

body.theme-dark .registration-agreement__header {
  border-bottom-color: var(--agreement-border);
  background: var(--agreement-surface);
}

body.theme-dark .registration-agreement__header h2 {
  color: var(--agreement-heading);
}

body.theme-dark .registration-agreement__body {
  background: var(--agreement-surface);
  color: var(--agreement-text);
  scrollbar-color: #66717f transparent;
}

body.theme-dark .registration-agreement__body::-webkit-scrollbar-thumb {
  background: #66717f;
  background-clip: padding-box;
}

body.theme-dark .registration-agreement__footer {
  border-top-color: var(--agreement-border);
  background: var(--agreement-surface-muted);
}

body.theme-dark .registration-agreement__status {
  color: var(--agreement-muted);
}

body.theme-dark .registration-agreement__status.is-error,
body.theme-dark .registration-agreement__noscript {
  color: #ff8b8b;
}

body.theme-dark .registration-agreement__decline {
  border-color: #46515f !important;
  background: #303945;
  color: #f4f7fb;
}

body.theme-dark .registration-agreement__decline:hover,
body.theme-dark .registration-agreement__decline:focus-visible {
  border-color: #596575 !important;
  background: #3b4654;
}

@media (max-width: 680px) {
  .registration-agreement {
    align-items: center;
    justify-items: center;
    padding:
      max(16px, env(safe-area-inset-top))
      max(12px, env(safe-area-inset-right))
      max(16px, env(safe-area-inset-bottom))
      max(12px, env(safe-area-inset-left));
    font-size: 13px;
  }

  .registration-agreement__dialog {
    width: min(370px, calc(100vw - 24px));
    height: min(720px, calc(100vh - 32px));
    max-height: calc(100vh - 32px);
    border-radius: 14px;
  }

  @supports (height: 100dvh) {
    .registration-agreement__dialog {
      height: min(720px, calc(100dvh - 32px));
      max-height: calc(100dvh - 32px);
    }
  }

  .registration-agreement__header {
    padding: 18px 18px 14px;
  }

  .registration-agreement__header h2 {
    font-size: 18px;
  }

  .registration-agreement__body {
    padding: 16px 18px 20px;
  }

  .registration-agreement__footer {
    padding: 14px 18px 16px;
  }

  .registration-agreement__actions {
    width: 100%;
  }

  .registration-agreement__actions button {
    flex: 1 1 0;
    min-width: 0;
    min-height: 44px;
  }
}

@media (max-height: 420px) {
  .registration-agreement__header {
    padding-block: 10px;
  }

  .registration-agreement__header h2 {
    font-size: 17px;
  }

  .registration-agreement__body {
    min-height: 0;
    padding-block: 10px 12px;
  }

  .registration-agreement__body h3 {
    margin-block: 0 8px;
  }

  .registration-agreement__body section {
    margin-top: 10px;
  }

  .registration-agreement__footer {
    padding-block: 8px;
  }

  .registration-agreement__actions button {
    min-height: 40px;
    padding-block: 4px;
  }
}

@media (max-width: 680px) {
  .hero-collage {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(4, 115px);
  }

  .hero-center h1 {
    font-size: 34px;
  }

  .hero-center {
    margin-top: 96px;
  }

  .hero-center p {
    font-size: 14px;
  }

  .hero-search {
    grid-template-columns: 1fr 56px;
  }

  .notice-line {
    display: block;
    text-align: center;
  }

  .latest {
    width: min(100% - 24px, 1500px);
  }

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

  .auth-modal__card {
    width: min(400px, calc(100% - 32px));
    padding: 56px 24px 34px;
  }

  #forgotPasswordModal .auth-modal__card {
    min-height: min(460px, 100dvh);
    max-height: 100dvh;
    padding-top: max(42px, env(safe-area-inset-top));
    padding-bottom: max(24px, env(safe-area-inset-bottom));
  }

  .forgot-password-modal__title {
    margin-top: -6px;
    font-size: 19px;
  }

  .forgot-password-modal__status {
    min-height: 35px;
    font-size: 11px;
  }

  .auth-modal__form {
    width: 100%;
  }

  .float-tools {
    right: 10px;
    bottom: 28px;
  }

  .account-shell {
    grid-template-columns: 1fr;
    width: min(100% - 24px, 1200px);
  }

  .account-sidebar {
    padding-bottom: 12px;
  }

  .account-menu {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 18px;
  }

  .account-menu a {
    padding: 0 8px;
    font-size: 14px;
  }

  .agency-panel {
    padding: 28px 14px;
  }

  .agency-link-card {
    padding: 14px 10px;
  }

  .agency-link-row {
    grid-template-columns: 68px minmax(0, 1fr) 48px;
    gap: 6px;
  }

  .agency-link-row label,
  .agency-copy-btn {
    font-size: 12px;
  }

  .agency-link-row input {
    padding: 0 7px;
    font-size: 12px;
  }

  .recharge-panel {
    padding: 28px 14px;
  }

  .withdraw-panel {
    padding: 28px 14px;
  }

  .withdraw-form {
    width: 100%;
  }

  .withdraw-summary {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .withdraw-plain-form label {
    grid-template-columns: 1fr;
    row-gap: 6px;
  }

  .withdraw-plain-form label > span {
    text-align: left;
  }

  .withdraw-plain-form small,
  .withdraw-plain-meta,
  .withdraw-plain-actions,
  .withdraw-plain-form .form-result {
    grid-column: 1;
    margin-left: 0;
  }

  .withdraw-form label,
  .withdraw-static {
    grid-template-columns: 1fr;
    row-gap: 6px;
  }

  .withdraw-form label span,
  .withdraw-static span {
    text-align: left;
  }

  .withdraw-form input {
    width: 100%;
  }

  .withdraw-form small,
  .withdraw-actions,
  .withdraw-rules,
  .withdraw-form .form-result {
    grid-column: 1;
    margin-left: 0;
  }

  .profile-panel {
    padding: 28px 14px;
  }

  .profile-form {
    width: 100%;
    margin-left: 0;
  }

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

  .profile-line span {
    text-align: left;
  }

  .profile-line input,
  .profile-line textarea {
    width: 100%;
  }

  .profile-result {
    margin-left: 0;
  }

  .ticket-panel {
    padding: 28px 14px;
  }

  .ticket-form {
    grid-template-columns: 1fr;
    row-gap: 14px;
    min-height: 760px;
  }

  .ticket-form h1 {
    margin-bottom: 8px;
  }

  .ticket-line {
    display: grid;
    gap: 8px;
  }

  .ticket-line > span {
    text-align: left;
  }

  .ticket-type {
    flex-wrap: wrap;
  }

  .ticket-type > span {
    flex-basis: 100%;
    text-align: left;
  }

  .ticket-content textarea,
  .ticket-email input {
    width: 100%;
  }

  .ticket-help {
    grid-column: 1;
    margin: -4px 0 0;
  }

  .ticket-upload-list {
    flex-wrap: wrap;
  }

  .ticket-submit {
    position: static;
    justify-items: start;
    margin-top: 20px;
  }

  .ticket-result {
    position: static;
  }

  .tickets-panel {
    overflow-x: auto;
    padding: 28px 14px;
  }

  .tickets-table {
    min-width: 720px;
  }

  .wallet-cards {
    grid-template-columns: 1fr;
  }

  .account-vip-grid {
    grid-template-columns: 1fr;
  }

  .referral-link span {
    font-size: 16px;
  }

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

  .vip-hero {
    padding-top: 110px;
  }
}

@media (max-width: 680px) {
  body {
    padding-bottom: 52px;
  }

  .float-tools {
    right: 14px;
    bottom: 72px;
    z-index: 10001;
    display: grid;
    gap: 7px;
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
    transition:
      opacity 160ms ease,
      transform 180ms ease;
  }

  .float-tools.is-mobile-hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateX(calc(100% + 18px));
  }

  .float-tools .float-tool-button {
    width: 38px;
    height: 38px;
    border-radius: 5px;
  }

  .float-tools .float-tool-button::before {
    display: none !important;
    content: none !important;
  }

  .float-tools .tool-bottom {
    display: none !important;
  }

  .float-tools.can-scroll-down .tool-bottom {
    display: grid !important;
  }

  .tool-service span {
    top: 50%;
    left: 50%;
    width: 17px;
    height: 17px;
  }

  .tool-vip span {
    top: 50%;
    left: 50%;
    width: 22px;
    height: 17px;
  }

  .tool-theme span {
    top: 50%;
    left: 50%;
    width: 18px;
    height: 18px;
  }

  body.theme-dark .tool-theme span {
    top: 50%;
    left: 50%;
    width: 21px;
    height: 21px;
  }

  .mobile-tabbar {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 10000;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    height: 52px;
    border-top: 1px solid #e5e5e5;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 -3px 12px rgba(0, 0, 0, 0.08);
  }

  .mobile-tabbar--without-vip {
    grid-template-columns: repeat(3, 1fr);
  }

  body.theme-dark .mobile-tabbar {
    border-top-color: rgba(255, 255, 255, 0.08);
    background: rgba(24, 24, 24, 0.98);
    box-shadow: 0 -3px 16px rgba(0, 0, 0, 0.38);
  }

  .mobile-tabbar__item {
    display: grid;
    place-items: center;
    align-content: center;
    gap: 2px;
    color: #111;
    font-size: 11px;
    text-decoration: none;
  }

  body.theme-dark .mobile-tabbar__item {
    color: #d8dde6;
  }

  body.theme-dark .mobile-tabbar__item.is-active {
    color: var(--pink);
  }

  .mobile-tabbar__item span {
    position: relative;
    width: 24px;
    height: 24px;
  }

  .mobile-tabbar__item small {
    font-size: 11px;
    line-height: 1;
  }

  .mobile-tabbar__home span::before {
    position: absolute;
    top: 10px;
    left: 6px;
    width: 12px;
    height: 10px;
    border: 1.8px solid currentColor;
    border-top: 0;
    content: "";
  }

  .mobile-tabbar__home span::after {
    position: absolute;
    top: 5px;
    left: 6px;
    width: 12px;
    height: 12px;
    border-top: 1.8px solid currentColor;
    border-left: 1.8px solid currentColor;
    content: "";
    transform: rotate(45deg);
  }

  .mobile-tabbar__city span::before {
    position: absolute;
    top: 4px;
    left: 4px;
    width: 16px;
    height: 16px;
    border: 1.8px solid currentColor;
    border-radius: 50%;
    content: "";
  }

  .mobile-tabbar__city span::after {
    position: absolute;
    top: 8px;
    left: 11px;
    width: 2px;
    height: 9px;
    border-radius: 999px;
    background: currentColor;
    box-shadow:
      -5px 3px 0 -0.3px currentColor,
      5px -3px 0 -0.3px currentColor;
    content: "";
  }

  .mobile-tabbar__vip span::before {
    position: absolute;
    top: 7px;
    left: 4px;
    width: 16px;
    height: 14px;
    border-radius: 2px 2px 6px 6px;
    background:
      linear-gradient(135deg, transparent 0 23%, currentColor 24% 44%, transparent 45%),
      linear-gradient(225deg, transparent 0 23%, currentColor 24% 44%, transparent 45%),
      linear-gradient(currentColor, currentColor);
    background-position: 0 0, 100% 0, 0 8px;
    background-repeat: no-repeat;
    background-size: 50% 10px, 50% 10px, 100% 8px;
    content: "";
  }

  .mobile-tabbar__mine span::before {
    position: absolute;
    top: 4px;
    left: 7px;
    width: 10px;
    height: 10px;
    border: 1.8px solid currentColor;
    border-radius: 50%;
    content: "";
  }

  .mobile-tabbar__mine span::after {
    position: absolute;
    right: 4px;
    bottom: 3px;
    left: 4px;
    height: 9px;
    border: 1.8px solid currentColor;
    border-top-left-radius: 999px;
    border-top-right-radius: 999px;
    border-bottom: 0;
    content: "";
  }

  .topnav,
  .home-body .topnav {
    position: fixed;
    box-sizing: border-box;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    left: 0;
    transform: none;
    width: 100%;
    min-height: 54px;
    padding: 0 16px;
    border-radius: 0;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 9px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(10px);
  }

  .home-body .topnav {
    background: rgba(0, 0, 0, 0.12);
    box-shadow: none;
  }

  .home-body .topnav.is-scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 9px rgba(0, 0, 0, 0.08);
  }

  body.theme-dark .topnav,
  body.theme-dark.home-body .topnav,
  body.theme-dark.home-body .topnav.is-scrolled {
    background: rgba(24, 24, 24, 0.98);
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.38);
  }

  .logo {
    position: relative;
    top: auto;
    left: auto;
    grid-column: 2;
    grid-row: 1;
    justify-self: center;
    margin-left: 0;
    min-width: 54px;
    min-height: 26px;
    border-width: 2px;
    font-size: 18px;
    transform: none;
  }

  .menu-btn {
    position: relative;
    top: auto;
    left: auto;
    grid-column: 1;
    grid-row: 1;
    display: block;
    justify-self: start;
    align-self: center;
    width: 24px;
    height: 24px;
    min-width: 24px;
    border: 0;
    background: transparent;
    padding: 3px;
    transform: none;
  }

  .menu-btn span {
    height: 2px;
    margin: 3px 0;
    background: #222;
  }

  .home-body .topnav:not(.is-scrolled) .menu-btn span {
    background: #fff;
  }

  body.theme-dark .menu-btn span,
  body.theme-dark.home-body .topnav:not(.is-scrolled) .menu-btn span,
  body.theme-dark.home-body .topnav.is-scrolled .menu-btn span {
    background: #f3f6fb;
  }

  .nav-actions,
  .nav-actions.is-open {
    position: relative;
    top: auto;
    right: auto;
    grid-column: 3;
    grid-row: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
    width: auto;
    border-top: 0;
    background: transparent;
    padding: 0;
    transform: none;
  }

  .nav-actions button,
  .nav-actions a {
    width: 24px;
    height: 24px;
    min-width: 24px;
    color: #222;
    text-shadow: none;
  }

  .home-body .topnav:not(.is-scrolled) .nav-actions button,
  .home-body .topnav:not(.is-scrolled) .nav-actions a {
    color: #fff;
  }

  body.theme-dark .nav-actions button,
  body.theme-dark .nav-actions a,
  body.theme-dark .icon-search,
  body.theme-dark.home-body .topnav:not(.is-scrolled) .nav-actions button,
  body.theme-dark.home-body .topnav:not(.is-scrolled) .nav-actions a,
  body.theme-dark.home-body .topnav.is-scrolled .nav-actions button,
  body.theme-dark.home-body .topnav.is-scrolled .nav-actions a {
    color: #f3f6fb;
  }

  .topnav.is-authing .nav-actions a[data-open-auth],
  .topnav.is-authing .nav-actions a[data-open-register],
  .topnav.is-authing .avatar-btn {
    color: var(--pink) !important;
  }

  body.mobile-nav-open {
    overflow: hidden;
  }

  body.mobile-nav-open::before {
    position: fixed;
    inset: 0;
    z-index: 9996;
    background: rgba(0, 0, 0, 0.38);
    content: "";
  }

  body.mobile-nav-open .menu-btn span {
    background: var(--pink) !important;
  }

  body.mobile-nav-open .mobile-tabbar {
    z-index: 9995;
  }

  .avatar-btn {
    position: relative;
    display: block;
    width: 24px;
    height: 24px;
    min-width: 24px;
    border-radius: 0;
    background: transparent !important;
    color: currentColor;
    font-size: 0;
  }

  .avatar-btn::before {
    position: absolute;
    top: 3px;
    left: 8px;
    width: 8px;
    height: 8px;
    border: 1.7px solid currentColor;
    border-radius: 50%;
    content: "";
  }

  .avatar-btn::after {
    position: absolute;
    right: 5px;
    bottom: 4px;
    left: 5px;
    height: 8px;
    border: 1.7px solid currentColor;
    border-top-left-radius: 999px;
    border-top-right-radius: 999px;
    border-bottom: 0;
    content: "";
  }

  .nav-links {
    position: absolute;
    top: 54px;
    right: 0;
    left: 0;
    grid-column: 1 / -1;
    display: none;
    width: 100%;
    border-top: 1px solid #eeeeee;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 12px 18px rgba(0, 0, 0, 0.08);
    padding: 8px 16px 12px;
  }

  .nav-links.is-open {
    display: flex;
    flex-wrap: wrap;
    gap: 0 18px;
  }

  .nav-links a,
  .nav-item-link,
  .nav-item button {
    color: #111;
    text-shadow: none;
  }

  .nav-links > a::after,
  .nav-item > .nav-item-link::before,
  .nav-item > button::before {
    background: var(--pink);
  }

  .nav-item button::after,
  .nav-item-link::after {
    border-top-color: #111;
  }

  .nav-item:hover button::after,
  .nav-item:hover .nav-item-link::after,
  .nav-item.is-open .nav-item-link::after,
  .nav-item.is-open button::after {
    border-bottom-color: #111;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: auto;
    bottom: 0;
    left: 0;
    z-index: 10001;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 225px;
    height: 100dvh;
    border-top: 0;
    background: #fff;
    box-shadow: none;
    padding: 0 13px;
    transform: translateX(-100%);
    transition: transform 180ms ease;
    visibility: hidden;
  }

  .nav-links.is-open {
    display: flex;
    flex-direction: column;
    gap: 0;
    transform: translateX(0);
    visibility: visible;
  }

  .nav-links > a,
  .nav-item-link {
    display: flex;
    align-items: center;
    min-height: 43px;
    border-bottom: 1px solid #eeeeee;
    color: #111;
    font-size: 14px;
    font-weight: 400;
    padding: 0;
  }

  .nav-links > a::after,
  .nav-item > .nav-item-link::before,
  .nav-item > button::before {
    display: none;
  }

  .nav-item {
    width: 100%;
  }

  .nav-item::after {
    display: none;
  }

  .nav-item-link::after {
    margin-left: auto;
    border-top: 5px solid #333;
    border-right: 4px solid transparent;
    border-left: 4px solid transparent;
  }

  .nav-links > a:not(.is-active),
  .nav-item:not(.is-active) > .nav-item-link,
  .nav-item:not(.is-active) .nav-menu a {
    color: #111 !important;
    font-weight: 400 !important;
    text-decoration: none;
  }

  .nav-item:not(.is-active) > .nav-item-link::after {
    border-top-color: #333 !important;
    border-bottom-color: #333 !important;
  }

  .nav-item.is-open:not(.is-active) > .nav-item-link {
    color: #111;
    font-weight: 400 !important;
  }

  .nav-item.is-open .nav-item-link::after {
    border-top: 0;
    border-bottom: 5px solid #333;
  }

  .nav-links > a.is-active,
  .nav-item.is-active > .nav-item-link {
    color: var(--pink);
    font-weight: 600;
    box-shadow: none;
    text-decoration-line: underline;
    text-decoration-color: var(--pink);
    text-decoration-thickness: 2px;
    text-underline-offset: 12px;
  }

  .nav-item.is-active > .nav-item-link::after {
    border-top-color: var(--pink);
  }

  .nav-item.is-active.is-open > .nav-item-link::after {
    border-bottom-color: var(--pink);
  }

  .nav-menu {
    position: static;
    display: none;
    width: 100%;
    margin: 0;
    border-radius: 0;
    background: #fff;
    box-shadow: none;
    transform: none;
  }

  .nav-menu::before {
    display: none;
  }

  .nav-item.is-open .nav-menu {
    display: block;
  }

  .nav-menu a {
    display: flex;
    align-items: center;
    min-height: 43px;
    border-bottom: 1px solid #eeeeee;
    color: #111;
    font-size: 14px;
    font-weight: 400;
    padding: 0 0 0 14px;
  }

  .nav-menu a:hover {
    background: transparent;
    color: #111;
  }

  body.theme-dark.mobile-nav-open::before {
    background: rgba(0, 0, 0, 0.58);
  }

  body.theme-dark .nav-links {
    border-top-color: #2f343a;
    background: #1f2227;
    box-shadow: 12px 0 28px rgba(0, 0, 0, 0.36);
  }

  body.theme-dark .nav-links > a,
  body.theme-dark .nav-item-link,
  body.theme-dark .nav-item button,
  body.theme-dark .nav-menu a,
  body.theme-dark .nav-links > a:not(.is-active),
  body.theme-dark .nav-item:not(.is-active) > .nav-item-link,
  body.theme-dark .nav-item:not(.is-active) .nav-menu a,
  body.theme-dark .nav-item.is-open:not(.is-active) > .nav-item-link {
    border-bottom-color: #343941;
    color: #f2f5f8 !important;
    text-shadow: none;
  }

  body.theme-dark .nav-links > a.is-active,
  body.theme-dark .nav-item.is-active > .nav-item-link {
    color: var(--pink) !important;
    text-decoration-color: var(--pink);
  }

  body.theme-dark .nav-item-link::after,
  body.theme-dark .nav-item:not(.is-active) > .nav-item-link::after {
    border-top-color: #d9e0e8 !important;
    border-bottom-color: #d9e0e8 !important;
  }

  body.theme-dark .nav-item.is-open .nav-item-link::after {
    border-top-color: transparent !important;
    border-bottom-color: #d9e0e8 !important;
  }

  body.theme-dark .nav-item.is-active > .nav-item-link::after {
    border-top-color: var(--pink) !important;
  }

  body.theme-dark .nav-item.is-active.is-open > .nav-item-link::after {
    border-bottom-color: var(--pink) !important;
  }

  body.theme-dark .nav-menu {
    background: #1f2227;
  }

  body.theme-dark .nav-menu a:hover {
    background: #282d34;
    color: #fff !important;
  }

  .auth-modal {
    place-items: end center;
  }

  .auth-modal__backdrop {
    background: rgba(0, 0, 0, 0.34);
  }

  .auth-modal__card {
    align-self: end;
    width: 100%;
    min-height: 337px;
    border-radius: 8px 8px 0 0;
    padding: 56px 35px 28px;
    box-shadow: none;
  }

  .auth-modal__form,
  .login-form.auth-modal__form {
    width: 100%;
    max-width: 300px;
    gap: 14px;
  }

  .auth-modal__form .login-field input {
    height: 36px;
    border-radius: 5px;
    background: #e8ecef;
    padding: 10px 38px 10px 31px;
    font-size: 14px;
    line-height: 14px;
  }

  .auth-modal__form .login-field.is-valid::after {
    right: 12px;
    font-size: 17px;
  }

  .auth-modal__form .login-field span {
    left: 10px;
  }

  .auth-modal__form button {
    height: 36px;
    margin-top: 0;
    border-radius: 5px;
    font-size: 13px;
  }

  .auth-modal__links {
    gap: 14px;
    margin-top: 4px;
    border-top: 1px solid #f0f0f0;
    padding-top: 12px;
    font-size: 12px;
  }

  .auth-modal__links a {
    color: var(--pink);
  }

  .auth-modal .login-logo {
    height: 29px;
    min-width: 58px;
    margin-bottom: 35px;
    border-radius: 4px;
    font-size: 18px;
  }

  .agency-login-shell {
    align-items: center;
    min-height: 100vh;
    padding: 88px 18px 40px;
  }

  .agency-login-body .topnav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .agency-login-body .menu-btn {
    display: block !important;
  }

  .agency-login-shell .login-card {
    width: 100%;
    max-width: 420px;
    min-height: 354px;
    border-radius: 12px;
    padding: 70px 35px 44px;
  }

  .agency-login-shell .login-form {
    width: 100%;
  }

  .agency-login-shell .login-logo {
    margin-bottom: 34px;
  }

  .site-hero {
    height: 226px;
    min-height: 226px;
  }

  .hero-collage {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 75px);
  }

  .hero-center {
    width: calc(100% - 28px);
    margin-top: 53px;
  }

  .hero-center h1 {
    font-size: 24px;
  }

  .hero-center p {
    margin: 4px 0 14px;
    font-size: 13px;
    white-space: nowrap;
  }

  .hero-search {
    grid-template-columns: 1fr 52px;
    height: 48px;
    border-radius: 4px;
  }

  .hero-search input {
    border-radius: 4px 0 0 4px;
    font-size: 14px;
    padding: 0 16px;
  }

  .hero-search button {
    border-radius: 0 4px 4px 0;
  }

  .hero-search button::before {
    top: 13px;
    left: 15px;
  }

  .hero-search button::after {
    top: 28px;
    left: 29px;
  }

  .hot-cities {
    justify-content: flex-start;
    gap: 4px 10px;
    width: 100%;
    margin-top: 8px;
    font-size: 12px;
    line-height: 1.45;
    text-align: left;
  }

  .notice-line {
    display: block;
    min-height: 0;
    padding: 20px 6px 15px;
    border-bottom: 0;
    font-size: 14px;
    line-height: 1.65;
    text-align: center;
  }

  .notice-line > .notice-line__label {
    display: inline-block;
    margin-right: 0;
  }

  .notice-line > p {
    display: inline;
  }

  .latest {
    width: calc(100% - 24px);
    margin: 0 auto 28px;
  }

  .latest h2 {
    margin-bottom: 15px;
    font-size: 16px;
  }

  .vip-hero {
    min-height: 628px;
    padding: 104px 0 22px;
  }

  .vip-hero::before {
    top: -220px;
    right: -190px;
    width: 470px;
    height: 470px;
  }

  .vip-heading h1 {
    margin-bottom: 12px;
    font-size: 26px;
  }

  .vip-heading p {
    font-size: 13px;
  }

  .vip-grid,
  .account-vip-grid--vip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 17px;
  }

  .vip-grid {
    width: calc(100% - 28px);
    margin-top: 36px;
  }

  .vip-plan {
    min-height: 242px;
    border-radius: 8px;
    box-shadow: 0 10px 22px rgba(72, 102, 132, 0.08);
  }

  .vip-body .vip-plan__body,
  .account-vip-grid--vip .vip-plan__body {
    padding: 12px 8px;
  }

  .vip-plan h2 {
    height: 36px;
    font-size: 16px;
    line-height: 36px;
  }

  .vip-price {
    --vip-price-size: 26px;
    gap: 13px;
    margin-top: 11px;
  }

  .vip-price strong {
    font-size: var(--vip-price-size);
  }

  .vip-price span {
    font-size: var(--vip-price-size);
  }

  .vip-plan em {
    min-width: 42px;
    height: 20px;
    font-size: 12px;
    line-height: 20px;
  }

  .vip-plan p {
    margin-top: 28px;
    font-size: 12px;
  }

  .vip-plan hr {
    display: none;
  }

  .vip-plan hr + p {
    margin-top: 14px;
  }

  .vip-plan button,
  .vip-upgrade-link {
    min-width: 76px;
    height: 28px;
    margin-top: 12px;
    margin-bottom: 22px;
    font-size: 12px;
    line-height: 28px;
  }

  .vip-plan .vip-plan__action {
    min-width: 76px;
    min-height: 36px;
    height: 36px;
    margin-top: 12px;
    margin-bottom: 0;
    padding: 0 12px;
    font-size: 12px;
    line-height: 1;
  }

  .vip-faq {
    width: 100%;
    min-height: 270px;
    padding: 40px 15px 82px;
  }

  .vip-faq h2 {
    margin-bottom: 31px;
    font-size: 26px;
  }

  .vip-faq h3 {
    margin-bottom: 8px;
    font-size: 15px;
  }

  .vip-faq p {
    color: #67717d;
    font-size: 12px;
    line-height: 1.55;
  }

  .national-shell {
    width: calc(100% - 28px);
    padding: 78px 0 28px;
  }

  .national-filter {
    margin-bottom: 15px;
    border-radius: 4px;
    padding: 17px 9px 13px;
  }

  .filter-row {
    grid-template-columns: 46px 1fr;
    gap: 8px;
  }

  .filter-row strong {
    font-size: 13px;
    line-height: 24px;
  }

  .filter-links {
    gap: 7px 15px;
    align-items: center;
  }

  .filter-links a {
    font-size: 12px;
    line-height: 24px;
  }

  .filter-links a.is-active {
    line-height: 22px;
    padding: 0 9px;
  }

  .filter-row + .filter-row {
    margin-top: 12px;
    padding-top: 12px;
  }

  .filter-links a.sort-link {
    padding-right: 12px;
  }

  .national-list .card-grid {
    gap: 12px 10px;
  }

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

  .info-card {
    border-radius: 4px;
    box-shadow:
      0 0 0 1px var(--line),
      0 4px 12px rgba(0, 0, 0, 0.06);
  }

  .info-card__image {
    aspect-ratio: 0.72;
  }

  .info-card__body {
    padding: 7px 8px 9px;
  }

  .info-card__meta {
    font-size: 12px;
  }

  .info-card__body h3 {
    margin: 7px 0 8px;
    font-size: 13px;
  }

  .info-card__body h3 span {
    font-size: 11px;
    padding: 3px 4px;
  }

  .info-card__stats {
    gap: 6px;
    font-size: 12px;
  }

  .load-more-wrap {
    padding: 30px 0 10px;
  }

  .load-more {
    min-width: 134px;
    height: 44px;
    border-radius: 4px;
  }
}

@media (max-width: 430px) {
  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .info-card__image {
    aspect-ratio: 0.72;
  }
}

/* PC端登录用户头像悬停弹窗 */
.nav-user-popover {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
}

.nav-user-popover::after {
  position: absolute;
  top: 100%;
  right: -18px;
  display: none;
  width: 360px;
  height: 18px;
  content: "";
}

.nav-user-card {
  position: absolute;
  top: 54px;
  right: -8px;
  z-index: 10020;
  display: block;
  width: 330px;
  box-sizing: border-box;
  padding: 16px 14px 16px;
  border-radius: 4px;
  background: #fff;
  color: #111;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.14);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  text-shadow: none;
  transform: translateY(8px);
  transition: opacity 120ms ease, transform 120ms ease, visibility 120ms ease;
}

.nav-user-card::before {
  position: absolute;
  top: -7px;
  right: 22px;
  width: 14px;
  height: 14px;
  border-radius: 2px;
  background: #fff;
  content: "";
  transform: rotate(45deg);
}

.nav-user-popover:hover::after,
.nav-user-popover:focus-within::after {
  display: block;
}

.nav-user-popover:hover .nav-user-card,
.nav-user-popover:focus-within .nav-user-card {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.nav-user-head {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 0 2px 0 0;
}

.nav-user-avatar {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  margin-right: 16px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 34%, #fff 0 20%, transparent 21%),
    radial-gradient(circle at 50% 86%, #fff 0 35%, transparent 36%),
    #c9c9c9;
}

.nav-user-head strong {
  flex: 0 1 auto;
  color: #222;
  font-size: 13px;
  font-weight: 400;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-user-head em {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  height: 20px;
  margin-left: 9px;
  padding: 0 8px;
  border-radius: 999px;
  background: #f1f1f1;
  color: #7c8794;
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
  line-height: 20px;
  white-space: nowrap;
}

.account-label-part {
  color: inherit;
}

.account-label-part.is-active {
  color: var(--brand-primary);
  font-weight: 700;
}

.account-label-sep {
  color: #8d98a6;
  margin: 0 2px;
}

.account-level-display {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0;
}

.nav-user-balance {
  height: 35px;
  margin-top: 17px;
  padding: 0 10px;
  border-radius: 4px;
  background: #f3f3f3;
  color: #333;
  font-size: 13px;
  font-weight: 400;
  line-height: 35px;
}

.nav-user-balance-breakdown {
  display: grid;
  gap: 2px;
  height: auto;
  min-height: 35px;
  padding: 7px 10px;
  line-height: 1.45;
}

.nav-user-balance-breakdown span {
  color: #333;
  font-size: 12px;
  font-weight: 400;
  white-space: nowrap;
}

.nav-user-vipbox {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  margin-top: 13px;
  box-sizing: border-box;
  padding: 9px 10px;
  border-radius: 0;
  background: #f1f1f1;
}

.nav-user-vipbox div {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.nav-user-vipbox .nav-membership-lines {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.nav-membership-item {
  display: grid;
  gap: 4px;
}

.nav-user-vipbox strong {
  color: #111;
  font-size: 14px;
  font-weight: 400;
  line-height: 17px;
}

.nav-membership-item strong {
  color: var(--brand-primary);
  font-weight: 700;
}

.nav-user-vipbox span {
  color: #777;
  font-size: 13px;
  line-height: 18px;
  white-space: normal;
}

.nav-user-vipbox a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 62px;
  height: 22px;
  min-width: 62px;
  margin-top: 0;
  border-radius: 999px;
  background: #ffaf16;
  color: #fff !important;
  font-size: 13px;
  font-weight: 700;
  line-height: 22px;
  text-decoration: none;
  text-shadow: none !important;
}

.nav-user-shortcuts {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  margin-top: 15px;
}

.nav-user-shortcuts a {
  display: grid;
  justify-items: center;
  gap: 3px;
  min-width: 0;
  color: #222 !important;
  font-size: 13px;
  font-weight: 400;
  line-height: 16px;
  text-align: center;
  text-decoration: none;
  text-shadow: none !important;
}

.nav-user-ico {
  position: relative;
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  box-sizing: border-box;
  border-radius: 50%;
  background: #fbfbfb;
  color: #111;
  font-style: normal;
  box-shadow: inset 0 0 0 1px #f1f1f1;
}

.nav-user-ico::before,
.nav-user-ico::after {
  position: absolute;
  content: "";
  box-sizing: border-box;
}

.nav-user-ico-yen::before {
  content: "¥";
  position: static;
  width: auto;
  height: auto;
  color: #111;
  font-size: 20px;
  font-weight: 500;
  line-height: 1;
}

.nav-user-ico-buy::before {
  top: 16px;
  left: 18px;
  width: 14px;
  height: 17px;
  border: 2px solid #111;
  border-top: 0;
  border-radius: 0 0 7px 7px;
}

.nav-user-ico-buy::after {
  top: 12px;
  left: 20px;
  width: 10px;
  height: 9px;
  border: 2px solid #111;
  border-bottom: 0;
  border-radius: 9px 9px 0 0;
}

.nav-user-ico-card::before {
  top: 15px;
  left: 15px;
  width: 20px;
  height: 16px;
  border: 1.8px solid #111;
  border-radius: 3px;
}

.nav-user-ico-card::after {
  top: 19px;
  left: 19px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #111;
  box-shadow: 8px 0 0 -1.5px #111, 8px 5px 0 -1.5px #111;
}

.nav-user-ico-admin::before {
  top: 15px;
  left: 15px;
  width: 5px;
  height: 5px;
  border-radius: 1px;
  background: #111;
  box-shadow:
    8px 0 0 #111,
    16px 0 0 #111,
    0 8px 0 #111,
    8px 8px 0 #111,
    16px 8px 0 #111,
    0 16px 0 #111,
    8px 16px 0 #111,
    16px 16px 0 #111;
}

/* Match the other shortcut outlines in dark mode, retaining each dark tile. */
body.theme-dark .nav-user-ico-admin::before {
  box-shadow:
    0 0 0 1px #f2f2f2,
    8px 0 0 #111, 8px 0 0 1px #f2f2f2,
    16px 0 0 #111, 16px 0 0 1px #f2f2f2,
    0 8px 0 #111, 0 8px 0 1px #f2f2f2,
    8px 8px 0 #111, 8px 8px 0 1px #f2f2f2,
    16px 8px 0 #111, 16px 8px 0 1px #f2f2f2,
    0 16px 0 #111, 0 16px 0 1px #f2f2f2,
    8px 16px 0 #111, 8px 16px 0 1px #f2f2f2,
    16px 16px 0 #111, 16px 16px 0 1px #f2f2f2;
}

.nav-user-ico-lock::before {
  top: 21px;
  left: 16px;
  width: 18px;
  height: 13px;
  border: 1.9px solid #111;
  border-radius: 2px;
}

.nav-user-ico-lock::after {
  top: 13px;
  left: 19px;
  width: 12px;
  height: 12px;
  border: 1.9px solid #111;
  border-bottom: 0;
  border-radius: 12px 12px 0 0;
}

.nav-user-ico-power::before {
  top: 15px;
  left: 16px;
  width: 18px;
  height: 20px;
  border: 2px solid #111;
  border-top-color: transparent;
  border-radius: 50%;
}

.nav-user-ico-power::after {
  top: 12px;
  left: 24px;
  width: 2px;
  height: 13px;
  border-radius: 2px;
  background: #111;
}

@media (max-width: 900px) {
  .nav-user-popover {
    width: 24px;
    height: 24px;
  }

  .nav-user-card,
  .nav-user-popover::after {
    display: none !important;
  }
}

.mobile-account-sheet {
  position: fixed;
  inset: 0;
  z-index: 10080;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 160ms ease, visibility 160ms ease;
}

.mobile-account-sheet.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.mobile-account-sheet__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, .18);
}

.mobile-account-card {
  position: absolute;
  left: 50%;
  bottom: max(76px, calc(env(safe-area-inset-bottom) + 76px));
  width: min(330px, calc(100vw - 22px));
  box-sizing: border-box;
  padding: 16px 14px 16px;
  border-radius: 4px;
  background: #fff !important;
  color: #111 !important;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.14);
  text-shadow: none;
  transform: translate(-50%, 8px);
  transition: transform 120ms ease;
}

.mobile-account-sheet.is-open .mobile-account-card {
  transform: translate(-50%, 0);
}

.mobile-account-card:focus {
  outline: none;
}

.mobile-account-close {
  display: none;
}

.mobile-account-close::before,
.mobile-account-close::after {
  position: absolute;
  top: 14px;
  left: 8px;
  width: 14px;
  height: 2px;
  border-radius: 2px;
  background: #8b95a1;
  content: "";
}

.mobile-account-close::before {
  transform: rotate(45deg);
}

.mobile-account-close::after {
  transform: rotate(-45deg);
}

.mobile-account-card .nav-user-head {
  min-height: 42px;
  padding: 0 2px 0 0;
}

.mobile-account-card .nav-user-balance {
  height: auto;
  min-height: 35px;
  margin-top: 17px;
  padding: 7px 10px;
  border-radius: 4px;
  background: #f3f3f3 !important;
  color: #333 !important;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.45;
}

.mobile-account-card .nav-user-vipbox {
  display: flex;
  align-items: center;
  min-height: 74px;
  margin-top: 13px;
  padding: 9px 10px;
  border-radius: 0;
  background: #f1f1f1 !important;
}

.mobile-account-card .nav-user-shortcuts {
  grid-template-columns: repeat(5, 1fr);
  margin-top: 15px;
}

.mobile-account-card .nav-user-avatar {
  width: 42px;
  height: 42px;
  margin-right: 16px;
}

.mobile-account-card .nav-user-head strong {
  color: #222 !important;
  font-size: 13px;
  font-weight: 400;
}

.mobile-account-card .nav-user-balance-breakdown span {
  color: #333 !important;
  font-size: 12px;
  font-weight: 400;
}

.mobile-account-card .nav-user-vipbox strong {
  color: #111 !important;
}

.mobile-account-card .nav-membership-item strong {
  color: var(--brand-primary) !important;
}

.mobile-account-card .nav-user-vipbox span {
  color: #777 !important;
}

.mobile-account-card .nav-user-shortcuts a {
  color: #222 !important;
  font-size: 13px;
  font-weight: 400;
}

.mobile-account-card .nav-user-ico {
  width: 50px;
  height: 50px;
  background: #fbfbfb !important;
  color: #111 !important;
  box-shadow: inset 0 0 0 1px #f1f1f1;
}

body.mobile-account-open {
  overflow: hidden;
}

body.theme-dark .mobile-account-sheet__backdrop {
  background: rgba(0, 0, 0, .55);
}

body.theme-dark :is(.mobile-account-card, .nav-user-card) {
  background: #222 !important;
  color: #f2f2f2 !important;
  box-shadow: 0 18px 46px rgba(0, 0, 0, .42);
}

body.theme-dark :is(.mobile-account-card, .nav-user-card) .nav-user-balance,
body.theme-dark :is(.mobile-account-card, .nav-user-card) .nav-user-vipbox {
  background: #2d2d2d !important;
}

body.theme-dark :is(.mobile-account-card, .nav-user-card) .nav-user-head strong,
body.theme-dark :is(.mobile-account-card, .nav-user-card) .nav-user-balance,
body.theme-dark :is(.mobile-account-card, .nav-user-card) .nav-user-balance-breakdown span,
body.theme-dark :is(.mobile-account-card, .nav-user-card) .nav-user-vipbox strong,
body.theme-dark :is(.mobile-account-card, .nav-user-card) .nav-user-shortcuts a {
  color: #f2f2f2 !important;
}

body.theme-dark :is(.mobile-account-card, .nav-user-card) .nav-membership-item strong {
  color: var(--brand-primary) !important;
}

body.theme-dark :is(.mobile-account-card, .nav-user-card) .nav-user-vipbox span {
  color: #c8ced6 !important;
}

body.theme-dark :is(.mobile-account-card, .nav-user-card) .nav-user-ico {
  background: #30343a !important;
  color: #f2f2f2 !important;
  box-shadow: inset 0 0 0 1px #454b53;
}

body.theme-dark :is(.mobile-account-card, .nav-user-card) .nav-user-ico-yen::before {
  color: #f2f2f2 !important;
}

body.theme-dark :is(.mobile-account-card, .nav-user-card) .nav-user-ico-buy::before,
body.theme-dark :is(.mobile-account-card, .nav-user-card) .nav-user-ico-buy::after,
body.theme-dark :is(.mobile-account-card, .nav-user-card) .nav-user-ico-card::before,
body.theme-dark :is(.mobile-account-card, .nav-user-card) .nav-user-ico-lock::before,
body.theme-dark :is(.mobile-account-card, .nav-user-card) .nav-user-ico-lock::after,
body.theme-dark :is(.mobile-account-card, .nav-user-card) .nav-user-ico-power::before {
  border-color: #f2f2f2 !important;
}

body.theme-dark :is(.mobile-account-card, .nav-user-card) .nav-user-ico-buy::after,
body.theme-dark :is(.mobile-account-card, .nav-user-card) .nav-user-ico-lock::after {
  border-bottom-color: transparent !important;
}

body.theme-dark :is(.mobile-account-card, .nav-user-card) .nav-user-ico-power::before {
  border-top-color: transparent !important;
}

body.theme-dark :is(.mobile-account-card, .nav-user-card) .nav-user-ico-card::after,
body.theme-dark :is(.mobile-account-card, .nav-user-card) .nav-user-ico-power::after {
  background: #f2f2f2 !important;
}

body.theme-dark :is(.mobile-account-card, .nav-user-card) .nav-user-ico-card::after {
  box-shadow: 8px 0 0 -1.5px #f2f2f2, 8px 5px 0 -1.5px #f2f2f2 !important;
}

@media (min-width: 901px) {
  .mobile-account-sheet {
    display: none !important;
  }
}

/* Both account menus share the same palette and explicit open/close state. */
body.theme-dark .nav-user-card::before { background: #222; }
.nav-user-popover.is-account-open::after { display: block; }
.nav-user-popover.is-account-open .nav-user-card {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}
.nav-user-popover.is-account-dismissed .nav-user-card {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.nav-user-popover.is-account-dismissed::after { display: none; }

/* Recharge card redemption/admin extensions */
.wallet-cards a {
  color: inherit;
  text-decoration: none;
}

.wallet-cards a:hover {
  color: var(--pink);
}

.recharge-form p.is-success {
  color: #1a9b57;
}

.recharge-form p.is-error {
  color: var(--pink);
}

.records-panel-table {
  min-height: 620px;
  padding: 30px;
}

.records-panel-table .records-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.records-panel-table h1 {
  margin: 0;
  color: #17202a;
  font-size: 22px;
}

.records-panel-table .records-title-row span {
  color: #8b949f;
}

.records-panel-table .records-empty {
  position: static;
  margin: 110px 0 0;
  color: #9aa0a8;
  font-size: 20px;
  text-align: center;
  transform: none;
}

.records-table-wrap {
  overflow-x: auto;
}

.records-table {
  width: 100%;
  border-collapse: collapse;
  color: #344050;
}

.records-table th,
.records-table td {
  border-bottom: 1px solid #ececec;
  padding: 13px 10px;
  text-align: left;
  white-space: nowrap;
}

.records-table th {
  color: #66707c;
  font-weight: 700;
  background: #fafafa;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 64px;
  height: 24px;
  border-radius: 999px;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 700;
}

.status-paid,
.status-approved,
.status-used {
  background: #e7f7ef;
  color: #159353;
}

.status-pending,
.status-unused {
  background: #fff3d8;
  color: #b67800;
}

.status-failed,
.status-disabled {
  background: #ffe8f3;
  color: var(--pink);
}

.admin-alert {
  margin: 0 0 18px;
  border-radius: 5px;
  background: var(--brand-primary-soft);
  color: var(--pink);
  padding: 12px 14px;
}

.admin-stats-compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.admin-inline-form {
  grid-template-columns: repeat(4, minmax(150px, 1fr)) auto;
  align-items: end;
  margin: 20px 0 22px;
}

.admin-inline-form button,
.admin-filter-form button,
.admin-actions button {
  border: 0;
  border-radius: 5px;
  background: var(--pink);
  color: #fff;
  cursor: pointer;
  padding: 10px 16px;
}

.admin-filter-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
}

.admin-filter-form select,
.admin-filter-form input {
  height: 39px;
  border: 1px solid #d7d7d7;
  border-radius: 4px;
  outline: none;
  padding: 0 12px;
}

.admin-filter-form input {
  min-width: 260px;
}

.admin-filter-form a {
  color: #66707c;
  text-decoration: none;
}

.admin-card-table code,
.admin-table code {
  border-radius: 4px;
  background: #f7f7f7;
  color: #17202a;
  padding: 3px 6px;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-actions form {
  margin: 0;
}

.admin-actions button {
  padding: 7px 10px;
  font-size: 12px;
}

body.theme-dark .records-panel-table h1,
body.theme-dark .records-table,
body.theme-dark .admin-filter-form a {
  color: #f2f2f2;
}

body.theme-dark .records-table th,
body.theme-dark .admin-card-table code,
body.theme-dark .admin-table code {
  background: #303030;
  color: #f2f2f2;
}

body.theme-dark .records-table th,
body.theme-dark .records-table td,
body.theme-dark .admin-filter-form select,
body.theme-dark .admin-filter-form input {
  border-color: #3f3f3f;
}

body.theme-dark .admin-filter-form select,
body.theme-dark .admin-filter-form input {
  background: #242424;
  color: #f2f2f2;
}

@media (max-width: 980px) {
  .admin-inline-form {
    grid-template-columns: 1fr;
  }
}

/* 发布信息：图片上传与权限选择 */
.form-row small,
.admin-form small {
  color: #8a95a3;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.6;
}

.form-row .file-input,
.admin-form .file-input {
  height: auto;
  background: #fff;
  line-height: 1.4;
  padding: 8px;
}

.form-row select[name="post_type"] {
  width: min(520px, 100%);
}

.image-url-textarea {
  min-height: 96px !important;
}

.publish-check {
  gap: 8px;
}

.publish-check > label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  color: #4f5864;
  font-size: 14px;
  font-weight: 500;
}

.publish-check input[type="checkbox"] {
  width: auto;
  height: auto;
}

.form-result.is-error {
  border-color: #ffd1d1;
  background: #fff5f5;
  color: #d32f2f;
}

.admin-image-preview,
.admin-image-list {
  display: grid;
  gap: 8px;
  border: 1px dashed #d9d9d9;
  border-radius: 4px;
  background: #fafafa;
  padding: 12px;
}

.admin-image-preview img {
  width: 160px;
  height: 120px;
  border-radius: 4px;
  object-fit: cover;
}

.admin-image-list > div {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.admin-image-list img {
  width: 96px;
  height: 96px;
  border-radius: 4px;
  object-fit: cover;
}

body.theme-dark .admin-image-preview,
body.theme-dark .admin-image-list {
  border-color: #3f3f3f;
  background: #202020;
}

/* 详情页权限与图文内容优化：VIP信息只隐藏联系方式/详细地址，图片和介绍公开显示 */
.vip-detail-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 20px;
  min-height: 20px;
  border-radius: 999px;
  background: var(--brand-primary-soft);
  color: var(--pink);
  box-sizing: border-box;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  padding: 0 10px;
}

.private-mask {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border-radius: 4px;
  background: var(--brand-primary-surface);
  color: var(--pink);
  font-weight: 800;
  padding: 0 10px;
}

.private-access-tip {
  display: flex;
  align-items: center;
  gap: 10px;
  box-sizing: border-box;
  width: 100%;
  min-height: 62px;
  margin: 8px 0 20px;
  border: 2px dashed var(--pink);
  border-radius: 6px;
  padding: 12px 24px;
  color: #222;
  font-size: 14px;
  line-height: 1.6;
}

.private-access-tip .private-access-action {
  display: inline-flex;
  box-sizing: border-box;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  min-width: 64px;
  height: 30px;
  min-height: 30px;
  margin: 0;
  border: 0;
  border-radius: 999px;
  padding: 0 12px;
  background: var(--pink);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  vertical-align: middle;
  white-space: nowrap;
}

.private-tip-box {
  margin: 16px 0 28px;
}

.private-tip-box a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 86px;
  height: 30px;
  border-radius: 999px;
  background: #e8c66a;
  color: #222;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.rich-content h2 {
  display: inline-flex;
  align-items: baseline;
  justify-content: flex-start;
  width: var(--detail-label-width);
  margin: 0 0 14px;
  color: var(--detail-label-color);
  font-size: var(--detail-label-size);
  font-weight: var(--detail-label-weight);
  line-height: var(--detail-label-line-height);
  text-align: left;
  text-align-last: auto;
  letter-spacing: 0;
  white-space: nowrap;
}

.rich-content p {
  white-space: normal;
  word-break: break-word;
}

.rich-image {
  margin: 18px 0;
  text-align: center;
}

.rich-image img {
  display: inline-block;
  width: min(620px, 100%);
  max-height: 900px;
  border-radius: 4px;
  object-fit: contain;
}

body.theme-dark .private-mask {
  background: var(--brand-primary-dark-soft);
  color: var(--brand-primary-light);
}

body.theme-dark .detail-meta .vip-detail-badge,
body.theme-dark .vip-detail-badge {
  border: 1px solid rgba(var(--brand-primary-rgb), 0.42);
  background: rgba(var(--brand-primary-rgb), 0.16);
  color: var(--brand-primary-light);
  box-shadow: inset 0 0 0 1px rgba(var(--brand-primary-rgb), 0.08);
}

/* Province / city / district cascading selectors */
.region-selects,
.publish-region-selects {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
}

.region-selects select,
.publish-region-selects select {
  width: 100%;
  min-width: 0;
}

.form-row--region {
  align-items: start;
}

.form-row--region > span {
  padding-top: 14px;
}

@media (max-width: 720px) {
  .region-selects,
  .publish-region-selects {
    grid-template-columns: 1fr;
  }
}

/* 登录页：记住账号 */
.login-remember {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 20px;
  margin: 1px 0 3px;
  color: #7d8590;
  font-size: 13px;
  line-height: 1.4;
  cursor: pointer;
  user-select: none;
}

.login-remember input {
  width: 14px;
  height: 14px;
  margin: 0;
  accent-color: var(--pink);
  cursor: pointer;
}

.login-remember span {
  display: inline-flex;
  align-items: center;
}

body.theme-dark .login-remember {
  color: #c8c8c8;
}

@media (max-width: 720px) {
  .agency-login-shell .login-remember {
    font-size: 13px;
    margin: 0 0 2px;
  }
}

/* 收藏功能 */
.favorite-inline-form {
  margin: 0;
}

.favorite-action-btn {
  width: auto;
  min-width: 92px;
  height: 60px;
  display: grid;
  grid-template-columns: 24px auto;
  grid-template-rows: 1fr 1fr;
  align-items: center;
  column-gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  text-decoration: none;
  cursor: pointer;
}

.favorite-action-btn strong {
  grid-row: 1 / 3;
  color: #b8c0cc;
  font-size: 26px;
  line-height: 1;
}

.favorite-action-btn .reaction-label {
  color: #707985;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.1;
}

.favorite-action-btn small {
  color: #a1a8b2;
  font-size: 12px;
  line-height: 1.1;
}

.favorite-action-btn.is-active {
  border-color: rgba(var(--brand-primary-rgb), .25);
  background: var(--brand-primary-soft);
}

.favorite-action-btn.is-active strong,
.favorite-action-btn.is-active .reaction-label {
  color: var(--pink);
}

.favorites-panel {
  width: 100%;
  height: 100%;
  background: #fff;
  padding: 34px 44px;
  overflow-y: auto;
  box-sizing: border-box;
}

.favorites-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}

.favorites-title-row h1 {
  margin: 0;
  color: #0f1d33;
  font-size: 26px;
}

.favorites-title-row span {
  color: #8792a2;
  font-size: 14px;
}

.favorites-message {
  margin: 0 0 16px;
  border-radius: 8px;
  background: var(--brand-primary-soft);
  color: var(--pink);
  padding: 10px 14px;
}

.favorites-empty {
  display: grid;
  min-height: 480px;
  place-items: center;
  margin: 0;
  color: #9aa3af;
  font-size: 18px;
}

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

.favorite-item {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  min-height: 122px;
  border: 1px solid #edf0f5;
  border-radius: 12px;
  background: #fff;
  padding: 12px;
}

.favorite-cover {
  display: block;
  width: 128px;
  height: 96px;
  overflow: hidden;
  border-radius: 10px;
  background: #f4f6f8;
  color: #9aa3af;
  text-decoration: none;
}

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

.favorite-cover span {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  font-size: 13px;
}

.favorite-info {
  min-width: 0;
}

.favorite-topline {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.favorite-topline small {
  color: #7c8794;
}

.favorite-info h2 {
  margin: 0 0 10px;
  font-size: 18px;
  line-height: 1.35;
}

.favorite-info h2 a {
  color: #111827;
  text-decoration: none;
}

.favorite-info h2 a:hover {
  color: var(--pink);
}

.favorite-info p {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin: 0;
  color: #8792a2;
  font-size: 13px;
}

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

.favorite-actions form {
  margin: 0;
}

.favorite-view,
.favorite-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 74px;
  height: 34px;
  border: 0;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.favorite-view {
  background: #f3f6fa;
  color: #243247;
}

.favorite-remove {
  background: #fff1f1;
  color: var(--brand-primary);
}

.favorites-pager {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
  width: 100%;
  margin: 18px 0 0;
  color: #7d8795;
  font-size: 13px;
}

.favorites-pager a,
.favorites-pager span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  padding: 0 10px;
  border-radius: 6px;
  background: #f5f6fa;
  color: #526071;
  text-decoration: none;
  box-sizing: border-box;
}

.favorites-pager .favorites-pager-total {
  width: auto;
  padding: 0 4px;
  background: transparent;
  color: #7d8795;
}

.favorites-pager .is-current {
  background: var(--pink);
  color: #fff;
  font-weight: 800;
}

.favorites-pager .is-disabled,
.favorites-pager .is-ellipsis {
  color: #b6bfca;
  cursor: default;
}

@media (max-width: 900px) {
  .favorites-panel {
    padding: 28px 18px;
  }

  .favorites-title-row {
    align-items: baseline;
    flex-direction: row;
    justify-content: flex-start;
    gap: 8px;
    margin-bottom: 16px;
  }

  .favorites-title-row h1 {
    margin: 0;
    color: #111;
    font-size: 16px;
    line-height: 1.4;
    font-weight: 700;
    white-space: nowrap;
  }

  .favorites-title-row span {
    min-width: 0;
    font-size: 13px;
    line-height: 1.4;
    white-space: nowrap;
  }

  .favorite-item {
    grid-template-columns: 84px minmax(0, 1fr) 62px;
    align-items: center;
    gap: 8px;
    min-height: 96px;
    padding: 10px 12px;
  }

  .favorite-cover {
    width: 84px;
    height: 66px;
    border-radius: 8px;
  }

  .favorite-info {
    display: grid;
    grid-template-rows: auto auto auto;
    row-gap: 5px;
    min-width: 0;
  }

  .favorite-topline {
    flex-wrap: nowrap;
    gap: 5px;
    margin-bottom: 0;
    min-width: 0;
  }

  .favorite-topline .merchant-detail-badge,
  .favorite-topline .vip-detail-badge {
    flex: 0 0 auto;
    padding: 3px 7px;
    font-size: 11px;
    line-height: 1.2;
    white-space: nowrap;
  }

  .favorite-topline small {
    min-width: 0;
    overflow: hidden;
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .favorite-info h2 {
    overflow: hidden;
    margin: 0;
    font-size: 16px;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .favorite-info p {
    display: flex;
    min-width: 0;
    overflow: hidden;
    font-size: 12px;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .favorite-info p .post-stat {
    display: none;
  }

  .favorite-actions {
    grid-column: auto;
    flex-direction: column;
    justify-content: center;
    justify-self: end;
    gap: 8px;
    width: 62px;
  }

  .favorite-view,
  .favorite-remove {
    width: 62px;
    height: 30px;
    padding: 0;
    font-size: 12px;
  }

  .favorites-pager {
    gap: 6px;
  }

  .favorites-pager a,
  .favorites-pager span {
    min-width: 30px;
    height: 30px;
    padding: 0 9px;
  }
}

/* 详情页收藏/点赞按钮优化：统一为小圆形图标 + 数字 */
.reaction-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 23px;
}

.reaction-row .favorite-inline-form {
  margin: 0;
  display: flex;
}

.reaction-row .reaction-btn,
.reaction-row .favorite-action-btn,
.reaction-row .like-action-btn {
  width: 48px;
  min-width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  grid-template-columns: none;
  grid-template-rows: none;
  column-gap: 0;
  padding: 0;
  border: 1px solid #edf0f4;
  border-radius: 50%;
  background: #fff;
  color: #b8c0cc;
  box-shadow: 0 2px 7px rgba(15, 23, 42, .03);
  font-size: 0;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: border-color .18s ease, color .18s ease, background .18s ease, transform .18s ease;
}

.reaction-row .reaction-content {
  display: flex;
  width: auto;
  height: auto;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  margin: 0 !important;
  font-size: 0;
  line-height: 1;
  text-align: center;
  pointer-events: none;
}

.reaction-row .reaction-btn:hover,
.reaction-row .favorite-action-btn:hover,
.reaction-row .like-action-btn:hover {
  border-color: #e2e7ef;
  color: #8f98a6;
  transform: translateY(-1px);
}

.reaction-row .reaction-icon {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 !important;
  color: currentColor;
  font-size: 20px;
  line-height: 1;
}

.reaction-row .reaction-star {
  font-size: 21px;
  transform: none;
}

.reaction-row .reaction-like-icon svg {
  width: 19px;
  height: 19px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.reaction-row .reaction-label {
  display: none !important;
}

.reaction-row .reaction-btn small,
.reaction-row .favorite-action-btn small,
.reaction-row .like-action-btn small {
  display: block;
  margin: 0;
  color: #aeb6c2;
  font-size: 10px;
  font-weight: 500;
  line-height: 1;
}

.reaction-row .favorite-action-btn.is-active {
  border-color: rgba(var(--brand-primary-rgb), .22);
  background: #fff;
  color: var(--pink);
  box-shadow: 0 2px 8px rgba(var(--brand-primary-rgb), .08);
}

.reaction-row .favorite-action-btn.is-active .reaction-icon,
.reaction-row .favorite-action-btn.is-active small {
  color: var(--pink);
}

@media (max-width: 720px) {
  .reaction-row {
    gap: 10px;
    margin-top: 20px;
  }

  .reaction-row .reaction-btn,
  .reaction-row .favorite-action-btn,
  .reaction-row .like-action-btn {
    width: 45px;
    min-width: 45px;
    height: 45px;
  }

  .reaction-row .reaction-icon {
    width: 18px;
    height: 18px;
    font-size: 18px;
  }

  .reaction-row .reaction-like-icon svg {
    width: 18px;
    height: 18px;
  }
}

/* Dashboard skin: admin center and user center share the same backend frame. */
body.dashboard-body {
  min-height: 100vh;
  min-height: 100dvh;
  background: #eef3f6;
  overflow: hidden;
  overscroll-behavior-y: none;
}

body.dashboard-body .site-footer,
body.dashboard-body .float-tools,
body.dashboard-body .mobile-tabbar,
body.dashboard-body .drawer {
  display: none !important;
}

.fyg-dashboard-shell {
  position: relative !important;
  display: grid !important;
  grid-template-columns: 250px minmax(0, 1fr) !important;
  gap: 0 !important;
  align-items: stretch !important;
  width: 100vw !important;
  max-width: 100vw !important;
  height: 100vh !important;
  height: 100dvh !important;
  min-height: 100vh !important;
  min-height: 100dvh !important;
  max-height: 100vh !important;
  max-height: 100dvh !important;
  margin: 0 !important;
  overflow: hidden !important;
  overscroll-behavior: none !important;
  border-radius: 0 !important;
  background: #eef3f6 !important;
}

.fyg-dashboard-shell.is-sidebar-collapsed {
  grid-template-columns: 0 minmax(0, 1fr) !important;
}

.fyg-dashboard-shell.is-sidebar-collapsed .fyg-dashboard-sidebar {
  width: 0 !important;
  min-width: 0 !important;
  max-width: 0 !important;
  visibility: hidden !important;
  overflow: hidden !important;
}

.fyg-dashboard-sidebar-restore {
  position: fixed;
  top: 50%;
  left: 10px;
  z-index: 10020;
  display: none;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 80px;
  border: 0;
  border-radius: 3px;
  background: transparent;
  cursor: pointer;
  transform: translateY(-50%);
}

.fyg-dashboard-sidebar-collapse,
.fyg-dashboard-sidebar-restore {
  display: none !important;
  pointer-events: none !important;
}

.fyg-dashboard-sidebar-restore::before {
  width: 0;
  height: 0;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 12px solid var(--pink);
  content: "";
}

.fyg-dashboard-shell.is-sidebar-collapsed .fyg-dashboard-sidebar-restore:not([hidden]) {
  display: inline-flex;
}

.fyg-dashboard-sidebar-restore:hover::before {
  border-left-color: var(--brand-primary-bright);
}

.fyg-dashboard-sidebar-collapse {
  position: fixed;
  top: 50%;
  left: calc(250px - 12px);
  z-index: 10020;
  display: none;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 80px;
  border: 0;
  border-radius: 3px;
  background: transparent;
  cursor: pointer;
  transform: translateY(-50%);
}

.fyg-dashboard-sidebar-collapse::before {
  width: 0;
  height: 0;
  border-top: 10px solid transparent;
  border-right: 12px solid var(--pink);
  border-bottom: 10px solid transparent;
  content: "";
}

.fyg-dashboard-sidebar-collapse:hover::before {
  border-right-color: var(--brand-primary-bright);
}

.fyg-dashboard-shell.is-sidebar-collapsed .fyg-dashboard-sidebar-collapse {
  display: none !important;
}

.fyg-dashboard-workspace {
  min-width: 0;
  height: 100vh;
  display: grid;
  grid-template-rows: 50px minmax(0, 1fr);
  overflow: hidden;
}

.fyg-dashboard-topbar {
  height: 50px;
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 0 18px;
  background: #fff;
  border-bottom: 1px solid #dbe3e8;
  box-shadow: 0 1px 4px rgba(15, 23, 42, .08);
  color: #23313a;
  box-sizing: border-box;
}

.fyg-dashboard-menu-btn {
  width: 22px;
  height: 22px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #23313a;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.fyg-dashboard-menu-btn:hover,
.fyg-dashboard-menu-btn.is-active {
  color: var(--pink);
}

.fyg-dashboard-toplinks {
  display: flex;
  align-items: stretch;
  height: 100%;
  gap: 0;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
}

.fyg-dashboard-toplinks::-webkit-scrollbar {
  display: none;
}

.fyg-dashboard-toplinks a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
  min-width: 100px;
  padding: 0 18px;
  color: #23313a;
  text-decoration: none;
  font-size: 14px;
  white-space: nowrap;
}

.fyg-dashboard-toplinks a:hover,
.fyg-dashboard-toplinks a.is-active {
  background: #f5f7fa;
}

.fyg-dashboard-toplinks span {
  width: 12px;
  height: 12px;
  border: 2px solid #30404b;
  border-radius: 999px;
  box-sizing: border-box;
}

.fyg-admin-tabs,
.member-admin-tabs,
.submission-tabs,
.fyg-ticket-tabs {
  display: flex !important;
  align-items: stretch !important;
  flex-wrap: wrap !important;
  gap: 6px !important;
  min-height: 56px !important;
  margin: 0 0 16px !important;
  padding: 15px 16px 0 !important;
  background: #e6eef2 !important;
  border-radius: 0 !important;
  box-sizing: border-box !important;
}

.fyg-admin-tabs a,
.member-admin-tabs a,
.submission-tabs a,
.fyg-ticket-tabs a {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 58px !important;
  min-height: 41px !important;
  height: 41px !important;
  padding: 0 17px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: #d4e0e7 !important;
  color: #8ba0ad !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  line-height: 1 !important;
  text-decoration: none !important;
  box-shadow: none !important;
  box-sizing: border-box !important;
}

.fyg-admin-tabs-with-search .fyg-admin-inline-search,
.fyg-admin-tabs-with-search .fyg-ticket-filter {
  align-self: stretch !important;
  height: 41px !important;
  min-height: 41px !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

.fyg-admin-tabs-with-search .fyg-admin-inline-search input[type="text"],
.fyg-admin-tabs-with-search .fyg-admin-inline-search input[type="search"],
.fyg-admin-tabs-with-search .fyg-admin-inline-search button,
.fyg-admin-tabs-with-search .fyg-admin-inline-search a,
.fyg-admin-tabs-with-search .fyg-ticket-filter input[type="text"],
.fyg-admin-tabs-with-search .fyg-ticket-filter input[type="search"],
.fyg-admin-tabs-with-search .fyg-ticket-filter button,
.fyg-admin-tabs-with-search .fyg-ticket-filter a {
  height: 41px !important;
  min-height: 41px !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  box-sizing: border-box !important;
}

.fyg-admin-tabs a:hover,
.member-admin-tabs a:hover,
.submission-tabs a:hover,
.fyg-ticket-tabs a:hover {
  background: #fff !important;
  color: #516673 !important;
}

.fyg-admin-tabs a.is-active,
.member-admin-tabs a.is-active,
.submission-tabs a.is-active,
.fyg-ticket-tabs a.is-active {
  background: #fff !important;
  color: #526775 !important;
  font-weight: 600 !important;
}

.fyg-dashboard-topfill {
  flex: 1 1 auto;
}

.fyg-dashboard-fullscreen,
.fyg-dashboard-gear {
  color: #5e6a72;
  text-decoration: none;
  font-size: 18px;
  line-height: 1;
}

.fyg-dashboard-mini-avatar {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 50% 34%, #fff 0 20%, transparent 21%),
    radial-gradient(circle at 50% 86%, #fff 0 35%, transparent 36%),
    #cfd4d8;
  background-position: center;
  background-size: cover;
}

.fyg-dashboard-mini-avatar.has-custom-avatar {
  background-color: #cfd4d8 !important;
}

.fyg-dashboard-user-name {
  color: #48535a;
  font-size: 13px;
  font-weight: 500;
}

.fyg-dashboard-content {
  min-width: 0;
  height: 100%;
  overflow: auto;
  padding: 15px;
  background: #eef3f6;
  box-sizing: border-box;
}

.fyg-dashboard-content > section,
.fyg-dashboard-content > .records-panel,
.fyg-dashboard-content > .recharge-panel,
.fyg-dashboard-content > .vip-panel,
.fyg-dashboard-content > .agency-panel,
.fyg-dashboard-content > .profile-panel,
.fyg-dashboard-content > .withdraw-panel,
.fyg-dashboard-content > .tickets-panel {
  min-width: 0;
  width: 100%;
  min-height: calc(100vh - 80px);
  max-height: none;
  overflow: auto;
  border-radius: 3px;
  background: #fff;
  box-sizing: border-box;
}

.fyg-dashboard-sidebar {
  width: 250px !important;
  min-width: 250px !important;
  height: 100vh !important;
  height: 100dvh !important;
  min-height: 100vh !important;
  min-height: 100dvh !important;
  max-height: 100vh !important;
  max-height: 100dvh !important;
  min-height: 0 !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
  touch-action: pan-y;
  background: #1d2b30 !important;
  color: #d8e7ec !important;
}

.fyg-dashboard-shell .account-sidebar .account-profile {
  align-content: center;
  row-gap: 6px;
}

.fyg-dashboard-shell .account-avatar-form {
  align-self: center;
}

.fyg-dashboard-shell .account-profile strong,
.fyg-dashboard-shell .account-online {
  grid-column: 2;
  justify-self: start;
  text-align: left;
}

.fyg-dashboard-sidebar::before {
  content: attr(data-language-label);
  display: flex;
  align-items: center;
  justify-content: center;
  height: 50px;
  color: #e9f7fb;
  border-bottom: 0;
  font-size: 20px;
}

.fyg-dashboard-sidebar::-webkit-scrollbar,
.fyg-dashboard-content::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.fyg-dashboard-sidebar::-webkit-scrollbar-thumb,
.fyg-dashboard-content::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, .22);
}

.fyg-dashboard-content::-webkit-scrollbar-thumb {
  background: #c7d0d8;
}

.fyg-dashboard-shell .recharge-panel,
.fyg-dashboard-shell .vip-panel,
.fyg-dashboard-shell .profile-panel,
.fyg-dashboard-shell .withdraw-panel,
.fyg-dashboard-shell .tickets-panel,
.fyg-dashboard-shell .records-panel {
  padding: 24px;
}

.fyg-dashboard-shell .account-vip-panel,
.fyg-dashboard-shell .member-admin-panel {
  padding: 0;
}

@media (max-width: 900px) {
  body.dashboard-body {
    overflow: hidden;
  }

  .fyg-dashboard-shell {
    --dashboard-mobile-sidebar-width: min(250px, 76vw);
    grid-template-columns: 0 minmax(0, 1fr) !important;
    height: 100vh !important;
    height: 100dvh !important;
    min-height: 100vh !important;
    min-height: 100dvh !important;
    max-height: 100vh !important;
    max-height: 100dvh !important;
    overflow: hidden !important;
    overscroll-behavior: none !important;
    touch-action: pan-y;
  }

  .fyg-dashboard-shell.is-sidebar-collapsed {
    grid-template-columns: 0 minmax(0, 1fr) !important;
  }

  .fyg-dashboard-shell.is-sidebar-mobile-open {
    grid-template-columns: var(--dashboard-mobile-sidebar-width) minmax(0, 1fr) !important;
  }

  .fyg-dashboard-shell .fyg-dashboard-sidebar,
  .fyg-dashboard-shell.is-sidebar-collapsed .fyg-dashboard-sidebar {
    display: flex !important;
    width: 0 !important;
    min-width: 0 !important;
    max-width: 0 !important;
    visibility: hidden !important;
    overflow: hidden !important;
  }

  .fyg-dashboard-shell.is-sidebar-mobile-open .fyg-dashboard-sidebar {
    width: var(--dashboard-mobile-sidebar-width) !important;
    min-width: var(--dashboard-mobile-sidebar-width) !important;
    max-width: var(--dashboard-mobile-sidebar-width) !important;
    visibility: visible !important;
    height: calc(100vh - var(--member-topbar-height, 52px)) !important;
    height: calc(var(--dashboard-viewport-height, 100dvh) - var(--member-topbar-height, 52px)) !important;
    min-height: 0 !important;
    max-height: calc(var(--dashboard-viewport-height, 100dvh) - var(--member-topbar-height, 52px)) !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    box-sizing: border-box !important;
    scroll-padding-bottom: calc(28px + env(safe-area-inset-bottom, 0px));
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: contain;
    touch-action: pan-y;
  }

  .fyg-dashboard-sidebar-collapse {
    left: calc(var(--dashboard-mobile-sidebar-width) - 12px);
    display: none !important;
    pointer-events: none !important;
  }

  .fyg-dashboard-shell .account-sidebar .account-menu {
    grid-template-columns: 1fr !important;
    flex: 0 0 auto !important;
    padding-bottom: calc(28px + env(safe-area-inset-bottom, 0px)) !important;
  }

  .fyg-dashboard-shell .fyg-admin-tabs,
  .fyg-dashboard-shell .member-admin-tabs,
  .fyg-dashboard-shell .submission-tabs,
  .fyg-dashboard-shell .fyg-ticket-tabs {
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scrollbar-width: none !important;
  }

  .fyg-dashboard-shell .fyg-admin-tabs::-webkit-scrollbar,
  .fyg-dashboard-shell .member-admin-tabs::-webkit-scrollbar,
  .fyg-dashboard-shell .submission-tabs::-webkit-scrollbar,
  .fyg-dashboard-shell .fyg-ticket-tabs::-webkit-scrollbar {
    display: none !important;
  }

  .fyg-dashboard-shell .fyg-admin-tabs a,
  .fyg-dashboard-shell .member-admin-tabs a,
  .fyg-dashboard-shell .submission-tabs a,
  .fyg-dashboard-shell .fyg-ticket-tabs a {
    flex: 0 0 auto !important;
    white-space: nowrap !important;
  }

  .fyg-dashboard-workspace {
    height: 100vh;
    height: 100dvh;
    min-height: 0;
    overflow: hidden;
    overscroll-behavior: none;
  }

  .fyg-dashboard-topbar {
    overflow-x: auto;
  }

  .fyg-dashboard-content {
    height: calc(100vh - 50px);
    height: calc(100dvh - 50px);
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: contain;
  }
}

.fyg-dashboard-shell.is-pull-refresh-active .fyg-dashboard-sidebar a,
.fyg-dashboard-shell.is-pull-refresh-active .fyg-dashboard-sidebar button {
  pointer-events: none !important;
}

.fyg-dashboard-sidebar-collapse,
.fyg-dashboard-sidebar-restore,
.fyg-dashboard-shell.is-sidebar-collapsed .fyg-dashboard-sidebar-restore:not([hidden]) {
  display: none !important;
  pointer-events: none !important;
}

/* Dashboard header overlay: keep the right-side top header above scrolling page content. */
.fyg-dashboard-workspace {
  position: relative !important;
}

.fyg-dashboard-topbar {
  position: sticky !important;
  top: 0 !important;
  z-index: 9000 !important;
  background: #fff !important;
  isolation: isolate !important;
}

.fyg-dashboard-content {
  position: relative !important;
  z-index: 1 !important;
}
/* Backend top-right account entry: show avatar only for every logged-in backend user. */
.fyg-dashboard-home-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 50px;
  flex: 0 0 auto;
  margin-left: 8px;
  color: var(--pink);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.fyg-dashboard-home-link:hover {
  color: var(--pink);
  text-decoration: none;
}

.fyg-dashboard-avatar-link {
  position: relative;
  display: inline-block !important;
  flex: 0 0 24px !important;
  text-decoration: none !important;
}

@media (min-width: 681px) {
  .fyg-dashboard-mini-avatar {
    width: 42px;
    height: 42px;
  }

  .fyg-dashboard-avatar-link {
    flex: 0 0 42px !important;
  }
}

.fyg-dashboard-topbar {
  overflow: visible !important;
}

.fyg-dashboard-user-popover {
  width: 42px !important;
  height: 50px !important;
  margin-right: 14px !important;
  z-index: 10030 !important;
}

.fyg-dashboard-user-popover .fyg-dashboard-avatar-link {
  margin: 0 !important;
}

.fyg-dashboard-user-popover .fyg-dashboard-user-card {
  top: 49px !important;
  right: -10px !important;
  z-index: 10040 !important;
}

.fyg-dashboard-user-popover .fyg-dashboard-user-card::before {
  right: 21px !important;
}

/* Unified backend surface: align user-center pages with the "My Submissions" layout language. */
.fyg-dashboard-shell {
  --dash-card-radius: 8px;
  --dash-card-border: #edf1f6;
  --dash-muted-bg: #fafafa;
  --dash-tab-bg: #f5f6fa;
  --dash-tab-active-bg: var(--brand-primary-soft-strong);
  --dash-title: #071933;
  --dash-text: #263244;
  --dash-muted: #7d8793;
}

.fyg-dashboard-content {
  padding: 16px !important;
  background: #eef3f6 !important;
}

.fyg-dashboard-content > section,
.fyg-dashboard-content > .records-panel,
.fyg-dashboard-content > .recharge-panel,
.fyg-dashboard-content > .vip-panel,
.fyg-dashboard-content > .agency-panel,
.fyg-dashboard-content > .profile-panel,
.fyg-dashboard-content > .withdraw-panel,
.fyg-dashboard-content > .tickets-panel,
.fyg-dashboard-content > .ticket-panel,
.fyg-dashboard-content > .favorites-panel {
  border: 1px solid var(--dash-card-border) !important;
  border-radius: var(--dash-card-radius) !important;
  background: #fff !important;
  box-shadow: none !important;
}

.fyg-dashboard-shell .records-panel-table,
.fyg-dashboard-shell .favorites-panel,
.fyg-dashboard-shell .withdraw-panel,
.fyg-dashboard-shell .agency-panel,
.fyg-dashboard-shell .profile-panel,
.fyg-dashboard-shell .tickets-panel,
.fyg-dashboard-shell .ticket-panel,
.fyg-dashboard-shell .recharge-panel {
  padding: 28px 32px 34px !important;
}

.fyg-dashboard-shell .records-title-row,
.fyg-dashboard-shell .favorites-title-row,
.fyg-dashboard-shell .user-comments-head,
.fyg-dashboard-shell .submission-comments-header,
.fyg-dashboard-shell .member-admin-head {
  display: flex !important;
  align-items: baseline !important;
  justify-content: flex-start !important;
  gap: 8px !important;
  margin: 0 0 18px !important;
}

.fyg-dashboard-shell .records-title-row h1,
.fyg-dashboard-shell .favorites-title-row h1,
.fyg-dashboard-shell .user-comments-head h1,
.fyg-dashboard-shell .submission-comments-header h1,
.fyg-dashboard-shell .member-admin-head h1,
.fyg-dashboard-shell .withdraw-page-title {
  margin: 0 !important;
  color: var(--dash-title) !important;
  font-size: 24px !important;
  line-height: 1.25 !important;
  font-weight: 800 !important;
  letter-spacing: 0 !important;
  white-space: nowrap !important;
}

.fyg-dashboard-shell .records-title-row span,
.fyg-dashboard-shell .favorites-title-row span,
.fyg-dashboard-shell .user-comments-head span {
  color: #8792a2 !important;
  font-size: 13px !important;
  line-height: 1.4 !important;
}

.fyg-dashboard-shell .submission-tabs,
.fyg-dashboard-shell .fyg-admin-tabs,
.fyg-dashboard-shell .member-admin-tabs,
.fyg-dashboard-shell .fyg-ticket-tabs,
.fyg-dashboard-shell .user-comments-tabs {
  display: flex !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 10px !important;
  min-height: 0 !important;
  margin: 0 0 18px !important;
  padding: 0 !important;
  overflow: visible !important;
  background: transparent !important;
  border-radius: 0 !important;
}

.fyg-dashboard-shell .submission-tabs a,
.fyg-dashboard-shell .submission-tabs button,
.fyg-dashboard-shell .fyg-admin-tabs a,
.fyg-dashboard-shell .member-admin-tabs a,
.fyg-dashboard-shell .fyg-ticket-tabs a,
.fyg-dashboard-shell .user-comments-tabs a {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 0 !important;
  width: auto !important;
  height: 32px !important;
  min-height: 32px !important;
  padding: 0 14px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: var(--dash-tab-bg) !important;
  color: #5e6875 !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  box-shadow: none !important;
}

.fyg-dashboard-shell .submission-tabs a.is-active,
.fyg-dashboard-shell .submission-tabs button.is-active,
.fyg-dashboard-shell .fyg-admin-tabs a.is-active,
.fyg-dashboard-shell .member-admin-tabs a.is-active,
.fyg-dashboard-shell .fyg-ticket-tabs a.is-active,
.fyg-dashboard-shell .user-comments-tabs a.is-active {
  background: var(--dash-tab-active-bg) !important;
  color: var(--pink) !important;
}

.fyg-dashboard-shell .fyg-admin-tabs-with-search .fyg-admin-inline-search,
.fyg-dashboard-shell .fyg-admin-tabs-with-search .fyg-ticket-filter,
.fyg-dashboard-shell .fyg-admin-tabs-with-search .fyg-admin-filter,
.fyg-dashboard-shell .fyg-ticket-tabs.fyg-admin-tabs-with-search > .fyg-admin-inline-search,
.fyg-dashboard-shell .fyg-ticket-tabs.fyg-admin-tabs-with-search > .fyg-ticket-filter {
  align-self: center !important;
  display: inline-flex !important;
  align-items: stretch !important;
  height: 32px !important;
  min-height: 32px !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  box-sizing: border-box !important;
}

.fyg-dashboard-shell .fyg-admin-tabs-with-search .fyg-admin-inline-search input[type="text"],
.fyg-dashboard-shell .fyg-admin-tabs-with-search .fyg-admin-inline-search input[type="search"],
.fyg-dashboard-shell .fyg-admin-tabs-with-search .fyg-admin-inline-search button,
.fyg-dashboard-shell .fyg-admin-tabs-with-search .fyg-admin-inline-search a,
.fyg-dashboard-shell .fyg-admin-tabs-with-search .fyg-ticket-filter input[type="text"],
.fyg-dashboard-shell .fyg-admin-tabs-with-search .fyg-ticket-filter input[type="search"],
.fyg-dashboard-shell .fyg-admin-tabs-with-search .fyg-ticket-filter button,
.fyg-dashboard-shell .fyg-admin-tabs-with-search .fyg-ticket-filter a,
.fyg-dashboard-shell .fyg-admin-tabs-with-search .fyg-admin-filter input[type="text"],
.fyg-dashboard-shell .fyg-admin-tabs-with-search .fyg-admin-filter input[type="search"],
.fyg-dashboard-shell .fyg-admin-tabs-with-search .fyg-admin-filter button,
.fyg-dashboard-shell .fyg-admin-tabs-with-search .fyg-admin-filter a {
  height: 32px !important;
  min-height: 32px !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  border-radius: 6px !important;
  box-sizing: border-box !important;
}

.fyg-dashboard-shell .submissions-note,
.fyg-dashboard-shell .withdraw-tip,
.fyg-dashboard-shell .submission-comments-post-card,
.fyg-dashboard-shell .agency-link-card {
  border: 1px solid #eef1f5 !important;
  border-radius: 8px !important;
  background: var(--dash-muted-bg) !important;
  color: var(--dash-muted) !important;
}

.fyg-dashboard-shell .records-table,
.fyg-dashboard-shell .agency-table,
.fyg-dashboard-shell .user-comments-table,
.fyg-dashboard-shell .member-ticket-table {
  color: var(--dash-text) !important;
}

.fyg-dashboard-shell .records-table th,
.fyg-dashboard-shell .records-table td,
.fyg-dashboard-shell .agency-table th,
.fyg-dashboard-shell .agency-table td,
.fyg-dashboard-shell .user-comments-table th,
.fyg-dashboard-shell .user-comments-table td,
.fyg-dashboard-shell .member-ticket-table th,
.fyg-dashboard-shell .member-ticket-table td {
  border-bottom: 1px solid #edf0f5 !important;
  color: var(--dash-text) !important;
  font-size: 13px !important;
  line-height: 1.55 !important;
  vertical-align: middle !important;
}

.fyg-dashboard-shell .records-table th,
.fyg-dashboard-shell .agency-table th,
.fyg-dashboard-shell .user-comments-table th,
.fyg-dashboard-shell .member-ticket-table th {
  background: #fafbfe !important;
  color: #667085 !important;
  font-weight: 700 !important;
}

.fyg-dashboard-shell .records-empty,
.fyg-dashboard-shell .favorites-empty,
.fyg-dashboard-shell .user-comments-empty,
.fyg-dashboard-shell .member-ticket-empty {
  color: #98a2b3 !important;
}

/* Final member backend consistency pass: one visual language for every right-side page. */
.fyg-dashboard-shell {
  --dash-panel-padding-x: 32px;
  --dash-panel-padding-y: 28px;
  --dash-control-height: 36px;
  --dash-control-radius: 6px;
}

.fyg-dashboard-shell .fyg-dashboard-content > section,
.fyg-dashboard-shell .fyg-dashboard-content > .records-panel,
.fyg-dashboard-shell .fyg-dashboard-content > .recharge-panel,
.fyg-dashboard-shell .fyg-dashboard-content > .vip-panel,
.fyg-dashboard-shell .fyg-dashboard-content > .account-vip-panel,
.fyg-dashboard-shell .fyg-dashboard-content > .agency-panel,
.fyg-dashboard-shell .fyg-dashboard-content > .profile-panel,
.fyg-dashboard-shell .fyg-dashboard-content > .withdraw-panel,
.fyg-dashboard-shell .fyg-dashboard-content > .tickets-panel,
.fyg-dashboard-shell .fyg-dashboard-content > .ticket-panel,
.fyg-dashboard-shell .fyg-dashboard-content > .favorites-panel,
.fyg-dashboard-shell .fyg-dashboard-content > .member-admin-panel,
.fyg-dashboard-shell .fyg-dashboard-content > .user-comments-panel,
.fyg-dashboard-shell .fyg-dashboard-content > .submission-comments-panel {
  width: 100% !important;
  min-width: 0 !important;
  min-height: calc(100vh - 82px) !important;
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
  padding: var(--dash-panel-padding-y) var(--dash-panel-padding-x) 34px !important;
  border: 1px solid var(--dash-card-border) !important;
  border-radius: var(--dash-card-radius) !important;
  background: #fff !important;
  box-shadow: none !important;
  box-sizing: border-box !important;
}

.fyg-dashboard-shell .fyg-dashboard-content > section > h1,
.fyg-dashboard-shell .fyg-dashboard-content > section > h2,
.fyg-dashboard-shell .records-title-row h1,
.fyg-dashboard-shell .favorites-title-row h1,
.fyg-dashboard-shell .user-comments-head h1,
.fyg-dashboard-shell .submission-comments-header h1,
.fyg-dashboard-shell .member-admin-head h1,
.fyg-dashboard-shell .ticket-form h1,
.fyg-dashboard-shell .recharge-form h1,
.fyg-dashboard-shell .withdraw-page-title {
  margin: 0 0 18px !important;
  color: var(--dash-title) !important;
  font-size: 24px !important;
  font-weight: 800 !important;
  line-height: 1.25 !important;
  letter-spacing: 0 !important;
  text-align: left !important;
}

.fyg-dashboard-shell .records-title-row,
.fyg-dashboard-shell .favorites-title-row,
.fyg-dashboard-shell .user-comments-head,
.fyg-dashboard-shell .submission-comments-header,
.fyg-dashboard-shell .member-admin-head {
  min-height: 30px !important;
  margin: 0 0 18px !important;
}

.fyg-dashboard-shell .records-title-row span,
.fyg-dashboard-shell .favorites-title-row span,
.fyg-dashboard-shell .user-comments-head span,
.fyg-dashboard-shell .submission-comments-header span,
.fyg-dashboard-shell .member-admin-head p {
  margin: 0 !important;
  color: #8792a2 !important;
  font-size: 13px !important;
  line-height: 1.6 !important;
}

.fyg-dashboard-shell .submission-tabs,
.fyg-dashboard-shell .fyg-admin-tabs,
.fyg-dashboard-shell .member-admin-tabs,
.fyg-dashboard-shell .fyg-ticket-tabs,
.fyg-dashboard-shell .user-comments-tabs,
.fyg-dashboard-shell .member-admin-filter,
.fyg-dashboard-shell .fyg-admin-filter,
.fyg-dashboard-shell .fyg-ticket-filter,
.fyg-dashboard-shell .fyg-admin-inline-search {
  margin-bottom: 18px !important;
}

.fyg-dashboard-shell input[type="text"],
.fyg-dashboard-shell input[type="search"],
.fyg-dashboard-shell input[type="email"],
.fyg-dashboard-shell input[type="password"],
.fyg-dashboard-shell input[type="number"],
.fyg-dashboard-shell input[type="url"],
.fyg-dashboard-shell select,
.fyg-dashboard-shell textarea {
  border: 1px solid #d8dee8 !important;
  border-radius: var(--dash-control-radius) !important;
  background: #fff !important;
  color: var(--dash-text) !important;
  font-size: 14px !important;
  line-height: 1.45 !important;
  box-sizing: border-box !important;
  outline: none !important;
}

.fyg-dashboard-shell input[type="text"],
.fyg-dashboard-shell input[type="search"],
.fyg-dashboard-shell input[type="email"],
.fyg-dashboard-shell input[type="password"],
.fyg-dashboard-shell input[type="number"],
.fyg-dashboard-shell input[type="url"],
.fyg-dashboard-shell select {
  min-height: var(--dash-control-height) !important;
  height: var(--dash-control-height) !important;
  padding: 0 12px !important;
}

.fyg-dashboard-shell textarea {
  min-height: 92px !important;
  padding: 10px 12px !important;
  resize: vertical !important;
}

.fyg-dashboard-shell input:focus,
.fyg-dashboard-shell select:focus,
.fyg-dashboard-shell textarea:focus {
  border-color: var(--pink) !important;
  box-shadow: 0 0 0 3px rgba(var(--brand-primary-rgb), 0.12) !important;
}

.fyg-dashboard-shell .profile-line,
.fyg-dashboard-shell .withdraw-plain-form label {
  display: grid !important;
  grid-template-columns: 120px minmax(0, 1fr) !important;
  align-items: center !important;
  gap: 12px !important;
  max-width: 760px !important;
  margin: 0 0 16px !important;
}

.fyg-dashboard-shell .profile-line > span,
.fyg-dashboard-shell .withdraw-plain-form label > span {
  color: var(--dash-text) !important;
  font-size: 14px !important;
  line-height: 1.4 !important;
  text-align: right !important;
  white-space: nowrap !important;
}

.fyg-dashboard-shell .profile-line p,
.fyg-dashboard-shell .withdraw-plain-form small,
.fyg-dashboard-shell .form-result,
.fyg-dashboard-shell .profile-result {
  color: #667085 !important;
  font-size: 13px !important;
  line-height: 1.6 !important;
}

.fyg-dashboard-shell .profile-line > button,
.fyg-dashboard-shell .profile-form > .profile-line > button:not(.code-btn),
.fyg-dashboard-shell .withdraw-plain-actions button,
.fyg-dashboard-shell .recharge-form button,
.fyg-dashboard-shell .ticket-form button[type="submit"],
.fyg-dashboard-shell .member-admin-actions a,
.fyg-dashboard-shell .member-admin-actions button,
.fyg-dashboard-shell .member-admin-create,
.fyg-dashboard-shell .member-admin-filter button,
.fyg-dashboard-shell .fyg-admin-filter button,
.fyg-dashboard-shell .fyg-ticket-filter button,
.fyg-dashboard-shell .fyg-admin-inline-search button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: var(--dash-control-height) !important;
  border-radius: var(--dash-control-radius) !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  text-decoration: none !important;
  box-sizing: border-box !important;
}

.fyg-dashboard-shell .records-table,
.fyg-dashboard-shell .agency-table,
.fyg-dashboard-shell .user-comments-table,
.fyg-dashboard-shell .member-ticket-table,
.fyg-dashboard-shell .member-admin-table {
  width: 100% !important;
  border-collapse: collapse !important;
  color: var(--dash-text) !important;
  font-size: 13px !important;
}

.fyg-dashboard-shell .records-table th,
.fyg-dashboard-shell .agency-table th,
.fyg-dashboard-shell .user-comments-table th,
.fyg-dashboard-shell .member-ticket-table th,
.fyg-dashboard-shell .member-admin-table th,
.fyg-dashboard-shell .records-table td,
.fyg-dashboard-shell .agency-table td,
.fyg-dashboard-shell .user-comments-table td,
.fyg-dashboard-shell .member-ticket-table td,
.fyg-dashboard-shell .member-admin-table td {
  padding: 12px 14px !important;
  border-bottom: 1px solid #edf0f5 !important;
  color: var(--dash-text) !important;
  font-size: 13px !important;
  line-height: 1.55 !important;
  vertical-align: middle !important;
}

.fyg-dashboard-shell .records-table th,
.fyg-dashboard-shell .agency-table th,
.fyg-dashboard-shell .user-comments-table th,
.fyg-dashboard-shell .member-ticket-table th,
.fyg-dashboard-shell .member-admin-table th {
  background: #fafbfe !important;
  color: #667085 !important;
  font-weight: 800 !important;
  white-space: nowrap !important;
}

.fyg-dashboard-shell .member-admin-table-wrap,
.fyg-dashboard-shell .records-table-wrap,
.fyg-dashboard-shell .agency-table-wrap,
.fyg-dashboard-shell .user-comments-table-wrap,
.fyg-dashboard-shell .tickets-table-wrap {
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: auto !important;
  border-radius: 8px !important;
  background: #fff !important;
}

.fyg-dashboard-shell .wallet-cards article,
.fyg-dashboard-shell .agency-summary article,
.fyg-dashboard-shell .agency-stat-card,
.fyg-dashboard-shell .agency-link-card,
.fyg-dashboard-shell .favorite-item,
.fyg-dashboard-shell .favorites-item,
.fyg-dashboard-shell .submission-comments-post-card,
.fyg-dashboard-shell .submissions-note,
.fyg-dashboard-shell .withdraw-tip,
.fyg-dashboard-shell .member-admin-alert {
  border: 1px solid #eef1f5 !important;
  border-radius: 8px !important;
  background: var(--dash-muted-bg) !important;
  box-shadow: none !important;
}

@media (max-width: 900px) {
  .fyg-dashboard-shell {
    --dash-panel-padding-x: 14px;
    --dash-panel-padding-y: 22px;
    --dash-control-height: 34px;
  }

  .fyg-dashboard-shell .fyg-dashboard-content {
    padding: 12px !important;
  }

  .fyg-dashboard-shell .fyg-dashboard-content > section,
  .fyg-dashboard-shell .fyg-dashboard-content > .records-panel,
  .fyg-dashboard-shell .fyg-dashboard-content > .recharge-panel,
  .fyg-dashboard-shell .fyg-dashboard-content > .vip-panel,
  .fyg-dashboard-shell .fyg-dashboard-content > .account-vip-panel,
  .fyg-dashboard-shell .fyg-dashboard-content > .agency-panel,
  .fyg-dashboard-shell .fyg-dashboard-content > .profile-panel,
  .fyg-dashboard-shell .fyg-dashboard-content > .withdraw-panel,
  .fyg-dashboard-shell .fyg-dashboard-content > .tickets-panel,
  .fyg-dashboard-shell .fyg-dashboard-content > .ticket-panel,
  .fyg-dashboard-shell .fyg-dashboard-content > .favorites-panel,
  .fyg-dashboard-shell .fyg-dashboard-content > .member-admin-panel,
  .fyg-dashboard-shell .fyg-dashboard-content > .user-comments-panel,
  .fyg-dashboard-shell .fyg-dashboard-content > .submission-comments-panel {
    min-height: calc(100dvh - 74px) !important;
    padding: var(--dash-panel-padding-y) var(--dash-panel-padding-x) 28px !important;
    border-radius: 6px !important;
  }

  .fyg-dashboard-shell .fyg-dashboard-content > section > h1,
  .fyg-dashboard-shell .fyg-dashboard-content > section > h2,
  .fyg-dashboard-shell .records-title-row h1,
  .fyg-dashboard-shell .favorites-title-row h1,
  .fyg-dashboard-shell .user-comments-head h1,
  .fyg-dashboard-shell .submission-comments-header h1,
  .fyg-dashboard-shell .member-admin-head h1,
  .fyg-dashboard-shell .ticket-form h1,
  .fyg-dashboard-shell .recharge-form h1,
  .fyg-dashboard-shell .withdraw-page-title {
    margin-bottom: 14px !important;
    font-size: 16px !important;
    line-height: 1.4 !important;
  }

  .fyg-dashboard-shell .profile-line,
  .fyg-dashboard-shell .withdraw-plain-form label {
    grid-template-columns: 86px minmax(0, 1fr) !important;
    gap: 10px !important;
    max-width: none !important;
    margin-bottom: 14px !important;
  }

  .fyg-dashboard-shell .profile-line > span,
  .fyg-dashboard-shell .withdraw-plain-form label > span {
    font-size: 13px !important;
  }

  .fyg-dashboard-shell .records-table th,
  .fyg-dashboard-shell .agency-table th,
  .fyg-dashboard-shell .user-comments-table th,
  .fyg-dashboard-shell .member-ticket-table th,
  .fyg-dashboard-shell .member-admin-table th,
  .fyg-dashboard-shell .records-table td,
  .fyg-dashboard-shell .agency-table td,
  .fyg-dashboard-shell .user-comments-table td,
  .fyg-dashboard-shell .member-ticket-table td,
  .fyg-dashboard-shell .member-admin-table td {
    padding: 10px 12px !important;
    font-size: 12px !important;
  }
}

/* Unified backend page title position for member/admin submenu pages. */
.fyg-dashboard-shell .records-title-row,
.fyg-dashboard-shell .favorites-title-row,
.fyg-dashboard-shell .user-comments-head,
.fyg-dashboard-shell .submission-comments-header,
.fyg-dashboard-shell .member-admin-head {
  display: flex !important;
  align-items: baseline !important;
  justify-content: flex-start !important;
  gap: 8px !important;
  min-height: 30px !important;
  margin: 0 0 18px !important;
  padding: 0 !important;
}

.fyg-dashboard-shell .records-title-row h1,
.fyg-dashboard-shell .favorites-title-row h1,
.fyg-dashboard-shell .user-comments-head h1,
.fyg-dashboard-shell .submission-comments-header h1,
.fyg-dashboard-shell .member-admin-head h1,
.fyg-dashboard-shell .fyg-dashboard-content > section > h1,
.fyg-dashboard-shell .withdraw-page-title {
  margin: 0 !important;
  color: var(--dash-title) !important;
  font-size: 24px !important;
  font-weight: 800 !important;
  line-height: 1.25 !important;
  letter-spacing: 0 !important;
  text-align: left !important;
  white-space: nowrap !important;
}

@media (max-width: 900px) {
  .fyg-dashboard-shell .records-title-row,
  .fyg-dashboard-shell .favorites-title-row,
  .fyg-dashboard-shell .user-comments-head,
  .fyg-dashboard-shell .submission-comments-header,
  .fyg-dashboard-shell .member-admin-head {
    min-height: 24px !important;
    margin-bottom: 14px !important;
  }

  .fyg-dashboard-shell .records-title-row h1,
  .fyg-dashboard-shell .favorites-title-row h1,
  .fyg-dashboard-shell .user-comments-head h1,
  .fyg-dashboard-shell .submission-comments-header h1,
  .fyg-dashboard-shell .member-admin-head h1,
  .fyg-dashboard-shell .fyg-dashboard-content > section > h1,
  .fyg-dashboard-shell .withdraw-page-title {
    font-size: 16px !important;
    line-height: 1.4 !important;
  }
}

/* Member pages use the same horizontal rhythm as the submission editor. */
.fyg-dashboard-shell .fyg-dashboard-content > .fyg-submission-layout-panel {
  padding-right: 34px !important;
  padding-left: 34px !important;
}

.fyg-dashboard-shell .fyg-dashboard-content .fyg-submission-layout-body {
  width: auto !important;
  max-width: none !important;
  min-width: 0 !important;
  margin-right: 34px !important;
  margin-left: 34px !important;
  box-sizing: border-box !important;
}

.fyg-dashboard-shell .fyg-submission-layout-scroll {
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch;
}

.fyg-dashboard-shell .fyg-submission-layout-body > .card-buy,
.fyg-dashboard-shell .fyg-submission-layout-body > .recharge-form {
  justify-content: start !important;
}

.fyg-dashboard-shell .fyg-submission-layout-body > .agency-rules,
.fyg-dashboard-shell .fyg-submission-layout-body > .withdraw-plain-form {
  margin-right: 0 !important;
  margin-left: 0 !important;
}

/* Compact two-column profile list, matching the supplied reference on PC and mobile. */
.fyg-dashboard-shell.profile-shell .profile-form.fyg-submission-layout-body {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  align-items: start !important;
  gap: 0 !important;
}

.fyg-dashboard-shell.profile-shell .profile-form.fyg-submission-layout-body .profile-fields {
  width: 100% !important;
  max-width: 484px !important;
  overflow: hidden !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: #fff !important;
  box-shadow: none !important;
  box-sizing: border-box !important;
}

.fyg-dashboard-shell.profile-shell .profile-form.fyg-submission-layout-body .profile-line {
  display: grid !important;
  grid-template-columns: 5em minmax(0, 380px) !important;
  align-items: start !important;
  column-gap: 10px !important;
  width: 100% !important;
  max-width: 484px !important;
  min-width: 0 !important;
  min-height: 25px !important;
  margin: 0 !important;
  font-size: 14px !important;
}

.fyg-dashboard-shell.profile-shell .profile-form.fyg-submission-layout-body .profile-fields > .profile-line {
  grid-template-columns: 5em minmax(0, 1fr) !important;
  align-items: center !important;
  max-width: none !important;
  min-height: 40px !important;
  padding: 6px 12px !important;
  border: 0 !important;
  background: #fff !important;
  box-sizing: border-box !important;
}

.fyg-dashboard-shell.profile-shell .profile-form.fyg-submission-layout-body .profile-fields > .profile-readonly {
  align-items: start !important;
  background: #fff !important;
}

.fyg-dashboard-shell.profile-shell .profile-form.fyg-submission-layout-body .profile-fields > .profile-readonly:hover {
  background: #fff !important;
}

.fyg-dashboard-shell.profile-shell .profile-form.fyg-submission-layout-body .profile-fields > .profile-line:last-child {
  border-bottom: 0 !important;
}

.fyg-dashboard-shell.profile-shell .profile-form.fyg-submission-layout-body .profile-key {
  position: relative !important;
  display: block !important;
  min-width: 0 !important;
  padding-right: 1em !important;
  color: #475467 !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  line-height: 25px !important;
  letter-spacing: 0 !important;
  word-spacing: 0 !important;
  text-align: left !important;
  text-align-last: auto !important;
  white-space: nowrap !important;
  box-sizing: border-box !important;
}

.fyg-dashboard-shell.profile-shell .profile-form.fyg-submission-layout-body .profile-key::after {
  position: absolute;
  top: 0;
  right: 0;
  width: 1em;
  content: "：";
  text-align: center;
}

.fyg-dashboard-shell.profile-shell .profile-form.fyg-submission-layout-body .profile-key.is-short {
  text-align: justify !important;
  text-align-last: justify !important;
  text-justify: inter-character !important;
}

.fyg-dashboard-shell.profile-shell .profile-form.fyg-submission-layout-body .profile-readonly > p {
  min-width: 0 !important;
  margin: 0 !important;
  color: #1f2937 !important;
  font-size: 15px !important;
  line-height: 25px !important;
  overflow-wrap: anywhere !important;
}

.fyg-dashboard-shell.profile-shell .profile-form.fyg-submission-layout-body .profile-email-link {
  color: #0563c1 !important;
  text-decoration: underline !important;
  text-underline-offset: 1px;
}

.fyg-dashboard-shell.profile-shell .profile-form.fyg-submission-layout-body .profile-editable {
  min-height: 46px !important;
  margin-bottom: 0 !important;
}

.fyg-dashboard-shell.profile-shell .profile-form.fyg-submission-layout-body .profile-readonly + .profile-editable {
  margin-top: 0 !important;
  border-top: 0 !important;
}

.fyg-dashboard-shell.profile-shell .profile-form.fyg-submission-layout-body .profile-editable input {
  width: 100% !important;
  max-width: 380px !important;
}

.fyg-dashboard-shell.profile-shell .profile-form.fyg-submission-layout-body .profile-editable textarea {
  width: 100%;
  max-width: 380px !important;
}

.fyg-dashboard-shell.profile-shell .profile-form.fyg-submission-layout-body .profile-editable input {
  min-height: 34px !important;
  height: 34px !important;
  padding-right: 9px !important;
  padding-left: 9px !important;
}

.fyg-dashboard-shell.profile-shell .profile-form.fyg-submission-layout-body .profile-bio textarea {
  width: 100%;
  height: 82px;
  min-width: 72px !important;
  min-height: 54px !important;
  max-width: 100% !important;
  max-height: none !important;
  padding: 7px 9px !important;
  overflow: auto !important;
  resize: both !important;
}

.fyg-dashboard-shell.profile-shell .profile-form.fyg-submission-layout-body .profile-fields > .profile-bio {
  position: relative !important;
  align-items: start !important;
}

.fyg-dashboard-shell.profile-shell .profile-form.fyg-submission-layout-body .profile-bio .profile-key {
  margin-top: 7px !important;
}

.fyg-dashboard-shell.profile-shell .profile-form.fyg-submission-layout-body .profile-resize-handle {
  display: none !important;
}

.fyg-dashboard-shell.profile-shell .profile-form.fyg-submission-layout-body .profile-actions {
  grid-template-columns: 92px minmax(0, 1fr) !important;
  column-gap: 0 !important;
  max-width: 484px !important;
  margin-top: 12px !important;
  padding-right: 12px !important;
  box-sizing: border-box !important;
}

.fyg-dashboard-shell.profile-shell .profile-form.fyg-submission-layout-body.has-profile-bio-size .profile-actions {
  grid-template-columns: 92px minmax(0, var(--profile-bio-width)) !important;
}

.fyg-dashboard-shell.profile-shell .profile-form.fyg-submission-layout-body .profile-actions > span {
  height: 1px !important;
  line-height: 1 !important;
}

.fyg-dashboard-shell.profile-shell .profile-form.fyg-submission-layout-body .profile-actions > button {
  grid-column: 2 !important;
  justify-self: end !important;
  width: 110px !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

.fyg-dashboard-shell.profile-shell .profile-form.fyg-submission-layout-body .profile-result {
  width: min(380px, calc(100% - 92px)) !important;
  min-height: 18px !important;
  margin: 4px 0 0 92px !important;
}

@media (max-width: 900px) {
  .fyg-dashboard-shell .fyg-dashboard-content > .fyg-submission-layout-panel {
    padding-right: 14px !important;
    padding-left: 14px !important;
  }

  .fyg-dashboard-shell .fyg-dashboard-content .fyg-submission-layout-body {
    margin-right: 14px !important;
    margin-left: 14px !important;
  }

  .fyg-dashboard-shell.profile-shell .profile-form.fyg-submission-layout-body .profile-resize-handle {
    position: absolute !important;
    z-index: 3 !important;
    display: block !important;
    width: 16px !important;
    height: 16px !important;
    border: 0 !important;
    background: repeating-linear-gradient(135deg, transparent 0 3px, #7f8b99 3px 4px, transparent 4px 7px) !important;
    clip-path: polygon(100% 0, 100% 100%, 0 100%) !important;
    cursor: nwse-resize !important;
    line-height: 1 !important;
    touch-action: none !important;
    user-select: none !important;
  }

}

/* Final floating tool icon centering. */
.float-tools .float-tool-button {
  display: grid !important;
  place-items: center !important;
  padding: 0 !important;
  line-height: 1 !important;
}

.float-tools .float-tool-button span {
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  width: 24px !important;
  height: 24px !important;
  margin: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  transform: translate(-50%, -50%) !important;
}

.float-tools .float-tool-button span::before,
.float-tools .float-tool-button span::after {
  position: absolute !important;
  content: "" !important;
  transform-origin: center center !important;
}

.float-tools .tool-service span {
  border-radius: 0 !important;
}

.float-tools .tool-service span::before {
  display: block !important;
  top: 3px !important;
  left: 3px !important;
  width: 18px !important;
  height: 18px !important;
  border: 2px solid var(--float-tool-fg) !important;
  border-radius: 50% !important;
  background:
    radial-gradient(circle at 35% 46%, var(--float-tool-fg) 0 1.8px, transparent 2px),
    radial-gradient(circle at 65% 46%, var(--float-tool-fg) 0 1.8px, transparent 2px) !important;
  box-shadow:
    -6px 6px 0 -4px var(--float-tool-fg),
    6px 6px 0 -4px var(--float-tool-fg) !important;
  clip-path: none !important;
  transform: none !important;
}

.float-tools .tool-service span::after {
  display: block !important;
  top: 12px !important;
  left: 8px !important;
  width: 8px !important;
  height: 4px !important;
  border: 0 !important;
  border-bottom: 2px solid var(--float-tool-fg) !important;
  border-radius: 0 0 999px 999px !important;
  background: transparent !important;
  clip-path: none !important;
  transform: none !important;
}

.float-tools .tool-vip span {
  border-radius: 0 !important;
  clip-path: none !important;
}

.float-tools .tool-vip span::before {
  display: block !important;
  top: 3px !important;
  left: 1px !important;
  width: 22px !important;
  height: 18px !important;
  border: 0 !important;
  border-radius: 1px 1px 4px 4px !important;
  background: var(--float-tool-fg) !important;
  clip-path: polygon(7% 34%, 32% 50%, 50% 15%, 68% 50%, 93% 34%, 83% 88%, 17% 88%) !important;
  transform: none !important;
}

.float-tools .tool-vip span::after {
  display: none !important;
}

.float-tools .tool-theme span {
  border-radius: 0 !important;
}

.float-tools .tool-theme span::before {
  display: block !important;
  top: 50% !important;
  left: 50% !important;
  width: 12px !important;
  height: 12px !important;
  border: 0 !important;
  border-radius: 50% !important;
  background: var(--float-tool-fg) !important;
  box-shadow:
    0 -9px 0 -4px var(--float-tool-fg),
    0 9px 0 -4px var(--float-tool-fg),
    9px 0 0 -4px var(--float-tool-fg),
    -9px 0 0 -4px var(--float-tool-fg),
    7px -7px 0 -4px var(--float-tool-fg),
    -7px -7px 0 -4px var(--float-tool-fg),
    7px 7px 0 -4px var(--float-tool-fg),
    -7px 7px 0 -4px var(--float-tool-fg) !important;
  clip-path: none !important;
  transform: translate(-50%, -50%) !important;
}

.float-tools .tool-theme span::after {
  display: none !important;
}

body.theme-dark .float-tools .tool-theme span::before {
  display: block !important;
  top: 3px !important;
  left: 3px !important;
  width: 18px !important;
  height: 18px !important;
  border-radius: 50% !important;
  background: transparent !important;
  box-shadow: inset -6px -1px 0 0 var(--float-tool-fg) !important;
  clip-path: none !important;
  transform: none !important;
}

body.theme-dark .float-tools .tool-theme span::after {
  display: block !important;
  top: 3px !important;
  left: 15px !important;
  width: 7px !important;
  height: 7px !important;
  border: 0 !important;
  background: var(--float-tool-fg) !important;
  clip-path: polygon(50% 0, 61% 34%, 98% 35%, 68% 56%, 79% 92%, 50% 70%, 21% 92%, 32% 56%, 2% 35%, 39% 34%) !important;
  transform: none !important;
}

.float-tools .tool-top span {
  border: 0 !important;
}

.float-tools .tool-top span::before {
  display: block !important;
  top: 7px !important;
  left: 5px !important;
  width: 14px !important;
  height: 14px !important;
  border: 0 !important;
  border-top: 2px solid var(--float-tool-fg) !important;
  border-left: 2px solid var(--float-tool-fg) !important;
  background: transparent !important;
  clip-path: none !important;
  transform: rotate(45deg) !important;
}

.float-tools .tool-top span::after {
  display: none !important;
}

/* Floating tools: crisp centered SVG-mask icons for mobile and desktop. */
.float-tools .tool-service span,
.float-tools .tool-vip span,
.float-tools .tool-theme span,
.float-tools .tool-top span,
body.theme-dark .float-tools .tool-theme span {
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  display: block !important;
  width: 24px !important;
  height: 24px !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: var(--float-tool-fg) !important;
  box-shadow: none !important;
  clip-path: none !important;
  transform: translate(-50%, -50%) !important;
  -webkit-mask-position: center !important;
  mask-position: center !important;
  -webkit-mask-repeat: no-repeat !important;
  mask-repeat: no-repeat !important;
  -webkit-mask-size: 22px 22px !important;
  mask-size: 22px 22px !important;
}

.float-tools .tool-service span::before,
.float-tools .tool-service span::after,
.float-tools .tool-vip span::before,
.float-tools .tool-vip span::after,
.float-tools .tool-theme span::before,
.float-tools .tool-theme span::after,
.float-tools .tool-top span::before,
.float-tools .tool-top span::after,
body.theme-dark .float-tools .tool-theme span::before,
body.theme-dark .float-tools .tool-theme span::after {
  display: none !important;
}

.float-tools .tool-service span {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 14a7 7 0 0 1 14 0v2.5a3.5 3.5 0 0 1-3.5 3.5H13'/%3E%3Crect x='3.5' y='12' width='4.5' height='6.5' rx='2.2'/%3E%3Crect x='16' y='12' width='4.5' height='6.5' rx='2.2'/%3E%3Cpath d='M9.5 16.5c1.4 1 3.6 1 5 0'/%3E%3C/g%3E%3C/svg%3E") !important;
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 14a7 7 0 0 1 14 0v2.5a3.5 3.5 0 0 1-3.5 3.5H13'/%3E%3Crect x='3.5' y='12' width='4.5' height='6.5' rx='2.2'/%3E%3Crect x='16' y='12' width='4.5' height='6.5' rx='2.2'/%3E%3Cpath d='M9.5 16.5c1.4 1 3.6 1 5 0'/%3E%3C/g%3E%3C/svg%3E") !important;
}

.float-tools .tool-vip span {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M4 19h16l1.2-11.2-5.3 3.2L12 4.5 8.1 11 2.8 7.8 4 19zm2.6-2.2-.55-5.2 3 1.8L12 8.5l2.95 4.9 3-1.8-.55 5.2H6.6z'/%3E%3C/svg%3E") !important;
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M4 19h16l1.2-11.2-5.3 3.2L12 4.5 8.1 11 2.8 7.8 4 19zm2.6-2.2-.55-5.2 3 1.8L12 8.5l2.95 4.9 3-1.8-.55 5.2H6.6z'/%3E%3C/svg%3E") !important;
}

.float-tools .tool-theme span {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='black'%3E%3Ccircle cx='12' cy='12' r='5.1'/%3E%3Crect x='11' y='1.7' width='2' height='4' rx='1'/%3E%3Crect x='11' y='18.3' width='2' height='4' rx='1'/%3E%3Crect x='18.3' y='11' width='4' height='2' rx='1'/%3E%3Crect x='1.7' y='11' width='4' height='2' rx='1'/%3E%3Crect x='16.7' y='4.2' width='2' height='4' rx='1' transform='rotate(45 17.7 6.2)'/%3E%3Crect x='5.3' y='15.8' width='2' height='4' rx='1' transform='rotate(45 6.3 17.8)'/%3E%3Crect x='15.8' y='16.7' width='4' height='2' rx='1' transform='rotate(45 17.8 17.7)'/%3E%3Crect x='4.2' y='5.3' width='4' height='2' rx='1' transform='rotate(45 6.2 6.3)'/%3E%3C/g%3E%3C/svg%3E") !important;
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='black'%3E%3Ccircle cx='12' cy='12' r='5.1'/%3E%3Crect x='11' y='1.7' width='2' height='4' rx='1'/%3E%3Crect x='11' y='18.3' width='2' height='4' rx='1'/%3E%3Crect x='18.3' y='11' width='4' height='2' rx='1'/%3E%3Crect x='1.7' y='11' width='4' height='2' rx='1'/%3E%3Crect x='16.7' y='4.2' width='2' height='4' rx='1' transform='rotate(45 17.7 6.2)'/%3E%3Crect x='5.3' y='15.8' width='2' height='4' rx='1' transform='rotate(45 6.3 17.8)'/%3E%3Crect x='15.8' y='16.7' width='4' height='2' rx='1' transform='rotate(45 17.8 17.7)'/%3E%3Crect x='4.2' y='5.3' width='4' height='2' rx='1' transform='rotate(45 6.2 6.3)'/%3E%3C/g%3E%3C/svg%3E") !important;
}

body.theme-dark .float-tools .tool-theme span {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M20.6 14.2A8.8 8.8 0 0 1 9.8 3.4 8.8 8.8 0 1 0 20.6 14.2z'/%3E%3Cpath fill='black' d='M18 4.1l.75 1.7 1.75.7-1.75.75L18 9l-.75-1.75-1.75-.75 1.75-.7L18 4.1z'/%3E%3C/svg%3E") !important;
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M20.6 14.2A8.8 8.8 0 0 1 9.8 3.4 8.8 8.8 0 1 0 20.6 14.2z'/%3E%3Cpath fill='black' d='M18 4.1l.75 1.7 1.75.7-1.75.75L18 9l-.75-1.75-1.75-.75 1.75-.7L18 4.1z'/%3E%3C/svg%3E") !important;
}

.float-tools .tool-top span {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round' d='M5 15.5 12 8.5l7 7'/%3E%3C/svg%3E") !important;
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round' d='M5 15.5 12 8.5l7 7'/%3E%3C/svg%3E") !important;
}

@media (min-width: 681px) {
  .agency-login-body .topnav .menu-btn {
    display: none !important;
  }
}

@media (max-width: 680px) {
  .agency-login-body .topnav .menu-btn {
    position: fixed !important;
    top: 15px !important;
    left: 16px !important;
    z-index: 10001 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    gap: 4px !important;
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    border: 0 !important;
    background: transparent !important;
    padding: 3px !important;
    transform: none !important;
  }

  .agency-login-body .topnav .menu-btn span {
    display: block !important;
    width: 18px !important;
    height: 2px !important;
    margin: 0 auto !important;
    border-radius: 999px !important;
    background: #111 !important;
  }

  body.theme-dark.agency-login-body .topnav .menu-btn span {
    background: #f3f6fb !important;
  }
}

/* Guest actions use one geometry on desktop and mobile: search, login, register. */
.topnav .nav-actions.nav-actions--guest,
.topnav .nav-actions.nav-actions--guest.is-open {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 6px !important;
  width: auto !important;
  min-width: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}

.topnav .nav-actions.nav-actions--guest > .icon-search,
.topnav .nav-actions.nav-actions--guest > a[data-open-auth],
.topnav .nav-actions.nav-actions--guest > a[data-open-register] {
  position: relative !important;
  display: inline-flex !important;
  flex: 0 0 auto !important;
  align-items: center !important;
  justify-content: center !important;
  box-sizing: border-box !important;
  height: 28px !important;
  min-height: 28px !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  padding: 0 !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  line-height: 1 !important;
  text-shadow: none;
  white-space: nowrap !important;
  transform: none !important;
}

.topnav .nav-actions.nav-actions--guest > .icon-search {
  width: 28px !important;
  min-width: 28px !important;
}

.topnav .nav-actions.nav-actions--guest > a[data-open-auth],
.topnav .nav-actions.nav-actions--guest > a[data-open-register] {
  width: auto !important;
  min-width: 28px !important;
}

.topnav .nav-actions.nav-actions--guest > .icon-search::before {
  top: 4px !important;
  left: 3px !important;
  width: 16px !important;
  height: 16px !important;
  border-width: 2px !important;
}

.topnav .nav-actions.nav-actions--guest > .icon-search::after {
  top: 19px !important;
  left: 17px !important;
  width: 9px !important;
  height: 2px !important;
}

.topnav .nav-actions.nav-actions--guest > a[data-open-auth]::before,
.topnav .nav-actions.nav-actions--guest > a[data-open-auth]::after,
.topnav .nav-actions.nav-actions--guest > a[data-open-register]::before,
.topnav .nav-actions.nav-actions--guest > a[data-open-register]::after {
  display: none !important;
  content: none !important;
}


.topnav.is-authing .nav-actions.nav-actions--guest > a[data-open-auth],
.topnav.is-authing .nav-actions.nav-actions--guest > a[data-open-register],
.topnav .nav-actions.nav-actions--guest > .icon-search:hover,
.topnav .nav-actions.nav-actions--guest > a[data-open-auth]:hover,
.topnav .nav-actions.nav-actions--guest > a[data-open-register]:hover,
.topnav .nav-actions.nav-actions--guest > .icon-search:focus-visible,
.topnav .nav-actions.nav-actions--guest > a[data-open-auth]:focus-visible,
.topnav .nav-actions.nav-actions--guest > a[data-open-register]:focus-visible {
  color: var(--pink) !important;
}

.topnav .nav-actions.nav-actions--guest > .icon-search:focus-visible,
.topnav .nav-actions.nav-actions--guest > a[data-open-auth]:focus-visible,
.topnav .nav-actions.nav-actions--guest > a[data-open-register]:focus-visible {
  border-radius: 3px !important;
  outline: 2px solid currentColor;
  outline-offset: 2px;
}
/* 全站开屏公告：PC 与手机保持截图中的居中白色公告卡片。 */
body.splash-popup-open {
  overflow: hidden !important;
  overscroll-behavior: none;
}

.splash-popup[hidden] {
  display: none !important;
}

.splash-popup {
  position: fixed;
  z-index: 50000;
  inset: 0;
  display: grid;
  place-items: center;
  box-sizing: border-box;
  padding: 5px 12px;
  opacity: 0;
  overscroll-behavior: contain;
  transition: opacity .18s ease;
}

.splash-popup.is-visible {
  opacity: 1;
}

.splash-popup__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .56);
  touch-action: none;
}

.splash-popup__dialog {
  position: relative;
  width: 370px;
  max-width: calc(100vw - 24px);
  width: min(370px, calc(100vw - 24px));
  height: 524px;
  height: min(524px, calc(100vh - 20px));
  height: min(524px, calc(100dvh - 20px));
  max-height: calc(100vh - 20px);
  max-height: calc(100dvh - 20px);
  overflow: hidden;
  border-radius: 13px;
  background: #fff !important;
  box-shadow: 0 18px 54px rgba(0, 0, 0, .28);
  color: #333 !important;
  color-scheme: light;
  transform: translateY(8px) scale(.985);
  border: 1px solid transparent;
  transition: transform .18s ease, background-color .2s ease, border-color .2s ease, color .2s ease;
  isolation: isolate;
}

.splash-popup__dialog:focus {
  outline: none;
}

.splash-popup.is-visible .splash-popup__dialog {
  transform: translateY(0) scale(1);
}

.splash-popup__dialog::before,
.splash-popup__dialog::after {
  position: absolute;
  z-index: 0;
  border-radius: 50%;
  background: #fff0f2;
  pointer-events: none;
  content: "";
}

.splash-popup__dialog::before {
  top: -94px;
  right: -50px;
  width: 184px;
  height: 170px;
}

.splash-popup__dialog::after {
  bottom: -126px;
  left: -38px;
  width: 430px;
  height: 194px;
}

.splash-popup__scroll {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  box-sizing: border-box;
  padding: 39px 30px 28px;
  scrollbar-width: thin;
  scrollbar-color: rgba(80, 80, 80, .45) transparent;
}

.splash-popup__close {
  position: absolute;
  z-index: 3;
  top: 8px;
  right: 8px;
  width: 38px;
  height: 38px;
  margin: 0;
  border: 0;
  border-radius: 50%;
  padding: 0;
  background: transparent;
  color: #333;
  cursor: pointer;
}

.splash-popup__close::before,
.splash-popup__close::after {
  position: absolute;
  top: 18px;
  left: 9px;
  width: 20px;
  height: 1.5px;
  border-radius: 999px;
  background: currentColor;
  content: "";
}

.splash-popup__close::before {
  transform: rotate(45deg);
}

.splash-popup__close::after {
  transform: rotate(-45deg);
}

.splash-popup__close:hover {
  background: rgba(255, 255, 255, .62);
}

.splash-popup__close:focus-visible {
  outline: 3px solid rgba(var(--brand-primary-rgb), .25);
  outline-offset: 0;
}

.splash-popup__title {
  position: relative;
  z-index: 0;
  margin: 0 0 38px;
  color: #383838 !important;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.35;
  text-align: center;
  isolation: isolate;
}

.splash-popup__title::after {
  position: absolute;
  z-index: -1;
  bottom: 1px;
  left: 50%;
  width: 74px;
  height: 8px;
  border-radius: 999px;
  background: #f5ddd5;
  transform: translateX(-50%);
  content: "";
}

.splash-popup__content {
  color: #373737 !important;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  text-align: center;
  overflow-wrap: anywhere;
}

.splash-popup__content p,
.splash-popup__content div,
.splash-popup__content h2,
.splash-popup__content h3,
.splash-popup__content h4,
.splash-popup__content blockquote {
  color: inherit !important;
}

.splash-popup__content p {
  margin: 0 0 10px;
}

.splash-popup__content a {
  color: inherit !important;
  text-decoration: none;
}

.splash-popup__content a:hover {
  color: var(--brand-primary) !important;
}

.splash-popup__content img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 12px auto;
  border-radius: 8px;
}

.splash-popup__content ul,
.splash-popup__content ol,
.splash-popup__content blockquote {
  margin: 10px 0;
  padding-left: 24px;
  text-align: left;
}

.splash-popup__brand {
  margin: 0 auto 20px !important;
  line-height: 1;
}

.splash-popup__brand strong,
.splash-popup__brand.site-logo .site-logo__text {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 37px;
  border: 0;
  border-radius: 5px;
  padding: 1px 7px 2px;
  background: var(--brand-primary);
  color: #fff !important;
  font-size: 25px;
  font-weight: 800;
  line-height: 1;
  box-shadow: none;
  outline: 0;
}

.splash-popup__brand.site-logo {
  display: flex;
  width: fit-content;
  max-width: 100%;
  min-width: 0;
  min-height: 37px;
  border: 0;
  padding: 0;
  background: transparent;
}

.splash-popup__brand.site-logo--has-image {
  width: min(220px, 72vw);
  height: 56px;
}

.splash-popup__strong-lines {
  margin-bottom: 14px;
  font-weight: 700;
}

.splash-popup__strong-lines p {
  margin-bottom: 10px;
}

.splash-popup__section-title {
  margin: 10px 0 8px !important;
  font-weight: 700;
}

.splash-popup__urls {
  display: grid;
  gap: 5px;
  margin-bottom: 27px;
  color: #4a4a4a !important;
  font-size: 18px;
}

.splash-popup__permanent {
  margin: 0 0 10px !important;
  font-size: 18px;
  font-weight: 800;
}

.splash-popup__muted {
  margin: 0 !important;
  color: #666 !important;
  line-height: 1.45;
}

.splash-popup__compact {
  margin-bottom: 4px !important;
}

/* 开屏弹窗夜间模式：同时跟随站点主题和浏览器首屏主题，避免打开时闪白。 */
body.theme-dark .splash-popup__backdrop,
html[data-theme="dark"] .splash-popup__backdrop {
  background: rgba(0, 0, 0, .76);
}

body.theme-dark .splash-popup__dialog,
html[data-theme="dark"] .splash-popup__dialog {
  border-color: #3b3b45;
  background: #222228 !important;
  box-shadow: 0 22px 66px rgba(0, 0, 0, .62);
  color: #f2f2f5 !important;
  color-scheme: dark;
}

body.theme-dark .splash-popup__dialog::before,
body.theme-dark .splash-popup__dialog::after,
html[data-theme="dark"] .splash-popup__dialog::before,
html[data-theme="dark"] .splash-popup__dialog::after {
  background: #34262e;
}

body.theme-dark .splash-popup__scroll,
html[data-theme="dark"] .splash-popup__scroll {
  scrollbar-color: #62626d transparent;
}

body.theme-dark .splash-popup__close,
html[data-theme="dark"] .splash-popup__close {
  color: #f1f1f4;
}

body.theme-dark .splash-popup__close:hover,
html[data-theme="dark"] .splash-popup__close:hover {
  background: rgba(255, 255, 255, .1);
}

body.theme-dark .splash-popup__close:focus-visible,
html[data-theme="dark"] .splash-popup__close:focus-visible {
  outline-color: rgba(var(--brand-primary-rgb), .5);
}

body.theme-dark .splash-popup__title,
html[data-theme="dark"] .splash-popup__title {
  color: #f6f6f8 !important;
}

body.theme-dark .splash-popup__title::after,
html[data-theme="dark"] .splash-popup__title::after {
  background: #6b3f4d;
}

body.theme-dark .splash-popup__content,
html[data-theme="dark"] .splash-popup__content {
  color: #e7e7eb !important;
}

body.theme-dark .splash-popup__content a:hover,
html[data-theme="dark"] .splash-popup__content a:hover {
  color: var(--brand-primary-light) !important;
}

body.theme-dark .splash-popup__content img,
html[data-theme="dark"] .splash-popup__content img {
  box-shadow: 0 8px 24px rgba(0, 0, 0, .3);
}

body.theme-dark .splash-popup__content hr,
html[data-theme="dark"] .splash-popup__content hr {
  border-color: #45454f;
}

body.theme-dark .splash-popup__urls,
html[data-theme="dark"] .splash-popup__urls {
  color: #d8d8df !important;
}

body.theme-dark .splash-popup__muted,
html[data-theme="dark"] .splash-popup__muted {
  color: #aaaab4 !important;
}

@media (max-width: 680px) {
  .splash-popup {
    padding-top: max(5px, env(safe-area-inset-top, 0px));
    padding-right: max(12px, env(safe-area-inset-right, 0px));
    padding-bottom: max(5px, env(safe-area-inset-bottom, 0px));
    padding-left: max(12px, env(safe-area-inset-left, 0px));
  }

  .splash-popup__dialog {
    width: min(370px, calc(100vw - 24px - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px)));
    height: min(524px, calc(100vh - 10px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)));
    height: min(524px, calc(100dvh - 10px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)));
  }

  .splash-popup__scroll {
    padding-inline: 26px;
  }

  .splash-popup__brand.site-logo--has-image {
    width: min(190px, 68vw);
    height: 50px;
  }
}

@media (max-height: 560px) {
  .splash-popup__scroll {
    padding-top: 34px;
  }

  .splash-popup__title {
    margin-bottom: 28px;
  }
}

/* 注册页待验证提示 */
.registration-verification-reminder {
  display: grid;
  gap: 6px;
  margin: 0 0 18px;
  border: 1px solid rgba(var(--brand-primary-rgb), .24);
  border-radius: 12px;
  padding: 13px 15px;
  background: var(--brand-primary-surface);
  color: var(--brand-primary-muted-text);
  font-size: 13px;
  line-height: 1.55;
  text-align: left;
}

.registration-verification-reminder strong {
  color: var(--brand-primary-hover);
  font-size: 14px;
}

.registration-verification-reminder a {
  color: var(--brand-primary);
  font-weight: 700;
  text-decoration: none;
}

.registration-verification-reminder a:hover {
  text-decoration: underline;
}

body.theme-dark .registration-verification-reminder {
  border-color: rgba(var(--brand-primary-rgb), .3);
  background: rgba(var(--brand-primary-rgb), .1);
  color: var(--brand-primary-light);
}

/* 注册、登录、找回及重置密码：手机端卡片随视口收缩，避免 460px 固定宽度溢出。 */
@media (max-width: 680px) {
  .login-shell {
    width: 100%;
    padding-inline: 12px;
  }

  .login-shell:not(.agency-login-shell) .login-card {
    width: 100%;
    max-width: 460px;
    padding-inline: clamp(20px, 8vw, 70px);
  }

  .login-shell .login-form {
    width: 100%;
    min-width: 0;
    max-width: 320px;
  }

  .registration-verification-reminder {
    width: 100%;
    max-width: 100%;
  }

  .registration-inline-row {
    grid-template-columns: minmax(0, 1fr) 92px;
    gap: 7px;
  }

  .login-form .registration-inline-action,
  .auth-modal__form .registration-inline-action {
    width: 92px;
    padding-inline: 5px;
    font-size: 12px;
  }

  .auth-modal__form .registration-inline-action {
    height: 36px;
  }

  #registerModal .auth-modal__card {
    min-height: 0;
    padding-top: max(34px, env(safe-area-inset-top));
    padding-bottom: max(24px, env(safe-area-inset-bottom));
  }

  #registerModal .auth-modal__form {
    gap: 10px;
  }
}

@media (max-width: 359px) {
  .registration-inline-row {
    grid-template-columns: minmax(0, 1fr) 84px;
    gap: 6px;
  }

  .login-form .registration-inline-action,
  .auth-modal__form .registration-inline-action {
    width: 84px;
    font-size: 11px;
  }
}

/* The idle email field has a second guidance line; focusing restores standard height. */
.registration-email-field.is-email-hint-visible:not(:focus-within) input,
.auth-modal__form .registration-email-field.is-email-hint-visible:not(:focus-within) input {
  height: 64px;
  padding-top: 8px;
  padding-bottom: 32px;
}

.registration-email-field.is-email-hint-visible:not(:focus-within) > span,
.auth-modal__form .registration-email-field.is-email-hint-visible:not(:focus-within) > span,
.registration-email-field.is-email-hint-visible.is-valid:not(:focus-within)::after,
.auth-modal__form .registration-email-field.is-email-hint-visible.is-valid:not(:focus-within)::after {
  top: 21px;
}

.registration-email-hint {
  position: absolute;
  z-index: 2;
  right: 8px;
  bottom: 5px;
  left: 34px;
  overflow: hidden;
  color: #8a7180;
  font-size: 9px;
  font-weight: 400;
  line-height: 14px;
  pointer-events: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.registration-email-field:focus-within .registration-email-hint,
.registration-email-field input:not(:placeholder-shown) ~ .registration-email-hint,
.registration-email-hint[hidden] {
  display: none !important;
}

.registration-inline-row.is-email-only .registration-email-hint {
  right: 8px;
  font-size: 11px;
}

body.theme-dark .registration-email-hint {
  color: #c4aeba;
}

@media (max-width: 680px) {
  .registration-email-field.is-email-hint-visible:not(:focus-within) input,
  .auth-modal__form .registration-email-field.is-email-hint-visible:not(:focus-within) input {
    height: 62px;
    padding-top: 7px;
    padding-bottom: 31px;
  }

  .registration-email-field.is-email-hint-visible:not(:focus-within) > span,
  .auth-modal__form .registration-email-field.is-email-hint-visible:not(:focus-within) > span,
  .registration-email-field.is-email-hint-visible.is-valid:not(:focus-within)::after,
  .auth-modal__form .registration-email-field.is-email-hint-visible.is-valid:not(:focus-within)::after {
    top: 20px;
  }

  .registration-email-hint {
    right: 6px;
    bottom: 4px;
    left: 31px;
    font-size: 9px;
    line-height: 13px;
  }

  .registration-inline-row.is-email-only .registration-email-hint {
    right: 6px;
    font-size: 10px;
  }

}

@media (max-width: 359px) {
  .registration-inline-row[data-email-row]:not(.is-email-only) {
    grid-template-columns: minmax(0, 1fr);
  }

  .login-form [data-email-row] .registration-inline-action,
  .auth-modal__form [data-email-row] .registration-inline-action {
    width: 100%;
  }

  .registration-email-hint {
    font-size: 10px;
  }
}

/* 服务端确认保存成功后显示的全局完成弹窗。 */
body.fyg-save-complete-open {
  overflow: hidden !important;
}

.fyg-save-complete-popup[hidden] {
  display: none !important;
}

.fyg-save-complete-popup {
  position: fixed;
  inset: 0;
  z-index: 60000;
  display: grid;
  place-items: center;
  padding: max(20px, env(safe-area-inset-top)) max(20px, env(safe-area-inset-right)) max(20px, env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left));
  opacity: 0;
  transition: opacity .18s ease;
}

.fyg-save-complete-popup.is-open {
  opacity: 1;
}

.fyg-save-complete-popup__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(16, 24, 40, .56);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.fyg-save-complete-popup__dialog {
  position: relative;
  width: min(392px, calc(100vw - 40px));
  max-height: calc(100vh - 40px);
  max-height: calc(100dvh - 40px);
  overflow-y: auto;
  padding: 34px 32px 28px;
  border: 1px solid rgba(17, 24, 39, .06);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 24px 64px rgba(16, 24, 40, .22);
  color: #172033;
  text-align: center;
  box-sizing: border-box;
  transform: translateY(10px) scale(.98);
  transition: transform .18s ease;
}

.fyg-save-complete-popup.is-open .fyg-save-complete-popup__dialog {
  transform: translateY(0) scale(1);
}

.fyg-save-complete-popup__close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #7c8799;
  font: 300 28px/34px Arial, sans-serif;
  cursor: pointer;
}

.fyg-save-complete-popup__close:hover,
.fyg-save-complete-popup__close:focus-visible {
  background: #f3f5f8;
  color: #253044;
  outline: none;
}

.fyg-save-complete-popup__icon {
  position: relative;
  display: block;
  width: 64px;
  height: 64px;
  margin: 2px auto 18px;
  border-radius: 50%;
  background: #e9fbf1;
  color: #16a765;
}

.fyg-save-complete-popup__icon::after {
  content: "";
  position: absolute;
  left: 19px;
  top: 15px;
  width: 23px;
  height: 13px;
  border-left: 4px solid currentColor;
  border-bottom: 4px solid currentColor;
  transform: rotate(-45deg);
}

.fyg-save-complete-popup__dialog h2 {
  margin: 0;
  color: inherit;
  font-size: 22px;
  font-weight: 750;
  line-height: 1.35;
}

.fyg-save-complete-popup__dialog p {
  margin: 12px 0 24px;
  color: #667085;
  font-size: 15px;
  line-height: 1.7;
  overflow-wrap: anywhere;
  white-space: pre-line;
}

.fyg-save-complete-popup__confirm {
  width: 100%;
  min-height: 42px;
  border: 0;
  border-radius: 7px;
  padding: 0 22px;
  background: var(--brand-primary);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 7px 18px rgba(var(--brand-primary-rgb), .2);
}

.fyg-save-complete-popup__confirm:hover,
.fyg-save-complete-popup__confirm:focus-visible {
  background: var(--brand-primary-hover);
  outline: 3px solid rgba(var(--brand-primary-rgb), .22);
  outline-offset: 2px;
}

body.theme-dark .fyg-save-complete-popup__backdrop {
  background: rgba(0, 0, 0, .7);
}

body.theme-dark .fyg-save-complete-popup__dialog {
  border-color: #3b4654;
  background: #20262e;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .55);
  color: #f4f7fb;
}

body.theme-dark .fyg-save-complete-popup__dialog p {
  color: #c3ccd8;
}

body.theme-dark .fyg-save-complete-popup__close {
  color: #aeb8c6;
}

body.theme-dark .fyg-save-complete-popup__close:hover,
body.theme-dark .fyg-save-complete-popup__close:focus-visible {
  background: #303945;
  color: #fff;
}

body.theme-dark .fyg-save-complete-popup__icon {
  background: rgba(32, 190, 112, .16);
  color: #47d890;
}

@media (max-width: 520px) {
  .fyg-save-complete-popup {
    padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  }

  .fyg-save-complete-popup__dialog {
    width: min(100%, 360px);
    max-height: calc(100vh - 32px);
    max-height: calc(100dvh - 32px);
    padding: 30px 22px 22px;
    border-radius: 14px;
  }

  .fyg-save-complete-popup__icon {
    width: 58px;
    height: 58px;
    margin-bottom: 15px;
  }

  .fyg-save-complete-popup__icon::after {
    left: 17px;
    top: 14px;
    width: 21px;
    height: 12px;
  }

  .fyg-save-complete-popup__dialog h2 {
    font-size: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fyg-save-complete-popup,
  .fyg-save-complete-popup__dialog {
    transition: none;
  }
}

/* 列表和普通操作使用的右侧结果通知，与居中保存完成弹窗相互独立。 */
.fyg-operation-toasts {
  position: fixed;
  z-index: 59000;
  top: max(66px, calc(env(safe-area-inset-top) + 12px));
  right: max(20px, env(safe-area-inset-right));
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  width: min(360px, calc(100vw - 40px));
  max-height: calc(100vh - 86px);
  max-height: calc(100dvh - 86px);
  overflow: visible;
  pointer-events: none;
}

.fyg-operation-toast {
  position: relative;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 36px;
  align-items: start;
  gap: 10px;
  width: 100%;
  min-height: 74px;
  border: 1px solid #e5eaf0;
  border-left: 4px solid currentColor;
  border-radius: 10px;
  padding: 14px 8px 14px 13px;
  background: #fff;
  box-shadow: 0 14px 36px rgba(16, 24, 40, .18);
  color: #168857;
  box-sizing: border-box;
  opacity: 0;
  pointer-events: auto;
  transform: translateX(calc(100% + 28px));
  transition: opacity .2s ease, transform .2s ease;
}

.fyg-operation-toast.is-error {
  color: #d92d20;
}

.fyg-operation-toast.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.fyg-operation-toast.is-leaving {
  opacity: 0;
  transform: translateX(calc(100% + 28px));
}

.fyg-operation-toast__icon {
  position: relative;
  display: block;
  width: 34px;
  height: 34px;
  margin-top: 1px;
  border-radius: 50%;
  background: #e9fbf1;
  color: #168857;
}

.fyg-operation-toast.is-error .fyg-operation-toast__icon {
  background: #fff0f0;
  color: #d92d20;
}

.fyg-operation-toast:not(.is-error) .fyg-operation-toast__icon::after {
  content: "";
  position: absolute;
  left: 10px;
  top: 8px;
  width: 13px;
  height: 7px;
  border-left: 3px solid currentColor;
  border-bottom: 3px solid currentColor;
  transform: rotate(-45deg);
}

.fyg-operation-toast.is-error .fyg-operation-toast__icon::before,
.fyg-operation-toast.is-error .fyg-operation-toast__icon::after {
  content: "";
  position: absolute;
  left: 9px;
  top: 15px;
  width: 16px;
  height: 3px;
  border-radius: 999px;
  background: currentColor;
}

.fyg-operation-toast.is-error .fyg-operation-toast__icon::before {
  transform: rotate(45deg);
}

.fyg-operation-toast.is-error .fyg-operation-toast__icon::after {
  transform: rotate(-45deg);
}

.fyg-operation-toast__content {
  min-width: 0;
  padding-top: 1px;
}

.fyg-operation-toast__content strong {
  display: block;
  margin: 0 0 4px;
  color: #172033;
  font-size: 14px;
  font-weight: 750;
  line-height: 1.4;
}

.fyg-operation-toast__content p {
  margin: 0;
  color: #667085;
  font-size: 13px;
  line-height: 1.55;
  overflow-wrap: anywhere;
  white-space: pre-line;
}

.fyg-operation-toast__close {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  padding: 0;
  background: transparent;
  color: #8a94a4;
  font: 300 25px/1 Arial, sans-serif;
  cursor: pointer;
}

.fyg-operation-toast__close:hover,
.fyg-operation-toast__close:focus-visible {
  background: #f2f4f7;
  color: #344054;
  outline: 2px solid currentColor;
  outline-offset: 1px;
}

body.theme-dark .fyg-operation-toast {
  border-color: #3b4654;
  border-left-color: currentColor;
  background: #20262e;
  box-shadow: 0 16px 42px rgba(0, 0, 0, .5);
}

body.theme-dark .fyg-operation-toast__content strong {
  color: #f4f7fb;
}

body.theme-dark .fyg-operation-toast__content p {
  color: #c3ccd8;
}

body.theme-dark .fyg-operation-toast__icon {
  background: rgba(32, 190, 112, .16);
  color: #47d890;
}

body.theme-dark .fyg-operation-toast.is-error .fyg-operation-toast__icon {
  background: rgba(255, 94, 94, .15);
  color: #ff7474;
}

body.theme-dark .fyg-operation-toast__close {
  color: #aeb8c6;
}

body.theme-dark .fyg-operation-toast__close:hover,
body.theme-dark .fyg-operation-toast__close:focus-visible {
  background: #303945;
  color: #fff;
}

@media (max-width: 680px) {
  .fyg-operation-toasts {
    top: max(60px, calc(env(safe-area-inset-top) + 12px));
    right: max(12px, env(safe-area-inset-right));
    left: max(12px, env(safe-area-inset-left));
    align-items: stretch;
    width: auto;
    max-height: calc(100vh - 76px);
    max-height: calc(100dvh - 76px);
  }

  .fyg-operation-toast {
    grid-template-columns: 36px minmax(0, 1fr) 36px;
    gap: 8px;
    min-height: 68px;
    padding: 12px 7px 12px 11px;
    border-radius: 9px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fyg-operation-toast {
    transition: none;
  }
}

/* iOS-style liquid glass for the public primary navigation. */
.nav-links > a.is-active {
  --nav-glass-smoke: rgba(18, 24, 29, .30);
  --nav-glass-sheen-top: rgba(185, 192, 197, .22);
  --nav-glass-sheen-bottom: rgba(126, 135, 141, .18);
  --nav-glass-filter: blur(16px) saturate(135%) brightness(82%);
  position: relative;
  z-index: 0;
  color: #fcff3a !important;
  text-decoration: none !important;
  text-shadow: 0 1px 1px rgba(0, 0, 0, .45);
}

.detail-nav .nav-links > a.is-active,
.home-body .topnav.is-scrolled .nav-links > a.is-active {
  --nav-glass-smoke: rgba(16, 22, 27, .46);
  --nav-glass-sheen-top: rgba(170, 178, 184, .13);
  --nav-glass-sheen-bottom: rgba(105, 114, 120, .08);
  --nav-glass-filter: blur(16px) saturate(130%) brightness(52%);
}

body.theme-dark .nav-links > a.is-active {
  --nav-glass-smoke: rgba(42, 49, 55, .26);
  --nav-glass-sheen-top: rgba(194, 201, 206, .20);
  --nav-glass-sheen-bottom: rgba(137, 146, 152, .16);
  --nav-glass-filter: blur(16px) saturate(130%) brightness(102%);
  color: #fcff3a !important;
  text-decoration: none !important;
}

.nav-links > a.is-active::after {
  display: none;
  opacity: 0;
  transform: scaleX(0);
}

.nav-links > a.is-active > .nav-link-label {
  position: relative;
  z-index: 1;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.nav-links > a.is-active > .nav-link-label::before,
.nav-links > a.is-active > .nav-link-label::after {
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
  content: "";
}

/* Compact glass lens used by the collapsed/tablet navigation. */
.nav-links > a.is-active > .nav-link-label::before {
  inset: -2px -4px;
  z-index: -2;
  border: 1px solid rgba(255, 255, 255, .24);
  background: linear-gradient(180deg, rgba(92, 100, 106, .96), rgba(39, 45, 50, .97));
  background-clip: padding-box;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .28),
    inset 0 -1px 0 rgba(0, 0, 0, .34),
    0 2px 5px rgba(0, 0, 0, .22),
    0 6px 14px rgba(0, 0, 0, .14);
}

.nav-links > a.is-active > .nav-link-label::after {
  inset: -1px -3px;
  z-index: -1;
  border: 1px solid rgba(255, 255, 255, .30);
  background: linear-gradient(145deg, rgba(255, 255, 255, .11), rgba(255, 255, 255, .025) 38%, transparent 55%, rgba(255, 255, 255, .04));
  box-shadow:
    inset 0 1px .8px rgba(255, 255, 255, .52),
    inset 1px 0 .7px rgba(255, 255, 255, .20),
    inset 0 -1px .8px rgba(255, 255, 255, .07),
    inset -1px 0 .7px rgba(255, 255, 255, .09),
    0 0 0 .5px rgba(4, 8, 10, .24);
}

@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .nav-links > a.is-active > .nav-link-label::before {
    background-color: var(--nav-glass-smoke);
    background-image: linear-gradient(180deg, var(--nav-glass-sheen-top), var(--nav-glass-sheen-bottom));
    -webkit-backdrop-filter: var(--nav-glass-filter);
    backdrop-filter: var(--nav-glass-filter);
  }
}

.nav-links > a.is-active:hover,
.nav-links > a.is-active:focus-visible {
  color: #fcff3a !important;
}

/* Desktop matches mobile: no group frame, only the active item uses glass. */
@media (min-width: 901px) {
  .topnav .nav-links {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .topnav .nav-links > a.is-active > .nav-link-label::before {
    inset: -8px -13px;
  }

  .topnav .nav-links > a.is-active > .nav-link-label::after {
    inset: -6.5px -11.5px;
  }
}

@media (max-width: 680px) {
  .nav-links.is-open > a.is-active,
  body > .nav-links.is-open > a.is-active {
    --nav-glass-smoke: rgba(16, 22, 27, .46);
    --nav-glass-sheen-top: rgba(170, 178, 184, .13);
    --nav-glass-sheen-bottom: rgba(105, 114, 120, .08);
    --nav-glass-filter: blur(12px) saturate(125%) brightness(52%);
    font-weight: 400 !important;
    text-decoration: none !important;
  }

  body.theme-dark .nav-links.is-open > a.is-active,
  body.theme-dark > .nav-links.is-open > a.is-active {
    --nav-glass-smoke: rgba(42, 49, 55, .26);
    --nav-glass-sheen-top: rgba(194, 201, 206, .20);
    --nav-glass-sheen-bottom: rgba(137, 146, 152, .16);
    --nav-glass-filter: blur(12px) saturate(125%) brightness(102%);
  }
}

/* Let the homepage artwork extend visibly behind the navigation at page top. */
.home-body .topnav:not(.is-scrolled) {
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

@media (min-width: 681px) {
  .home-body .topnav:not(.is-scrolled) {
    border-bottom-color: transparent;
    background: rgba(0, 0, 0, .18);
    box-shadow: none;
  }
}

/* Keep dark-mode navigation visually separate from the page surface. */
body.theme-dark .topnav,
body.theme-dark.home-body .topnav,
body.theme-dark.home-body .topnav.is-scrolled {
  border-bottom: 1px solid rgba(255, 255, 255, .11);
  background: rgba(43, 48, 54, .98);
  box-shadow:
    inset 0 -1px 0 rgba(0, 0, 0, .22),
    0 8px 24px rgba(0, 0, 0, .34);
}

body.theme-dark.home-body .topnav:not(.is-scrolled) {
  border-bottom-color: transparent;
  background: rgba(0, 0, 0, .18);
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

@media (max-width: 680px) {
  body.theme-dark.home-body .topnav:not(.is-scrolled) {
    border-bottom-color: transparent;
    background: rgba(0, 0, 0, .12);
    box-shadow: none;
  }

  body.theme-dark .nav-links.is-open,
  body.theme-dark > .nav-links.is-open {
    border-right: 1px solid rgba(255, 255, 255, .10);
    background: #292e34;
    box-shadow: 12px 0 30px rgba(0, 0, 0, .42);
  }
}

/* Shared dashboard table row selection and TXT export. */
.fyg-dashboard-shell .fyg-table-export-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 48px;
  margin: 12px 0 10px;
  padding: 7px 10px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
  box-sizing: border-box;
}

.fyg-dashboard-shell .fyg-table-export-summary-row,
.fyg-dashboard-shell .fyg-table-export-actions-row {
  display: contents;
}

.fyg-dashboard-shell .fyg-table-export-select-all {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  margin-right: auto;
  color: #344054;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}

.fyg-dashboard-shell .fyg-table-export-select-all-checkbox,
.fyg-dashboard-shell .fyg-table-export-row-checkbox {
  width: 19px !important;
  min-width: 19px !important;
  height: 19px !important;
  min-height: 19px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 1px solid #aab4c3 !important;
  border-radius: 4px !important;
  background: #fff !important;
  box-shadow: none !important;
  accent-color: var(--pink, #ff2a93);
  appearance: auto !important;
  -webkit-appearance: checkbox !important;
  cursor: pointer;
  vertical-align: middle;
}

.fyg-dashboard-shell .fyg-table-export-row-selector {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  min-width: 32px;
  height: 34px;
  margin: -7px 5px -7px -5px;
  vertical-align: middle;
  cursor: pointer;
  user-select: none;
}

/* Keep the original ID visible after the row selector is inserted into a compact first column. */
.fyg-dashboard-shell table.fyg-table-export-id-first th:first-child,
.fyg-dashboard-shell table.fyg-table-export-id-first td:first-child {
  width: 96px !important;
  min-width: 96px !important;
}

.fyg-dashboard-shell table.fyg-table-export-id-first colgroup col:first-child {
  width: 96px !important;
}

.fyg-dashboard-shell table.fyg-table-export-id-first td:first-child {
  overflow: visible !important;
  text-overflow: clip !important;
}

.fyg-dashboard-shell .fyg-table-export-count {
  color: #667085;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}

.fyg-dashboard-shell .fyg-table-export-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 92px;
  min-height: 36px;
  padding: 0 15px;
  border: 0;
  border-radius: 7px;
  background: var(--pink, #ff2a93);
  color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  box-shadow: none;
  transition: opacity .18s ease, transform .18s ease;
}

.fyg-dashboard-shell .fyg-table-export-button:hover:not(:disabled),
.fyg-dashboard-shell .fyg-table-export-button:focus-visible:not(:disabled) {
  opacity: .9;
}

.fyg-dashboard-shell .fyg-table-export-button:active:not(:disabled) {
  transform: translateY(1px);
}

.fyg-dashboard-shell .fyg-table-export-button:disabled {
  opacity: .45;
  cursor: not-allowed;
}

.fyg-admin-shell .fyg-table-export-all-button {
  min-width: 112px;
  background: #c51f78;
}

.fyg-dashboard-shell table tbody tr.is-fyg-export-selected > td {
  background-color: rgba(var(--brand-primary-rgb), .075) !important;
}

body.theme-dark .fyg-dashboard-shell .fyg-table-export-toolbar {
  border-color: rgba(255, 255, 255, .11);
  background: #272b31;
}

body.theme-dark .fyg-dashboard-shell .fyg-table-export-select-all {
  color: #f2f4f7;
}

body.theme-dark .fyg-dashboard-shell .fyg-table-export-count {
  color: #b8c0cc;
}

body.theme-dark .fyg-dashboard-shell .fyg-table-export-select-all-checkbox,
body.theme-dark .fyg-dashboard-shell .fyg-table-export-row-checkbox {
  border-color: #7b8491 !important;
  background: #1f2328 !important;
}

body.theme-dark .fyg-dashboard-shell table tbody tr.is-fyg-export-selected > td {
  background-color: rgba(var(--brand-primary-rgb), .14) !important;
}

@media (max-width: 900px) {
  .fyg-dashboard-shell .fyg-table-export-toolbar {
    flex-direction: column;
    align-items: stretch;
    flex-wrap: nowrap;
    gap: 8px;
    min-height: 52px;
    margin: 9px 0 8px;
    padding: 6px 8px;
  }

  .fyg-dashboard-shell .fyg-table-export-summary-row,
  .fyg-dashboard-shell .fyg-table-export-actions-row {
    display: flex;
    align-items: center;
    width: 100%;
    min-width: 0;
    gap: 8px;
  }

  .fyg-dashboard-shell .fyg-table-export-summary-row {
    justify-content: space-between;
  }

  .fyg-dashboard-shell .fyg-table-export-actions-row {
    align-items: stretch;
  }

  .fyg-dashboard-shell .fyg-table-export-select-all {
    min-height: 40px;
    margin-right: 0;
  }

  .fyg-dashboard-shell .fyg-table-export-count {
    margin-left: auto;
    text-align: right;
  }

  .fyg-dashboard-shell .fyg-table-export-row-selector {
    width: 36px;
    min-width: 36px;
    height: 40px;
    margin-top: -10px;
    margin-bottom: -10px;
  }

  .fyg-dashboard-shell .fyg-table-export-button {
    flex: 1 1 0;
    width: 100%;
    min-width: 0;
    min-height: 40px;
    padding-right: 13px;
    padding-left: 13px;
  }

  .fyg-admin-shell .fyg-table-export-all-button {
    min-width: 0;
  }
}
/* 可配置 Logo：每个显示位置可独立使用文字、日间图或夜间图。 */
.site-logo {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  border: 0;
  background: transparent;
  text-decoration: none;
}

.site-logo__theme {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  max-height: 100%;
}

.site-logo__theme--dark {
  display: none;
}

body.theme-dark .site-logo__theme--light {
  display: none;
}

body.theme-dark .site-logo__theme--dark {
  display: inline-flex;
}

.site-logo__text {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--pink);
  color: #fff;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.site-logo__image {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.logo.site-logo {
  min-width: 80px;
  min-height: 36px;
  border: 0;
  background: transparent;
  color: inherit;
  font-size: inherit;
}

.logo.site-logo .site-logo__text {
  min-width: 80px;
  min-height: 37px;
  border: 0;
  border-radius: 5px;
  padding: 1px 7px 2px;
  background: var(--brand-primary);
  color: #fff;
  font-size: 25px;
  font-weight: 800;
  line-height: 1;
  box-shadow: none;
  outline: 0;
}

body.theme-dark .logo.site-logo .site-logo__text {
  border: 0;
  background: var(--brand-primary);
  color: #fff;
  box-shadow: none;
}

.logo.site-logo--has-image {
  width: min(180px, 22vw);
  height: 52px;
}

.login-logo.site-logo {
  height: auto;
  min-width: 53px;
  min-height: 24px;
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  font-size: inherit;
}

.login-logo.site-logo .site-logo__text {
  min-width: 53px;
  min-height: 24px;
  border-radius: 3px;
  padding: 3px 5px;
  font-size: 16px;
  font-weight: 800;
}

.login-logo.site-logo--has-image {
  width: min(190px, 72vw);
  height: 52px;
}

.email-verification-brand.site-logo,
.email-pending-brand.site-logo {
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
}

.email-verification-brand.site-logo .site-logo__text,
.email-pending-brand.site-logo .site-logo__text {
  min-height: 32px;
  border-radius: 7px;
  padding: 5px 14px;
  font-size: 18px;
  font-weight: 800;
}

@media (max-width: 680px) {
  .logo.site-logo {
    min-width: 54px;
    min-height: 26px;
  }

  .logo.site-logo .site-logo__text {
    min-width: 54px;
    min-height: 26px;
    border: 0;
    border-radius: 5px;
    padding: 1px 5px 2px;
    font-size: 18px;
  }

  .logo.site-logo--has-image {
    width: min(96px, 28vw);
    height: 34px;
  }

  .auth-modal .login-logo.site-logo--has-image,
  .login-card .login-logo.site-logo--has-image {
    width: min(170px, 62vw);
    height: 44px;
  }
}

/* Daily check-in: shared public entry points and live AJAX state. */
.nav-user-balance strong,
.nav-user-balance-breakdown strong {
  color: inherit;
  font: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
}

.nav-checkin-popover {
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
}

.checkin-control-text {
  font-size: var(--fyg-font-medium, 15px) !important;
  font-style: normal;
  font-weight: 800 !important;
  line-height: var(--fyg-line-medium, 1.55) !important;
  letter-spacing: 0;
}

.nav-daily-checkin {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 0;
  min-height: 34px;
  padding: 3px 10px !important;
  border: 1px solid rgba(255, 255, 255, .44) !important;
  border-radius: 999px;
  background: rgba(255, 255, 255, .16) !important;
  color: inherit;
  font-size: 15px;
  font-weight: 800 !important;
  line-height: 1 !important;
  text-shadow: inherit;
  white-space: nowrap;
  box-shadow: 0 5px 16px rgba(18, 25, 38, .10);
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease, transform 160ms ease;
}

.nav-daily-checkin::before {
  content: attr(data-language-symbol);
  display: inline-flex;
  flex: 0 0 20px;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--brand-primary-bright), var(--brand-primary));
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  text-shadow: none;
  box-shadow: 0 3px 8px rgba(var(--brand-primary-rgb), .25);
}

.nav-daily-checkin:hover,
.nav-daily-checkin:focus-visible {
  transform: translateY(-1px);
}

.nav-daily-checkin__copy {
  color: inherit;
  font-size: var(--fyg-font-medium, 15px) !important;
  font-weight: 800;
  line-height: var(--fyg-line-medium, 1.55) !important;
}

.nav-daily-checkin__copy > span {
  display: inline;
}

.nav-daily-checkin.is-checked {
  border-color: rgba(68, 190, 128, .72) !important;
  background: rgba(33, 160, 99, .18) !important;
}

.nav-daily-checkin.is-checked::before {
  content: "✓";
  background: #22a66f;
  box-shadow: 0 3px 8px rgba(34, 166, 111, .22);
}

.nav-daily-checkin.is-unavailable {
  opacity: .78;
}

.nav-checkin-calendar[hidden] {
  display: none !important;
}

.nav-checkin-calendar {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 10030;
  box-sizing: border-box;
  width: 324px;
  padding: 14px;
  border: 1px solid var(--brand-primary-border-muted);
  border-radius: 14px;
  background: #fff;
  color: #263244;
  text-align: left;
  text-shadow: none;
  box-shadow: 0 18px 48px rgba(26, 31, 43, .22);
}

.nav-checkin-calendar::before {
  position: absolute;
  top: -7px;
  right: 48px;
  width: 13px;
  height: 13px;
  border-top: 1px solid var(--brand-primary-border-muted);
  border-left: 1px solid var(--brand-primary-border-muted);
  content: "";
  background: #fff;
  transform: rotate(45deg);
}

.nav-checkin-calendar__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 1px 1px 8px;
}

.nav-checkin-calendar__header > div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.nav-checkin-calendar__header strong {
  color: #202b3b;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.35;
}

.nav-checkin-calendar__header span,
.nav-checkin-calendar__empty {
  color: #7b8799;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.6;
}

.nav-checkin-calendar .checkin-period-calendar__toolbar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px;
  margin-bottom: 8px;
}

.nav-checkin-calendar .checkin-period-calendar__tabs,
.nav-checkin-calendar .checkin-period-calendar__navigation {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.nav-checkin-calendar .checkin-period-calendar__tabs {
  padding: 2px;
  border-radius: 7px;
  background: #f3f5f8;
}

.nav-actions .nav-checkin-calendar .checkin-period-calendar__toolbar button,
.nav-actions .nav-checkin-calendar .checkin-period-calendar__month-card {
  appearance: none;
  width: auto;
  min-width: 0;
  height: auto;
  margin: 0;
  border: 1px solid transparent;
  background: transparent;
  color: #354154;
  font: inherit;
  text-shadow: none;
  cursor: pointer;
}

.nav-actions .nav-checkin-calendar .checkin-period-calendar__tabs button {
  min-height: 28px;
  padding: 4px 8px;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}

.nav-actions .nav-checkin-calendar .checkin-period-calendar__tabs button.is-active {
  background: var(--pink);
  color: #fff;
}

.nav-checkin-calendar .checkin-period-calendar__navigation {
  justify-content: center;
  gap: 4px;
}

.nav-actions .nav-checkin-calendar .checkin-period-calendar__navigation button,
.nav-actions .nav-checkin-calendar .checkin-period-calendar__current {
  display: inline-grid;
  min-width: 28px;
  min-height: 28px;
  padding: 3px 6px;
  border-color: #dfe4eb;
  border-radius: 6px;
  background: #fff;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  place-items: center;
}

.nav-checkin-calendar .checkin-period-calendar__navigation strong {
  min-width: 72px;
  color: #263244;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
  text-align: center;
  white-space: nowrap;
}

.nav-actions .nav-checkin-calendar .checkin-period-calendar__toolbar button:disabled,
.nav-actions .nav-checkin-calendar .checkin-period-calendar__month-card:disabled {
  cursor: not-allowed;
  opacity: .4;
}

.nav-actions .nav-checkin-calendar .checkin-period-calendar__toolbar button:focus-visible,
.nav-actions .nav-checkin-calendar .checkin-period-calendar__month-card:focus-visible {
  outline: 2px solid rgba(var(--brand-primary-rgb), .32);
  outline-offset: 2px;
}

.nav-checkin-calendar .checkin-period-calendar__content[aria-busy="true"] {
  opacity: .55;
  pointer-events: none;
}

.nav-checkin-calendar .checkin-period-calendar__weekdays,
.nav-checkin-calendar .checkin-period-calendar__days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
}

.nav-checkin-calendar .checkin-period-calendar__weekdays {
  margin-bottom: 4px;
}

.nav-checkin-calendar .checkin-period-calendar__weekdays span {
  color: #929cac;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.6;
  text-align: center;
}

.nav-checkin-calendar .checkin-period-calendar__days {
  margin: 0 0 7px;
  padding: 0;
  list-style: none;
}

.nav-checkin-calendar .checkin-period-calendar__day {
  position: relative;
  display: grid;
  min-width: 0;
  height: 32px;
  border: 1px solid transparent;
  border-radius: 9px;
  color: #4d596b;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  place-items: center;
}

.nav-checkin-calendar .checkin-period-calendar__day.is-empty {
  pointer-events: none;
}

.nav-checkin-calendar .checkin-period-calendar__day.is-today {
  border-color: rgba(var(--brand-primary-rgb), .48);
  color: var(--pink);
  box-shadow: inset 0 0 0 1px rgba(var(--brand-primary-rgb), .08);
}

.nav-checkin-calendar .checkin-period-calendar__day.is-checked {
  border-color: #d7f1e4;
  background: #e9f8f0;
  color: #168354;
  font-weight: 800;
}

.nav-checkin-calendar .checkin-period-calendar__day.is-checked::after {
  position: absolute;
  right: 1px;
  bottom: 1px;
  display: grid;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  content: "✓";
  background: #22a66f;
  color: #fff;
  font-size: 8px;
  font-weight: 900;
  line-height: 1;
  place-items: center;
}

.nav-checkin-calendar .checkin-period-calendar__day.is-future {
  color: #b7bfcb;
  opacity: .72;
}

.nav-checkin-calendar .checkin-period-calendar__year {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 8px;
}

.nav-actions .nav-checkin-calendar .checkin-period-calendar__month-card {
  display: grid;
  width: 100%;
  gap: 3px;
  min-height: 52px;
  padding: 6px;
  border-color: #e1e6ed;
  border-radius: 7px;
  background: #f8f9fb;
  text-align: center;
}

.nav-checkin-calendar .checkin-period-calendar__month-card span,
.nav-checkin-calendar .checkin-period-calendar__month-card strong {
  font-size: 12px;
  line-height: 1.35;
}

.nav-checkin-calendar .checkin-period-calendar__month-card strong {
  color: #263244;
  font-weight: 800;
}

.nav-actions .nav-checkin-calendar .checkin-period-calendar__month-card.is-current {
  border-color: rgba(var(--brand-primary-rgb), .42);
  background: var(--brand-primary-soft);
}

.nav-checkin-calendar .checkin-period-calendar__error {
  margin: 7px 0;
  color: #b42358;
  font-size: 12px;
  line-height: 1.6;
  text-align: center;
}

.nav-actions .nav-checkin-calendar__details {
  flex: 0 0 auto;
  width: auto;
  height: auto;
  min-height: 0;
  min-width: 0;
  padding: 2px 0;
  border: 0;
  background: transparent;
  color: var(--pink) !important;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.6;
  text-decoration: none;
  text-shadow: none;
  white-space: nowrap;
}

.nav-actions .nav-checkin-calendar__details:hover,
.nav-actions .nav-checkin-calendar__details:focus-visible {
  color: var(--brand-primary-hover);
  text-decoration: underline;
}

.nav-checkin-calendar__table {
  width: calc(100% + 8px);
  margin: 0 -4px 8px;
  border-collapse: separate;
  border-spacing: 4px;
  table-layout: fixed;
}

.nav-checkin-calendar__table th {
  height: 22px;
  padding: 0;
  color: #929cac;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.6;
  text-align: center;
}

.nav-checkin-calendar__day {
  height: 32px;
  padding: 0;
  color: #4d596b;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  text-align: center;
}

.nav-checkin-calendar__day time {
  position: relative;
  display: grid;
  width: 32px;
  height: 32px;
  margin: auto;
  border: 1px solid transparent;
  border-radius: 10px;
  place-items: center;
}

.nav-checkin-calendar__day.is-today time {
  border-color: rgba(var(--brand-primary-rgb), .48);
  color: var(--pink);
  box-shadow: inset 0 0 0 1px rgba(var(--brand-primary-rgb), .08);
}

.nav-checkin-calendar__day.is-checked time {
  border-color: #d7f1e4;
  background: #e9f8f0;
  color: #168354;
  font-weight: 800;
}

.nav-checkin-calendar__day.is-checked time::after {
  position: absolute;
  right: 1px;
  bottom: 0;
  display: grid;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  content: "✓";
  background: #22a66f;
  color: #fff;
  font-size: 8px;
  font-weight: 900;
  line-height: 1;
  place-items: center;
}

.nav-checkin-calendar__day.is-future {
  color: #b7bfcb;
  opacity: .72;
}

.nav-checkin-calendar__day.is-empty {
  pointer-events: none;
}

.nav-checkin-calendar__empty {
  margin: 8px 0 12px;
  padding: 18px 12px;
  border-radius: 9px;
  background: #f7f8fa;
  text-align: center;
}

.nav-checkin-calendar__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 2px;
  padding: 10px 2px 9px;
  border-top: 1px solid #edf0f4;
  color: #697589;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.6;
}

.nav-checkin-calendar__summary strong {
  color: #293548;
  font: inherit;
  font-weight: 800;
}

.nav-actions .nav-checkin-calendar__action {
  display: flex !important;
  width: 100%;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 7px 14px;
  border: 0;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--brand-primary-bright), var(--brand-primary));
  color: #fff;
  font-size: var(--fyg-font-medium, 15px);
  font-weight: 800;
  line-height: 1.55;
  text-shadow: none;
  box-shadow: 0 8px 18px rgba(var(--brand-primary-rgb), .20);
  cursor: pointer;
}

.nav-checkin-calendar__action-secondary {
  padding-left: 8px;
  border-left: 1px solid rgba(255, 255, 255, .45);
  color: inherit;
  font-size: var(--fyg-font-medium, 15px) !important;
  font-weight: 800;
  line-height: var(--fyg-line-medium, 1.55) !important;
}

.nav-actions .nav-checkin-calendar__action.is-checked {
  background: #22a66f;
  box-shadow: 0 8px 18px rgba(34, 166, 111, .17);
}

.nav-actions .nav-checkin-calendar__action:disabled,
.nav-actions .nav-checkin-calendar__action.is-unavailable {
  cursor: default;
  opacity: .72;
}

.nav-actions .nav-checkin-calendar__action.is-loading {
  cursor: wait;
  opacity: .72;
}

.detail-nav .nav-daily-checkin,
.topnav.is-scrolled .nav-daily-checkin {
  border-color: rgba(var(--brand-primary-rgb), .28) !important;
  background: var(--brand-primary-surface) !important;
  color: var(--pink) !important;
  text-shadow: none;
}

.detail-nav .nav-daily-checkin.is-checked,
.topnav.is-scrolled .nav-daily-checkin.is-checked {
  border-color: rgba(34, 166, 111, .38) !important;
  background: #effaf5 !important;
  color: #147a4e !important;
}

body.theme-dark .detail-nav .nav-daily-checkin,
body.theme-dark .topnav.is-scrolled .nav-daily-checkin {
  border-color: rgba(var(--brand-primary-rgb), .34) !important;
  background: var(--brand-primary-dark-soft) !important;
  color: var(--brand-primary-light) !important;
}

body.theme-dark .detail-nav .nav-daily-checkin.is-checked,
body.theme-dark .topnav.is-scrolled .nav-daily-checkin.is-checked {
  border-color: rgba(91, 219, 157, .42) !important;
  background: #173b2d !important;
  color: #78e2ae !important;
}

body.theme-dark .nav-checkin-calendar {
  border-color: #444c5c;
  background: #242a35;
  color: #f1f4f8;
  box-shadow: 0 20px 52px rgba(0, 0, 0, .46);
}

body.theme-dark .nav-checkin-calendar::before {
  border-color: #444c5c;
  background: #242a35;
}

body.theme-dark .nav-checkin-calendar__header strong,
body.theme-dark .nav-checkin-calendar__summary strong {
  color: #f4f6fa;
}

body.theme-dark .nav-checkin-calendar__header span,
body.theme-dark .nav-checkin-calendar__empty,
body.theme-dark .nav-checkin-calendar__summary {
  color: #aeb7c6;
}

body.theme-dark .nav-checkin-calendar__table th {
  color: #929dac;
}

body.theme-dark .nav-checkin-calendar__day {
  color: #dce2ea;
}

body.theme-dark .nav-checkin-calendar__day.is-today time {
  border-color: rgba(var(--brand-primary-rgb), .62);
  color: var(--brand-primary-light);
  box-shadow: inset 0 0 0 1px rgba(var(--brand-primary-rgb), .10);
}

body.theme-dark .nav-checkin-calendar__day.is-checked time {
  border-color: rgba(57, 190, 125, .46);
  background: rgba(34, 166, 111, .20);
  color: #75dfad;
}

body.theme-dark .nav-checkin-calendar__day.is-future {
  color: #747e8e;
}

body.theme-dark .nav-checkin-calendar__summary {
  border-color: #3a424f;
}

body.theme-dark .nav-checkin-calendar__empty {
  background: #1d222c;
}

body.theme-dark .nav-actions .nav-checkin-calendar__details {
  color: var(--brand-primary-light) !important;
}

body.theme-dark .nav-checkin-calendar .checkin-period-calendar__tabs {
  background: #1d222c;
}

body.theme-dark .nav-actions .nav-checkin-calendar .checkin-period-calendar__toolbar button,
body.theme-dark .nav-actions .nav-checkin-calendar .checkin-period-calendar__month-card {
  color: #dce2ea;
}

body.theme-dark .nav-actions .nav-checkin-calendar .checkin-period-calendar__navigation button,
body.theme-dark .nav-actions .nav-checkin-calendar .checkin-period-calendar__current {
  border-color: #444c5c;
  background: #202630;
}

body.theme-dark .nav-checkin-calendar .checkin-period-calendar__navigation strong,
body.theme-dark .nav-checkin-calendar .checkin-period-calendar__month-card strong {
  color: #f4f6fa;
}

body.theme-dark .nav-checkin-calendar .checkin-period-calendar__weekdays span {
  color: #929dac;
}

body.theme-dark .nav-checkin-calendar .checkin-period-calendar__day {
  color: #dce2ea;
}

body.theme-dark .nav-checkin-calendar .checkin-period-calendar__day.is-today {
  border-color: rgba(var(--brand-primary-rgb), .62);
  color: var(--brand-primary-light);
  box-shadow: inset 0 0 0 1px rgba(var(--brand-primary-rgb), .10);
}

body.theme-dark .nav-checkin-calendar .checkin-period-calendar__day.is-checked {
  border-color: rgba(57, 190, 125, .46);
  background: rgba(34, 166, 111, .20);
  color: #75dfad;
}

body.theme-dark .nav-checkin-calendar .checkin-period-calendar__day.is-future {
  color: #747e8e;
}

body.theme-dark .nav-actions .nav-checkin-calendar .checkin-period-calendar__month-card {
  border-color: #3f4755;
  background: #1d222c;
}

body.theme-dark .nav-actions .nav-checkin-calendar .checkin-period-calendar__month-card.is-current {
  border-color: rgba(var(--brand-primary-rgb), .48);
  background: var(--brand-primary-dark-soft);
}

body.theme-dark .nav-checkin-calendar .checkin-period-calendar__error {
  color: var(--brand-primary-light);
}

@media (min-width: 681px) and (max-width: 900px) {
  .topnav,
  .home-body .topnav {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 0;
  }

  .topnav > .logo,
  .home-body .topnav > .logo {
    grid-column: 2;
    grid-row: 1;
    justify-self: center;
  }

  .topnav > .menu-btn,
  .home-body .topnav > .menu-btn {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
  }

  .topnav > .nav-actions,
  .topnav > .nav-actions.is-open {
    grid-column: 3;
    grid-row: 1;
    display: flex;
    min-width: 0;
    width: auto;
    justify-self: end;
    border: 0;
    background: transparent;
    padding: 0;
  }
}

.home-checkin-card {
  display: grid;
  grid-template-columns: minmax(230px, 1.15fr) minmax(235px, .9fr) minmax(245px, 1fr) auto;
  align-items: center;
  gap: 18px;
  width: min(1180px, calc(100% - 48px));
  min-width: 0;
  margin: 0 auto 22px;
  padding: 16px 18px;
  border: 1px solid var(--brand-primary-border);
  border-radius: 12px;
  background: linear-gradient(135deg, var(--brand-primary-surface) 0%, #fff 58%, #fffaf1 100%);
  color: #263244;
  box-shadow: 0 8px 24px rgba(77, 46, 65, .07);
}

.home-checkin-card [hidden],
.mobile-account-checkin[hidden],
.mobile-tabbar__checkin-dot[hidden] {
  display: none !important;
}

.home-checkin-card__intro {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.home-checkin-card__coin {
  display: inline-flex;
  flex: 0 0 48px;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--brand-primary-bright), var(--brand-primary-hover));
  color: #fff;
  font-size: 15px;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 7px 18px rgba(var(--brand-primary-rgb), .22);
}

.home-checkin-card__intro h2 {
  margin: 0;
  color: #121c2c;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.55;
}

.home-checkin-card__intro p,
.home-checkin-card__recommendation {
  margin: 3px 0 0;
  color: #7d8793;
  font-size: 12px;
  line-height: 1.6;
}

.home-checkin-card__stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  min-width: 0;
}

.home-checkin-card__stats span {
  color: #6c7684;
  font-size: 12px;
  line-height: 1.6;
  text-align: center;
  white-space: nowrap;
}

.home-checkin-card__stats strong {
  color: #172033;
  font-size: 15px;
  font-weight: 800;
}

.home-checkin-card__progress {
  min-width: 0;
}

.home-checkin-card__progress-copy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 7px;
  color: #6e7886;
  font-size: 12px;
  line-height: 1.6;
}

.home-checkin-card__progress-copy > span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.home-checkin-card__progress-copy a,
.home-checkin-card__recommendation a {
  flex: none;
  color: var(--pink);
  font-weight: 800;
  text-decoration: none;
}

.home-checkin-card__progress-track {
  display: block;
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: #eceff3;
}

.home-checkin-card__progress-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand-primary-bright), var(--brand-primary));
  transition: width 220ms ease;
}

.home-checkin-card__action,
.home-checkin-card__login,
.mobile-account-checkin {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 7px 18px;
  border: 0;
  border-radius: 999px;
  background: var(--pink);
  color: #fff !important;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.1;
  text-align: center;
  text-decoration: none !important;
  white-space: nowrap;
  box-shadow: 0 7px 18px rgba(var(--brand-primary-rgb), .18);
}

.home-checkin-card__action small,
.mobile-account-checkin small {
  margin-top: 3px;
  color: inherit;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.15;
  opacity: .92;
}

.home-checkin-card__action.is-checked,
.mobile-account-checkin.is-checked {
  background: #22a66f;
  box-shadow: 0 7px 18px rgba(34, 166, 111, .16);
}

.home-checkin-card__action.is-unavailable,
.mobile-account-checkin.is-unavailable {
  background: #8e98a6;
  box-shadow: none;
}

.home-checkin-card__login {
  grid-column: 4;
  min-width: 126px;
}

.home-checkin-card__recommendation {
  grid-column: 1 / -1;
  margin-top: -7px;
  text-align: center;
}

.mobile-account-checkin {
  width: 100%;
  min-height: 50px;
  margin-top: 12px;
  box-sizing: border-box;
  border-radius: 6px;
  white-space: normal;
}

.mobile-account-checkin small {
  max-width: 100%;
  overflow-wrap: anywhere;
}

.mobile-account-card {
  max-height: calc(100dvh - 92px);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.mobile-tabbar__mine {
  position: relative;
}

.mobile-tabbar__checkin-dot {
  position: absolute;
  top: 4px;
  left: calc(50% + 8px);
  width: 8px;
  height: 8px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #ff2b62;
  box-sizing: content-box;
  box-shadow: 0 1px 5px rgba(193, 15, 64, .36);
}

body.theme-dark .home-checkin-card {
  border-color: #3b3540;
  background: linear-gradient(135deg, #2b2028 0%, #242424 58%, #2c281f 100%);
  color: #e4e8ee;
  box-shadow: 0 10px 26px rgba(0, 0, 0, .22);
}

body.theme-dark .home-checkin-card__intro h2,
body.theme-dark .home-checkin-card__stats strong {
  color: #f4f6f9;
}

body.theme-dark .home-checkin-card__intro p,
body.theme-dark .home-checkin-card__recommendation,
body.theme-dark .home-checkin-card__stats span,
body.theme-dark .home-checkin-card__progress-copy {
  color: #b4bdc9;
}

body.theme-dark .home-checkin-card__progress-track {
  background: #414650;
}

body.theme-dark .mobile-tabbar__checkin-dot {
  border-color: #181818;
}

.account-vip-checkin-note {
  margin: 16px auto 0;
  padding: 10px 12px;
  border: 1px solid #edf0f5;
  border-radius: 7px;
  background: #fff;
  color: #738094;
  font-size: 12px;
  line-height: 1.6;
  text-align: center;
  overflow-wrap: anywhere;
}

#latestTitle {
  scroll-margin-top: 88px;
}

[data-daily-checkin-action].is-loading {
  opacity: .62;
  pointer-events: none;
}

@media (max-width: 1100px) and (min-width: 681px) {
  .home-checkin-card {
    grid-template-columns: minmax(220px, 1fr) minmax(220px, 1fr) auto;
  }

  .home-checkin-card__stats {
    display: none;
  }

  .home-checkin-card__login {
    grid-column: 3;
  }
}

@media (max-width: 680px) {
  .daily-poetry {
    display: block;
    width: calc(100% - 24px);
    min-height: 72px;
    margin-top: 12px;
    padding: 12px 14px 10px;
    border-radius: 12px;
  }

  .daily-poetry blockquote {
    font-size: 14px;
    line-height: 1.55;
  }

  .daily-poetry cite {
    display: block;
    margin-top: 3px;
    font-size: 12px;
    line-height: 1.6;
    white-space: normal;
  }
}

/* Embedded real-time support panel and chat attachments. */
.float-live-chat-layer[hidden] {
  display: none !important;
}

.float-live-chat-layer {
  position: fixed;
  inset: 0;
  z-index: 10010;
  pointer-events: none;
}

.float-live-chat-layer__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  background: transparent;
  pointer-events: none;
}

.float-live-chat-panel {
  position: fixed;
  right: 70px;
  bottom: 48px;
  width: min(380px, calc(100vw - 92px));
  height: min(560px, calc(100dvh - 80px));
  min-height: min(360px, calc(100dvh - 80px));
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  box-shadow: 0 20px 55px rgba(18, 31, 48, 0.24);
  opacity: 0;
  overflow: hidden;
  pointer-events: auto;
  transform: translateX(10px) scale(0.985);
  transform-origin: right center;
  transition: opacity 160ms ease, transform 180ms ease;
}

.float-live-chat-layer.is-open .float-live-chat-panel {
  opacity: 1;
  transform: translateX(0) scale(1);
}

.live-chat-page--floating {
  width: 100%;
  height: 100%;
  min-height: 0 !important;
  border: 0;
  border-radius: inherit;
  box-shadow: none;
}

.live-chat-heading--floating {
  position: relative;
  align-items: center !important;
  flex: 0 0 auto;
  flex-direction: row !important;
  gap: 8px;
  padding: 11px 38px 11px 12px !important;
}

.live-chat-heading--floating h2 {
  white-space: nowrap;
  word-break: keep-all;
}

.live-chat-heading h2 {
  margin: 0;
  color: var(--live-chat-text);
  font-size: 20px;
  line-height: 1.35;
}

.live-chat-heading--floating > div:first-child {
  min-width: 0;
  flex: 1 1 auto;
}

.live-chat-heading--floating .live-chat-heading__actions {
  width: auto !important;
  flex: 0 0 auto;
  flex-wrap: nowrap;
  gap: 5px;
}

.live-chat-heading--floating .live-chat-connection,
.live-chat-heading--floating .live-chat-close,
.live-chat-heading--floating .live-chat-reopen {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  height: 28px;
  min-height: 28px;
  padding: 0 9px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.live-chat-heading--floating .live-chat-connection[data-state="online"] {
  border-color: rgba(32, 201, 151, 0.2);
}

.live-chat-heading--floating .live-chat-close {
  border-color: rgba(239, 71, 111, 0.18);
}

.live-chat-heading--floating .live-chat-close[hidden],
.live-chat-heading--floating .live-chat-reopen[hidden] {
  display: none !important;
}

.live-chat-heading .float-live-chat-panel__close {
  position: absolute;
  top: 7px;
  right: 8px;
  display: grid;
  width: 24px;
  min-width: 24px;
  height: 24px;
  min-height: 24px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--live-chat-muted);
  font-size: 20px;
  font-weight: 400;
  line-height: 1;
}

.live-chat-page--floating .live-chat-conversation,
.live-chat-page--floating .live-chat-messages {
  min-height: 0 !important;
}

.live-chat-page--floating .live-chat-messages {
  padding: 14px 12px;
}

.live-chat-page--floating .live-chat-compose {
  flex: 0 0 auto;
  padding: 10px 11px 11px;
}

.live-chat-page--floating .live-chat-compose textarea {
  min-height: 58px;
  max-height: 110px;
  resize: none;
}

.live-chat-page--floating .live-chat-compose__footer {
  align-items: center;
  flex-direction: row;
  gap: 8px;
}

.live-chat-page--floating .live-chat-compose__footer > span {
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.live-chat-page--floating .live-chat-compose__footer > button {
  width: auto;
  min-width: 72px;
}

.live-chat-message__bubble {
  display: grid;
  max-width: 100%;
  gap: 8px;
  padding: 10px 13px;
  border: 1px solid var(--live-chat-line);
  border-radius: 5px 13px 13px 13px;
  background: #fff;
  color: var(--live-chat-text);
  box-shadow: 0 3px 9px rgba(16, 24, 40, 0.035);
}

.live-chat-message.is-own .live-chat-message__bubble {
  border-color: transparent;
  border-radius: 13px 5px 13px 13px;
  background: var(--pink);
  color: #fff;
}

.live-chat-message .live-chat-message__bubble > .live-chat-message__text {
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font-size: 14px;
  line-height: 1.55;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  box-shadow: none;
}

.live-chat-attachment-picker {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  flex-direction: column-reverse;
  gap: 8px;
  margin-top: 8px;
}

.live-chat-attachment-picker__button {
  display: inline-flex;
  min-height: 34px;
  flex: 0 0 auto;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
  border: 1px solid var(--live-chat-line);
  border-radius: 7px;
  background: var(--live-chat-muted-bg);
  color: var(--live-chat-text);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}

.live-chat-attachment-picker__button:hover,
.live-chat-attachment-picker__button:focus-within {
  border-color: var(--pink);
  color: var(--pink);
}

.live-chat-attachment-picker__button.is-disabled {
  cursor: not-allowed;
  opacity: 0.5;
  pointer-events: none;
}

.live-chat-attachment-picker__button input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
}

.live-chat-attachment-picker__button svg {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  fill: currentColor;
}

.live-chat-pending-attachment {
  width: 100%;
  min-width: 0;
  flex: 0 0 auto;
}

.live-chat-pending-attachment[hidden] {
  display: none !important;
}

.live-chat-pending-file {
  display: grid;
  min-width: 0;
  grid-template-columns: 34px minmax(0, 1fr) 28px;
  align-items: center;
  gap: 7px;
  padding: 4px 5px;
  border: 1px solid var(--live-chat-line);
  border-radius: 7px;
  background: var(--live-chat-muted-bg);
}

.live-chat-pending-file__thumb,
.live-chat-pending-file__archive {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 5px;
  background: #fff;
  color: var(--pink);
  font-size: 9px;
  font-weight: 800;
  object-fit: cover;
}

.live-chat-pending-file__meta {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.live-chat-pending-file__meta strong,
.live-chat-pending-file__meta small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.live-chat-pending-file__meta strong {
  color: var(--live-chat-text);
  font-size: 12px;
}

.live-chat-pending-file__meta small {
  color: var(--live-chat-muted);
  font-size: 11px;
}

.live-chat-pending-file__progress {
  display: grid;
  min-width: 0;
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px;
}

.live-chat-pending-file__progress-track {
  display: block;
  height: 5px;
  min-width: 0;
  overflow: hidden;
  border-radius: 999px;
  background: #dfe5ed;
}

.live-chat-pending-file__progress-track > i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--pink);
  transition: width 0.12s linear;
}

.live-chat-pending-file__progress > small {
  min-width: 92px;
  color: var(--live-chat-muted);
  font-size: 11px;
  line-height: 1.35;
  text-align: right;
  white-space: nowrap;
}

.live-chat-pending-file__progress.is-indeterminate .live-chat-pending-file__progress-track > i {
  width: 35% !important;
  animation: live-chat-upload-progress 1s ease-in-out infinite;
}

.live-chat-pending-attachment.is-error .live-chat-pending-file__progress-track > i {
  background: #d33557;
}

.live-chat-pending-attachment.is-ready .live-chat-pending-file__progress-track > i {
  background: #20c997;
}

.live-chat-pending-attachment.is-ready .live-chat-pending-file__progress > small {
  color: #087a58;
  font-weight: 700;
}

@keyframes live-chat-upload-progress {
  from { transform: translateX(-115%); }
  to { transform: translateX(290%); }
}

.live-chat-compose .live-chat-pending-file__remove {
  display: grid;
  width: 28px;
  min-width: 28px;
  height: 28px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--live-chat-muted);
  box-shadow: none;
  font-size: 19px;
  font-weight: 400;
  appearance: none;
  -webkit-appearance: none;
  -webkit-tap-highlight-color: transparent;
}

.live-chat-compose .live-chat-pending-file__remove:hover,
.live-chat-compose .live-chat-pending-file__remove:focus-visible {
  background: transparent;
  box-shadow: none;
  color: var(--pink);
  outline: 0;
}

.live-chat-attachment {
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.live-chat-attachment--image {
  position: relative;
  display: inline-grid;
  width: 88px;
  height: 88px;
  max-width: 100%;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--live-chat-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.16);
  box-sizing: border-box;
  vertical-align: top;
}

.live-chat-attachment--image img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  border-radius: 7px;
  object-fit: cover;
}

.live-chat-attachment__zoom-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(255, 255, 255, 0.84);
  border-radius: 50%;
  background: rgba(18, 26, 38, 0.58);
  color: #fff;
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
  pointer-events: none;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.32);
}

.live-chat-attachment--archive {
  display: grid;
  min-width: min(260px, 100%);
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border: 1px solid var(--live-chat-line);
  border-radius: 8px;
  background: var(--live-chat-muted-bg);
}

.live-chat-message.is-own .live-chat-attachment--archive {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.14);
}

.live-chat-attachment__icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 7px;
  background: rgba(var(--brand-primary-rgb), 0.12);
  color: var(--pink);
  font-size: 10px;
  font-weight: 800;
}

.live-chat-message.is-own .live-chat-attachment__icon {
  background: rgba(255, 255, 255, 0.19);
  color: #fff;
}

.live-chat-attachment__meta {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.live-chat-attachment__meta strong,
.live-chat-attachment__meta small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.live-chat-attachment__meta strong {
  font-size: 12px;
}

.live-chat-attachment__meta small,
.live-chat-attachment__action {
  color: var(--live-chat-muted);
  font-size: 11px;
}

.live-chat-message.is-own .live-chat-attachment__meta small,
.live-chat-message.is-own .live-chat-attachment__action {
  color: rgba(255, 255, 255, 0.82);
}

.live-chat-attachment__action {
  font-weight: 700;
}

body.theme-dark .float-live-chat-panel {
  border-color: #36404c;
  background: #20262e;
  box-shadow: 0 20px 58px rgba(0, 0, 0, 0.55);
}

body.theme-dark .live-chat-heading--floating .live-chat-connection[data-state="online"] {
  border-color: rgba(117, 226, 189, 0.24);
  background: rgba(32, 201, 151, 0.13);
  color: #75e2bd;
}

body.theme-dark .live-chat-heading--floating .live-chat-close {
  border-color: rgba(255, 139, 166, 0.24);
}

body.theme-dark .live-chat-message.is-other .live-chat-message__bubble,
body.theme-dark .live-chat-pending-file,
body.theme-dark .live-chat-attachment--archive {
  border-color: #3a4552;
  background: #252d36;
  color: #edf3f8;
}

body.theme-dark .live-chat-pending-file__thumb,
body.theme-dark .live-chat-pending-file__archive {
  background: #313b46;
}

body.theme-dark .live-chat-pending-file__progress-track {
  background: #46515e;
}

body.theme-dark .live-chat-pending-attachment.is-ready .live-chat-pending-file__progress > small {
  color: #75e2bd;
}

@media (prefers-reduced-motion: reduce) {
  .live-chat-pending-file__progress-track > i {
    transition: none;
  }

  .live-chat-pending-file__progress.is-indeterminate .live-chat-pending-file__progress-track > i {
    animation: none;
  }
}

@media (max-width: 680px) {
  /* The chat is a floating tool, not a modal: exposed page content must keep
   * receiving vertical swipe gestures while the panel remains open. */
  .float-live-chat-layer__backdrop {
    background: transparent;
    pointer-events: none;
  }

  .float-live-chat-panel {
    top: max(12px, env(safe-area-inset-top));
    right: 82px;
    bottom: max(12px, env(safe-area-inset-bottom));
    left: 12px;
    width: auto;
    height: auto;
    min-height: 0;
    border-radius: 10px;
  }

  .live-chat-heading--floating {
    padding: 9px 36px 9px 10px !important;
  }

  .live-chat-heading--floating h2 {
    font-size: 17px;
  }

  .live-chat-page--floating .live-chat-conversation {
    min-height: 0 !important;
  }

  .live-chat-page--floating .live-chat-compose__footer {
    align-items: center;
    flex-direction: row;
  }

  .live-chat-page--floating .live-chat-compose__footer > button {
    width: auto;
  }

  .live-chat-attachment-picker {
    align-items: flex-start;
  }

  .live-chat-attachment--image img {
    width: 100%;
  }
}

@media (max-width: 380px) {
  .float-live-chat-panel {
    top: max(8px, env(safe-area-inset-top));
    right: 70px;
    bottom: max(8px, env(safe-area-inset-bottom));
    left: 8px;
  }
}

/* Administrator customer-service window on public pages.  Keep these rules
 * scoped to the administrator modifiers: the regular member window and the
 * full administrator page intentionally retain their existing layouts. */
.float-live-chat-panel--admin {
  width: min(760px, calc(100vw - 96px));
  height: min(640px, calc(100dvh - 72px));
  min-height: min(440px, calc(100dvh - 72px));
}

.live-chat-page--floating-admin {
  --live-chat-floating-toolbar-height: 51px;
}

.live-chat-page--floating-admin .live-chat-admin-layout--floating {
  --live-chat-admin-queue-width: clamp(190px, 27%, 220px);
  display: grid;
  position: relative;
  min-width: 0;
  min-height: 0;
  flex: 1 1 auto;
  grid-template-columns: var(--live-chat-admin-queue-width) minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
}

.live-chat-page--floating-admin .live-chat-queue__filter--floating {
  display: grid;
  min-width: 0;
  grid-row: 1;
  grid-column: 1;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 5px;
  margin: 0;
  padding: 8px;
  background: var(--live-chat-bg);
}

.live-chat-page--floating-admin .live-chat-queue__filter--floating,
.live-chat-page--floating-admin .live-chat-heading--floating {
  height: var(--live-chat-floating-toolbar-height);
  min-height: var(--live-chat-floating-toolbar-height);
  max-height: var(--live-chat-floating-toolbar-height);
  box-sizing: border-box;
}

.live-chat-page--floating-admin .live-chat-heading--floating {
  flex: 0 0 var(--live-chat-floating-toolbar-height);
}

.live-chat-page--floating-admin .live-chat-queue-controls {
  position: absolute;
  top: calc(50% + 25.5px);
  left: var(--live-chat-admin-queue-width);
  z-index: 5;
  display: grid;
  width: 26px;
  height: 38px;
  box-sizing: border-box;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transform: translate(-50%, -50%);
}

.live-chat-page--floating-admin .live-chat-queue-controls[hidden] {
  display: none !important;
}

.live-chat-page--floating-admin .live-chat-queue-control {
  display: grid;
  width: 26px;
  min-width: 26px;
  height: 38px;
  min-height: 38px;
  place-items: center;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
  color: var(--live-chat-text);
  box-shadow: none;
  font-weight: 800;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.live-chat-page--floating-admin .live-chat-queue-control[hidden] {
  display: none !important;
}

.live-chat-page--floating-admin .live-chat-queue-control:hover,
.live-chat-page--floating-admin .live-chat-queue-control:focus-visible {
  background: transparent;
  color: var(--pink);
}

.live-chat-page--floating-admin .live-chat-queue-control:focus-visible {
  outline: 2px solid rgba(var(--brand-primary-rgb), 0.32);
  outline-offset: 0;
}

.live-chat-page--floating-admin .live-chat-queue__filter--floating input,
.live-chat-page--floating-admin .live-chat-queue__filter--floating button {
  height: 34px;
  min-height: 34px;
}

.live-chat-page--floating-admin .live-chat-queue__filter--floating input {
  grid-row: 1;
  grid-column: 1;
  width: 100%;
  padding: 0 7px;
}

.live-chat-page--floating-admin .live-chat-queue__filter--floating button {
  grid-row: 1;
  grid-column: 2;
  padding: 0 8px;
}

.live-chat-page--floating-admin .live-chat-queue {
  display: flex !important;
  min-width: 0;
  min-height: 0;
  grid-row: 2;
  grid-column: 1;
  flex-direction: column;
  border-right: 1px solid var(--live-chat-line);
  border-bottom: 0;
  background: var(--live-chat-bg);
  overflow: hidden;
}

.live-chat-page--floating-admin .live-chat-session-list {
  display: block;
  min-width: 0;
  min-height: 0;
  max-height: none;
  flex: 1 1 auto;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.live-chat-page--floating-admin .live-chat-queue__empty {
  margin: auto 0;
  padding: 20px 10px;
}

.live-chat-page--floating-admin .live-chat-session {
  display: grid;
  width: 100%;
  min-height: 68px;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  padding: 10px 9px;
}

.live-chat-page--floating-admin .live-chat-session__avatar-wrap {
  position: relative;
  display: block;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
}

.live-chat-page--floating-admin .live-chat-session__avatar {
  display: grid;
  width: 42px;
  height: 42px;
  box-sizing: border-box;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--live-chat-line);
  border-radius: 50%;
  background-color: #eef2f7;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  color: #667085;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  object-fit: cover;
}

.live-chat-page--floating-admin .live-chat-session__avatar > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.live-chat-page--floating-admin .live-chat-session__new {
  position: absolute;
  top: -5px;
  right: -7px;
  z-index: 1;
  display: inline-flex;
  min-width: 20px;
  height: 20px;
  box-sizing: border-box;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  border: 2px solid var(--live-chat-bg);
  border-radius: 999px;
  background: var(--pink);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.live-chat-page--floating-admin .live-chat-session__content {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.live-chat-page--floating-admin .live-chat-session__top {
  display: grid;
  min-width: 0;
  gap: 1px;
}

.live-chat-page--floating-admin .live-chat-session__top strong,
.live-chat-page--floating-admin .live-chat-session__top time,
.live-chat-page--floating-admin .live-chat-session__preview {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.live-chat-page--floating-admin .live-chat-session__top strong {
  color: var(--live-chat-text);
  font-size: 13px;
  line-height: 1.35;
}

.live-chat-page--floating-admin .live-chat-session__top time,
.live-chat-page--floating-admin .live-chat-session__preview {
  color: var(--live-chat-muted);
  font-size: 11px;
  line-height: 1.45;
}

.live-chat-page--floating-admin .live-chat-admin-conversation {
  display: flex !important;
  min-width: 0;
  min-height: 0;
  grid-row: 1 / 3;
  grid-column: 2;
  flex-direction: column;
  overflow: hidden;
}

.live-chat-page--floating-admin .live-chat-conversation-heading {
  height: var(--live-chat-floating-toolbar-height);
  min-height: var(--live-chat-floating-toolbar-height);
  max-height: var(--live-chat-floating-toolbar-height);
  box-sizing: border-box;
  flex: 0 0 var(--live-chat-floating-toolbar-height);
  gap: 8px;
  padding: 3px 11px;
}

.live-chat-page--floating-admin .live-chat-conversation-heading__main {
  min-width: 0;
  flex: 1 1 auto;
}

.live-chat-page--floating-admin [data-live-chat-customer],
.live-chat-page--floating-admin [data-live-chat-session-meta] {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.live-chat-page--floating-admin .live-chat-conversation-heading strong {
  font-size: 14px;
}

.live-chat-page--floating-admin .live-chat-conversation-heading span {
  margin-top: 1px;
  line-height: 1.4;
}

.live-chat-page--floating-admin .live-chat-conversation-heading button {
  min-height: 28px;
  padding: 0 8px;
  font-size: 12px;
}

.live-chat-page--floating-admin .live-chat-conversation {
  min-width: 0;
  min-height: 0 !important;
  flex: 1 1 auto;
  overflow: hidden;
}

.live-chat-page--floating-admin .live-chat-messages {
  min-width: 0;
  min-height: 0 !important;
  flex: 1 1 auto;
  overflow-y: auto;
}

.live-chat-page--floating-admin .live-chat-compose {
  flex: 0 0 auto;
}

.live-chat-page--floating-admin .live-chat-mobile-back {
  display: none !important;
}

body.theme-dark .live-chat-page--floating-admin .live-chat-session__avatar {
  border-color: #46515e;
  background-color: #313b46;
  color: #c4cfdb;
}

body.theme-dark .live-chat-page--floating-admin .live-chat-session:hover,
body.theme-dark .live-chat-page--floating-admin .live-chat-session.is-active {
  background: rgba(var(--brand-primary-rgb), 0.12);
}

@media (max-width: 680px) {
  .float-live-chat-panel--admin {
    width: auto;
    height: auto;
    min-height: 0;
  }

  .live-chat-page--floating-admin .live-chat-heading--floating {
    padding: 9px 36px 9px 10px !important;
  }

  .live-chat-page--floating-admin .live-chat-admin-layout--floating {
    --live-chat-admin-queue-width: 82px;
    min-height: 0;
    grid-template-rows: auto minmax(0, 1fr);
  }

  .live-chat-page--floating-admin .live-chat-queue__filter--floating {
    grid-row: 1;
    grid-column: 1 / -1;
    padding: 7px 8px;
  }

  .live-chat-page--floating-admin .live-chat-queue {
    display: flex !important;
    min-height: 0;
    grid-row: 2;
    grid-column: 1;
    border-right: 1px solid var(--live-chat-line);
    border-bottom: 0;
  }

  .live-chat-page--floating-admin.is-mobile-conversation-active .live-chat-queue,
  .live-chat-page--floating-admin.is-mobile-conversation-active .live-chat-admin-conversation {
    display: flex !important;
  }

  .live-chat-page--floating-admin .live-chat-session-list {
    min-height: 0;
    max-height: none;
  }

  .live-chat-page--floating-admin .live-chat-session {
    min-height: 72px;
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 4px;
    padding: 9px 5px;
    text-align: center;
  }

  .live-chat-page--floating-admin .live-chat-session__avatar-wrap,
  .live-chat-page--floating-admin .live-chat-session__avatar {
    width: 40px;
    height: 40px;
  }

  .live-chat-page--floating-admin .live-chat-session__new {
    top: -5px;
    right: -8px;
    min-width: 19px;
    height: 19px;
    padding: 0 3px;
    font-size: 9px;
  }

  .live-chat-page--floating-admin .live-chat-session__content,
  .live-chat-page--floating-admin .live-chat-session__top {
    width: 100%;
  }

  .live-chat-page--floating-admin .live-chat-session__top strong {
    font-size: 11px;
    line-height: 1.35;
  }

  .live-chat-page--floating-admin .live-chat-session__top time,
  .live-chat-page--floating-admin .live-chat-session__preview {
    display: none;
  }

  .live-chat-page--floating-admin .live-chat-admin-conversation {
    display: flex !important;
    min-height: 0;
    grid-row: 2;
    grid-column: 2;
  }

  .live-chat-page--floating-admin .live-chat-conversation-heading {
    height: 48px;
    min-height: 48px;
    max-height: 48px;
    flex-basis: 48px;
    align-items: center;
    gap: 5px;
    padding: 6px 8px;
  }

  .live-chat-page--floating-admin .live-chat-conversation-heading > div:last-child {
    gap: 4px;
  }

  .live-chat-page--floating-admin .live-chat-conversation-heading button {
    min-height: 27px;
    padding: 0 6px;
    font-size: 11px;
  }

  .live-chat-page--floating-admin .live-chat-conversation-heading span {
    display: none;
  }

  .live-chat-page--floating-admin .live-chat-retention-note {
    padding: 5px 7px;
    font-size: 11px;
    line-height: 1.45;
  }

  .live-chat-page--floating-admin .live-chat-messages {
    min-height: 0;
    padding: 10px 8px;
  }

  .live-chat-page--floating-admin .live-chat-message {
    width: min(94%, 520px);
  }

  .live-chat-page--floating-admin .live-chat-compose {
    padding: 8px;
  }

  .live-chat-page--floating-admin .live-chat-compose textarea {
    min-height: 52px;
    max-height: 86px;
    padding: 8px 9px;
  }

  .live-chat-page--floating-admin .live-chat-compose__footer {
    align-items: center;
    flex-direction: row;
    gap: 6px;
    margin-top: 7px;
  }

  .live-chat-page--floating-admin .live-chat-compose__footer > span {
    min-width: 0;
    flex: 1 1 auto;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .live-chat-page--floating-admin .live-chat-compose__footer > button {
    width: auto;
    min-width: 60px;
    height: 34px;
    padding: 0 12px;
  }
}

@media (max-width: 360px) {
  .live-chat-page--floating-admin .live-chat-admin-layout--floating {
    --live-chat-admin-queue-width: 66px;
  }

  .live-chat-page--floating-admin .live-chat-session {
    padding-right: 3px;
    padding-left: 3px;
  }

  .live-chat-page--floating-admin .live-chat-session__avatar-wrap,
  .live-chat-page--floating-admin .live-chat-session__avatar {
    width: 36px;
    height: 36px;
  }
}

/* Administrators may collapse the account queue while retaining the search
 * row.  The conversation then consumes the full available panel width. */
.live-chat-page--floating-admin.is-queue-collapsed .live-chat-admin-layout--floating {
  grid-template-columns: 0 minmax(0, 1fr);
}

.live-chat-page--floating-admin.is-queue-collapsed .live-chat-queue-controls {
  left: 14px;
}

.live-chat-page--floating-admin.is-queue-collapsed .live-chat-queue__filter--floating {
  grid-row: 1;
  grid-column: 1 / -1;
}

.live-chat-page--floating-admin.is-queue-collapsed .live-chat-queue {
  visibility: hidden;
  border: 0;
  opacity: 0;
  pointer-events: none;
}

.live-chat-page--floating-admin.is-queue-collapsed .live-chat-admin-conversation {
  grid-row: 2;
  grid-column: 1 / -1;
}

/* Keep mobile customer-service panels compact: in portrait they occupy two
 * thirds of the stable viewport and remain anchored above the safe area. */
@media (max-width: 680px) and (orientation: portrait) {
  .float-live-chat-panel {
    top: auto;
    bottom: max(8px, env(safe-area-inset-bottom));
    height: 66.6667vh;
    height: 66.6667svh;
    min-height: 0;
    max-height: calc(100dvh - max(16px, env(safe-area-inset-top)) - max(8px, env(safe-area-inset-bottom)));
  }
}

/* All visual close-X controls share one unobtrusive glyph. Context-specific
 * classes continue to own positioning and the 38px hit area, while the button
 * itself never paints a circular shell on hover, focus or touch. */
.fyg-close-x {
  width: 38px !important;
  min-width: 38px !important;
  height: 38px !important;
  min-height: 38px !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #333 !important;
  font-size: 0 !important;
  font-weight: 400 !important;
  line-height: 0 !important;
  text-decoration: none !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  -webkit-tap-highlight-color: transparent !important;
}

.fyg-operation-toast__close.fyg-close-x,
.fyg-ticket-dialog-close.fyg-close-x,
.mobile-account-close.fyg-close-x {
  position: relative !important;
}

.fyg-close-x::before,
.fyg-close-x::after {
  position: absolute !important;
  top: 18px !important;
  left: 9px !important;
  display: block !important;
  width: 20px !important;
  height: 1.5px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: currentColor !important;
  content: "" !important;
  transform-origin: center !important;
}

.fyg-close-x::before {
  transform: rotate(45deg) !important;
}

.fyg-close-x::after {
  transform: rotate(-45deg) !important;
}

.fyg-close-x > svg {
  display: none !important;
}

.fyg-close-x:hover,
.fyg-close-x:active,
.fyg-close-x:focus-visible {
  background: transparent !important;
  box-shadow: none !important;
  color: var(--pink) !important;
  outline: 0 !important;
  outline-offset: 0 !important;
}

.live-chat-page--floating .live-chat-heading--floating {
  min-height: 51px !important;
  padding-right: 54px !important;
}

.fyg-close-x--inverse,
body.theme-dark .fyg-close-x,
html[data-theme="dark"] .fyg-close-x {
  color: #f1f1f4 !important;
}

.fyg-close-x--inverse:hover,
.fyg-close-x--inverse:active,
.fyg-close-x--inverse:focus-visible,
body.theme-dark .fyg-close-x:hover,
body.theme-dark .fyg-close-x:active,
body.theme-dark .fyg-close-x:focus-visible,
html[data-theme="dark"] .fyg-close-x:hover,
html[data-theme="dark"] .fyg-close-x:active,
html[data-theme="dark"] .fyg-close-x:focus-visible {
  background: transparent !important;
  box-shadow: none !important;
  color: var(--brand-primary-light) !important;
  outline: 0 !important;
}

@media (forced-colors: active) {
  .fyg-close-x:focus-visible,
  .live-chat-compose .live-chat-pending-file__remove:focus-visible {
    outline: 2px solid Highlight !important;
    outline-offset: 2px !important;
  }
}

body.theme-dark .live-chat-install-notice,
html[data-theme="dark"] .live-chat-install-notice {
  border-color: rgba(255, 139, 166, .32);
  background: rgba(239, 71, 111, .13);
  color: #ff9fb5;
}

body.theme-dark .live-chat-connection,
html[data-theme="dark"] .live-chat-connection {
  background: #313b46;
  color: #c4cfdb;
}

body.theme-dark .live-chat-connection[data-state="error"],
html[data-theme="dark"] .live-chat-connection[data-state="error"] {
  background: rgba(239, 71, 111, .14);
  color: #ff8ba6;
}

body.theme-dark .live-chat-compose textarea::placeholder,
body.theme-dark .live-chat-queue__filter input::placeholder,
html[data-theme="dark"] .live-chat-compose textarea::placeholder,
html[data-theme="dark"] .live-chat-queue__filter input::placeholder {
  color: #8493a5;
  opacity: 1;
}

/* Frontend display preferences: one compact launcher controls script and
 * brand skin without extending the mobile floating-tool stack. */
.fyg-appearance-launcher {
  position: fixed;
  right: 68px;
  bottom: 48px;
  z-index: 10005;
  width: 40px;
  height: 40px;
}

.fyg-appearance-launcher__button {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin: 0;
  border: 1px solid rgba(var(--brand-primary-rgb), .18);
  border-radius: 6px;
  padding: 0;
  background: var(--paper);
  color: var(--brand-primary);
  box-shadow: 0 8px 20px rgba(15, 23, 42, .12);
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease, transform 160ms ease;
}

.fyg-appearance-launcher__button:hover,
.fyg-appearance-launcher__button:focus-visible,
body.appearance-menu-open .fyg-appearance-launcher__button {
  border-color: var(--brand-primary);
  background: var(--brand-primary);
  color: var(--brand-on-primary);
  transform: translateY(-1px);
}

.fyg-appearance-launcher__button:focus-visible,
.fyg-appearance-segment button:focus-visible {
  outline: 2px solid var(--brand-primary);
  outline-offset: 2px;
}

.fyg-appearance-launcher__button svg {
  width: 22px;
  height: 22px;
}

.fyg-appearance-launcher .sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.fyg-appearance-panel[hidden] {
  display: none !important;
}

.fyg-appearance-panel {
  position: absolute;
  right: 0;
  bottom: calc(100% + 10px);
  width: 278px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 18px 46px rgba(15, 23, 42, .18);
}

.fyg-appearance-panel::after {
  position: absolute;
  right: 12px;
  bottom: -6px;
  width: 12px;
  height: 12px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  content: "";
  transform: rotate(45deg);
}

.fyg-appearance-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 38px;
  margin: -5px -4px 5px 0;
}

.fyg-appearance-panel__header strong {
  font-size: 15px;
  font-weight: 800;
}

.fyg-appearance-panel__close.fyg-close-x {
  position: relative !important;
  flex: 0 0 38px;
}

.fyg-appearance-panel__close.fyg-close-x:focus-visible {
  outline: 2px solid var(--brand-primary) !important;
  outline-offset: -2px !important;
}

.fyg-appearance-choices {
  display: grid;
  gap: 9px;
}

.fyg-appearance-choice {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
}

.fyg-appearance-choice__label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.fyg-appearance-segment {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  min-width: 0;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(127, 137, 151, .08);
}

.fyg-appearance-segment button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-width: 0;
  min-height: 34px;
  margin: 0;
  border: 0;
  border-radius: 7px;
  padding: 5px 8px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  box-shadow: none;
}

.fyg-appearance-segment button:hover {
  color: var(--brand-primary);
  background: rgba(var(--brand-primary-rgb), .09);
}

html[data-locale="zh-Hans"] [data-set-locale="zh-Hans"],
html[data-locale="zh-Hant"] [data-set-locale="zh-Hant"],
html[data-skin="pink"] [data-set-skin="pink"],
html[data-skin="blue"] [data-set-skin="blue"],
.fyg-appearance-segment button.is-active {
  background: var(--brand-primary);
  color: var(--brand-on-primary);
  box-shadow: 0 4px 12px rgba(var(--brand-primary-rgb), .22);
}

.fyg-appearance-swatch {
  width: 9px;
  height: 9px;
  flex: 0 0 9px;
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, .12);
}

.fyg-appearance-swatch.is-pink {
  background: #ff2a93;
}

.fyg-appearance-swatch.is-blue {
  background: #2563eb;
}

.fyg-appearance-choices--account {
  margin-top: 12px;
  padding: 9px 10px;
  border: 1px solid rgba(var(--brand-primary-rgb), .14);
  border-radius: 8px;
  background: var(--brand-primary-surface);
}

.fyg-appearance-choices--account + .nav-user-shortcuts {
  margin-top: 12px;
}

.fyg-dashboard-user-card {
  max-height: calc(100dvh - 72px);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.mobile-account-card {
  max-height: calc(100dvh - 92px);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

body.theme-dark .fyg-appearance-launcher__button,
html[data-theme="dark"] .fyg-appearance-launcher__button {
  border-color: rgba(var(--brand-primary-rgb), .38);
  background: #2b3139;
  color: var(--brand-primary-light);
}

body.theme-dark .fyg-appearance-panel,
body.theme-dark .fyg-appearance-panel::after,
html[data-theme="dark"] .fyg-appearance-panel,
html[data-theme="dark"] .fyg-appearance-panel::after {
  border-color: #46505d;
  background: #252c34;
  color: #f3f6fa;
}

body.theme-dark .fyg-appearance-segment,
html[data-theme="dark"] .fyg-appearance-segment {
  border-color: #46505d;
  background: rgba(255, 255, 255, .05);
}

body.theme-dark .fyg-appearance-choice__label,
body.theme-dark .fyg-appearance-segment button,
html[data-theme="dark"] .fyg-appearance-choice__label,
html[data-theme="dark"] .fyg-appearance-segment button {
  color: #b8c2cf;
}

body.theme-dark .fyg-appearance-segment button:hover,
html[data-theme="dark"] .fyg-appearance-segment button:hover {
  background: rgba(var(--brand-primary-rgb), .18);
  color: var(--brand-primary-light);
}

body.theme-dark .fyg-appearance-segment button.is-active,
html[data-theme="dark"] .fyg-appearance-segment button.is-active,
html[data-theme="dark"][data-locale="zh-Hans"] [data-set-locale="zh-Hans"],
html[data-theme="dark"][data-locale="zh-Hant"] [data-set-locale="zh-Hant"],
html[data-theme="dark"][data-skin="pink"] [data-set-skin="pink"],
html[data-theme="dark"][data-skin="blue"] [data-set-skin="blue"] {
  background: var(--brand-primary);
  color: var(--brand-on-primary);
}

@media (max-width: 680px) {
  .fyg-appearance-launcher {
    right: 60px;
    bottom: max(72px, calc(64px + env(safe-area-inset-bottom)));
    width: 38px;
    height: 38px;
  }

  .fyg-appearance-launcher__button {
    width: 38px;
    height: 38px;
  }

  .fyg-appearance-panel {
    right: -52px;
    width: min(278px, calc(100vw - 24px));
  }

  .fyg-appearance-segment button {
    min-height: 38px;
  }
}

@media (forced-colors: active) {
  .fyg-appearance-segment button[aria-pressed="true"] {
    border: 2px solid Highlight;
  }
}

/* Public pages mount the display launcher as the first floating tool so it
 * stays directly above customer service on both desktop and mobile. */
.float-tools > .fyg-appearance-launcher {
  position: relative;
  inset: auto;
  z-index: 4;
  width: 40px;
  height: 40px;
}

.float-tools > .fyg-appearance-launcher .fyg-appearance-launcher__button {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 5px;
  background: var(--float-tool-bg, #e9ecef);
  color: var(--float-tool-fg, #8e8e8e);
  box-shadow: 0 8px 18px rgba(0, 0, 0, .08);
}

.float-tools > .fyg-appearance-launcher .fyg-appearance-panel {
  right: 0;
}

body.theme-dark .float-tools > .fyg-appearance-launcher .fyg-appearance-launcher__button,
html[data-theme="dark"] .float-tools > .fyg-appearance-launcher .fyg-appearance-launcher__button {
  border: 0;
  background: var(--float-tool-bg, #2a3038);
  color: var(--float-tool-fg, #dce5f0);
}

body.appearance-menu-open .float-tools > .fyg-appearance-launcher .fyg-appearance-launcher__button,
.float-tools > .fyg-appearance-launcher .fyg-appearance-launcher__button:hover,
.float-tools > .fyg-appearance-launcher .fyg-appearance-launcher__button:focus-visible {
  background: var(--brand-primary);
  color: var(--brand-on-primary);
}

@media (max-width: 680px) {
  .float-tools > .fyg-appearance-launcher,
  .float-tools > .fyg-appearance-launcher .fyg-appearance-launcher__button {
    width: 38px;
    height: 38px;
  }
}

/* Scroll controls use independent states on desktop and mobile. When both are
 * useful they stay in separate grid rows, never in the same visual slot. */
.float-tools > .tool-top,
.float-tools > .tool-bottom {
  position: relative !important;
  inset: auto !important;
  grid-column: 1 !important;
  grid-row: auto !important;
  display: none !important;
  margin: 0 !important;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.float-tools.is-scrolled > .tool-top,
.float-tools.can-scroll-down > .tool-bottom {
  display: grid !important;
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.float-tools:not(.is-scrolled) > .tool-top,
.float-tools:not(.can-scroll-down) > .tool-bottom,
.float-tools:not(.is-scrolled) > .tool-top > .float-tool-icon,
.float-tools:not(.can-scroll-down) > .tool-bottom > .float-tool-icon {
  display: none !important;
}

.float-tools > .tool-top > .float-tool-icon,
.float-tools > .tool-bottom > .float-tool-icon {
  overflow: hidden;
}

.float-tools > .tool-top[hidden],
.float-tools > .tool-bottom[hidden],
.float-tools > .tool-top[hidden] > .float-tool-icon,
.float-tools > .tool-bottom[hidden] > .float-tool-icon {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

@media (max-width: 680px) {
  .float-tools > .tool-top,
  .float-tools > .tool-bottom,
  .float-tools > .tool-top:hover,
  .float-tools > .tool-bottom:hover {
    overflow: hidden !important;
    contain: paint;
    transform: none !important;
    transition: none !important;
  }

  .float-tools > .tool-top::before,
  .float-tools > .tool-top::after,
  .float-tools > .tool-bottom::before,
  .float-tools > .tool-bottom::after {
    display: none !important;
    content: none !important;
  }
}

/* Public-site RCPAY checkout/result pages. The business controller is shared
 * with existing orders, while this shell keeps the visible flow out of the
 * member dashboard on both desktop and mobile. */
.frontend-payment-body {
  background: #f5f7fb;
}

.frontend-payment-page {
  width: min(1040px, calc(100% - 40px));
  min-height: 58vh;
  margin: 100px auto 50px;
}

.frontend-payment-card {
  overflow: hidden;
  padding: 0 !important;
  border: 1px solid #e3e8f0;
  border-radius: 16px;
  background: var(--paper, #fff);
  box-shadow: 0 14px 36px rgba(31, 41, 55, .08);
}

.frontend-payment-card .records-title-row {
  display: flex;
  align-items: center;
  box-sizing: border-box;
  min-width: 0;
  min-height: 68px;
  padding: 15px 28px;
  border-bottom: 1px solid #edf0f5;
}

.frontend-payment-card .withdraw-page-title {
  min-width: 0;
  max-width: 100%;
  margin: 0;
  color: var(--ink, #172033);
  font-size: 22px;
  font-weight: 800;
  line-height: 1.35;
  white-space: normal;
  overflow-wrap: anywhere;
}

.frontend-payment-card .fyg-submission-layout-body {
  padding: 24px 28px 30px;
}

.frontend-payment-card .withdraw-plain-form {
  width: 100%;
}

.frontend-payment-card .withdraw-plain-form input[readonly] {
  border-radius: 8px;
  background: #f7f9fc;
}

.frontend-payment-card .direct-payment-methods {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  min-width: 0;
  margin: 2px 0 0;
  padding: 14px;
  border: 1px solid #dfe5ee;
  border-radius: 10px;
}

.frontend-payment-card .direct-payment-methods legend {
  max-width: 100%;
  padding: 0 7px;
  color: #364152;
  font-weight: 700;
  line-height: 1.4;
  white-space: normal;
  overflow-wrap: anywhere;
}

.frontend-payment-card .direct-payment-method {
  display: flex !important;
  grid-template-columns: none !important;
  align-items: center !important;
  gap: 9px !important;
  min-width: 0;
  min-height: 48px;
  margin: 0 !important;
  padding: 10px 12px !important;
  border: 1px solid #e0e6ef;
  border-radius: 9px;
  background: #fff;
  cursor: pointer;
}

.frontend-payment-card .direct-payment-method:hover {
  border-color: var(--brand-primary-border, #ffd3e7);
  background: var(--brand-primary-surface, #fff7fb);
}

.frontend-payment-card .direct-payment-method:has(input:checked) {
  border-color: var(--brand-primary, #ff2a93);
  background: var(--brand-primary-surface, #fff7fb);
  box-shadow: 0 0 0 2px rgba(var(--brand-primary-rgb), .1);
}

.frontend-payment-card .direct-payment-method input {
  flex: 0 0 auto !important;
  width: 16px !important;
  height: 16px !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  accent-color: var(--brand-primary, #ff2a93);
  box-shadow: none !important;
}

.frontend-payment-card .withdraw-plain-form .direct-payment-method > span {
  min-width: 0;
  color: #364152;
  line-height: 1.45;
  text-align: left;
  white-space: normal;
  overflow-wrap: anywhere;
}

.frontend-payment-card .direct-payment-method__copy {
  display: grid;
  gap: 2px;
}

.frontend-payment-card .direct-payment-method__copy strong,
.frontend-payment-card .direct-payment-method__copy small {
  display: block;
  min-width: 0;
  line-height: 1.4;
  white-space: normal;
  overflow-wrap: anywhere;
}

.frontend-payment-card .direct-payment-method__copy strong {
  color: #364152;
  font-size: 14px;
}

.frontend-payment-card .direct-payment-method__copy small {
  color: #7a8797;
  font-size: 12px;
}

.frontend-payment-card .direct-payment-method.is-unavailable,
.frontend-payment-card .direct-payment-method.is-unavailable:hover {
  border-color: #e2e7ee;
  background: #f3f5f8;
  cursor: not-allowed;
  box-shadow: none;
}

.frontend-payment-card .direct-payment-method.is-unavailable input {
  cursor: not-allowed;
  opacity: .5;
}

.frontend-payment-card .direct-payment-method.is-unavailable .direct-payment-method__copy strong {
  color: #6f7a89;
}

.frontend-payment-card .direct-payment-method.is-unavailable .direct-payment-method__copy small {
  color: #87919f;
}

.frontend-payment-card .direct-payment-method-note {
  margin: 9px 0 0;
  color: #748092;
  font-size: 12px;
  line-height: 1.6;
}

.frontend-payment-card .direct-payment-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.frontend-payment-card .direct-payment-actions button,
.frontend-payment-card .direct-payment-primary-link,
.frontend-payment-card .direct-payment-legacy-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 9px 18px;
  border-radius: 8px;
  box-sizing: border-box;
  font-weight: 700;
  text-decoration: none;
}

.frontend-payment-card .direct-payment-actions button,
.frontend-payment-card .direct-payment-primary-link {
  border: 1px solid var(--brand-primary, #ff2a93);
  background: var(--brand-primary, #ff2a93);
  color: var(--brand-on-primary, #fff);
}

.frontend-payment-card .direct-payment-actions button:hover,
.frontend-payment-card .direct-payment-primary-link:hover {
  border-color: var(--brand-primary-hover, #e41583);
  background: var(--brand-primary-hover, #e41583);
}

.frontend-payment-card .direct-payment-legacy-link {
  border: 1px solid #d7dee8;
  background: #fff;
  color: #526071;
}

.frontend-payment-card .direct-payment-admin-hint {
  margin: 0;
  color: #7c4b00;
  font-size: 13px;
  line-height: 1.65;
}

.frontend-payment-card .direct-payment-result.is-success {
  border-color: #a9dfc2;
  background: #effaf4;
  color: #17633c;
}

.frontend-payment-card .direct-payment-result.is-error {
  border-color: #efb1b1;
  background: #fff0f0;
  color: #a92727;
}

.frontend-payment-card .direct-payment-pending-note {
  border-color: #f2d59b;
  background: #fff9eb;
  color: #744a00;
}

body.theme-dark.frontend-payment-body {
  background: #191919;
}

body.theme-dark .frontend-payment-card {
  border-color: #3c434d;
  background: var(--paper, #242424);
  box-shadow: 0 14px 36px rgba(0, 0, 0, .24);
}

body.theme-dark .frontend-payment-card .records-title-row {
  border-bottom-color: #3c434d;
}

body.theme-dark .frontend-payment-card .withdraw-page-title {
  color: #f3f6fb;
}

body.theme-dark .frontend-payment-card .direct-payment-methods,
body.theme-dark .frontend-payment-card .direct-payment-method,
body.theme-dark .frontend-payment-card .direct-payment-legacy-link {
  border-color: #4a5360;
  background: #2a2f36;
  color: #e7edf5;
}

body.theme-dark .frontend-payment-card .direct-payment-methods legend,
body.theme-dark .frontend-payment-card .withdraw-plain-form .direct-payment-method > span {
  color: #e7edf5;
}

body.theme-dark .frontend-payment-card .direct-payment-method__copy strong {
  color: #e7edf5;
}

body.theme-dark .frontend-payment-card .direct-payment-method__copy small,
body.theme-dark .frontend-payment-card .direct-payment-method-note {
  color: #aeb8c5;
}

body.theme-dark .frontend-payment-card .direct-payment-method.is-unavailable,
body.theme-dark .frontend-payment-card .direct-payment-method.is-unavailable:hover {
  border-color: #3e4651;
  background: #22262c;
}

body.theme-dark .frontend-payment-card .direct-payment-method.is-unavailable .direct-payment-method__copy strong {
  color: #9da7b4;
}

body.theme-dark .frontend-payment-card .direct-payment-method.is-unavailable .direct-payment-method__copy small {
  color: #8994a2;
}

body.theme-dark .frontend-payment-card .withdraw-plain-form input[readonly] {
  border-color: #4a5360;
  background: #2a2f36;
  color: #e7edf5;
}

@media (max-width: 680px) {
  .frontend-payment-page {
    width: calc(100% - 24px);
    margin: 74px auto 32px;
  }

  .frontend-payment-card {
    border-radius: 12px;
  }

  .frontend-payment-card .records-title-row {
    min-height: 58px;
    padding: 12px 16px;
  }

  .frontend-payment-card .withdraw-page-title {
    font-size: 19px;
  }

  .frontend-payment-card .fyg-submission-layout-body {
    padding: 18px 14px 22px;
  }

  .frontend-payment-card .direct-payment-methods {
    grid-template-columns: 1fr;
    padding: 11px;
  }

  .frontend-payment-card .direct-payment-actions > * {
    width: 100%;
  }
}

/* Public VIP cards expose RCPAY and the unchanged coin path as two clearly
 * separate choices. */
.vip-plan__purchase-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-top: 14px;
}

.vip-plan__purchase-actions .vip-plan__action {
  flex: 1 1 118px;
  max-width: 170px;
  margin: 0 !important;
  padding-inline: 12px;
  white-space: nowrap;
}

.vip-plan__purchase-actions .vip-plan__action--coins {
  border: 1px solid var(--brand-primary-border, #ffd3e7);
  background: #fff;
  color: var(--brand-primary, #ff2a93);
}

.vip-plan__purchase-actions .vip-plan__action--coins:hover {
  background: var(--brand-primary-surface, #fff7fb);
}

/* Public merchant entry: RCPAY stays on the site front end; the second button
 * deliberately points to the existing coin workflow. */
.merchant-purchase-front {
  padding-top: 42px;
}

.merchant-purchase-card {
  width: min(520px, calc(100% - 24px));
  gap: 12px;
  padding: 34px 30px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ink, #172033);
  text-align: center;
  box-shadow: none;
  transform: none;
}

.merchant-purchase-card > strong {
  color: var(--ink, #172033);
  font-size: 22px;
}

.merchant-purchase-card > span:not(.crown-icon) {
  color: var(--muted, #6f6f6f);
  font-weight: 500;
}

.merchant-purchase-price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
  margin: 4px 0;
  color: var(--brand-primary, #ff2a93);
}

.merchant-purchase-price b {
  font-size: 34px;
  line-height: 1;
}

.merchant-purchase-price span {
  color: var(--muted, #6f6f6f);
}

.merchant-purchase-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
  margin-top: 8px;
}

.merchant-purchase-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid var(--brand-primary, #ff2a93);
  border-radius: 9px;
  padding: 9px 14px;
  font-weight: 700;
  text-decoration: none;
}

.merchant-purchase-action--direct {
  background: var(--brand-primary, #ff2a93);
  color: var(--brand-on-primary, #fff);
}

.merchant-purchase-action--direct:hover {
  border-color: var(--brand-primary-hover, #e41583);
  background: var(--brand-primary-hover, #e41583);
}

.merchant-purchase-action--coins {
  background: #fff;
  color: var(--brand-primary, #ff2a93);
}

.merchant-purchase-action--coins:hover {
  background: var(--brand-primary-surface, #fff7fb);
}

body.theme-dark .vip-plan__purchase-actions .vip-plan__action--coins,
body.theme-dark .merchant-purchase-action--coins {
  background: #2a2f36;
  color: var(--brand-primary-light, #ff8dca);
}

@media (max-width: 680px) {
  .vip-plan__purchase-actions {
    flex-direction: column;
    gap: 7px;
    margin-top: 12px;
  }

  .vip-plan__purchase-actions .vip-plan__action {
    flex: 0 0 auto;
    width: 100%;
    max-width: 150px;
    min-height: 44px;
    height: 44px;
    padding-inline: 8px;
    font-size: 13px;
  }

  .merchant-purchase-front {
    min-height: 540px;
    padding-top: 28px;
  }

  .merchant-purchase-card {
    gap: 10px;
    padding: 28px 18px;
  }

  .merchant-purchase-actions {
    grid-template-columns: 1fr;
  }
}

/* City-level IP recommendation modal. */
body.city-recommendation-open {
  position: fixed;
  right: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
}

.city-recommendation[hidden] {
  display: none !important;
}

.city-recommendation {
  position: fixed;
  inset: 0;
  z-index: 14500;
  display: grid;
  place-items: center;
  box-sizing: border-box;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 180ms ease, visibility 180ms ease;
}

.city-recommendation.is-open {
  opacity: 1;
  visibility: visible;
}

.city-recommendation__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 18, 28, .72);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
}

.city-recommendation__dialog {
  position: relative;
  z-index: 1;
  box-sizing: border-box;
  width: min(980px, 100%);
  max-height: calc(100vh - 40px);
  max-height: calc(100dvh - 40px);
  overflow-y: auto;
  padding: 30px 30px 24px;
  border: 1px solid rgba(255, 255, 255, .6);
  border-radius: 20px;
  background: var(--paper, #fff);
  color: var(--ink, #172033);
  box-shadow: 0 28px 90px rgba(5, 12, 20, .35);
  transform: translateY(12px) scale(.985);
  transition: transform 180ms ease;
}

.city-recommendation.is-open .city-recommendation__dialog {
  transform: translateY(0) scale(1);
}

.city-recommendation__close {
  appearance: none;
  position: absolute;
  top: 12px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--surface-muted, #f2f4f7);
  color: var(--muted, #687386);
  font-size: 28px;
  font-weight: 300;
  line-height: 1;
  cursor: pointer;
}

.city-recommendation__close:hover {
  background: var(--brand-primary-soft-strong, #ffe5f2);
  color: var(--brand-primary, #ff2a93);
}

.city-recommendation__eyebrow {
  margin: 0 0 7px;
  color: var(--brand-primary, #ff2a93);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-align: center;
}

.city-recommendation__dialog h2 {
  margin: 0;
  padding-right: 0;
  font-size: clamp(22px, 3vw, 32px);
  line-height: 1.25;
  text-align: center;
}

.city-recommendation__hint {
  margin: 10px 0 20px;
  color: var(--muted, #687386);
  font-size: 13px;
  line-height: 1.7;
  text-align: center;
}

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

.city-recommendation__grid .info-card {
  min-width: 0;
}

.city-recommendation__grid .info-card__body {
  padding: 12px;
}

.city-recommendation__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}

.city-recommendation__action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  box-sizing: border-box;
  padding: 9px 16px;
  border: 1px solid var(--brand-primary, #ff2a93);
  border-radius: 9px;
  font-size: 14px;
  font-weight: 750;
  text-decoration: none;
}

.city-recommendation__action--primary {
  background: var(--brand-primary, #ff2a93);
  color: #fff;
}

.city-recommendation__action--primary:hover {
  border-color: var(--brand-primary-hover, #e41583);
  background: var(--brand-primary-hover, #e41583);
  color: #fff;
}

.city-recommendation__action--vip {
  background: transparent;
  color: var(--brand-primary, #ff2a93);
}

.city-recommendation__action--vip:hover {
  background: var(--brand-primary-surface, #fff7fb);
}

.city-recommendation__disclaimer {
  margin: 14px 0 0;
  color: var(--muted, #687386);
  font-size: 12px;
  line-height: 1.6;
  text-align: center;
}

.city-recommendation__close:focus-visible,
.city-recommendation__action:focus-visible {
  outline: 3px solid rgba(var(--brand-primary-rgb, 255, 42, 147), .28);
  outline-offset: 3px;
}

@media (max-width: 680px) {
  .city-recommendation {
    padding: 12px;
  }

  .city-recommendation__dialog {
    max-height: calc(100vh - 24px);
    max-height: calc(100dvh - 24px);
    padding: 24px 14px 18px;
    border-radius: 16px;
  }

  .city-recommendation__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .city-recommendation__grid .info-card__body {
    padding: 9px;
  }

  .city-recommendation__grid .info-card__author,
  .city-recommendation__grid .info-card__stats {
    display: none;
  }

  .city-recommendation__actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .city-recommendation__action {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .city-recommendation,
  .city-recommendation__dialog {
    transition: none;
  }
}

/* Information tables share selection with TXT export and bulk operations. */
.fyg-dashboard-shell .fyg-table-export-toolbar--post-bulk {
  flex-wrap: wrap;
}

.fyg-dashboard-shell .fyg-table-export-toolbar--post-bulk .fyg-post-bulk-action {
  flex: 0 0 auto;
  width: auto;
  min-width: 88px;
  height: 36px !important;
  min-height: 36px !important;
  margin: 0;
  padding: 0 10px !important;
  border: 1px solid #c51f78 !important;
  border-radius: 7px !important;
  background: #fff !important;
  color: #a81964 !important;
  font: inherit;
  font-size: 13px !important;
  font-weight: 700 !important;
  line-height: normal !important;
  box-sizing: border-box;
  cursor: pointer;
}

.fyg-dashboard-shell .fyg-table-export-toolbar--post-bulk .fyg-post-bulk-action:disabled {
  opacity: .45;
  cursor: not-allowed;
}

.fyg-dashboard-shell .fyg-table-export-toolbar--post-bulk .fyg-post-bulk-action:focus-visible {
  outline: 2px solid var(--pink, #ff2a93) !important;
  outline-offset: 2px;
}

body.theme-dark .fyg-dashboard-shell .fyg-table-export-toolbar--post-bulk .fyg-post-bulk-action {
  background: #1f2328 !important;
  color: #ffb3d9 !important;
  border-color: #d75b9c !important;
}

@media (max-width: 900px) {
  .fyg-dashboard-shell .fyg-table-export-toolbar--post-bulk .fyg-table-export-actions-row {
    flex-wrap: wrap;
    gap: 6px;
  }

  .fyg-dashboard-shell .fyg-table-export-toolbar--post-bulk .fyg-table-export-button {
    flex: 1 1 105px;
    width: auto;
    max-width: 100%;
    padding-right: 8px;
    padding-left: 8px;
    white-space: nowrap;
  }

  .fyg-dashboard-shell .fyg-table-export-toolbar--post-bulk .fyg-post-bulk-action {
    flex: 1 1 72px;
    min-width: 0;
    max-width: 100%;
    height: 40px !important;
    min-height: 40px !important;
  }
}
