:root {
  --pink: #f83c83;
  --coral: #ff6659;
  --rose: #fff1f6;
  --rose-2: #ffe5ef;
  --ink: #06142a;
  --text: #17233d;
  --muted: #77829a;
  --soft: #f5f7fb;
  --panel: #ffffff;
  --line: #e4e9f2;
  --blue: #2368d8;
  --teal: #0b9b8f;
  --gold: #b98523;
  --shadow: 0 22px 60px rgba(32, 43, 72, 0.1);
  --radius: 8px;
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
}

/* Shared member entry panel and the three-site backup list. */
.member-domain-panel {
  width: 100%;
  min-width: 0;
  padding: 17px 20px 18px;
  display: grid;
  gap: 15px;
  border: 1px solid rgba(222, 183, 99, 0.3);
  border-radius: var(--radius);
  background:
    linear-gradient(105deg, rgba(255, 252, 246, 0.98), rgba(255, 248, 252, 0.98) 48%, rgba(248, 244, 255, 0.96)),
    #fff;
  box-shadow: 0 15px 34px rgba(76, 56, 34, 0.06);
}

.member-domain-head,
.anti-loss-sites-head {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.member-domain-title {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 11px;
}

.member-domain-title > span {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: #b98218;
  background: #fff6df;
}

.member-domain-title > span .ui-icon {
  width: 19px;
  height: 19px;
}

.member-domain-title > div {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.member-domain-title b {
  color: #26334a;
  font-size: 16px;
}

.member-domain-title small {
  color: #9a7a43;
  font-size: 11px;
  font-weight: 800;
}

.member-domain-copy,
.anti-loss-copy-all {
  min-height: 32px;
  padding: 0 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex: 0 0 auto;
  border: 1px solid rgba(198, 153, 62, 0.42);
  border-radius: 999px;
  color: #8a611d;
  background: rgba(255, 255, 255, 0.82);
  font-size: 12px;
  font-weight: 900;
}

.member-domain-copy:hover,
.anti-loss-copy-all:hover,
.member-domain-copy.copied,
.anti-loss-copy-all.copied {
  color: #fff;
  border-color: #e6a941;
  background: linear-gradient(135deg, #e8a933, #ed6d88);
}

.member-domain-copy .ui-icon,
.anti-loss-copy-all .ui-icon {
  width: 15px;
  height: 15px;
}

.member-domain-list {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.member-domain-pill {
  min-width: 0;
  min-height: 44px;
  padding: 8px 11px;
  display: flex;
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(222, 183, 99, 0.42);
  border-radius: 999px;
  color: #745c32;
  background: rgba(255, 255, 255, 0.8);
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.member-domain-pill:hover {
  border-color: rgba(239, 101, 137, 0.52);
  background: #fff;
  box-shadow: 0 8px 18px rgba(229, 134, 89, 0.1);
}

.member-domain-pill > span:first-child {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  display: grid;
  place-items: center;
  color: #c58d2b;
}

.member-domain-pill > span:first-child .ui-icon {
  width: 15px;
  height: 15px;
}

.member-domain-pill > span:last-child {
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.anti-loss-sites {
  min-width: 0;
  display: grid;
  gap: 16px;
  border-color: rgba(223, 188, 221, 0.34);
  background: #fff;
}

.anti-loss-sites-head > div {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.anti-loss-sites-head p {
  margin: 0;
  color: #a25a8b;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.anti-loss-sites-head h3 {
  margin: 0;
  color: var(--ink);
  font-size: 20px;
}

.anti-loss-site-grid {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.anti-loss-site-card {
  min-width: 0;
  min-height: 112px;
  padding: 14px;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 12px;
  border: 1px solid #e8e1e8;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #fff, #fff9fc);
}

.anti-loss-site-meta {
  min-width: 0;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  align-items: start;
  gap: 9px;
}

.anti-loss-site-meta > span {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: #a9557d;
  background: #fff0f6;
}

.anti-loss-site-meta > span .ui-icon {
  width: 17px;
  height: 17px;
}

.anti-loss-site-meta > div {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.anti-loss-site-meta b {
  color: #1d2940;
  font-size: 14px;
}

.anti-loss-site-meta a {
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
  color: #6c7893;
  font-size: 12px;
  line-height: 1.45;
  text-decoration: none;
}

.anti-loss-site-meta a:hover {
  color: var(--pink);
}

.anti-loss-site-copy {
  width: fit-content;
  min-height: 28px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #a9557d;
  font-size: 12px;
}

.anti-loss-site-copy:hover,
.anti-loss-site-copy.copied {
  color: #d23f78;
}

.anti-loss-site-copy .ui-icon {
  width: 14px;
  height: 14px;
}

@media (max-width: 1180px) {
  .member-domain-list,
  .anti-loss-site-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .member-domain-panel,
  .anti-loss-sites {
    padding: 15px;
  }

  .member-domain-head,
  .anti-loss-sites-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .member-domain-copy,
  .anti-loss-copy-all {
    width: 100%;
  }

  .member-domain-list,
  .anti-loss-site-grid {
    grid-template-columns: 1fr;
  }
}

/* Registration page follows the supplied two-step reference layout. */
.register-reference-page {
  min-height: 0;
  display: block;
  padding: 0;
  background: #fff;
}

.register-reference-page [hidden] {
  display: none !important;
}

.register-reference-hero {
  padding: 62px 24px 58px;
  text-align: center;
  background: #fff4f8;
}

.register-reference-hero-inner {
  width: min(1080px, 100%);
  margin: 0 auto;
}

.register-reference-hero .crumb {
  margin: 0 0 22px;
  color: #a76a83;
  font-size: 13px;
  font-weight: 700;
}

.register-reference-hero h1 {
  margin: 0;
  color: #342532;
  font-size: 44px;
  line-height: 1.2;
  font-family: Georgia, "Noto Serif SC", serif;
}

.register-reference-hero p:not(.crumb) {
  margin: 18px 0 0;
  color: #735868;
  font-size: 16px;
  line-height: 1.8;
}

.register-diamond-divider {
  width: 10px;
  height: 10px;
  display: block;
  margin: 34px auto 0;
  background: #ed6f9f;
  transform: rotate(45deg);
}

.register-reference-body {
  width: min(1080px, calc(100% - 48px));
  margin: 0 auto;
  padding: 72px 0 84px;
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(420px, 1fr);
  gap: 74px;
  align-items: start;
}

.register-reference-intro {
  width: 100%;
  justify-self: start;
  padding-top: 16px;
}

.register-reference-badge {
  margin: 0 0 18px;
  color: #ed6f9f;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.register-reference-intro h2,
.register-reference-card h2 {
  margin: 0;
  color: #342532;
  font-family: Georgia, "Noto Serif SC", serif;
}

.register-reference-intro h2 {
  font-size: 32px;
  line-height: 1.35;
}

.register-reference-notices {
  display: grid;
  gap: 30px;
  margin-top: 38px;
}

.register-reference-notice {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.register-reference-notice > b {
  color: #ed6f9f;
  font-family: Georgia, serif;
  font-size: 14px;
  line-height: 1.65;
}

.register-reference-notice strong {
  display: block;
  color: #3b2a38;
  font-size: 17px;
  line-height: 1.5;
}

.register-reference-notice p {
  margin: 6px 0 0;
  color: #817381;
  font-size: 14px;
  line-height: 1.8;
}

.register-reference-card {
  width: 100%;
  max-width: none;
  padding: 36px;
  gap: 0;
  border: 1px solid #f4dfe8;
  border-radius: 8px;
  background: #fff8fb;
  box-shadow: 0 18px 46px rgba(91, 48, 72, 0.07);
}

.register-step-panel {
  display: grid;
  gap: 18px;
}

.register-step-panel .section-kicker {
  margin: 0;
  color: #ed6f9f;
  font-size: 11px;
  letter-spacing: 0.08em;
}

.register-reference-card h2 {
  font-size: 28px;
  line-height: 1.35;
}

.register-reference-card .warning {
  padding: 12px 14px;
  color: #92516d;
  border: 1px solid #f1d4df;
  border-radius: 6px;
  background: #fff1f6;
  line-height: 1.7;
}

.register-role-choice-grid {
  grid-template-columns: 1fr;
  gap: 10px;
}

.register-role-choice {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 16px 0 18px;
  border: 1px solid #eed9e2;
  border-radius: 6px;
  background: #fff;
  box-shadow: none;
}

.register-role-choice:hover,
.register-role-choice.active {
  border-color: #ed6f9f;
  background: #fff0f6;
  box-shadow: inset 3px 0 0 #ed6f9f;
}

.register-role-choice b {
  color: #493543;
  font-size: 15px;
  font-weight: 800;
}

.register-role-marker {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  border: 1px solid #d9b5c5;
  border-radius: 50%;
  background: #fff;
}

.register-role-choice.active .register-role-marker {
  border: 5px solid #ed6f9f;
}

.register-reference-card .primary {
  min-height: 46px;
  border-radius: 6px;
  background: linear-gradient(105deg, #ef709f, #d85e93);
}

.register-reference-fields {
  display: grid;
  gap: 16px;
}

.register-reference-fields label {
  color: #665469;
  font-size: 12px;
  font-weight: 800;
}

.register-reference-fields input {
  min-height: 44px;
  margin-top: 2px;
  border-color: #ead9e1;
  border-radius: 6px;
  background: #fff;
}

.register-reference-fields input:focus {
  border-color: #ed6f9f;
  box-shadow: 0 0 0 3px rgba(237, 111, 159, 0.12);
}

.register-email-block {
  display: grid;
  gap: 10px;
}

.register-email-actions {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 8px;
  align-items: end;
}

.register-email-actions > button {
  min-height: 44px;
  white-space: nowrap;
}

.register-email-actions label {
  min-width: 0;
}

.register-email-actions input {
  margin-top: 2px;
}

.register-reference-card .field-help,
.register-reference-card .email-verify-status {
  color: #8f7b88;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.65;
}

.register-reference-card .email-verify-status {
  margin: 0;
}

.register-reference-card .email-verify-status[data-state="verified"] {
  color: #0c7169;
}

.register-reference-card .adult-check {
  margin: 22px 0 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
  color: #71616e;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.7;
}

.register-reference-card .adult-check input {
  margin: 0 3px 0 0;
}

.register-reference-card .adult-check a {
  color: #d45b8d;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.register-form-message {
  margin: 18px 0 0;
}

.register-login-line {
  margin: 26px 0 0;
  padding-top: 20px;
  border-top: 1px solid #f0dfe6;
  color: #897985;
  font-size: 13px;
}

.register-login-line a,
.register-back-button {
  color: #d45b8d;
}

.register-back-button {
  margin-top: -6px;
}

.guest-mode-entry {
  min-height: 48px;
  padding: 7px 10px 7px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid #f0dfe6;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.72);
}

.guest-mode-entry > span {
  min-width: 0;
  color: #897985;
  font-size: 12px;
  line-height: 1.5;
}

.guest-mode-entry button {
  min-height: 34px;
  flex: 0 0 auto;
  padding: 6px 12px;
  color: #d45b8d;
  border-color: #ebc8d7;
  background: #fff;
  font-size: 12px;
}

.guest-mode-entry button:hover {
  border-color: #ed6f9f;
  background: #fff0f6;
}

.login-guest-entry {
  margin-top: 2px;
}

@media (max-width: 760px) {
  .register-reference-hero {
    padding: 44px 20px 40px;
  }

  .register-reference-hero h1 {
    font-size: 34px;
  }

  .register-reference-hero p:not(.crumb) {
    font-size: 14px;
  }

  .register-reference-body {
    width: calc(100% - 32px);
    padding: 42px 0 56px;
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .register-reference-intro {
    padding-top: 0;
  }

  .register-reference-intro h2 {
    font-size: 28px;
  }

  .register-reference-notices {
    gap: 20px;
    margin-top: 24px;
  }

  .register-reference-card {
    padding: 24px 18px;
  }

  .register-reference-card h2 {
    font-size: 25px;
  }

  .register-email-actions {
    grid-template-columns: 1fr auto;
  }

  .register-email-actions > button:first-child {
    grid-column: 1 / -1;
  }

  .register-email-actions label {
    grid-column: 1;
  }

  .register-email-actions > button:last-child {
    grid-column: 2;
    align-self: end;
  }

  .guest-mode-entry {
    align-items: flex-start;
  }
}

/* The paired girl/broker profile stays compact above the message stream. */
.assignment-profile-panel {
  margin: 0 20px 12px;
  overflow: hidden;
  border: 1px solid #eadfe5;
  border-radius: 10px;
  background: #fffdfd;
}

.assignment-profile-panel summary {
  min-height: 58px;
  padding: 10px 14px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  list-style: none;
}

.assignment-profile-panel summary::-webkit-details-marker {
  display: none;
}

.assignment-profile-panel summary > span:nth-child(2) {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.assignment-profile-panel summary b {
  color: #273650;
  font-size: 14px;
}

.assignment-profile-panel summary small {
  overflow: hidden;
  color: #8b96a8;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.assignment-profile-icon {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #d34b73;
  background: #fff0f4;
}

.assignment-profile-icon .ui-icon {
  width: 16px;
  height: 16px;
}

.assignment-profile-panel summary > i {
  display: grid;
  place-items: center;
  color: #98a3b4;
  font-style: normal;
  transition: transform 0.18s ease;
}

.assignment-profile-panel[open] summary > i {
  transform: rotate(180deg);
}

.assignment-profile-panel summary > i .ui-icon {
  width: 16px;
  height: 16px;
}

.assignment-profile-content {
  padding: 0 14px 13px;
  border-top: 1px solid #f1e9ed;
}

.assignment-profile-fields {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  padding-top: 12px;
}

.assignment-profile-fields span {
  min-width: 0;
  padding: 7px 8px;
  display: grid;
  gap: 2px;
  border-radius: 6px;
  background: #faf7f8;
  color: #4d5a70;
  font-size: 12px;
  overflow-wrap: anywhere;
}

.assignment-profile-fields b {
  color: #a26a7e;
  font-size: 10px;
  font-weight: 800;
}

.assignment-profile-media {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 10px;
}

.assignment-profile-media a {
  color: #b13e63;
  font-size: 12px;
  text-decoration: none;
}

.assignment-profile-media a:hover {
  text-decoration: underline;
}

.assignment-profile-empty,
.assignment-profile-foot {
  margin: 11px 0 0;
  color: #8b96a8;
  font-size: 11px;
  line-height: 1.55;
}

@media (max-width: 760px) {
  .assignment-profile-panel {
    margin-inline: 10px;
  }

  .assignment-profile-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 430px) {
  .assignment-profile-fields {
    grid-template-columns: 1fr;
  }
}

/* Reference layouts for the boss invite and task-center pages. */
.invite-reference-page,
.task-reference-page {
  width: min(1320px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 14px;
}

.invite-reference-head {
  padding: 12px 0 2px;
}

.invite-reference-head p {
  margin: 0 0 6px;
  color: #7d8eaa;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.invite-reference-head h1 {
  margin: 0;
  color: #07152d;
  font-size: clamp(28px, 2.7vw, 38px);
  line-height: 1.1;
}

.invite-reference-head span {
  display: block;
  margin-top: 7px;
  color: #557091;
  font-size: 15px;
}

.invite-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.invite-stat-grid article {
  min-height: 88px;
  padding: 16px 18px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 5px;
  border: 1px solid #dce4ef;
  border-radius: 16px;
  background: #fff;
  text-align: center;
}

.invite-stat-grid b {
  color: #07152d;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
  line-height: 1;
}

.invite-stat-grid span,
.invite-section-heading p,
.invite-field-note,
.invite-copy-section > .invite-section-heading p {
  color: #587293;
}

.invite-audience-tabs,
.task-record-tabs,
.invite-channel-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.invite-audience-tabs button,
.task-record-tabs button,
.invite-channel-tabs button {
  min-height: 46px;
  padding: 0 22px;
  border: 1px solid #dce4ef;
  border-radius: 999px;
  color: #5c7495;
  background: #fff;
  font-size: 16px;
  font-weight: 700;
}

.invite-audience-tabs button.is-active,
.task-record-tabs button.is-active,
.invite-channel-tabs button.is-active {
  color: #fff;
  border-color: #111a2e;
  background: #111a2e;
}

.invite-reference-panel,
.invite-reference-rules {
  padding: 22px 24px;
  border: 1px solid #dce4ef;
  border-radius: 16px;
  background: #fff;
}

.invite-section-heading > div {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.invite-step {
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #b27a14;
  background: #fff6e2;
  font-size: 15px;
  font-weight: 900;
}

.invite-section-heading h2,
.invite-record-heading h2,
.invite-reference-rules h2 {
  margin: 0;
  color: #07152d;
  font-size: 20px;
}

.invite-section-heading p {
  margin: 6px 0 0;
  line-height: 1.7;
}

.invite-empty-poster {
  min-height: 148px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  text-align: center;
}

.invite-empty-poster .ui-icon {
  width: 38px;
  height: 38px;
  color: #a1a8b1;
}

.invite-empty-poster p {
  margin: 0;
  color: #587293;
}

.invite-saved-poster-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.invite-saved-poster-list article {
  min-height: 66px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #e0e6ef;
  border-radius: 10px;
  background: #fafbfd;
}

.invite-saved-poster-list article > span {
  width: 34px;
  height: 44px;
  flex: 0 0 auto;
  display: block;
  border-radius: 6px;
  background: linear-gradient(145deg, #f83c83, #8d63d9);
}

.invite-saved-poster-list article > span.poster-variant-1 {
  background: linear-gradient(145deg, #ff625e, #d92d7d);
}

.invite-saved-poster-list article > span.poster-variant-2 {
  background: linear-gradient(145deg, #1f1730, #f04d91);
}

.invite-saved-poster-list article > span.poster-variant-3 {
  background: linear-gradient(145deg, #231936, #9e5ce0);
}

.invite-saved-poster-list article div {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.invite-saved-poster-list b,
.invite-saved-poster-list small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.invite-saved-poster-list small {
  color: #7b8da9;
}

.invite-domain-field {
  max-width: 650px;
  margin-top: 16px;
  display: grid;
  gap: 8px;
  color: #07152d;
  font-weight: 800;
}

.invite-domain-field select,
.invite-link-row input,
.invite-search-row input,
.invite-custom-copy textarea {
  width: 100%;
  min-height: 50px;
  padding: 0 16px;
  border: 1px solid #d7e0ec;
  border-radius: 12px;
  color: #173052;
  background: #f8fafc;
  font: inherit;
}

.invite-domain-field select {
  min-height: 54px;
  cursor: pointer;
  border-color: #d79b2c;
  color: #15335d;
  background: #fff;
  font-weight: 700;
}

.invite-domain-field select:focus {
  outline: 3px solid rgba(215, 155, 44, 0.18);
  border-color: #c48616;
}

.invite-selected-domain {
  min-width: 0;
  margin: 10px 0 12px;
  padding: 11px 14px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 12px;
  border: 1px solid #e6ebf3;
  border-radius: 10px;
  color: #6b7e9e;
  background: #fbfcfe;
  font-size: 13px;
}

.invite-selected-domain span {
  color: #8795aa;
}

.invite-selected-domain strong {
  color: #1d365d;
  font-size: 14px;
}

.invite-selected-domain small {
  min-width: 0;
  overflow: hidden;
  color: #557091;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.invite-field-note {
  margin: 8px 0 12px;
  line-height: 1.65;
}

.invite-link-row,
.invite-search-row {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.dark-copy-button,
.invite-generate-button {
  min-height: 46px;
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 0;
  border-radius: 12px;
  color: #fff;
  background: #111a2e;
  font-weight: 900;
}

.invite-poster-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.invite-poster-template {
  min-width: 0;
  padding: 8px 8px 12px;
  display: grid;
  gap: 10px;
  border: 2px solid #dce4ef;
  border-radius: 14px;
  color: #07152d;
  background: #fff;
}

.invite-poster-template.is-selected {
  border-color: #c8942a;
  box-shadow: 0 0 0 2px rgba(200, 148, 42, 0.12);
}

.invite-poster-template > strong {
  font-size: 16px;
}

.invite-poster-art {
  min-height: 286px;
  padding: 16px 14px;
  display: grid;
  align-content: start;
  gap: 12px;
  overflow: hidden;
  position: relative;
  border-radius: 10px;
  color: #fff;
  background: linear-gradient(145deg, #af004a, #aa074e 56%, #73002f);
}

.invite-poster-art::after {
  content: "";
  position: absolute;
  width: 170%;
  height: 54%;
  right: -62%;
  top: -10%;
  transform: rotate(40deg);
  background: rgba(255, 255, 255, 0.12);
}

.invite-poster-art > * {
  position: relative;
  z-index: 1;
}

.invite-poster-art small {
  color: rgba(255, 236, 245, 0.78);
  font-size: 10px;
  letter-spacing: 0.12em;
}

.invite-poster-art b {
  margin-top: 22px;
  font-size: 21px;
  line-height: 1.2;
}

.invite-poster-art em {
  color: rgba(255, 255, 255, 0.86);
  font-size: 12px;
  font-style: normal;
  line-height: 1.55;
}

.invite-poster-art i {
  margin-top: auto;
  color: rgba(255, 255, 255, 0.68);
  font-size: 10px;
  font-style: normal;
}

.invite-poster-art.poster-variant-1 {
  background: linear-gradient(145deg, #8b146f, #c30d8c);
}

.invite-poster-art.poster-variant-2 {
  background: linear-gradient(145deg, #103844, #09242e);
}

.invite-poster-art.poster-variant-3 {
  background: linear-gradient(145deg, #241a32, #160c1f);
}

.invite-custom-copy {
  margin-top: 14px;
}

.invite-custom-copy summary {
  width: fit-content;
  cursor: pointer;
  color: #ba7d18;
  font-weight: 800;
}

.invite-custom-copy textarea {
  min-height: 100px;
  margin-top: 12px;
  padding: 12px 14px;
  resize: vertical;
}

.invite-generate-button {
  width: 100%;
  margin-top: 18px;
}

.invite-copy-section > .invite-section-heading {
  margin-bottom: 12px;
}

.invite-channel-tabs {
  margin-bottom: 12px;
}

.invite-channel-tabs button {
  min-height: 42px;
  padding-inline: 18px;
  font-size: 15px;
}

.invite-copy-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.invite-copy-card {
  min-width: 0;
  min-height: 176px;
  padding: 14px;
  display: grid;
  align-content: start;
  gap: 12px;
  border: 1px solid #dce4ef;
  border-radius: 12px;
  background: #f8fafc;
}

.invite-copy-card > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.invite-copy-card h3 {
  margin: 0;
  color: #07152d;
  font-size: 16px;
}

.invite-copy-card p {
  margin: 0;
  color: #173052;
  line-height: 1.75;
  white-space: pre-line;
}

.invite-copy-card .dark-copy-button {
  min-height: 40px;
  padding-inline: 14px;
  border-radius: 10px;
}

.invite-reference-rules {
  border: 0;
  background: #e8f0ff;
}

.invite-reference-rules h2 {
  display: flex;
  align-items: center;
  gap: 9px;
}

.invite-reference-rules h2 .ui-icon {
  width: 22px;
  height: 22px;
}

.invite-reference-rules p {
  margin: 16px 0 0;
  color: #557091;
  line-height: 1.7;
}

.invite-record-heading {
  padding-bottom: 16px;
  border-bottom: 1px solid #dce4ef;
}

.invite-record-heading span {
  display: block;
  margin-top: 6px;
  color: #587293;
}

.invite-search-row {
  margin: 16px 0 22px;
}

.invite-search-row .dark-copy-button {
  background: #1a6ff2;
}

.invite-reference-page .order-history {
  border: 0;
}

.invite-record-section .order-history {
  margin-top: 8px;
}

.invite-record-section .order-row {
  padding: 14px 0;
}

.invite-record-section .order-row b {
  font-size: 15px;
}

.invite-record-section .order-row span,
.invite-record-section .order-row small {
  font-size: 12px;
}

.task-reference-page {
  gap: 24px;
}

.task-reference-hero {
  min-height: 470px;
  padding: 40px 38px 32px;
  display: grid;
  align-content: start;
  gap: 24px;
  border-radius: 28px;
  color: #fff;
  background: linear-gradient(120deg, #101827, #102a2d);
  box-shadow: 0 24px 50px rgba(20, 31, 46, 0.2);
}

.task-hero-balance {
  display: grid;
  gap: 8px;
}

.task-hero-balance span {
  color: #b1b8c5;
  font-size: 15px;
}

.task-hero-balance strong {
  color: #ffe2a2;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 76px;
  line-height: 1;
}

.task-hero-balance small {
  margin-left: 8px;
  color: #fff2cf;
  font-family: inherit;
  font-size: 20px;
}

.task-wallet-callout {
  min-height: 80px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid rgba(255, 193, 66, 0.42);
  border-radius: 16px;
  background: rgba(255, 193, 66, 0.1);
}

.task-wallet-callout .ui-icon {
  width: 30px;
  height: 30px;
  color: #ffc53d;
}

.task-wallet-callout div {
  display: grid;
  gap: 4px;
}

.task-wallet-callout b {
  color: #ffc94f;
  font-size: 18px;
}

.task-wallet-callout span {
  color: #adb6c4;
}

.task-hero-stats {
  width: min(650px, 100%);
  padding-top: 22px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.task-hero-stats div {
  display: grid;
  gap: 7px;
}

.task-hero-stats b {
  color: #fff;
  font-size: 24px;
}

.task-hero-stats span {
  color: #aeb6c3;
  font-size: 13px;
}

.task-hero-cta {
  width: fit-content;
  min-height: 54px;
  padding: 0 24px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 0;
  border-radius: 999px;
  color: #181d27;
  background: #ffc84d;
  font-size: 17px;
  font-weight: 900;
}

.task-hero-cta .ui-icon {
  width: 22px;
  height: 22px;
}

.task-reference-title,
.task-tiers-heading h2 {
  margin: 0;
  color: #07152d;
  font-size: 23px;
}

.task-claim-panel {
  min-height: 230px;
  display: grid;
  place-items: center;
  border: 1px solid #dce4ef;
  border-radius: 18px;
  background: #fff;
}

.task-claim-empty,
.task-record-empty {
  display: grid;
  justify-items: center;
  gap: 11px;
  color: #7285a2;
  text-align: center;
}

.task-claim-empty .ui-icon,
.task-record-empty .ui-icon {
  width: 38px;
  height: 38px;
  color: #b2b8c1;
}

.task-claim-empty p,
.task-record-empty p {
  margin: 0;
  line-height: 1.75;
}

.task-tiers-section {
  display: grid;
  gap: 14px;
}

.task-tiers-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.task-tiers-heading span {
  color: #587293;
}

.task-tier-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.task-tier-card {
  min-width: 0;
  min-height: 234px;
  padding: 20px 22px;
  display: grid;
  align-content: start;
  gap: 18px;
  border: 1px solid #dce4ef;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 22px rgba(57, 81, 112, 0.06);
}

.task-tier-card.is-ready {
  border-color: #e5b643;
}

.task-tier-card header {
  min-width: 0;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.task-tier-card header > div {
  min-width: 0;
}

.task-tier-card h3 {
  margin: 0;
  color: #07152d;
  font-size: 21px;
}

.task-tier-card header p {
  margin: 6px 0 0;
  color: #587293;
  line-height: 1.55;
}

.task-tier-card header > strong {
  width: 82px;
  height: 72px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  align-content: center;
  border: 1px solid #e0e7f0;
  border-radius: 16px;
  color: #07152d;
  background: #f4f7fb;
  font-size: 30px;
  line-height: 1;
}

.task-tier-card header > strong small {
  color: #587293;
  font-size: 13px;
  font-weight: 500;
}

.task-tier-reward {
  color: #9baec5;
  font-size: 25px;
}

.task-tier-reward small {
  color: #587293;
  font-size: 14px;
  font-weight: 700;
}

.task-tier-progress-label {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #587293;
}

.task-tier-progress-label em {
  color: #07152d;
  font-style: normal;
  font-weight: 900;
}

.task-tier-progress {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: #edf1f6;
}

.task-tier-progress i {
  height: 100%;
  display: block;
  border-radius: inherit;
  background: #e5b643;
}

.task-record-tabs {
  margin-top: 0;
}

.task-record-panel {
  min-height: 190px;
  padding: 26px;
  display: grid;
  place-items: center;
  border: 1px solid #dce4ef;
  border-radius: 18px;
  background: #fff;
}

.task-record-list {
  width: min(650px, 100%);
  display: grid;
  gap: 10px;
}

.task-record-list div {
  min-height: 52px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fafbfd;
}

.task-record-list span {
  color: #587293;
}

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

  .invite-saved-poster-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .invite-reference-page,
  .task-reference-page {
    gap: 12px;
  }

  .invite-reference-head {
    padding-top: 2px;
  }

  .invite-reference-head h1 {
    font-size: 28px;
  }

  .invite-reference-head span {
    font-size: 14px;
  }

  .invite-stat-grid {
    gap: 8px;
  }

  .invite-stat-grid article {
    min-height: 72px;
    padding: 11px 6px;
  }

  .invite-stat-grid b {
    font-size: 23px;
  }

  .invite-stat-grid span {
    font-size: 12px;
  }

  .invite-audience-tabs button,
  .task-record-tabs button {
    min-height: 42px;
    padding-inline: 18px;
    font-size: 14px;
  }

  .invite-reference-panel,
  .invite-reference-rules {
    padding: 16px 14px;
    border-radius: 12px;
  }

  .invite-section-heading h2,
  .invite-record-heading h2,
  .invite-reference-rules h2,
  .task-reference-title,
  .task-tiers-heading h2 {
    font-size: 18px;
  }

  .invite-section-heading p {
    font-size: 12px;
    line-height: 1.6;
  }

  .invite-link-row,
  .invite-search-row {
    grid-template-columns: 1fr;
  }

  .invite-link-row input,
  .invite-search-row input {
    min-height: 44px;
    font-size: 12px;
  }

  .invite-domain-field select {
    min-height: 48px;
    font-size: 13px;
  }

  .invite-selected-domain {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
    margin-top: 8px;
  }

  .invite-link-row .dark-copy-button,
  .invite-search-row .dark-copy-button {
    width: 100%;
  }

  .invite-poster-grid,
  .task-tier-grid,
  .invite-copy-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }

  .invite-poster-template {
    padding: 5px 5px 8px;
    border-radius: 10px;
  }

  .invite-poster-art {
    min-height: 204px;
    padding: 11px 9px;
    gap: 8px;
  }

  .invite-poster-art b {
    margin-top: 11px;
    font-size: 15px;
  }

  .invite-poster-art em {
    font-size: 10px;
  }

  .invite-poster-template > strong {
    font-size: 13px;
  }

  .invite-channel-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 3px;
  }

  .invite-channel-tabs button {
    flex: 0 0 auto;
    min-height: 36px;
    padding-inline: 12px;
    font-size: 12px;
  }

  .invite-copy-card {
    min-height: 156px;
    padding: 11px;
    gap: 8px;
  }

  .invite-copy-card h3 {
    font-size: 13px;
  }

  .invite-copy-card p {
    font-size: 11px;
    line-height: 1.6;
  }

  .invite-copy-card .dark-copy-button {
    min-height: 32px;
    padding-inline: 8px;
    font-size: 11px;
  }

  .invite-reference-rules p {
    margin-top: 12px;
    font-size: 13px;
  }

  .task-reference-page {
    gap: 16px;
  }

  .task-reference-hero {
    min-height: 0;
    padding: 26px 20px;
    gap: 18px;
    border-radius: 18px;
  }

  .task-hero-balance strong {
    font-size: 54px;
  }

  .task-wallet-callout {
    min-height: 72px;
    padding: 12px;
    border-radius: 12px;
  }

  .task-wallet-callout b {
    font-size: 15px;
  }

  .task-wallet-callout span {
    font-size: 12px;
  }

  .task-hero-stats {
    gap: 10px;
  }

  .task-hero-stats b {
    font-size: 20px;
  }

  .task-hero-stats span {
    font-size: 11px;
  }

  .task-hero-cta {
    width: 100%;
    min-height: 48px;
    justify-content: center;
    font-size: 15px;
  }

  .task-claim-panel {
    min-height: 190px;
    padding: 18px;
  }

  .task-tiers-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }

  .task-tiers-heading span {
    font-size: 12px;
  }

  .task-tier-card {
    min-height: 190px;
    padding: 14px;
    gap: 12px;
    border-radius: 13px;
  }

  .task-tier-card h3 {
    font-size: 15px;
  }

  .task-tier-card header p {
    font-size: 11px;
  }

  .task-tier-card header > strong {
    width: 52px;
    height: 52px;
    border-radius: 11px;
    font-size: 20px;
  }

  .task-tier-card header > strong small {
    font-size: 10px;
  }

  .task-tier-reward {
    font-size: 16px;
  }

  .task-tier-reward small {
    font-size: 10px;
  }

  .task-tier-progress-label {
    font-size: 11px;
  }

  .task-record-panel {
    min-height: 170px;
    padding: 18px 12px;
  }
}

/* Boss manual follows the reference structure with XSR's pink-lilac visual language. */
.manual-page.boss-reference-manual {
  width: min(1280px, 100%);
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
}

.boss-manual-top {
  padding: 8px 4px 4px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  min-width: 0;
  max-width: 100%;
}

.boss-manual-top p {
  margin: 0 0 6px;
  color: #c34278;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.boss-manual-top h1 {
  margin: 0;
  color: var(--ink);
  font-size: 30px;
}

.boss-manual-top span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
}

.panel.boss-manual-section {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  padding: 34px 36px 38px;
  border-color: #eadfe8;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 14px 36px rgba(145, 72, 122, 0.04);
}

.boss-manual-section-head {
  margin: 0;
  padding: 0 0 22px;
  display: flex;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid #f1dce7;
  color: #242638;
  font-size: 26px;
}

.boss-manual-section-head > span {
  width: 43px;
  height: 43px;
  flex: 0 0 43px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, #db3b76, #bb6bd2);
  font-size: 18px;
}

.boss-manual-subhead {
  margin: 25px 0 14px;
  padding-left: 12px;
  border-left: 3px solid #df3e79;
  color: #252638;
  font-size: 18px;
}

.boss-membership-reasons {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  min-width: 0;
}

.boss-reason-card {
  min-height: 210px;
  min-width: 0;
  padding: 23px 18px 18px;
  position: relative;
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 10px;
  overflow: hidden;
  border: 1px solid #efe2ec;
  border-radius: 14px;
  text-align: center;
  background: linear-gradient(180deg, #fff, #fff9fc);
}

.boss-reason-card:nth-child(2) {
  border-color: #efafd0;
  box-shadow: 0 13px 26px rgba(214, 72, 128, 0.08);
}

.boss-reason-index {
  position: absolute;
  top: 18px;
  right: 16px;
  color: #efb0cb;
  font-size: 14px;
  font-weight: 900;
}

.boss-reason-card i {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fcedf5;
  font-size: 26px;
  font-style: normal;
}

.boss-reason-card b {
  margin-top: 4px;
  color: #28283a;
  font-size: 18px;
}

.boss-reason-card p {
  margin: 0;
  color: #6c7180;
  line-height: 1.7;
}

.boss-membership-tiers {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  min-width: 0;
}

.boss-tier-card {
  min-height: 330px;
  min-width: 0;
  padding: 28px 28px 24px;
  position: relative;
  border: 1px solid #e8e5ea;
  border-radius: 14px;
  background: linear-gradient(180deg, #fff, #fcfcfd);
}

.boss-tier-card.is-vip {
  border-color: #ec477f;
  background: linear-gradient(180deg, #fff8fb, #fff);
  box-shadow: 0 15px 30px rgba(218, 57, 116, 0.08);
}

.boss-tier-card > em {
  position: absolute;
  top: -13px;
  right: 22px;
  padding: 8px 16px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #df3d79, #c32766);
  font-size: 13px;
  font-style: normal;
  font-weight: 900;
}

.boss-tier-card header {
  padding-bottom: 20px;
  display: flex;
  align-items: baseline;
  gap: 12px;
  border-bottom: 1px dashed #eadfe7;
}

.boss-tier-card header b {
  color: #28283a;
  font-size: 22px;
}

.boss-tier-card.is-vip header b {
  color: #d93673;
}

.boss-tier-card header span {
  color: #737784;
  font-size: 14px;
}

.boss-tier-card ul {
  margin: 20px 0 0;
  padding: 0;
  display: grid;
  gap: 15px;
  list-style: none;
}

.boss-tier-card li {
  color: #545968;
  line-height: 1.5;
}

.boss-tier-card li::before {
  width: 22px;
  height: 22px;
  margin-right: 10px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  content: "✓";
  color: #e43979;
  background: #fff0f6;
  font-weight: 900;
}

.boss-tier-card li.is-off {
  color: #a1a6af;
}

.boss-tier-card li.is-off::before {
  content: "×";
  color: #9da3ab;
  background: #f3f4f6;
}

.boss-manual-cta {
  padding-top: 25px;
  display: grid;
  justify-items: center;
  gap: 9px;
}

.boss-manual-cta .primary {
  min-width: 220px;
  min-height: 54px;
  border-radius: 999px;
  background: linear-gradient(135deg, #dc3b76, #ba2868);
  box-shadow: 0 14px 24px rgba(211, 54, 113, 0.2);
  font-size: 16px;
}

.boss-manual-cta .primary span {
  margin-left: 5px;
  font-size: 24px;
  line-height: 0;
  vertical-align: -2px;
}

.boss-manual-cta small {
  color: #727786;
}

.boss-manual-section-title {
  margin-bottom: 27px;
}

.boss-term-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px 18px;
  min-width: 0;
}

.boss-manual-info-card {
  min-height: 145px;
  min-width: 0;
  padding: 18px 20px 18px 22px;
  border-left: 3px solid #df3e79;
  border-radius: 0 8px 8px 0;
  background: #fbfbfc;
}

.boss-manual-info-card b {
  width: fit-content;
  padding: 7px 11px;
  display: block;
  border-radius: 5px;
  color: #fff;
  background: linear-gradient(135deg, #d93673, #c44990);
  font-size: 15px;
}

.boss-manual-info-card p,
.boss-manual-single-copy,
.boss-funds-list p,
.boss-process-card p {
  margin: 12px 0 0;
  color: #4c5261;
  line-height: 1.85;
}

.boss-process-list {
  display: grid;
  gap: 14px;
}

.boss-process-card {
  padding: 18px 20px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 14px;
  border-radius: 10px;
  background: #fbfbfc;
}

.boss-process-number {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, #db3b76, #bb6bd2);
  font-weight: 900;
}

.boss-process-card h3,
.boss-funds-list h3 {
  margin: 3px 0 0;
  color: #28283a;
  font-size: 17px;
}

.boss-process-tags {
  margin-top: 10px;
  display: grid;
  gap: 5px;
}

.boss-process-tags p {
  margin: 0;
}

.boss-process-tags b {
  margin-right: 10px;
  padding: 6px 9px;
  border-radius: 999px;
  color: #d83673;
  background: #fff0f6;
  font-size: 12px;
}

.boss-manual-note {
  margin-top: 15px;
  padding: 14px 16px;
  border-left: 4px solid #f08a3c;
  border-radius: 0 8px 8px 0;
  color: #714718;
  background: #fff7e8;
  line-height: 1.8;
}

.boss-funds-list {
  display: grid;
  gap: 22px;
}

.boss-funds-list article {
  padding-left: 16px;
  border-left: 3px solid #df3e79;
}

.boss-reward-table-wrap {
  overflow-x: auto;
}

.boss-reward-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  color: #4b5260;
}

.boss-reward-table th,
.boss-reward-table td {
  padding: 16px 18px;
  border: 1px solid #e7e7ec;
  text-align: left;
}

.boss-reward-table th {
  color: #d93673;
  background: #fff0f5;
}

.boss-reward-table tbody tr:nth-child(even) td {
  background: #fbfbfc;
}

@media (max-width: 900px) {
  .boss-membership-reasons,
  .boss-term-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .boss-manual-top {
    align-items: stretch;
    flex-direction: column;
  }

  .boss-manual-top .ghost {
    width: 100%;
  }

  .panel.boss-manual-section {
    padding: 24px 18px 28px;
  }

  .boss-manual-section-head {
    font-size: 23px;
  }

  .boss-membership-reasons,
  .boss-membership-tiers,
  .boss-term-grid {
    grid-template-columns: 1fr;
  }

  .boss-reason-card {
    min-height: 180px;
  }

  .boss-tier-card {
    min-height: 0;
    padding: 24px 20px;
  }

  .boss-process-card {
    padding: 16px;
    grid-template-columns: 32px minmax(0, 1fr);
  }

  .boss-process-number {
    width: 32px;
    height: 32px;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--soft);
  font-size: 15px;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #d6ddea;
  border-radius: var(--radius);
  color: var(--ink);
  background: #fff;
  outline: none;
}

input,
select {
  min-height: 42px;
  padding: 0 12px;
}

textarea {
  min-height: 104px;
  padding: 12px;
  resize: vertical;
}

label {
  display: grid;
  gap: 6px;
  color: #52607a;
  font-size: 13px;
  font-weight: 700;
}

label small {
  color: var(--muted);
  font-weight: 500;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 14px 12px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

.boot-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 16px;
  background: #fff;
}

.boot-screen .brand-mark,
.boot-screen p {
  animation: softRise 0.56s ease both;
}

.boot-screen .brand-mark {
  animation-name: softPulse;
  animation-duration: 1.8s;
  animation-iteration-count: infinite;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand-orb {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--coral), var(--pink));
  font-weight: 900;
  box-shadow: 0 10px 28px rgba(248, 60, 131, 0.22);
}

.brand-copy {
  display: grid;
  line-height: 1;
}

.brand-copy b {
  font-size: 24px;
  font-family: Georgia, "Noto Serif SC", serif;
  font-style: italic;
  color: #fff;
  white-space: nowrap;
}

.brand-copy small {
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 11px;
  letter-spacing: 0;
}

.brand-dark .brand-copy b {
  color: var(--ink);
}

.brand-dark .brand-copy small {
  color: #53607a;
}

.public-top {
  position: sticky;
  top: 0;
  z-index: 20;
  background: linear-gradient(90deg, #ff625e, var(--pink));
  box-shadow: 0 10px 30px rgba(248, 60, 131, 0.18);
  animation: topBarIn 0.5s ease both;
}

.public-inner {
  height: 70px;
  width: min(1480px, calc(100% - 48px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.public-top .brand-dark .brand-copy b,
.public-top .brand-dark .brand-copy small {
  color: var(--ink);
}

.public-top .brand-dark .brand-copy small {
  color: #806b83;
}

.public-top .public-nav {
  color: #261733;
}

.public-top .brand-orb {
  background: #fff;
  color: var(--pink);
}

.public-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  color: #fff;
  font-size: 14px;
  font-weight: 900;
}

.public-nav a {
  opacity: 0.92;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.public-nav .active,
.public-nav a:hover {
  opacity: 1;
  transform: translateY(-1px);
}

.nav-pill {
  min-height: 38px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  transition: background 0.18s ease, transform 0.18s ease;
}

.hero-ref {
  min-height: 620px;
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  padding: 54px 24px 68px;
  background:
    linear-gradient(90deg, #fffafa 0%, #fff6f9 47%, #fff 47%, #fff 100%),
    #fff;
}

.hero-ref-inner {
  width: min(1320px, 100%);
  display: grid;
  grid-template-columns: minmax(340px, 0.82fr) minmax(420px, 1fr);
  gap: 68px;
  align-items: center;
}

.hero-photo {
  margin: 0;
  min-height: 490px;
  max-height: 650px;
  aspect-ratio: 0.76;
  overflow: hidden;
  border-radius: var(--radius);
  background: #1c0f13;
  box-shadow: 0 28px 86px rgba(77, 22, 35, 0.18);
  animation: heroPhotoIn 0.72s ease both;
}

.hero-photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transform: scale(1.015);
  animation: quietFloat 7s ease-in-out infinite;
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: min(640px, 100%);
  text-align: left;
  animation: copyIn 0.64s ease 0.08s both;
}

.kicker,
.section-kicker {
  color: var(--pink);
  text-transform: uppercase;
  letter-spacing: 0;
  font-size: 12px;
  font-weight: 900;
}

.hero-copy h1 {
  margin: 24px 0 18px;
  color: var(--ink);
  font-size: 40px;
  line-height: 1.22;
  font-family: Georgia, "Noto Serif SC", serif;
}

.hero-copy h1 span,
.hero-copy h1 em {
  display: block;
}

.hero-copy h1 em {
  color: var(--pink);
  font-style: normal;
}

.hero-lede {
  max-width: 600px;
  margin: 0;
  color: #26334c;
  font-size: 18px;
  line-height: 2;
}

.split-lines {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  margin: 34px 0;
  padding: 24px 0;
  border-top: 1px solid #f1d5df;
  border-bottom: 1px solid #f1d5df;
}

.split-lines div {
  display: grid;
  gap: 10px;
  color: var(--muted);
}

.split-lines strong {
  color: var(--pink);
  font-size: 18px;
  font-weight: 500;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.primary,
.secondary,
.ghost,
.dark,
.text-button {
  min-height: 42px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  font-weight: 900;
  white-space: nowrap;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.primary {
  color: #fff;
  background: linear-gradient(90deg, var(--pink), var(--coral));
  box-shadow: 0 14px 30px rgba(248, 60, 131, 0.22);
}

.secondary {
  color: #fff;
  background: #625193;
}

.ghost {
  color: #21304a;
  background: #fff;
  border: 1px solid #d7deeb;
}

.dark {
  color: #fff;
  background: #121826;
}

.text-button {
  color: var(--coral);
  background: transparent;
}

.primary:hover,
.secondary:hover,
.ghost:hover,
.dark:hover,
.text-button:hover,
.quick-card:hover,
.plan-card:hover,
.conversation-item:hover {
  transform: translateY(-2px);
}

.primary:active,
.secondary:active,
.ghost:active,
.dark:active,
.text-button:active {
  transform: translateY(0);
}

.full {
  width: 100%;
}

.features-band,
.about-band,
.faq-band,
.auth-page,
.register-page {
  padding: 68px 24px;
  background: #fff;
}

.features-band {
  background: #fff;
}

.faq-band {
  background: linear-gradient(180deg, #fff, #fff8fb);
}

.section-head {
  width: min(760px, 100%);
  margin: 0 auto;
  text-align: center;
}

.section-head h2 {
  margin: 16px 0 0;
  color: var(--ink);
  font-size: 30px;
  line-height: 1.35;
  font-family: Georgia, "Noto Serif SC", serif;
}

.feature-grid {
  width: min(1220px, 100%);
  margin: 52px auto 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 54px;
}

.feature-card {
  min-height: 230px;
  padding: 0 8px 0 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  animation: softRise 0.58s ease both;
}

.feature-card::before {
  content: "";
  display: block;
  width: 56px;
  height: 1px;
  margin-bottom: 28px;
  background: linear-gradient(90deg, #ff4f8d, rgba(255, 79, 141, 0));
}

.feature-card:nth-child(2) {
  animation-delay: 0.06s;
}

.feature-card:nth-child(3) {
  animation-delay: 0.12s;
}

.feature-card:nth-child(4) {
  animation-delay: 0.18s;
}

.feature-card span {
  color: var(--pink);
  font-family: Georgia, serif;
  font-size: 44px;
  font-style: italic;
  font-weight: 800;
  line-height: 1;
}

.feature-card h3 {
  margin: 26px 0 14px;
  color: var(--ink);
  font-size: 21px;
  line-height: 1.35;
  font-family: Georgia, "Noto Serif SC", serif;
}

.feature-card p,
.about-copy p,
.faq-list p,
.site-footer p {
  color: var(--muted);
  line-height: 1.9;
}

.feature-card p {
  color: rgba(42, 35, 48, 0.82);
  font-size: 15px;
}

.about-layout {
  width: min(1160px, 100%);
  margin: 48px auto 0;
  display: grid;
  grid-template-columns: 0.94fr 1.06fr;
  gap: 54px;
  align-items: center;
}

.about-visual {
  min-height: 360px;
  border-radius: var(--radius);
  background: url("./assets/home-soft-detail.png") center / cover no-repeat;
  position: relative;
  overflow: hidden;
  box-shadow: 0 24px 78px rgba(61, 18, 29, 0.14);
  animation: quietGlow 7s ease-in-out infinite;
}

.about-visual span {
  display: none;
}

blockquote {
  margin: 22px 0;
  padding: 10px 0 10px 20px;
  color: var(--ink);
  border-left: 2px solid var(--pink);
  font-size: 20px;
  font-family: Georgia, "Noto Serif SC", serif;
  font-style: italic;
}

.principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 28px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.principles span {
  padding: 18px 10px;
  text-align: center;
  color: var(--ink);
  font-weight: 900;
}

.faq-list {
  width: min(1120px, 100%);
  margin: 44px auto 0;
  border-top: 1px solid var(--line);
}

details {
  border-bottom: 1px solid var(--line);
  transition: background 0.18s ease;
}

details:hover {
  background: rgba(255, 247, 251, 0.7);
}

summary {
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  list-style: none;
  cursor: pointer;
  color: var(--ink);
  font-weight: 900;
}

summary::-webkit-details-marker {
  display: none;
}

summary b {
  color: var(--pink);
  transition: transform 0.18s ease;
}

details[open] summary b {
  transform: rotate(45deg);
}

.site-footer {
  padding: 56px max(24px, calc((100vw - 1180px) / 2)) 28px;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(150px, .7fr) minmax(210px, .9fr);
  gap: 58px;
  color: #fff5fb;
  background:
    linear-gradient(118deg, #1d1715 0%, #241b1b 56%, #21191a 100%),
    #1d1715;
  border-top: 1px solid rgba(255, 120, 181, 0.32);
}

.site-footer .brand-copy b,
.site-footer .brand-copy small {
  color: #fff5fb;
}

.site-footer-column {
  display: grid;
  align-content: start;
  gap: 18px;
}

.site-footer p {
  max-width: 470px;
  margin: 22px 0 18px;
  color: rgba(255, 235, 247, 0.8);
  line-height: 1.8;
}

.site-footer a,
.site-footer span,
.site-footer small {
  color: rgba(255, 235, 247, 0.72);
}

.site-footer a {
  transition: color 0.18s ease, transform 0.18s ease;
}

.site-footer a:hover {
  color: #ff9ac5;
  transform: translateX(3px);
}

.site-footer-heading {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding-bottom: 17px;
  border-bottom: 1px solid rgba(255, 235, 247, 0.12);
}

.site-footer-heading b {
  color: rgba(255, 235, 247, 0.46);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2em;
}

.site-footer-heading em {
  color: rgba(255, 235, 247, 0.46);
  font-size: 13px;
  font-style: normal;
  letter-spacing: 0.12em;
}

.site-footer-column a {
  color: rgba(255, 245, 251, 0.86);
  font-size: 16px;
}

.site-footer-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 6px 10px;
  border: 1px solid rgba(255, 154, 197, 0.38);
  border-radius: 999px;
  color: #ffb1d1 !important;
  font-size: 11px;
  letter-spacing: 0.12em;
}

.site-footer-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  margin-right: 8px;
  border-radius: 50%;
  background: #ff6a9e;
  box-shadow: 0 0 0 3px rgba(255, 106, 158, .1);
}

.site-footer-bottom {
  grid-column: 1 / -1;
  min-height: 64px;
  padding-top: 25px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 235, 247, 0.12);
}

.site-footer-bottom span {
  color: rgba(255, 235, 247, 0.5);
  font-size: 13px;
  letter-spacing: .08em;
}

.site-footer-bottom small {
  color: #ff8fbd;
  font-size: 10px;
  letter-spacing: 0.18em;
}

.auth-page,
.register-page {
  min-height: 640px;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 0.72fr);
  gap: 46px;
  align-items: center;
  background:
    linear-gradient(180deg, var(--rose), #fff 36%),
    #fff;
}

.auth-stage,
.register-intro {
  width: min(560px, 100%);
  justify-self: end;
}

.auth-stage {
  display: grid;
  gap: 16px;
}

.crumb {
  color: var(--pink);
  font-weight: 900;
}

.auth-stage h1,
.register-intro h1 {
  margin: 0;
  color: var(--ink);
  font-size: 36px;
}

.auth-stage > p:not(.crumb) {
  max-width: 480px;
  margin: 0;
  color: rgba(23, 35, 61, 0.76);
  font-size: 15px;
  line-height: 1.9;
}

.auth-lede span {
  color: transparent;
  font-weight: 900;
  background: linear-gradient(105deg, #f83c83 0%, #a56dff 52%, #d96fff 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.auth-cover {
  position: relative;
  width: min(420px, 100%);
  aspect-ratio: 425 / 648;
  margin: 12px 0 0;
  overflow: hidden;
  border: 1px solid rgba(248, 60, 131, 0.16);
  border-radius: var(--radius);
  background: #fff7fb;
  box-shadow: 0 20px 54px rgba(92, 44, 90, 0.12);
}

.auth-cover img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.auth-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.01) 48%, rgba(43, 18, 39, 0.46) 100%);
}

.auth-cover figcaption {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 1;
  display: grid;
  gap: 5px;
  color: #fff;
  text-shadow: 0 2px 16px rgba(30, 14, 28, 0.34);
}

.auth-cover span {
  color: rgba(255, 232, 244, 0.92);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.auth-cover b {
  font-size: 22px;
  line-height: 1.35;
  font-family: Georgia, "Noto Serif SC", serif;
}

.auth-cover small {
  width: max-content;
  max-width: 100%;
  padding: 4px 10px 5px;
  color: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 999px;
  background: rgba(72, 35, 76, 0.34);
  box-shadow: 0 8px 22px rgba(50, 18, 46, 0.16);
  font-size: 13px;
  font-weight: 900;
  text-shadow: 0 1px 8px rgba(30, 12, 28, 0.36);
  backdrop-filter: blur(10px);
}

.auth-card,
.register-card,
.panel,
.form-panel,
.message-panel,
.info-block,
.profile-card,
.membership-panel,
.quick-card,
.stat-card,
.plan-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 0 16px 42px rgba(32, 43, 72, 0.06);
}

.auth-card,
.register-card,
.form-panel {
  display: grid;
  gap: 14px;
  padding: 26px;
}

.register-card {
  width: min(560px, 100%);
}

.notice-list {
  display: grid;
  gap: 14px;
  margin-top: 26px;
}

.notice-item {
  display: flex;
  gap: 12px;
  padding: 14px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(248, 60, 131, 0.12);
}

.notice-item b {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 28px;
  color: #fff;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff6aa4, #ad75ff);
  box-shadow: 0 10px 22px rgba(174, 101, 214, 0.2);
  font-size: 12px;
}

.warning {
  padding: 13px 14px;
  border-radius: var(--radius);
  color: #9b3357;
  background: var(--rose);
}

.choice {
  min-height: 64px;
  padding: 13px 14px;
  display: grid;
  gap: 6px;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.choice:hover {
  border-color: var(--pink);
  background: var(--rose);
}

.choice.active {
  border-color: var(--pink);
  background: var(--rose);
  box-shadow: inset 3px 0 0 var(--pink);
}

.role-choice-grid,
.auth-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.auth-fields {
  margin-top: 2px;
}

.adult-check {
  margin-top: 2px;
  color: #37445c;
  line-height: 1.5;
}

.form-message {
  margin: 0;
  padding: 10px 12px;
  border-radius: var(--radius);
  color: #9b3357;
  background: var(--rose);
  border: 1px solid #f4c9d9;
  font-size: 13px;
  font-weight: 800;
}

.form-message[data-type="success"] {
  color: #0c7169;
  background: #ecfbf7;
  border-color: #bfe9df;
}

.soft-toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 80;
  max-width: min(420px, calc(100vw - 32px));
  padding: 12px 16px;
  color: #392338;
  border: 1px solid rgba(248, 60, 131, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 45px rgba(76, 32, 70, 0.16);
  font-size: 14px;
  font-weight: 800;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 14px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  backdrop-filter: blur(16px);
}

.soft-toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.soft-toast[data-type="success"] {
  color: #0c7169;
  border-color: rgba(12, 113, 105, 0.18);
}

button:disabled,
input:disabled,
select:disabled,
textarea:disabled {
  cursor: not-allowed;
  opacity: 0.66;
}

.is-busy [data-busy-text] {
  position: relative;
  overflow: hidden;
}

.is-busy [data-busy-text]::after {
  content: "";
  width: 14px;
  height: 14px;
  margin-left: 8px;
  display: inline-block;
  vertical-align: -2px;
  border: 2px solid rgba(255, 255, 255, 0.48);
  border-top-color: #fff;
  border-radius: 50%;
  animation: xsr-spin 0.8s linear infinite;
}

.copy-row button.copied {
  color: #0c7169;
  border-color: rgba(12, 113, 105, 0.22);
  background: #ecfbf7;
}

@keyframes xsr-spin {
  to {
    transform: rotate(360deg);
  }
}

.choice span,
.center-line,
.row-between a {
  color: var(--muted);
}

.row-between,
.button-row,
.copy-row,
.search-row,
.bind-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.telegram-page {
  width: min(860px, 100%);
}

.telegram-binding-card {
  width: min(780px, 100%);
  padding: clamp(20px, 3vw, 32px);
  border-color: #d8e6f2;
  background: linear-gradient(135deg, #fff 0%, #f8fbfe 100%);
}

.telegram-binding-head {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}

.telegram-binding-mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #1787c9;
  background: #e7f5ff;
}

.telegram-binding-mark .ui-icon {
  width: 24px;
  height: 24px;
}

.telegram-binding-kicker {
  display: block;
  color: #1787c9;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
}

.telegram-binding-head h2 {
  margin: 3px 0 0;
  color: var(--ink);
  font-size: 22px;
}

.telegram-binding-status {
  min-height: 30px;
  padding: 0 11px;
  display: inline-flex;
  align-items: center;
  border: 1px solid #dbe2eb;
  border-radius: 999px;
  color: #78869a;
  background: #fff;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.telegram-binding-status.is-bound {
  color: #0b756c;
  border-color: #bfe9df;
  background: #ecfbf7;
}

.telegram-binding-status.is-pending {
  color: #936214;
  border-color: #f0d9a8;
  background: #fff8e8;
}

.telegram-binding-status.is-warning {
  color: #9a4d18;
  border-color: #f1c9a7;
  background: #fff3e9;
}

.telegram-bind-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 14px;
}

.telegram-bind-form label {
  display: grid;
  gap: 8px;
  color: #34445d;
  font-size: 13px;
  font-weight: 900;
}

.telegram-bind-form input {
  min-width: 0;
}

.telegram-bind-form .form-message {
  grid-column: 1 / -1;
}

.telegram-current-binding {
  min-height: 42px;
  margin-top: 18px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid #e6edf3;
  color: #6f7b94;
  font-size: 12px;
  font-weight: 800;
}

.telegram-current-binding a {
  min-width: 0;
  overflow: hidden;
  color: #1787c9;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.telegram-current-binding b {
  overflow: hidden;
  color: var(--ink);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.telegram-bot-card {
  width: min(780px, 100%);
  margin-top: 14px;
  padding: clamp(20px, 3vw, 28px);
  border-color: #d8e6f2;
  background: #fafdff;
}

.telegram-bot-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.telegram-bot-head h2 {
  margin: 3px 0 0;
  color: var(--ink);
  font-size: 20px;
}

.telegram-bot-copy {
  max-width: 620px;
  margin: 16px 0 0;
  color: #5d6d83;
  font-size: 13px;
  line-height: 1.7;
}

.telegram-bot-actions {
  margin-top: 18px;
  flex-wrap: wrap;
}

.telegram-bot-actions button[aria-busy="true"] {
  cursor: wait;
  opacity: .72;
}

.telegram-bot-open {
  width: fit-content;
  margin-top: 16px;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.telegram-bot-card > .form-message {
  margin-top: 12px;
}

.telegram-bind-guide {
  width: min(780px, 100%);
  margin-top: 14px;
  padding: 20px 24px;
  border-color: #e2e8ef;
}

.telegram-bind-guide header {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.telegram-bind-guide h2 {
  margin: 0;
  color: var(--ink);
  font-size: 17px;
}

.telegram-bind-guide-kicker {
  color: #1787c9;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0;
}

.telegram-bind-guide ol {
  margin: 14px 0 0;
  padding-left: 20px;
  display: grid;
  gap: 8px;
  color: #506078;
  font-size: 13px;
  line-height: 1.6;
}

.telegram-bind-guide li::marker {
  color: #1787c9;
  font-weight: 900;
}

.telegram-bind-guide p {
  margin: 14px 0 0;
  color: #8490a1;
  font-size: 12px;
}

@media (max-width: 640px) {
  .telegram-bot-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .telegram-binding-head {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .telegram-binding-mark {
    width: 42px;
    height: 42px;
  }

  .telegram-binding-status {
    grid-column: 2;
    justify-self: start;
  }

  .telegram-bind-form {
    grid-template-columns: 1fr;
  }

  .telegram-bind-form .primary {
    width: 100%;
  }

  .telegram-current-binding {
    align-items: flex-start;
    flex-direction: column;
  }

  .telegram-bind-guide {
    padding: 18px;
  }
}

.row-between {
  justify-content: space-between;
}

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

.check input {
  width: auto;
  min-height: auto;
}

.dashboard {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  background: #f4f6fa;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: auto;
  padding: 20px 16px;
  background: #fff;
  border-right: 1px solid var(--line);
}

.side-brand {
  margin-bottom: 24px;
}

.user-chip {
  min-height: 74px;
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: var(--radius);
  background: #f4f6fa;
}

.user-chip div {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.user-chip b,
.user-chip span:not(.avatar-tile) {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-chip b,
.account-pill b {
  color: var(--ink);
}

.user-chip span,
.account-pill span,
.page-head span,
.catalog-head p {
  color: #6f7b94;
}

.avatar-tile {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  overflow: hidden;
  border-radius: var(--radius);
  color: var(--pink);
  background: #eaf0f6;
  font-weight: 900;
}

.avatar-tile img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.avatar-tile.mini {
  width: 34px;
  height: 34px;
}

.side-menu {
  display: grid;
  gap: 6px;
  margin-top: 22px;
}

.side-menu a {
  min-height: 44px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: var(--radius);
  color: #243857;
  font-size: 14px;
  font-weight: 900;
}

.side-menu a.active {
  color: var(--pink);
  background: var(--rose);
  box-shadow: inset 4px 0 0 var(--pink);
}

.ui-icon {
  width: 18px;
  height: 18px;
  display: inline-grid;
  place-items: center;
  font-weight: 900;
}

.ui-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.workspace {
  min-width: 0;
}

.dash-top {
  position: sticky;
  top: 0;
  z-index: 15;
  height: 68px;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.dash-left,
.dash-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dash-left > div {
  display: grid;
  gap: 2px;
}

.dash-left span {
  color: var(--muted);
}

.dash-left b {
  color: var(--ink);
  font-size: 17px;
}

.dash-actions {
  justify-content: end;
}

.icon-button {
  position: relative;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  font-size: 18px;
}

.notification-count {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
  border-radius: 999px;
  color: #fff;
  background: var(--pink);
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
  line-height: 1;
}

.account-pill {
  min-height: 44px;
  padding: 0 16px 0 6px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
}

.dash-main {
  width: min(1180px, calc(100% - 48px));
  margin: 36px auto 64px;
}

.page-head,
.catalog-head {
  margin-bottom: 24px;
}

.page-head p,
.catalog-head p {
  margin: 0 0 8px;
  color: #78839a;
  font-weight: 600;
}

.page-head h1,
.catalog-head h1 {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 34px;
  line-height: 1.12;
}

.detail-page-title {
  max-width: 28ch;
  font-size: 28px !important;
  line-height: 1.25 !important;
  color: #39233f !important;
}

.inline-head,
.catalog-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}

.detail-head-actions,
.profile-card-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
}

.profile-card-actions .primary.full {
  width: auto;
  flex: 1 1 auto;
  min-width: 0;
}

.favorite-toggle {
  width: 44px;
  min-width: 44px;
  height: 44px;
  padding: 0;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(247, 179, 206, 0.88);
  border-radius: 999px;
  color: #bc5a88;
  background: #fff8fb;
  box-shadow: 0 10px 24px rgba(199, 118, 160, 0.12);
}

.favorite-toggle .ui-icon {
  width: 18px;
  height: 18px;
}

.favorite-toggle.is-active {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(90deg, var(--pink), #b85cff);
  box-shadow: 0 14px 30px rgba(184, 92, 255, 0.24);
}

.favorite-toggle.is-active .ui-icon {
  color: #fff;
}

.favorite-summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  margin-bottom: 18px;
  background:
    linear-gradient(90deg, rgba(255, 248, 252, 0.96), rgba(248, 240, 255, 0.92)),
    radial-gradient(circle at 12% 20%, rgba(255, 79, 147, 0.13), transparent 34%);
}

.favorite-summary div {
  min-width: 126px;
  display: grid;
  gap: 2px;
}

.favorite-summary span,
.favorite-summary small {
  color: #8c7892;
  font-size: 12px;
  font-weight: 900;
}

.favorite-summary b {
  color: #b85cff;
  font-size: 34px;
  line-height: 1;
}

.favorite-summary p {
  margin: 0;
  line-height: 1.7;
}

.membership-panel {
  min-height: 132px;
  padding: 24px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  background: linear-gradient(90deg, #fff7fb, #fff);
  border-color: #f4c9d9;
}

.membership-panel > span {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  color: var(--pink);
  background: #fff;
}

.membership-panel p,
.vip-hero p {
  color: var(--pink);
  font-weight: 900;
  letter-spacing: 0;
}

.membership-panel h2,
.quick-section h2,
.panel h3 {
  margin: 0 0 8px;
  color: var(--ink);
}

.quick-section {
  margin-top: 28px;
}

.quick-section h2 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  font-size: 22px;
}

.quick-section h2 span {
  color: #a5adbc;
  letter-spacing: 0;
  font-size: 12px;
}

.activity-guide {
  margin-top: 28px;
}

.activity-guide-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.activity-guide-head h2 {
  margin: 0;
  color: var(--ink);
  font-size: 22px;
}

.activity-guide-head span {
  color: #a5adbc;
  font-size: 12px;
}

.activity-guide-card {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 14px;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.94);
}

.activity-guide-icon {
  width: 48px;
  height: 48px;
  display: grid;
  flex: 0 0 48px;
  place-items: center;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(135deg, #ff6aa4, #a66ce6);
}

.activity-guide-icon svg {
  width: 24px;
  height: 24px;
}

.activity-guide-card > div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.activity-guide-card b {
  color: var(--ink);
  font-size: 16px;
}

.activity-guide-card div span {
  color: var(--muted);
  line-height: 1.5;
}

.activity-guide-link {
  margin-left: auto;
  color: var(--pink);
  font-weight: 900;
  white-space: nowrap;
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 14px;
}

.split-panels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
  align-items: start;
}

.agent-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.92fr);
  gap: 18px;
  align-items: center;
  overflow: hidden;
  border: 1px solid rgba(214, 142, 169, 0.16);
  background:
    linear-gradient(135deg, rgba(255, 250, 253, 0.98), rgba(246, 240, 255, 0.94)),
    #fff;
  box-shadow: 0 22px 52px rgba(126, 70, 150, 0.08);
}

.agent-hero-copy {
  display: grid;
  gap: 10px;
  align-content: start;
}

.agent-hero-copy p {
  margin: 0;
  color: #a25a8b;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.agent-hero-copy h2 {
  margin: 0;
  color: var(--ink);
  font-size: 32px;
  line-height: 1.18;
}

.agent-hero-copy span {
  max-width: 58ch;
  color: var(--muted);
  line-height: 1.78;
}

.agent-hero-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.agent-hero-grid .stat-card {
  min-height: 108px;
  border: 1px solid rgba(223, 188, 221, 0.36);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 10px 24px rgba(132, 72, 168, 0.06);
}

.agent-hero-grid .stat-card b {
  font-size: 24px;
}

.agent-flow-panel {
  margin: 0 0 18px;
  padding: 18px;
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  border: 1px solid rgba(224, 203, 237, 0.9);
  border-radius: 8px;
  background:
    radial-gradient(circle at 92% 12%, rgba(157, 114, 255, 0.13), transparent 28%),
    linear-gradient(118deg, rgba(255, 250, 253, 0.98), rgba(247, 241, 255, 0.93)),
    #fff;
  box-shadow: 0 18px 48px rgba(83, 45, 116, 0.08);
}

.agent-flow-panel.compact {
  margin-top: -2px;
}

.agent-flow-copy {
  display: grid;
  gap: 7px;
}

.agent-flow-copy span {
  color: #e93c88;
  font-size: 12px;
  font-weight: 900;
}

.agent-flow-copy h3 {
  margin: 0;
  color: #352143;
  font-size: 20px;
}

.agent-flow-copy p {
  margin: 0;
  color: #725f7d;
  line-height: 1.72;
}

.agent-flow-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.agent-flow-steps article {
  min-height: 74px;
  padding: 10px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  border: 1px solid rgba(229, 209, 238, 0.86);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
}

.agent-flow-steps article > b {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #9b5c85;
  background: #ffeaf4;
  font-size: 13px;
}

.agent-flow-steps article.done > b {
  color: #fff;
  background: linear-gradient(135deg, #ff5596, #9d72ff);
}

.agent-flow-steps strong,
.agent-flow-steps span {
  display: block;
}

.agent-flow-steps strong {
  color: #352143;
  font-size: 14px;
}

.agent-flow-steps span {
  margin-top: 3px;
  color: #7c6c86;
  font-size: 12px;
  font-weight: 800;
}

.agent-flow-actions {
  display: grid;
  gap: 8px;
}

.agent-member-card,
.broker-member-card {
  min-height: 96px;
  margin: 0 0 18px;
  padding: 18px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 14px;
  overflow: hidden;
  border: 1px solid rgba(224, 203, 237, 0.9);
  border-radius: 8px;
  background:
    linear-gradient(110deg, rgba(255, 249, 253, 0.99), rgba(248, 241, 255, 0.92)),
    #fff;
  box-shadow: 0 18px 44px rgba(83, 45, 116, 0.08);
}

.agent-member-card > span,
.broker-member-card > span {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, #ff5596, #9d72ff);
  box-shadow: 0 16px 30px rgba(172, 87, 201, 0.18);
}

.agent-member-card.member-on,
.broker-member-card.member-on {
  border-color: rgba(170, 130, 255, 0.42);
  background:
    radial-gradient(circle at 92% 18%, rgba(255, 91, 154, 0.12), transparent 24%),
    linear-gradient(110deg, rgba(255, 249, 253, 0.98), rgba(247, 240, 255, 0.94)) padding-box,
    linear-gradient(115deg, rgba(248, 60, 131, 0.36), rgba(157, 114, 255, 0.46), rgba(255, 188, 221, 0.34)) border-box;
}

.agent-member-card div,
.broker-member-card div {
  min-width: 0;
}

.agent-member-card b,
.broker-member-card b {
  color: #352143;
  font-size: 18px;
}

.agent-member-card p,
.broker-member-card p {
  margin: 4px 0 0;
  color: #725f7d;
  line-height: 1.7;
}

.agent-member-card em,
.broker-member-card em {
  min-height: 30px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(220, 190, 235, 0.9);
  border-radius: 999px;
  color: #8f4f93;
  background: rgba(255, 246, 252, 0.9);
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
  white-space: nowrap;
}

.agent-member-card.member-on em,
.broker-member-card.member-on em {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, #ff5596, #9d72ff);
  box-shadow: 0 12px 24px rgba(156, 91, 205, 0.18);
}

.agent-link-panel {
  max-width: 860px;
  border-color: rgba(214, 142, 169, 0.24);
  background:
    linear-gradient(135deg, rgba(255, 248, 252, 0.98), rgba(248, 241, 255, 0.94)),
    #fff;
}

.agent-link-panel .copy-row {
  width: 100%;
}

.agent-link-panel .copy-row input {
  flex: 1;
  min-width: 0;
}

.agent-link-panel .muted-line {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.agent-invite-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  align-items: center;
  gap: 20px;
  border: 1px solid transparent;
  background:
    radial-gradient(circle at 86% 10%, rgba(255, 87, 151, 0.14), transparent 28%),
    linear-gradient(120deg, rgba(255, 250, 253, 0.98), rgba(245, 240, 255, 0.94)) padding-box,
    linear-gradient(115deg, rgba(248, 60, 131, 0.32), rgba(157, 114, 255, 0.38), rgba(255, 182, 210, 0.34)) border-box;
  box-shadow: 0 24px 64px rgba(120, 72, 150, 0.1);
}

.agent-invite-copy {
  display: grid;
  gap: 12px;
}

.agent-invite-copy span {
  width: fit-content;
  min-height: 30px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  color: #9b3f78;
  background: rgba(255, 224, 239, 0.78);
  font-size: 12px;
  font-weight: 900;
}

.agent-invite-copy h2 {
  margin: 0;
  color: var(--ink);
  font-size: 28px;
  line-height: 1.25;
}

.agent-invite-copy p {
  margin: 0;
  color: #6f617c;
  line-height: 1.84;
}

.agent-invite-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.agent-invite-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.agent-invite-stats .stat-card {
  min-height: 112px;
  border-color: rgba(223, 188, 221, 0.5);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 14px 30px rgba(132, 72, 168, 0.07);
}

.agent-domain-row {
  display: grid;
  grid-template-columns: minmax(150px, 0.28fr) minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.agent-domain-label {
  min-height: 44px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  background: #fff;
  font-size: 13px;
  font-weight: 900;
}

.agent-promo-split {
  align-items: stretch;
}

.agent-poster-panel,
.agent-copy-panel,
.agent-rule-panel {
  border-color: rgba(224, 202, 235, 0.8);
  background: linear-gradient(135deg, rgba(255, 250, 253, 0.98), rgba(248, 243, 255, 0.94));
}

.agent-poster-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.agent-poster-card {
  min-height: 220px;
  padding: 16px;
  position: relative;
  display: grid;
  align-content: end;
  gap: 9px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: var(--radius);
  color: #fff;
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.5), transparent 20%),
    linear-gradient(145deg, #ff5a96, #9d72ff);
  box-shadow: 0 18px 40px rgba(143, 79, 174, 0.16);
}

.agent-poster-card.poster-2 {
  background:
    radial-gradient(circle at 84% 18%, rgba(255, 255, 255, 0.46), transparent 22%),
    linear-gradient(145deg, #875cff, #ff82bd);
}

.agent-poster-card.poster-3 {
  background:
    radial-gradient(circle at 28% 12%, rgba(255, 240, 250, 0.58), transparent 22%),
    linear-gradient(145deg, #1f1730, #ad68ff 52%, #ff6ca8);
}

.agent-poster-card::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 8px;
  pointer-events: none;
}

.agent-poster-card span,
.agent-poster-card small,
.agent-poster-card b,
.agent-poster-card p,
.agent-poster-card button {
  position: relative;
  z-index: 1;
}

.agent-poster-card span {
  position: absolute;
  top: 20px;
  left: 20px;
  font-size: 12px;
  font-weight: 900;
}

.agent-poster-card b {
  font-size: 22px;
}

.agent-poster-card p,
.agent-poster-card small {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.55;
}

.agent-poster-card .ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.12);
}

.agent-copy-list,
.agent-rule-grid {
  display: grid;
  gap: 12px;
}

.agent-copy-list article,
.agent-rule-grid article {
  min-width: 0;
  padding: 14px;
  display: grid;
  gap: 10px;
  border: 1px solid rgba(224, 202, 235, 0.9);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.78);
}

.agent-copy-list article > div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.agent-copy-list b {
  color: #362143;
}

.agent-copy-list span {
  color: #a25a8b;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.agent-copy-list p {
  margin: 0;
  color: #62546d;
  line-height: 1.72;
}

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

.agent-rule-grid article {
  align-content: start;
}

.agent-rule-grid b {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, #ff5596, #9d72ff);
}

.agent-rule-grid p {
  margin: 0;
  color: #62546d;
  line-height: 1.7;
}

.wallet-guide,
.invite-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 18px;
  align-items: center;
  border-color: rgba(214, 142, 169, 0.24);
  background:
    radial-gradient(circle at 92% 10%, rgba(255, 91, 157, 0.1), transparent 24%),
    linear-gradient(135deg, rgba(255, 248, 252, 0.98), rgba(246, 240, 255, 0.92)),
    #fff;
  box-shadow: 0 22px 52px rgba(126, 70, 150, 0.08);
}

.wallet-guide-copy,
.invite-copy {
  display: grid;
  gap: 10px;
}

.wallet-guide-copy p {
  margin: 0;
  color: #a25a8b;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.wallet-guide-copy h3,
.invite-copy h3 {
  margin: 0;
  color: var(--ink);
  font-size: 24px;
  line-height: 1.35;
}

.wallet-guide-copy span,
.invite-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.wallet-quick-grid,
.invite-quick-grid,
.support-quick-grid {
  gap: 12px;
  margin-top: 0;
}

.wallet-quick-grid .quick-card,
.invite-quick-grid .quick-card,
.support-quick-grid .quick-card,
.wallet-quick-grid .quick-card:first-child,
.wallet-quick-grid .quick-card:last-child,
.invite-quick-grid .quick-card:first-child,
.invite-quick-grid .quick-card:last-child,
.support-quick-grid .quick-card:first-child,
.support-quick-grid .quick-card:last-child {
  border-radius: var(--radius);
}

.invite-copy span {
  width: fit-content;
  min-height: 32px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  color: #8d416a;
  background: rgba(255, 222, 237, 0.72);
  font-size: 12px;
  font-weight: 900;
}

.invite-hero .copy-row {
  min-width: 0;
}

.invite-actions {
  margin-top: 18px;
}

.invite-split .panel {
  min-width: 0;
}

.agent-split {
  align-items: start;
}

.agent-split > .panel {
  min-width: 0;
}

.quick-card {
  min-height: 116px;
  padding: 18px 16px;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 10px;
  border-radius: 0;
}

.quick-card:first-child {
  border-radius: var(--radius) 0 0 var(--radius);
}

.quick-card:last-child {
  border-radius: 0 var(--radius) var(--radius) 0;
}

.quick-card .ui-icon {
  width: 44px;
  height: 44px;
  padding: 12px;
  border-radius: var(--radius);
  color: var(--pink);
  background: #ffe4ef;
}

.quick-card b {
  color: var(--ink);
  font-size: 16px;
}

.quick-card span:last-child,
.stat-card span,
.stat-card small,
.profile-body p,
.panel p,
.empty-state p,
.manual-row p {
  color: var(--muted);
}

.stat-grid,
.wallet-grid,
.plan-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.stat-card {
  min-height: 96px;
  padding: 18px;
  display: grid;
  align-content: center;
  gap: 6px;
}

.stat-card b {
  color: var(--ink);
  font-size: 26px;
}

.panel,
.message-panel,
.form-panel {
  padding: 22px;
}

.notice-panel,
.guide-panel {
  margin-top: 22px;
}

.catalog-head {
  min-height: 126px;
  padding-top: 10px;
}

.filter-panel {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 22px;
}

.resources-filter {
  align-items: start;
}

.filter-actions {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(160px, 1fr) minmax(220px, 1fr);
  align-items: center;
  gap: 12px;
}

.filter-actions .primary {
  min-height: 48px;
}

.filter-actions .text-button {
  justify-self: center;
}

.advanced-filter-panel {
  grid-column: 1 / -1;
  padding: 18px;
  border: 1px solid rgba(202, 151, 219, 0.42);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 247, 252, 0.96), rgba(246, 240, 255, 0.92)),
    #fff;
  box-shadow: 0 18px 46px rgba(114, 58, 121, 0.08);
}

.advanced-filter-head {
  margin-bottom: 14px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: #6d5577;
}

.advanced-filter-head b {
  color: #40244d;
}

.advanced-filter-head span {
  font-size: 12px;
  line-height: 1.6;
}

.advanced-filter-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.advanced-filter-grid input {
  grid-column: span 2;
}

.profile-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(260px, 1fr));
  gap: 20px;
}

.profile-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(244, 193, 220, 0.92);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 250, 253, 0.98), rgba(255, 245, 251, 0.96)),
    #fff;
  box-shadow: 0 16px 42px rgba(104, 51, 111, 0.1);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.profile-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 118, 181, 0.72);
  box-shadow: 0 24px 60px rgba(169, 74, 146, 0.16);
}

.profile-visual {
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 232px;
  min-height: 0;
  position: relative;
  background:
    radial-gradient(circle at 70% 30%, rgba(255, 255, 255, 0.28), transparent 18%),
    linear-gradient(135deg, #1b2136, #9e325e);
}

.profile-visual::before {
  content: "";
  position: absolute;
  inset: 12%;
  border-radius: 999px 999px 10px 10px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0.08));
  opacity: 0.65;
}

.visual-B {
  background: linear-gradient(135deg, #223348, #0b9b8f);
}

.visual-C {
  background: linear-gradient(135deg, #31243e, #b98523);
}

.visual-D {
  background: linear-gradient(135deg, #22304c, #625193);
}

.profile-visual span {
  position: absolute;
  right: 14px;
  bottom: 14px;
  min-height: 32px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  color: #fff;
  background: rgba(7, 20, 42, 0.84);
  font-weight: 800;
}

.profile-visual-media {
  overflow: hidden;
}

.profile-visual-media::before {
  display: none;
}

.profile-cover-button {
  position: relative;
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: #171322;
  cursor: pointer;
}

.profile-cover-button > img,
.profile-cover-button > video,
.profile-cover-peek {
  width: 100%;
  height: 100%;
  min-height: 0;
  display: block;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.28s ease, filter 0.28s ease;
}

.profile-cover-button > img,
.profile-cover-button > video {
  grid-row: 1;
}

.profile-cover-peek {
  grid-column: 2;
  grid-row: 1;
  border-left: 1px solid rgba(255, 255, 255, 0.28);
}

.profile-cover-button:not(:has(.profile-cover-peek)) {
  grid-template-columns: 1fr;
}

.profile-cover-button:hover > img,
.profile-cover-button:hover > video,
.profile-cover-button:hover .profile-cover-peek {
  transform: scale(1.025);
  filter: brightness(1.04);
}

.profile-cover-hidden {
  display: none;
}

.profile-body {
  min-height: 0;
  padding: 14px 16px 16px;
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
}

.profile-status,
.profile-tags,
.profile-body dl div,
.order-summary p {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.profile-status b {
  color: var(--pink);
}

.profile-status span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.profile-card-source {
  min-height: 20px;
  justify-content: flex-end;
}

.profile-card-recommendation {
  position: relative;
  margin: 13px 0 14px;
  padding: 18px 14px 12px;
  border: 1px solid rgba(244, 178, 204, 0.82);
  border-radius: 8px;
  background: rgba(255, 250, 252, 0.92);
  text-align: center;
}

.profile-card-recommendation > span {
  position: absolute;
  top: -12px;
  left: 50%;
  min-height: 25px;
  padding: 0 13px;
  display: inline-flex;
  align-items: center;
  transform: translateX(-50%);
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(90deg, #9d3f74, #71394f);
  box-shadow: 0 7px 18px rgba(116, 45, 86, 0.2);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.profile-card-recommendation p {
  margin: 0;
  display: -webkit-box;
  overflow: hidden;
  color: #4b3049;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.65;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.profile-body h3 {
  color: var(--ink);
}

.profile-tags {
  justify-content: flex-start;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.profile-tags span {
  padding: 5px 9px;
  border-radius: 999px;
  color: #9b3357;
  background: var(--rose);
  font-size: 12px;
  font-weight: 800;
}

.profile-body dl,
.profile-facts {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin: 0;
}

.profile-facts > div {
  min-height: 34px;
  padding: 5px 0;
  border-bottom: 1px solid rgba(233, 214, 229, 0.64);
}

.profile-facts dt {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.profile-facts dt .ui-icon,
.profile-self .ui-icon {
  width: 16px;
  height: 16px;
  color: #e65398;
}

.profile-facts dd {
  max-width: 62%;
  overflow-wrap: anywhere;
  text-align: right;
}

.profile-body dt,
.info-block span {
  color: #77829a;
}

.profile-body dd {
  margin: 0;
  color: var(--ink);
  font-weight: 900;
}

.profile-self {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 8px;
  padding: 10px 0 14px;
}

.profile-self > span {
  display: inline-flex;
  align-items: flex-start;
  gap: 7px;
  color: #77829a;
  font-size: 13px;
  line-height: 1.7;
}

.profile-self p {
  margin: 0;
  display: -webkit-box;
  overflow: hidden;
  color: #4d4154;
  font-size: 13px;
  line-height: 1.7;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.profile-card-actions {
  margin-top: auto;
}

.profile-reaction-panel {
  margin: 0 0 16px;
}

.profile-reaction-actions {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.profile-card .profile-reaction-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0 0 12px;
}

.profile-reaction-button {
  min-width: 0;
  min-height: 38px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid #eadce7;
  border-radius: 8px;
  color: #75687c;
  background: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
  transition: color 0.16s ease, background 0.16s ease, border-color 0.16s ease, opacity 0.16s ease;
}

.profile-reaction-button .ui-icon {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
}

.profile-reaction-button b {
  min-width: 1ch;
  color: inherit;
  font-variant-numeric: tabular-nums;
}

.profile-reaction-button:hover,
.profile-reaction-button:focus-visible {
  border-color: rgba(229, 83, 151, 0.58);
  color: #c23978;
  background: #fff7fb;
}

.profile-reaction-button.is-like.is-active {
  border-color: rgba(229, 83, 151, 0.72);
  color: #c92f77;
  background: #fff0f7;
}

.profile-reaction-button.is-dislike.is-active {
  border-color: rgba(99, 116, 157, 0.58);
  color: #4f638e;
  background: #f3f6fc;
}

.profile-reaction-button.is-pending {
  cursor: wait;
  opacity: 0.58;
}

.detail-head-actions .profile-reaction-actions.is-compact {
  gap: 6px;
}

.detail-head-actions .profile-reaction-actions.is-compact .profile-reaction-button {
  min-width: 42px;
  min-height: 38px;
  padding-inline: 9px;
}

.detail-head-actions .profile-reaction-actions.is-compact .profile-reaction-text {
  display: none;
}

.contact-broker-panel {
  position: relative;
  overflow: hidden;
  border-color: rgba(239, 179, 211, 0.86);
  background: linear-gradient(145deg, #fffafd, #faf4ff);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.verification-panel {
  position: relative;
  overflow: hidden;
  border-color: rgba(239, 179, 211, 0.72);
  background: linear-gradient(145deg, #fffafd, #fff6fb 62%, #f8f3ff);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.verification-panel:hover,
.verification-panel:focus-within,
.contact-broker-panel:hover,
.contact-broker-panel:focus-within {
  transform: translateY(-4px);
  border-color: rgba(228, 93, 157, 0.74);
  box-shadow: 0 22px 44px rgba(126, 64, 119, 0.16), 0 0 0 4px rgba(248, 60, 131, 0.06);
}

.contact-broker-panel.is-locked .ok {
  color: #a13f76;
  font-weight: 900;
}

.contact-broker-panel.is-locked .primary {
  box-shadow: 0 12px 28px rgba(214, 67, 139, 0.24);
}

.draft-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.draft-card {
  display: grid;
  gap: 16px;
}

.draft-card-head,
.draft-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.draft-card-head span,
.draft-card-foot span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.draft-card-head h3 {
  margin: 4px 0 0;
  color: var(--ink);
}

.draft-card-head b {
  min-height: 30px;
  padding: 0 11px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  color: #9b3357;
  background: var(--rose);
  white-space: nowrap;
}

.draft-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.draft-meta div {
  min-width: 0;
  padding: 10px;
  border-radius: var(--radius);
  background: #f8f3fb;
}

.draft-meta dt {
  color: #7e7890;
  font-size: 12px;
}

.draft-meta dd {
  margin: 4px 0 0;
  color: var(--ink);
  font-weight: 900;
}

.draft-card p {
  margin: 0;
  color: #5f687b;
  line-height: 1.7;
}

.pager {
  margin-top: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 40px;
}

.pager button {
  display: grid;
  place-items: center;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--pink);
  background: #fff;
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 8px 20px rgba(31, 38, 55, 0.06);
}

.pager button:disabled {
  color: #bbc0cc;
  background: #f7f8fb;
  box-shadow: none;
  opacity: 0.7;
}

.pager-status {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  gap: 7px;
  min-width: 64px;
  color: #8b93a5;
  white-space: nowrap;
}

.pager-status b {
  color: #293042;
  font-size: 16px;
}

.pager-status i,
.pager-status span {
  font-size: 13px;
  font-style: normal;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 820px) minmax(320px, 580px);
  gap: 20px;
  justify-content: space-between;
  align-items: start;
}

.detail-main {
  display: grid;
  gap: 18px;
}

.detail-info-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.recommend {
  padding: 14px 18px;
  border-radius: var(--radius);
  color: #9b3357;
  background: var(--rose);
  border: 1px solid #f4c9d9;
  font-weight: 800;
}

.detail-recommendation {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0 0 20px;
  padding: 14px 18px;
  background: #fff8fc;
  border-color: rgba(230, 164, 199, 0.72);
  box-shadow: 0 14px 34px rgba(154, 75, 137, 0.08);
}

.detail-recommendation .recommend-mark {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #d9549a;
  font-size: 13px;
  font-weight: 900;
}

.detail-recommendation b {
  display: block;
  margin: 2px 0 5px;
  color: #8d416a;
}

.detail-recommendation p {
  margin: 0;
  color: #684c68;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.7;
}

.detail-gallery {
  display: block;
}

.detail-gallery-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  grid-auto-rows: 132px;
  gap: 4px;
  overflow: hidden;
  border-radius: 8px;
}

.detail-gallery .profile-visual {
  min-height: 210px;
  border-radius: var(--radius);
}

.detail-media-tile {
  position: relative;
  min-height: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: #181625;
  cursor: pointer;
}

.detail-media-tile.is-large {
  grid-column: auto;
  grid-row: auto;
}

.detail-media-tile img,
.detail-media-tile video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center;
  transition: transform 0.28s ease, filter 0.28s ease;
}

.detail-media-tile img {
  background: linear-gradient(145deg, #fff8fb, #f3edf4);
}

.detail-media-tile video {
  background: #181625;
}

.verification-gallery .detail-media-tile img,
.verification-gallery .detail-media-tile video {
  object-fit: contain;
  object-position: center;
  background: linear-gradient(145deg, #211927, #4e2b47);
}

.detail-media-tile:hover img,
.detail-media-tile:hover video {
  transform: none;
  filter: brightness(1.04);
}

.detail-media-tile::after {
  content: "点击查看";
  position: absolute;
  left: 10px;
  bottom: 10px;
  padding: 6px 9px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 999px;
  color: #fff;
  background: rgba(20, 13, 25, 0.52);
  font-size: 12px;
  font-weight: 900;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.detail-media-tile:hover::after {
  opacity: 1;
  transform: translateY(0);
}

.detail-media-tile span {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 5px 8px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(90deg, rgba(213, 85, 142, 0.9), rgba(139, 95, 205, 0.9));
  font-size: 12px;
  font-weight: 900;
}

.detail-gallery.compact .detail-gallery-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 96px;
}

.detail-gallery.compact .detail-media-tile.is-large {
  grid-column: auto;
  grid-row: auto;
}

.verification-gallery .detail-gallery-grid {
  width: min(420px, 100%);
  grid-template-columns: minmax(0, 1fr);
  grid-auto-rows: auto;
  justify-content: start;
  gap: 10px;
  border-radius: 8px;
}

.verification-gallery .detail-media-tile {
  width: 100%;
  min-height: 240px;
  aspect-ratio: 16 / 10;
  border: 1px solid rgba(255, 205, 230, 0.86);
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(126, 64, 119, 0.12);
}

.detail-gallery > img,
.detail-gallery > video {
  width: 100%;
  height: 210px;
  display: block;
  border-radius: var(--radius);
  object-fit: cover;
  background: #181625;
}

.detail-gallery > video {
  object-fit: contain;
}

.detail-gallery-empty {
  min-height: 132px;
  display: grid;
  place-items: center;
  align-content: center;
  grid-column: 1 / -1;
  gap: 8px;
  border: 1px dashed rgba(190, 146, 204, 0.7);
  border-radius: var(--radius);
  color: #876a91;
  background: linear-gradient(135deg, #fff7fc, #f5efff);
  text-align: center;
}

.verification-gallery .detail-gallery-empty {
  min-height: 148px;
  padding: 14px;
}

.detail-gallery-empty span {
  color: #b45389;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.detail-gallery-empty p {
  margin: 0;
}

.media-link-list {
  display: flex;
  flex-wrap: wrap;
  grid-column: 1 / -1;
  gap: 8px;
}

.media-link-list a {
  padding: 8px 11px;
  border: 1px solid rgba(205, 170, 217, 0.72);
  border-radius: 999px;
  color: #8d416a;
  background: #fff7fb;
  font-size: 12px;
  font-weight: 900;
}

.info-block {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: 15px 18px 17px;
  border: 1px solid rgba(232, 189, 211, 0.78);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(255, 248, 252, 0.94)),
    #fff;
  box-shadow: 0 12px 30px rgba(98, 58, 118, 0.09), 0 1px 0 rgba(255, 255, 255, 0.9) inset;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.info-block::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(112deg, rgba(248, 60, 131, 0.025), transparent 38%, rgba(142, 103, 199, 0.045));
}

.info-block::after {
  content: "";
  position: absolute;
  z-index: 0;
  top: 4px;
  right: 12px;
  width: 124px;
  height: 68px;
  pointer-events: none;
  background-position: right center;
  background-repeat: no-repeat;
  background-size: contain;
  opacity: 0.9;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.info-block.is-basic::after {
  background-image: url("./assets/xsr-card-basic.svg");
}

.info-block.is-skills::after {
  background-image: url("./assets/xsr-card-skills.svg");
}

.info-block.is-date::after {
  background-image: url("./assets/xsr-card-date.svg");
}

.info-block:hover {
  transform: translateY(-3px);
  border-color: rgba(226, 125, 181, 0.9);
  box-shadow: 0 20px 42px rgba(121, 61, 129, 0.14), 0 1px 0 rgba(255, 255, 255, 0.95) inset;
}

.info-block:hover::after {
  transform: translateY(-2px) rotate(1deg);
  opacity: 1;
}

.info-block h3 {
  position: relative;
  z-index: 1;
  margin: 0 0 18px;
  width: 100%;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  padding: 0 128px 13px 0;
  border-bottom: 1px solid rgba(236, 218, 230, 0.72);
  color: #b24486;
  background: linear-gradient(90deg, #f83c83, #8b5fcd);
  -webkit-background-clip: text;
  background-clip: text;
  font-size: 18px;
}

.info-block h3 .ui-icon {
  width: 21px;
  height: 21px;
  padding: 4px;
  border-radius: 7px;
  color: #fff;
  background: linear-gradient(145deg, #f05a9b, #9d68cf);
  box-shadow: 0 7px 16px rgba(201, 81, 148, 0.2);
}

.info-block h3 > span:last-child {
  color: #b24486;
}

.info-block-rows {
  position: relative;
  z-index: 1;
}

.info-block p {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  column-gap: 8px;
  margin: 0;
  padding: 9px 0;
  border-top: 0;
}

.info-block .info-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.info-block .info-label .ui-icon {
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
  color: #20283a;
}

.info-block p > b {
  min-width: 0;
  overflow-wrap: anywhere;
  color: #2f2634;
  font-weight: 700;
  line-height: 1.7;
}

.info-block p:hover {
  padding-right: 0;
  padding-left: 0;
  background: transparent;
}

.detail-side {
  display: grid;
  gap: 14px;
  align-content: start;
  position: sticky;
  top: 84px;
}

.video-placeholder {
  min-height: 170px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  color: #fff;
  background: linear-gradient(135deg, #111827, #f83c83);
}

.verification-state {
  padding: 14px;
  border: 1px dashed rgba(185, 154, 202, 0.76);
  border-radius: var(--radius);
  color: #7a6685;
  background: #faf5fc;
}

.verification-state.submitted {
  border-color: rgba(48, 160, 145, 0.34);
  color: #337c75;
  background: #f2fbf8;
}

.verification-state span {
  font-weight: 900;
}

.verification-state p {
  margin: 7px 0 0;
  line-height: 1.6;
}

.ok {
  color: var(--teal) !important;
  font-weight: 900;
}

.vip-hero {
  min-height: 210px;
  padding: 32px;
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(23, 16, 15, 0.9), rgba(99, 42, 66, 0.72)),
    linear-gradient(90deg, #241627, #f83c83);
  color: #fff;
}

.vip-hero h1,
.vip-hero h2 {
  margin: 0 0 14px;
}

.vip-hero h1 {
  font-size: 34px;
}

.plan-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.plan-card {
  min-height: 132px;
  padding: 20px;
  display: grid;
  gap: 12px;
  text-align: left;
  border-color: #f0d8e2;
}

.plan-card strong {
  color: var(--pink);
  font-size: 24px;
}

.plan-card.selected {
  border-color: var(--pink);
  background: #fff7fb;
  box-shadow: inset 4px 0 0 var(--pink), 0 18px 44px rgba(248, 60, 131, 0.1);
}

.plan-badge {
  width: max-content;
  min-height: 26px;
  padding: 0 9px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  color: #9b3357;
  background: var(--rose);
  font-size: 12px;
  font-weight: 900;
}

.plan-card ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.7;
}

.checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(310px, 0.8fr);
  gap: 18px;
}

.order-summary {
  display: grid;
  gap: 16px;
}

.order-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.order-summary strong {
  color: var(--pink);
  font-size: 24px;
}

.countdown {
  min-width: 78px;
  min-height: 34px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  color: #9b3357;
  background: var(--rose);
  font-weight: 900;
}

.countdown.expired {
  color: #fff;
  background: #121826;
}

.qr-panel img {
  width: 190px;
  max-width: 100%;
  display: block;
  margin: 16px auto;
}

.blue-note {
  background: #eef6ff;
  border-color: #cfe4ff;
}

.empty-panel {
  min-height: 210px;
  display: grid;
  place-items: center;
}

.catalog-empty {
  position: relative;
  overflow: hidden;
  min-height: 300px;
  background:
    linear-gradient(90deg, rgba(255, 250, 253, 0.98), rgba(255, 241, 250, 0.88) 54%, rgba(247, 235, 255, 0.28)),
    url("./assets/xsr-about-poster-ai-v3.jpg") right center / auto 132% no-repeat;
}

.catalog-empty::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(232, 120, 176, 0.18);
  border-radius: var(--radius);
  pointer-events: none;
}

.empty-state {
  position: relative;
  z-index: 1;
  min-height: 96px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  text-align: center;
}

.empty-mark {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, #ff5a9d, #b78cff);
  box-shadow: 0 16px 34px rgba(186, 92, 169, 0.18);
  font-size: 18px;
  font-weight: 900;
}

.step-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 46px;
  border-bottom: 1px solid var(--line);
}

.step-row b,
.manual-block h2 span {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--pink), #b78cff);
}

.message-panel {
  display: grid;
  gap: 16px;
}

.search-row {
  align-items: stretch;
}

.conversation-list {
  display: grid;
  gap: 10px;
}

.conversation-item {
  min-height: 68px;
  padding: 12px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  text-align: left;
}

button.conversation-item {
  width: 100%;
}

.conversation-item:hover {
  border-color: #f4c9d9;
  background: #fff8fb;
}

.conversation-item b {
  color: var(--ink);
}

.conversation-item p {
  margin: 6px 0 0;
  color: var(--muted);
}

.conversation-role-label {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.conversation-item em {
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--pink);
  background: var(--rose);
  font-style: normal;
  font-weight: 900;
}

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

.stat-money strong {
  display: block;
  margin: 8px 0 14px;
  color: var(--ink);
  font-size: 34px;
}

.order-history {
  margin-top: 18px;
}

.order-history-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
}

.order-history-head h3 {
  margin: 0;
}

.order-history-head span {
  color: var(--muted);
  line-height: 1.7;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
}

.order-history table {
  min-width: 840px;
}

.order-history td strong {
  color: var(--pink);
}

.order-row-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.order-row-actions .text-button {
  min-height: 30px;
  padding: 0 8px;
  font-size: 12px;
}

.muted-mini {
  color: #8b8092;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.code-list {
  display: grid;
  gap: 12px;
}

.code-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(240px, 330px) minmax(160px, 220px);
  align-items: center;
  gap: 14px;
  padding: 14px;
  border: 1px solid rgba(214, 142, 169, 0.18);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(255, 246, 249, 0.95), rgba(255, 255, 255, 0.86));
}

.code-card div:first-child {
  display: grid;
  gap: 4px;
}

.code-card span,
.code-card small {
  color: var(--muted);
  font-size: 12px;
}

.code-card b {
  color: var(--ink);
  font-size: 18px;
  letter-spacing: 0;
}

.code-card em {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(219, 91, 135, 0.1);
  color: var(--pink);
  font-style: normal;
  font-weight: 900;
  white-space: nowrap;
}

.code-card-next {
  min-height: 44px;
  padding: 10px 12px;
  display: grid;
  align-content: center;
  gap: 3px;
  border: 1px solid rgba(231, 199, 232, 0.86);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.code-card-next span {
  color: #8b7d92;
  font-size: 12px;
  font-weight: 900;
}

.code-card-next b {
  color: #e93c88;
  font-size: 14px;
}

.code-buy-guide {
  border-color: rgba(224, 202, 235, 0.86);
  background:
    linear-gradient(120deg, rgba(255, 250, 253, 0.98), rgba(248, 241, 255, 0.92)),
    #fff;
}

.code-buy-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.code-buy-steps article {
  min-height: 62px;
  padding: 10px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  border: 1px solid rgba(229, 209, 238, 0.86);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
}

.code-buy-steps b {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, #ff5596, #9d72ff);
  font-size: 12px;
}

.code-buy-steps span {
  color: #594862;
  font-size: 13px;
  font-weight: 900;
}

.code-picked-note {
  margin: 0 0 12px;
  color: #725f7d;
  line-height: 1.7;
}

.code-picked-note strong {
  color: #e93c88;
}

.warm-empty {
  min-height: 250px;
  background:
    linear-gradient(115deg, rgba(255, 250, 253, 0.96), rgba(248, 235, 255, 0.82)),
    #fff;
}

.arrangement-list,
.coupon-grid {
  display: grid;
  gap: 14px;
}

.arrangement-card {
  display: grid;
  gap: 12px;
  background:
    linear-gradient(135deg, rgba(255, 251, 253, 0.98), rgba(248, 242, 255, 0.94)),
    #fff;
}

.arrangement-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.arrangement-card-head span,
.arrangement-card-meta {
  color: var(--muted);
  font-size: 12px;
}

.arrangement-card-head h3 {
  margin: 5px 0 0;
}

.arrangement-card-head > b {
  padding: 6px 10px;
  border-radius: 999px;
  color: #8d416a;
  background: rgba(255, 221, 239, 0.72);
  white-space: nowrap;
}

.arrangement-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.arrangement-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.arrangement-card .primary {
  width: fit-content;
  min-width: 132px;
}

.arrangement-detail-page {
  display: grid;
  gap: 16px;
}

.arrangement-overview-panel,
.arrangement-template-panel {
  min-width: 0;
}

.arrangement-overview-head,
.arrangement-template-head {
  min-width: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.arrangement-overview-head h3,
.arrangement-template-head h3 {
  margin: 0;
}

.arrangement-overview-head p,
.arrangement-template-head p {
  margin: 4px 0 0;
  color: var(--muted);
}

.arrangement-summary-list {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 14px;
}

.arrangement-summary-list div {
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.arrangement-summary-list dt,
.arrangement-summary-list dd {
  margin: 0;
}

.arrangement-summary-list dt {
  color: var(--muted);
  font-size: 12px;
}

.arrangement-summary-list dd {
  margin-top: 4px;
  color: var(--ink);
  font-weight: 700;
}

.arrangement-template-panel {
  border-color: #dfe7f2;
  background: #fff;
}

.arrangement-template-panel.is-editing {
  border-color: #cde3ff;
  background: #f8fbff;
}

.arrangement-template-panel.is-submitted {
  border-color: #d7e9dc;
  background: #f7fcf8;
}

.arrangement-template-panel.is-locked {
  border-color: #eadfd3;
  background: #fffcf7;
}

.arrangement-template-status {
  flex: 0 0 auto;
  min-height: 26px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  color: #355271;
  background: #edf4fb;
  font-size: 12px;
  font-weight: 800;
}

.arrangement-template-status.is-editing {
  color: #245c8f;
  background: #e7f2ff;
}

.arrangement-template-status.is-locked {
  color: #8d6a38;
  background: #fff1d8;
}

.arrangement-template-form {
  display: grid;
  gap: 14px;
}

.arrangement-field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.arrangement-field {
  min-width: 0;
  display: grid;
  gap: 7px;
}

.arrangement-field span {
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}

.arrangement-field input,
.arrangement-field select,
.arrangement-field textarea {
  width: 100%;
  min-width: 0;
}

.arrangement-field textarea {
  min-height: 96px;
  resize: vertical;
}

.arrangement-field-wide {
  grid-column: 1 / -1;
}

.arrangement-submission-summary {
  display: grid;
  gap: 12px;
}

.arrangement-template-empty.compact-empty,
.compact-empty {
  padding: 12px 14px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: #fff;
}

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

.coupon-card {
  min-height: 168px;
  display: grid;
  align-content: space-between;
  gap: 12px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 92% 8%, rgba(255, 255, 255, 0.9), transparent 28%),
    linear-gradient(145deg, #fff4fb, #f4edff);
  text-align: left;
}

.coupon-card::after {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(204, 149, 214, 0.34);
  border-radius: 6px;
  pointer-events: none;
}

.coupon-card.selected {
  border-color: rgba(157, 114, 255, 0.5);
  background:
    radial-gradient(circle at 92% 8%, rgba(255, 255, 255, 0.92), transparent 28%),
    linear-gradient(145deg, #fff2fa, #efe7ff);
  box-shadow: 0 20px 46px rgba(118, 73, 166, 0.14);
}

.coupon-card.selected::after {
  border-color: rgba(248, 60, 131, 0.44);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.55);
}

.coupon-stamp {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(191, 122, 180, 0.5);
  border-radius: 50%;
  color: #9a4f83;
  background: rgba(255, 255, 255, 0.68);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0;
}

.coupon-card b,
.coupon-card p,
.coupon-card em {
  position: relative;
  z-index: 1;
}

.coupon-card b {
  color: #542d68;
  font-size: 22px;
}

.coupon-card p {
  margin: 4px 0 0;
  color: #7e6689;
  font-size: 12px;
}

.coupon-card em {
  width: fit-content;
  padding: 5px 9px;
  border-radius: 999px;
  color: #8d416a;
  background: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.coupon-card.selected em {
  color: #fff;
  background: linear-gradient(90deg, #ff5a98, #9d72ff);
}

.coupon-picked-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-color: rgba(157, 114, 255, 0.24);
  background:
    linear-gradient(135deg, rgba(255, 244, 251, 0.96), rgba(243, 236, 255, 0.94)),
    #fff;
}

.coupon-picked-note b {
  color: #5b2c6c;
}

.coupon-picked-note span {
  color: #806b8a;
  font-size: 13px;
  font-weight: 800;
}

.service-coupon-line {
  margin: 10px 0;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid rgba(224, 190, 235, 0.72);
  border-radius: 8px;
  color: #6d4a75;
  background: linear-gradient(135deg, rgba(255, 246, 252, 0.96), rgba(247, 239, 255, 0.9));
  font-size: 12px;
  font-weight: 900;
}

.service-coupon-line .text-button {
  min-height: 30px;
  padding: 0;
}

.service-coupon-picker {
  margin: 10px 0;
  overflow: hidden;
  border: 1px solid rgba(224, 190, 235, 0.72);
  border-radius: 8px;
  color: #6d4a75;
  background: linear-gradient(135deg, rgba(255, 246, 252, 0.98), rgba(247, 239, 255, 0.94));
}

.service-coupon-toggle {
  width: 100%;
  min-height: 58px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 0;
  color: inherit;
  background: transparent;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.service-coupon-toggle:hover {
  background: rgba(255, 255, 255, 0.55);
}

.service-coupon-toggle > span {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.service-coupon-toggle b {
  overflow-wrap: anywhere;
  color: #5b2c6c;
  font-size: 13px;
  font-weight: 900;
}

.service-coupon-toggle small {
  color: #8d7296;
  font-size: 11px;
  font-weight: 800;
}

.service-coupon-toggle > i {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(157, 114, 255, 0.22);
  border-radius: 50%;
  color: #8d5c9d;
  background: rgba(255, 255, 255, 0.7);
  font-size: 16px;
  font-style: normal;
  line-height: 1;
  transition: transform 0.18s ease;
}

.service-coupon-picker.is-open .service-coupon-toggle > i {
  transform: rotate(180deg);
}

.service-coupon-options {
  padding: 0 10px 10px;
  display: grid;
  gap: 7px;
  border-top: 1px solid rgba(224, 190, 235, 0.48);
}

.service-coupon-option {
  width: 100%;
  min-width: 0;
  min-height: 52px;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid rgba(224, 190, 235, 0.62);
  border-radius: 7px;
  color: #65456c;
  background: rgba(255, 255, 255, 0.82);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.service-coupon-option:hover:not(:disabled) {
  border-color: rgba(239, 101, 137, 0.48);
  background: #fff;
  box-shadow: 0 5px 14px rgba(157, 114, 255, 0.1);
}

.service-coupon-option > span {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.service-coupon-option b {
  overflow-wrap: anywhere;
  color: #5b2c6c;
  font-size: 12px;
  font-weight: 900;
}

.service-coupon-option small {
  overflow-wrap: anywhere;
  color: #967fa0;
  font-size: 11px;
  line-height: 1.35;
}

.service-coupon-option em {
  min-width: 48px;
  padding: 5px 7px;
  flex: 0 0 auto;
  border-radius: 999px;
  color: #94648d;
  background: #f8edf8;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
  text-align: center;
}

.service-coupon-option.is-selected {
  border-color: rgba(239, 101, 137, 0.62);
  background: #fff5fa;
}

.service-coupon-option.is-selected em {
  color: #fff;
  background: linear-gradient(90deg, #ff5a98, #9d72ff);
}

.service-coupon-option.is-used,
.service-coupon-option:disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

.service-coupon-line.is-empty {
  justify-content: flex-start;
}

@media (max-width: 480px) {
  .service-coupon-toggle {
    min-height: 54px;
    padding: 9px 10px;
  }

  .service-coupon-options {
    padding: 0 8px 8px;
  }

  .service-coupon-option {
    align-items: flex-start;
    padding: 9px;
  }

  .service-coupon-option em {
    margin-top: 1px;
  }
}

.form-panel {
  width: min(680px, 100%);
}

.profile-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 18px;
}

.profile-side {
  padding: 14px;
  display: grid;
  align-content: start;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.profile-side a {
  padding: 12px 14px;
  border-radius: var(--radius);
  font-weight: 900;
}

.profile-side .active {
  color: var(--pink);
  background: var(--rose);
}

.profile-avatar-panel {
  min-width: 0;
  padding-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid var(--line);
}

.profile-avatar-preview {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  flex: 0 0 76px;
  overflow: hidden;
  border-radius: 50%;
  color: var(--pink);
  background: #f4eaf0;
  font-size: 28px;
  font-weight: 900;
}

.profile-avatar-preview img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.profile-avatar-copy {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.profile-avatar-copy h2,
.profile-avatar-copy p,
.profile-avatar-copy small {
  margin: 0;
}

.profile-avatar-copy h2 {
  color: var(--ink);
  font-size: 16px;
}

.profile-avatar-copy p,
.profile-avatar-copy small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.profile-avatar-copy button {
  justify-self: start;
}

.notification-panel {
  width: min(760px, 100%);
  display: grid;
  gap: 16px;
  padding: 22px;
  border: 1px solid #ead8dd;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 18px 42px rgba(36, 14, 23, 0.05);
}

.notification-panel-head,
.notification-actions,
.notification-device > div,
.notification-steps article {
  display: flex;
  align-items: center;
}

.notification-panel-head {
  justify-content: space-between;
  gap: 16px;
}

.notification-panel-head h2,
.notification-device > b {
  margin: 0;
  color: var(--ink);
  font-size: 17px;
}

.notification-switch {
  width: 46px;
  height: 26px;
  flex: 0 0 auto;
  padding: 3px;
  border: 0;
  border-radius: 999px;
  background: #d8dce5;
  cursor: pointer;
  transition: background 0.18s ease;
}

.notification-switch span {
  width: 20px;
  height: 20px;
  display: block;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 5px rgba(27, 35, 52, 0.2);
  transition: transform 0.18s ease;
}

.notification-switch.is-on {
  background: var(--pink);
}

.notification-switch.is-on span {
  transform: translateX(20px);
}

.notification-switch:disabled {
  cursor: not-allowed;
  opacity: 0.56;
}

.notification-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.notification-steps article {
  min-width: 0;
  gap: 10px;
  padding: 13px;
  border: 1px solid #edf0f5;
  border-radius: 8px;
  background: #fafbfc;
}

.notification-steps article > b {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #6d7789;
  background: #edf0f5;
  font-size: 12px;
}

.notification-steps article > div {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.notification-steps strong,
.notification-steps span,
.notification-actions > span,
.notification-device em {
  overflow-wrap: anywhere;
}

.notification-steps strong {
  color: var(--ink);
  font-size: 13px;
}

.notification-steps span,
.notification-actions > span,
.notification-device em {
  color: #778196;
  font-size: 12px;
  font-style: normal;
  line-height: 1.5;
}

.notification-steps article.is-done {
  border-color: rgba(228, 62, 135, 0.24);
  background: #fff5fa;
}

.notification-steps article.is-done > b {
  color: #fff;
  background: var(--pink);
}

.notification-steps article.is-attention {
  border-color: rgba(194, 128, 20, 0.28);
  background: #fffaf0;
}

.notification-steps article.is-attention > b {
  color: #8c5a00;
  background: #ffe8af;
}

.notification-actions {
  flex-wrap: wrap;
  gap: 10px;
}

.notification-actions > span {
  flex: 1 1 220px;
}

.notification-device {
  display: grid;
  gap: 9px;
  padding-top: 15px;
  border-top: 1px solid #edf0f5;
}

.notification-device > div {
  justify-content: space-between;
  gap: 14px;
  color: #4f5d73;
  font-size: 13px;
}

@media (max-width: 760px) {
  .notification-panel {
    gap: 14px;
    padding: 16px;
  }

  .notification-steps {
    grid-template-columns: 1fr;
  }

  .notification-actions > .primary,
  .notification-actions > .ghost {
    flex: 1 1 140px;
  }
}

.chat-shell {
  max-width: 760px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow);
}

.thread-shell,
.support-shell {
  display: grid;
  grid-template-rows: auto minmax(280px, 48vh) auto;
}

.thread-shell.has-thread-tools {
  grid-template-rows: auto auto minmax(280px, 48vh) auto;
}

.chat-thread-tools {
  min-width: 0;
}

.chat-arrangement-panel {
  min-width: 0;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid var(--line);
  background: #fff8fb;
}

.chat-arrangement-panel > div:first-child {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.chat-arrangement-panel span,
.chat-arrangement-panel small {
  color: var(--muted);
  font-size: 12px;
}

.chat-arrangement-panel b {
  color: var(--ink);
}

.chat-arrangement-panel p {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 5px 14px;
  line-height: 1.55;
}

.chat-arrangement-panel p small {
  flex-basis: 100%;
}

.chat-arrangement-panel.is-started {
  background: #f2fbf7;
}

.chat-arrangement-panel.needs-action {
  background: #fff9f1;
}

.chat-arrangement-actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.chat-arrangement-actions button {
  white-space: nowrap;
}

.chat-followup-panel {
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.chat-followup-panel summary {
  padding: 11px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  list-style: none;
}

.chat-followup-panel summary::-webkit-details-marker {
  display: none;
}

.chat-followup-panel summary > span {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.chat-followup-panel summary small,
.chat-followup-panel summary em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.chat-followup-content {
  padding: 0 14px 14px;
  display: grid;
  gap: 12px;
  background: #fbfbfd;
}

.chat-followup-heading {
  padding-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.chat-followup-heading > div {
  display: grid;
  gap: 2px;
}

.chat-followup-heading span,
.chat-followup-heading small {
  color: var(--muted);
  font-size: 12px;
}

.chat-followup-content form {
  padding: 0;
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr) auto;
  align-items: end;
  gap: 10px;
  border: 0;
}

.chat-followup-content form label {
  min-width: 0;
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.chat-followup-content select,
.chat-followup-content input,
.chat-followup-content textarea {
  width: 100%;
}

.chat-followup-content textarea {
  min-height: 72px;
  resize: vertical;
}

.chat-followup-note {
  position: relative;
}

.chat-followup-note > small {
  position: absolute;
  right: 9px;
  bottom: 7px;
  color: var(--muted);
  font-size: 11px;
}

.chat-followup-custom[hidden] {
  display: none;
}

.chat-followup-content .form-message {
  grid-column: 1 / -1;
  margin: 0;
}

.chat-followup-list {
  display: grid;
  gap: 8px;
}

.chat-followup-list article {
  padding: 10px 12px;
  display: grid;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
}

.chat-followup-list article > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.chat-followup-list time,
.chat-followup-empty {
  color: var(--muted);
  font-size: 12px;
}

.chat-followup-list p,
.chat-followup-empty {
  margin: 0;
}

.chat-shell header,
.chat-shell footer,
.chat-shell form {
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--line);
}

.chat-shell footer,
.chat-shell form {
  border-top: 1px solid var(--line);
  border-bottom: 0;
}

.chat-body {
  min-height: 300px;
  padding: 20px;
  display: grid;
  align-content: start;
  gap: 12px;
  background: #f7f8fb;
}

.thread-shell .chat-body,
.support-shell .chat-body {
  min-height: 280px;
  max-height: 48vh;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.chat-bubble {
  max-width: 72%;
  justify-self: start;
  display: grid;
  gap: 5px;
}

.chat-bubble span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.chat-bubble p {
  margin: 0;
  padding: 11px 13px;
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  line-height: 1.65;
}

.chat-bubble.mine {
  justify-self: end;
}

.chat-bubble.mine p {
  color: #fff;
  background: linear-gradient(90deg, var(--pink), var(--coral));
  border-color: transparent;
}

.muted-line {
  color: var(--muted);
}

.manual-page {
  width: min(860px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 16px;
}

.manual-topline {
  min-height: 46px;
  padding: 8px 10px 8px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid rgba(223, 188, 221, 0.34);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(255, 248, 252, 0.96), rgba(248, 241, 255, 0.9));
  box-shadow: 0 14px 36px rgba(132, 72, 168, 0.05);
}

.manual-topline span {
  color: #a25a8b;
  font-size: 12px;
  font-weight: 900;
}

.manual-page > h1 {
  color: var(--ink);
  font-size: 34px;
}

.toc {
  margin: 22px 0;
  padding: 18px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  border-radius: var(--radius);
  border: 1px solid rgba(223, 188, 221, 0.34);
  background: linear-gradient(135deg, rgba(255, 247, 252, 0.98), rgba(245, 238, 255, 0.92));
  box-shadow: 0 18px 42px rgba(132, 72, 168, 0.05);
}

.toc b {
  color: #a25a8b;
}

.toc span {
  padding: 10px 12px;
  border: 1px solid rgba(223, 188, 221, 0.28);
  border-radius: var(--radius);
  color: #5e4869;
  background: rgba(255, 255, 255, 0.78);
  line-height: 1.6;
}

.manual-block {
  margin-top: 16px;
}

.manual-block h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
}

.manual-row {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.manual-row b {
  color: var(--pink);
}

.manual-intro {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 18px;
  align-items: start;
  border-color: rgba(223, 188, 221, 0.34);
  background:
    radial-gradient(circle at 92% 12%, rgba(255, 89, 157, 0.08), transparent 24%),
    linear-gradient(135deg, rgba(255, 249, 252, 0.98), rgba(246, 240, 255, 0.92)),
    #fff;
}

.manual-intro-copy {
  display: grid;
  gap: 12px;
}

.manual-intro-copy span {
  width: fit-content;
  min-height: 32px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  color: #8d416a;
  background: rgba(255, 222, 237, 0.72);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
}

.manual-intro-copy b {
  color: var(--ink);
  font-size: 20px;
}

.manual-intro-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.manual-intro-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.manual-intro-grid article {
  padding: 14px;
  display: grid;
  gap: 8px;
  border: 1px solid rgba(223, 188, 221, 0.3);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.8);
}

.manual-intro-grid b {
  color: #4f285f;
  font-size: 15px;
}

.manual-intro-grid span {
  color: var(--muted);
  line-height: 1.7;
}

.anti-loss-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr);
  gap: 18px;
  align-items: stretch;
  border-color: rgba(223, 188, 221, 0.34);
  background:
    radial-gradient(circle at 90% 8%, rgba(255, 89, 157, 0.1), transparent 24%),
    linear-gradient(135deg, rgba(255, 249, 252, 0.98), rgba(246, 240, 255, 0.92)),
    #fff;
}

.anti-loss-copy {
  display: grid;
  gap: 12px;
  align-content: start;
}

.anti-loss-copy p {
  margin: 0;
  color: #a25a8b;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.anti-loss-copy h3 {
  margin: 0;
  color: var(--ink);
  font-size: 24px;
  line-height: 1.32;
}

.anti-loss-copy span {
  color: var(--muted);
  line-height: 1.8;
}

.anti-loss-copy .copy-row {
  max-width: 680px;
}

.anti-loss-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.support-actions {
  margin-top: 18px;
}

.support-shell {
  width: 100%;
  max-width: none;
  height: min(760px, calc(100svh - 122px));
  min-height: 520px;
  position: relative;
  display: grid;
  grid-template-rows: 78px minmax(0, 1fr) 72px;
  overflow: hidden;
}

.support-shell > header {
  min-width: 0;
  padding: 12px 18px;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.support-shell > header > .avatar-tile {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: #fff;
  background: linear-gradient(135deg, #ec4e96, #a86be8);
  font-weight: 900;
}

.support-shell > header > div {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.support-shell > header > div b,
.support-shell > header > div p {
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.support-shell > header > div b {
  color: var(--ink);
  font-size: 16px;
}

.support-shell > header > div p {
  color: var(--muted);
  font-size: 12px;
}

.support-shell .chat-body {
  min-height: 0;
  padding: 20px 24px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.support-shell > form {
  height: 72px;
  min-height: 72px;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  overflow: visible;
  border-top: 1px solid var(--line);
  background: #fff;
}

.support-shell .chat-composer {
  height: 46px;
  position: relative;
  display: block;
}

.support-shell .chat-compose-row {
  height: 46px;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.support-shell .chat-compose-row textarea {
  height: 44px;
  min-height: 44px;
  max-height: 44px;
  padding: 11px 13px;
  resize: none;
  overflow-y: auto;
}

.support-shell .chat-compose-actions {
  height: 46px;
  gap: 7px;
}

.support-shell .chat-compose-actions .icon-button,
.support-shell .chat-send-button {
  width: 42px;
  height: 42px;
  min-height: 42px;
  padding: 0;
  display: grid;
  place-items: center;
  flex: 0 0 42px;
}

.support-shell .chat-send-button {
  border-radius: 50%;
}

.support-shell .chat-send-button .ui-icon {
  width: 19px;
  height: 19px;
}

.support-shell .chat-emoji-panel,
.support-shell .chat-attachment-list {
  position: absolute;
  z-index: 15;
  right: 0;
  bottom: calc(100% + 8px);
  box-shadow: 0 16px 38px rgba(31, 42, 66, 0.16);
}

.support-shell .chat-emoji-panel {
  width: min(360px, calc(100vw - 40px));
  max-height: 190px;
}

.support-shell .chat-attachment-list {
  left: 0;
  right: auto;
  max-width: calc(100% - 10px);
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

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

body.side-collapsed .dashboard {
  grid-template-columns: 76px minmax(0, 1fr);
}

body.side-collapsed .sidebar {
  padding-inline: 10px;
}

body.side-collapsed .brand-copy,
body.side-collapsed .user-chip div,
body.side-collapsed .side-menu span:not(.ui-icon) {
  display: none;
}

body.side-collapsed .side-menu a {
  justify-content: center;
}

body.side-collapsed .side-menu .ui-icon {
  display: inline-grid;
}

@keyframes topBarIn {
  from {
    opacity: 0;
    transform: translateY(-12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroPhotoIn {
  from {
    opacity: 0;
    transform: translate3d(-18px, 14px, 0) scale(0.985);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes copyIn {
  from {
    opacity: 0;
    transform: translate3d(18px, 12px, 0);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes softRise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Public information pages share one calm reading system so long-form content stays easy to scan. */
.public-content-page {
  min-height: 100vh;
  background: #fff;
}

.public-page-hero {
  padding: 76px 24px 70px;
  background: linear-gradient(135deg, #fff6fa 0%, #f8f1fb 52%, #fff 100%);
  border-bottom: 1px solid #f0e4ec;
}

.public-page-hero-inner {
  width: min(1120px, 100%);
  margin: 0 auto;
}

.public-breadcrumb { margin: 0 0 22px; color: #7d7180; font-size: 13px; text-align: center; }
.public-breadcrumb a { color: #8c7b86; text-decoration: none; }
.public-breadcrumb span { margin: 0 10px; color: #e15b92; }
.public-breadcrumb b { color: #253049; }

.public-page-hero .section-kicker {
  margin: 0 0 14px;
  color: #c33d7b;
  letter-spacing: .16em;
  text-align: center;
}

.public-page-hero h1 {
  max-width: 760px;
  margin: 0;
  color: #14213a;
  font-family: Georgia, "Noto Serif SC", serif;
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1.12;
  margin-inline: auto;
  text-align: center;
}

.public-page-hero p:not(.section-kicker) {
  max-width: 690px;
  margin: 22px 0 0;
  color: #697388;
  font-size: 17px;
  line-height: 1.9;
  margin-inline: auto;
  text-align: center;
}

.public-page-hero small {
  display: block;
  margin-top: 18px;
  color: #9a8093;
  text-align: center;
}

.public-reading-wrap {
  width: min(1080px, calc(100% - 48px));
  margin: 0 auto;
  padding: 54px 0 78px;
}

.public-reading {
  width: min(780px, 100%);
  margin: 0 auto;
}

.public-reading-section {
  padding: 0 0 34px;
  margin: 0 0 34px;
  border-bottom: 1px solid #eee9ef;
}

.public-reading-section h2,
.public-faq h2 {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin: 0 0 16px;
  color: #1d2840;
  font-size: 24px;
}

.public-reading-section h3 {
  margin: 22px 0 14px;
  color: #1d2840;
  font-size: 18px;
}

.public-reading-section.is-compact {
  padding-bottom: 18px;
  margin-bottom: 18px;
  border-bottom: 0;
}

.public-reading-section.is-compact p {
  padding-left: 28px;
  position: relative;
}

.public-reading-section.is-compact p::before {
  content: "";
  width: 5px;
  height: 5px;
  position: absolute;
  left: 10px;
  top: .72em;
  border-radius: 50%;
  background: #e65791;
}

.public-reading-section.is-case {
  padding: 26px 28px 18px;
  margin: 8px 0 38px;
  border: 1px solid #f5dce7;
  border-left: 4px solid #ef5a95;
  background: #fff8fb;
}

.public-reading-section.is-case h2 {
  color: #e65390;
  font-size: 16px;
  letter-spacing: .08em;
}

.public-reading-table-wrap {
  overflow-x: auto;
  border: 1px solid #f0e1e9;
  background: #fff;
}

.public-reading-table {
  width: 100%;
  min-width: 650px;
  border-collapse: collapse;
  color: #687287;
  font-size: 14px;
  line-height: 1.7;
}

.public-reading-table th,
.public-reading-table td {
  padding: 14px 16px;
  border-bottom: 1px solid #f0e1e9;
  text-align: left;
  vertical-align: top;
}

.public-reading-table th {
  color: #253049;
  background: #fff6fa;
  font-weight: 700;
}

.public-reading-table tr:last-child td { border-bottom: 0; }

.public-reading-section h2 span {
  color: #d65a91;
  font-family: Georgia, serif;
  font-size: 14px;
  letter-spacing: .08em;
}

.public-reading-section p,
.public-notice p,
.public-contact-form p,
.public-empty-page p {
  margin: 0 0 12px;
  color: #687287;
  line-height: 1.95;
}

.public-notice {
  width: min(780px, 100%);
  margin: 0 auto 34px;
  padding: 22px 24px;
  border: 1px solid #f0c9db;
  border-left: 4px solid #d94f8b;
  background: #fff8fb;
}

.public-notice b {
  display: block;
  margin-bottom: 8px;
  color: #9b315f;
  font-size: 17px;
}

.public-reading-intro {
  width: min(780px, 100%);
  margin: 0 auto 34px;
  color: #2b3344;
  font-size: 17px;
  line-height: 1.95;
}

.public-stat-strip {
  width: min(780px, 100%);
  margin: 0 auto 38px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid #ece1eb;
  background: #fff;
}

.public-stat-strip div {
  min-height: 102px;
  padding: 19px 16px;
  display: grid;
  align-content: center;
  gap: 7px;
  text-align: center;
}

.public-stat-strip div + div { border-left: 1px solid #ece1eb; }
.public-stat-strip b { color: #c6407e; font-size: 20px; }
.public-stat-strip span { color: #7d8495; font-size: 13px; }

.public-faq { margin-top: 50px; }
.public-faq details { border-top: 1px solid #eee9ef; }
.public-faq details p { white-space: pre-line; }
.public-page-actions { margin-top: 36px; display: flex; justify-content: center; }
.public-page-actions .primary { display: inline-flex; align-items: center; text-decoration: none; }

.public-beliefs {
  margin: 54px 0 62px;
}

.public-beliefs > h2 {
  margin: 0 0 28px;
  color: #1d2840;
  font-family: Georgia, "Noto Serif SC", serif;
  font-size: 30px;
}

.public-belief-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.public-belief-card {
  min-height: 320px;
  padding: 34px 30px 28px;
  border: 1px solid #f2dce8;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 12px 26px rgba(185, 65, 119, .03);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.public-belief-card:hover,
.public-belief-card.is-featured {
  transform: translateY(-4px);
  border-color: #f2a6c7;
  box-shadow: 0 18px 34px rgba(206, 58, 119, .12);
}

.public-belief-card > span {
  width: 60px;
  height: 60px;
  display: grid;
  place-items: center;
  margin-bottom: 52px;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, #ff4e89, #ff6870);
  box-shadow: 0 12px 22px rgba(248, 68, 128, .2);
  font-family: Georgia, serif;
  font-size: 18px;
  font-style: normal;
  font-weight: 700;
}

.public-belief-card h3 { margin: 0 0 12px; color: #222c42; font-family: Georgia, "Noto Serif SC", serif; font-size: 20px; }
.public-belief-card p { margin: 0; color: #6e7586; line-height: 1.85; }

.public-quote {
  margin: 46px 0 0;
  padding: 30px 32px 24px;
  border-left: 3px solid #ff4e89;
  background: linear-gradient(135deg, #fff9fc, #faf4fd);
}

.public-quote p { margin: 0; color: #28324a; font-family: Georgia, "Noto Serif SC", serif; font-size: 24px; font-style: italic; line-height: 1.7; }
.public-quote cite { display: block; margin-top: 18px; color: #9b8191; font-size: 14px; font-style: normal; text-align: right; }

.public-contact-grid {
  width: min(940px, 100%);
  margin: 0 auto 54px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.public-contact-card {
  min-height: 210px;
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  border: 1px solid #ece5ee;
  border-radius: 10px;
  color: inherit;
  text-decoration: none;
  background: #fff;
  box-shadow: 0 12px 28px rgba(55, 39, 74, .05);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.public-contact-card:hover { transform: translateY(-4px); border-color: #e7a7c6; box-shadow: 0 18px 34px rgba(150, 57, 111, .12); }
.public-contact-icon { width: 42px; height: 42px; margin-bottom: 22px; display: grid; place-items: center; color: #c8407e; border-radius: 50%; background: #fff0f6; }
.public-contact-icon .ui-icon { width: 21px; height: 21px; }
.public-contact-card b { color: #253049; font-size: 17px; }
.public-contact-card p { min-height: 52px; margin: 10px 0 14px; color: #7a8294; font-size: 13px; line-height: 1.7; }
.public-contact-card strong { margin-top: auto; color: #bc4279; font-size: 14px; word-break: break-word; }

.public-contact-form {
  width: min(940px, 100%);
  margin: 0 auto;
  padding: 34px;
  display: grid;
  grid-template-columns: minmax(220px, .8fr) minmax(0, 1.2fr);
  gap: 42px;
  border-top: 1px solid #eee7ef;
}

.public-contact-form h2 { margin: 10px 0 12px; color: #1f2b43; font-family: Georgia, "Noto Serif SC", serif; font-size: 30px; }
.public-contact-form form { display: grid; gap: 14px; }
.public-contact-form label { display: grid; gap: 7px; color: #5b6578; font-size: 13px; }
.public-contact-form input, .public-contact-form textarea { width: 100%; border: 1px solid #e2e5ec; border-radius: 6px; padding: 12px 14px; color: #202b42; background: #fff; font: inherit; outline: none; }
.public-contact-form input:focus, .public-contact-form textarea:focus { border-color: #d65a91; box-shadow: 0 0 0 3px rgba(214, 90, 145, .12); }
.public-contact-form textarea { min-height: 128px; resize: vertical; }
.public-contact-form button { justify-self: start; }

.public-empty-page { width: min(720px, 100%); margin: 0 auto; padding: 92px 0; text-align: center; }
.public-empty-page h1 { margin: 12px 0; color: #1d2942; font-family: Georgia, "Noto Serif SC", serif; font-size: 40px; }
.public-empty-page .primary { display: inline-flex; margin-top: 20px; text-decoration: none; }

.site-footer { grid-template-columns: minmax(0, 1.15fr) minmax(140px, .65fr) minmax(190px, .9fr); }

.public-page-fieldset { margin: 28px 0 0; padding: 24px; border: 1px solid #e6e4ec; border-radius: 8px; background: #fcfbfd; }
.public-page-fieldset legend { padding: 0 8px; color: #25314a; font-size: 18px; font-weight: 800; }
.public-page-fieldset legend span { margin-left: 8px; color: #ba4c80; font-size: 11px; font-weight: 500; }

@media (max-width: 720px) {
  .public-page-hero { padding: 52px 20px 48px; }
  .public-page-hero h1 { font-size: 40px; }
  .public-page-hero p:not(.section-kicker) { font-size: 15px; }
  .public-reading-wrap { width: min(100% - 32px, 620px); padding: 34px 0 52px; }
  .public-reading-section h2, .public-faq h2 { font-size: 20px; }
  .public-reading-section.is-case { padding: 20px 18px 12px; }
  .public-reading-table { min-width: 610px; font-size: 13px; }
  .public-stat-strip { grid-template-columns: 1fr; }
  .public-stat-strip div + div { border-left: 0; border-top: 1px solid #ece1eb; }
  .public-contact-grid { grid-template-columns: 1fr; gap: 12px; }
  .public-contact-card { min-height: 168px; }
  .public-contact-form { padding: 28px 0 0; grid-template-columns: 1fr; gap: 24px; }
  .public-page-fieldset { padding: 18px 14px; }
  .public-belief-grid { grid-template-columns: 1fr; }
  .public-belief-card { min-height: 0; }
  .public-belief-card > span { margin-bottom: 26px; }
  .public-quote { padding: 24px 20px 20px; }
  .public-quote p { font-size: 20px; }
  .site-footer { grid-template-columns: 1fr 1fr; gap: 32px 22px; }
  .site-footer-brand { grid-column: 1 / -1; }
  .site-footer-company { grid-column: 1 / -1; }
  .site-footer-bottom { grid-column: 1 / -1; align-items: flex-start; flex-direction: column; gap: 16px; }
}

@keyframes softPulse {
  0%,
  100% {
    transform: translateY(0) scale(1);
    box-shadow: 0 10px 28px rgba(248, 60, 131, 0.22);
  }

  50% {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 14px 34px rgba(248, 60, 131, 0.3);
  }
}

@keyframes quietFloat {
  0%,
  100% {
    transform: scale(1.015) translate3d(0, 0, 0);
  }

  50% {
    transform: scale(1.045) translate3d(-6px, -8px, 0);
  }
}

@keyframes quietGlow {
  0%,
  100% {
    box-shadow: 0 24px 78px rgba(61, 18, 29, 0.14);
  }

  50% {
    box-shadow: 0 30px 88px rgba(248, 60, 131, 0.18);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    scroll-behavior: auto !important;
    transition: none !important;
  }

  .hero-photo,
  .hero-photo img,
  .hero-copy,
  .feature-card {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* Stable role workspaces: keep the navigation and content density predictable. */
.dashboard {
  min-height: 100dvh;
}

.sidebar {
  height: 100dvh;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.dash-main {
  width: min(1280px, calc(100% - 56px));
  margin-top: 28px;
}

.broker-assigned-panel {
  margin: 0 0 18px;
  padding: 18px;
  border: 1px solid #d9e5f2;
  border-radius: var(--radius);
  background: #f8fbff;
}

.broker-assigned-panel > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.broker-assigned-panel > header span {
  color: #557091;
  font-size: 12px;
  font-weight: 900;
}

.broker-assigned-panel h2 {
  margin: 3px 0 0;
  color: var(--ink);
  font-size: 20px;
}

.broker-assigned-panel > header > b {
  color: #2368d8;
  font-size: 22px;
}

.broker-assigned-panel > p {
  margin: 8px 0 14px;
  color: var(--muted);
  line-height: 1.6;
}

.broker-assigned-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.broker-assigned-draft-card {
  box-shadow: none;
}

.broker-assigned-draft-card .draft-card-foot {
  align-items: center;
}

.broker-assigned-draft-card .draft-card-foot small {
  min-width: 0;
  color: var(--muted);
  line-height: 1.5;
}

.assigned-profile-layout {
  align-items: start;
}

@media (max-width: 1180px) and (min-width: 761px) {
  .dash-main {
    width: min(1120px, calc(100% - 40px));
  }
}

@media (max-width: 760px) {
  .dash-main {
    width: calc(100% - 24px);
    margin-top: 22px;
    margin-bottom: 42px;
  }

  .page-head,
  .catalog-head {
    margin-bottom: 16px;
  }

  .page-head h1,
  .catalog-head h1 {
    font-size: 26px;
    overflow-wrap: anywhere;
  }

  .page-head span {
    line-height: 1.6;
  }

  .broker-assigned-panel {
    padding: 14px;
  }

  .broker-assigned-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .broker-assigned-draft-card {
    padding: 14px;
  }

  .broker-assigned-draft-card .draft-card-foot {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
  }

  .register-page {
    min-height: 0;
    align-items: start;
    gap: 24px;
  }

  .register-intro {
    gap: 12px;
  }

  .register-intro h1 {
    font-size: 30px;
  }

  .register-card {
    padding: 20px 16px;
  }

  .role-choice-grid {
    gap: 8px;
  }

  .choice {
    min-height: 72px;
    padding: 12px;
  }

  .auth-fields {
    gap: 12px;
  }

  .email-verify-field,
  .email-verify-row {
    gap: 8px;
  }

  .thread-shell,
  .support-shell {
    height: calc(100svh - 92px);
    min-height: 430px;
    grid-template-rows: 66px minmax(0, 1fr) 66px;
    border-radius: 8px;
  }

  .support-shell > header {
    padding: 8px 10px;
    grid-template-columns: 32px minmax(0, 1fr) auto;
    gap: 8px;
  }

  .support-shell > header > .avatar-tile {
    width: 32px;
    height: 32px;
    border-radius: 8px;
  }

  .support-shell > header > div b {
    font-size: 14px;
  }

  .thread-shell .chat-body,
  .support-shell .chat-body {
    padding: 14px 12px;
  }

  .support-shell > form {
    height: 66px;
    min-height: 66px;
    padding: 10px;
  }

  .support-shell .chat-composer,
  .support-shell .chat-compose-row {
    height: 42px;
  }

  .support-shell .chat-compose-row textarea {
    height: 40px;
    min-height: 40px;
    max-height: 40px;
    padding: 9px 10px;
    font-size: 13px;
  }

  .support-shell .chat-compose-actions {
    height: 42px;
    gap: 4px;
  }

  .support-shell .chat-compose-actions .icon-button,
  .support-shell .chat-send-button {
    width: 36px;
    height: 36px;
    min-height: 36px;
    flex-basis: 36px;
  }

  .chat-bubble {
    max-width: 86%;
  }
}

@media (max-width: 1180px) {
  .hero-ref-inner {
    grid-template-columns: minmax(300px, 0.88fr) minmax(360px, 1fr);
    gap: 42px;
  }

  .hero-photo {
    min-height: 440px;
    max-height: 590px;
  }

  .feature-grid,
  .quick-grid,
  .stat-grid,
  .agent-hero-grid,
  .split-panels,
  .profile-grid,
  .draft-grid,
  .coupon-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .agent-hero {
    grid-template-columns: 1fr;
  }

  .agent-flow-panel {
    grid-template-columns: 1fr;
  }

  .agent-member-card,
  .broker-member-card {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .agent-member-card em,
  .agent-member-card button,
  .broker-member-card em,
  .broker-member-card button {
    grid-column: 1 / -1;
    width: 100%;
    justify-content: center;
  }

  .agent-flow-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .agent-flow-actions,
  .agent-flow-actions button {
    width: 100%;
  }

  .code-card {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .code-card .copy-row,
  .code-card-next {
    grid-column: 1 / -1;
  }

  .code-buy-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard {
    grid-template-columns: 76px minmax(0, 1fr);
  }

  .sidebar {
    padding-inline: 10px;
  }

  .side-brand .brand-copy,
  .user-chip div,
  .side-menu span:not(.ui-icon) {
    display: none;
  }

  .side-menu a {
    justify-content: center;
  }

  .side-menu .ui-icon {
    display: inline-grid;
  }

  .detail-layout,
  .checkout-layout,
  .about-layout,
  .auth-page,
  .register-page {
    grid-template-columns: 1fr;
  }

  .auth-stage,
  .register-intro {
    justify-self: start;
  }

  .auth-cover {
    width: min(440px, 100%);
  }

  .detail-side {
    position: static;
  }

  .detail-head-actions,
  .profile-card-actions {
    width: 100%;
    flex-wrap: wrap;
  }

  .profile-card-actions .primary.full {
    min-width: 0;
  }

  .favorite-summary {
    grid-template-columns: 1fr;
    align-items: start;
  }
}

@media (max-width: 760px) {
  body {
    font-size: 14px;
  }

  .public-inner {
    width: calc(100% - 28px);
    height: auto;
    min-height: 62px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px;
  }

  .brand-copy b {
    font-size: 18px;
  }

  .brand-copy small {
    display: none;
  }

  .public-nav {
    min-width: 0;
    justify-content: flex-end;
    gap: 8px;
    font-size: 12px;
  }

  .public-nav .nav-pill {
    min-height: 34px;
    padding: 0 12px;
  }

  .public-nav a:not(.nav-pill):nth-child(n + 2) {
    display: none;
  }

  .hero-ref {
    min-height: auto;
    padding: 36px 18px 46px;
  }

  .hero-ref-inner {
    width: 100%;
    min-width: 0;
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .hero-photo {
    width: 100%;
    min-width: 0;
    min-height: 360px;
    max-height: none;
    aspect-ratio: 0.88;
  }

  .hero-copy {
    width: 100%;
    min-width: 0;
  }

  .hero-copy h1 {
    margin: 18px 0 14px;
    font-size: 28px;
    overflow-wrap: anywhere;
  }

  .hero-lede {
    font-size: 15px;
    line-height: 1.9;
    overflow-wrap: anywhere;
  }

  .section-head h2 {
    font-size: 24px;
  }

  .split-lines,
  .feature-grid,
  .quick-grid,
  .agent-hero-grid,
  .split-panels,
  .profile-grid,
  .draft-grid,
  .draft-meta,
  .wallet-grid,
  .plan-grid,
  .principles,
  .detail-gallery,
  .toc,
  .profile-layout,
  .checkout-layout,
  .filter-panel {
    grid-template-columns: 1fr;
  }

  .stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .stat-card {
    min-height: 88px;
    padding: 14px;
  }

  .detail-info-grid {
    grid-template-columns: 1fr;
  }

  .filter-actions,
  .advanced-filter-grid {
    grid-template-columns: 1fr;
  }

  .order-history-head {
    align-items: start;
    flex-direction: column;
  }

  .advanced-filter-grid input {
    grid-column: auto;
  }

  .split-lines {
    gap: 20px;
    margin: 24px 0;
    padding: 20px 0;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .features-band,
  .about-band,
  .faq-band,
  .auth-page,
  .register-page {
    padding: 44px 18px;
  }

  .auth-cover {
    aspect-ratio: 425 / 648;
  }

  .auth-cover figcaption {
    left: 14px;
    right: 14px;
    bottom: 14px;
  }

  .auth-cover b {
    font-size: 19px;
  }

  .site-footer {
    grid-template-columns: 1fr;
    gap: 30px;
    padding-inline: 22px;
  }

  .site-footer-bottom { align-items: flex-start; flex-direction: column; gap: 16px; }

  .dashboard {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 30;
    width: 260px;
    transform: translateX(-100%);
    transition: transform 0.2s ease;
  }

  body.side-collapsed .sidebar {
    transform: translateX(0);
  }

  body.side-collapsed .dashboard {
    grid-template-columns: 1fr;
  }

  .dash-top {
    height: auto;
    min-height: 62px;
    grid-template-columns: 1fr auto;
    padding: 9px 14px;
  }

  .dash-top > .brand {
    display: none;
  }

  .account-pill b,
  .account-pill span:not(.avatar-tile),
  .account-pill i {
    display: none;
  }

  .dash-main {
    width: calc(100% - 28px);
    margin: 28px auto 58px;
  }

  .page-head h1,
  .catalog-head h1 {
    font-size: 28px;
  }

  .inline-head,
  .catalog-head,
  .membership-panel,
  .conversation-item,
  .row-between,
  .button-row,
  .copy-row,
  .search-row,
  .code-card,
  .bind-row {
    display: grid;
    grid-template-columns: 1fr;
  }

  .membership-panel {
    justify-items: start;
  }

  .role-choice-grid,
  .auth-fields {
    grid-template-columns: 1fr;
  }
}

/* Boss task center and auditable free-dating draw. */
@media (min-width: 1001px) {
  body:not(.side-collapsed) .boss-dashboard {
    grid-template-columns: 328px minmax(0, 1fr);
  }
}

.boss-sidebar {
  padding: 18px 16px 28px;
}

.boss-sidebar .side-brand {
  min-height: 64px;
  display: flex;
  align-items: center;
}

.boss-user-chip {
  min-height: 86px;
  padding: 15px;
  border-radius: 8px;
}

.boss-avatar {
  width: 48px;
  height: 48px;
}

.boss-side-menu {
  gap: 18px;
}

.boss-side-group {
  display: grid;
  gap: 6px;
}

.boss-side-group h2 {
  margin: 8px 12px 7px;
  color: #6f778a;
  font-size: 15px;
  line-height: 1.4;
}

.boss-side-group a {
  min-height: 48px;
  font-size: 15px;
}

.boss-side-chevron {
  margin-left: auto;
  color: #202b3d;
  font-size: 22px;
  font-style: normal;
  font-weight: 400;
}

body.side-collapsed .boss-side-group h2,
body.side-collapsed .boss-side-chevron {
  display: none;
}

.coupon-page-label h2,
.boss-task-section-title {
  margin: 0;
  color: #17233d;
  font-size: 22px;
}

.boss-task-page,
.boss-free-dating-page {
  width: min(1420px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 24px;
}

.boss-task-hero {
  min-height: 430px;
  padding: 40px 38px 32px;
  display: grid;
  align-content: start;
  gap: 24px;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(120deg, #101827, #102a2d);
  box-shadow: 0 20px 48px rgba(20, 31, 46, 0.18);
}

.boss-task-balance {
  display: grid;
  gap: 6px;
}

.boss-task-balance > span {
  color: #b1b8c5;
  font-size: 15px;
}

.boss-task-balance strong {
  color: #ffe2a2;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 64px;
  line-height: 1;
}

.boss-task-balance small {
  margin-left: 8px;
  color: #fff2cf;
  font-family: inherit;
  font-size: 20px;
}

.boss-task-wallet-note {
  min-height: 78px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid rgba(255, 193, 66, 0.42);
  border-radius: 8px;
  background: rgba(255, 193, 66, 0.1);
}

.boss-task-wallet-note .ui-icon {
  width: 27px;
  height: 27px;
  color: #ffc53d;
}

.boss-task-wallet-note div {
  display: grid;
  gap: 3px;
}

.boss-task-wallet-note b {
  color: #ffc94f;
  font-size: 17px;
}

.boss-task-wallet-note span {
  color: #adb6c4;
}

.boss-task-stats {
  width: min(650px, 100%);
  padding-top: 20px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.boss-task-stats div {
  display: grid;
  gap: 6px;
}

.boss-task-stats b {
  color: #fff;
  font-size: 23px;
}

.boss-task-stats span {
  color: #aeb6c3;
  font-size: 13px;
}

.boss-task-cta {
  width: fit-content;
  min-height: 52px;
  padding: 0 24px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border-radius: 999px;
  color: #181d27;
  background: #ffc84d;
  font-size: 16px;
  font-weight: 900;
}

.boss-task-reward {
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
}

.boss-task-reward > div:not(.boss-task-empty) {
  display: grid;
  justify-items: center;
  gap: 8px;
  text-align: center;
}

.boss-task-reward > div > span .ui-icon {
  width: 36px;
  height: 36px;
  color: var(--pink);
}

.boss-task-reward p,
.boss-task-empty p {
  margin: 0;
  color: #70809a;
  line-height: 1.75;
}

.boss-task-empty {
  display: grid;
  justify-items: center;
  gap: 10px;
  text-align: center;
}

.boss-task-empty > span {
  font-size: 34px;
}

.boss-task-rule {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) repeat(3, minmax(0, 1fr));
  align-items: center;
  gap: 12px;
}

.boss-task-rule h2 {
  margin: 0;
  font-size: 20px;
}

.boss-task-rule div {
  min-height: 70px;
  padding: 12px;
  display: grid;
  align-content: center;
  gap: 4px;
  border-left: 2px solid #ffc84d;
}

.boss-task-rule span {
  color: #768198;
  font-size: 13px;
}

.boss-free-hero {
  min-height: 405px;
  padding: 48px 40px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(245px, 0.7fr) 150px;
  gap: 36px;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(118deg, #111827, #18233b 68%, #37212d);
  box-shadow: 0 24px 54px rgba(17, 24, 39, 0.22);
}

.boss-free-hero-copy {
  min-width: 0;
}

.boss-free-hero h1 {
  margin: 0;
  color: #ffbd16;
  font-size: 44px;
  line-height: 1.2;
}

.boss-free-hero-copy > p {
  margin: 10px 0 18px;
  color: #d9deea;
  font-size: 17px;
  line-height: 1.7;
}

.boss-free-hero-copy > span {
  width: fit-content;
  min-height: 38px;
  padding: 0 17px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(90deg, #ef3d24, #f5a400);
  box-shadow: 0 10px 24px rgba(239, 76, 31, 0.22);
  font-weight: 900;
}

.boss-free-metrics {
  margin-top: 30px;
  display: flex;
  gap: 14px;
}

.boss-free-metrics div {
  min-width: 112px;
  min-height: 78px;
  padding: 12px 14px;
  display: grid;
  align-content: center;
  gap: 4px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.boss-free-metrics b {
  color: #fff;
  font-size: 27px;
  line-height: 1;
}

.boss-free-metrics small {
  color: #aeb6c5;
  font-size: 14px;
}

.boss-free-metrics span,
.boss-free-hero-copy > small {
  color: #aeb6c5;
  font-size: 12px;
}

.boss-free-draw-stage {
  min-width: 0;
  min-height: 248px;
  padding: 24px 22px;
  align-self: center;
  display: grid;
  align-content: center;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.boss-free-draw-stage-head,
.boss-free-draw-foot,
.boss-free-draw-meta {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.boss-free-draw-stage-head span,
.boss-free-draw-meta span,
.boss-free-draw-foot span {
  color: #aeb6c5;
  font-size: 12px;
}

.boss-free-draw-stage-head b {
  color: #ffca18;
  font-size: 11px;
  font-weight: 900;
}

.boss-free-draw-number {
  min-height: 82px;
  display: grid;
  place-items: center;
  color: #ffca18;
  font-size: 68px;
  font-weight: 950;
  line-height: 1;
  text-shadow: 0 8px 24px rgba(255, 183, 0, 0.2);
}

.boss-free-draw-number.is-waiting {
  color: #fff;
}

.boss-free-draw-status {
  color: #fff;
  font-size: 14px;
  text-align: center;
}

.boss-free-draw-meta {
  padding-top: 3px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.boss-free-draw-meta b {
  min-width: 0;
  overflow: hidden;
  color: #d9deea;
  font-size: 11px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.boss-free-draw-track {
  height: 4px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.boss-free-draw-track i {
  height: 100%;
  display: block;
  border-radius: inherit;
  background: #ffb510;
}

.boss-free-draw-foot span:last-child {
  color: #ffca18;
  font-weight: 900;
}

.boss-free-progress {
  width: min(430px, 100%);
  height: 8px;
  margin: 20px 0 7px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.boss-free-progress i {
  height: 100%;
  display: block;
  border-radius: inherit;
  background: linear-gradient(90deg, #ef4425, #ffb510);
}

.boss-free-points {
  min-height: 120px;
  padding: 20px 14px;
  align-self: start;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 7px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.boss-free-points b {
  color: #ffca18;
  font-size: 42px;
  line-height: 1;
}

.boss-free-points span {
  color: #c6cbd6;
  font-size: 12px;
}

.boss-free-points button {
  padding: 0;
  color: #ffca18;
  background: transparent;
  font-size: 12px;
}

.boss-free-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.42fr) minmax(360px, 0.98fr);
  gap: 28px;
  align-items: start;
}

.boss-free-main {
  min-width: 0;
  display: grid;
  gap: 22px;
}

.boss-free-alert {
  min-height: 64px;
  padding: 12px 18px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  border: 1px solid #ffd45d;
  border-radius: 8px;
  background: #fffbee;
}

.boss-free-alert p {
  margin: 0;
  color: #b64c12;
  line-height: 1.65;
}

.boss-free-alert .primary {
  min-height: 40px;
  white-space: nowrap;
}

.boss-free-slots-panel,
.boss-free-rules,
.boss-free-history,
.boss-free-my-entries {
  overflow: hidden;
  border: 1px solid #e7e9ee;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(31, 42, 66, 0.06);
}

.boss-free-slots-panel > header,
.boss-free-rules > h2,
.boss-free-history > h2,
.boss-free-my-entries > h2 {
  min-height: 62px;
  margin: 0;
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid #eceef2;
  color: #111a2c;
  font-size: 18px;
}

.boss-free-slots-panel > header h2 {
  margin: 0;
  font-size: 18px;
}

.boss-free-slots-panel > header span {
  color: #7b8496;
  font-size: 13px;
}

.boss-free-slot-grid {
  padding: 22px;
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 8px;
}

.boss-free-slot {
  width: 100%;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px solid #e8eaef;
  border-radius: 8px;
  color: #a1a7b3;
  background: #fafbfc;
  font-size: 12px;
  font-weight: 900;
}

.boss-free-slot.is-occupied {
  border-color: #ff9b18;
  color: #d75e2b;
  background: #fff0e7;
}

.boss-free-slot.is-mine {
  border-color: #f05a21;
  color: #fff;
  background: linear-gradient(135deg, #ed3d24, #ff9d13);
}

.boss-free-slot.is-winner {
  border-color: #efb900;
  color: #6d4a00;
  background: #ffc21a;
  box-shadow: 0 0 0 3px rgba(255, 194, 26, 0.2);
}

.boss-free-legend {
  padding: 0 22px 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  color: #626d82;
  font-size: 12px;
}

.boss-free-legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.boss-free-legend span::before {
  width: 16px;
  height: 16px;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  content: "";
  background: #fafbfc;
}

.boss-free-legend .is-mine::before { border-color: #f05a21; background: linear-gradient(135deg, #ed3d24, #ff9d13); }
.boss-free-legend .is-occupied::before { border-color: #ff9b18; background: #fff0e7; }
.boss-free-legend .is-winner::before { border-color: #efb900; background: #ffc21a; }

.boss-free-rules {
  min-width: 0;
}

.boss-free-rules > section {
  margin: 0 24px;
  padding: 24px 0;
  border-bottom: 1px solid #edf0f4;
}

.boss-free-rules > section:last-child {
  border-bottom: 0;
}

.boss-free-rules h3 {
  margin: 0 0 13px;
  color: #ef5a16;
  font-size: 16px;
}

.boss-free-rules p {
  margin: 7px 0;
  color: #20293b;
  line-height: 1.75;
}

.boss-free-rules .boss-free-prize {
  margin: 20px 24px 0;
  padding: 18px 20px;
  border: 1px solid #f2a700;
  border-left: 5px solid #f2a700;
  border-radius: 8px;
  background: #fff9e8;
}

.boss-free-prize h3 {
  color: #b76700;
}

.boss-free-prize p b,
.boss-free-rules p b {
  color: #10182a;
}

.boss-free-history-table {
  min-width: 720px;
}

.boss-free-history {
  overflow-x: auto;
}

.boss-free-history-head,
.boss-free-history-row {
  min-height: 54px;
  padding: 0 18px;
  display: grid;
  grid-template-columns: 1.3fr 1fr 0.8fr 0.55fr;
  align-items: center;
  gap: 12px;
}

.boss-free-history-head {
  color: #536079;
  background: #f6f8fb;
  font-weight: 900;
}

.boss-free-history-row {
  border-top: 1px solid #eceef2;
}

.boss-free-history-row strong {
  color: #ee3156;
}

.boss-free-entry-list {
  padding: 18px;
  display: grid;
  gap: 10px;
}

.boss-free-entry-list article {
  min-height: 68px;
  padding: 12px 14px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 14px;
  border: 1px solid #eceef2;
  border-radius: 8px;
}

.boss-free-entry-list article > div {
  display: grid;
  gap: 4px;
}

.boss-free-entry-list span,
.boss-free-entry-list em {
  color: #7b8496;
  font-size: 12px;
  font-style: normal;
}

.boss-free-entry-list strong {
  color: #e65a1c;
  font-size: 20px;
}

.boss-free-entry-list strong.is-winner {
  color: #c39200;
}

.boss-free-empty {
  min-height: 180px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  color: #9aa2b2;
  text-align: center;
}

.boss-free-empty span {
  font-size: 32px;
}

@media (max-width: 1180px) {
  .boss-free-hero {
    grid-template-columns: minmax(0, 1fr) minmax(220px, 0.72fr) 132px;
    gap: 20px;
    padding-inline: 28px;
  }

  .boss-free-layout {
    grid-template-columns: 1fr;
  }

  .boss-free-rules {
    order: 2;
  }
}

@media (max-width: 760px) {
  .boss-sidebar {
    width: min(286px, 86vw);
  }

  .boss-task-page,
  .boss-free-dating-page {
    gap: 16px;
  }

  .boss-task-hero {
    min-height: 0;
    padding: 25px 20px;
    gap: 18px;
  }

  .boss-task-balance strong {
    font-size: 50px;
  }

  .boss-task-stats {
    gap: 10px;
  }

  .boss-task-stats b {
    font-size: 20px;
  }

  .boss-task-cta,
  .boss-task-reward .primary {
    width: 100%;
    justify-content: center;
  }

  .boss-task-reward {
    min-height: 190px;
    padding: 20px 16px;
    align-items: stretch;
    flex-direction: column;
  }

  .boss-task-rule {
    grid-template-columns: 1fr;
  }

  .boss-free-hero {
    min-height: 0;
    padding: 27px 20px;
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .boss-free-draw-stage {
    min-height: 0;
    padding: 20px 16px;
  }

  .boss-free-draw-number {
    min-height: 68px;
    font-size: 54px;
  }

  .boss-free-hero h1 {
    font-size: 31px;
  }

  .boss-free-hero-copy > p {
    font-size: 14px;
  }

  .boss-free-hero-copy > span {
    min-height: 34px;
    padding: 7px 12px;
    border-radius: 8px;
    font-size: 12px;
  }

  .boss-free-metrics {
    margin-top: 20px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
  }

  .boss-free-metrics div {
    min-width: 0;
    min-height: 72px;
    padding: 10px 8px;
  }

  .boss-free-metrics b {
    font-size: 22px;
  }

  .boss-free-points {
    min-height: 100px;
    grid-template-columns: auto auto;
    justify-content: center;
    column-gap: 10px;
  }

  .boss-free-points b {
    font-size: 36px;
  }

  .boss-free-points button {
    grid-column: 1 / -1;
  }

  .boss-free-alert {
    grid-template-columns: auto minmax(0, 1fr);
    padding: 12px;
  }

  .boss-free-alert .primary {
    grid-column: 1 / -1;
    width: 100%;
  }

  .boss-free-slots-panel > header,
  .boss-free-rules > h2,
  .boss-free-history > h2,
  .boss-free-my-entries > h2 {
    min-height: 54px;
    padding: 0 15px;
    font-size: 16px;
  }

  .boss-free-slots-panel > header h2 {
    font-size: 15px;
  }

  .boss-free-slot-grid {
    padding: 14px;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 6px;
  }

  .boss-free-slot {
    border-radius: 6px;
    font-size: 11px;
  }

  .boss-free-legend {
    padding: 0 14px 15px;
    gap: 9px 12px;
  }

  .boss-free-rules > section {
    margin: 0 16px;
    padding: 20px 0;
  }

  .boss-free-rules .boss-free-prize {
    margin: 15px 16px 0;
    padding: 15px;
  }

  .boss-free-entry-list {
    padding: 12px;
  }

  .boss-free-entry-list article {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .boss-free-entry-list em {
    grid-column: 1 / -1;
  }
}

/* Final public-home sizing: shared content, separate desktop and mobile rhythm. */
@media (min-width: 761px) {
  .hero-cinematic {
    min-height: min(660px, calc(100svh - 64px));
    padding: 38px 28px 42px;
    place-items: center;
  }

  .hero-cinematic::after {
    top: 22px;
    height: calc(100% - 44px);
  }

  .hero-cinematic .hero-ref-inner {
    min-height: 520px;
  }

  .hero-cinematic .hero-copy {
    width: min(680px, 52vw);
  }

  .hero-cinematic .kicker {
    font-size: 16px;
  }

  .hero-statement {
    margin: 3px 0 14px;
    gap: 3px;
    font-size: 23px;
  }

  .hero-cinematic .hero-lede {
    max-width: 620px;
    font-size: 17px;
    line-height: 1.78;
  }

  .hero-cinematic .split-lines {
    width: min(620px, 100%);
    gap: 24px;
    margin: 19px 0;
    padding: 15px 0;
  }

  .hero-cinematic .split-lines div {
    gap: 7px;
  }

  .hero-cinematic .split-lines span {
    font-size: 15px;
  }

  .hero-cinematic .split-lines strong {
    font-size: 19px;
  }

  .features-band {
    padding-top: 54px;
    padding-bottom: 46px;
  }

  .feature-grid {
    margin-top: 38px;
    gap: 42px;
  }

  .feature-card {
    min-height: 0;
  }

  .feature-card::before {
    margin-bottom: 20px;
  }

  .feature-card h3 {
    margin: 20px 0 10px;
  }

  .faq-band {
    padding: 52px 24px 34px;
  }

  .faq-band .section-head h2 {
    margin-top: 0;
    font-size: 42px;
  }

  .faq-list {
    height: 320px;
    margin-top: 30px;
  }

  .faq-list summary {
    min-height: 64px;
    font-size: 18px;
  }

  .faq-list details > p {
    margin: -2px 0 20px;
    padding: 0 64px 2px 0;
    font-size: 16px;
    line-height: 1.85;
  }
}

.faq-list details[open] summary span {
  color: var(--pink);
}

.faq-list details[open] summary b {
  color: var(--pink);
}

@media (max-width: 760px) {
  .features-band,
  .about-band,
  .faq-band {
    padding: 34px 18px 30px;
  }

  .features-band .section-head h2 {
    margin-top: 10px;
    font-size: 25px;
    line-height: 1.35;
  }

  .feature-grid {
    margin-top: 28px;
    gap: 30px;
  }

  .feature-card {
    min-height: 0;
    padding: 0;
  }

  .feature-card::before {
    width: 44px;
    margin-bottom: 15px;
  }

  .feature-card span {
    font-size: 38px;
  }

  .feature-card h3 {
    margin: 14px 0 8px;
    font-size: 20px;
  }

  .feature-card p {
    margin: 0;
    font-size: 14px;
    line-height: 1.72;
  }

  .about-story .section-head h2 {
    margin-top: 14px;
  }

  .about-story-layout {
    margin-top: 28px;
    gap: 24px;
  }

  .about-poster,
  .about-poster img {
    min-height: 0;
  }

  .about-story-copy blockquote {
    margin: 20px 0;
  }

  .about-values {
    margin-top: 24px;
  }

  .about-footnote {
    margin-top: 20px;
  }

  .faq-band .section-head h2 {
    margin-top: 0;
    font-size: 30px;
  }

  .faq-list {
    height: 300px;
    margin-top: 24px;
  }

  .faq-list details,
  .faq-list summary {
    min-height: 56px;
  }

  .faq-list summary {
    font-size: 15px;
  }

  .faq-list details > p {
    margin: -2px 0 16px;
    padding: 0 34px 0 0;
    font-size: 14px;
    line-height: 1.75;
  }
}

/* FAQ reference layout: closed rows stay compact; opening only reveals that answer. */
.faq-band .faq-list {
  height: auto;
  min-height: 0;
  overflow: visible;
  overscroll-behavior: auto;
  scrollbar-gutter: auto;
}

.faq-band .faq-list details {
  min-height: 0;
  border-top: 0;
  border-bottom: 1px solid #f1dce7;
  background: transparent;
}

.faq-band .faq-list summary {
  min-height: 64px;
  padding: 0 0;
  color: var(--ink);
  font-size: 18px;
}

.faq-band .faq-list summary span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.faq-band .faq-list summary b {
  width: 18px;
  flex: 0 0 18px;
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
  text-align: center;
}

.faq-band .faq-list details > p {
  max-width: 780px;
  margin: 0 0 22px;
  padding: 0 40px 0 0;
  color: #48566e;
  font-size: 16px;
  line-height: 1.85;
  white-space: pre-line;
}

.faq-band .faq-list details[open] summary {
  color: var(--pink);
}

@media (max-width: 760px) {
  .faq-band .faq-list {
    margin-top: 24px;
  }

  .faq-band .faq-list summary {
    min-height: 56px;
    gap: 12px;
    font-size: 15px;
  }

  .faq-band .faq-list summary b {
    width: 16px;
    flex-basis: 16px;
    font-size: 20px;
  }

  .faq-band .faq-list details > p {
    max-width: none;
    margin: 0 0 16px;
    padding: 0;
    font-size: 14px;
    line-height: 1.75;
  }
}

/* Keep the registration reference overrides after the legacy responsive rules. */
.register-reference-page {
  min-height: 0;
  display: block;
  padding: 0;
  background: #fff;
}

.register-reference-card {
  width: 100%;
  max-width: none;
  padding: 36px;
}

.register-reference-card .register-role-choice-grid {
  grid-template-columns: 1fr;
}

@media (max-width: 760px) {
  .register-reference-page {
    min-height: 0;
    display: block;
    padding: 0;
  }

  .register-reference-card {
    width: 100%;
    padding: 24px 18px;
  }

  .register-reference-card .register-role-choice-grid {
    grid-template-columns: 1fr;
  }
}

/* FINAL-ROLE-DENSITY-R1 */
.dashboard {
  min-height: 100dvh;
}

.sidebar {
  height: 100dvh;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.dash-main {
  width: min(1280px, calc(100% - 56px));
  margin-top: 28px;
}

.broker-assigned-panel {
  margin: 0 0 18px;
  padding: 18px;
  border: 1px solid #d9e5f2;
  border-radius: var(--radius);
  background: #f8fbff;
}

.broker-assigned-panel > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.broker-assigned-panel > header span {
  color: #557091;
  font-size: 12px;
  font-weight: 900;
}

.broker-assigned-panel h2 {
  margin: 3px 0 0;
  color: var(--ink);
  font-size: 20px;
}

.broker-assigned-panel > header > b {
  color: #2368d8;
  font-size: 22px;
}

.broker-assigned-panel > p {
  margin: 8px 0 14px;
  color: var(--muted);
  line-height: 1.6;
}

.broker-assigned-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.broker-assigned-draft-card {
  box-shadow: none;
}

.broker-assigned-draft-card .draft-card-foot {
  align-items: center;
}

.broker-assigned-draft-card .draft-card-foot small {
  min-width: 0;
  color: var(--muted);
  line-height: 1.5;
}

@media (max-width: 1180px) and (min-width: 761px) {
  .dash-main {
    width: min(1120px, calc(100% - 40px));
  }
}

@media (max-width: 760px) {
  .dash-main {
    width: calc(100% - 24px);
    margin-top: 22px;
    margin-bottom: 42px;
  }

  .page-head,
  .catalog-head {
    margin-bottom: 16px;
  }

  .page-head h1,
  .catalog-head h1 {
    font-size: 26px;
    overflow-wrap: anywhere;
  }

  .page-head span {
    line-height: 1.6;
  }

  .broker-assigned-panel {
    padding: 14px;
  }

  .broker-assigned-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .broker-assigned-draft-card {
    padding: 14px;
  }

  .broker-assigned-draft-card .draft-card-foot {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
  }

  .register-page {
    min-height: 0;
    align-items: start;
    gap: 24px;
  }

  .register-card {
    padding: 20px 16px;
  }

  .choice {
    min-height: 72px;
    padding: 12px;
  }

  .thread-shell,
  .support-shell {
    height: calc(100svh - 92px);
    min-height: 430px;
    grid-template-rows: 66px minmax(0, 1fr) 66px;
    border-radius: 8px;
  }

  .support-shell > header {
    padding: 8px 10px;
    grid-template-columns: 32px minmax(0, 1fr) auto;
    gap: 8px;
  }

  .support-shell > header > .avatar-tile {
    width: 32px;
    height: 32px;
    border-radius: 8px;
  }

  .support-shell > header > div b {
    font-size: 14px;
  }

  .thread-shell .chat-body,
  .support-shell .chat-body {
    padding: 14px 12px;
  }

  .support-shell > form {
    height: 66px;
    min-height: 66px;
    padding: 10px;
  }

  .support-shell .chat-composer,
  .support-shell .chat-compose-row {
    height: 42px;
  }

  .support-shell .chat-compose-row textarea {
    height: 40px;
    min-height: 40px;
    max-height: 40px;
    padding: 9px 10px;
    font-size: 13px;
  }

  .support-shell .chat-compose-actions {
    height: 42px;
    gap: 4px;
  }

  .support-shell .chat-compose-actions .icon-button,
  .support-shell .chat-send-button {
    width: 36px;
    height: 36px;
    min-height: 36px;
    flex-basis: 36px;
  }

  .chat-bubble {
    max-width: 86%;
  }
}

/* Agent reference pages: compact layout from the supplied portal screenshots. */
.dashboard[data-role="agent"] .dash-main {
  width: min(1520px, calc(100% - 48px));
  margin-top: 30px;
}

.agent-reference-home,
.agent-reference-page {
  width: 100%;
  display: grid;
  gap: 18px;
}

.agent-reference-breadcrumb,
.agent-page-toolbar > div {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #557091;
  font-size: 16px;
}

.agent-reference-breadcrumb .ui-icon,
.agent-page-toolbar .ui-icon {
  width: 20px;
  height: 20px;
  color: #6b7e9e;
}

.agent-home-summary {
  width: min(1040px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  gap: 28px;
}

.agent-home-balance-card,
.agent-home-code-card {
  min-width: 0;
  min-height: 178px;
  padding: 28px 30px;
  display: grid;
  align-content: space-between;
  gap: 24px;
  border: 1px solid #ffd9d5;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 15px 28px rgba(39, 45, 71, 0.09);
}

.agent-home-card-heading {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #385376;
}

.agent-home-card-heading > span {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  color: var(--pink);
}

.agent-home-card-heading > span .ui-icon {
  width: 32px;
  height: 32px;
}

.agent-home-card-heading b {
  color: #385376;
  font-size: 18px;
  font-weight: 500;
}

.agent-home-card-heading > strong {
  margin-left: auto;
  color: var(--pink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 42px;
  font-weight: 500;
  line-height: 1;
}

.agent-home-card-heading > .text-link {
  margin-left: auto;
  color: #385376;
  font-size: 15px;
  font-weight: 500;
}

.agent-home-card-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.agent-home-card-actions .primary,
.agent-buy-balance .primary {
  min-height: 40px;
  padding-inline: 20px;
  border-radius: 999px;
  background: linear-gradient(135deg, #6546d8, #53679b);
}

.agent-home-card-actions .text-link {
  margin-left: auto;
  color: #385376;
  font-weight: 500;
}

.agent-home-code-counts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  text-align: center;
}

.agent-home-code-counts span {
  display: grid;
  gap: 8px;
}

.agent-home-code-counts small {
  color: #77829a;
  font-size: 13px;
  line-height: 1.35;
}

.agent-home-code-counts b {
  color: #ffb500;
  font-size: 25px;
  font-weight: 700;
}

.agent-home-manual {
  width: min(1040px, 100%);
  min-height: 74px;
  padding: 0 24px;
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(100deg, #67448a, #52679e);
  font-size: 21px;
  font-weight: 500;
  text-align: center;
}

.agent-home-notice {
  width: min(1520px, 100%);
  min-height: 180px;
  padding: 28px 30px;
  border-color: #ffd9d5;
  box-shadow: 0 15px 28px rgba(39, 45, 71, 0.09);
}

.agent-home-notice h2 {
  margin: 0 0 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #385376;
  font-size: 22px;
  font-weight: 500;
}

.agent-home-notice h2 .ui-icon {
  width: 28px;
  height: 28px;
  color: var(--pink);
}

.agent-home-notice > div {
  padding: 12px 18px;
  border: 1px solid #dce4ef;
  border-radius: 8px;
  color: #385376;
  background: #fff;
}

.agent-home-notice p {
  margin: 0;
  line-height: 1.8;
}

.agent-home-notice p + p {
  margin-top: 5px;
}

.agent-page-toolbar {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.agent-page-toolbar h1 {
  margin: 0;
  color: #385376;
  font-size: 20px;
  font-weight: 500;
}

.agent-outline-button {
  min-height: 44px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid #dce4ef;
  border-radius: 8px;
  color: #17233d;
  background: #fff;
  font-size: 15px;
  font-weight: 500;
}

.agent-outline-button .ui-icon {
  width: 18px;
  height: 18px;
}

.agent-code-filter {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr) auto auto;
  gap: 18px;
  align-items: center;
}

.agent-code-filter input,
.agent-code-filter select {
  min-width: 0;
  min-height: 52px;
  border-color: #dce4ef;
  border-radius: 8px;
  color: #385376;
  background: #fff;
}

.agent-code-filter .primary {
  min-height: 52px;
  padding-inline: 26px;
  border-radius: 8px;
  background: linear-gradient(135deg, #ff6659, #f83c83);
}

.agent-code-filter .text-link {
  padding-inline: 8px;
  color: var(--pink);
  font-size: 16px;
}

.agent-code-page > .code-list,
.agent-code-page > .agent-empty-panel {
  min-height: 360px;
}

.agent-empty-panel {
  display: grid;
  place-items: center;
}

.agent-empty-panel .empty-state {
  margin: 0;
}

.agent-code-page .code-card {
  grid-template-columns: minmax(0, 1fr) auto;
  border-color: #dce4ef;
  border-radius: 8px;
  background: #fff;
}

.agent-code-page .code-card .copy-row,
.agent-code-page .code-card-next {
  grid-column: 1 / -1;
}

.agent-buy-balance {
  min-width: 0;
  min-height: 68px;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  border: 1px solid #e3e8f0;
  border-radius: 8px;
  color: #385376;
  background: #fff;
  font-size: 18px;
}

.agent-buy-balance strong {
  color: var(--pink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  font-weight: 500;
}

.agent-buy-balance .primary {
  margin-left: 10px;
}

.agent-buy-plan-list {
  display: grid;
  gap: 24px;
}

.agent-code-buy-options {
  display: grid;
  gap: 22px;
}

.agent-code-buy-row {
  min-height: 104px;
  padding: 16px 26px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(180px, 0.8fr) auto;
  align-items: center;
  gap: 28px;
  border: 1px solid #b8dfcf;
  border-radius: 8px;
  color: #385376;
  background: #f1faf6;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.agent-code-buy-row.selected {
  border-color: #56b987;
  box-shadow: 0 10px 24px rgba(37, 112, 82, 0.08), inset 4px 0 0 #56b987;
  background: #f6fcf9;
}

.agent-code-buy-row:hover {
  border-color: #56b987;
  box-shadow: 0 8px 20px rgba(37, 112, 82, 0.08);
}

.agent-code-buy-select {
  width: 100%;
  min-width: 0;
  min-height: 70px;
  padding: 8px 12px;
  display: grid;
  justify-items: start;
  gap: 5px;
  border: 0;
  border-radius: 6px;
  color: #385376;
  background: transparent;
  box-shadow: none;
  text-align: left;
  appearance: none;
  -webkit-appearance: none;
}

.agent-code-buy-select:focus-visible {
  outline: 3px solid rgba(86, 185, 135, 0.28);
  outline-offset: 2px;
}

.agent-code-buy-select b {
  font-size: 23px;
  font-weight: 500;
}

.agent-code-buy-select span,
.agent-code-buy-price {
  font-size: 17px;
}

.agent-code-buy-price {
  color: #385376;
  font-weight: 500;
}

.agent-code-buy-row > .primary {
  min-height: 46px;
  padding-inline: 23px;
  border-radius: 999px;
  background: linear-gradient(135deg, #6546d8, #53679b);
}

.agent-buy-quantity {
  width: min(280px, 100%);
  display: grid;
  gap: 7px;
  color: #385376;
  font-weight: 700;
}

.agent-buy-quantity input {
  width: 100%;
  min-height: 46px;
}

.agent-buy-picked {
  min-width: 0;
  margin: 0;
  color: #557091;
  overflow-wrap: anywhere;
}

.agent-buy-order-summary {
  min-width: 0;
  padding: 22px 24px;
  display: grid;
  grid-template-columns: minmax(190px, 280px) minmax(0, 1fr) auto;
  align-items: end;
  gap: 16px 24px;
  border: 1px solid #e0e6ef;
  border-radius: 8px;
  background: #fff;
}

.agent-buy-order-summary .agent-buy-picked {
  margin-bottom: 12px;
}

.agent-buy-order-summary .form-message {
  grid-column: 1 / -1;
}

.agent-buy-submit {
  width: fit-content;
}

.manual-page.agent-reference-manual {
  width: min(1424px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 48px;
}

.agent-manual-toolbar {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.agent-manual-back-button {
  flex: 0 0 auto;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-radius: 8px;
}

.agent-manual-back-button .ui-icon {
  width: 17px;
  height: 17px;
}

.agent-manual-breadcrumb {
  min-width: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  color: #0b8f86;
  font-size: 15px;
}

.agent-manual-breadcrumb a {
  color: #0b8f86;
}

.agent-manual-breadcrumb b {
  color: #17263d;
}

.agent-manual-hero {
  margin-top: -24px;
  padding: 30px 20px 50px;
  text-align: center;
  background: linear-gradient(180deg, #eaf8f5 0%, #f7fcfb 100%);
  border-bottom: 1px solid #d9eee9;
}

.agent-manual-hero h1 {
  margin: 0;
  color: #18263d;
  font-size: 38px;
  line-height: 1.25;
}

.agent-manual-hero p {
  margin: 10px 0 0;
  color: #257c76;
  font-size: 17px;
  line-height: 1.7;
}

.agent-manual-toc {
  padding: 28px 32px 30px;
  border: 1px solid #dce8e8;
  border-radius: 14px;
  background: linear-gradient(135deg, #fbfefd, #fff);
}

.agent-manual-toc > b {
  display: block;
  margin-bottom: 22px;
  color: #0b9b8f;
  font-size: 18px;
  letter-spacing: 0.12em;
}

.agent-manual-toc > div {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px 24px;
}

.agent-manual-toc a {
  min-width: 0;
  color: #172b48;
  font-size: 17px;
  line-height: 1.55;
}

.agent-manual-toc a:hover,
.agent-manual-toc a:focus-visible {
  color: #0b9b8f;
}

.manual-page.agent-reference-manual .panel.agent-manual-section {
  width: 100%;
  min-width: 0;
  padding: 34px 36px 38px;
  border: 1px solid #e0e8ed;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 5px 16px rgba(37, 47, 72, 0.025);
  scroll-margin-top: 24px;
}

.agent-manual-section-head {
  margin: 0;
  padding-bottom: 22px;
  display: flex;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid #d9eee9;
  color: #17263d;
  font-size: 27px;
  line-height: 1.35;
}

.agent-manual-section-head > span {
  width: 43px;
  height: 43px;
  flex: 0 0 43px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #0b9b8f;
  font-size: 18px;
}

.agent-manual-step-list {
  display: grid;
  gap: 14px;
  margin-top: 27px;
}

.agent-manual-step-list article {
  min-width: 0;
  padding: 18px 20px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 14px;
  border-radius: 10px;
  background: #fafbfc;
}

.agent-manual-step-list article > span {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #0b9b8f;
  font-weight: 900;
}

.agent-manual-step-list h3 {
  margin: 3px 0 0;
  color: #18263d;
  font-size: 17px;
  line-height: 1.5;
}

.agent-manual-step-list p,
.agent-manual-section > p {
  margin: 12px 0 0;
  color: #243a58;
  line-height: 1.85;
}

.agent-manual-section > p:first-of-type {
  margin-top: 27px;
}

.agent-manual-section strong {
  color: #17263d;
  font-weight: 900;
}

.agent-manual-reward-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 27px;
}

.agent-manual-reward-grid article {
  min-width: 0;
  min-height: 265px;
  padding: 22px 20px;
  display: grid;
  align-content: start;
  gap: 10px;
  border: 1px solid #e0e8ed;
  border-radius: 12px;
  background: linear-gradient(135deg, #fff, #f5fbfa);
}

.agent-manual-reward-grid article > strong {
  color: #0b9b8f;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 38px;
  line-height: 1;
}

.agent-manual-reward-grid article > b {
  width: fit-content;
  padding: 7px 11px;
  border-radius: 999px;
  color: #0b9b8f;
  background: #e8f6f4;
  font-size: 13px;
}

.agent-manual-reward-grid article > p,
.agent-manual-reward-grid article > span {
  margin: 0;
  color: #243a58;
  line-height: 1.85;
}

.agent-manual-reward-grid article > span {
  color: #77829a;
  font-size: 13px;
}

.agent-manual-lead {
  margin-bottom: 0 !important;
}

.agent-manual-callout,
.agent-manual-example {
  margin-top: 18px;
  padding: 18px 22px;
  border-left: 4px solid #0b9b8f;
  border-radius: 0 8px 8px 0;
  color: #0b7169;
  background: #eaf8f5;
  line-height: 1.85;
}

.agent-manual-example {
  border-left-color: #3978f6;
  color: #173c73;
  background: #eef5ff;
}

.agent-manual-support {
  margin-top: -22px;
  color: #77829a;
  text-align: center;
  line-height: 1.7;
}

.agent-manual-support button {
  padding: 0;
  color: #0b9b8f;
  font-weight: 900;
}

@media (max-width: 900px) {
  .agent-home-summary,
  .agent-manual-reward-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .agent-manual-toc > div {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .dashboard[data-role="agent"] .dash-main {
    width: calc(100% - 28px);
    margin-top: 22px;
  }

  .agent-home-summary,
  .agent-manual-reward-grid,
  .agent-code-filter {
    grid-template-columns: 1fr;
  }

  .agent-home-summary {
    gap: 14px;
  }

  .agent-home-balance-card,
  .agent-home-code-card,
  .agent-home-notice {
    min-height: 0;
    padding: 20px 16px;
  }

  .agent-home-card-heading > strong {
    font-size: 32px;
  }

  .agent-home-code-counts {
    gap: 8px;
  }

  .agent-home-code-counts small {
    font-size: 11px;
  }

  .agent-home-manual {
    min-height: 58px;
    font-size: 17px;
  }

  .agent-page-toolbar {
    align-items: flex-start;
  }

  .agent-page-toolbar h1 {
    font-size: 18px;
  }

  .agent-code-filter {
    gap: 10px;
  }

  .agent-code-filter .primary,
  .agent-code-filter .text-link {
    width: 100%;
  }

  .agent-buy-balance {
    font-size: 16px;
  }

  .agent-buy-balance .primary {
    margin-left: 0;
  }

  .agent-buy-plan-list {
    gap: 16px;
  }

  .agent-code-buy-options {
    gap: 12px;
  }

  .agent-code-buy-row {
    min-height: 0;
    padding: 16px;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
  }

  .agent-code-buy-row > .agent-code-buy-price {
    grid-column: 1 / -1;
    font-size: 15px;
  }

  .agent-code-buy-select b {
    font-size: 18px;
  }

  .agent-code-buy-row > .primary {
    grid-column: 2;
    grid-row: 1;
  }

  .agent-buy-order-summary {
    grid-template-columns: 1fr;
    align-items: stretch;
    gap: 14px;
    padding: 18px 16px;
  }

  .agent-buy-order-summary .agent-buy-picked {
    margin-bottom: 0;
  }

  .agent-buy-quantity,
  .agent-buy-submit {
    width: 100%;
  }

  .manual-page.agent-reference-manual {
    gap: 24px;
  }

  .agent-manual-toolbar {
    align-items: flex-start;
    gap: 10px;
  }

  .agent-manual-back-button {
    min-height: 36px;
    padding-inline: 10px;
    font-size: 12px;
  }

  .agent-manual-breadcrumb {
    font-size: 13px;
  }

  .agent-manual-hero {
    margin-top: -4px;
    padding: 22px 12px 30px;
  }

  .agent-manual-hero h1 {
    font-size: 28px;
  }

  .agent-manual-hero p {
    font-size: 14px;
  }

  .agent-manual-toc {
    padding: 20px 18px 22px;
    border-radius: 10px;
  }

  .agent-manual-toc > b {
    margin-bottom: 15px;
    font-size: 15px;
  }

  .agent-manual-toc > div {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 14px;
  }

  .agent-manual-toc a {
    font-size: 14px;
  }

  .manual-page.agent-reference-manual .panel.agent-manual-section {
    padding: 22px 18px 25px;
    border-radius: 10px;
  }

  .agent-manual-section-head {
    gap: 10px;
    padding-bottom: 16px;
    font-size: 22px;
  }

  .agent-manual-section-head > span {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
    font-size: 16px;
  }

  .agent-manual-reward-grid article {
    min-height: 0;
  }
}

@media (max-width: 480px) {
  .agent-buy-code-page .agent-page-toolbar {
    align-items: stretch;
  }

  .agent-buy-code-page .agent-page-toolbar > div {
    min-width: 0;
  }

  .agent-buy-code-page .agent-outline-button {
    min-height: 40px;
    padding-inline: 12px;
    font-size: 13px;
  }

  .agent-code-buy-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .agent-code-buy-row > .agent-code-buy-price,
  .agent-code-buy-row > .primary {
    grid-column: 1;
  }

  .agent-code-buy-row > .primary {
    grid-row: auto;
    width: 100%;
  }
}

/* Broker navigation: keep the three related entries together without making the sidebar tall. */
.broker-sidebar {
  padding-top: 18px;
}

.broker-side-menu {
  gap: 10px;
}

.broker-side-group {
  display: grid;
  gap: 3px;
}

.broker-side-group h2 {
  margin: 10px 12px 5px;
  color: #6f778a;
  font-size: 14px;
  line-height: 1.4;
}

.broker-side-menu > .broker-side-group:first-child {
  gap: 3px;
}

.broker-side-parent,
.broker-side-menu > .broker-side-plain-group > a {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 0;
  border-radius: 8px;
  color: #243857;
  background: transparent;
  font: inherit;
  font-size: 14px;
  font-weight: 900;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.broker-side-parent:hover,
.broker-side-menu > .broker-side-plain-group > a:hover {
  color: var(--pink);
  background: #fff7fb;
}

.broker-side-parent .ui-icon,
.broker-side-menu > .broker-side-plain-group > a .ui-icon {
  flex: 0 0 auto;
}

.broker-side-parent > span:not(.ui-icon),
.broker-side-menu > .broker-side-plain-group > a > span:not(.ui-icon) {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.broker-side-parent > i,
.broker-side-chevron {
  margin-left: auto;
  color: #243857;
  font-size: 21px;
  font-style: normal;
  font-weight: 400;
  line-height: 1;
  transition: transform 0.18s ease, color 0.18s ease;
}

.broker-side-parent.is-active,
.broker-side-menu > .broker-side-plain-group > a.active {
  color: var(--pink);
  background: var(--rose);
  box-shadow: inset 4px 0 0 var(--pink);
}

.broker-side-parent.is-active > i,
.broker-side-parent:hover > i,
.broker-side-chevron {
  color: var(--pink);
}

.broker-side-group.is-open > .broker-side-parent > i {
  transform: rotate(180deg);
}

.broker-side-submenu {
  display: none;
  gap: 3px;
  padding: 2px 0 3px 21px;
}

.broker-side-group.is-open > .broker-side-submenu {
  display: grid;
}

.broker-side-subitem {
  min-height: 37px !important;
  padding: 0 12px 0 16px !important;
  display: flex !important;
  align-items: center;
  gap: 9px;
  border-radius: 8px;
  color: #4e607c !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  text-decoration: none;
}

.broker-side-subitem:hover {
  color: var(--pink) !important;
  background: #fff7fb;
}

.broker-side-subitem.active {
  color: var(--pink) !important;
  background: #fff0f7;
  box-shadow: inset 3px 0 0 var(--pink);
}

.broker-side-bullet {
  width: 14px;
  color: #c6b3c2;
  font-size: 16px;
  line-height: 1;
  text-align: center;
}

.girl-sidebar .broker-side-parent {
  min-height: 48px;
}

.girl-sidebar .broker-side-submenu {
  padding-left: 22px;
}

.girl-sidebar .broker-side-subitem {
  position: relative;
  min-height: 42px !important;
}

.girl-sidebar .broker-side-subitem .side-unread {
  min-width: 28px;
  height: 22px;
  margin-left: auto;
  padding: 0 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 84, 143, 0.26);
  border-radius: 999px;
  color: #e93c88;
  background: #fff0f6;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

.broker-home-page {
  display: grid;
  gap: 16px;
}

.broker-home-page .page-head {
  margin-bottom: 18px;
}

.broker-home-page .quick-section {
  margin-top: 22px;
}

/* Broker home keeps real account data visible without adding unsupported features. */
.broker-home-hero {
  min-height: 148px;
  padding: 26px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  overflow: hidden;
  border: 1px solid #e5e8f0;
  border-radius: 8px;
  background:
    linear-gradient(105deg, rgba(255, 255, 255, 0.98), rgba(255, 249, 253, 0.96)),
    #fff;
  box-shadow: 0 16px 38px rgba(47, 65, 95, 0.06);
}

.broker-home-hero > div {
  min-width: 0;
  display: grid;
  gap: 8px;
}

.broker-home-hero > div > span {
  color: #64738c;
  font-size: 14px;
  font-weight: 800;
}

.broker-home-hero h1 {
  margin: 0;
  color: #142847;
  font-size: 34px;
  line-height: 1.18;
}

.broker-home-hero-icon {
  width: 64px;
  height: 64px;
  flex: 0 0 64px;
  display: grid;
  place-items: center;
  border: 1px solid #f0dce7;
  border-radius: 8px;
  color: #ff4e93;
  background: #fff3f8;
}

.broker-home-hero-icon .ui-icon {
  width: 28px;
  height: 28px;
}

.broker-contact-reminder {
  min-height: 82px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid #f3dc8d;
  border-radius: 8px;
  background: #fff5ca;
}

.broker-contact-reminder > div {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.broker-contact-reminder b {
  color: #5d4811;
  font-size: 15px;
}

.broker-contact-reminder span {
  color: #856b1e;
  font-size: 13px;
}

.broker-contact-reminder .secondary {
  min-height: 36px;
  padding-inline: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  color: #5b4504;
  background: #ffc900;
  box-shadow: none;
}

.broker-contact-reminder .secondary .ui-icon {
  width: 16px;
  height: 16px;
}

.broker-home-overview {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.broker-home-count-card {
  min-height: 160px;
  padding: 18px;
  display: grid;
  align-content: space-between;
  gap: 16px;
  border: 1px solid #e2e7f0;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 32px rgba(47, 65, 95, 0.05);
}

.broker-home-card-head {
  min-width: 0;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.broker-home-card-head > span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #505f7d;
  background: #f1efff;
}

.broker-home-card-head > span .ui-icon {
  width: 19px;
  height: 19px;
}

.broker-home-card-head b {
  min-width: 0;
  color: #1b2d4d;
  font-size: 15px;
}

.broker-home-card-head strong {
  color: #ff4b90;
  font-size: 34px;
  line-height: 1;
}

.broker-home-count-card > .text-button {
  width: fit-content;
  min-height: 28px;
  padding: 0;
  color: #53617c;
  font-size: 13px;
}

.broker-home-card-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.broker-home-card-actions .primary {
  min-height: 38px;
  padding-inline: 14px;
  box-shadow: none;
}

.broker-home-card-actions .text-button {
  min-height: 30px;
  padding: 0;
  color: #455875;
}

.broker-home-page .broker-member-card {
  margin: 0;
}

.broker-home-tools {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.broker-home-tools > button {
  min-height: 82px;
  padding: 15px 16px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 12px;
  text-align: left;
  border: 1px solid #e2e7f0;
  border-radius: 8px;
  color: #314664;
  background: #fff;
  box-shadow: 0 12px 28px rgba(47, 65, 95, 0.04);
}

.broker-home-tools > button > span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #ff4e93;
  background: #fff0f6;
}

.broker-home-tools > button > span .ui-icon,
.broker-home-tools > button > .ui-icon {
  width: 18px;
  height: 18px;
}

.broker-home-tools > button > div {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.broker-home-tools b {
  color: #1b2d4d;
  font-size: 15px;
}

.broker-home-tools small {
  overflow: hidden;
  color: #728098;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.broker-home-tools > button > .ui-icon {
  color: #8b96a8;
}

@media (max-width: 1080px) {
  .broker-home-overview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .broker-home-tools {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .broker-home-page {
    gap: 12px;
  }

  .broker-home-hero {
    min-height: 112px;
    padding: 18px;
  }

  .broker-home-hero h1 {
    font-size: 25px;
  }

  .broker-home-hero-icon {
    width: 48px;
    height: 48px;
    flex-basis: 48px;
  }

  .broker-home-hero-icon .ui-icon {
    width: 22px;
    height: 22px;
  }

  .broker-contact-reminder {
    padding: 14px;
    align-items: stretch;
    flex-direction: column;
  }

  .broker-contact-reminder .secondary {
    width: 100%;
    justify-content: center;
  }

  .broker-home-overview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .broker-home-count-card {
    min-height: 140px;
    padding: 14px;
    gap: 12px;
  }

  .broker-home-card-head {
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 8px;
  }

  .broker-home-card-head > span {
    width: 32px;
    height: 32px;
  }

  .broker-home-card-head strong {
    grid-column: 1 / -1;
    font-size: 30px;
  }

  .broker-home-card-actions {
    align-items: stretch;
    flex-direction: column;
    gap: 4px;
  }

  .broker-home-card-actions .primary {
    width: 100%;
  }

  .broker-home-tools > button {
    min-height: 72px;
    padding: 13px 14px;
  }
}

.girl-guide-card > h3 {
  display: flex;
  align-items: center;
  gap: 8px;
}

.girl-guide-card > h3 .ui-icon {
  width: 21px;
  height: 21px;
  color: #ff4f91;
}

.girl-guide-steps {
  max-width: 820px;
  margin: 16px 0 0;
  gap: 18px;
}

.girl-guide-steps article {
  min-height: 0;
  padding: 0;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: start;
  gap: 14px;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.girl-guide-steps article > b {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, #ff5b8f, #ff7166);
  font-size: 20px;
}

.girl-guide-steps article strong {
  display: block;
  margin-top: 1px;
  color: #18243b;
  font-size: 18px;
  font-weight: 700;
}

.girl-guide-steps article p {
  margin: 3px 0 0;
  color: #5f6d84;
  font-size: 14px;
  line-height: 1.45;
}

.girl-guide-action {
  min-height: 30px;
  margin-top: 8px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #ff4f91, #ff7166);
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.girl-guide-action:hover {
  filter: brightness(0.97);
}

.boss-home-faq {
  margin-top: 24px;
  padding: 20px 22px 8px;
  border: 1px solid #e3e7ef;
  border-radius: 8px;
  background: #fff;
}

.boss-home-faq-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.boss-home-faq-head h2 {
  margin: 0;
  color: var(--ink);
  font-size: 22px;
}

.boss-home-faq-head span {
  color: #9ca7b8;
  font-size: 12px;
  font-weight: 900;
}

.boss-home-faq-list {
  margin-top: 12px;
}

.boss-home-faq-list details {
  border-bottom: 1px solid #edf0f4;
}

.boss-home-faq-list details:last-child {
  border-bottom: 0;
}

.boss-home-faq-list summary {
  min-height: 54px;
  font-size: 16px;
}

.boss-home-faq-list details > p {
  max-width: 860px;
  margin: 0 0 16px;
  color: #637188;
  font-size: 14px;
  line-height: 1.7;
  white-space: pre-line;
}

.boss-home-faq-list details[open] summary {
  color: var(--pink);
}

@media (min-width: 761px) and (max-width: 1180px) {
  .broker-sidebar .broker-side-submenu {
    display: none;
  }

  .broker-sidebar .broker-side-parent {
    justify-content: center;
    padding-inline: 0;
  }

  .broker-sidebar .broker-side-parent > span:not(.ui-icon),
  .broker-sidebar .broker-side-parent > i,
  .broker-sidebar .broker-side-chevron,
  .broker-sidebar .broker-side-group h2 {
    display: none;
  }
}

@media (min-width: 761px) {
  body.side-collapsed .broker-sidebar .broker-side-submenu,
  body.side-collapsed .broker-sidebar .broker-side-group h2,
  body.side-collapsed .broker-sidebar .broker-side-parent > span:not(.ui-icon),
  body.side-collapsed .broker-sidebar .broker-side-parent > i,
  body.side-collapsed .broker-sidebar .broker-side-chevron {
    display: none;
  }

  body.side-collapsed .broker-sidebar .broker-side-parent,
  body.side-collapsed .broker-sidebar .broker-side-menu > .broker-side-plain-group > a {
    justify-content: center;
    padding-inline: 0;
  }

  body.side-collapsed .broker-sidebar .broker-side-parent .ui-icon,
  body.side-collapsed .broker-sidebar .broker-side-menu > .broker-side-plain-group > a .ui-icon {
    margin: 0;
  }
}

@media (max-width: 760px) {
  .broker-sidebar .broker-side-menu {
    gap: 9px;
  }

  .broker-sidebar .broker-side-group h2 {
    margin-top: 9px;
  }

.broker-sidebar .broker-side-submenu {
    padding-left: 18px;
  }
}

.broker-code-page {
  width: min(100%, 1520px);
  margin: 0 auto;
  display: grid;
  gap: 18px;
}

.broker-code-page-title {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #5c7092;
}

.broker-code-page-title .ui-icon {
  width: 22px;
  height: 22px;
  color: #47658e;
}

.broker-code-page-title h1 {
  margin: 0;
  color: #314b74;
  font-size: 22px;
  font-weight: 500;
}

.broker-code-permission {
  min-height: 276px;
  padding: 32px 26px 30px;
  border: 1px solid #e2e5eb;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(50, 70, 103, 0.04);
}

.broker-code-permission h2 {
  margin: 0 0 26px;
  color: #17243a;
  font-size: 20px;
  line-height: 1.45;
}

.broker-code-open {
  width: min(726px, 100%);
  min-height: 54px;
  margin-bottom: 18px;
  border-radius: 9px;
  background: linear-gradient(100deg, #ff6a61, #fa3d92);
  box-shadow: none;
  font-size: 17px;
}

.broker-code-permission ol {
  margin: 0;
  padding-left: 27px;
  color: #172b48;
  font-size: 16px;
  line-height: 1.75;
}

.broker-code-permission li + li {
  margin-top: 1px;
}

.broker-code-access {
  min-height: 0;
  background: linear-gradient(135deg, #fff, #fff9fc);
}

.broker-code-access h2 {
  color: #6d3f9f;
}

@media (max-width: 760px) {
  .broker-code-page {
    gap: 14px;
  }

  .broker-code-page-title h1 {
    font-size: 20px;
  }

  .broker-code-permission {
    min-height: 0;
    padding: 24px 18px 22px;
  }

  .broker-code-permission h2 {
    margin-bottom: 20px;
    font-size: 18px;
  }

  .broker-code-open {
    width: 100%;
    min-height: 50px;
  }

  .broker-code-permission ol {
    font-size: 14px;
  }
}

/* Boss manual reference layout. Keep this scope isolated from other role pages. */
.manual-page.boss-reference-manual {
  width: min(1424px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 48px;
}

.boss-manual-breadcrumb {
  min-width: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  color: #926782;
  font-size: 15px;
}

.boss-manual-breadcrumb a {
  color: #926782;
}

.boss-manual-breadcrumb b {
  color: #1e2a3f;
}

.boss-manual-hero {
  margin-top: -24px;
  padding: 30px 20px 50px;
  text-align: center;
  background: linear-gradient(180deg, #fff6f9 0%, #fffafd 100%);
  border-bottom: 1px solid #f0dde8;
}

.boss-manual-hero h1 {
  margin: 0;
  color: #202a3d;
  font-size: 38px;
  line-height: 1.25;
}

.boss-manual-hero p {
  margin: 10px 0 0;
  color: #a66a85;
  font-size: 17px;
  line-height: 1.7;
}

.boss-manual-toc {
  padding: 28px 32px 30px;
  border: 1px solid #e8e8ef;
  border-radius: 14px;
  background: linear-gradient(135deg, #fffafd, #fff);
}

.boss-manual-toc > b {
  display: block;
  margin-bottom: 22px;
  color: #df3c76;
  font-size: 18px;
  letter-spacing: 0.12em;
}

.boss-manual-toc > div {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px 24px;
}

.boss-manual-toc span {
  min-width: 0;
  color: #1c2a43;
  font-size: 17px;
  line-height: 1.55;
}

.manual-page.boss-reference-manual .panel.boss-manual-section {
  width: 100%;
  min-width: 0;
  padding: 34px 36px 38px;
  border: 1px solid #e6e9ef;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 5px 16px rgba(37, 47, 72, 0.025);
}

.boss-manual-section-head {
  margin: 0;
  padding-bottom: 22px;
  display: flex;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid #f2dfe8;
  color: #202a3d;
  font-size: 27px;
  line-height: 1.35;
}

.boss-manual-section-head > span {
  width: 43px;
  height: 43px;
  flex: 0 0 43px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #dd3975;
  font-size: 18px;
}

.boss-manual-subhead {
  margin: 28px 0 15px;
  padding-left: 12px;
  border-left: 3px solid #e13e78;
  color: #202a3d;
  font-size: 19px;
  line-height: 1.45;
}

.boss-membership-reasons {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.boss-reason-card {
  min-width: 0;
  min-height: 214px;
  padding: 24px 20px 19px;
  position: relative;
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 10px;
  border: 1px solid #e6e9ef;
  border-radius: 14px;
  text-align: center;
  background: linear-gradient(180deg, #fff, #fffafd);
}

.boss-reason-card:nth-child(4) {
  border-color: #ed4c84;
  box-shadow: 0 12px 24px rgba(221, 57, 117, 0.1);
}

.boss-reason-index {
  position: absolute;
  top: 17px;
  right: 16px;
  color: #efadc4;
  font-size: 14px;
  font-weight: 900;
}

.boss-reason-card i {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fcedf5;
  font-size: 25px;
  font-style: normal;
}

.boss-reason-card b {
  margin-top: 4px;
  color: #242a3a;
  font-size: 18px;
}

.boss-reason-card p {
  margin: 0;
  color: #697184;
  line-height: 1.7;
}

.boss-membership-tiers {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.boss-tier-card {
  min-width: 0;
  min-height: 348px;
  padding: 28px 29px 24px;
  position: relative;
  border: 1px solid #e5e6eb;
  border-radius: 14px;
  background: #fff;
}

.boss-tier-card.is-vip {
  border-color: #ed3d79;
  background: linear-gradient(180deg, #fff8fb, #fff);
  box-shadow: 0 13px 28px rgba(221, 57, 117, 0.08);
}

.boss-tier-card > em {
  position: absolute;
  top: -13px;
  right: 22px;
  padding: 8px 17px;
  border-radius: 999px;
  color: #fff;
  background: #d93873;
  font-size: 13px;
  font-style: normal;
  font-weight: 900;
}

.boss-tier-card header {
  padding-bottom: 20px;
  display: flex;
  align-items: baseline;
  gap: 12px;
  border-bottom: 1px dashed #e9e4e8;
}

.boss-tier-card header b {
  color: #202a3d;
  font-size: 22px;
}

.boss-tier-card.is-vip header b {
  color: #dc3975;
}

.boss-tier-card header span {
  color: #6d7383;
  font-size: 14px;
}

.boss-tier-card ul {
  margin: 20px 0 0;
  padding: 0;
  display: grid;
  gap: 15px;
  list-style: none;
}

.boss-tier-card li {
  color: #4e586c;
  line-height: 1.5;
}

.boss-tier-card li::before {
  width: 22px;
  height: 22px;
  margin-right: 10px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  content: "✓";
  color: #e23978;
  background: #fff0f6;
  font-weight: 900;
}

.boss-tier-card li.is-off {
  color: #9ba1ae;
}

.boss-tier-card li.is-off::before {
  content: "×";
  color: #9da3ab;
  background: #f3f4f6;
}

.boss-manual-cta {
  padding-top: 25px;
  display: grid;
  justify-items: center;
  gap: 9px;
}

.boss-manual-cta .primary {
  min-width: 220px;
  min-height: 54px;
  border-radius: 999px;
  background: #d22f6c;
  box-shadow: 0 12px 22px rgba(210, 47, 108, 0.18);
  font-size: 16px;
}

.boss-manual-cta .primary span {
  margin-left: 5px;
  font-size: 24px;
  line-height: 0;
  vertical-align: -2px;
}

.boss-manual-cta small {
  color: #727786;
}

.boss-manual-section-title {
  margin-bottom: 27px;
}

.boss-term-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px 18px;
}

.boss-manual-info-card {
  min-width: 0;
  min-height: 145px;
  padding: 18px 20px 18px 22px;
  border-left: 3px solid #df3e79;
  border-radius: 0 8px 8px 0;
  background: #fafbfc;
}

.boss-manual-info-card b {
  width: fit-content;
  padding: 7px 11px;
  display: block;
  border-radius: 5px;
  color: #fff;
  background: #d93673;
  font-size: 15px;
}

.boss-manual-info-card p,
.boss-manual-single-copy,
.boss-funds-list p,
.boss-process-card p {
  margin: 12px 0 0;
  color: #4d586d;
  line-height: 1.85;
}

.boss-process-list {
  display: grid;
  gap: 14px;
}

.boss-process-card {
  min-width: 0;
  padding: 18px 20px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 14px;
  border-radius: 10px;
  background: #fafbfc;
}

.boss-process-number {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #dc3975;
  font-weight: 900;
}

.boss-process-card h3,
.boss-funds-list h3 {
  margin: 3px 0 0;
  color: #202a3d;
  font-size: 17px;
  line-height: 1.5;
}

.boss-process-tags {
  margin-top: 10px;
  display: grid;
  gap: 5px;
}

.boss-process-tags p {
  margin: 0;
}

.boss-process-tags b {
  margin-right: 10px;
  padding: 6px 9px;
  border-radius: 999px;
  color: #d83673;
  background: #fff0f6;
  font-size: 12px;
}

.boss-manual-note {
  margin-top: 15px;
  padding: 14px 16px;
  border-left: 4px solid #df3e79;
  border-radius: 0 8px 8px 0;
  color: #7b1e43;
  background: #fff0f5;
  line-height: 1.8;
}

.boss-manual-note strong {
  display: block;
  margin-bottom: 4px;
}

.boss-manual-note p {
  margin: 7px 0 0;
  color: inherit;
  line-height: 1.8;
}

.boss-process-card.process-3 .boss-manual-note {
  border-left-color: #f08a3c;
  color: #714718;
  background: #fff7e8;
}

.boss-process-card.process-5 .boss-manual-note {
  border-left-color: #438af0;
  color: #194f93;
  background: #edf5ff;
}

.boss-funds-list {
  display: grid;
  gap: 22px;
}

.boss-funds-list article {
  padding-left: 16px;
  border-left: 3px solid #df3e79;
}

.boss-reward-table-wrap {
  overflow-x: auto;
}

.boss-reward-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  color: #4b5260;
}

.boss-reward-table th,
.boss-reward-table td {
  padding: 16px 18px;
  border: 1px solid #e7e7ec;
  text-align: left;
}

.boss-reward-table th {
  color: #d93673;
  background: #fff0f5;
}

.boss-reward-table tbody tr:nth-child(even) td {
  background: #fbfbfc;
}

.boss-manual-tutorial {
  margin-top: -22px;
  color: #77829a;
  text-align: center;
  line-height: 1.7;
}

.boss-manual-tutorial button {
  padding: 0;
  color: #dc3975;
  font-weight: 900;
}

@media (max-width: 900px) {
  .boss-membership-reasons,
  .boss-term-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .boss-manual-toc > div {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .manual-page.boss-reference-manual {
    gap: 24px;
  }

  .boss-manual-breadcrumb {
    font-size: 13px;
  }

  .boss-manual-hero {
    margin-top: -4px;
    padding: 22px 12px 30px;
  }

  .boss-manual-hero h1 {
    font-size: 28px;
  }

  .boss-manual-hero p {
    font-size: 14px;
  }

  .boss-manual-toc {
    padding: 20px 18px 22px;
    border-radius: 10px;
  }

  .boss-manual-toc > b {
    margin-bottom: 15px;
    font-size: 15px;
  }

  .boss-manual-toc > div {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 14px;
  }

  .boss-manual-toc span {
    font-size: 14px;
  }

  .manual-page.boss-reference-manual .panel.boss-manual-section {
    padding: 22px 18px 25px;
    border-radius: 10px;
  }

  .boss-manual-section-head {
    gap: 10px;
    padding-bottom: 16px;
    font-size: 22px;
  }

  .boss-manual-section-head > span {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
    font-size: 16px;
  }

  .boss-manual-subhead {
    margin: 22px 0 13px;
    font-size: 17px;
  }

  .boss-membership-reasons,
  .boss-membership-tiers,
  .boss-term-grid {
    grid-template-columns: 1fr;
  }

  .boss-reason-card {
    min-height: 0;
  }

  .boss-tier-card {
    min-height: 0;
    padding: 23px 20px 22px;
  }

  .boss-tier-card header b {
    font-size: 20px;
  }

  .boss-process-card {
    padding: 15px;
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 10px;
  }

  .boss-process-number {
    width: 32px;
    height: 32px;
  }

  .boss-process-card p,
  .boss-funds-list p,
  .boss-manual-single-copy {
    font-size: 14px;
    line-height: 1.8;
  }

  .boss-reward-table th,
  .boss-reward-table td {
    padding: 12px 13px;
    font-size: 13px;
  }
}

/* Broker manual reference layout. Keep the broker handbook independent from generic manuals. */
.manual-page.broker-reference-manual {
  width: min(1424px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 48px;
}

.broker-manual-breadcrumb {
  min-width: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  color: #6a5aa1;
  font-size: 15px;
}

.broker-manual-toolbar {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.broker-manual-back-button {
  flex: 0 0 auto;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-radius: 8px;
}

.broker-manual-back-button .ui-icon {
  width: 17px;
  height: 17px;
}

.broker-manual-breadcrumb a {
  color: #6a5aa1;
}

.broker-manual-breadcrumb b {
  color: #17263d;
}

.broker-manual-hero {
  margin-top: -24px;
  padding: 30px 20px 50px;
  text-align: center;
  background: linear-gradient(180deg, #f8f5ff 0%, #fbfaff 100%);
  border-bottom: 1px solid #e8e1f7;
}

.broker-manual-hero h1 {
  margin: 0;
  color: #18263d;
  font-size: 38px;
  line-height: 1.25;
}

.broker-manual-hero p {
  margin: 10px 0 0;
  color: #6c5a9f;
  font-size: 17px;
  line-height: 1.7;
}

.broker-manual-toc {
  padding: 28px 32px 30px;
  border: 1px solid #e4e3ec;
  border-radius: 14px;
  background: linear-gradient(135deg, #fcfbff, #fff);
}

.broker-manual-toc > b {
  display: block;
  margin-bottom: 22px;
  color: #6546d8;
  font-size: 18px;
  letter-spacing: 0.12em;
}

.broker-manual-toc > div {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px 24px;
}

.broker-manual-toc a {
  min-width: 0;
  color: #172b48;
  font-size: 17px;
  line-height: 1.55;
}

.broker-manual-toc a:hover,
.broker-manual-toc a:focus-visible {
  color: #6546d8;
}

.manual-page.broker-reference-manual .panel.broker-manual-section {
  width: 100%;
  min-width: 0;
  padding: 34px 36px 38px;
  border: 1px solid #e4e7ee;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 5px 16px rgba(37, 47, 72, 0.025);
  scroll-margin-top: 24px;
}

.broker-manual-section-head {
  margin: 0;
  padding-bottom: 22px;
  display: flex;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid #e6e1f4;
  color: #17263d;
  font-size: 27px;
  line-height: 1.35;
}

.broker-manual-section-head > span {
  width: 43px;
  height: 43px;
  flex: 0 0 43px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #6948d9;
  font-size: 18px;
}

.broker-manual-subsection {
  margin-top: 27px;
}

.broker-manual-subsection > h3 {
  margin: 0 0 14px;
  padding-left: 12px;
  border-left: 3px solid #6948d9;
  color: #18263d;
  font-size: 19px;
  line-height: 1.45;
}

.broker-manual-subsection > p,
.broker-manual-copy-list p,
.broker-manual-step-card p,
.broker-commission-card p,
.broker-manual-info-card p {
  margin: 12px 0 0;
  color: #243a58;
  line-height: 1.85;
}

.broker-manual-section strong {
  color: #17263d;
  font-weight: 900;
}

.broker-commission-card {
  padding: 26px 24px 25px;
  border: 1px solid #e2e6ef;
  border-left: 5px solid #6948d9;
  border-radius: 10px;
  background: #fff;
}

.broker-commission-card header {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.broker-commission-card header b {
  color: #17263d;
  font-size: 20px;
}

.broker-commission-card header span {
  padding: 7px 11px;
  border-radius: 999px;
  color: #6546d8;
  background: #f0edff;
  font-size: 13px;
  font-weight: 900;
}

.broker-example {
  width: fit-content;
  max-width: 100%;
  margin-top: 14px;
  padding: 9px 12px;
  border: 1px dashed #efc46f;
  border-radius: 6px;
  color: #936317;
  background: #fffaf0;
  line-height: 1.6;
}

.broker-manual-term-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 27px;
}

.broker-manual-info-card {
  min-width: 0;
  min-height: 145px;
  padding: 18px 20px 18px 22px;
  border-left: 3px solid #6948d9;
  border-radius: 0 8px 8px 0;
  background: #fafbfc;
}

.broker-manual-info-card b {
  width: fit-content;
  padding: 7px 11px;
  display: block;
  border-radius: 5px;
  color: #fff;
  background: #6948d9;
  font-size: 15px;
}

.broker-manual-step-list {
  display: grid;
  gap: 14px;
  margin-top: 27px;
}

.broker-manual-step-card {
  min-width: 0;
  padding: 18px 20px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 14px;
  border-radius: 10px;
  background: #fafbfc;
}

.broker-manual-step-card > span {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #6948d9;
  font-weight: 900;
}

.broker-manual-step-card h3 {
  margin: 3px 0 0;
  color: #18263d;
  font-size: 17px;
  line-height: 1.5;
}

.broker-manual-warning {
  margin-top: 14px;
  padding: 14px 16px;
  border-left: 4px solid #e53670;
  border-radius: 0 8px 8px 0;
  color: #8c2149;
  background: #fff0f5;
  line-height: 1.8;
}

.broker-manual-warning strong {
  color: inherit;
}

.broker-manual-copy-list {
  margin-top: 27px;
}

.broker-manual-copy-list p:first-child {
  margin-top: 0;
}

.broker-reward-table-wrap {
  margin-top: 27px;
  overflow-x: auto;
}

.broker-reward-table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  color: #1c3452;
}

.broker-reward-table th,
.broker-reward-table td {
  padding: 16px 18px;
  border: 1px solid #e5e6ee;
  text-align: left;
  line-height: 1.65;
}

.broker-reward-table th {
  color: #6546d8;
  background: #f2efff;
}

.broker-reward-table tbody tr:nth-child(even) td {
  background: #fbfbfc;
}

.broker-manual-support {
  margin-top: -22px;
  color: #77829a;
  text-align: center;
  line-height: 1.7;
}

.broker-manual-support button {
  padding: 0;
  color: #6546d8;
  font-weight: 900;
}

@media (max-width: 900px) {
  .broker-manual-term-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .broker-manual-toc > div {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .manual-page.broker-reference-manual {
    gap: 24px;
  }

  .broker-manual-breadcrumb {
    font-size: 13px;
  }

  .broker-manual-toolbar {
    align-items: flex-start;
    gap: 10px;
  }

  .broker-manual-back-button {
    min-height: 36px;
    padding-inline: 10px;
    font-size: 12px;
  }

  .broker-manual-hero {
    margin-top: -4px;
    padding: 22px 12px 30px;
  }

  .broker-manual-hero h1 {
    font-size: 28px;
  }

  .broker-manual-hero p {
    font-size: 14px;
  }

  .broker-manual-toc {
    padding: 20px 18px 22px;
    border-radius: 10px;
  }

  .broker-manual-toc > b {
    margin-bottom: 15px;
    font-size: 15px;
  }

  .broker-manual-toc > div {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 14px;
  }

  .broker-manual-toc a {
    font-size: 14px;
  }

  .manual-page.broker-reference-manual .panel.broker-manual-section {
    padding: 22px 18px 25px;
    border-radius: 10px;
  }

  .broker-manual-section-head {
    gap: 10px;
    padding-bottom: 16px;
    font-size: 22px;
  }

  .broker-manual-section-head > span {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
    font-size: 16px;
  }

  .broker-manual-subsection {
    margin-top: 22px;
  }

  .broker-manual-subsection > h3 {
    margin-bottom: 13px;
    font-size: 17px;
  }

  .broker-commission-card {
    padding: 20px 16px 19px;
  }

  .broker-manual-term-grid {
    grid-template-columns: 1fr;
    margin-top: 22px;
  }

  .broker-manual-step-list,
  .broker-manual-copy-list,
  .broker-reward-table-wrap {
    margin-top: 22px;
  }

  .broker-manual-step-card {
    padding: 15px;
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 10px;
  }

  .broker-manual-step-card > span {
    width: 32px;
    height: 32px;
  }

  .broker-manual-step-card p,
  .broker-manual-copy-list p,
  .broker-manual-info-card p,
  .broker-commission-card p {
    font-size: 14px;
    line-height: 1.8;
  }

  .broker-reward-table th,
  .broker-reward-table td {
    padding: 12px 13px;
    font-size: 13px;
  }
}

/* FAQ remains visually anchored while answers open and close. */
.faq-band .section-head h2 {
  font-size: 38px;
  line-height: 1.22;
}

.faq-list {
  height: 430px;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.faq-list details {
  min-height: 62px;
}

.faq-list summary {
  min-height: 62px;
  display: flex;
  align-items: center;
}

@media (max-width: 760px) {
  .faq-band .section-head h2 {
    font-size: 30px;
  }

  .faq-list {
    height: 500px;
    min-height: 0;
  }

  .faq-list details,
  .faq-list summary {
    min-height: 58px;
  }
}

/* Final mobile/chat pass: keep the composer stable while allowing media to wrap. */
.message-start-form {
  display: grid;
  gap: 10px;
  align-items: stretch;
}

.chat-composer {
  width: 100%;
  display: grid;
  gap: 8px;
}

.chat-compose-row {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: end;
}

.chat-compose-row textarea {
  width: 100%;
  min-height: 42px;
  max-height: 120px;
  resize: vertical;
}

.chat-compose-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.chat-compose-actions .icon-button {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
}

.chat-send-button {
  min-height: 38px;
  white-space: nowrap;
}

.chat-emoji-panel {
  max-height: 132px;
  overflow-y: auto;
  padding: 7px;
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.chat-emoji-panel[hidden],
.chat-attachment-list[hidden] {
  display: none;
}

.chat-emoji-panel button {
  min-width: 30px;
  min-height: 30px;
  border: 0;
  border-radius: 6px;
  background: #fff;
  font-size: 19px;
}

.chat-emoji-panel button:hover,
.chat-emoji-panel button:focus-visible {
  background: var(--rose);
}

.chat-attachment-list {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.chat-draft-file {
  position: relative;
  width: 86px;
}

.chat-draft-file > button {
  position: absolute;
  z-index: 1;
  top: -6px;
  right: -6px;
  width: 22px;
  height: 22px;
  padding: 0;
  border: 1px solid #fff;
  border-radius: 50%;
  color: #fff;
  background: #29202a;
  line-height: 18px;
}

.chat-draft-file .chat-attachment {
  width: 86px;
}

.chat-attachment-grid,
.support-media-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.chat-attachment,
.support-media {
  width: 112px;
  min-width: 0;
  display: grid;
  gap: 4px;
  color: inherit;
  text-decoration: none;
}

.chat-attachment img,
.chat-attachment video,
.support-media img,
.support-media video {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 7px;
  background: #ece8ed;
}

.chat-attachment span,
.support-media span {
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-emoji-content,
.support-emoji-content {
  font-size: 27px;
  line-height: 1.25;
}

.chat-empty-content {
  color: var(--muted);
}

#faq {
  scroll-margin-top: 78px;
}

@media (max-width: 760px) {
  .hero-cinematic {
    min-height: calc(100svh - 62px);
    height: auto;
  }

  .hero-cinematic .hero-ref-inner {
    min-height: 0;
  }

  .chat-compose-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .chat-compose-actions {
    justify-content: flex-end;
  }

  .message-start-form .chat-compose-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .message-start-form .chat-compose-actions {
    justify-content: flex-start;
  }

  .chat-shell form {
    padding: 10px;
  }

  .chat-emoji-panel {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .chat-attachment,
  .support-media {
    width: min(112px, calc((100vw - 70px) / 3));
  }

  .public-page,
  .dashboard {
    padding-bottom: env(safe-area-inset-bottom);
  }
}

/* Compact conversation layout: the reference keeps tools in fixed rows and the composer stable. */
.message-detail-page {
  width: min(1120px, 100%);
  margin: 0 auto;
}

.reference-chat-shell {
  width: 100%;
  max-width: none;
  height: min(760px, calc(100svh - 122px));
  min-height: 520px;
  position: relative;
  display: grid;
  grid-template-rows: 78px auto minmax(0, 1fr) 72px;
  overflow: visible;
}

.reference-chat-shell:not(.has-thread-tools) {
  grid-template-rows: 78px minmax(0, 1fr) 72px;
}

.reference-chat-shell.has-thread-tools {
  grid-template-rows: 78px auto minmax(0, 1fr) 72px;
}

.reference-chat-shell > .chat-profile-header {
  min-width: 0;
  padding: 12px 18px;
  display: grid;
  grid-template-columns: 38px 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.chat-header-actions {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.chat-shop-link {
  min-height: 34px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #d6e3f4;
  border-radius: 999px;
  color: #28486b;
  background: #f7fbff;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.chat-shop-link:hover {
  color: #173451;
  background: #eef6ff;
  border-color: #c8d7eb;
}

.chat-back-button,
.chat-profile-link {
  width: 38px;
  height: 38px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: #566174;
  background: transparent;
}

.chat-back-button:hover,
.chat-profile-link:hover {
  color: var(--ink);
  background: #f2f4f8;
}

.chat-back-button .ui-icon,
.chat-profile-link .ui-icon {
  width: 22px;
  height: 22px;
}

.reference-chat-shell .chat-profile-header > .avatar-tile {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: #fff;
  background: linear-gradient(135deg, #ec4e96, #a86be8);
  font-weight: 900;
}

.chat-profile-header > div {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.chat-profile-header > div b,
.chat-profile-header > div p {
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-profile-header > div b {
  color: var(--ink);
  font-size: 16px;
}

.chat-profile-header > div p {
  color: var(--muted);
  font-size: 12px;
}

.reference-chat-shell .chat-thread-tools {
  min-width: 0;
  overflow: visible;
}

.reference-chat-shell .chat-arrangement-panel {
  min-height: 74px;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid #d7e3f2;
  background: #eef6ff;
}

.reference-chat-shell .chat-arrangement-panel.needs-action {
  background: #fff9ef;
}

.reference-arrangement-panel > div:first-child {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.reference-arrangement-panel > div:first-child > b {
  color: var(--ink);
  font-size: 15px;
}

.reference-arrangement-panel > div:first-child > span {
  color: #587293;
  font-size: 12px;
}

.reference-arrangement-panel > div:first-child > small {
  color: #b64c12;
  font-size: 11px;
}

.reference-arrangement-panel .chat-arrangement-billing {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.reference-arrangement-panel .chat-arrangement-actions {
  margin-left: auto;
}

.reference-arrangement-panel .chat-arrangement-actions button {
  min-height: 44px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.reference-arrangement-panel .chat-arrangement-actions .ui-icon {
  width: 16px;
  height: 16px;
}

.reference-chat-shell .chat-followup-panel {
  border-bottom: 1px solid var(--line);
}

.reference-chat-shell .chat-followup-panel summary {
  min-height: 72px;
  padding: 10px 20px;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto 22px;
  align-items: center;
  gap: 12px;
  background: #fff;
}

.reference-chat-shell .chat-followup-summary-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: #59657a;
  background: #f4f5f8;
}

.reference-chat-shell .chat-followup-summary-icon .ui-icon {
  width: 21px;
  height: 21px;
}

.reference-chat-shell .chat-followup-summary-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.reference-chat-shell .chat-followup-summary-copy b {
  color: var(--ink);
  font-size: 15px;
}

.reference-chat-shell .chat-followup-summary-copy small {
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.reference-chat-shell .chat-followup-panel summary > em {
  margin-left: auto;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.chat-followup-chevron {
  color: #7b8496;
  font-style: normal;
  transition: transform 0.18s ease;
}

.chat-followup-chevron .ui-icon {
  width: 18px;
  height: 18px;
}

.reference-chat-shell .chat-followup-panel[open] .chat-followup-chevron {
  transform: rotate(180deg);
}

.reference-chat-shell .chat-followup-content {
  max-height: 270px;
  overflow-y: auto;
  padding: 0 20px 14px;
}

.reference-chat-shell .chat-followup-heading {
  padding-top: 10px;
}

.reference-chat-shell > .chat-body {
  min-height: 0;
  max-height: none;
  height: 100%;
  padding: 20px 24px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.reference-chat-shell > .message-reply-form {
  width: 100%;
  height: 72px;
  min-height: 72px;
  padding: 12px 18px;
  position: relative;
  display: flex;
  align-items: center;
  overflow: visible;
  border-top: 1px solid var(--line);
  background: #fff;
}

.reference-chat-shell .chat-composer {
  height: 46px;
  position: relative;
  display: block;
}

.reference-chat-shell .chat-compose-row {
  height: 46px;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.reference-chat-shell .chat-compose-row textarea {
  height: 44px;
  min-height: 44px;
  max-height: 44px;
  padding: 11px 13px;
  resize: none;
  overflow-y: auto;
}

.reference-chat-shell .chat-compose-actions {
  height: 46px;
  gap: 7px;
}

.reference-chat-shell .chat-compose-actions .icon-button,
.reference-chat-shell .chat-send-button {
  width: 42px;
  height: 42px;
  min-height: 42px;
  padding: 0;
  display: grid;
  place-items: center;
  flex: 0 0 42px;
}

.reference-chat-shell .chat-send-button {
  border-radius: 50%;
}

.reference-chat-shell .chat-send-button .ui-icon {
  width: 19px;
  height: 19px;
}

.reference-chat-shell .chat-emoji-panel,
.reference-chat-shell .chat-attachment-list {
  position: absolute;
  z-index: 15;
  right: 0;
  bottom: calc(100% + 8px);
  box-shadow: 0 16px 38px rgba(31, 42, 66, 0.16);
}

.reference-chat-shell .chat-emoji-panel {
  width: min(360px, calc(100vw - 40px));
  max-height: 190px;
}

.reference-chat-shell .chat-attachment-list {
  left: 0;
  right: auto;
  max-width: calc(100% - 10px);
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

@media (max-width: 760px) {
  .message-detail-page {
    width: 100%;
  }

  .reference-chat-shell {
    height: calc(100svh - 92px);
    min-height: 430px;
    grid-template-rows: 66px auto minmax(0, 1fr) 66px;
    border-radius: 8px;
  }

  .reference-chat-shell:not(.has-thread-tools) {
    grid-template-rows: 66px minmax(0, 1fr) 66px;
  }

  .reference-chat-shell.has-thread-tools {
    grid-template-rows: 66px auto minmax(0, 1fr) 66px;
  }

  .reference-chat-shell > .chat-profile-header {
    padding: 8px 10px;
    grid-template-columns: 32px 40px minmax(0, 1fr) auto;
    gap: 8px;
  }

  .chat-header-actions {
    gap: 6px;
  }

  .chat-shop-link {
    min-height: 30px;
    padding: 0 10px;
    font-size: 11px;
  }

  .chat-back-button,
  .chat-profile-link {
    width: 32px;
    height: 32px;
  }

  .reference-chat-shell .chat-profile-header > .avatar-tile {
    width: 40px;
    height: 40px;
  }

  .chat-profile-header > div b {
    font-size: 14px;
  }

  .reference-chat-shell .chat-arrangement-panel {
    min-height: 62px;
    padding: 9px 10px;
  }

  .reference-arrangement-panel .chat-arrangement-actions button {
    min-height: 38px;
    padding-inline: 12px;
    font-size: 12px;
  }

  .reference-chat-shell .chat-followup-panel summary {
    min-height: 62px;
    padding: 8px 10px;
    grid-template-columns: 36px minmax(0, 1fr) auto 18px;
    gap: 8px;
  }

  .reference-chat-shell .chat-followup-summary-icon {
    width: 36px;
    height: 36px;
    border-radius: 9px;
  }

  .reference-chat-shell .chat-followup-summary-copy b {
    font-size: 14px;
  }

  .reference-chat-shell .chat-followup-summary-copy small {
    font-size: 11px;
  }

  .arrangement-summary-list,
  .arrangement-field-grid,
  .boss-shop-grid {
    grid-template-columns: 1fr;
  }

  .arrangement-overview-head,
  .arrangement-template-head {
    flex-direction: column;
  }

  .reference-chat-shell .chat-followup-content {
    max-height: 250px;
    padding-inline: 10px;
  }

  .reference-chat-shell > .chat-body {
    padding: 14px 12px;
  }

  .reference-chat-shell > .message-reply-form {
    height: 66px;
    min-height: 66px;
    padding: 10px;
  }

  .reference-chat-shell .chat-compose-row,
  .reference-chat-shell .chat-composer {
    height: 42px;
  }

  .reference-chat-shell .chat-compose-row textarea {
    height: 40px;
    min-height: 40px;
    max-height: 40px;
    padding: 9px 10px;
    font-size: 13px;
  }

  .reference-chat-shell .chat-compose-actions {
    height: 42px;
    gap: 4px;
  }

  .reference-chat-shell .chat-compose-actions .icon-button,
  .reference-chat-shell .chat-send-button {
    width: 36px;
    height: 36px;
    min-height: 36px;
    flex-basis: 36px;
  }
}

@media (max-width: 600px) {
  .public-nav .nav-pill {
    display: none;
  }

  .hero-photo,
  .hero-copy {
    width: min(100%, 340px);
    justify-self: start;
  }

  .hero-lede,
  .split-lines {
    max-width: 340px;
  }
}

/* 2026 polish pass: warmer, more human, less dashboard-like on customer pages. */
body {
  font-size: 14px;
}

.public-top {
  background: rgba(255, 246, 252, 0.9);
  border-bottom: 1px solid rgba(245, 198, 224, 0.62);
  box-shadow: 0 14px 34px rgba(172, 85, 143, 0.12);
  backdrop-filter: blur(18px);
}

.public-top .brand-orb {
  color: #fff;
  background: linear-gradient(135deg, #ff5a9d, #b78cff);
}

.public-inner {
  width: min(1240px, calc(100% - 44px));
  height: 64px;
}

.public-nav {
  gap: 18px;
  font-size: 13px;
}

.nav-pill {
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(245, 198, 224, 0.74);
}

.hero-cinematic {
  min-height: min(720px, calc(100svh - 64px));
  padding: 64px 28px 58px;
  place-items: end center;
  isolation: isolate;
  background: #fff7fc;
}

.hero-cinematic::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -3;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0), #fff8fc 94%),
    linear-gradient(90deg, rgba(255, 250, 253, 1) 0%, rgba(255, 244, 251, 0.96) 35%, rgba(255, 234, 247, 0.78) 55%, rgba(245, 221, 255, 0.3) 100%),
    radial-gradient(circle at 82% 43%, rgba(247, 116, 177, 0.2), transparent 36%);
}

.hero-cinematic::after {
  content: "";
  position: absolute;
  top: 28px;
  right: max(40px, calc((100vw - 1240px) / 2));
  z-index: -2;
  width: min(46vw, 590px);
  height: calc(100% - 78px);
  background: url("./assets/xsr-about-poster-ai-v3.jpg") center / cover no-repeat;
  filter: saturate(1.03) contrast(0.98);
  opacity: 0.94;
  -webkit-mask-image: radial-gradient(ellipse at 52% 48%, #000 0 58%, rgba(0, 0, 0, 0.88) 68%, transparent 84%);
  mask-image: radial-gradient(ellipse at 52% 48%, #000 0 58%, rgba(0, 0, 0, 0.88) 68%, transparent 84%);
}

.hero-cinematic .hero-ref-inner {
  width: min(1240px, 100%);
  min-height: 560px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  align-items: center;
}

.hero-cinematic .hero-copy {
  width: min(620px, 100%);
  color: #2a1931;
  padding-bottom: 0;
}

.hero-club-name {
  width: fit-content;
  margin: 0 0 14px;
  color: transparent;
  background: linear-gradient(100deg, #e53e86 0%, #c34ea7 52%, #8d72e7 100%);
  -webkit-background-clip: text;
  background-clip: text;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: .08em;
}

.hero-cinematic .kicker {
  color: #e8438e;
}

.hero-cinematic .hero-copy h1 {
  margin: 18px 0 16px;
  color: #201225;
  font-size: clamp(48px, 6vw, 76px);
  line-height: 0.96;
  letter-spacing: 0;
}

.hero-statement {
  margin: 4px 0 16px;
  display: grid;
  gap: 4px;
  color: #9b4d87;
  font-size: 19px;
  line-height: 1.45;
  font-family: Georgia, "Noto Serif SC", serif;
}

.hero-statement b {
  color: #201225;
  font-weight: 500;
}

.hero-cinematic .hero-lede {
  max-width: 560px;
  color: rgba(48, 34, 56, 0.76);
  font-size: 16px;
  line-height: 1.95;
}

.hero-cinematic .split-lines {
  width: min(520px, 100%);
  gap: 18px;
  margin: 24px 0;
  padding: 18px 0;
  border-color: rgba(232, 120, 176, 0.2);
}

.hero-cinematic .split-lines span {
  color: rgba(90, 67, 101, 0.58);
}

.hero-cinematic .split-lines strong {
  color: #d73786;
}

.ghost.light {
  color: #7a2b70;
  background: rgba(255, 255, 255, 0.62);
  border-color: rgba(226, 145, 193, 0.44);
}

.hero-whisper {
  align-self: end;
  margin-bottom: 42px;
  padding: 22px 0 0;
  color: rgba(255, 244, 238, 0.76);
  border-top: 1px solid rgba(255, 244, 238, 0.28);
}

.hero-whisper span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  border-radius: 50%;
  color: #2b0d16;
  background: #ffd8c7;
  font-weight: 900;
}

.hero-whisper b {
  display: block;
  color: #fff;
  font-size: 20px;
  line-height: 1.35;
}

.hero-whisper p {
  margin: 10px 0 0;
  line-height: 1.9;
}

.features-band {
  background: #fff;
}

.feature-grid {
  gap: 54px;
}

.feature-card {
  min-height: 230px;
  padding: 0 8px 0 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.feature-card h3 {
  font-size: 21px;
}

.about-visual {
  background-image:
    linear-gradient(180deg, rgba(20, 8, 12, 0.08), rgba(20, 8, 12, 0.24)),
    url("./assets/xsr-lounge-ambient.png");
}

.about-story {
  background:
    linear-gradient(110deg, rgba(255, 243, 250, 0.9), rgba(255, 255, 255, 0.94) 42%, rgba(247, 235, 255, 0.76)),
    #fff8fc;
}

.about-story-head {
  width: min(900px, 100%);
}

.about-kicker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  color: #8a6f82;
  text-transform: none;
  font-size: 15px;
  letter-spacing: 6px;
  font-weight: 500;
}

.about-kicker span {
  width: 74px;
  height: 1px;
  display: inline-block;
  background: #ff76aa;
}

.about-story .section-head h2 {
  margin-top: 24px;
  font-size: 42px;
}

.about-story-layout {
  width: min(1180px, 100%);
  grid-template-columns: minmax(360px, 0.82fr) minmax(0, 1fr);
  gap: 70px;
}

.about-poster {
  position: relative;
  margin: 0;
  min-height: 560px;
  border-radius: var(--radius);
  overflow: visible;
  filter: drop-shadow(0 30px 62px rgba(91, 42, 82, 0.14));
}

.about-poster img {
  width: 100%;
  height: 100%;
  min-height: 560px;
  display: block;
  object-fit: cover;
  object-position: center;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.72);
  filter: saturate(1.02) contrast(0.98);
}

.about-poster-badge {
  position: absolute;
  right: -30px;
  bottom: 34px;
  min-width: 218px;
  min-height: 86px;
  padding: 16px 18px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2px 14px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 22px 44px rgba(90, 46, 82, 0.16);
  backdrop-filter: blur(16px);
}

.about-poster-badge .brand-orb {
  grid-row: span 2;
}

.about-poster-badge b {
  color: #f83c83;
  font-family: Georgia, "Noto Serif SC", serif;
  font-size: 28px;
  font-style: italic;
}

.about-poster-badge small {
  color: #7d6980;
  font-size: 13px;
  white-space: nowrap;
}

.about-story-copy {
  align-self: center;
}

.about-story-copy p {
  color: #1d2740;
  font-size: 16px;
}

.about-story-copy blockquote {
  margin: 28px 0;
  padding: 12px 0 12px 26px;
  border-left: 2px solid #ff4f93;
  font-size: 22px;
  font-style: italic;
}

.about-values {
  grid-template-columns: repeat(3, 1fr);
  margin-top: 34px;
  border-color: #f0dbe7;
}

.about-values span {
  display: grid;
  gap: 8px;
}

.about-values i {
  color: #ff4f93;
  font-family: Georgia, serif;
  font-size: 13px;
  font-style: italic;
  font-weight: 700;
}

.about-values b {
  color: var(--ink);
  font-size: 17px;
}

.about-footnote {
  margin: 28px 0 0;
  color: #8d7a8a !important;
  font-family: Georgia, "Noto Serif SC", serif;
  font-style: italic;
  text-align: center;
}

.features-kicker {
  color: #b35a8a;
  letter-spacing: 0.18em;
}

.quick-grid {
  gap: 14px;
}

.quick-card,
.quick-card:first-child,
.quick-card:last-child {
  border-radius: var(--radius);
}

.quick-card {
  min-height: 108px;
  border-color: #e8dde2;
  box-shadow: 0 14px 34px rgba(36, 14, 23, 0.05);
}

.quick-card .ui-icon {
  color: #7c2942;
  background: #fff1e8;
}

.profile-visual {
  background:
    linear-gradient(180deg, rgba(255, 248, 252, 0.34), rgba(255, 231, 246, 0.52)),
    radial-gradient(circle at 70% 26%, rgba(181, 136, 255, 0.28), transparent 34%),
    url("./assets/xsr-about-poster-ai-v3.jpg") center / cover no-repeat;
}

.profile-visual::before {
  inset: 18px;
  border: 1px solid rgba(255, 244, 238, 0.34);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(255, 244, 238, 0.2), rgba(255, 244, 238, 0.02));
}

.vip-hero {
  min-height: 240px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.36fr);
  gap: 22px;
  align-items: end;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(255, 250, 253, 0.98) 0%, rgba(255, 241, 250, 0.94) 48%, rgba(246, 224, 255, 0.56) 100%),
    radial-gradient(circle at 76% 42%, rgba(255, 86, 151, 0.17), transparent 34%),
    url("./assets/xsr-about-poster-ai-v3.jpg") right -22px center / auto 126% no-repeat;
  box-shadow: 0 28px 70px rgba(174, 89, 151, 0.13);
}

.vip-copy {
  max-width: 620px;
}

.vip-hero p {
  color: #e8438e;
}

.vip-hero h1,
.vip-hero h2,
.vip-hero span {
  color: #201225;
}

.vip-picked {
  padding: 18px;
  display: grid;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 22px 46px rgba(127, 63, 117, 0.13);
  backdrop-filter: blur(16px);
}

.vip-picked small {
  color: #8a7289;
}

.vip-picked b,
.vip-picked strong {
  color: #201225;
}

.vip-picked strong {
  font-size: 22px;
}

.vip-note {
  margin-top: 18px;
  border-color: #f0d9df;
  background: #fffaf8;
}

.plan-card {
  min-height: 172px;
  border-color: #ead8dd;
  background: linear-gradient(180deg, #fff, #fffaf8);
}

.plan-card.selected {
  background: #fff5f0;
}

.checkout-layout {
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.72fr);
}

.payment-scene {
  min-height: 210px;
  grid-column: 1 / -1;
  display: grid;
  align-items: end;
  padding: 28px;
  overflow: hidden;
  border-radius: var(--radius);
  color: #201225;
  background:
    linear-gradient(90deg, rgba(255, 250, 253, 0.98) 0%, rgba(255, 241, 250, 0.92) 50%, rgba(246, 224, 255, 0.48) 100%),
    radial-gradient(circle at 82% 46%, rgba(255, 86, 151, 0.14), transparent 34%),
    url("./assets/xsr-about-poster-ai-v3.jpg") right 18% center / auto 150% no-repeat;
  box-shadow: 0 22px 58px rgba(174, 89, 151, 0.12);
}

.payment-scene div {
  max-width: 460px;
}

.payment-scene span,
.support-visual span {
  color: #e8438e;
  font-size: 12px;
  font-weight: 900;
}

.payment-scene b,
.support-visual b {
  display: block;
  margin: 8px 0;
  color: #201225;
  font-size: 24px;
  line-height: 1.35;
  font-family: Georgia, "Noto Serif SC", serif;
}

.payment-scene p,
.support-visual p {
  margin: 0;
  color: rgba(48, 34, 56, 0.76);
  line-height: 1.8;
}

.order-summary,
.qr-panel {
  border-color: #ead8dd;
}

.countdown {
  min-width: 86px;
  color: #7a263f;
  background: #fff0e9;
}

.qr-panel img {
  width: 176px;
  padding: 10px;
  border: 1px solid #f0d9df;
  border-radius: var(--radius);
  background: #fff;
}

.support-visual {
  max-width: 760px;
  min-height: 176px;
  display: grid;
  align-items: end;
  margin-bottom: 16px;
  padding: 24px;
  overflow: hidden;
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, rgba(255, 250, 253, 0.98) 0%, rgba(255, 241, 250, 0.92) 54%, rgba(246, 224, 255, 0.42) 100%),
    radial-gradient(circle at 84% 36%, rgba(255, 86, 151, 0.14), transparent 34%),
    url("./assets/xsr-about-poster-ai-v3.jpg") right 18% center / auto 158% no-repeat;
  box-shadow: 0 22px 58px rgba(174, 89, 151, 0.12);
}

.chat-shell {
  border-color: #ead8dd;
  box-shadow: 0 24px 60px rgba(54, 18, 30, 0.08);
}

.chat-shell header {
  background: #fffaf8;
}

.chat-body {
  background:
    linear-gradient(180deg, rgba(255, 250, 248, 0.92), rgba(247, 248, 251, 0.96)),
    #f7f8fb;
}

.chat-bubble p {
  border-color: #eadfe3;
}

.profile-layout {
  align-items: start;
}

.profile-side {
  position: sticky;
  top: 90px;
  border-color: #ead8dd;
  box-shadow: 0 18px 42px rgba(36, 14, 23, 0.05);
}

.form-panel {
  border-color: #ead8dd;
  box-shadow: 0 18px 42px rgba(36, 14, 23, 0.05);
}

.soft-notice {
  background:
    linear-gradient(180deg, rgba(255, 250, 248, 0.94), rgba(255, 255, 255, 0.96)),
    #fff;
}

.blue-note {
  border-color: #efd6e6;
  background:
    linear-gradient(135deg, rgba(255, 249, 252, 0.98), rgba(248, 236, 255, 0.76)),
    #fff;
}

@media (max-width: 1180px) {
  .hero-cinematic .hero-ref-inner,
  .vip-hero,
  .checkout-layout {
    grid-template-columns: 1fr;
  }

  .hero-whisper {
    max-width: 520px;
    margin: 0 0 32px;
  }

  .about-story-layout {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .about-poster {
    width: min(560px, 100%);
    justify-self: center;
  }

  .manual-intro,
  .anti-loss-hero,
  .wallet-guide,
  .invite-hero {
    grid-template-columns: 1fr;
  }

  .manual-intro-grid,
  .anti-loss-grid,
  .wallet-quick-grid,
  .invite-quick-grid,
  .support-quick-grid,
  .toc {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .public-inner {
    min-height: 60px;
  }

  .hero-cinematic {
    min-height: 640px;
    padding: 42px 18px 36px;
  }

  .hero-cinematic::before {
    background:
      linear-gradient(180deg, rgba(255, 250, 253, 0.94) 0%, rgba(255, 240, 249, 0.9) 46%, rgba(255, 231, 246, 0.76) 100%),
      radial-gradient(circle at 62% 26%, rgba(247, 116, 177, 0.18), transparent 44%);
  }

  .hero-cinematic::after {
    top: 64px;
    right: -160px;
    width: calc(100% + 140px);
    height: 56%;
    opacity: 0.18;
  }

  .hero-cinematic .hero-ref-inner {
    min-height: 560px;
    gap: 18px;
    align-items: start;
  }

  .hero-cinematic .hero-copy {
    width: min(100%, 354px);
    max-width: 100%;
    padding-bottom: 0;
  }

  .hero-club-name {
    margin-bottom: 12px;
    font-size: 14px;
  }

  .hero-cinematic .hero-copy h1 {
    font-size: 44px;
  }

  .hero-statement {
    font-size: 17px;
  }

  .hero-cinematic .hero-lede,
  .hero-cinematic .split-lines {
    width: 100%;
    max-width: 354px;
  }

  .hero-cinematic .hero-lede,
  .hero-cinematic .split-lines strong,
  .section-head h2,
  .feature-card p,
  .about-story-copy p,
  .faq-list p {
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .hero-whisper {
    display: none;
  }

  .payment-scene,
  .support-visual {
    min-height: 180px;
    padding: 22px;
  }

  .support-shell {
    height: min(520px, calc(100vh - 320px));
  }

  .manual-intro-grid,
  .anti-loss-grid,
  .wallet-quick-grid,
  .invite-quick-grid,
  .support-quick-grid,
  .toc {
    grid-template-columns: 1fr;
  }

  .activity-guide-card {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .activity-guide-link {
    width: 100%;
    margin-left: 64px;
    text-align: left;
  }

  .vip-hero {
    padding: 24px;
  }

  .profile-side {
    position: static;
  }

  .about-kicker {
    gap: 12px;
    font-size: 12px;
    letter-spacing: 3px;
  }

  .about-kicker span {
    width: 42px;
  }

  .about-story .section-head h2 {
    font-size: 30px;
  }

  .features-band .section-head h2 {
    width: min(100%, 330px);
    margin-inline: auto;
    font-size: 25px;
    line-height: 1.45;
  }

  .about-poster,
  .about-poster img {
    min-height: 430px;
  }

  .about-poster-badge {
    right: 14px;
    bottom: 14px;
    min-width: 0;
    max-width: calc(100% - 28px);
  }

  .about-story-copy blockquote {
    font-size: 19px;
  }
}

/* Mobile parity: keep public navigation visible and make the dashboard drawer readable when opened. */
@media (max-width: 760px) {
  .public-top,
  .dash-top {
    position: sticky;
    top: 0;
  }

  .public-top {
    z-index: 50;
  }

  .public-inner {
    width: calc(100% - 24px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
  }

  .public-inner > .brand {
    flex: 0 0 auto;
  }

  .public-nav {
    gap: 7px;
    font-size: 11px;
    flex: 1 1 auto;
    min-width: 0;
    justify-content: flex-end;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .public-nav::-webkit-scrollbar {
    display: none;
  }

  .public-nav a:not(.nav-pill):nth-child(n + 2),
  .public-nav .nav-pill {
    display: inline-flex;
    white-space: nowrap;
    flex: 0 0 auto;
  }

  .public-nav .nav-pill {
    min-height: 32px;
    padding: 0 8px;
  }

  .sidebar {
    width: min(292px, calc(100vw - 52px));
    padding: 20px 16px;
    box-shadow: 18px 0 42px rgba(34, 24, 48, .16);
  }

  body.side-collapsed .sidebar {
    padding: 20px 16px;
  }

  body.side-collapsed .side-brand {
    display: block;
    margin-bottom: 24px;
  }

  body.side-collapsed .sidebar .side-brand .brand-copy,
  body.side-collapsed .sidebar .user-chip div,
  body.side-collapsed .sidebar .side-menu span:not(.ui-icon) {
    display: grid;
  }

  body.side-collapsed .sidebar .side-brand .brand-copy small {
    display: block;
  }

  body.side-collapsed .user-chip {
    min-height: 74px;
    padding: 12px;
    justify-content: flex-start;
    background: #f4f6fa;
  }

  body.side-collapsed .side-menu a {
    justify-content: flex-start;
    padding: 0 12px;
  }

  body.is-dashboard .dash-top {
    z-index: 45;
  }
}

/* Final overrides for the 2026-07-31 polish pass. */
.text-link {
  width: auto;
  min-height: auto;
  padding: 0;
  color: var(--pink);
  border: 0;
  background: transparent;
  font-weight: 900;
}

.account-menu {
  position: relative;
}

.account-pill {
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.account-pill[aria-expanded="true"] {
  border-color: rgba(248, 60, 131, 0.28);
  background: #fff9fc;
  box-shadow: 0 16px 34px rgba(104, 43, 87, 0.1);
}

.account-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  z-index: 40;
  width: 302px;
  padding: 14px;
  display: grid;
  gap: 10px;
  border: 1px solid rgba(229, 216, 226, 0.96);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 24px 70px rgba(40, 21, 39, 0.16);
  backdrop-filter: blur(18px);
}

.account-dropdown[hidden] {
  display: none;
}

.account-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 8px 14px;
  border-bottom: 1px solid #eee2e9;
}

.account-card-head b,
.account-card-head small {
  display: block;
}

.account-card-head small {
  margin-top: 3px;
  color: #7b7082;
}

.account-dropdown > button {
  min-height: 42px;
  padding: 0 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 0;
  border-radius: 8px;
  color: #2a3347;
  background: transparent;
  text-align: left;
  font-weight: 900;
}

.account-dropdown > button:hover {
  background: #fff1f7;
}

.account-dropdown > button.danger {
  color: #e13f67;
}

.account-role-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.account-role-row button {
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid #ead8df;
  border-radius: 999px;
  color: #6f6174;
  background: #fff;
  font-size: 12px;
  font-weight: 900;
}

.account-role-row button.active {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(90deg, var(--pink), var(--coral));
}

.modal-layer {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(22, 17, 28, 0.36);
  backdrop-filter: blur(8px);
}

.media-viewer-layer {
  position: fixed;
  inset: 0;
  z-index: 140;
  display: grid;
  place-items: center;
  padding: 0;
  background: rgba(0, 0, 0, 0.94);
  backdrop-filter: blur(6px);
}

.media-viewer {
  position: relative;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  display: grid;
  grid-template-rows: minmax(0, 1fr) 88px;
  gap: 0;
  overflow: hidden;
  padding: 44px 88px 0;
  border: 0;
  border-radius: 0;
  background: #0b090e;
  box-shadow: none;
}

.media-viewer.single-media {
  grid-template-rows: minmax(0, 1fr);
  padding-bottom: 24px;
}

.media-viewer-count {
  position: absolute;
  top: 20px;
  left: 24px;
  z-index: 2;
  color: rgba(255, 255, 255, 0.78);
  font-size: 17px;
  font-weight: 900;
}

.media-viewer-stage {
  width: 100%;
  height: 100%;
  max-height: none;
  margin: 0 auto;
  min-height: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.media-viewer-stage img,
.media-viewer-stage video {
  max-width: 100%;
  max-height: 100%;
  display: block;
  border-radius: 6px;
  object-fit: contain;
}

.media-viewer-stage .media-viewer-media.is-image {
  width: min(920px, calc(100vw - 176px));
  height: min(720px, calc(100dvh - 156px));
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
}

.media-viewer-stage .media-viewer-media.is-video {
  width: min(540px, calc(100vw - 176px));
  height: min(680px, calc(100dvh - 156px));
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  border-radius: 10px;
  background: #09070d;
}

.media-viewer-close,
.media-viewer-nav {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.24);
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
}

.media-viewer-close {
  top: 17px;
  right: 22px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 24px;
  line-height: 1;
}

.media-viewer-nav {
  top: 50%;
  width: 46px;
  height: 64px;
  border-radius: 999px;
  font-size: 38px;
  transform: translateY(-50%);
}

.media-viewer-nav.prev {
  left: 24px;
}

.media-viewer-nav.next {
  right: 24px;
}

.media-viewer-thumbs {
  min-height: 0;
  height: 88px;
  display: flex;
  justify-content: center;
  gap: 10px;
  overflow-x: auto;
  padding: 8px 16px 12px;
  background: rgba(24, 17, 25, 0.76);
}

.media-viewer-thumbs button {
  position: relative;
  flex: 0 0 82px;
  height: 68px;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  opacity: 0.62;
}

.media-viewer-thumbs button.active {
  border-color: #ff9bc8;
  opacity: 1;
}

.media-viewer-thumbs img,
.media-viewer-thumbs video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.media-viewer-thumbs span {
  position: absolute;
  right: 5px;
  bottom: 5px;
  padding: 3px 5px;
  border-radius: 999px;
  color: #fff;
  background: rgba(20, 13, 25, 0.72);
  font-size: 11px;
  font-weight: 900;
}

.reset-modal {
  position: relative;
  width: min(520px, 100%);
  padding: 26px;
  display: grid;
  gap: 14px;
  border: 1px solid rgba(255, 226, 239, 0.92);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 250, 253, 0.98), rgba(248, 239, 255, 0.92)),
    #fff;
  box-shadow: 0 34px 92px rgba(51, 24, 49, 0.22);
}

.reset-modal h2,
.reset-modal p {
  margin: 0;
}

.reset-lede,
.reset-email-note {
  color: #6f6174;
  line-height: 1.8;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border: 1px solid #ead8df;
  border-radius: 50%;
  color: #7b6072;
  background: #fff;
  font-size: 20px;
  line-height: 1;
}

.reset-email-note {
  padding: 14px;
  border: 1px solid #f1dbe6;
  border-radius: 8px;
  background: #fff9fc;
}

.reset-form {
  display: grid;
  gap: 12px;
}

body.is-dashboard {
  font-size: 13.5px;
}

body.is-dashboard .dashboard {
  grid-template-columns: 236px minmax(0, 1fr);
}

body.is-dashboard .sidebar {
  padding: 18px 14px;
}

body.is-dashboard .dash-top {
  height: 62px;
  padding-inline: 22px;
}

body.is-dashboard .dash-main {
  width: min(1320px, calc(100% - 44px));
  margin: 28px auto 56px;
}

body.is-dashboard .page-head h1,
body.is-dashboard .catalog-head h1 {
  font-size: 30px;
}

body.side-collapsed .dashboard {
  grid-template-columns: 70px minmax(0, 1fr);
}

body.side-collapsed .sidebar {
  padding: 16px 9px;
}

body.side-collapsed .side-brand {
  display: grid;
  justify-content: center;
  margin-bottom: 18px;
}

body.side-collapsed .user-chip {
  min-height: 48px;
  padding: 0;
  justify-content: center;
  background: transparent;
}

body.side-collapsed .user-chip .avatar-tile {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

body.side-collapsed .side-menu a {
  min-height: 42px;
  padding: 0;
}

.vip-hero {
  min-height: 220px;
}

.plan-grid {
  gap: 14px;
}

.plan-card {
  min-height: 158px;
  padding: 18px;
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.plan-card.selected {
  border-color: #ff3f8a;
  background: linear-gradient(180deg, #fff8f2, #fff5fa);
  box-shadow: inset 0 0 0 1px rgba(255, 63, 138, 0.18), 0 18px 44px rgba(248, 60, 131, 0.12);
}

.vip-note {
  border-color: rgba(198, 143, 46, 0.5);
  background:
    linear-gradient(#fffaf8, #fffaf8) padding-box,
    linear-gradient(115deg, rgba(220, 171, 78, 0.78), rgba(255, 221, 143, 0.36), rgba(248, 60, 131, 0.34)) border-box;
  box-shadow: 0 16px 40px rgba(127, 81, 32, 0.06);
}

.vip-note mark {
  padding: 0 3px;
  color: transparent;
  background: linear-gradient(100deg, #8e5c12, #d9a84e 46%, #ffdf8d);
  -webkit-background-clip: text;
  background-clip: text;
  font-weight: 900;
}

.dashboard.member-on .avatar-tile,
.user-chip.member-on .avatar-tile,
.account-pill.member-on .avatar-tile {
  color: #fff;
  background:
    linear-gradient(135deg, rgba(255, 92, 157, 0.96), rgba(153, 104, 255, 0.92)),
    #f83c83;
  box-shadow: 0 10px 28px rgba(176, 88, 196, 0.2);
}

.user-chip.member-on {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(219, 174, 91, 0.32);
  background:
    linear-gradient(#fff7fc, #fff7fc) padding-box,
    linear-gradient(120deg, rgba(255, 87, 151, 0.42), rgba(176, 113, 255, 0.38), rgba(225, 181, 94, 0.46)) border-box;
  box-shadow: 0 16px 36px rgba(142, 80, 166, 0.1);
}

.user-chip.member-on::after {
  content: "";
  position: absolute;
  inset: auto -28px -36px auto;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 204, 230, 0.62), transparent 68%);
  pointer-events: none;
}

.user-chip em,
.account-card-head em {
  display: inline-flex;
  width: fit-content;
  margin-top: 6px;
  padding: 4px 8px;
  border-radius: 999px;
  color: #86530e;
  background: linear-gradient(100deg, rgba(255, 244, 212, 0.98), rgba(255, 232, 246, 0.9));
  border: 1px solid rgba(207, 159, 62, 0.34);
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

.member-glint {
  width: fit-content;
  margin-top: 3px;
  padding: 3px 8px;
  border-radius: 999px;
  color: #8d5614;
  background: linear-gradient(105deg, rgba(255, 246, 221, 0.98), rgba(255, 232, 246, 0.94));
  border: 1px solid rgba(207, 159, 62, 0.32);
  font-size: 10px;
  font-weight: 1000;
  letter-spacing: 0;
}

.account-pill.member-on {
  border-color: rgba(214, 165, 72, 0.35);
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(105deg, rgba(248, 60, 131, 0.54), rgba(179, 124, 255, 0.42), rgba(224, 181, 87, 0.48)) border-box;
  box-shadow: 0 14px 34px rgba(141, 74, 162, 0.11);
}

.account-pill.member-on strong {
  padding: 4px 9px;
  border-radius: 999px;
  color: #8d5614;
  background: linear-gradient(95deg, #fff6d7, #ffe9f6 72%);
  border: 1px solid rgba(205, 158, 63, 0.34);
  font-size: 11px;
  line-height: 1;
  white-space: nowrap;
}

.account-card-head.member-on {
  margin: -2px -2px 0;
  padding: 12px 10px 16px;
  border-radius: 8px;
  border: 1px solid rgba(223, 182, 93, 0.28);
  background: linear-gradient(135deg, rgba(255, 247, 252, 0.98), rgba(247, 240, 255, 0.92));
}

.member-identity-card {
  width: min(760px, 100%);
  margin: 0 0 14px;
  padding: 13px 14px;
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background:
    linear-gradient(105deg, rgba(255, 249, 253, 0.99), rgba(248, 241, 255, 0.95)) padding-box,
    linear-gradient(115deg, rgba(248, 60, 131, 0.48), rgba(157, 114, 255, 0.44), rgba(218, 168, 78, 0.5)) border-box;
  box-shadow: 0 16px 40px rgba(132, 72, 168, 0.09);
}

.member-identity-card::after {
  content: "";
  position: absolute;
  right: -48px;
  top: -68px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 221, 157, 0.36), rgba(255, 157, 211, 0.18) 48%, transparent 70%);
  pointer-events: none;
}

.member-identity-card > span {
  min-height: 34px;
  padding: 0 12px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  color: #fff;
  background:
    linear-gradient(135deg, rgba(248, 60, 131, 0.98), rgba(157, 114, 255, 0.96)),
    #f83c83;
  box-shadow: 0 12px 28px rgba(169, 88, 202, 0.18);
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

.member-identity-card div {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.member-identity-card b,
.member-identity-card p {
  margin: 0;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.member-identity-card b {
  color: #362143;
  font-size: 16px;
}

.member-identity-card p {
  color: #7b6389;
  font-size: 12px;
  line-height: 1.5;
}

.member-identity-card em {
  min-height: 30px;
  padding: 0 10px;
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(207, 159, 62, 0.36);
  border-radius: 999px;
  color: #8d5614;
  background: linear-gradient(95deg, rgba(255, 247, 221, 0.96), rgba(255, 234, 247, 0.9));
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
  white-space: nowrap;
}

.membership-panel.member-on {
  position: relative;
  grid-template-columns: auto minmax(0, 1fr) minmax(220px, auto) auto;
  overflow: hidden;
  border: 1px solid transparent;
  background:
    linear-gradient(90deg, rgba(255, 247, 252, 0.98), rgba(248, 240, 255, 0.92)) padding-box,
    linear-gradient(112deg, rgba(248, 60, 131, 0.45), rgba(169, 111, 255, 0.36), rgba(224, 181, 87, 0.42)) border-box;
  box-shadow: 0 22px 58px rgba(146, 77, 170, 0.12);
}

.membership-panel.member-on::after {
  content: "";
  position: absolute;
  right: 8%;
  top: -54px;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 196, 225, 0.5), transparent 68%);
  pointer-events: none;
}

.membership-panel.member-on > span {
  color: #fff;
  background: linear-gradient(135deg, #ff5596, #9d72ff);
  box-shadow: 0 16px 32px rgba(172, 87, 201, 0.22);
}

.membership-panel.member-on h2 {
  color: transparent;
  background: linear-gradient(95deg, #06142a, #9a5cff 54%, #d9a84e);
  -webkit-background-clip: text;
  background-clip: text;
}

.membership-panel.member-on i {
  position: relative;
  z-index: 1;
  max-width: 280px;
  color: #785f8f;
  font-style: normal;
  line-height: 1.7;
}

.conversation-item.member-thread {
  border-color: rgba(216, 174, 96, 0.28);
  background:
    linear-gradient(135deg, rgba(255, 250, 253, 0.98), rgba(249, 243, 255, 0.92)),
    #fff;
  box-shadow: 0 14px 34px rgba(120, 72, 150, 0.07);
}

.conversation-item.member-thread b {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.conversation-item.member-thread b i {
  padding: 3px 7px;
  border-radius: 999px;
  color: #8d5614;
  background: linear-gradient(95deg, #fff7dd, #ffe9f6);
  border: 1px solid rgba(208, 160, 66, 0.32);
  font-size: 11px;
  font-style: normal;
}

.chat-shell.member-on {
  border-color: rgba(219, 174, 91, 0.3);
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(115deg, rgba(248, 60, 131, 0.34), rgba(156, 107, 255, 0.3), rgba(222, 178, 83, 0.34)) border-box;
  box-shadow: 0 26px 68px rgba(108, 57, 136, 0.13);
}

.chat-shell.member-on header {
  background: linear-gradient(100deg, rgba(255, 248, 252, 0.98), rgba(247, 241, 255, 0.94));
}

.chat-shell header em {
  margin-left: auto;
  padding: 6px 10px;
  border-radius: 999px;
  color: #8d5614;
  background: linear-gradient(95deg, #fff6d7, #ffeaf6);
  border: 1px solid rgba(205, 158, 63, 0.34);
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
  white-space: nowrap;
}

.chat-shell.member-on .chat-body {
  background:
    linear-gradient(180deg, rgba(255, 250, 253, 0.96), rgba(247, 242, 255, 0.84)),
    #f8f5fb;
}

.chat-bubble.member-bubble span {
  justify-self: end;
  color: #8d5614;
}

.chat-bubble.member-bubble p {
  color: #fff;
  border-color: rgba(255, 222, 154, 0.5);
  background:
    linear-gradient(135deg, rgba(255, 73, 142, 0.98), rgba(158, 103, 255, 0.95)),
    #f83c83;
  box-shadow: 0 16px 34px rgba(156, 91, 205, 0.18);
}

.chat-bubble.service-bubble p {
  border-color: rgba(230, 213, 225, 0.9);
  background: linear-gradient(135deg, #fff, #fff7fb);
  box-shadow: 0 10px 26px rgba(80, 46, 71, 0.05);
}

/* Every message stays an independent row: outgoing right, incoming left. */
.chat-body .chat-bubble {
  width: fit-content;
  min-width: 0;
  max-width: min(72%, 560px);
}

.chat-body .chat-bubble.mine,
.chat-body .chat-bubble.outgoing-message {
  justify-self: end;
}

.chat-body .chat-bubble:not(.mine),
.chat-body .chat-bubble.incoming-message {
  justify-self: start;
}

.chat-body .chat-bubble.outgoing-message > span {
  justify-self: end;
  text-align: right;
}

.chat-body .chat-bubble.boss-message,
.chat-body .chat-bubble.girl-message,
.chat-body .chat-bubble.broker-message,
.chat-body .chat-bubble.agent-message,
.chat-body .chat-bubble.service-message {
  margin-block: 1px;
}

.chat-body .chat-bubble.boss-message p {
  color: #6f2346;
  background: #fff0f5;
  border-color: #f4c6d8;
  box-shadow: 0 8px 20px rgba(190, 84, 126, 0.08);
}

.chat-body .chat-bubble.broker-message p {
  color: #214765;
  background: #edf6fb;
  border-color: #c6dfea;
  box-shadow: 0 8px 20px rgba(57, 113, 143, 0.08);
}

.chat-body .chat-bubble.girl-message p {
  color: #155e58;
  background: #eaf8f5;
  border-color: #bfe5dd;
  box-shadow: 0 8px 20px rgba(25, 127, 113, 0.08);
}

.chat-body .chat-bubble.agent-message p {
  color: #7a4b1c;
  background: #fff5e8;
  border-color: #f0d39f;
  box-shadow: 0 8px 20px rgba(177, 119, 39, 0.08);
}

.chat-body .chat-bubble.service-message p {
  color: #4c4268;
  background: #f3f0fb;
  border-color: #d8d0ee;
  box-shadow: 0 8px 20px rgba(86, 68, 141, 0.07);
}

.chat-body .chat-bubble.boss-message > span {
  color: #b14f79;
}

.chat-body .chat-bubble.broker-message > span {
  color: #4e7c98;
}

.chat-body .chat-bubble.girl-message > span {
  color: #2c8a7d;
}

.chat-body .chat-bubble.agent-message > span {
  color: #b4772d;
}

.chat-body .chat-bubble.service-message > span {
  color: #7568a0;
}

@media (max-width: 760px) {
  .agent-invite-hero,
  .agent-domain-row {
    grid-template-columns: 1fr;
  }

  .agent-invite-stats,
  .agent-poster-grid,
  .agent-rule-grid,
  .agent-flow-steps,
  .code-buy-steps {
    grid-template-columns: 1fr;
  }

  .agent-invite-copy h2 {
    font-size: 24px;
  }

  .agent-flow-panel {
    justify-items: start;
  }

  .agent-copy-list article > div {
    display: grid;
  }

  .account-pill.member-on strong {
    display: none;
  }

  .membership-panel.member-on {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .membership-panel.member-on i {
    max-width: none;
  }

  .member-identity-card {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .member-identity-card em {
    grid-column: 2;
    width: fit-content;
  }

  .chat-shell header {
    flex-wrap: wrap;
  }

  .thread-shell,
  .support-shell {
    grid-template-rows: auto minmax(240px, 52vh) auto;
  }

  .thread-shell.has-thread-tools {
    grid-template-rows: auto auto minmax(240px, 52vh) auto;
  }

  .chat-arrangement-panel {
    padding: 10px;
    align-items: stretch;
    flex-direction: column;
    gap: 9px;
  }

  .chat-arrangement-actions {
    justify-content: flex-end;
  }

  .chat-followup-content {
    padding: 0 10px 10px;
  }

  .chat-followup-content form {
    grid-template-columns: minmax(0, 1fr);
  }

  .chat-followup-content form button {
    width: 100%;
  }

  .thread-shell .chat-body,
  .support-shell .chat-body {
    min-height: 0;
    max-height: none;
  }

  .chat-shell header em {
    margin-left: 54px;
  }

  .chat-bubble {
    max-width: 90%;
  }
}

.payment-layout {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.56fr);
  gap: 16px;
}

.payment-scene {
  min-height: 190px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 22px;
  border: 1px solid rgba(238, 211, 224, 0.82);
}

.payment-steps {
  min-width: 310px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.payment-steps span {
  min-height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(216, 169, 82, 0.28);
  border-radius: 999px;
  color: #7a5c2e;
  background: rgba(255, 250, 242, 0.86);
  font-size: 12px;
  font-weight: 900;
}

.payment-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 250, 253, 0.96)),
    #fff;
  box-shadow: 0 20px 50px rgba(54, 18, 30, 0.07);
}

.order-amount {
  padding: 18px;
  display: grid;
  gap: 4px;
  border-radius: 8px;
  background: linear-gradient(135deg, #fff6fa, #fff8ee);
  border: 1px solid rgba(232, 196, 134, 0.34);
}

.order-amount span {
  color: #7d7182;
  font-size: 12px;
  font-weight: 900;
}

.order-amount small {
  width: fit-content;
  color: #9c8b9a;
  font-size: 12px;
  font-weight: 900;
  text-decoration: line-through;
  text-decoration-thickness: 2px;
  text-decoration-color: rgba(248, 60, 131, 0.3);
}

.order-amount strong {
  font-size: 32px;
}

.order-amount em {
  width: fit-content;
  padding: 5px 10px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(90deg, #ff5a98, #9d72ff);
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.order-lines {
  display: grid;
  gap: 2px;
}

.order-lines p {
  min-height: 40px;
  margin: 0;
  padding: 9px 0;
  border-bottom: 1px solid #f0e5eb;
}

.order-lines .discount-line b {
  color: #8e3d7e;
}

.order-lines .muted-price {
  color: #9c8b9a;
  text-decoration: line-through;
  text-decoration-thickness: 2px;
  text-decoration-color: rgba(248, 60, 131, 0.28);
}

.payment-actions {
  display: grid;
  gap: 10px;
}

.cancel-order-button {
  color: #8d3656;
  border-color: rgba(248, 60, 131, 0.22);
  background: #fff7fb;
}

.qr-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
}

.qr-head h3 {
  margin-bottom: 4px;
}

.qr-head span {
  color: #7d7182;
  font-size: 12px;
  font-weight: 900;
}

.qr-head b {
  color: var(--pink);
  white-space: nowrap;
}

.qr-frame {
  width: min(210px, 100%);
  margin: 16px auto;
  padding: 12px;
  border: 1px solid rgba(216, 169, 82, 0.32);
  border-radius: 8px;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 246, 251, 0.96);
}

.qr-panel img {
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
}

.qr-panel .copy-row {
  align-items: stretch;
}

.qr-panel .copy-row input {
  min-width: 0;
}

.address-pay-card {
  align-content: start;
}

.pay-address-note {
  padding: 12px;
  border: 1px solid rgba(248, 60, 131, 0.14);
  border-radius: 8px;
  color: #685b70;
  background: #fff7fb;
  line-height: 1.7;
  font-size: 13px;
}

.payment-safe-list {
  display: grid;
  gap: 8px;
}

.payment-safe-list p {
  margin: 0;
  padding: 10px;
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(216, 169, 82, 0.24);
  border-radius: 8px;
  background: linear-gradient(135deg, #fff, #fff9ef);
  color: #5f5266;
  font-size: 13px;
  line-height: 1.55;
}

.payment-safe-list b {
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #7a4f11;
  background: linear-gradient(135deg, #fff7cf, #e8bd61);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.72);
}

.broker-workbar,
.broker-batch-row {
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.broker-workbar button,
.broker-batch-row button {
  min-height: 42px;
}

.broker-flow-panel {
  margin: 0 0 18px;
  padding: 18px;
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  border: 1px solid rgba(224, 203, 237, 0.9);
  border-radius: 8px;
  background:
    radial-gradient(circle at 92% 12%, rgba(255, 92, 157, 0.12), transparent 26%),
    linear-gradient(118deg, rgba(255, 250, 253, 0.98), rgba(248, 241, 255, 0.92)),
    #fff;
  box-shadow: 0 18px 48px rgba(62, 34, 78, 0.07);
}

.broker-flow-panel.compact {
  margin-top: -2px;
}

.broker-flow-copy {
  display: grid;
  gap: 7px;
}

.broker-flow-copy span {
  color: #e93c88;
  font-size: 12px;
  font-weight: 900;
}

.broker-flow-copy h3 {
  margin: 0;
  color: #352143;
  font-size: 20px;
}

.broker-flow-copy p {
  margin: 0;
  color: #725f7d;
  line-height: 1.72;
}

.broker-flow-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.broker-flow-steps article {
  min-height: 74px;
  padding: 10px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  border: 1px solid rgba(229, 209, 238, 0.86);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
}

.broker-flow-steps article > b {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #9b5c85;
  background: #ffeaf4;
  font-size: 13px;
}

.broker-flow-steps article.done > b {
  color: #fff;
  background: linear-gradient(135deg, #ff5596, #9d72ff);
}

.broker-flow-steps strong,
.broker-flow-steps span {
  display: block;
}

.broker-flow-steps strong {
  color: #352143;
  font-size: 14px;
}

.broker-flow-steps span {
  margin-top: 3px;
  color: #7c6c86;
  font-size: 12px;
  font-weight: 800;
}

.broker-flow-actions {
  display: grid;
  gap: 8px;
}

.broker-filter-panel {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.danger-light {
  color: #c0345c;
  border-color: rgba(248, 60, 131, 0.24);
  background: #fff7fb;
}

.danger-text {
  color: #d83b69;
}

.broker-draft-grid {
  grid-template-columns: repeat(3, minmax(260px, 1fr));
}

.broker-draft-card {
  position: relative;
  padding: 10px;
  gap: 12px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 247, 252, 0.98), rgba(252, 244, 255, 0.96)),
    #fff;
}

.broker-card-check {
  min-height: 28px;
  color: #4d4260;
}

.broker-card-cover {
  min-height: 66px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 12px;
  border-radius: 8px;
  background:
    radial-gradient(circle at 88% 48%, rgba(255, 255, 255, 0.75), transparent 24%),
    linear-gradient(100deg, #ffe4e0, #fff2f9 58%, #f1e8ff);
}

.broker-card-cover span {
  min-height: 36px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #ff6c7a, #d92b80);
  font-size: 12px;
  font-weight: 900;
}

.broker-card-next {
  min-height: 44px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid rgba(231, 199, 232, 0.86);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.broker-card-next span {
  color: #8b7d92;
  font-size: 12px;
  font-weight: 900;
}

.broker-card-next b {
  color: #e93c88;
  font-size: 14px;
}

.pill-button {
  width: fit-content;
  min-height: 46px;
  padding-inline: 20px;
  border-radius: 999px;
}

.broker-profile-builder {
  display: grid;
  gap: 16px;
}

.broker-builder-head {
  min-height: 76px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid rgba(224, 203, 237, 0.9);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(255, 246, 252, 0.92)),
    #fff;
  box-shadow: 0 18px 44px rgba(62, 34, 78, 0.06);
}

.builder-title,
.builder-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.builder-title {
  color: #3d294f;
  font-size: 20px;
  font-weight: 900;
}

.builder-title .ui-icon {
  color: var(--pink);
}

.broker-profile-shell {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.broker-profile-steps {
  position: sticky;
  top: 82px;
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(224, 203, 237, 0.9);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 44px rgba(62, 34, 78, 0.05);
}

.broker-profile-steps button {
  min-height: 42px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #655474;
  font-weight: 900;
  text-align: left;
  cursor: pointer;
}

.broker-profile-steps button:hover,
.broker-profile-steps button.active {
  color: var(--pink);
  background: #fff3fa;
}

.broker-profile-sections {
  display: grid;
  gap: 14px;
}

.broker-profile-section {
  padding: 20px;
  border: 1px solid rgba(224, 203, 237, 0.9);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 44px rgba(62, 34, 78, 0.05);
  scroll-margin-top: 92px;
}

.broker-profile-section h2 {
  margin: 0 0 16px;
  padding: 14px 16px;
  border-bottom: 1px solid #ede5f3;
  color: #ff4087;
  background: linear-gradient(100deg, #f7f0ff, #fff4f9);
  font-size: 17px;
}

.broker-field {
  min-height: 54px;
  display: grid;
  grid-template-columns: 156px minmax(0, 1fr);
  align-items: start;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid #f1e8f0;
}

.broker-field:last-child {
  border-bottom: 0;
}

.broker-field > span {
  color: #6b6075;
  font-weight: 900;
  line-height: 38px;
}

.broker-field em {
  color: var(--pink);
  font-style: normal;
}

.broker-field small {
  display: block;
  margin-top: 6px;
  color: #8b8092;
  line-height: 1.6;
}

.broker-field-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.broker-upload-box {
  min-height: 126px;
  display: grid;
  place-items: center;
  gap: 8px;
  border: 1px dashed rgba(248, 64, 135, 0.4);
  border-radius: 8px;
  color: #c42d6b;
  background: #fff7fb;
  font-weight: 900;
}

.broker-upload-section > p {
  margin: 12px 0;
  color: #776b80;
  line-height: 1.7;
}

.broker-upload-zone {
  margin-bottom: 12px;
}

.broker-upload-section .upload-file-list {
  margin-bottom: 12px;
}

.broker-upload-section textarea[data-upload-link-field] {
  min-height: 84px;
}

.broker-submit-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.broker-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 20px;
}

.broker-detail-head {
  align-items: center;
}

.broker-recommend {
  display: flex;
  align-items: center;
  gap: 10px;
}

.broker-side-stack {
  display: grid;
  gap: 16px;
}

.broker-follow-card label {
  display: grid;
  gap: 7px;
  margin-bottom: 12px;
  color: #665b72;
  font-weight: 900;
}

.filter-result-note {
  margin: -4px 0 14px;
  color: #7f4264;
  font-weight: 900;
}

.profile-view-quota {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 12px;
  border: 1px solid rgba(234, 170, 205, 0.7);
  border-radius: 8px;
  background: rgba(255, 248, 252, 0.88);
}

.profile-limit-panel {
  max-width: 680px;
  margin: 8px auto 0;
  padding: 34px;
  text-align: center;
  background:
    linear-gradient(135deg, rgba(255, 250, 253, 0.98), rgba(247, 241, 255, 0.94)),
    #fff;
  border-color: rgba(225, 167, 211, 0.78);
  box-shadow: 0 20px 54px rgba(104, 51, 111, 0.12);
}

.profile-limit-count {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  color: #8f4f93;
}

.profile-limit-count b {
  font-size: 54px;
  line-height: 1;
  color: #e94a93;
}

.profile-limit-count span {
  font-weight: 900;
}

.profile-limit-panel h2 {
  margin: 18px 0 8px;
  color: #352143;
}

.profile-limit-panel p {
  margin: 0 auto;
  max-width: 460px;
  color: #725f7d;
  line-height: 1.8;
}

.profile-limit-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.public-profile-page {
  width: min(1180px, calc(100% - 40px));
  min-height: calc(100svh - 84px);
  margin: 0 auto;
  padding: 34px 0 64px;
}

.public-profile-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.public-profile-toolbar h1 {
  margin: 0;
  color: var(--ink);
  font-size: 30px;
}

.public-profile-toolbar .section-kicker {
  margin: 0 0 5px;
  color: var(--pink);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
}

.profile-access-page {
  min-height: calc(100svh - 190px);
  display: grid;
  place-items: center;
  align-content: center;
  gap: 18px;
  padding: 40px 20px 70px;
  text-align: center;
  background: #fbfbfd;
}

.profile-access-emblem {
  width: 210px;
  height: 184px;
  position: relative;
  display: grid;
  place-items: center;
  align-content: center;
  isolation: isolate;
}

.profile-access-emblem::before {
  content: "";
  position: absolute;
  inset: 4px 15px 8px;
  z-index: -2;
  border-radius: 50%;
  background: linear-gradient(145deg, #11a8e8 0 48%, #0796dc 49% 100%);
  box-shadow: inset 0 -10px 0 rgba(4, 118, 188, 0.14);
}

.profile-access-emblem::after {
  content: "";
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
  height: 46px;
  z-index: -1;
  border-radius: 7px;
  background: #5147a7;
  box-shadow: 0 8px 0 #7062bf;
}

.profile-access-crown {
  width: 86px;
  height: 82px;
  display: grid;
  place-items: center;
  color: #ffbd19;
}

.profile-access-crown .ui-icon {
  width: 84px;
  height: 84px;
}

.profile-access-crown svg {
  width: 100%;
  height: 100%;
  stroke-width: 1.7;
  filter: drop-shadow(0 3px 0 rgba(221, 145, 0, 0.18));
}

.profile-access-emblem b {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 29px;
  color: #fff;
  font-size: 22px;
  line-height: 1;
  letter-spacing: 0;
}

.profile-access-emblem i {
  position: absolute;
  left: 64px;
  right: 64px;
  bottom: 14px;
  height: 5px;
  border-radius: 50%;
  background: repeating-linear-gradient(90deg, #8f83e6 0 6px, transparent 6px 13px);
}

.profile-access-page h1 {
  margin: 4px 0 0;
  color: #151515;
  font-size: 42px;
  font-weight: 500;
  line-height: 1.25;
}

.profile-access-page > p {
  margin: 0;
  color: #4d9b8f;
  font-size: 18px;
  line-height: 1.6;
}

.profile-access-action {
  min-width: 242px;
  min-height: 70px;
  margin-top: 8px;
  padding: 0 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  border: 0;
  border-radius: 18px;
  color: #fff;
  background: linear-gradient(100deg, #ff4d3b, #ed236f);
  box-shadow: 0 14px 28px rgba(238, 49, 98, 0.2);
  font-size: 20px;
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.profile-access-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(238, 49, 98, 0.28);
}

.profile-access-action .ui-icon {
  width: 29px;
  height: 29px;
}

.profile-access-action svg {
  width: 100%;
  height: 100%;
  stroke-width: 2.2;
}

@media (max-width: 760px) {
  .public-profile-page {
    width: min(100% - 28px, 1180px);
    padding-top: 24px;
  }

  .public-profile-toolbar {
    align-items: start;
    flex-direction: column;
    margin-bottom: 16px;
  }

  .public-profile-toolbar h1 {
    font-size: 26px;
  }

  .profile-access-page {
    min-height: calc(100svh - 160px);
    padding: 24px 12px 54px;
  }

  .profile-access-emblem {
    transform: scale(0.84);
    transform-origin: center;
    margin-block: -14px;
  }

  .profile-access-page h1 {
    font-size: 30px;
  }

  .profile-access-page > p {
    font-size: 16px;
  }

  .profile-access-action {
    min-width: min(242px, 100%);
    min-height: 62px;
    font-size: 18px;
  }
}

.follow-up-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.follow-up-list article {
  padding: 10px 12px;
  border: 1px solid rgba(224, 203, 237, 0.85);
  border-radius: 8px;
  background: #fff8fc;
}

.follow-up-list b {
  color: #3d294f;
}

.follow-up-list span {
  display: block;
  margin-top: 3px;
  color: #8b7a95;
  font-size: 12px;
}

.follow-up-list p {
  margin: 7px 0 0;
  color: #5f5368;
  line-height: 1.7;
}

.girl-profile-entry {
  min-height: 176px;
  margin-bottom: 18px;
  padding: 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  border: 1px solid rgba(224, 203, 237, 0.9);
  border-radius: 8px;
  background:
    linear-gradient(115deg, rgba(255, 249, 253, 0.98), rgba(247, 240, 255, 0.9)),
    #fff;
  box-shadow: 0 22px 58px rgba(113, 63, 137, 0.08);
}

.girl-profile-entry span {
  color: #ff4087;
  font-size: 12px;
  font-weight: 900;
}

.girl-profile-entry h2 {
  margin: 8px 0 10px;
  color: var(--ink);
  font-size: 24px;
}

.girl-profile-entry p {
  margin: 0;
  max-width: 760px;
  color: #6f6174;
  line-height: 1.8;
}

.girl-profile-actions {
  display: grid;
  gap: 10px;
  min-width: 148px;
}

.girl-progress-panel {
  margin: 18px 0;
  padding: 18px;
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  border: 1px solid rgba(224, 203, 237, 0.9);
  border-radius: 8px;
  background:
    radial-gradient(circle at 92% 12%, rgba(255, 92, 157, 0.12), transparent 26%),
    linear-gradient(118deg, rgba(255, 250, 253, 0.98), rgba(248, 241, 255, 0.92)),
    #fff;
  box-shadow: 0 18px 48px rgba(113, 63, 137, 0.08);
}

.girl-progress-panel.compact {
  margin-top: 0;
}

.girl-status-panel {
  margin: 16px 0 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.girl-status-panel article,
.girl-detail-status-panel article,
.girl-card-status {
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid rgba(224, 203, 237, 0.88);
  border-radius: 8px;
  background: #fff;
}

.girl-status-panel span,
.girl-detail-status-panel span,
.girl-card-status span {
  display: block;
  color: #7c6c86;
  font-size: 12px;
  font-weight: 800;
}

.girl-status-panel b,
.girl-detail-status-panel b,
.girl-card-status b {
  display: block;
  margin-top: 5px;
  color: #352143;
  font-size: 15px;
  overflow-wrap: anywhere;
}

.girl-status-panel small,
.girl-detail-status-panel p {
  display: block;
  margin: 6px 0 0;
  color: #7c6c86;
  font-size: 12px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.girl-status-panel .is-approved,
.girl-detail-status-panel .is-approved,
.girl-card-status .is-assigned {
  border-color: rgba(85, 163, 118, 0.45);
  background: #f4fbf6;
}

.girl-status-panel .is-approved b,
.girl-detail-status-panel .is-approved b,
.girl-card-status .is-assigned {
  color: #24784a;
}

.girl-status-panel .is-revision,
.girl-detail-status-panel .is-revision {
  border-color: rgba(213, 102, 107, 0.44);
  background: #fff7f7;
}

.girl-status-panel .is-revision b,
.girl-detail-status-panel .is-revision b {
  color: #b94b56;
}

.girl-status-panel .is-pending,
.girl-detail-status-panel .is-pending,
.girl-card-status .is-pending {
  border-color: rgba(218, 170, 79, 0.42);
  background: #fffaf0;
  color: #936617;
}

.girl-status-panel .is-pending b,
.girl-detail-status-panel .is-pending b,
.girl-card-status .is-pending {
  color: #936617;
}

.girl-progress-copy {
  display: grid;
  gap: 7px;
}

.girl-progress-copy span {
  color: #e93c88;
  font-size: 12px;
  font-weight: 900;
}

.girl-progress-copy h3 {
  margin: 0;
  color: #352143;
  font-size: 20px;
}

.girl-progress-copy p {
  margin: 0;
  color: #725f7d;
  line-height: 1.72;
}

.girl-progress-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.girl-progress-steps article {
  min-height: 74px;
  padding: 10px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  border: 1px solid rgba(229, 209, 238, 0.86);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
}

.girl-progress-steps article > b {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #9b5c85;
  background: #ffeaf4;
  font-size: 13px;
}

.girl-progress-steps article.done > b {
  color: #fff;
  background: linear-gradient(135deg, #ff5596, #9d72ff);
}

.girl-progress-steps strong,
.girl-progress-steps span {
  display: block;
}

.girl-progress-steps strong {
  color: #352143;
  font-size: 14px;
}

.girl-progress-steps span {
  margin-top: 3px;
  color: #7c6c86;
  font-size: 12px;
  font-weight: 800;
}

.girl-member-card {
  min-height: 96px;
  margin: 18px 0 0;
  padding: 18px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 14px;
  overflow: hidden;
  border: 1px solid rgba(224, 203, 237, 0.9);
  border-radius: 8px;
  background:
    linear-gradient(110deg, rgba(255, 249, 253, 0.99), rgba(248, 241, 255, 0.92)),
    #fff;
  box-shadow: 0 18px 44px rgba(113, 63, 137, 0.08);
}

.girl-member-card > span {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, #ff5596, #9d72ff);
  box-shadow: 0 16px 30px rgba(172, 87, 201, 0.18);
}

.girl-member-card.member-on {
  border-color: rgba(217, 171, 76, 0.42);
  background:
    linear-gradient(110deg, rgba(255, 249, 253, 0.98), rgba(248, 241, 255, 0.94)) padding-box,
    linear-gradient(115deg, rgba(248, 60, 131, 0.36), rgba(157, 114, 255, 0.38), rgba(218, 168, 78, 0.45)) border-box;
}

.girl-member-card b {
  color: #352143;
  font-size: 18px;
}

.girl-member-card p {
  margin: 4px 0 0;
  color: #725f7d;
  line-height: 1.7;
}

.girl-member-card em {
  min-height: 30px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(220, 190, 235, 0.9);
  border-radius: 999px;
  color: #8f4f93;
  background: rgba(255, 246, 252, 0.9);
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
  white-space: nowrap;
}

.girl-member-card.member-on em {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, #ff5596, #9d72ff);
  box-shadow: 0 12px 24px rgba(156, 91, 205, 0.18);
}

.girl-guide-card {
  border-color: rgba(210, 227, 214, 0.88);
  background: linear-gradient(135deg, rgba(253, 255, 251, 0.98), rgba(249, 242, 255, 0.9));
}

.girl-guide-steps {
  display: grid;
  gap: 12px;
  margin: 16px 0;
}

.girl-guide-steps article {
  min-height: 76px;
  padding: 12px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(213, 231, 217, 0.92);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
}

.girl-guide-steps article > b {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, #86c79d, #b381ff);
  font-size: 14px;
}

.girl-guide-steps strong {
  color: #352143;
  font-size: 16px;
}

.girl-guide-steps p {
  margin: 4px 0 0;
  color: #6b6572;
  line-height: 1.55;
}

.girl-draft-grid {
  grid-template-columns: repeat(3, minmax(260px, 1fr));
}

.girl-draft-card {
  background:
    linear-gradient(180deg, rgba(255, 248, 252, 0.98), rgba(250, 245, 255, 0.96)),
    #fff;
}

.broker-published-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.boss-shop-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.broker-published-card {
  min-width: 0;
  padding: 0;
  display: grid;
  overflow: hidden;
  border-color: rgba(220, 228, 235, 0.96);
  background: #fff;
}

.broker-published-card > .profile-visual,
.broker-published-card > .profile-cover-button {
  min-height: 176px;
  max-height: 208px;
}

.broker-published-card > div:last-child {
  min-width: 0;
  padding: 14px 15px 16px;
}

.broker-published-card span {
  display: block;
  color: #758197;
  font-size: 12px;
  font-weight: 800;
}

.broker-published-card h2 {
  margin: 6px 0 4px;
  color: #202c41;
  font-size: 18px;
  overflow-wrap: anywhere;
}

.broker-published-card p {
  min-height: 20px;
  margin: 0;
  color: #69778c;
  font-size: 13px;
  line-height: 1.55;
}

.broker-published-card .ghost {
  width: 100%;
  min-height: 36px;
  margin-top: 13px;
  justify-content: center;
}

.girl-card-next {
  min-height: 44px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid rgba(231, 199, 232, 0.86);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.girl-card-next span {
  color: #8b7d92;
  font-size: 12px;
  font-weight: 900;
}

.girl-card-next b {
  color: #e93c88;
  font-size: 14px;
}

.girl-card-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-block: 9px;
}

.girl-card-status span,
.girl-card-status b {
  margin: 0;
}

.girl-detail-status-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.girl-builder-head,
.girl-profile-builder .broker-profile-section {
  border-color: rgba(231, 199, 232, 0.92);
}

.girl-profile-builder .broker-profile-section h2 {
  color: #e93c88;
  background: linear-gradient(100deg, #fff0f7, #f5efff);
}

.girl-verify-window {
  display: grid;
  gap: 16px;
}

.girl-verify-note {
  min-height: 132px;
  padding: 22px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  border: 1px solid rgba(231, 199, 232, 0.92);
  border-radius: 8px;
  background:
    linear-gradient(120deg, rgba(255, 249, 253, 0.98), rgba(248, 240, 255, 0.9)),
    #fff;
  box-shadow: 0 22px 58px rgba(113, 63, 137, 0.08);
}

.girl-verify-note > span {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, #ff5596, #9d72ff);
  box-shadow: 0 16px 32px rgba(172, 87, 201, 0.18);
}

.girl-verify-note b {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
  font-size: 20px;
}

.girl-verify-note p {
  margin: 0;
  color: #6f6174;
  line-height: 1.8;
}

.girl-verify-form {
  width: min(760px, 100%);
}

.upload-drop-zone {
  min-height: 154px;
  padding: 18px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  border: 1px dashed rgba(248, 64, 135, 0.42);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(255, 247, 252, 0.98), rgba(246, 240, 255, 0.9));
  transition: border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.upload-drop-zone.drag-over,
.upload-drop-zone.uploading {
  border-color: rgba(153, 104, 255, 0.72);
  background: linear-gradient(135deg, rgba(255, 240, 248, 0.98), rgba(241, 234, 255, 0.96));
  box-shadow: 0 18px 44px rgba(142, 80, 166, 0.12);
}

.upload-drop-zone > div {
  display: grid;
  gap: 6px;
}

.upload-drop-zone .ui-icon {
  color: var(--pink);
}

.upload-drop-zone b {
  color: var(--ink);
  font-size: 18px;
}

.upload-drop-zone span {
  color: #756984;
  line-height: 1.7;
}

.upload-file-list {
  display: grid;
  gap: 8px;
}

.upload-file-list p {
  margin: 0;
  color: #7d7187;
}

.upload-file-list article {
  min-height: 42px;
  padding: 8px 10px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(224, 203, 237, 0.86);
  border-radius: 8px;
  background: #fff;
}

.upload-file-list article.has-preview {
  grid-template-columns: 58px minmax(0, 1fr) auto auto;
}

.upload-preview {
  position: relative;
  width: 58px;
  height: 58px;
  overflow: hidden;
  border: 1px solid rgba(236, 198, 222, 0.95);
  border-radius: 8px;
  background: #21182a;
  box-shadow: 0 10px 24px rgba(76, 39, 83, 0.12);
}

.upload-preview img,
.upload-preview video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.upload-preview span {
  position: absolute;
  right: 4px;
  bottom: 4px;
  padding: 2px 5px;
  border-radius: 999px;
  color: #fff;
  background: rgba(30, 19, 37, 0.74);
  font-size: 10px;
  font-weight: 900;
}

.upload-file-list b {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #3c264d;
}

.upload-file-list span,
.upload-file-list a {
  color: #8a788f;
  font-size: 12px;
  font-weight: 900;
}

.upload-file-list a {
  color: var(--pink);
}

.ai-import-result {
  margin: 2px 0 10px;
  padding: 12px;
  display: grid;
  gap: 10px;
  border: 1px solid rgba(205, 185, 232, 0.82);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(255, 249, 253, 0.98), rgba(246, 240, 255, 0.92));
}

.ai-result-head {
  display: grid;
  gap: 4px;
}

.ai-result-head b {
  color: #372043;
}

.ai-result-head small {
  color: #766680;
  line-height: 1.6;
}

.ai-result-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ai-result-chips span {
  max-width: 100%;
  padding: 7px 9px;
  border: 1px solid rgba(225, 202, 238, 0.82);
  border-radius: 8px;
  background: #fff;
  color: #6f5e7a;
  font-size: 12px;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.ai-result-chips b {
  display: inline-block;
  margin-right: 5px;
  color: #e8438e;
}

.ai-result-preview {
  max-height: 92px;
  margin: 0;
  overflow: auto;
  color: #6d6273;
  line-height: 1.65;
  white-space: pre-wrap;
}

.client-unread {
  margin-left: 8px;
  padding: 2px 7px;
  border-radius: 999px;
  color: #bd3b6d;
  background: #fff0f6;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

.review-note {
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(248, 64, 135, 0.18);
  border-radius: 8px;
  color: #7d4a68;
  background: #fff5fa;
  line-height: 1.7;
}

.review-approved {
  color: #147a5a;
}

.review-pending {
  color: #9a62d0;
}

.review-needs-revision {
  color: #bd3b6d;
}

.review-not-submitted {
  color: #8a788f;
}

.draft-modal-layer {
  align-items: start;
  overflow: auto;
}

.draft-detail-modal {
  position: relative;
  width: min(1180px, calc(100vw - 44px));
  max-height: calc(100vh - 48px);
  overflow: auto;
  padding: 28px;
  border: 1px solid rgba(231, 199, 232, 0.92);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 250, 253, 0.98), rgba(248, 242, 255, 0.94)),
    #fff;
  box-shadow: 0 34px 92px rgba(51, 24, 49, 0.22);
}

.draft-detail-modal > .modal-close {
  position: sticky;
  top: 0;
  margin-left: auto;
  z-index: 2;
}

.draft-detail-modal .page-head {
  margin-top: -34px;
  padding-right: 48px;
}

.draft-detail-modal .broker-detail-layout {
  grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
}

.girl-detail-layout .info-block {
  background: rgba(255, 255, 255, 0.82);
}

.broker-credit-hero {
  display: grid;
  grid-template-columns: minmax(260px, 0.6fr) minmax(320px, 1fr);
  gap: 16px;
  margin-bottom: 18px;
}

.broker-credit-hero.single {
  grid-template-columns: minmax(260px, 0.55fr) minmax(320px, 0.9fr);
}

.broker-credit-hero article,
.broker-buy-panel {
  padding: 22px;
  border: 1px solid rgba(224, 203, 237, 0.9);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 247, 252, 0.98), rgba(246, 240, 255, 0.92)),
    #fff;
  box-shadow: 0 18px 44px rgba(62, 34, 78, 0.06);
}

.broker-credit-hero article {
  display: grid;
  align-content: center;
  gap: 8px;
}

.broker-credit-hero article span,
.broker-buy-panel p {
  color: #716579;
  line-height: 1.7;
}

.broker-credit-hero article b {
  color: #3c264d;
  font-size: 46px;
}

.broker-buy-panel {
  display: grid;
  gap: 12px;
}

.broker-buy-panel h3,
.broker-buy-panel p {
  margin: 0;
}

.broker-price-table div {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.broker-price-table span {
  min-height: 42px;
  padding: 0 10px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(248, 64, 135, 0.16);
  border-radius: 8px;
  color: #7f4264;
  background: #fff7fb;
  font-size: 12px;
  font-weight: 900;
  text-align: center;
}

.broker-credit-card b {
  color: #3c264d;
}

.broker-ai-modal label {
  display: grid;
  gap: 7px;
  color: #655474;
  font-weight: 900;
}

.broker-ai-page {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 16px;
  align-items: start;
}

.ai-import-panel {
  display: grid;
  gap: 14px;
}

.ai-import-title {
  display: flex;
  gap: 12px;
  align-items: center;
  color: #3d294f;
}

.ai-import-title .ui-icon {
  color: var(--pink);
}

.ai-import-title b {
  display: block;
  font-size: 20px;
}

.ai-import-title span,
.ai-import-guide p {
  color: #7b6b86;
  line-height: 1.8;
}

.ai-import-panel label {
  display: grid;
  gap: 8px;
  color: #655474;
  font-weight: 900;
}

.ai-import-panel textarea {
  min-height: 230px;
  resize: vertical;
}

.ai-import-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.ai-import-guide {
  display: grid;
  gap: 14px;
  background:
    radial-gradient(circle at 92% 8%, rgba(255, 89, 157, 0.12), transparent 30%),
    linear-gradient(145deg, #fff, #fff5fb 58%, #f7efff);
}

.ai-import-guide h3 {
  margin: 0;
  color: #3d294f;
}

.ai-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ai-chip-row span {
  min-height: 32px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(224, 203, 237, 0.95);
  border-radius: 999px;
  color: #7f4264;
  background: rgba(255, 255, 255, 0.74);
  font-size: 12px;
  font-weight: 900;
}

@media (max-width: 1180px) {
  .payment-layout,
  .payment-scene {
    display: grid;
    grid-template-columns: 1fr;
  }

  .payment-steps {
    min-width: 0;
  }

  .broker-draft-grid,
  .girl-draft-grid,
  .broker-published-grid,
  .broker-filter-panel,
  .broker-credit-hero,
  .broker-credit-hero.single,
  .broker-detail-layout,
  .draft-detail-modal .broker-detail-layout,
  .broker-ai-page {
    grid-template-columns: 1fr;
  }

  .broker-price-table div {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .media-viewer-nav.prev {
    left: 12px;
  }

  .media-viewer-nav.next {
    right: 12px;
  }
}

@media (max-width: 760px) {
  body.is-dashboard .dashboard {
    grid-template-columns: 1fr;
  }

  body.is-dashboard .dash-main {
    width: calc(100% - 28px);
    margin-top: 18px;
  }

  .account-dropdown {
    right: -52px;
    width: min(302px, calc(100vw - 24px));
  }

  .broker-profile-shell,
  .broker-field,
  .broker-field-grid,
  .broker-flow-panel,
  .coupon-grid,
  .girl-profile-entry,
  .girl-verify-note,
  .girl-member-card,
  .girl-progress-panel,
  .girl-status-panel,
  .girl-detail-status-panel,
  .girl-guide-steps article,
  .upload-drop-zone,
  .upload-file-list article {
    grid-template-columns: 1fr;
  }

  .broker-profile-steps {
    position: static;
  }

  .broker-flow-panel,
  .broker-member-card {
    justify-items: start;
  }

  .broker-flow-steps {
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .broker-flow-actions,
  .broker-flow-actions button,
  .broker-member-card button {
    width: 100%;
  }

  .girl-profile-entry,
  .girl-verify-note,
  .girl-member-card,
  .girl-progress-panel,
  .girl-guide-steps article {
    justify-items: start;
  }

  .girl-profile-actions,
  .girl-member-card button,
  .girl-progress-panel button,
  .girl-guide-steps button {
    width: 100%;
  }

  .girl-progress-steps {
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .girl-status-panel {
    gap: 8px;
  }

  .girl-status-panel article,
  .girl-detail-status-panel article {
    padding: 11px 12px;
  }

  .broker-published-card > .profile-visual,
  .broker-published-card > .profile-cover-button {
    min-height: 190px;
    max-height: none;
  }

  .girl-guide-steps {
    gap: 15px;
  }

  .girl-guide-steps article {
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 11px;
  }

  .girl-guide-steps article > b {
    width: 38px;
    height: 38px;
    font-size: 17px;
  }

  .girl-guide-steps article strong {
    font-size: 16px;
  }

  .girl-guide-steps article p {
    font-size: 13px;
  }

  .boss-home-faq {
    margin-top: 18px;
    padding: 16px 15px 4px;
  }

  .boss-home-faq-head h2 {
    font-size: 19px;
  }

  .boss-home-faq-list summary {
    min-height: 48px;
    font-size: 14px;
  }

  .boss-home-faq-list details > p {
    font-size: 13px;
  }

  .order-row-actions {
    align-items: stretch;
    flex-direction: column;
    gap: 4px;
  }

  .order-row-actions .text-button {
    width: 100%;
    justify-content: center;
  }

  .ai-result-chips {
    display: grid;
    grid-template-columns: 1fr;
  }

  .detail-gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 132px;
  }

  .detail-media-tile.is-large {
    grid-column: span 2;
    grid-row: span 1;
  }

  .detail-gallery.compact .detail-gallery-grid {
    grid-template-columns: 1fr;
  }

  .detail-gallery.compact .detail-media-tile.is-large {
    grid-column: auto;
  }

  .verification-gallery .detail-gallery-grid {
    width: 100%;
  }

  .verification-gallery .detail-media-tile {
    min-height: 210px;
  }

  .upload-file-list article.has-preview {
    grid-template-columns: 58px minmax(0, 1fr);
  }

  .upload-file-list article.has-preview a {
    grid-column: 1 / -1;
  }

  .media-viewer-layer {
    padding: 0;
  }

  .media-viewer {
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    grid-template-rows: minmax(0, 1fr) 78px;
    padding: 48px 44px 0;
    border-radius: 0;
  }

  .media-viewer-stage {
    width: 100%;
    height: 100%;
    max-height: 560px;
  }

  .media-viewer-stage .media-viewer-media.is-image {
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
  }

  .media-viewer-stage .media-viewer-media.is-video {
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
  }

  .media-viewer-nav {
    width: 38px;
    height: 54px;
    font-size: 32px;
  }

  .draft-detail-modal {
    width: calc(100vw - 24px);
    padding: 18px;
  }

  .draft-detail-modal .page-head {
    margin-top: -28px;
    padding-right: 42px;
  }

  .broker-builder-head,
  .broker-submit-row {
    align-items: stretch;
    flex-direction: column;
  }

  .builder-actions button,
  .broker-submit-row button {
    width: 100%;
  }
}

/* FINAL-PUBLIC-SIZING-R7: natural FAQ height, compact spacing, separate mobile rhythm. */
.faq-list details[open] summary span,
.faq-list details[open] summary b {
  color: var(--pink);
}

@media (min-width: 761px) {
  .features-band {
    padding-top: 48px;
    padding-bottom: 38px;
  }

  .feature-grid {
    margin-top: 30px;
    gap: 36px;
  }

  .feature-card {
    min-height: 0;
  }

  .feature-card::before {
    margin-bottom: 16px;
  }

  .feature-card h3 {
    margin: 16px 0 8px;
  }

  .faq-band {
    padding: 42px 24px 28px;
  }

  .faq-band .section-head h2 {
    margin-top: 0;
    font-size: 40px;
  }

  .faq-band .faq-list {
    height: auto;
    margin-top: 22px;
    overflow: visible;
    scrollbar-gutter: auto;
  }

  .faq-band .faq-list summary {
    min-height: 58px;
    font-size: 17px;
  }

  .faq-band .faq-list details > p {
    margin: 0 0 18px;
    padding: 0 44px 0 0;
    font-size: 15px;
    line-height: 1.75;
  }
}

@media (max-width: 760px) {
  .features-band,
  .about-band,
  .faq-band {
    padding: 28px 16px 24px;
  }

  .features-band .section-head h2 {
    margin-top: 8px;
    font-size: 24px;
    line-height: 1.3;
  }

  .feature-grid {
    margin-top: 22px;
    gap: 24px;
  }

  .feature-card {
    min-height: 0;
    padding: 0;
  }

  .feature-card::before {
    width: 40px;
    margin-bottom: 12px;
  }

  .feature-card span {
    font-size: 34px;
  }

  .feature-card h3 {
    margin: 12px 0 6px;
    font-size: 19px;
  }

  .feature-card p {
    margin: 0;
    font-size: 14px;
    line-height: 1.65;
  }

  .faq-band .section-head h2 {
    margin-top: 0;
    font-size: 28px;
  }

  .faq-band .faq-list {
    height: auto;
    margin-top: 16px;
    overflow: visible;
    scrollbar-gutter: auto;
  }

  .faq-band .faq-list details,
  .faq-band .faq-list summary {
    min-height: 50px;
  }

  .faq-band .faq-list summary {
    gap: 10px;
    font-size: 14px;
  }

  .faq-band .faq-list details > p {
    margin: 0 0 12px;
    padding: 0;
    font-size: 13px;
    line-height: 1.65;
  }
}

/* Final role-page overrides: these intentionally follow the older shared guide rules. */
.girl-guide-card {
  border-color: rgba(190, 226, 200, 0.9);
  background: linear-gradient(135deg, rgba(253, 255, 251, 0.99), rgba(248, 255, 251, 0.96));
}

.girl-guide-card > h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #ff4f91;
  font-size: 21px;
}

.girl-guide-card > h3 .ui-icon {
  width: 21px;
  height: 21px;
  color: #ff4f91;
}

.girl-guide-card .girl-guide-steps {
  max-width: 820px;
  margin: 20px 0 2px;
  display: grid;
  gap: 18px;
}

.girl-guide-card .girl-guide-steps article {
  min-height: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: start;
  justify-items: stretch;
  gap: 14px;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.girl-guide-card .girl-guide-steps article > b {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, #ff5b8f, #ff7166);
  font-size: 20px;
}

.girl-guide-card .girl-guide-steps strong {
  display: block;
  margin-top: 1px;
  color: #18243b;
  font-size: 18px;
  font-weight: 700;
}

.girl-guide-card .girl-guide-steps p {
  margin: 3px 0 0;
  color: #5f6d84;
  font-size: 14px;
  line-height: 1.45;
}

.girl-guide-card .girl-guide-action {
  width: auto;
  min-height: 30px;
  margin-top: 8px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #ff4f91, #ff7166);
  font: inherit;
  font-size: 13px;
  font-weight: 900;
}

@media (max-width: 760px) {
  .girl-guide-card .girl-guide-steps {
    gap: 15px;
  }

  .girl-guide-card .girl-guide-steps article {
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 11px;
  }

  .girl-guide-card .girl-guide-steps article > b {
    width: 38px;
    height: 38px;
    font-size: 17px;
  }

  .girl-guide-card .girl-guide-steps strong {
    font-size: 16px;
  }

  .girl-guide-card .girl-guide-steps p {
    font-size: 13px;
  }

  .girl-guide-card .girl-guide-action {
    width: auto !important;
  }
}

/* Compact boss handbook presentation. Keep the handbook content and actions unchanged. */
.manual-page.boss-reference-manual {
  width: min(1200px, 100%);
  gap: 14px;
}

.boss-manual-toolbar {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.boss-manual-breadcrumb {
  gap: 7px;
  font-size: 13px;
}

.boss-manual-back-button {
  min-height: 36px;
  padding: 7px 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  font-size: 13px;
  white-space: nowrap;
}

.boss-manual-back-button .ui-icon {
  width: 15px;
  height: 15px;
}

.boss-manual-hero {
  margin-top: -8px;
  padding: 18px 16px 26px;
}

.boss-manual-hero h1 {
  font-size: 30px;
}

.boss-manual-hero p {
  margin-top: 7px;
  font-size: 14px;
}

.boss-manual-toc {
  padding: 18px 22px 20px;
  border-radius: 10px;
}

.boss-manual-toc > b {
  margin-bottom: 14px;
  font-size: 16px;
}

.boss-manual-toc > div {
  gap: 10px 18px;
}

.boss-manual-toc span {
  font-size: 15px;
}

.manual-page.boss-reference-manual .panel.boss-manual-section {
  padding: 24px 26px 28px;
  border-radius: 10px;
}

.boss-manual-section-head {
  gap: 10px;
  padding-bottom: 15px;
  font-size: 22px;
}

.boss-manual-section-head > span {
  width: 36px;
  height: 36px;
  flex-basis: 36px;
  font-size: 16px;
}

.boss-manual-subhead {
  margin: 18px 0 10px;
  padding-left: 9px;
  font-size: 16px;
}

.boss-membership-reasons {
  gap: 10px;
}

.boss-reason-card {
  min-height: 175px;
  padding: 18px 14px 14px;
  gap: 7px;
  border-radius: 10px;
}

.boss-reason-index {
  top: 13px;
  right: 12px;
  font-size: 12px;
}

.boss-reason-card i {
  width: 44px;
  height: 44px;
  font-size: 20px;
}

.boss-reason-card b {
  margin-top: 2px;
  font-size: 16px;
}

.boss-reason-card p {
  font-size: 13px;
  line-height: 1.5;
}

.boss-membership-tiers {
  gap: 12px;
}

.boss-tier-card {
  min-height: 270px;
  padding: 20px 20px 18px;
  border-radius: 10px;
}

.boss-tier-card > em {
  top: -11px;
  right: 16px;
  padding: 6px 12px;
  font-size: 12px;
}

.boss-tier-card header {
  padding-bottom: 14px;
  gap: 9px;
}

.boss-tier-card header b {
  font-size: 19px;
}

.boss-tier-card header span {
  font-size: 13px;
}

.boss-tier-card ul {
  margin-top: 14px;
  gap: 10px;
}

.boss-tier-card li {
  font-size: 14px;
}

.boss-tier-card li::before {
  width: 19px;
  height: 19px;
  margin-right: 7px;
  font-size: 12px;
}

.boss-manual-cta {
  padding-top: 16px;
  gap: 6px;
}

.boss-manual-cta .primary {
  min-width: 185px;
  min-height: 44px;
  font-size: 14px;
}

.boss-manual-cta .primary span {
  font-size: 20px;
}

.boss-manual-cta small {
  font-size: 12px;
}

.boss-manual-section-title {
  margin-bottom: 18px;
}

.boss-term-grid {
  gap: 10px 12px;
}

.boss-manual-info-card {
  min-height: 110px;
  padding: 13px 15px 13px 17px;
}

.boss-manual-info-card b {
  padding: 5px 8px;
  font-size: 13px;
}

.boss-manual-info-card p,
.boss-manual-single-copy,
.boss-funds-list p,
.boss-process-card p {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.65;
}

.boss-process-list {
  gap: 10px;
}

.boss-process-card {
  padding: 13px 15px;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 10px;
}

.boss-process-number {
  width: 30px;
  height: 30px;
  font-size: 13px;
}

.boss-process-card h3,
.boss-funds-list h3 {
  margin-top: 1px;
  font-size: 15px;
}

.boss-process-tags {
  margin-top: 7px;
  gap: 4px;
}

.boss-process-tags b {
  margin-right: 7px;
  padding: 4px 7px;
  font-size: 11px;
}

.boss-manual-note {
  margin-top: 10px;
  padding: 10px 12px;
  line-height: 1.6;
}

.boss-manual-note p {
  margin-top: 5px;
  line-height: 1.6;
}

.boss-funds-list {
  gap: 15px;
}

.boss-funds-list article {
  padding-left: 12px;
}

.boss-reward-table th,
.boss-reward-table td {
  padding: 10px 12px;
  font-size: 13px;
}

.boss-manual-tutorial {
  margin-top: -8px;
  font-size: 13px;
}

@media (max-width: 900px) {
  .manual-page.boss-reference-manual {
    gap: 12px;
  }

  .boss-manual-toc > div {
    gap: 9px 14px;
  }
}

@media (max-width: 760px) {
  .boss-manual-toolbar {
    align-items: flex-end;
    flex-direction: column;
    gap: 8px;
  }

  .boss-manual-back-button {
    min-height: 34px;
    padding: 6px 10px;
  }

  .boss-manual-hero {
    margin-top: -4px;
    padding: 16px 10px 22px;
  }

  .boss-manual-hero h1 {
    font-size: 25px;
  }

  .boss-manual-hero p {
    font-size: 13px;
  }

  .boss-manual-toc {
    padding: 16px 14px 18px;
  }

  .boss-manual-toc > b {
    margin-bottom: 11px;
    font-size: 14px;
  }

  .boss-manual-toc > div {
    gap: 8px 10px;
  }

  .boss-manual-toc span {
    font-size: 13px;
  }

  .manual-page.boss-reference-manual .panel.boss-manual-section {
    padding: 18px 14px 21px;
  }

  .boss-manual-section-head {
    gap: 8px;
    padding-bottom: 12px;
    font-size: 20px;
  }

  .boss-manual-section-head > span {
    width: 32px;
    height: 32px;
    flex-basis: 32px;
    font-size: 14px;
  }

  .boss-manual-subhead {
    margin: 15px 0 8px;
    font-size: 15px;
  }

  .boss-reason-card {
    min-height: 0;
    padding: 15px 12px 12px;
  }

  .boss-tier-card {
    min-height: 0;
    padding: 17px 15px 15px;
  }

  .boss-tier-card header b {
    font-size: 17px;
  }

  .boss-tier-card ul {
    gap: 8px;
  }

  .boss-tier-card li {
    font-size: 13px;
  }

  .boss-manual-cta .primary {
    min-height: 40px;
  }

  .boss-manual-info-card {
    min-height: 0;
    padding: 11px 12px 11px 14px;
  }

  .boss-process-card {
    padding: 11px 12px;
  }

  .boss-process-card p,
  .boss-funds-list p,
  .boss-manual-single-copy {
    font-size: 13px;
    line-height: 1.6;
  }
}

/* Keep the role handbooks on one compact reading grid. The content remains role-specific. */
.manual-page.manual-girl-page,
.manual-page.manual-agent-page {
  width: min(1200px, 100%);
  gap: 14px;
}

.manual-page.manual-girl-page .manual-topline,
.manual-page.manual-agent-page .manual-topline {
  min-height: 36px;
  padding: 6px 10px 6px 12px;
}

.manual-page.manual-girl-page .page-head,
.manual-page.manual-agent-page .page-head {
  padding-block: 8px;
}

.manual-page.manual-girl-page .page-head h1,
.manual-page.manual-agent-page .page-head h1 {
  font-size: 30px;
}

.manual-page.manual-girl-page .manual-intro,
.manual-page.manual-agent-page .manual-intro {
  padding: 18px;
  gap: 14px;
}

.manual-page.manual-girl-page .toc,
.manual-page.manual-agent-page .toc {
  margin: 0;
  padding: 18px 22px 20px;
  border-radius: 10px;
}

.manual-page.manual-girl-page .manual-block,
.manual-page.manual-agent-page .manual-block {
  margin-top: 0;
  padding: 24px 26px 28px;
  border-radius: 10px;
}

@media (max-width: 760px) {
  .manual-page.manual-girl-page,
  .manual-page.manual-agent-page {
    gap: 12px;
  }

  .manual-page.manual-girl-page .manual-topline,
  .manual-page.manual-agent-page .manual-topline {
    min-height: 34px;
  }

  .manual-page.manual-girl-page .page-head,
  .manual-page.manual-agent-page .page-head {
    padding-block: 4px;
  }

  .manual-page.manual-girl-page .page-head h1,
  .manual-page.manual-agent-page .page-head h1 {
    font-size: 25px;
  }

  .manual-page.manual-girl-page .manual-intro,
  .manual-page.manual-agent-page .manual-intro,
  .manual-page.manual-girl-page .manual-block,
  .manual-page.manual-agent-page .manual-block {
    padding: 18px 14px 21px;
  }

  .manual-page.manual-girl-page .toc,
  .manual-page.manual-agent-page .toc {
    padding: 16px 14px 18px;
  }
}

/* The four role message indexes share the same compact reference layout. */
.reference-messages-page {
  width: min(1024px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 16px;
}

.reference-messages-heading {
  min-height: 78px;
  padding: 0 2px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}

.reference-messages-heading p {
  margin: 0 0 7px;
  color: #ea3761;
  font-size: 12px;
  font-weight: 900;
}

.reference-messages-heading h1 {
  margin: 0;
  color: var(--ink);
  font-size: 36px;
  line-height: 1.05;
}

.reference-messages-heading > strong {
  min-width: 78px;
  min-height: 46px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #fff;
  background: #e8324b;
  font-size: 15px;
  white-space: nowrap;
}

.reference-message-filters {
  display: grid;
  grid-template-columns: 145px 145px minmax(0, 1fr) 78px;
  gap: 10px;
  align-items: center;
}

.reference-message-filters > select,
.reference-message-search,
.reference-message-search-button {
  min-height: 52px;
}

.reference-message-filters > select,
.reference-message-search {
  border: 1px solid #dfe3ea;
  border-radius: 14px;
  background: #fff;
}

.reference-message-filters > select {
  padding-inline: 15px;
  color: #23344e;
  font-size: 15px;
}

.reference-message-search {
  min-width: 0;
  padding: 0 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.reference-message-search:focus-within,
.reference-message-filters > select:focus {
  border-color: #f08aa8;
  box-shadow: 0 0 0 3px rgba(240, 138, 168, 0.12);
}

.reference-message-search .ui-icon {
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
  color: #91a0b7;
}

.reference-message-search input {
  min-width: 0;
  min-height: 48px;
  padding: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  font-size: 15px;
}

.reference-message-search input:focus {
  box-shadow: none;
}

.reference-message-search-button {
  padding: 0 13px;
  border: 1px solid #dfe3ea;
  border-radius: 14px;
  color: #3a465d;
  background: #fff;
  font-weight: 900;
}

.reference-message-search-button:hover {
  border-color: #f08aa8;
  color: #c7295a;
  background: #fff8fb;
}

.reference-message-results {
  min-width: 0;
  overflow: visible;
  border: 1px solid #e9ebf0;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(38, 48, 70, 0.08);
}

.reference-support-card {
  width: 100%;
  min-height: 104px;
  padding: 18px 20px;
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  border: 0;
  border-bottom: 1px solid #f0e5e9;
  border-radius: 8px 8px 0 0;
  color: inherit;
  background: #fff8fa;
  text-align: left;
}

.reference-support-card:hover {
  background: #fff2f6;
}

.reference-support-avatar {
  width: 60px;
  height: 60px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #e23c70;
  background: #ffeaf1;
}

.reference-support-avatar .ui-icon {
  width: 27px;
  height: 27px;
}

.reference-support-copy {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.reference-support-copy b {
  color: #263650;
  font-size: 16px;
}

.reference-support-copy small {
  overflow: hidden;
  color: #6f7e98;
  font-size: 14px;
  line-height: 1.5;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.reference-support-meta {
  min-width: 70px;
  display: grid;
  justify-items: end;
  gap: 8px;
}

.reference-support-meta time {
  color: #9aa5b8;
  font-size: 12px;
}

.reference-support-meta em {
  min-height: 34px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  color: #fff;
  background: #d52d5b;
  font-size: 13px;
  font-style: normal;
  font-weight: 900;
}

.reference-message-retention {
  min-height: 50px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid #f0f1f4;
  color: #99a5b8;
  font-size: 13px;
}

.reference-conversation-list {
  min-width: 0;
  padding: 8px;
  display: grid;
  gap: 8px;
}

.reference-conversation-list .conversation-item {
  min-height: 76px;
  padding: 12px 14px;
  border-color: transparent;
  border-radius: 12px;
  background: #fff;
}

.reference-conversation-list .conversation-item:hover {
  border-color: #f5d8e2;
  background: #fff8fb;
}

.reference-conversation-list .conversation-item .avatar-tile {
  width: 44px;
  height: 44px;
  border-radius: 12px;
}

.reference-conversation-list .conversation-item p {
  margin: 4px 0 0;
  overflow: hidden;
  color: #7b879a;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.reference-conversation-list .conversation-item em {
  color: #8d9ab0;
  font-size: 12px;
  font-style: normal;
  white-space: nowrap;
}

.reference-conversation-list .conversation-role-label {
  display: block;
  margin-top: 3px;
  color: #b26782;
  font-size: 11px;
}

.reference-message-empty {
  min-height: 248px;
  display: grid;
  place-items: center;
  color: #8d99aa;
}

.reference-message-empty .empty-state {
  margin: 0;
}

.reference-message-footnote {
  margin: 0;
  color: #9da8ba;
  font-size: 13px;
  text-align: center;
}

.boss-report-advice {
  margin-top: 20px;
  padding: 16px 18px;
  border-left: 3px solid #e5668b;
  background: #fff8fa;
}

.boss-report-advice p {
  margin: 0;
  color: #4d596d;
  font-size: 14px;
  line-height: 1.85;
}

.boss-report-advice p + p {
  margin-top: 7px;
}

.boss-report-advice p b {
  color: #d23e6b;
}

.boss-report-advice-final {
  padding-top: 10px;
  color: #27384f !important;
  font-weight: 800;
}

@media (max-width: 760px) {
  .reference-messages-page {
    gap: 12px;
  }

  .reference-messages-heading {
    min-height: 66px;
  }

  .reference-messages-heading h1 {
    font-size: 30px;
  }

  .reference-messages-heading > strong {
    min-width: 70px;
    min-height: 40px;
    padding-inline: 11px;
    font-size: 13px;
  }

  .reference-message-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .reference-message-filters > select,
  .reference-message-search,
  .reference-message-search-button {
    min-height: 46px;
  }

  .reference-message-search {
    grid-column: 1 / -1;
  }

  .reference-message-search input {
    min-height: 42px;
    font-size: 13px;
  }

  .reference-message-search-button {
    grid-column: 1 / -1;
  }

  .reference-message-results {
    border-radius: 8px;
  }

  .reference-support-card {
    min-height: 88px;
    padding: 12px;
    grid-template-columns: 44px minmax(0, 1fr) auto;
    gap: 10px;
    border-radius: 8px 8px 0 0;
  }

  .reference-support-avatar {
    width: 44px;
    height: 44px;
  }

  .reference-support-avatar .ui-icon {
    width: 21px;
    height: 21px;
  }

  .reference-support-copy b {
    font-size: 14px;
  }

  .reference-support-copy small {
    font-size: 12px;
  }

  .reference-support-meta {
    min-width: 54px;
    gap: 5px;
  }

  .reference-support-meta em {
    min-height: 28px;
    padding-inline: 9px;
    font-size: 11px;
  }

  .reference-message-retention {
    min-height: 42px;
    padding-inline: 12px;
    font-size: 11px;
  }

  .reference-conversation-list {
    padding: 5px;
  }

  .reference-conversation-list .conversation-item {
    grid-template-columns: 38px minmax(0, 1fr) auto;
    min-height: 64px;
    padding: 9px;
    gap: 9px;
  }

  .reference-conversation-list .conversation-item .avatar-tile {
    width: 38px;
    height: 38px;
    border-radius: 10px;
  }

  .reference-conversation-list .conversation-item b {
    font-size: 13px;
  }

  .reference-conversation-list .conversation-item em {
    font-size: 11px;
  }

  .reference-message-empty {
    min-height: 190px;
  }

  .boss-report-advice {
    margin-top: 14px;
    padding: 12px;
  }

  .boss-report-advice p {
    font-size: 13px;
    line-height: 1.75;
  }
}

/* FAQ answers expand in the document flow; never trap the page in an inner scroller. */
.faq-list {
  height: auto;
  min-height: 0;
  overflow: visible;
  overscroll-behavior: auto;
  scrollbar-gutter: auto;
}

/* Keep the message viewport fixed on small screens; only its history scrolls. */
@media (max-width: 760px) {
  .reference-chat-shell.thread-shell {
    height: calc(100svh - 92px);
    min-height: 430px;
    grid-template-rows: 66px minmax(0, 1fr) 66px;
  }

  .reference-chat-shell.thread-shell.has-thread-tools {
    grid-template-rows: 66px auto minmax(0, 1fr) 66px;
  }

  .reference-chat-shell.thread-shell > .chat-body {
    min-height: 0;
    max-height: none;
    overflow-y: auto;
    overscroll-behavior: contain;
  }
}

/* Broker reference surfaces: keep the reference layout compact and predictable. */
.broker-reference-girls-page,
.broker-reference-publish-page,
.broker-reference-expiring-page,
.broker-reference-republish-page,
.broker-reference-extend-page,
.broker-promotion-guide {
  width: 100%;
  min-width: 0;
  display: grid;
  gap: 16px;
}

.broker-reference-toolbar {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.broker-reference-toolbar > div:first-child {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.broker-reference-toolbar > div:first-child > span {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  flex: 0 0 28px;
  color: #526985;
}

.broker-reference-toolbar > div:first-child .ui-icon {
  width: 21px;
  height: 21px;
}

.broker-reference-toolbar h1 {
  margin: 0;
  color: #253854;
  font-size: 22px;
  line-height: 1.2;
}

.broker-reference-toolbar > .primary,
.broker-reference-toolbar > .ghost {
  min-height: 38px;
  flex: 0 0 auto;
}

.broker-reference-toolbar-actions {
  min-width: 0;
  display: flex !important;
  align-items: center;
  gap: 8px !important;
}

.broker-reference-toolbar-actions button {
  min-height: 38px;
  white-space: nowrap;
}

.broker-reference-toolbar-actions .ui-icon,
.broker-reference-toolbar > button .ui-icon {
  width: 16px;
  height: 16px;
  margin-right: 5px;
  vertical-align: -3px;
}

.broker-reference-filter-grid,
.broker-publish-filter-grid,
.broker-expiring-filter {
  min-width: 0;
  display: grid;
  align-items: center;
  gap: 10px;
}

.broker-reference-filter-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.broker-reference-filter-grid > select,
.broker-reference-filter-grid > input,
.broker-publish-filter-grid > select,
.broker-publish-filter-grid > input,
.broker-expiring-filter input,
.broker-expiring-filter select {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid #d9e0e9;
  border-radius: 6px;
  color: #41536e;
  background: #fff;
  box-shadow: none;
  font-size: 13px;
}

.broker-reference-filter-grid > select:focus,
.broker-reference-filter-grid > input:focus,
.broker-publish-filter-grid > select:focus,
.broker-publish-filter-grid > input:focus,
.broker-expiring-filter input:focus,
.broker-expiring-filter select:focus {
  border-color: #f26b98;
  box-shadow: 0 0 0 3px rgba(242, 107, 152, 0.12);
}

.broker-reference-filter-actions,
.broker-publish-search-actions {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.broker-reference-filter-actions {
  grid-column: span 2;
}

.broker-reference-filter-actions .primary,
.broker-publish-search-actions .primary,
.broker-expiring-filter > .primary {
  min-width: 112px;
  min-height: 42px;
  justify-content: center;
}

.broker-reference-filter-actions .text-button,
.broker-publish-search-actions .text-button,
.broker-expiring-filter .text-button {
  min-height: 36px;
  padding-inline: 5px;
  color: #e04d78;
}

.broker-reference-batchbar {
  min-height: 50px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  border: 1px solid #e6eaf0;
  border-radius: 6px;
  background: #fff;
}

.broker-reference-batchbar .check {
  margin-right: 2px;
  color: #4f6077;
  font-size: 12px;
  font-weight: 800;
}

.broker-reference-batchbar .check input {
  margin-right: 6px;
}

.broker-reference-batchbar > span:not(.broker-reference-credit-pill) {
  color: #8895a8;
  font-size: 12px;
  font-weight: 800;
}

.broker-reference-batchbar button {
  min-height: 34px;
  padding-inline: 11px;
  font-size: 12px;
}

.broker-reference-batchbar button .ui-icon {
  width: 14px;
  height: 14px;
  margin-right: 4px;
  vertical-align: -3px;
}

.broker-reference-credit-pill {
  min-height: 28px;
  margin-left: auto;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  border: 1px solid #dce5f0;
  border-radius: 999px;
  color: #657791;
  background: #f7faff;
  font-size: 11px;
  white-space: nowrap;
}

.broker-reference-credit-pill b {
  margin-left: 4px;
  color: #385b87;
}

.broker-reference-empty {
  min-height: 320px;
  padding: 28px 18px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  border: 1px solid #e6eaf0;
  border-radius: 6px;
  background: #fff;
}

.broker-reference-empty-state {
  min-height: 178px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  color: #a1a8b2;
  text-align: center;
}

.broker-reference-empty-state .ui-icon {
  width: 52px;
  height: 52px;
  color: #9ba1aa;
  stroke-width: 1.45;
}

.broker-reference-empty-state p {
  margin: 0;
  color: #a2a9b4;
  font-size: 13px;
}

.broker-reference-empty > .primary {
  min-width: 128px;
  min-height: 36px;
  justify-content: center;
}

.broker-draft-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.broker-draft-card {
  min-width: 0;
  padding: 0;
  gap: 0;
  overflow: hidden;
  border-color: #e3e8ef;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(43, 57, 78, 0.05);
}

.broker-card-check {
  min-height: 36px;
  padding: 8px 12px 0;
  display: flex;
  align-items: center;
  gap: 5px;
  color: #7c899b;
  font-size: 11px;
  font-weight: 800;
}

.broker-card-cover {
  min-height: 86px;
  margin-top: 8px;
  display: grid;
  place-items: center;
  border-top: 1px solid #edf0f4;
  border-bottom: 1px solid #edf0f4;
  color: #8d9bb0;
  background: #f7f9fc;
  font-size: 11px;
  font-weight: 800;
}

.broker-card-cover span {
  min-height: 25px;
  padding: 0 9px;
  display: inline-flex;
  align-items: center;
  border: 1px solid #dce4ee;
  border-radius: 999px;
  background: #fff;
}

.broker-draft-card .draft-card-head,
.broker-draft-card .draft-meta,
.broker-draft-card > p,
.broker-draft-card .broker-card-next,
.broker-draft-card > .pill-button,
.broker-draft-card .draft-card-foot {
  margin-inline: 14px;
}

.broker-draft-card .draft-card-head {
  padding-top: 14px;
}

.broker-draft-card .draft-card-head h3 {
  overflow: hidden;
  color: #273a55;
  font-size: 16px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.broker-draft-card .draft-meta {
  gap: 6px;
  margin-top: 12px;
}

.broker-draft-card .draft-meta div {
  padding: 7px;
  background: #f8fafc;
}

.broker-draft-card > p {
  max-height: 42px;
  margin-top: 12px;
  overflow: hidden;
  color: #7b8798;
  font-size: 12px;
  line-height: 1.7;
}

.broker-card-next {
  min-height: 38px;
  margin-top: 12px;
  padding: 0 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid #edf0f4;
  border-radius: 5px;
  background: #fafbfd;
}

.broker-card-next span {
  color: #8995a5;
  font-size: 11px;
}

.broker-card-next b {
  color: #ec4d83;
  font-size: 12px;
}

.broker-draft-card > .pill-button {
  width: calc(100% - 28px);
  min-height: 36px;
  margin-top: 12px;
  justify-content: center;
  border-radius: 5px;
  color: #fff;
  background: #55729a;
  box-shadow: none;
  font-size: 12px;
}

.broker-draft-card .draft-card-foot {
  min-height: 45px;
  margin-top: 8px;
  padding: 0;
  border-top: 1px solid #edf0f4;
}

.broker-draft-card .draft-card-foot .text-button {
  min-height: 32px;
  padding-inline: 4px;
  color: #667995;
  font-size: 12px;
}

.broker-publish-filter-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.broker-publish-search-actions {
  grid-column: span 2;
}

.broker-publish-actions {
  grid-column: span 2;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.broker-publish-actions button {
  min-height: 38px;
  padding-inline: 12px;
  font-size: 12px;
  white-space: nowrap;
}

.broker-publish-actions .ui-icon {
  width: 15px;
  height: 15px;
  margin-right: 4px;
  vertical-align: -3px;
}

.outline-danger {
  border: 1px solid #fa769b !important;
  color: #e64b78 !important;
  background: #fff !important;
}

.broker-publish-records,
.broker-expiring-list {
  min-width: 0;
  display: grid;
  gap: 10px;
}

.broker-publish-record {
  min-width: 0;
  min-height: 74px;
  padding: 12px 14px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  border: 1px solid #e5eaf0;
  border-radius: 6px;
  background: #fff;
}

.broker-publish-record-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  color: #55729a;
  background: #eef4fb;
}

.broker-publish-record-icon .ui-icon {
  width: 17px;
  height: 17px;
}

.broker-publish-record > div:nth-child(2) {
  min-width: 0;
}

.broker-publish-record > div:nth-child(2) > span {
  display: block;
  overflow: hidden;
  color: #8794a6;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.broker-publish-record h2 {
  margin: 3px 0 2px;
  overflow: hidden;
  color: #263952;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.broker-publish-record p {
  margin: 0;
  color: #929dac;
  font-size: 11px;
}

.broker-publish-record > b {
  min-height: 26px;
  padding: 0 9px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  color: #18885d;
  background: #e7f8ef;
  font-size: 11px;
  white-space: nowrap;
}

.broker-publish-record > b.expired {
  color: #c05e1e;
  background: #fff1dc;
}

.broker-publish-record > .ghost {
  min-height: 32px;
  padding-inline: 10px;
  color: #55729a;
  font-size: 11px;
}

.broker-publish-notices {
  padding: 13px 16px;
  display: grid;
  gap: 7px;
  border: 1px solid #b8e7f3;
  border-radius: 5px;
  color: #39768b;
  background: #e4f8fd;
}

.broker-publish-notices p {
  margin: 0;
  display: flex;
  align-items: flex-start;
  gap: 7px;
  color: #39768b;
  font-size: 11px;
  line-height: 1.6;
}

.broker-publish-notices .ui-icon {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  margin-top: 1px;
}

.broker-republish-intro {
  padding: 16px;
  display: grid;
  gap: 10px;
  border-color: #e5e8ef;
  border-radius: 6px;
  background: #fff;
  box-shadow: none;
}

.broker-republish-purchase-bar {
  min-height: 52px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(100deg, #684493, #506aa2);
  font-size: 15px;
  font-weight: 900;
}

.broker-republish-purchase-bar .ui-icon {
  width: 17px;
  height: 17px;
}

.broker-republish-note {
  margin: 0;
  color: #68758a;
  font-size: 12px;
  line-height: 1.6;
}

.broker-credit-summary-grid {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.broker-credit-summary-grid > article {
  min-height: 162px;
  padding: 22px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  overflow: hidden;
  border: 1px solid #f0dce5;
  border-radius: 6px;
  background: #fff8fb;
  box-shadow: 0 8px 22px rgba(42, 54, 75, 0.05);
}

.broker-credit-summary-grid > article.used {
  border-color: #caead9;
  background: #f3fff8;
}

.broker-credit-summary-grid > article > div {
  min-width: 0;
  display: grid;
  justify-items: start;
  gap: 6px;
}

.broker-credit-summary-grid > article > div > span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #2d3c54;
  font-size: 14px;
  font-weight: 900;
}

.broker-credit-summary-grid > article > div > span .ui-icon {
  width: 16px;
  height: 16px;
  color: #f34885;
}

.broker-credit-summary-grid > article.used > div > span .ui-icon {
  color: #2da06e;
}

.broker-credit-summary-grid strong {
  color: #d72d5e;
  font-size: 38px;
  line-height: 1;
}

.broker-credit-summary-grid .used strong {
  color: #218a5c;
}

.broker-credit-summary-grid small {
  color: #778599;
  font-size: 12px;
}

.broker-credit-summary-grid .summary-art {
  color: rgba(224, 69, 112, 0.58);
  font-size: 52px;
  font-weight: 300;
  line-height: 1;
}

.broker-credit-summary-grid .used .summary-art {
  color: rgba(35, 154, 96, 0.8);
}

.broker-reference-expiring-page {
  gap: 14px;
}

.broker-reference-expiring-page .broker-reference-toolbar > div:first-child {
  align-items: flex-start;
}

.broker-reference-expiring-page .broker-reference-toolbar > div:first-child > span {
  margin-top: 1px;
}

.broker-expiring-balance {
  min-height: 56px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  border: 1px solid #ffe2a0;
  border-radius: 6px;
  color: #8c6b26;
  background: #fff6d8;
  font-size: 13px;
}

.broker-expiring-balance b {
  margin-inline: 4px;
  color: #6c531e;
}

.broker-expiring-filter {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  padding: 16px;
  border: 1px solid #e7ebf0;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 9px 24px rgba(44, 57, 78, 0.05);
}

.broker-expiring-filter > label {
  min-width: 0;
  display: grid;
  gap: 6px;
  color: #53637a;
  font-size: 12px;
  font-weight: 800;
}

.broker-expiring-filter > select {
  margin-top: 21px;
}

.broker-expiring-filter > .primary,
.broker-expiring-filter > .text-button {
  align-self: end;
  margin-top: 21px;
}

.broker-expiring-tabs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.broker-expiring-tabs button {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid #d8e0ea;
  border-radius: 5px;
  color: #60718a;
  background: #fff;
  font-size: 12px;
  font-weight: 800;
}

.broker-expiring-tabs button.active {
  color: #fff;
  border-color: #273a55;
  background: #273a55;
}

.broker-expiring-tabs b {
  margin-left: 4px;
}

.broker-promotion-guide {
  width: min(800px, 100%);
  margin: 0 auto;
  gap: 16px;
}

.broker-promotion-guide-head {
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.broker-promotion-guide-head > div {
  min-width: 0;
}

.broker-promotion-guide-head > div > span {
  color: #ea3761;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.broker-promotion-guide-head h1 {
  margin: 5px 0 2px;
  color: #17263d;
  font-size: 28px;
  line-height: 1.15;
}

.broker-promotion-guide-head p {
  margin: 0;
  color: #7f8a9b;
  font-size: 12px;
}

.broker-promotion-guide-head > .ghost {
  flex: 0 0 auto;
  min-height: 36px;
}

.broker-promotion-conditions {
  min-height: 108px;
  padding: 20px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  border-color: #edf0f3;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 10px 25px rgba(49, 60, 80, 0.06);
  text-align: center;
}

.broker-promotion-conditions b {
  color: #2a3a54;
  font-size: 13px;
}

.broker-promotion-conditions strong {
  color: #1c2c44;
  font-size: 15px;
}

.broker-promotion-conditions i {
  margin-inline: 9px;
  color: #ea3761;
  font-style: normal;
}

.broker-promotion-conditions small {
  color: #9aa3b1;
  font-size: 10px;
}

.broker-promotion-status-grid {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.broker-promotion-status-grid > article {
  min-width: 0;
  min-height: 202px;
  padding: 16px;
  display: grid;
  align-content: start;
  gap: 8px;
  border-radius: 6px;
  border-top: 3px solid #15bf68;
  background: #fff;
  box-shadow: 0 10px 25px rgba(49, 60, 80, 0.06);
}

.broker-promotion-status-grid > article.is-paused {
  border-top-color: #ffab08;
}

.broker-promotion-status-grid > article.is-archived {
  border-top-color: #3d414b;
}

.broker-promotion-status-grid article > span {
  color: #637189;
  font-size: 11px;
  font-weight: 800;
}

.broker-promotion-status-grid article > b {
  color: #202f46;
  font-size: 21px;
  font-weight: 500;
}

.broker-promotion-status-grid article > p {
  min-height: 53px;
  margin: 0;
  color: #627087;
  font-size: 12px;
  line-height: 1.65;
}

.broker-promotion-status-grid article > ul {
  margin: 0;
  padding: 0;
  display: grid;
  gap: 4px;
  list-style: none;
  color: #55637a;
  font-size: 11px;
}

.broker-promotion-status-grid article > ul li::before {
  content: "";
  width: 5px;
  height: 5px;
  margin: 0 7px 2px 1px;
  display: inline-block;
  border-radius: 50%;
  background: currentColor;
}

.broker-promotion-table,
.broker-promotion-steps {
  padding: 16px;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 10px 25px rgba(49, 60, 80, 0.06);
}

.broker-promotion-table h2,
.broker-promotion-steps h2 {
  margin: 0 0 12px;
  color: #1d2d45;
  font-size: 17px;
}

.broker-promotion-table table {
  width: 100%;
  border-collapse: collapse;
  color: #56657a;
  font-size: 11px;
}

.broker-promotion-table th,
.broker-promotion-table td {
  padding: 9px 7px;
  border-bottom: 1px solid #edf0f4;
  text-align: left;
  vertical-align: middle;
}

.broker-promotion-table thead th {
  color: #8d98a8;
  font-weight: 800;
}

.broker-promotion-table tbody th {
  color: #273951;
}

.status-chip {
  min-height: 20px;
  padding: 0 7px;
  display: inline-flex;
  align-items: center;
  border-radius: 4px;
  font-size: 10px;
}

.status-chip.active {
  color: #218b5b;
  background: #ddf7e9;
}

.status-chip.paused {
  color: #af7a0b;
  background: #fff1c8;
}

.status-chip.archived {
  color: #fff;
  background: #323742;
}

.broker-promotion-steps {
  display: grid;
  gap: 8px;
}

.broker-promotion-steps h2 {
  margin-bottom: 2px;
}

.broker-promotion-steps > article {
  min-height: 54px;
  padding: 8px 10px;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  border-radius: 5px;
  background: #fafbfd;
}

.broker-promotion-steps > article > b {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #ed3f79;
  font-size: 12px;
}

.broker-promotion-steps strong,
.broker-promotion-steps p {
  display: block;
}

.broker-promotion-steps strong {
  color: #273951;
  font-size: 12px;
}

.broker-promotion-steps p {
  margin: 2px 0 0;
  color: #8490a0;
  font-size: 10px;
  line-height: 1.5;
}

.broker-batch-bind-modal,
.broker-credit-purchase-modal {
  position: relative;
  width: min(620px, 100%);
  max-height: min(720px, calc(100dvh - 40px));
  padding: 0;
  overflow: hidden;
  border: 1px solid #e1e5ec;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 26px 70px rgba(32, 43, 62, 0.22);
}

.broker-batch-bind-modal > h2,
.broker-credit-purchase-modal > h2 {
  min-height: 54px;
  margin: 0;
  padding: 0 18px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid #edf0f4;
  color: #2a3d58;
  font-size: 16px;
}

.broker-batch-bind-modal > .modal-close,
.broker-credit-purchase-modal > .modal-close {
  top: 10px;
  right: 12px;
  z-index: 2;
  width: 32px;
  height: 32px;
  border: 0;
  color: #8c96a5;
  background: transparent;
  font-size: 23px;
}

.broker-batch-bind-balance {
  min-height: 46px;
  margin: 14px 14px 10px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  border: 1px solid #b7eaf6;
  border-radius: 5px;
  color: #39768b;
  background: #e4f8fd;
  font-size: 12px;
}

.broker-batch-bind-balance b {
  margin-left: 4px;
  color: #245b70;
}

.broker-batch-bind-filter {
  min-width: 0;
  padding: 0 14px 12px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 116px auto auto;
  align-items: center;
  gap: 8px;
}

.broker-batch-bind-filter input,
.broker-batch-bind-filter select {
  min-width: 0;
  min-height: 36px;
  padding-inline: 9px;
  border: 1px solid #dde3eb;
  border-radius: 5px;
  color: #52647d;
  background: #fff;
  font-size: 12px;
}

.broker-batch-bind-filter button {
  min-height: 34px;
  padding-inline: 8px;
  font-size: 12px;
}

.broker-bind-select-all {
  min-height: 38px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  border-top: 1px solid #f0f2f5;
  border-bottom: 1px solid #f0f2f5;
  color: #52647d;
  background: #fafbfd;
  font-size: 12px;
  font-weight: 800;
}

.broker-batch-bind-list {
  max-height: 330px;
  padding: 8px 14px;
  overflow: auto;
  overscroll-behavior: contain;
}

.broker-bind-row {
  min-height: 62px;
  padding: 8px 9px;
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: center;
  gap: 7px;
  border-bottom: 1px solid #f0f2f5;
  cursor: pointer;
}

.broker-bind-row:last-child {
  border-bottom: 0;
}

.broker-bind-row:hover {
  background: #fff8fb;
}

.broker-bind-row > span {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.broker-bind-row b,
.broker-bind-row strong,
.broker-bind-row small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.broker-bind-row b {
  color: #8793a3;
  font-size: 10px;
}

.broker-bind-row strong {
  color: #2b3d57;
  font-size: 13px;
}

.broker-bind-row small {
  color: #8b97a7;
  font-size: 11px;
}

.broker-bind-empty {
  min-height: 190px;
  display: grid;
  place-items: center;
  color: #a0a9b5;
  font-size: 12px;
}

.broker-batch-bind-footer {
  min-height: 64px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px solid #edf0f4;
}

.broker-batch-bind-footer span {
  color: #8490a0;
  font-size: 12px;
  font-weight: 800;
}

.broker-batch-bind-footer .primary {
  min-width: 92px;
  justify-content: center;
}

.broker-credit-purchase-modal {
  width: min(460px, 100%);
  padding-bottom: 18px;
}

.broker-credit-purchase-modal > form {
  padding: 18px;
  display: grid;
  gap: 13px;
}

.broker-credit-purchase-modal > form > p {
  margin: 0;
  color: #65748a;
  font-size: 13px;
  line-height: 1.6;
}

.broker-credit-purchase-modal > form > p strong,
.broker-credit-purchase-modal > form > p b {
  color: #2b3d57;
}

.broker-credit-purchase-modal > form > label {
  display: grid;
  gap: 7px;
  color: #52647d;
  font-size: 12px;
  font-weight: 800;
}

.broker-credit-purchase-modal > form input[type="number"] {
  min-height: 42px;
  padding-inline: 11px;
  border: 1px solid #dce3ec;
  border-radius: 5px;
  color: #2b3d57;
}

.broker-credit-purchase-modal > form .text-button {
  min-height: 26px;
  padding-inline: 5px;
  color: #e04d78;
}

.broker-credit-purchase-modal > form .full {
  min-height: 42px;
  justify-content: center;
}

.broker-extend-empty {
  min-height: 300px;
}

.broker-extend-note {
  padding: 14px 16px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  border-color: #b7eaf6;
  border-radius: 5px;
  color: #39768b;
  background: #e4f8fd;
  box-shadow: none;
}

.broker-extend-note .ui-icon {
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
  margin-top: 2px;
}

.broker-extend-note p {
  margin: 0;
  color: #39768b;
  font-size: 11px;
  line-height: 1.7;
}

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

  .broker-expiring-filter {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .broker-expiring-filter > select,
  .broker-expiring-filter > .primary,
  .broker-expiring-filter > .text-button {
    margin-top: 0;
  }
}

@media (max-width: 760px) {
  .broker-reference-girls-page,
  .broker-reference-publish-page,
  .broker-reference-expiring-page,
  .broker-reference-republish-page,
  .broker-reference-extend-page,
  .broker-promotion-guide {
    gap: 12px;
  }

  .broker-reference-toolbar,
  .broker-promotion-guide-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .broker-reference-toolbar > div:first-child {
    width: 100%;
  }

  .broker-reference-toolbar-actions {
    width: 100%;
  }

  .broker-reference-toolbar-actions button,
  .broker-reference-toolbar > .ghost,
  .broker-reference-toolbar > .primary {
    min-width: 0;
    flex: 1 1 0;
    justify-content: center;
  }

  .broker-reference-toolbar h1 {
    font-size: 20px;
  }

  .broker-reference-filter-grid,
  .broker-publish-filter-grid,
  .broker-expiring-filter {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .broker-reference-filter-grid > select,
  .broker-reference-filter-grid > input,
  .broker-publish-filter-grid > select,
  .broker-publish-filter-grid > input,
  .broker-expiring-filter input,
  .broker-expiring-filter select {
    min-height: 40px;
    padding-inline: 9px;
    font-size: 12px;
  }

  .broker-reference-filter-actions,
  .broker-publish-search-actions,
  .broker-publish-actions {
    grid-column: 1 / -1;
  }

  .broker-reference-filter-actions,
  .broker-publish-search-actions,
  .broker-publish-actions {
    justify-content: flex-start;
  }

  .broker-publish-actions {
    flex-wrap: wrap;
  }

  .broker-publish-actions button {
    flex: 1 1 180px;
  }

  .broker-reference-batchbar {
    align-items: flex-start;
    padding: 9px;
  }

  .broker-reference-credit-pill {
    width: 100%;
    margin-left: 0;
    justify-content: center;
  }

  .broker-draft-grid,
  .broker-credit-summary-grid,
  .broker-promotion-status-grid {
    grid-template-columns: 1fr;
  }

  .broker-reference-empty {
    min-height: 250px;
    padding: 20px 12px;
  }

  .broker-reference-empty-state {
    min-height: 145px;
  }

  .broker-publish-record {
    grid-template-columns: 34px minmax(0, 1fr) auto;
    gap: 9px;
    padding: 10px;
  }

  .broker-publish-record > b {
    grid-column: 3;
    grid-row: 1;
  }

  .broker-publish-record > .ghost {
    grid-column: 2 / -1;
    grid-row: 2;
    justify-self: start;
    padding-left: 0;
  }

  .broker-publish-notices {
    padding: 11px;
  }

  .broker-republish-purchase-bar {
    min-height: 48px;
    font-size: 14px;
  }

  .broker-credit-summary-grid > article {
    min-height: 132px;
    padding: 18px;
  }

  .broker-credit-summary-grid strong {
    font-size: 34px;
  }

  .broker-expiring-balance {
    min-height: 52px;
    padding: 9px 12px;
    align-items: flex-start;
    line-height: 1.6;
  }

  .broker-expiring-filter {
    padding: 12px;
  }

  .broker-expiring-filter > label {
    font-size: 11px;
  }

  .broker-expiring-filter > .primary,
  .broker-expiring-filter > .text-button {
    margin-top: 0;
  }

  .broker-promotion-guide-head h1 {
    font-size: 25px;
  }

  .broker-promotion-guide-head > .ghost {
    width: 100%;
    justify-content: center;
  }

  .broker-promotion-conditions {
    padding: 16px 10px;
  }

  .broker-promotion-conditions strong {
    font-size: 13px;
    line-height: 1.8;
  }

  .broker-promotion-conditions i {
    margin-inline: 4px;
  }

  .broker-promotion-table,
  .broker-promotion-steps {
    padding: 12px;
    overflow-x: auto;
  }

  .broker-promotion-table table {
    min-width: 610px;
  }

  .broker-batch-bind-modal,
  .broker-credit-purchase-modal {
    max-height: calc(100dvh - 24px);
  }

  .broker-batch-bind-filter {
    grid-template-columns: minmax(0, 1fr) minmax(92px, 0.55fr);
  }

  .broker-batch-bind-filter button {
    min-width: 0;
  }

  .broker-batch-bind-filter button:nth-of-type(1) {
    grid-column: 1;
  }

  .broker-batch-bind-filter button:nth-of-type(2) {
    grid-column: 2;
  }

  .broker-batch-bind-list {
    max-height: 280px;
  }
}

/* Agent portal shell: match the compact reference navigation without restoring the agent VIP entry. */
@media (min-width: 1181px) {
  .dashboard[data-role="agent"] {
    grid-template-columns: 294px minmax(0, 1fr);
  }
}

.dashboard[data-role="agent"] .agent-sidebar {
  padding: 24px 18px;
  background: #fff;
}

.dashboard[data-role="agent"] .agent-sidebar .side-brand {
  margin: 0 12px 32px;
}

.dashboard[data-role="agent"] .agent-side-menu {
  margin-top: 0;
  gap: 8px;
}

.dashboard[data-role="agent"] .agent-side-menu .broker-side-group {
  gap: 4px;
}

.dashboard[data-role="agent"] .agent-side-menu .broker-side-parent,
.dashboard[data-role="agent"] .agent-side-menu .broker-side-plain-group > a {
  min-height: 46px;
  border-radius: 8px;
  color: #405575;
  font-weight: 700;
}

.dashboard[data-role="agent"] .agent-side-menu .broker-side-parent:hover,
.dashboard[data-role="agent"] .agent-side-menu .broker-side-plain-group > a:hover {
  color: #ef6c73;
  background: #fff5f6;
}

.dashboard[data-role="agent"] .agent-side-menu .broker-side-parent.is-active,
.dashboard[data-role="agent"] .agent-side-menu .broker-side-plain-group > a.active {
  color: #ef6c73;
  background: #fff0f2;
  box-shadow: inset 3px 0 0 #ef6c73;
}

.dashboard[data-role="agent"] .agent-side-menu .broker-side-submenu {
  padding-left: 18px;
}

.dashboard[data-role="agent"] .dash-top {
  background: linear-gradient(105deg, #ff685d 0%, #ff7980 52%, #ff98a8 100%);
  border-bottom-color: transparent;
}

.dashboard[data-role="agent"] .dash-top .dash-left span,
.dashboard[data-role="agent"] .dash-top .dash-left b,
.dashboard[data-role="agent"] .dash-top > .brand .brand-copy b,
.dashboard[data-role="agent"] .dash-top > .brand .brand-copy small {
  color: #fff;
}

.dashboard[data-role="agent"] .dash-top .dash-left .icon-button,
.dashboard[data-role="agent"] .dash-top > .brand .brand-orb {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.14);
}

.dashboard[data-role="agent"] .dash-actions > .icon-button {
  display: none;
}

.dashboard[data-role="agent"] .dash-actions .account-pill {
  width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  justify-content: center;
  border-color: rgba(255, 255, 255, 0.52);
  background: rgba(255, 255, 255, 0.18);
  box-shadow: none;
}

.dashboard[data-role="agent"] .dash-actions .account-pill > b,
.dashboard[data-role="agent"] .dash-actions .account-pill > strong,
.dashboard[data-role="agent"] .dash-actions .account-pill > span,
.dashboard[data-role="agent"] .dash-actions .account-pill > i {
  display: none;
}

.dashboard[data-role="agent"] .dash-actions .account-pill .avatar-tile {
  margin: 0;
  color: #ef6c73;
  background: #fff;
}

@media (max-width: 760px) {
  .dashboard[data-role="agent"] .dash-top {
    grid-template-columns: auto minmax(0, 1fr) auto;
    padding-inline: 14px;
  }

  .dashboard[data-role="agent"] .dash-top > .brand {
    display: none;
  }

  .dashboard[data-role="agent"] .dash-left > div {
    min-width: 0;
  }

  .dashboard[data-role="agent"] .dash-left b {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .dashboard[data-role="agent"] .agent-sidebar {
    padding: 20px 16px;
  }
}
