:root {
  --page: #fff7fa;
  --panel: #ffffff;
  --ink: #24232a;
  --muted: #817985;
  --line: #f0dbe3;
  --soft: #f6edf2;
  --primary: #ff5a8b;
  --primary-dark: #e94173;
  --blue: #4168d8;
  --blue-soft: #eef3ff;
  --green: #18a058;
  --red: #e44d61;
  --shadow: 0 12px 32px rgba(119, 76, 94, .14);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(249, 245, 247, .92), rgba(249, 245, 247, .98)),
    url("https://images.unsplash.com/photo-1496062031456-07b8f162a322?auto=format&fit=crop&w=1600&q=80") center / cover fixed;
}
button, input, textarea, select { font: inherit; }
button { border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }

.mobile-page {
  max-width: 430px;
  min-height: 100vh;
  margin: 0 auto;
  background: var(--page);
  box-shadow: 0 0 0 1px rgba(119, 76, 94, .08);
  position: relative;
  overflow-x: hidden;
}

.external-browser-guide[hidden] { display: none !important; }
.external-browser-guide {
  position: fixed;
  inset: 0;
  z-index: 10000;
  overflow: auto;
  background: #fff;
}
.external-browser-guide-active { overflow: hidden; }
.external-browser-guide-active .mobile-page,
.external-browser-guide-active .back-to-top,
.external-browser-guide-active .ai-assistant-fab { visibility: hidden; }
.external-browser-guide-page {
  width: min(100%, 520px);
  min-width: 0;
  min-height: 100%;
  margin: 0 auto;
  padding-bottom: max(28px, env(safe-area-inset-bottom));
  background: #fff;
}
.external-browser-guide-hero {
  position: relative;
  min-height: 205px;
  padding-top: env(safe-area-inset-top);
  overflow: hidden;
  color: #fff;
  background: linear-gradient(135deg, #3159ed, #04a8ee);
}
.external-browser-guide-banner {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.external-browser-guide-hero-copy {
  position: relative;
  z-index: 1;
  padding: max(24px, env(safe-area-inset-top)) 22px 24px;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.8;
  text-shadow: 0 1px 4px rgba(0, 49, 133, .32);
}
.external-browser-guide-hero-copy p { margin: 0 0 10px; }
.external-browser-guide-hero-copy img {
  width: 28px;
  height: 28px;
  margin: 0 4px;
  vertical-align: middle;
  object-fit: contain;
}
.external-browser-guide-devices { font-size: 14px; }
.external-browser-guide-card {
  width: calc(100% - 32px);
  min-width: 0;
  max-width: calc(100% - 32px);
  margin: -18px 16px 0;
  padding: 28px 22px 24px;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 14px 38px rgba(36, 102, 244, .16);
  text-align: center;
  position: relative;
  z-index: 2;
}
.external-browser-guide-brand-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 12px;
}
.external-browser-guide-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 13px;
  color: #fff;
  background: linear-gradient(135deg, #3159ed, #08a6ee);
  box-shadow: 0 8px 20px rgba(36, 102, 244, .24);
  font-size: 22px;
  font-weight: 900;
}
.external-browser-guide-platform {
  margin: 0;
  color: #2466f4;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .08em;
}
.external-browser-guide-card h1 { margin: 0; overflow-wrap: anywhere; font-size: 28px; }
.external-browser-guide-summary {
  margin: 12px auto 20px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}
.external-browser-guide-instructions {
  display: grid;
  gap: 10px;
  margin-bottom: 20px;
  text-align: left;
}
.external-browser-guide-instructions p {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 12px 14px;
  border-radius: 12px;
  color: #1c3f8c;
  background: #f2f7ff;
}
.external-browser-guide-instructions b {
  display: grid;
  flex: 0 0 30px;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  color: #fff;
  background: #2466f4;
}
.external-browser-guide-instructions span { font-size: 14px; line-height: 1.5; }
.external-browser-guide-copy {
  display: block;
  width: min(100%, 260px);
  min-height: 46px;
  margin: 18px auto 0;
  border: 1px solid #2466f4;
  border-radius: 999px;
  color: #2466f4;
  background: #fff;
  font-weight: 800;
}
.external-browser-guide-copy:active { color: #fff; background: #2466f4; }
.external-browser-guide-note {
  margin: 14px 0 8px;
  color: #5571a9;
  font-size: 12px;
  line-height: 1.6;
}
.external-browser-guide-note.error { color: var(--red); }
.external-browser-guide-url {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-all;
  padding: 11px 12px;
  border-radius: 10px;
  color: #2466f4;
  background: #f2f7ff;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  text-align: left;
  white-space: normal;
}
@media (max-width: 420px) {
  .external-browser-guide-hero { min-height: 190px; }
  .external-browser-guide-hero-copy { padding-inline: 18px; font-size: 15px; }
  .external-browser-guide-card { width: calc(100% - 24px); max-width: calc(100% - 24px); margin-inline: 12px; padding: 24px 18px 20px; }
  .external-browser-guide-card h1 { font-size: 23px; }
}
.view { display: none; min-height: 100vh; padding-bottom: 86px; }
.view.is-active { display: block; }
.home-top, .live-top {
  padding: 18px 16px 20px;
  color: #fff;
  background: linear-gradient(135deg, #ff72a8 0%, #ff5782 65%, #ff8db3 100%);
}
.brand-logo { display: flex; align-items: center; gap: 10px; font-size: 22px; font-weight: 900; }
.home-brand-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.complaint-entry { min-width: 58px; padding: 9px 12px; color: var(--primary-dark); background: #fff; border-radius: 999px; font-weight: 900; }
.brand-logo span {
  width: 38px; height: 38px; display: grid; place-items: center;
  border-radius: 50%; color: var(--primary); background: #fff; font-weight: 900;
}
.banner-carousel {
  margin-top: 16px; border-radius: 10px; overflow: hidden; position: relative;
  aspect-ratio: 16 / 7; background: rgba(255,255,255,.25);
}
.banner-track { height: 100%; display: flex; transition: transform .25s ease; }
.banner-slide {
  flex: 0 0 100%; width: 100%; padding: 16px; display: flex; flex-direction: column;
  justify-content: flex-end; align-items: flex-start; text-align: left; color: #fff;
  background-size: cover; background-position: center;
}
.banner-slide strong { font-size: 18px; }
.banner-slide span { margin-top: 4px; opacity: .9; }
.banner-dots { position: absolute; bottom: 10px; left: 0; right: 0; display: flex; justify-content: center; gap: 6px; }
.banner-dot { width: 7px; height: 7px; border-radius: 999px; background: rgba(255,255,255,.65); padding: 0; }
.banner-dot.is-active { width: 22px; background: #fff; }

.archive-search, .member-unlock-panel, .account-panel, .profile-panel, .detail-body, .creator-panel {
  margin: 14px;
  padding: 14px;
  background: rgba(255,255,255,.86);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.archive-search label, .select-field span, .admin-form span { display: block; margin-bottom: 7px; color: var(--primary-dark); font-weight: 800; }
.archive-search-box { display: flex; gap: 8px; align-items: stretch; }
.archive-search-box input { flex: 1 1 auto; min-width: 0; }
input, textarea, select {
  width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 11px 12px;
  background: #fff; color: var(--ink); outline: none;
}
textarea { resize: vertical; }
.archive-search-box button, .primary-btn {
  border-radius: 999px; padding: 11px 18px; color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark)); font-weight: 900;
}
#clearArchiveSearch {
  flex: 0 0 68px;
  width: 68px;
  min-width: 68px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  line-height: 1;
}
.archive-search p, .empty-note, .form-message { color: var(--muted); font-size: 13px; }
.form-message.error, .error-note { color: var(--red); }

.profile-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 0 14px 18px; }
.profile-grid.single-column { grid-template-columns: 1fr; padding: 0; }
.profile-card {
  background: #fff; border-radius: 9px; overflow: hidden; box-shadow: var(--shadow);
  border: 1px solid rgba(255,255,255,.75);
}
.profile-thumb {
  aspect-ratio: 4 / 5; background-size: cover; background-position: center;
  position: relative; padding: 10px; display: flex; align-items: flex-end; color: #fff;
}
.profile-thumb strong { font-size: 15px; line-height: 1.25; text-shadow: 0 2px 10px rgba(0,0,0,.4); }
.code-pill {
  position: absolute; top: 9px; left: 9px; padding: 4px 9px; border-radius: 999px;
  background: rgba(25,23,28,.78); color: #fff; font-weight: 900; font-size: 12px;
}
.profile-card-body {
  min-height: 78px;
  padding: 10px 11px 12px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.profile-card-body h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.2;
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}
.profile-card-body h3 span {
  flex: 0 0 auto;
  color: #fff;
  background: #ff77a0;
  border-radius: 999px;
  font-size: 12px;
  line-height: 1.2;
  padding: 2px 7px;
}
.profile-card-body p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.35;
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}
.profile-card-body b {
  color: #fff;
  background: #ff77a0;
  border-radius: 999px;
  line-height: 1.2;
  padding: 2px 7px;
  white-space: nowrap;
}

.password-gate-page {
  min-height: 100vh;
  padding: 72px 24px 86px;
  background: linear-gradient(180deg, #fff8fb 0%, #fff 45%, #fff 100%);
  position: relative;
}
.gate-back {
  position: absolute;
  top: 18px;
  left: 18px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,.9);
  color: var(--ink);
  font-size: 30px;
  line-height: 1;
}
.password-gate-card {
  min-height: calc(100vh - 160px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.password-gate-avatar {
  width: 86px;
  height: 86px;
  margin-top: 78px;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid #fff;
  box-shadow: 0 10px 30px rgba(255,90,139,.18);
}
.password-gate-card h1 {
  margin: 24px 0 10px;
  font-size: 24px;
  line-height: 1.25;
}
.password-gate-card > p {
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 16px;
}
.password-gate-card input {
  height: 54px;
  border-radius: 999px;
  border: 2px solid #ef9900;
  text-align: center;
  font-size: 20px;
  letter-spacing: 2px;
}
.password-gate-card .primary-btn {
  width: 100%;
  height: 56px;
  margin-top: 18px;
  font-size: 17px;
}
.password-gate-card .form-message {
  min-height: 20px;
  margin-top: 12px;
}

.bottom-nav {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: 0; width: 100%; max-width: 430px;
  height: 68px; display: grid; grid-template-columns: repeat(6, 1fr); background: rgba(255,255,255,.96);
  border-top: 1px solid var(--line); z-index: 20;
}
.nav-item { min-width: 0; padding: 0 3px; background: transparent; color: #918792; font-size: 13px; font-weight: 800; white-space: nowrap; }
.nav-item.is-active { color: var(--primary-dark); }

.video-top { padding: 24px 18px; color: #fff; background: linear-gradient(135deg, #e93f72, #ff7ca3); }
.video-top p { margin: 0 0 5px; font-size: 12px; letter-spacing: 1px; }
.video-top h1 { margin: 0 0 8px; font-size: 34px; }
.video-top span { display: block; line-height: 1.6; }
.video-count-summary {
  margin: 14px 14px 0; padding: 13px 14px; border-left: 4px solid var(--primary);
  border-radius: 6px; background: #2d2931; color: #fff; font-size: 16px; font-weight: 800;
}
.video-appointments-section, .video-profiles-section { margin: 16px 14px 0; }
.video-profiles-section > h2 { margin: 0 0 12px; font-size: 20px; }
.video-profile-grid { padding: 0 0 20px; }
.video-appointment-list { display: grid; gap: 10px; margin-top: 12px; }
.video-appointment-card { padding: 10px; display: grid; grid-template-columns: 78px minmax(0,1fr); gap: 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.video-appointment-card > img { width: 78px; height: 96px; object-fit: cover; border-radius: 6px; }
.video-appointment-card p { margin: 5px 0 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
.video-appointment-card .primary-btn { padding: 8px 12px; font-size: 13px; }
#videoPlayerMount .live-player { margin: 14px; }
.video-appointment-form { max-height: min(92vh, 760px); overflow-y: auto; text-align: left; }
.video-appointment-form h2, .video-appointment-form .modal-eyebrow { display: block; text-align: center; }
.video-appointment-form > label { display: grid; gap: 6px; margin-top: 10px; color: var(--primary-dark); font-weight: 800; }
.video-appointment-form textarea { min-height: 82px; resize: vertical; }
.video-appointment-form > .primary-btn { width: 100%; margin-top: 14px; }

.offline-top { padding: 24px 18px; color: #fff; background: linear-gradient(135deg, #ed3f72, #ff779f); }
.offline-top p { margin: 0 0 5px; font-size: 12px; letter-spacing: 1px; }
.offline-top h1 { margin: 0 0 8px; font-size: 34px; }
.offline-top span { display: block; line-height: 1.6; }
.offline-safety { margin: 14px; padding: 14px; display: grid; gap: 5px; border: 1px solid #f2cbd7; border-radius: 8px; background: #fff; }
.offline-safety strong { color: var(--primary-dark); }
.offline-safety span { color: var(--muted); font-size: 13px; line-height: 1.55; }
.offline-filters { display: grid; grid-template-columns: 1fr; gap: 10px; margin: 0 14px 14px; }
.offline-service-grid { display: grid; gap: 12px; padding: 0 14px; }
.offline-service-card { overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.offline-service-cover { min-height: 230px; padding: 14px; display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; color: #fff; background-position: center; background-size: cover; }
.offline-service-cover span { padding: 4px 8px; border-radius: 999px; background: rgba(24,21,27,.7); font-size: 12px; font-weight: 800; }
.offline-service-cover strong { font-size: 20px; }
.offline-service-body { padding: 14px; }
.offline-service-body > p { margin: 0 0 10px; color: var(--muted); line-height: 1.55; }
.offline-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.offline-tags span { padding: 5px 8px; color: var(--primary-dark); background: #fff1f5; border-radius: 5px; font-size: 12px; }
.offline-service-footer { margin-top: 14px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.offline-service-footer > strong { color: var(--primary-dark); font-size: 20px; }
.offline-service-footer .primary-btn { min-width: 118px; padding: 10px 14px; }
.offline-orders-section { margin: 18px 14px 0; padding-top: 16px; border-top: 1px solid var(--line); }
.section-title-row { display: flex; align-items: center; justify-content: space-between; }
.section-title-row h2 { margin: 0; font-size: 20px; }
.offline-booking-list { display: grid; gap: 10px; margin-top: 12px; padding-bottom: 16px; }
.offline-booking-card { padding: 10px; display: grid; grid-template-columns: 76px 1fr; gap: 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.offline-booking-card > img { width: 76px; height: 92px; object-fit: cover; border-radius: 6px; }
.booking-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.booking-head > strong { font-size: 14px; }
.offline-booking-card p { margin: 5px 0 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
.booking-status { flex: 0 0 auto; padding: 3px 6px; border-radius: 999px; color: #7a4a00; background: #fff0cf; font-size: 11px; font-weight: 900; }
.status-in_progress, .status-accepted { color: #0c6c50; background: #ddf8ed; }
.status-completed { color: #2856a2; background: #e7efff; }
.status-cancelled, .status-refunded { color: #9d3148; background: #ffe7ed; }
.booking-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.offline-booking-form { max-height: min(92vh, 820px); overflow-y: auto; text-align: left; }
.offline-booking-form h2 { text-align: center; }
.offline-booking-profile { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; padding-right: 38px; }
.offline-booking-profile img { width: 58px; height: 58px; border-radius: 50%; object-fit: cover; }
.offline-booking-profile strong, .offline-booking-profile span { display: block; }
.offline-booking-profile span { margin-top: 4px; color: var(--muted); font-size: 13px; }
.offline-booking-form > label { display: grid; gap: 6px; margin-top: 10px; color: var(--primary-dark); font-weight: 800; }
.offline-booking-form textarea { min-height: 72px; resize: vertical; }
.offline-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.offline-form-row label { display: grid; gap: 6px; margin-top: 10px; color: var(--primary-dark); font-weight: 800; }
.offline-booking-form .consent-check { grid-template-columns: 22px 1fr; align-items: start; color: var(--ink); font-size: 13px; line-height: 1.5; }
.consent-check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--primary); }
.offline-location-card { text-align: left; }
.location-actions { display: grid; gap: 8px; }
.location-latest { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 14px 0; }
.location-latest > div, .location-latest > a { padding: 10px; border: 1px solid var(--line); border-radius: 7px; color: var(--ink); }
.location-latest strong, .location-latest span { display: block; }
.location-latest span { margin-top: 4px; color: var(--muted); font-size: 12px; }
.location-trail { max-height: 220px; overflow-y: auto; display: grid; gap: 6px; }
.location-trail a { padding: 9px 10px; display: flex; justify-content: space-between; gap: 8px; color: var(--ink); background: #f8f6f7; border-radius: 6px; }
.location-trail span { color: var(--muted); font-size: 12px; }

.detail-head {
  height: 56px; padding: 0 14px; display: grid; grid-template-columns: 44px 1fr 44px;
  align-items: center; background: #fff; border-bottom: 1px solid #eee; position: sticky; top: 0; z-index: 10;
}
.detail-head strong { text-align: center; font-size: 18px; }
.back-link { background: transparent; font-size: 30px; color: var(--ink); text-align: left; }
.profile-main { display: flex; gap: 14px; align-items: center; }
.profile-main img { width: 74px; height: 74px; border-radius: 50%; object-fit: cover; border: 5px solid #fff; box-shadow: var(--shadow); }
.profile-main h1 { margin: 0; font-size: 22px; }
.profile-main h1 span { font-size: 13px; color: #fff; background: #ff77a0; border-radius: 999px; padding: 3px 8px; }
.profile-main p { margin: 6px 0; color: var(--muted); }
.province-alert { display: inline-block; padding: 5px 9px; border-radius: 999px; color: #fff; background: var(--primary); font-weight: 800; }
.profile-stats {
  margin-top: 14px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
  padding: 12px; border-radius: 12px; background: linear-gradient(135deg, #f25482, #ff82ad); color: #fff;
}
.profile-stats div { text-align: center; }
.profile-stats strong, .profile-stats span { display: block; }
.detail-body h2, .member-unlock-panel h2, .account-panel h1, .creator-panel h1 { margin: 0 0 10px; }
.media-list { display: grid; gap: 12px; margin-top: 14px; }
.media-list .member-unlock-panel { margin: 0; }
.member-service-card {
  background: #fff;
  color: var(--ink);
}
.member-service-card p {
  margin: 0;
  color: #4c4650;
  line-height: 1.65;
}
.member-service-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
  margin-top: 16px;
}
.member-service-actions [data-upgrade-profile] {
  grid-column: 1 / -1;
}
.member-service-actions .primary-btn {
  min-height: 44px;
  padding: 10px 12px;
}
.member-service-actions .service-btn {
  color: var(--primary-dark);
  background: #fff4f7;
  border: 1px solid #ffd0df;
}
.member-service-actions .contact-view-btn {
  grid-column: 1 / -1;
}

.patron-entry {
  margin: 12px 14px 16px;
  padding: 16px;
  border: 1px solid #d9b45e;
  border-radius: 8px;
  color: #fff;
  background: #171b26;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.patron-entry span { color: #e6c878; font-size: 12px; font-weight: 800; }
.patron-entry h2 { margin: 3px 0; font-size: 24px; }
.patron-entry p { margin: 0; color: #d9dde7; font-size: 13px; line-height: 1.55; }
.patron-entry button,
.patron-inline-btn {
  flex: 0 0 auto;
  border: 1px solid #e6c878;
  border-radius: 6px;
  padding: 10px 12px;
  color: #171b26;
  background: #e6c878;
  font-weight: 900;
}
.member-service-actions .patron-inline-btn {
  grid-column: 1 / -1;
  width: 100%;
  min-height: 82px;
  padding: 15px 17px;
  color: #f6dc8d;
  background: #171b26;
  border: 2px solid #e6c878;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  text-align: left;
}
.patron-inline-btn span {
  font-size: 16px;
  line-height: 1.35;
}
.patron-inline-btn strong {
  flex: 0 0 auto;
  padding: 9px 11px;
  color: #171b26;
  background: #e6c878;
  border-radius: 5px;
  font-size: 14px;
}
.private-service-continue {
  width: 100%;
  margin-top: 10px;
}
.patron-modal-card { border: 1px solid #d9b45e; background: #fff; }
.patron-kicker { color: #9b7427; font-size: 12px; font-weight: 900; letter-spacing: 0; }
.patron-modal-card h2 { margin: 6px 0 10px; color: #171b26; font-size: 28px; }
.patron-modal-card > p { color: #535866; line-height: 1.7; }
.patron-benefits { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 16px 0; }
.patron-benefits span { border-left: 3px solid #d9b45e; padding: 7px 9px; color: #262b36; background: #f7f4eb; font-size: 13px; font-weight: 700; }
.patron-price { margin: 14px 0; padding: 13px 15px; border-radius: 6px; color: #fff; background: #171b26; display: flex; align-items: center; justify-content: space-between; }
.patron-price strong { color: #e6c878; font-size: 24px; }
.patron-upgrade-btn { color: #171b26; background: #e6c878; }
.patron-modal-card > small { display: block; margin-top: 10px; color: #7d8190; line-height: 1.5; }
.patron-pay-mark { width: 70px; height: 70px; margin: 0 auto; border-radius: 50%; color: #171b26; background: #e6c878; display: grid !important; place-items: center; font-size: 30px; font-weight: 900; }
.patron-summary { color: #fff; background: #171b26; border-color: #d9b45e; }
.patron-summary strong { color: #e6c878; }
.service-rule-note { display: block; margin-top: 10px; color: var(--muted); }
.modal-eyebrow { color: var(--primary); font-weight: 800; font-size: 13px; }
.service-result-card { text-align: center; }
.wechat-account {
  display: block;
  margin: 18px 0;
  padding: 16px;
  border: 1px dashed var(--primary);
  border-radius: 8px;
  font-size: 24px;
  color: var(--primary-dark);
  background: #fff7fa;
  overflow-wrap: anywhere;
}
.custom-order-card { max-height: min(88vh, 760px); overflow-y: auto; }
.custom-order-card fieldset { margin: 16px 0; padding: 0; border: 0; }
.custom-order-card legend { margin-bottom: 10px; font-weight: 800; font-size: 16px; }
.custom-note { margin: -4px 0 10px; color: var(--muted); font-size: 13px; }
.custom-option-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.custom-option-grid.compact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.custom-option { min-width: 0; }
.custom-option input { position: absolute; opacity: 0; pointer-events: none; }
.custom-option span {
  display: grid;
  place-items: center;
  min-height: 40px;
  padding: 7px 6px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  font-size: 13px;
  text-align: center;
}
.custom-option input:checked + span { color: #fff; border-color: var(--primary); background: var(--primary); }
@media (max-width: 420px) {
  .custom-option-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.media-card { background: #151116; color: #fff; border-radius: 8px; overflow: hidden; }
.media-card img { width: 100%; display: block; max-height: 520px; object-fit: cover; background: #111; }
.media-work-video-shell { width: 100%; display: grid; place-items: center; aspect-ratio: var(--media-video-ratio, 16 / 9); overflow: hidden; background: #111; }
.media-work-video-shell { position: relative; }
.paid-work-overlay { position: absolute; inset: 0; z-index: 3; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 22px; text-align: center; color: #fff; background: linear-gradient(150deg, rgba(26,17,28,.92), rgba(90,23,53,.94)); }
.paid-work-overlay strong { font-size: 22px; }
.paid-work-overlay span { line-height: 1.55; }
.paid-work-overlay .primary-btn { width: min(100%, 320px); }
.paid-work-card > small { color: var(--pink); font-weight: 700; }
.media-work-video-shell.is-portrait { width: min(100%, calc(75vh * var(--media-video-aspect, .5625))); max-height: 75vh; margin-inline: auto; }
.media-work-video { width: 100%; height: 100%; display: block; object-fit: contain; background: #111; }
.media-card h3 { margin: 0; padding: 12px; font-size: 15px; }
.media-card small { display: block; padding: 0 12px 12px; color: #d8cfd5; }
.media-gallery-stage { position: relative; background: #111; }
.media-gallery-stage > img { aspect-ratio: 4 / 5; cursor: zoom-in; }
.media-card > img[data-work-image-url] { cursor: zoom-in; }
.media-gallery-nav { position: absolute; top: 50%; z-index: 2; width: 42px; height: 54px; border: 0; border-radius: 8px; color: #fff; background: rgba(0, 0, 0, .48); font-size: 34px; line-height: 1; transform: translateY(-50%); cursor: pointer; }
.media-gallery-nav.prev { left: 10px; }
.media-gallery-nav.next { right: 10px; }
.media-gallery-counter { position: absolute; right: 10px; bottom: 10px; padding: 5px 9px; border-radius: 999px; color: #fff; background: rgba(0, 0, 0, .6); font-size: 12px; }
.media-gallery-dots { display: flex; justify-content: center; gap: 8px; padding: 10px 12px 0; }
.media-gallery-dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 50%; background: #746c72; cursor: pointer; }
.media-gallery-dots button.active { width: 22px; border-radius: 999px; background: #fff; }
.image-lightbox { position: fixed; inset: 0; z-index: 5000; display: grid; grid-template-columns: 1fr; grid-template-rows: 1fr auto; place-items: center; padding: max(62px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left)); color: #fff; background: rgba(0, 0, 0, .96); overscroll-behavior: contain; }
.image-lightbox-viewport { width: 100%; height: 100%; min-height: 0; display: grid; place-items: center; overflow: hidden; touch-action: pan-y pinch-zoom; }
.image-lightbox-image { display: block; width: auto; height: auto; max-width: 100%; max-height: calc(100vh - 132px); max-height: calc(100dvh - 132px); object-fit: contain; user-select: none; -webkit-user-select: none; -webkit-user-drag: none; }
.image-lightbox-close { position: absolute; top: max(12px, env(safe-area-inset-top)); right: max(14px, env(safe-area-inset-right)); z-index: 3; width: 42px; height: 42px; border: 1px solid rgba(255,255,255,.42); border-radius: 50%; color: #fff; background: rgba(30,30,30,.72); font-size: 30px; line-height: 1; }
.image-lightbox-nav { position: absolute; top: 50%; z-index: 3; width: 46px; height: 62px; border: 1px solid rgba(255,255,255,.32); border-radius: 10px; color: #fff; background: rgba(20,20,20,.58); font-size: 42px; line-height: 1; transform: translateY(-50%); }
.image-lightbox-nav.prev { left: max(8px, env(safe-area-inset-left)); }
.image-lightbox-nav.next { right: max(8px, env(safe-area-inset-right)); }
.image-lightbox-caption { align-self: end; min-height: 44px; display: flex; align-items: center; justify-content: center; gap: 12px; padding: 10px 56px 0; text-align: center; }
.image-lightbox-caption strong { max-width: min(70vw, 520px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.image-lightbox-caption span { color: #d8d8d8; font-size: 13px; white-space: nowrap; }
@media (max-width: 520px) {
  .image-lightbox-nav { width: 40px; height: 56px; font-size: 36px; }
  .image-lightbox-caption { padding-inline: 46px; }
}
.site-back-to-top { position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(78px, calc(env(safe-area-inset-bottom) + 16px)); z-index: 1600; display: grid; place-items: center; width: 52px; height: 52px; padding: 4px; border: 1px solid rgba(255,255,255,.7); border-radius: 50%; color: #fff; background: linear-gradient(145deg, #ff4f87, #d93770); box-shadow: 0 8px 24px rgba(112, 25, 59, .28); opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity .2s ease, transform .2s ease, visibility .2s ease; cursor: pointer; }
.site-back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.site-back-to-top span { display: block; margin-bottom: -3px; font-size: 23px; line-height: 1; }
.site-back-to-top small { color: inherit; font-size: 10px; line-height: 1; }
.site-back-to-top:focus-visible { outline: 3px solid rgba(255,79,135,.3); outline-offset: 3px; }
.creator-media-pickers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.creator-file-selection { margin: 0; color: var(--muted); font-size: 13px; }
.locked-box {
  min-height: 150px; display: grid; place-items: center; text-align: center; padding: 20px;
  background: linear-gradient(135deg, rgba(255,90,139,.86), rgba(31,28,34,.88));
}
.locked-box strong, .locked-box span { display: block; }
.locked .primary-btn { margin: 12px; width: calc(100% - 24px); }

.live-top p { margin: 0 0 5px; font-size: 13px; letter-spacing: 1px; }
.live-top h1 { margin: 0 0 8px; font-size: 36px; }
.live-player { margin: 14px; padding: 14px; background: #fff; border-radius: 10px; border: 1px solid var(--line); }
.video-shell video { width: 100%; border-radius: 8px; background: #111; }
.synchronized-video { position: relative; overflow: hidden; border-radius: 8px; background: #111; }
.synchronized-video video { display: block; border-radius: 0; }
.live-compact-controls {
  position: absolute;
  right: 10px;
  bottom: 10px;
  left: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 28px 8px 8px;
  background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, .68));
}
.live-compact-controls button {
  min-width: 64px;
  min-height: 34px;
  padding: 7px 10px;
  color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, .5);
  border-radius: 6px;
  background: rgba(0, 0, 0, .48);
  cursor: pointer;
}
.live-compact-controls button:last-child { margin-left: auto; }
.live-grid .profile-thumb { aspect-ratio: 4 / 4.6; }
.live-count-summary {
  margin: 14px 14px 4px;
  padding: 13px 15px;
  color: #fff;
  background: #2b2730;
  border-left: 4px solid var(--primary);
  border-radius: 6px;
  font-size: 15px;
  font-weight: 800;
}
.live-empty {
  grid-column: 1 / -1;
  margin: 18px 0;
  padding: 30px 16px;
  text-align: center;
  background: rgba(255,255,255,.78);
  border: 1px dashed var(--line);
  border-radius: 10px;
}
.live-grid.is-compact {
  grid-template-columns: 1fr;
  gap: 8px;
}
.live-grid.is-compact .live-card {
  display: grid;
  grid-template-columns: 96px 1fr;
  box-shadow: 0 6px 18px rgba(119, 76, 94, .08);
}
.live-grid.is-compact .live-card.is-current {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(255,90,139,.16);
}
.live-grid.is-compact .profile-thumb {
  aspect-ratio: auto;
  min-height: 96px;
  height: 100%;
}
.live-grid.is-compact .profile-thumb strong {
  font-size: 12px;
}
.live-grid.is-compact .code-pill {
  top: 7px;
  left: 7px;
  padding: 3px 7px;
  font-size: 11px;
}
.live-grid.is-compact .profile-card-body {
  min-height: 96px;
  padding: 9px 10px;
}
.live-grid.is-compact .profile-card-body h3 {
  font-size: 15px;
}
.live-grid.is-compact .profile-card-body p {
  margin-top: 4px;
  font-size: 12px;
}
.live-grid.is-compact .primary-btn {
  min-height: 34px;
  margin-top: 8px;
  padding: 8px 10px;
  font-size: 13px;
}

.modal {
  position: fixed; inset: 0; z-index: 50; display: grid; place-items: center;
  background: rgba(31,28,34,.54); padding: 20px;
}
.modal-card {
  width: min(380px, 100%); background: #fff; border-radius: 14px; padding: 24px;
  box-shadow: 0 18px 70px rgba(0,0,0,.24); position: relative; text-align: center;
}
.modal-close { position: absolute; right: 12px; top: 10px; width: 34px; height: 34px; border-radius: 50%; background: var(--soft); color: var(--muted); font-size: 24px; }
.live-stream-video,
.synchronized-video,
.webrtc-live-video { position: relative; }
.live-stream-video { overflow: hidden; border-radius: 8px; background: #090b10; }
.live-stream-video video { display: block; width: 100%; border-radius: 0; user-select: none; -webkit-user-select: none; }
.live-stream-actions { z-index: 5; }
.live-ad-banner {
  position: absolute;
  z-index: 4;
  left: 10px;
  right: 10px;
  bottom: 56px;
  padding: 8px 10px;
  color: #fff;
  background: rgba(17, 14, 19, .72);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.45;
  text-align: center;
  overflow-wrap: anywhere;
  pointer-events: none;
}
.live-stream-video .live-ad-banner { bottom: 46px; }
.complaint-form { text-align: left; }
.complaint-form h2 { margin-bottom: 6px; }
.complaint-form > p { color: var(--muted); }
.complaint-form label { display: block; margin-top: 12px; }
.complaint-form label span { display: block; margin-bottom: 6px; color: var(--primary-dark); font-weight: 800; }
.complaint-form .primary-btn { width: 100%; margin-top: 14px; }
.price-row { margin: 14px 0; padding: 13px 15px; border-radius: 10px; display: flex; justify-content: space-between; color: #fff; background: linear-gradient(135deg, var(--primary), #ff7bad); }
.price-row strong { font-size: 24px; }
.pay-type-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 12px 0; }
.pay-type-tabs.is-single { grid-template-columns: 1fr; }
.pay-type-tabs button { padding: 11px; border-radius: 999px; background: #fff4f7; color: var(--primary-dark); border: 1px solid var(--line); font-weight: 900; }
.pay-type-tabs button.is-active { background: var(--primary); color: #fff; border-color: var(--primary); }
.pay-type-tabs button.is-disabled,
.pay-type-tabs button:disabled { opacity: .45; cursor: not-allowed; }
.pay-amount-notice {
  margin: 14px 0 4px;
  padding: 12px 14px;
  border: 2px solid #ff356f;
  border-radius: 12px;
  background: #fff0f5;
  color: #d8003f;
  box-shadow: 0 6px 18px rgba(216, 0, 63, .16);
  font-size: 18px;
  font-weight: 900;
  line-height: 1.45;
  letter-spacing: .04em;
  text-align: center;
}
.pay-amount-notice::before { content: "⚠ "; }
.pay-profile img { width: 70px; height: 70px; border-radius: 50%; object-fit: cover; }
.pay-profile span { display: block; font-weight: 900; margin-top: 6px; }
.member-card-list {
  display: grid;
  gap: 12px;
  margin: 14px 0 16px;
}
.member-profile-card.is-readonly {
  cursor: default;
}
.member-profile-scope-note {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
}
.member-profile-card {
  cursor: pointer;
}
.member-live-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}
.member-live-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}
.member-live-status i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #a5adba;
}
.member-live-status.is-live { color: #e92d67; }
.member-live-status.is-live i {
  background: #ff3f78;
  box-shadow: 0 0 0 4px rgba(255, 63, 120, .14);
}
.member-live-button {
  padding: 8px 13px;
  border: 1px solid var(--primary);
  border-radius: 999px;
  color: #fff;
  background: var(--primary);
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}
.member-live-button:disabled {
  border-color: #d9dde5;
  color: #8d95a3;
  background: #f2f4f7;
  cursor: default;
}
.membership-summary {
  display: grid;
  gap: 4px;
  margin: 12px 0;
  padding: 12px;
  border-radius: 10px;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), #ff86af);
}
.membership-summary strong { font-size: 17px; }
.membership-summary span { opacity: .92; }
.account-info-block {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.account-info-block h2 {
  margin: 0 0 4px;
  font-size: 18px;
}
.account-row { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--line); }
.account-row span { color: var(--muted); }
.account-row strong { text-align: right; overflow-wrap: anywhere; }
.account-number-copy { min-width: 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; }
.copy-account-btn { padding: 6px 9px; border: 1px solid var(--primary); border-radius: 999px; color: var(--primary); background: #fff; font-size: 12px; font-weight: 800; cursor: pointer; }
.device-sync-block > p { margin: 0 0 14px; color: var(--muted); line-height: 1.65; }
.device-sync-block .secondary-btn {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--primary);
  color: var(--primary);
  background: #fff;
  font-weight: 700;
}
.device-sync-code-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  margin-top: 12px;
}
.device-sync-code {
  padding: 14px;
  border: 1px dashed var(--primary);
  background: #fff5f8;
  color: var(--primary);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 4px;
  text-align: center;
}
.copy-sync-btn {
  min-width: 82px;
  padding: 0 12px;
  color: #fff;
  background: var(--primary);
  font-weight: 700;
}
.device-sync-form { display: grid; gap: 10px; margin-top: 14px; }
.device-sync-form input { width: 100%; }
.device-sync-form .primary-btn { width: 100%; }
.account-login-block { display: grid; gap: 10px; }
.account-login-block > p { margin: 0; color: var(--muted); line-height: 1.55; }
.account-registration-note { display: block; color: var(--muted); line-height: 1.6; }
.account-login-form { padding-top: 12px; border-top: 1px solid var(--line); }
.paid-work-settings { display: grid; gap: 10px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: #fff8fb; }
.paid-work-settings > label { font-weight: 700; }
.paid-work-settings small { color: var(--muted); line-height: 1.5; }
.device-sync-block .form-message { min-height: 20px; margin: 10px 0 0; }

@media (max-width: 360px) {
  .device-sync-code { padding-inline: 8px; font-size: 21px; letter-spacing: 2px; }
  .copy-sync-btn { min-width: 72px; padding-inline: 8px; }
}

.creator-page { background: #fff; }
.creator-panel { background: #fff; }
.creator-dashboard-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.creator-order-stats-card { margin: 14px 0; padding: 14px; border: 1px solid #f0dbe3; border-radius: 8px; background: #fff; }
.creator-order-stats-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.creator-order-stats-head h2 { margin: 0; font-size: 20px; }
.creator-order-stats-head p { margin: 5px 0 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.creator-order-stats-filter { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; align-items: end; margin-top: 14px; }
.creator-order-stats-filter label { min-width: 0; display: grid; gap: 6px; }
.creator-order-stats-filter label > span { color: var(--muted); font-size: 13px; }
.creator-order-stats-filter input { width: 100%; min-width: 0; }
.creator-order-stats-filter .ghost-btn { grid-column: 1 / -1; min-height: 44px; }
.creator-order-details-card { margin: 14px 0; padding: 14px; border: 1px solid #f0dbe3; border-radius: 8px; background: #fff; }
.creator-order-details-tools { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 7px; }
.creator-order-details-tools > strong { min-width: 34px; min-height: 34px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; color: var(--primary); background: #fff0f5; }
.creator-order-details-body { margin-top: 13px; }
.creator-order-details-summary { margin: 0 0 10px; padding: 9px 11px; border-radius: 7px; color: #7f5364; background: #fff7fa; font-size: 13px; }
.creator-order-details-list { display: grid; gap: 9px; }
.creator-order-detail-row { padding: 11px; border: 1px solid #f0dbe3; border-radius: 8px; background: #fff9fb; }
.creator-order-detail-row.is-paid { border-color: #cfe9dc; background: #f8fffb; }
.creator-order-detail-head, .creator-order-detail-main { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.creator-order-detail-head span { padding: 3px 7px; border-radius: 999px; color: #a56a00; background: #fff0cf; font-size: 12px; font-weight: 700; }
.creator-order-detail-row.is-paid .creator-order-detail-head span { color: #128553; background: #dbf6e8; }
.creator-order-detail-main { margin-top: 7px; }
.creator-order-detail-main strong { color: var(--primary); }
.creator-order-detail-row small { display: block; margin-top: 5px; color: var(--muted); line-height: 1.45; overflow-wrap: anywhere; }
#creatorOrderStatsBody[hidden] { display: none; }
.creator-stats { margin-top: 12px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.creator-stats article { min-width: 0; padding: 14px 12px; border: 1px solid #f0dbe3; border-radius: 8px; background: #fff8fa; }
.creator-stats article:last-child { grid-column: 1 / -1; }
.creator-stats span, .creator-stats small { display: block; color: var(--muted); font-size: 13px; }
.creator-stats strong { display: flex; align-items: baseline; gap: 3px; margin: 7px 0 2px; color: #22242a; font-size: 30px; line-height: 1; }
.creator-stats strong small { color: inherit; font-size: 16px; font-weight: 800; }
.manual-order-card { margin: 14px 0; padding: 14px; border: 1px solid #f0dbe3; border-radius: 8px; background: #fff; }
.manual-order-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.manual-order-head h2, .manual-order-head h3 { margin: 0; font-size: 20px; }
.manual-order-head p { margin: 5px 0 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.manual-order-tools { display: flex; align-items: center; gap: 7px; }
.manual-order-tools > strong { min-width: 32px; height: 32px; display: grid; place-items: center; color: var(--primary); border-radius: 999px; background: #fff0f5; }
.manual-order-body[hidden] { display: none; }
.manual-unlocked-panel { margin-bottom: 14px; padding: 12px; border: 1px solid #f3e2e8; border-radius: 8px; background: #fff9fb; }
.manual-unlocked-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.manual-unlocked-head h3 { margin: 0; font-size: 16px; }
.manual-unlocked-head p { margin: 4px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.manual-unlocked-list { max-height: 300px; margin-top: 10px; display: grid; gap: 8px; overflow-y: auto; }
.manual-unlocked-row { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 9px; align-items: center; padding: 10px; border: 1px solid #f0dbe3; border-radius: 8px; background: #fff; }
.manual-unlocked-order { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; color: var(--primary); background: #fff0f5; font-size: 12px; font-weight: 800; }
.manual-unlocked-main { min-width: 0; }
.manual-unlocked-main strong, .manual-unlocked-main span { display: block; overflow-wrap: anywhere; }
.manual-unlocked-main span { margin-top: 4px; color: var(--muted); font-size: 12px; }
.manual-unlocked-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.manual-order-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.manual-order-form > label { min-width: 0; display: grid; gap: 6px; }
.manual-order-form > label > span { color: var(--primary); font-size: 13px; font-weight: 800; }
.manual-order-form input, .manual-order-form select { width: 100%; min-width: 0; }
.manual-order-form button:disabled { opacity: .58; cursor: wait; }
.manual-order-submit-row { display: flex; align-items: center; gap: 10px; }
.manual-order-submit-row .primary-btn { flex: 1 1 auto; }
.manual-order-history { margin-top: 16px; padding-top: 14px; border-top: 1px solid #f3e2e8; }
.manual-order-history-list { margin-top: 10px; display: grid; gap: 9px; }
.manual-order-history-row { padding: 11px; border: 1px solid #f0dbe3; border-radius: 8px; background: #fff9fb; }
.manual-order-history-main { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.manual-order-history-main strong, .manual-order-history-main span { overflow-wrap: anywhere; }
.manual-order-history-main span { color: var(--primary); font-weight: 800; }
.manual-order-history-meta { margin-top: 6px; color: var(--muted); font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.manual-order-history-actions { margin-top: 9px; display: flex; gap: 8px; }
.manual-order-history-actions button { flex: 1 1 0; }
.manual-order-fixed-note { width: 100%; padding: 8px 10px; border-radius: 7px; color: #8a6573; background: #fff1f6; font-size: 12px; line-height: 1.45; }
.table-action-group { display: flex; flex-wrap: wrap; gap: 6px; min-width: 118px; }
.admin-manual-order-card { margin: 0 0 18px; padding: 16px; border-color: #e7edf5; background: #f8fafc; }
.creator-upgrades { margin: 14px 0; padding: 14px; border: 1px solid #f0dbe3; border-radius: 8px; background: #fff; }
.creator-upgrades-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.creator-upgrades-head h2 { margin: 0; font-size: 20px; }
.creator-upgrades-head p { margin: 5px 0 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.creator-upgrades-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 7px; }
.creator-upgrades-tools > strong { min-width: 32px; height: 32px; display: grid; place-items: center; color: var(--primary); border-radius: 999px; background: #fff0f5; }
.creator-upgrades-body { margin-top: 14px; }
.creator-upgrades-body[hidden] { display: none; }
.creator-upgrades-filters { display: grid; grid-template-columns: minmax(135px, .7fr) minmax(180px, 1.3fr) auto; gap: 8px; align-items: end; }
.creator-upgrades-filters label { display: grid; gap: 5px; color: var(--muted); font-size: 12px; }
.creator-upgrades-filters input { width: 100%; min-width: 0; }
.creator-upgrade-list { display: grid; gap: 9px; margin-top: 14px; }
.creator-upgrade-list[hidden] { display: none; }
.creator-upgrade-row { min-width: 0; padding: 11px; border: 1px solid #f3e2e8; border-radius: 8px; background: #fff9fb; }
.creator-upgrade-row-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.creator-upgrade-row-head span { padding: 4px 7px; color: var(--primary); border-radius: 999px; background: #ffeaf1; font-size: 12px; font-weight: 700; text-align: right; }
.creator-upgrade-row small { color: var(--muted); }
.creator-upgrade-identity { min-width: 0; display: grid; gap: 4px; }
.creator-upgrade-identity strong { overflow-wrap: anywhere; }
.creator-upgrade-identity small { overflow-wrap: anywhere; }
.creator-upgrade-time { display: block; margin-top: 8px; }
.creator-settings-form { margin-top: 14px; padding: 16px; border: 1px solid #f0dbe3; border-radius: 8px; background: #fff; }
.creator-settings-form > h2 { margin: 0; font-size: 20px; }
.creator-settings-form > p { margin: -4px 0 2px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.creator-price-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.creator-price-grid label:last-child { grid-column: 1 / -1; }
.creator-membership-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.creator-session-entry-card { width: 100%; min-height: 82px; margin: 14px 0; padding: 16px; display: flex; align-items: center; justify-content: space-between; gap: 14px; border: 1px solid #f0dbe3; border-radius: 8px; color: #22242a; background: #fff8fa; text-align: left; cursor: pointer; }
.creator-session-entry-card span:first-child { min-width: 0; display: grid; gap: 5px; }
.creator-session-entry-card strong { font-size: 20px; }
.creator-session-entry-card small { color: var(--muted); font-size: 13px; line-height: 1.45; }
.creator-session-entry-card span:last-child { color: var(--pink); font-size: 30px; line-height: 1; }
.creator-session-form-card { margin: 14px 0; padding: 14px; border: 1px solid #f0dbe3; border-radius: 8px; background: #fff; }
.creator-session-form-card .section-title-row { align-items: flex-start; gap: 12px; }
.creator-session-form-card .section-title-row h2, .creator-session-recent h3 { margin: 0; }
.creator-session-form-card .section-title-row p { margin: 5px 0 0; color: var(--muted); font-size: 13px; }
.creator-session-form { margin-top: 14px; }
.creator-session-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.creator-session-form-grid label { min-width: 0; }
.creator-session-rate-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.creator-session-rate-grid span { padding: 12px; display: grid; gap: 4px; border: 1px solid #f0dbe3; border-radius: 8px; color: var(--muted); background: #fff8fa; font-size: 13px; }
.creator-session-rate-grid strong { color: #22242a; font-size: 22px; }
.creator-session-actions { display: grid; grid-template-columns: 1fr 1.35fr; gap: 10px; }
.creator-session-recent { margin-top: 18px; padding-top: 16px; border-top: 1px solid #f0dbe3; }
.creator-session-record-list { margin-top: 10px; display: grid; gap: 8px; }
.creator-session-record-item { padding: 12px; display: grid; gap: 10px; border: 1px solid #edf1f6; border-radius: 8px; background: #fafbfd; }
.creator-session-record-item > div { min-width: 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 10px; }
.creator-session-record-item span { color: var(--muted); font-size: 12px; }
.creator-session-edit-btn { margin-left: auto; }
.creator-video-orders { margin: 14px 0; padding: 14px; border: 1px solid #f0dbe3; border-radius: 8px; background: #fff; }
.creator-video-orders .section-title-row { gap: 12px; align-items: flex-start; }
.creator-video-orders .section-title-row p { margin: 5px 0 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.creator-video-order-tools { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.creator-video-order-tools > strong { min-width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: #f2eef0; color: var(--muted); }
.creator-video-order-tools > strong.has-orders { background: var(--pink); color: #fff; }
.creator-video-order-list { margin-top: 12px; display: grid; gap: 10px; }
.creator-video-order { padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.creator-video-order.is-new { border-color: var(--pink); box-shadow: inset 4px 0 0 var(--pink); background: #fff8fa; }
.creator-video-order-head { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.creator-video-order-head > div { min-width: 0; }
.creator-video-order-head strong, .creator-video-order-head span { display: block; }
.creator-video-order-head strong { overflow-wrap: anywhere; }
.creator-video-order-head span { margin-top: 4px; color: var(--pink); font-size: 13px; font-weight: 800; }
.creator-video-order-head time { flex: 0 0 auto; color: #24262c; font-size: 13px; font-weight: 800; }
.creator-video-order dl { margin: 10px 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px 12px; }
.creator-video-order dl div { min-width: 0; }
.creator-video-order dl .wide { grid-column: 1 / -1; }
.creator-video-order dt { color: var(--muted); font-size: 12px; }
.creator-video-order dd { margin: 2px 0 0; overflow-wrap: anywhere; font-size: 14px; }
.creator-video-order-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.creator-video-order-actions:has(> :only-child) { grid-template-columns: 1fr; }
.creator-live-control { margin: 14px 0; padding: 14px; border-radius: 10px; background: var(--blue-soft); border: 1px solid #dbe4ff; }
.creator-live-control strong, .creator-live-control span { display: block; margin-bottom: 8px; }
.creator-live-mode-field { display: grid; gap: 6px; margin: 12px 0; }
.creator-live-mode-field span { margin: 0; color: #536175; font-size: 13px; font-weight: 700; }
.creator-live-mode-field select { width: 100%; }
.creator-camera-panel { margin: 12px 0; overflow: hidden; border: 1px solid #cfd9ef; border-radius: 8px; background: #0c1018; }
.creator-camera-panel video { width: 100%; aspect-ratio: 9 / 16; max-height: 62vh; display: block; object-fit: cover; background: #0c1018; }
.creator-tencent-preview { width: 100%; aspect-ratio: 9 / 16; max-height: 62vh; background: #0c1018; overflow: hidden; }
.creator-tencent-preview video { width: 100% !important; height: 100% !important; object-fit: cover; }
.creator-camera-actions { padding: 10px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; background: #fff; }
.creator-camera-actions button { min-width: 0; min-height: 40px; padding: 7px 5px; white-space: normal; line-height: 1.25; }
.creator-camera-panel small { padding: 0 10px 10px; display: block; color: #536175; background: #fff; }
.creator-live-control.is-live { border-color: #ff4f7d; background: #fff5f8; }
.creator-live-control.is-busy button { opacity: .72; pointer-events: none; }
.form-hint { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.webrtc-live-video { position: relative; background: #090b10; overflow: hidden; }
.webrtc-live-video video { width: 100%; display: block; background: #090b10; object-fit: contain; }
.webrtc-live-actions { position: absolute; right: 10px; bottom: 10px; display: flex; gap: 8px; }
.webrtc-live-actions button { min-height: 36px; padding: 7px 12px; border: 1px solid rgba(255,255,255,.58); border-radius: 6px; color: #fff; background: rgba(0,0,0,.55); font-weight: 700; }
body.has-live-mobile-fullscreen { overflow: hidden; }
body.has-live-mobile-fullscreen .mobile-page { overflow: visible; }
.synchronized-video.is-mobile-fullscreen,
.live-stream-video.is-mobile-fullscreen,
.webrtc-live-video.is-mobile-fullscreen {
  position: fixed !important;
  z-index: 1000;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0;
  background: #000;
}
.synchronized-video.is-mobile-fullscreen video,
.live-stream-video.is-mobile-fullscreen video,
.webrtc-live-video.is-mobile-fullscreen video {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: contain;
}
.synchronized-video.is-mobile-fullscreen.is-portrait-video video,
.live-stream-video.is-mobile-fullscreen.is-portrait-video video,
.webrtc-live-video.is-mobile-fullscreen.is-portrait-video video { object-fit: cover; }
.synchronized-video:fullscreen,
.live-stream-video:fullscreen,
.webrtc-live-video:fullscreen {
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 0;
  background: #000;
}
.synchronized-video:fullscreen video,
.live-stream-video:fullscreen video,
.webrtc-live-video:fullscreen video {
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  max-width: none;
  max-height: none;
  border-radius: 0;
  object-fit: contain;
}
.synchronized-video.is-portrait-video:fullscreen video,
.live-stream-video.is-portrait-video:fullscreen video,
.webrtc-live-video.is-portrait-video:fullscreen video { object-fit: cover; }
.synchronized-video:-webkit-full-screen,
.live-stream-video:-webkit-full-screen,
.webrtc-live-video:-webkit-full-screen {
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 0;
  background: #000;
}
.synchronized-video:-webkit-full-screen video,
.live-stream-video:-webkit-full-screen video,
.webrtc-live-video:-webkit-full-screen video {
  width: 100vw;
  height: 100vh;
  max-width: none;
  max-height: none;
  border-radius: 0;
  object-fit: contain;
}
.synchronized-video.is-portrait-video:-webkit-full-screen video,
.live-stream-video.is-portrait-video:-webkit-full-screen video,
.webrtc-live-video.is-portrait-video:-webkit-full-screen video { object-fit: cover; }
.synchronized-video.is-mobile-fullscreen .live-compact-controls,
.live-stream-video.is-mobile-fullscreen .live-compact-controls,
.webrtc-live-video.is-mobile-fullscreen .webrtc-live-actions {
  position: fixed;
  z-index: 1002;
  right: max(12px, env(safe-area-inset-right));
  bottom: max(14px, env(safe-area-inset-bottom));
}
.synchronized-video:fullscreen .live-compact-controls,
.live-stream-video:fullscreen .live-compact-controls,
.webrtc-live-video:fullscreen .webrtc-live-actions,
.synchronized-video:-webkit-full-screen .live-compact-controls,
.live-stream-video:-webkit-full-screen .live-compact-controls,
.webrtc-live-video:-webkit-full-screen .webrtc-live-actions {
  position: fixed;
  z-index: 1002;
  right: max(12px, env(safe-area-inset-right));
  bottom: max(14px, env(safe-area-inset-bottom));
}
.synchronized-video:fullscreen .live-compact-controls,
.live-stream-video:fullscreen .live-compact-controls,
.synchronized-video:-webkit-full-screen .live-compact-controls,
.live-stream-video:-webkit-full-screen .live-compact-controls {
  left: max(12px, env(safe-area-inset-left));
}
.synchronized-video.is-mobile-fullscreen .live-compact-controls,
.live-stream-video.is-mobile-fullscreen .live-compact-controls {
  left: max(12px, env(safe-area-inset-left));
}
@media (max-width: 360px) {
  .creator-camera-actions { grid-template-columns: 1fr 1fr; }
  .creator-camera-actions button:last-child { grid-column: 1 / -1; }
}
.admin-form { display: grid; gap: 12px; }
.admin-subsection {
  padding: 16px;
  border: 1px solid #e8edf5;
  border-radius: 10px;
  background: #f8fafc;
}
.admin-subsection h3 { margin: 0 0 6px; font-size: 16px; }
.admin-subsection p { margin: 0 0 14px; color: #8b95a7; }
.profile-custom-options-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(280px, .6fr); gap: 16px; }
.profile-custom-options-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.profile-custom-options-title h3 { margin: 0; }
.profile-custom-options-title p { margin: 6px 0 0; }
.profile-custom-options-body { margin-top: 14px; }
.profile-custom-options-body[hidden] { display: none; }
.profile-custom-option-column { min-width: 0; padding: 14px; border: 1px solid #e2e8f2; border-radius: 8px; background: #fff; }
.profile-custom-option-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.profile-custom-option-head strong, .profile-custom-option-head small { display: block; }
.profile-custom-option-head small { margin-top: 4px; color: #8b95a7; }
.profile-custom-option-head > div:last-child { display: flex; flex: 0 0 auto; gap: 6px; }
.profile-custom-option-list { display: grid; gap: 8px; }
.profile-custom-option-row { display: grid; grid-template-columns: minmax(120px, 1fr) 82px auto; gap: 8px; align-items: center; }
.profile-custom-option-row input[type="text"] { min-width: 0; }
.profile-custom-option-toggle { height: 42px; padding: 0 9px; display: flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid #dfe6f0; border-radius: 8px; background: #f8fafc; cursor: pointer; }
.profile-custom-option-toggle input { width: 17px; height: 17px; accent-color: var(--blue); }
.profile-custom-option-toggle span { margin: 0; color: #536175; font-size: 13px; }
.admin-channel-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.upload-field { border: 1px dashed var(--line); border-radius: 8px; padding: 12px; }
.profile-image-upload { min-width: 0; padding: 12px; border: 1px dashed #d9e1ed; border-radius: 8px; background: #f8fafc; }
.profile-image-upload-label { display: block; margin-bottom: 8px; color: var(--primary); font-weight: 800; }
.profile-image-upload-body { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 12px; align-items: center; }
.profile-image-upload-body img { width: 112px; height: 112px; display: block; object-fit: cover; border: 1px solid #e1e7f0; border-radius: 8px; background: #fff; }
.profile-image-upload-body img[hidden] { display: none; }
.profile-image-upload-controls { min-width: 0; display: grid; gap: 8px; }
.profile-image-upload-controls input[type="file"] { width: 100%; min-width: 0; padding: 9px; border: 1px solid #dfe6f0; border-radius: 8px; background: #fff; }
.profile-image-upload-controls small { color: #7b8798; line-height: 1.5; }
.profile-image-upload-controls button:disabled { opacity: .6; cursor: wait; }
.creator-profile-image-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.creator-profile-image-grid .profile-image-upload-body { grid-template-columns: 1fr; align-items: stretch; }
.creator-profile-image-grid .profile-image-upload-body img { width: 100%; height: auto; aspect-ratio: 4 / 5; }
.creator-profile-image-grid .creator-profile-avatar-upload img { width: min(180px, 100%); aspect-ratio: 1; justify-self: center; border-radius: 50%; }
.creator-work-list { display: grid; gap: 14px; }
.creator-work-section-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.creator-work-section-head h2 { margin: 0; }
.creator-work-section-head p { margin: 6px 0 0; }
.creator-work-content[hidden] { display: none; }
.creator-setting-help { display: block; margin-top: -4px; color: var(--muted); line-height: 1.5; }
.admin-work-upload { display: grid; gap: 10px; }
.admin-subsection-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.admin-subsection-head h3 { margin: 0; }
.admin-subsection-head p { margin: 5px 0 0; color: #7b8798; font-size: 13px; line-height: 1.5; }
.admin-work-upload > input[type="text"] { width: 100%; }
.admin-work-upload .upload-field { display: grid; gap: 8px; background: #f8fafc; }
.admin-work-upload .upload-field span { color: #536175; font-size: 13px; font-weight: 700; }
.admin-work-upload .upload-field input[type="file"] { width: 100%; min-width: 0; padding: 9px; border: 1px solid #dfe6f0; border-radius: 8px; background: #fff; }
.admin-work-upload button:disabled { opacity: .6; cursor: wait; }
.admin-subsection-divider { height: 1px; margin: 20px 0; background: var(--line); }
.work-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.work-row > div:first-child { min-width: 0; overflow-wrap: anywhere; }
.work-row span { display: block; color: var(--muted); font-size: 13px; }
.work-row-actions { display: flex; flex: 0 0 auto; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.work-row .small-btn:disabled { opacity: .42; cursor: not-allowed; }
.work-row-main { min-width: 140px; flex: 1 1 220px; overflow-wrap: anywhere; }
.work-row-thumb { width: 58px; height: 58px; flex: 0 0 58px; border-radius: 8px; object-fit: cover; background: #eef2f7; }
.work-row-thumb-video { display: grid !important; place-items: center; color: #536175 !important; font-size: 12px !important; font-weight: 700; }
.work-select { display: grid; place-items: center; flex: 0 0 auto; }
.work-select input { width: 18px; height: 18px; }
.work-bulk-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 10px; margin-bottom: 6px; border: 1px solid var(--line); border-radius: 10px; background: #f8fafc; }
.work-bulk-toolbar label { display: flex; align-items: center; gap: 6px; }
.work-sort-note { margin-left: auto; color: var(--muted); font-size: 13px; }
.work-editor { display: grid; flex: 1 0 100%; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: #f8fafc; }
.work-editor[hidden] { display: none; }
.work-editor > label { display: grid; gap: 6px; }
.paid-setting-btn { color: #fff; border-color: var(--primary); background: var(--primary); }
.admin-paid-work-settings { display: grid; gap: 10px; margin: 0; padding: 14px; border: 1px solid #f2c9d8; border-radius: 10px; background: #fff8fb; }
.admin-paid-work-settings legend { padding: 0 6px; color: var(--primary); font-weight: 800; }
.admin-paid-work-settings > label { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.admin-paid-work-settings > small { color: var(--muted); line-height: 1.5; }
.work-editor.is-paid-settings { border-color: var(--primary); box-shadow: 0 0 0 2px rgba(244, 65, 123, .08); }
.work-image-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; }
.work-image-grid figure { display: grid; gap: 6px; margin: 0; }
.work-image-grid img { width: 100%; aspect-ratio: 1; border-radius: 8px; object-fit: cover; background: #e8edf4; }
.creator-offline-form { margin: 18px 0; padding: 16px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.creator-offline-form h2 { margin: 0 0 4px; }
.creator-offline-orders { margin-top: 18px; }
.creator-offline-booking { padding: 12px 0; border-bottom: 1px solid var(--line); }
.creator-offline-booking p { margin: 5px 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.companion-portal { min-height: 100vh; }
.companion-dashboard { min-height: 100vh; background: #eef2f7; }
.companion-topbar { padding: 18px 24px; display: flex; align-items: center; justify-content: space-between; gap: 20px; color: #fff; background: #315fd3; }
.companion-topbar span { font-size: 12px; opacity: .82; }
.companion-topbar h1 { margin: 4px 0; font-size: 24px; }
.companion-topbar p { margin: 0; opacity: .88; }
.companion-layout { width: min(1180px, calc(100% - 32px)); margin: 18px auto; display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, .9fr); gap: 18px; align-items: start; }
.companion-profile-form, .companion-orders { background: #fff; }
@media (max-width: 820px) {
  .companion-layout { width: calc(100% - 20px); grid-template-columns: 1fr; }
  .companion-topbar { padding: 16px; }
}
@media (max-width: 520px) {
  .creator-media-pickers { grid-template-columns: 1fr; }
  .creator-profile-image-grid { grid-template-columns: 1fr; }
  .creator-upgrades-head { display: grid; }
  .creator-upgrades-tools { justify-content: flex-start; }
  .creator-upgrades-filters { grid-template-columns: 1fr; }
  .manual-order-form { grid-template-columns: 1fr; }
  .manual-order-head { display: grid; }
  .manual-order-tools { justify-content: flex-start; }
  .manual-unlocked-row { grid-template-columns: 28px minmax(0, 1fr); }
  .manual-unlocked-actions { grid-column: 1 / -1; justify-content: stretch; }
  .manual-unlocked-actions button { flex: 1 1 110px; }
  .manual-order-submit-row { align-items: stretch; flex-direction: column; }
  .site-back-to-top { right: max(12px, env(safe-area-inset-right)); bottom: max(70px, calc(env(safe-area-inset-bottom) + 12px)); width: 48px; height: 48px; }
  .profile-image-upload-body { grid-template-columns: 1fr; }
  .profile-image-upload-body img { width: 100%; height: auto; aspect-ratio: 16 / 10; }
  .creator-price-grid, .creator-membership-actions, .creator-session-form-grid { grid-template-columns: 1fr; }
  .creator-price-grid label:last-child { grid-column: auto; }
  .work-row { align-items: flex-start; flex-direction: column; }
  .work-row-actions { width: 100%; justify-content: flex-start; }
}
.offline-map-links { display: flex; flex-wrap: wrap; gap: 5px; min-width: 150px; }
.offline-map-links small { color: #8b95a7; }

.admin-standalone { min-height: 100vh; background: #eef2f7; }
.admin-login-screen { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.admin-login-card { width: min(380px, 100%); padding: 28px; background: #fff; border-radius: 12px; box-shadow: 0 20px 70px rgba(31,45,61,.12); display: grid; gap: 12px; }
.admin-login-mark { width: 46px; height: 46px; display: grid; place-items: center; color: #fff; background: var(--blue); border-radius: 12px; font-weight: 900; }
.admin-login-card h1 { margin: 6px 0 0; }
.admin-login-card p { margin: 0; color: var(--muted); }
.admin-captcha-row { display: grid; grid-template-columns: 1fr 150px; gap: 10px; align-items: stretch; }
.admin-captcha-row button { height: 52px; padding: 0; overflow: hidden; border: 1px solid #dce4f0; border-radius: 8px; background: #f2f6ff; }
.admin-captcha-row img { width: 100%; height: 100%; display: block; object-fit: cover; }
.admin-shell { display: grid; grid-template-columns: 230px 1fr; min-height: 100vh; }
.admin-sidebar { background: #4168d8; color: #fff; overflow-y: auto; max-height: 100vh; position: sticky; top: 0; }
.admin-brand { height: 72px; padding: 18px; display: flex; align-items: center; gap: 10px; border-bottom: 1px solid rgba(255,255,255,.16); }
.admin-brand span { width: 36px; height: 36px; display: grid; place-items: center; color: var(--blue); background: #fff; border-radius: 10px; font-weight: 900; }
.admin-nav { padding-bottom: 20px; }
.admin-nav button, .admin-nav-item {
  display: block; width: 100%; padding: 12px 20px; text-align: left; background: transparent; color: rgba(255,255,255,.78); font-weight: 700;
}
.admin-nav button.is-active, .admin-nav-item.is-active { background: rgba(255,255,255,.14); color: #fff; }
.admin-nav-group strong { display: block; padding: 18px 18px 8px; font-size: 15px; }
.admin-nav-group button { padding-left: 34px; font-weight: 600; }
.admin-main { min-width: 0; }
.admin-topbar {
  height: 76px; padding: 0 24px; display: flex; align-items: center; justify-content: space-between;
  background: #fff; border-bottom: 1px solid #e7edf5; position: sticky; top: 0; z-index: 20;
}
.admin-breadcrumb { color: #8b95a7; font-size: 13px; }
.admin-topbar h1 { margin: 3px 0 0; font-size: 22px; }
.admin-top-actions { display: flex; gap: 8px; align-items: center; }
.admin-account-badge { padding: 7px 10px; color: #5f6d82; background: #f3f6fb; border-radius: 6px; font-size: 13px; font-weight: 800; }
.admin-top-actions a, .small-btn, .ghost-btn {
  padding: 8px 13px; border-radius: 8px; border: 1px solid #dce4f0; background: #fff; color: var(--blue); font-weight: 800;
}
.small-btn.light, .ghost-btn { color: #6d7584; }
.small-btn.danger, .danger { color: var(--red); }
.admin-global-message { min-height: 34px; padding: 9px 24px; color: #6d7584; }
.admin-global-message.success { color: var(--green); }
.admin-global-message.error { color: var(--red); }
.admin-view { display: none; padding: 0 24px 36px; }
.admin-view.is-active { display: block; }
.admin-section {
  margin-bottom: 18px; padding: 20px; background: #fff; border-radius: 10px;
  border: 1px solid #e8edf5; box-shadow: 0 8px 24px rgba(31,45,61,.04);
}
.admin-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 16px; border-bottom: 1px solid #edf1f6; padding-bottom: 12px; }
.admin-section-head h2 { margin: 0; font-size: 18px; }
.admin-section-head small { color: #8b95a7; }
.admin-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.metric-card { background: #fff; border: 1px solid #e8edf5; border-radius: 10px; padding: 18px; }
.metric-card span, .metric-card small { color: #8b95a7; }
.metric-card strong { display: block; margin: 10px 0 6px; font-size: 30px; }
.admin-dashboard-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 18px; }
.admin-product-orders-section { padding-bottom: 14px; }
.product-order-table-wrap { width: 100%; overflow-x: auto; }
.product-order-table {
  width: 100%; min-width: 920px; border-collapse: collapse; table-layout: fixed; font-size: 13px;
}
.product-order-table th, .product-order-table td {
  padding: 11px 12px; border-bottom: 1px solid #e9eef5; text-align: right; white-space: nowrap;
}
.product-order-table th:first-child, .product-order-table td:first-child { text-align: left; }
.product-order-table thead th { color: #748094; background: #f7f9fc; font-weight: 800; }
.product-order-table tbody th { color: #263246; font-weight: 900; }
.product-order-table tbody strong { color: var(--primary); }
.product-order-name { display: inline-flex; align-items: center; min-height: 24px; }
.admin-mini-stats { display: grid; gap: 10px; }
.mini-stat { display: flex; justify-content: space-between; padding: 12px; border-radius: 8px; background: #f7f9fc; }
.mini-stat strong { color: var(--primary-dark); }
.compact-profile { display: flex; gap: 12px; padding: 10px; border: 1px solid #edf1f6; border-radius: 8px; margin-bottom: 10px; }
.compact-profile img, .table-avatar { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; }
.compact-profile span, .admin-table small { display: block; color: #8b95a7; margin-top: 4px; }
.admin-form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.admin-form .form-wide { grid-column: 1 / -1; }
.browser-guide-quick-toggle {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto auto;
  gap: 14px;
  align-items: center;
  padding: 16px;
  border: 1px solid #dce4f0;
  border-radius: 10px;
  background: #f7f9fc;
}
.browser-guide-quick-copy { display: grid; gap: 5px; }
.browser-guide-quick-copy strong { color: #263246; font-size: 16px; }
.browser-guide-quick-copy small { color: #7b8799; line-height: 1.5; }
.browser-guide-quick-status {
  min-width: 72px;
  padding: 7px 10px;
  border-radius: 999px;
  text-align: center;
  font-size: 13px;
  font-weight: 900;
}
.browser-guide-quick-status.is-enabled { color: #147d4f; background: #e9f8f0; }
.browser-guide-quick-status.is-partial { color: #9a6711; background: #fff4d8; }
.browser-guide-quick-status.is-disabled { color: #7a8493; background: #e9edf3; }
.browser-guide-quick-actions { display: flex; gap: 8px; }
.browser-guide-quick-actions .small-btn { min-width: 88px; }
.browser-guide-quick-actions .browser-guide-enable { color: #fff; border-color: var(--blue); background: var(--blue); }
.browser-guide-quick-actions .small-btn:disabled { opacity: .45; cursor: not-allowed; }
@media (max-width: 760px) {
  .browser-guide-quick-toggle { grid-template-columns: 1fr auto; }
  .browser-guide-quick-actions { grid-column: 1 / -1; }
  .browser-guide-quick-actions .small-btn { flex: 1; }
}
.admin-table-wrap { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.admin-table th, .admin-table td { padding: 12px; border-bottom: 1px solid #edf1f6; vertical-align: middle; text-align: left; }
.admin-table th { background: #f7f9fc; color: #6d7584; white-space: nowrap; }
.admin-table td code { white-space: nowrap; }
.creator-profile-binding { display: grid; grid-template-columns: minmax(150px, 1fr) auto; gap: 8px; align-items: center; min-width: 270px; }
.creator-profile-binding select { width: 100%; min-width: 0; padding: 8px 10px; }
.order-filter-bar { display: grid; grid-template-columns: repeat(3, minmax(150px, 1fr)) auto auto; gap: 10px; align-items: end; margin-bottom: 16px; padding: 14px; background: #f7f9fc; border: 1px solid #e7edf5; border-radius: 8px; }
.order-filter-bar label span { display: block; margin-bottom: 6px; color: #6d7584; font-size: 13px; font-weight: 800; }
.order-filter-bar button { min-height: 44px; border-radius: 8px; }
.order-filter-bar > small { grid-column: 1 / -1; color: #6d7584; }
.session-record-filter {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr)) auto auto;
  gap: 10px;
  align-items: end;
  margin-bottom: 18px;
  padding: 14px;
  background: #f7f9fc;
  border: 1px solid #e7edf5;
  border-radius: 8px;
}
.session-record-filter label span {
  display: block;
  margin-bottom: 6px;
  color: #6d7584;
  font-size: 13px;
  font-weight: 800;
}
.session-record-filter button { min-height: 44px; border-radius: 8px; }
.session-record-metrics { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.session-record-metrics .metric-card { min-width: 0; padding: 15px; }
.session-record-metrics .metric-card strong { overflow-wrap: anywhere; font-size: 25px; }
.session-record-profile-groups { display: grid; gap: 20px; margin-top: 20px; }
.session-record-profile-card { overflow: hidden; border: 1px solid #dfe7f2; border-radius: 12px; background: #fff; box-shadow: 0 8px 24px rgba(42, 55, 81, 0.06); }
.session-record-profile-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 18px 20px; border-bottom: 1px solid #edf1f6; background: linear-gradient(135deg, #fff8fb, #f6f9ff); }
.session-record-profile-head span, .session-record-profile-head small { display: block; color: #7d8798; font-size: 12px; }
.session-record-profile-head h3 { margin: 5px 0; color: #22242a; font-size: 22px; }
.session-record-profile-head > strong { flex: 0 0 auto; padding: 9px 14px; border-radius: 999px; color: #e93168; background: #ffe8f0; font-size: 16px; }
.session-record-profile-metrics { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; padding: 16px 18px; }
.session-record-profile-metrics .metric-card { min-width: 0; padding: 12px; }
.session-record-profile-metrics .metric-card strong { overflow-wrap: anywhere; font-size: 20px; }
.session-record-profile-metrics .metric-card small { font-size: 11px; }
.session-record-profile-card > .admin-table-wrap { padding: 0 18px 18px; }
.session-record-empty { padding: 44px 20px; border: 1px dashed #dfe7f2; border-radius: 12px; color: #7d8798; background: #fafbfd; text-align: center; }
.table-subtext { display: block; margin-top: 4px; color: #8b95a7; font-size: 12px; white-space: nowrap; }
.order-status { display: inline-flex; padding: 5px 9px; border-radius: 999px; font-size: 12px; font-weight: 900; white-space: nowrap; }
.order-status-paid { color: #067347; background: #dff8ec; }
.order-status-pending { color: #9b5c00; background: #fff1d6; }
.order-status-failed, .order-status-closed { color: #b22d46; background: #ffe4ea; }
.form-toggle { min-height: 58px; padding: 10px 12px; display: flex !important; align-items: center; gap: 10px; border: 1px solid #dfe6f0; border-radius: 8px; background: #f8fafc; }
.form-toggle input { width: 20px; height: 20px; flex: 0 0 20px; accent-color: var(--blue); }
.form-toggle span { margin: 0; }
.form-toggle strong, .form-toggle small { display: block; }
.form-toggle small { margin-top: 3px; color: #8b95a7; font-weight: 500; }
.admin-search { max-width: 360px; margin-bottom: 14px; }
.banner-admin-row { border: 1px solid #edf1f6; border-radius: 10px; padding: 14px; margin-bottom: 12px; }
.banner-profile-cover { display: grid; gap: 7px; }
.banner-profile-cover > span { color: var(--primary); font-weight: 800; }
.banner-profile-cover img { width: min(420px, 100%); aspect-ratio: 16 / 8; display: block; object-fit: cover; border: 1px solid #e5eaf2; border-radius: 8px; background: #eef2f7; }
.banner-profile-cover img[hidden] { display: none; }
.banner-profile-cover small { color: #7b8798; }
.admin-live-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.admin-live-card { border: 1px solid #edf1f6; border-radius: 10px; padding: 14px; display: grid; gap: 10px; }
.live-platform-form { margin-bottom: 18px; padding-bottom: 18px; border-bottom: 1px solid #e8edf5; }
.live-platform-section { margin: 0; }
.admin-live-schedule { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.admin-live-schedule > small { grid-column: 1 / -1; color: #7d8796; line-height: 1.5; }
.admin-live-password { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 12px; border: 1px solid #e4e9f2; border-radius: 8px; background: #f8fafc; }
.admin-live-password .form-toggle:last-child { grid-column: 1 / -1; }
.admin-live-preview { position: relative; background: #111; border-radius: 8px; overflow: hidden; aspect-ratio: 16 / 8; }
.admin-live-preview img, .admin-live-preview video, .admin-preview-video { width: 100%; height: 100%; object-fit: cover; display: block; background: #111; }
.admin-live-preview span { position: absolute; right: 10px; top: 10px; padding: 5px 9px; border-radius: 999px; color: #fff; background: var(--primary); font-weight: 900; font-size: 12px; }
.admin-live-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

.bigdata-screen { padding: 18px; color: #eaf4ff; background: #071b3c; border: 1px solid #194d8c; border-radius: 8px; min-height: calc(100vh - 130px); }
.bigdata-loading { min-height: 280px; display: grid; place-items: center; color: #8ba9d8; }
.bigdata-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; margin-bottom: 14px; background: #0a2c65; border: 1px solid #1d5fa7; }
.bigdata-header span { color: #49dcba; font-size: 12px; font-weight: 800; }
.bigdata-header h2 { margin: 4px 0 0; font-size: 28px; letter-spacing: 0; }
.bigdata-header > strong { color: #8fb4eb; font-size: 13px; }
.bigdata-metrics-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.bigdata-metric { min-height: 104px; padding: 14px; background: #0b326d; border: 1px solid #1e5ba1; }
.bigdata-metric span, .bigdata-metric small { display: block; color: #92b5e7; }
.bigdata-metric strong { display: block; margin: 8px 0 2px; color: #fff; font-size: 25px; overflow-wrap: anywhere; }
.bigdata-main-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(280px, .8fr); gap: 12px; margin-bottom: 12px; }
.bigdata-panel { padding: 14px; background: #09295e; border: 1px solid #1c579d; min-width: 0; }
.bigdata-panel h3 { margin: 0 0 12px; color: #fff; font-size: 16px; }
.bigdata-product-orders { margin-bottom: 12px; }
.product-order-table-dark .product-order-table th,
.product-order-table-dark .product-order-table td { border-bottom-color: #194a86; }
.product-order-table-dark .product-order-table thead th { color: #83a9dc; background: #0b326d; }
.product-order-table-dark .product-order-table tbody th,
.product-order-table-dark .product-order-table tbody td { color: #dcecff; }
.product-order-table-dark .product-order-table tbody tr:hover { background: #0c3676; }
.product-order-table-dark .product-order-table tbody strong { color: #4ee2a4; }
.bigdata-chart-panel { overflow: hidden; }
.bigdata-chart { width: 100%; height: 250px; display: block; }
.bigdata-interactive-chart { position: relative; }
.bigdata-chart-hit { fill: transparent; cursor: crosshair; pointer-events: all; }
.bigdata-chart-tooltip {
  position: absolute; top: 14px; z-index: 4; min-width: 172px; padding: 10px 12px;
  transform: translateX(-50%); color: #fff; background: rgba(3, 14, 38, .96);
  border: 1px solid #3a78c5; border-radius: 6px; box-shadow: 0 10px 24px rgba(0,0,0,.28);
  pointer-events: none;
}
.bigdata-chart-tooltip strong, .bigdata-chart-tooltip span { display: block; }
.bigdata-chart-tooltip strong { margin-bottom: 5px; color: #8fdcff; }
.bigdata-chart-tooltip span { margin-top: 3px; color: #eef7ff; font-size: 13px; }
.bigdata-ip-panel { max-height: 310px; overflow-y: auto; }
.bigdata-ip-panel > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; padding: 9px 0; border-bottom: 1px solid #1b4b87; }
.bigdata-ip-panel code { color: #50e4b1; }
.bigdata-ip-panel small { grid-column: 1 / -1; color: #799bd0; }
.bigdata-ranks-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 12px; }
.bigdata-rank-head, .bigdata-rank-row { display: grid; grid-template-columns: 44px minmax(100px, 1fr) 54px 90px; gap: 8px; align-items: center; padding: 9px 5px; }
.bigdata-rank-head { color: #7fa4db; border-bottom: 1px solid #1f5795; font-size: 12px; }
.bigdata-rank-row { border-bottom: 1px solid #143f78; }
.bigdata-rank-row b { width: 27px; height: 27px; display: grid; place-items: center; color: #071b3c; background: #ffcc66; border-radius: 50%; }
.bigdata-rank-row strong { color: #4ee2a4; text-align: right; }
.bigdata-empty { color: #7e9dc9; }
.complaint-content { display: block; min-width: 220px; max-width: 360px; white-space: normal; }
.member-account-search { display: flex; align-items: end; gap: 14px; margin-bottom: 14px; padding: 14px; background: #f7f9fc; border: 1px solid #e3e9f2; border-radius: 8px; }
.member-account-search label { flex: 1; max-width: 640px; }
.member-account-search span { display: block; margin-bottom: 7px; color: var(--primary); font-weight: 800; }
.member-account-search input { width: 100%; min-height: 44px; padding: 0 13px; border: 1px solid #dce3ee; border-radius: 7px; background: #fff; }
.member-account-search small { padding-bottom: 12px; color: #7d8796; }
.permission-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.permission-group { overflow: hidden; border: 1px solid #dfe6f0; border-radius: 8px; background: #fff; }
.permission-group-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 11px 12px; background: #f3f6fb; border-bottom: 1px solid #e3e9f2; }
.permission-group-head strong, .permission-group-head small { display: block; }
.permission-group-head > div > strong { color: #1d2a3a; font-size: 15px; }
.permission-group-head > div > small { margin-top: 3px; color: #8490a2; font-size: 12px; }
.permission-group-toggle { display: flex !important; flex: 0 0 auto; flex-direction: row !important; align-items: center; gap: 6px; color: #4d5d73; font-size: 12px; font-weight: 700; cursor: pointer; }
.permission-group-toggle input, .permission-option input { width: 18px; height: 18px; accent-color: var(--blue); }
.permission-group-toggle span { margin: 0 !important; color: inherit !important; }
.permission-group-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 10px; }
.permission-option { display: flex !important; flex-direction: row !important; align-items: center; gap: 9px; min-height: 48px; padding: 9px 10px; background: #fff; border: 1px solid #e3e9f2; border-radius: 6px; cursor: pointer; }
.permission-option:hover { border-color: #aebfe0; background: #f9fbff; }
.permission-option > span, .permission-option strong, .permission-option small { display: block; }
.permission-option > span { margin: 0 !important; color: #253247 !important; }
.permission-option strong { font-size: 13px; }
.permission-option small { margin-top: 3px; color: #8a94a5; font-size: 11px; line-height: 1.35; }
.subadmin-list { display: grid; gap: 14px; margin-top: 18px; }
.subadmin-card { padding: 16px; border: 1px solid #e3e9f2; border-radius: 8px; }
.subadmin-card-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.subadmin-card-head strong, .subadmin-card-head span { display: block; }
.subadmin-card-head span { margin-top: 3px; color: #7d8796; }
.subadmin-card-head em { color: #138568; font-style: normal; font-weight: 800; }
.subadmin-card-head em.is-locked { color: #e04462; }
.subadmin-fields { display: grid; margin-bottom: 12px; }
.subadmin-actions { display: flex; gap: 8px; margin-top: 12px; }
.cleanup-warning { margin-bottom: 18px; padding: 14px 16px; color: #8a2538; background: #fff3f5; border: 1px solid #efb9c4; border-radius: 8px; }
.cleanup-warning strong { display: block; margin-bottom: 5px; font-size: 17px; }
.cleanup-warning p { margin: 0; line-height: 1.65; }
.cleanup-submit { background: #c9304f; }
.cleanup-submit:hover { background: #a91f3c; }

/* AI assistant */
.ai-assistant-fab {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(142px, calc(env(safe-area-inset-bottom) + 80px));
  z-index: 1650;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  padding: 6px;
  border: 1px solid rgba(255,255,255,.78);
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(145deg, #7b5cff, #ff4f87);
  box-shadow: 0 10px 28px rgba(92, 50, 160, .3);
}
.ai-assistant-fab span, .ai-assistant-fab small { display: block; line-height: 1; }
.ai-assistant-fab span { font-size: 18px; font-weight: 950; }
.ai-assistant-fab small { margin-top: 2px; color: inherit; font-size: 9px; }
.ai-assistant-fab i {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 11px;
  height: 11px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #ffca4b;
}
.ai-assistant-panel {
  position: fixed;
  right: max(12px, env(safe-area-inset-right));
  bottom: max(82px, calc(env(safe-area-inset-bottom) + 70px));
  z-index: 1700;
  width: min(390px, calc(100vw - 24px));
  max-height: min(680px, calc(100dvh - 108px));
  display: grid;
  grid-template-rows: auto auto minmax(120px, 1fr) auto auto auto;
  overflow: hidden;
  border: 1px solid rgba(235, 215, 226, .9);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 20px 55px rgba(58, 34, 46, .3);
}
.ai-assistant-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 15px;
  color: #fff;
  background: linear-gradient(135deg, #754fdf, #ff4f87);
}
.ai-assistant-head strong, .ai-assistant-head small { display: block; }
.ai-assistant-head small { margin-top: 4px; color: rgba(255,255,255,.85); font-size: 11px; }
.ai-assistant-head small i { display: inline-block; width: 7px; height: 7px; margin-right: 4px; border-radius: 50%; background: #71efaf; }
.ai-assistant-head button { width: 34px; height: 34px; flex: 0 0 auto; border-radius: 50%; color: #fff; background: rgba(255,255,255,.15); font-size: 22px; }
.ai-assistant-context { padding: 8px 14px; color: #6f6070; background: #fff7fa; border-bottom: 1px solid var(--line); font-size: 12px; font-weight: 700; }
.ai-assistant-messages { min-height: 150px; padding: 12px; display: flex; flex-direction: column; gap: 10px; overflow-y: auto; overscroll-behavior: contain; background: #fbfafc; }
.ai-assistant-empty { margin: auto; padding: 24px; color: var(--muted); text-align: center; font-size: 13px; line-height: 1.6; }
.ai-assistant-message { max-width: 88%; align-self: flex-start; }
.ai-assistant-message.user { align-self: flex-end; }
.ai-assistant-message small { display: block; margin: 0 6px 4px; color: #8d8490; font-size: 10px; }
.ai-assistant-message.user small { text-align: right; }
.ai-assistant-message p { margin: 0; padding: 10px 12px; border-radius: 13px 13px 13px 3px; color: #342e36; background: #f1eaf7; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }
.ai-assistant-message.user p { color: #fff; background: linear-gradient(135deg, #8b6ce7, #ec5689); border-radius: 13px 13px 3px 13px; }
.ai-assistant-message.proactive p { border: 1px solid #f4cfdb; background: #fff3f7; }
.ai-assistant-quick { padding: 8px 10px; display: flex; gap: 7px; overflow-x: auto; border-top: 1px solid var(--line); background: #fff; }
.ai-assistant-quick button { flex: 0 0 auto; padding: 7px 10px; border: 1px solid #eadce3; border-radius: 999px; color: #76526a; background: #fff9fb; font-size: 12px; }
.ai-assistant-form { padding: 9px 10px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; border-top: 1px solid var(--line); background: #fff; }
.ai-assistant-form textarea { min-height: 42px; max-height: 110px; padding: 10px; resize: none; }
.ai-assistant-form button { align-self: stretch; min-width: 62px; padding: 8px 12px; border-radius: 10px; color: #fff; background: var(--primary); font-weight: 800; }
.ai-assistant-form button:disabled { opacity: .55; cursor: wait; }
.ai-assistant-note { margin: 0; padding: 0 12px 10px; color: #968c98; background: #fff; font-size: 10px; line-height: 1.45; }

/* Shared AI management UI */
.creator-ai-card { margin: 14px 0; padding: 14px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.creator-ai-body { margin-top: 14px; }
.creator-ai-global-status { margin: 0 0 12px; padding: 10px 12px; border-radius: 8px; color: #5e5370; background: #f4f0ff; font-size: 13px; line-height: 1.55; }
.creator-ai-subsection { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.creator-ai-subsection h3 { margin: 0 0 10px; }
.ai-switch-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.ai-check { min-width: 0; min-height: 45px; padding: 10px 11px; display: flex !important; flex-direction: row !important; align-items: center; gap: 8px; border: 1px solid #e3e8f1; border-radius: 8px; color: #46536a; background: #fafbfe; cursor: pointer; }
.ai-check input { width: 18px; height: 18px; flex: 0 0 auto; accent-color: var(--primary); }
.ai-check span { margin: 0 !important; color: inherit !important; font-size: 13px; }
.ai-emergency { border-color: #f0c4ce; color: #b12c49; background: #fff5f7; }
.ai-number-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.creator-ai-settings .ai-number-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ai-skill-fieldset, .ai-provider-card { min-width: 0; margin: 0; padding: 13px; border: 1px solid #dfe5ef; border-radius: 9px; background: #fafbfd; }
.ai-skill-fieldset legend, .ai-provider-card legend { padding: 0 6px; color: #334057; font-weight: 850; }
.ai-skill-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.ai-skill-option { min-width: 0; padding: 9px; display: flex; align-items: flex-start; gap: 8px; border: 1px solid #e3e8f1; border-radius: 8px; background: #fff; cursor: pointer; }
.ai-skill-option input { width: 17px; height: 17px; flex: 0 0 auto; accent-color: var(--blue); }
.ai-skill-option strong, .ai-skill-option small { display: block; }
.ai-skill-option strong { color: #334057; font-size: 13px; }
.ai-skill-option small { margin-top: 3px; color: #8590a2; font-size: 11px; line-height: 1.35; }
.ai-admin-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ai-provider-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ai-provider-card { display: grid; gap: 10px; }
.ai-provider-status { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ai-provider-status span { margin: 0; color: #738095; font-size: 12px; }
.ai-profile-switches, .ai-knowledge-list { display: grid; gap: 9px; }
.ai-profile-switch { padding: 11px 12px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 1px solid #e3e8f1; border-radius: 8px; background: #fff; }
.ai-profile-switch strong, .ai-profile-switch small { display: block; }
.ai-profile-switch small { margin-top: 3px; color: #8590a2; }
.ai-profile-switch input { width: 19px; height: 19px; flex: 0 0 auto; accent-color: var(--blue); }
.ai-knowledge-list { margin-top: 14px; }
.ai-knowledge-row { padding: 12px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; border: 1px solid #e3e8f1; border-radius: 8px; background: #fff; }
.ai-knowledge-row strong, .ai-knowledge-row small, .ai-knowledge-row p { display: block; }
.ai-knowledge-row small { margin-top: 4px; color: #8490a2; }
.ai-knowledge-row p { margin: 7px 0 0; color: #5d6879; font-size: 13px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.ai-knowledge-actions { display: flex; align-items: flex-start; gap: 6px; }
.ai-conversation-layout { min-height: 360px; display: grid; grid-template-columns: minmax(230px, .72fr) minmax(320px, 1.28fr); gap: 12px; }
.ai-conversation-list, .ai-conversation-detail { min-width: 0; max-height: 560px; overflow-y: auto; border: 1px solid #e3e8f1; border-radius: 9px; background: #fff; }
.ai-conversation-list { padding: 8px; display: grid; align-content: start; gap: 7px; }
.ai-conversation-row { width: 100%; padding: 11px; border: 1px solid transparent; border-radius: 8px; color: #344056; background: #f8fafc; text-align: left; }
.ai-conversation-row:hover, .ai-conversation-row.active, .ai-conversation-row.is-active { border-color: #9eb2df; background: #eef3ff; }
.ai-conversation-row strong, .ai-conversation-row span, .ai-conversation-row small { display: block; }
.ai-conversation-row span { margin-top: 4px; color: #6d7a8e; font-size: 12px; }
.ai-conversation-row small { margin-top: 5px; color: #9aa3b1; font-size: 11px; }
.ai-conversation-row.is-human strong::after, .ai-conversation-row.needs-human strong::after { content: "待人工"; margin-left: 6px; padding: 2px 5px; border-radius: 999px; color: #c22f50; background: #ffe5ec; font-size: 10px; }
.ai-conversation-detail { padding: 12px; }
.ai-detail-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding-bottom: 10px; border-bottom: 1px solid #e7ebf2; }
.ai-detail-head strong, .ai-detail-head small { display: block; }
.ai-detail-head small { margin-top: 4px; color: #8490a2; }
.ai-detail-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.ai-detail-messages { margin-top: 10px; display: grid; gap: 8px; }
.ai-detail-message { padding: 10px; border-radius: 8px; color: #374255; background: #f4f6fa; }
.ai-detail-message.user { background: #fff3f7; }
.ai-detail-message.creator, .ai-detail-message.admin { background: #eef8f3; }
.ai-detail-message small { display: block; margin-bottom: 4px; color: #8590a2; font-size: 11px; }
.ai-detail-message p { margin: 0; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }
.ai-human-reply { margin-top: 12px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.ai-human-reply textarea { min-width: 0; }

@media (max-width: 720px) {
  .ai-switch-grid, .ai-number-grid, .creator-ai-settings .ai-number-grid, .ai-skill-list, .ai-provider-grid, .ai-admin-form { grid-template-columns: 1fr; }
  .ai-conversation-layout { grid-template-columns: 1fr; }
  .ai-conversation-list { max-height: 260px; }
  .ai-human-reply { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .admin-shell { grid-template-columns: 1fr; }
  .admin-sidebar { position: static; max-height: none; }
  .admin-main { min-width: 720px; }
  .admin-metrics { grid-template-columns: repeat(2, 1fr); }
  .session-record-metrics { grid-template-columns: repeat(2, 1fr); }
  .session-record-profile-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .session-record-filter { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-live-grid, .admin-dashboard-grid { grid-template-columns: 1fr; }
  .bigdata-metrics-grid { grid-template-columns: repeat(3, 1fr); }
  .bigdata-main-grid, .bigdata-ranks-grid { grid-template-columns: 1fr; }
  .permission-groups { grid-template-columns: 1fr; }
  .permission-group-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 430px) {
  .ai-assistant-fab { right: max(12px, env(safe-area-inset-right)); bottom: max(132px, calc(env(safe-area-inset-bottom) + 76px)); width: 52px; height: 52px; }
  .ai-assistant-panel { right: max(8px, env(safe-area-inset-right)); bottom: max(72px, calc(env(safe-area-inset-bottom) + 62px)); width: calc(100vw - 16px); max-height: calc(100dvh - 90px); border-radius: 14px; }
  .ai-knowledge-row { grid-template-columns: 1fr; }
  .ai-knowledge-actions { justify-content: flex-start; }
  .patron-entry { align-items: stretch; flex-direction: column; }
  .patron-entry button { width: 100%; }
  .profile-grid { gap: 10px; padding-left: 10px; padding-right: 10px; }
  .profile-card-body h3 { font-size: 16px; }
  .profile-card-body { min-height: 74px; padding: 9px; }
  .profile-card-body p { font-size: 13px; }
  #clearArchiveSearch { flex-basis: 64px; width: 64px; min-width: 64px; }
  .password-gate-page { padding-left: 20px; padding-right: 20px; }
  .password-gate-avatar { margin-top: 60px; }
  .admin-form-grid { grid-template-columns: 1fr; }
  .admin-channel-grid { grid-template-columns: 1fr; }
  .profile-custom-options-grid { grid-template-columns: 1fr; }
  .profile-custom-option-head { display: block; }
  .profile-custom-option-head > div:last-child { margin-top: 10px; }
  .profile-custom-option-row { grid-template-columns: minmax(100px, 1fr) 76px auto; }
  .admin-live-schedule, .admin-live-password { grid-template-columns: 1fr; }
  .admin-live-password .form-toggle:last-child { grid-column: auto; }
}
.blacklist-warning {
  margin: 0 0 18px;
  padding: 14px 16px;
  border: 1px solid #ffd1dc;
  border-radius: 14px;
  color: #9f3150;
  background: #fff4f7;
  line-height: 1.6;
}

.blacklist-form {
  margin-bottom: 18px;
}

.blacklist-filter-bar {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(160px, 240px);
  gap: 14px;
  margin: 8px 0 18px;
}

.blacklist-filter-bar label {
  display: grid;
  gap: 7px;
  color: var(--muted);
}

.blacklist-filter-bar input,
.blacklist-filter-bar select {
  width: 100%;
  min-height: 44px;
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  font: inherit;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 10px;
  border-radius: 999px;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 700;
}

.status-danger {
  color: #b51f49;
  background: #ffe3eb;
}

.status-muted {
  color: #6f7480;
  background: #eef0f4;
}

body.is-blacklisted {
  overflow: hidden !important;
}

.blacklist-block {
  position: fixed;
  inset: 0;
  z-index: 1000000;
  display: grid;
  place-items: center;
  padding: 24px;
  background: linear-gradient(155deg, #fff 0%, #fff4f8 100%);
}

.blacklist-block-card {
  width: min(440px, 100%);
  padding: 38px 28px;
  border: 1px solid #f1d9e1;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(72, 25, 41, .14);
  text-align: center;
}

.blacklist-block-icon {
  display: inline-grid;
  place-items: center;
  width: 68px;
  height: 68px;
  margin-bottom: 18px;
  border-radius: 50%;
  color: #fff;
  background: #ff4f82;
  font-size: 38px;
  font-weight: 800;
}

.blacklist-block-card h1 {
  margin: 0 0 14px;
  font-size: 28px;
}

.blacklist-block-card p {
  margin: 0 0 10px;
  color: #4b4650;
  line-height: 1.7;
}

.blacklist-block-card small {
  color: #918a94;
}

@media (max-width: 720px) {
  .blacklist-filter-bar {
    grid-template-columns: 1fr;
  }
}

.creator-blacklist-images {
  margin-top: 18px;
}

.creator-blacklist-images form {
  display: grid;
  gap: 12px;
}

.creator-blacklist-image-list {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.creator-blacklist-image-list > .empty-note,
.creator-blacklist-image-list > .form-message {
  grid-column: 1 / -1;
}

.creator-blacklist-image-item {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff9fb;
}

.creator-blacklist-image-item a,
.creator-blacklist-image-item img {
  display: block;
  width: 100%;
}

.creator-blacklist-image-item img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.creator-blacklist-image-item div {
  min-width: 0;
  padding: 8px;
}

.creator-blacklist-image-item strong,
.creator-blacklist-image-item small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.creator-blacklist-image-item strong {
  font-size: 12px;
}

.creator-blacklist-image-item small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
}

.blacklist-image-toolbar {
  margin-bottom: 14px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.blacklist-image-toolbar > label {
  min-width: min(420px, 100%);
  display: grid;
  gap: 7px;
  color: var(--muted);
}

.blacklist-image-toolbar input {
  width: 100%;
  min-height: 44px;
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  font: inherit;
}

.blacklist-image-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.blacklist-image-actions strong {
  margin-right: 4px;
  color: #596274;
  white-space: nowrap;
}

.blacklist-image-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 14px;
}

.blacklist-image-gallery > .empty-note {
  grid-column: 1 / -1;
}

.blacklist-image-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  display: block;
  border: 2px solid transparent;
  border-radius: 14px;
  background: #fff8fa;
  box-shadow: 0 5px 18px rgba(42, 50, 66, .06);
  cursor: pointer;
}

.blacklist-image-card.is-selected {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255, 79, 130, .12);
}

.blacklist-image-card > input {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 2;
  width: 20px;
  height: 20px;
  accent-color: var(--primary);
}

.blacklist-image-check {
  position: absolute;
  left: 38px;
  top: 10px;
  z-index: 2;
  padding: 4px 8px;
  border-radius: 999px;
  color: #fff;
  background: rgba(28, 29, 35, .72);
  font-size: 12px;
  font-weight: 700;
}

.blacklist-image-card > img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #eceff4;
}

.blacklist-image-meta {
  min-width: 0;
  padding: 11px 12px 13px;
  display: block;
}

.blacklist-image-meta strong,
.blacklist-image-meta small,
.blacklist-image-meta time {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.blacklist-image-meta small,
.blacklist-image-meta time {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
}

@media (max-width: 520px) {
  .creator-blacklist-image-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
